]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/msw/_gdi_wrap.cpp
Added missing platform constants
[wxWidgets.git] / wxPython / src / msw / _gdi_wrap.cpp
CommitLineData
d55e5bfc
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
554f62e9 3 * Version 1.3.29
d55e5bfc
RD
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11#define SWIGPYTHON
554f62e9 12#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
d55e5bfc
RD
13
14#ifdef __cplusplus
15template<class T> class SwigValueWrapper {
16 T *tt;
17public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
093d3ff1 27};
d55e5bfc
RD
28#endif
29
554f62e9 30/* -----------------------------------------------------------------------------
7449af73
RD
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
554f62e9 33 * ----------------------------------------------------------------------------- */
d55e5bfc 34
7449af73
RD
35/* template workaround for compilers that cannot correctly implement the C++ standard */
36#ifndef SWIGTEMPLATEDISAMBIGUATOR
554f62e9
RD
37# if defined(__SUNPRO_CC)
38# if (__SUNPRO_CC <= 0x560)
39# define SWIGTEMPLATEDISAMBIGUATOR template
40# else
41# define SWIGTEMPLATEDISAMBIGUATOR
42# endif
43# else
44# define SWIGTEMPLATEDISAMBIGUATOR
45# endif
093d3ff1 46#endif
d55e5bfc 47
7449af73
RD
48/* inline attribute */
49#ifndef SWIGINLINE
50# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51# define SWIGINLINE inline
52# else
53# define SWIGINLINE
54# endif
55#endif
56
57/* attribute recognised by some compilers to avoid 'unused' warnings */
58#ifndef SWIGUNUSED
554f62e9
RD
59# if defined(__GNUC__)
60# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61# define SWIGUNUSED __attribute__ ((__unused__))
62# else
63# define SWIGUNUSED
64# endif
65# elif defined(__ICC)
66# define SWIGUNUSED __attribute__ ((__unused__))
7449af73
RD
67# else
68# define SWIGUNUSED
69# endif
70#endif
71
554f62e9
RD
72#ifndef SWIGUNUSEDPARM
73# ifdef __cplusplus
74# define SWIGUNUSEDPARM(p)
75# else
76# define SWIGUNUSEDPARM(p) p SWIGUNUSED
77# endif
78#endif
79
7449af73
RD
80/* internal SWIG method */
81#ifndef SWIGINTERN
82# define SWIGINTERN static SWIGUNUSED
83#endif
84
85/* internal inline SWIG method */
86#ifndef SWIGINTERNINLINE
87# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88#endif
89
554f62e9
RD
90/* exporting methods */
91#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92# ifndef GCC_HASCLASSVISIBILITY
93# define GCC_HASCLASSVISIBILITY
94# endif
95#endif
96
7449af73
RD
97#ifndef SWIGEXPORT
98# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99# if defined(STATIC_LINKED)
100# define SWIGEXPORT
101# else
102# define SWIGEXPORT __declspec(dllexport)
103# endif
104# else
554f62e9
RD
105# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106# define SWIGEXPORT __attribute__ ((visibility("default")))
107# else
108# define SWIGEXPORT
109# endif
7449af73
RD
110# endif
111#endif
112
113/* calling conventions for Windows */
114#ifndef SWIGSTDCALL
115# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116# define SWIGSTDCALL __stdcall
117# else
118# define SWIGSTDCALL
119# endif
120#endif
121
554f62e9
RD
122/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124# define _CRT_SECURE_NO_DEPRECATE
125#endif
7449af73 126
d55e5bfc 127
554f62e9 128/* Python.h has to appear first */
093d3ff1 129#include <Python.h>
d55e5bfc 130
554f62e9 131/* -----------------------------------------------------------------------------
093d3ff1 132 * swigrun.swg
d55e5bfc 133 *
554f62e9
RD
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
d55e5bfc 137
093d3ff1
RD
138/* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
7449af73 140#define SWIG_RUNTIME_VERSION "2"
d55e5bfc 141
093d3ff1
RD
142/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143#ifdef SWIG_TYPE_TABLE
7449af73
RD
144# define SWIG_QUOTE_STRING(x) #x
145# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
d55e5bfc 147#else
7449af73 148# define SWIG_TYPE_TABLE_NAME
093d3ff1
RD
149#endif
150
151/*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158*/
7449af73 159
093d3ff1 160#ifndef SWIGRUNTIME
7449af73 161# define SWIGRUNTIME SWIGINTERN
093d3ff1 162#endif
7449af73 163
093d3ff1 164#ifndef SWIGRUNTIMEINLINE
7449af73 165# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
d55e5bfc
RD
166#endif
167
554f62e9
RD
168/* Generic buffer size */
169#ifndef SWIG_BUFFER_SIZE
170# define SWIG_BUFFER_SIZE 1024
171#endif
172
173/* Flags for pointer conversions */
174#define SWIG_POINTER_DISOWN 0x1
175
176/* Flags for new pointer objects */
177#define SWIG_POINTER_OWN 0x1
178
179
180/*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260#define SWIG_OK (0)
261#define SWIG_ERROR (-1)
262#define SWIG_IsOK(r) (r >= 0)
263#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265/* The CastRankLimit says how many bits are used for the cast rank */
266#define SWIG_CASTRANKLIMIT (1 << 8)
267/* The NewMask denotes the object was created (using new/malloc) */
268#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269/* The TmpMask is for in/out typemaps that use temporal objects */
270#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271/* Simple returning values */
272#define SWIG_BADOBJ (SWIG_ERROR)
273#define SWIG_OLDOBJ (SWIG_OK)
274#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276/* Check, add and del mask methods */
277#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285/* Cast-Rank Mode */
286#if defined(SWIG_CASTRANK_MODE)
287# ifndef SWIG_TypeRank
288# define SWIG_TypeRank unsigned long
289# endif
290# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291# define SWIG_MAXCASTRANK (2)
292# endif
293# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297}
298SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300}
301#else /* no cast-rank mode */
302# define SWIG_AddCast
303# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304#endif
305
306
307
308
7449af73
RD
309#include <string.h>
310
d55e5bfc
RD
311#ifdef __cplusplus
312extern "C" {
313#endif
314
315typedef void *(*swig_converter_func)(void *);
316typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
7449af73 318/* Structure to store inforomation on one type */
d55e5bfc 319typedef struct swig_type_info {
7449af73
RD
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
554f62e9 325 int owndata; /* flag if the structure owns the clientdata */
d55e5bfc
RD
326} swig_type_info;
327
7449af73
RD
328/* Structure to store a type and conversion function used for casting */
329typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334} swig_cast_info;
335
336/* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346} swig_module_info;
347
093d3ff1
RD
348/*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354*/
355SWIGRUNTIME int
356SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
554f62e9 361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
093d3ff1
RD
362 }
363 return (l1 - f1) - (l2 - f2);
364}
365
366/*
367 Check type equivalence in a name list like <name1>|<name2>|...
7449af73 368 Return 0 if not equal, 1 if equal
093d3ff1
RD
369*/
370SWIGRUNTIME int
371SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
7449af73 379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
093d3ff1
RD
380 if (*ne) ++ne;
381 }
382 return equiv;
383}
384
385/*
7449af73
RD
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
093d3ff1 388*/
7449af73
RD
389SWIGRUNTIME int
390SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
093d3ff1 397 }
7449af73
RD
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
093d3ff1 400 }
7449af73 401 return equiv;
093d3ff1
RD
402}
403
7449af73
RD
404
405/* think of this as a c++ template<> or a scheme macro */
406#define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
093d3ff1
RD
427/*
428 Check the typename
429*/
7449af73 430SWIGRUNTIME swig_cast_info *
093d3ff1 431SWIG_TypeCheck(const char *c, swig_type_info *ty) {
7449af73
RD
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433}
434
435/* Same as previous function, except strcmp is replaced with a pointer comparison */
436SWIGRUNTIME swig_cast_info *
437SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
093d3ff1
RD
439}
440
441/*
442 Cast a pointer up an inheritance hierarchy
443*/
444SWIGRUNTIMEINLINE void *
7449af73 445SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
093d3ff1
RD
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447}
448
449/*
450 Dynamic pointer casting. Down an inheritance hierarchy
451*/
452SWIGRUNTIME swig_type_info *
453SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461}
462
463/*
464 Return the name associated with this type
465*/
466SWIGRUNTIMEINLINE const char *
467SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469}
470
471/*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474*/
475SWIGRUNTIME const char *
476SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
554f62e9 481 if (!type) return NULL;
093d3ff1
RD
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491}
492
093d3ff1
RD
493/*
494 Set the clientdata field for a type
495*/
496SWIGRUNTIME void
7449af73
RD
497SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
093d3ff1
RD
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
7449af73
RD
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
093d3ff1 507 }
7449af73
RD
508 }
509 cast = cast->next;
510 }
511}
554f62e9
RD
512SWIGRUNTIME void
513SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516}
517
7449af73
RD
518/*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525*/
526SWIGRUNTIME swig_type_info *
527SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
093d3ff1 556 }
7449af73
RD
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560}
561
562/*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570*/
571SWIGRUNTIME swig_type_info *
572SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
093d3ff1 591 }
7449af73
RD
592
593 /* neither found a match */
594 return 0;
093d3ff1
RD
595}
596
597/*
598 Pack binary data into a string
599*/
600SWIGRUNTIME char *
601SWIG_PackData(char *c, void *ptr, size_t sz) {
7449af73
RD
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
093d3ff1 605 for (; u != eu; ++u) {
7449af73 606 register unsigned char uu = *u;
093d3ff1
RD
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611}
612
613/*
614 Unpack binary data from a string
615*/
616SWIGRUNTIME const char *
617SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
7449af73 619 register const unsigned char *eu = u + sz;
093d3ff1 620 for (; u != eu; ++u) {
7449af73 621 register char d = *(c++);
554f62e9 622 register unsigned char uu;
093d3ff1
RD
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639}
640
093d3ff1
RD
641/*
642 Pack 'void *' into a string buffer.
643*/
644SWIGRUNTIME char *
645SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653}
654
655SWIGRUNTIME const char *
656SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666}
667
668SWIGRUNTIME char *
669SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681}
d55e5bfc 682
093d3ff1
RD
683SWIGRUNTIME const char *
684SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694}
d55e5bfc
RD
695
696#ifdef __cplusplus
697}
698#endif
699
554f62e9
RD
700/* Errors in SWIG */
701#define SWIG_UnknownError -1
702#define SWIG_IOError -2
703#define SWIG_RuntimeError -3
704#define SWIG_IndexError -4
705#define SWIG_TypeError -5
706#define SWIG_DivisionByZero -6
707#define SWIG_OverflowError -7
708#define SWIG_SyntaxError -8
709#define SWIG_ValueError -9
710#define SWIG_SystemError -10
711#define SWIG_AttributeError -11
712#define SWIG_MemoryError -12
713#define SWIG_NullReferenceError -13
d55e5bfc 714
554f62e9
RD
715
716
717/* Python.h has to appear first */
718#include <Python.h>
719
720/* Add PyOS_snprintf for old Pythons */
721#if PY_VERSION_HEX < 0x02020000
722# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723# define PyOS_snprintf _snprintf
724# else
725# define PyOS_snprintf snprintf
726# endif
727#endif
728
729/* A crude PyString_FromFormat implementation for old Pythons */
730#if PY_VERSION_HEX < 0x02020000
731
732#ifndef SWIG_PYBUFFER_SIZE
733# define SWIG_PYBUFFER_SIZE 1024
734#endif
735
736static PyObject *
737PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745}
746#endif
747
748/* Add PyObject_Del for old Pythons */
749#if PY_VERSION_HEX < 0x01060000
750# define PyObject_Del(op) PyMem_DEL((op))
751#endif
752#ifndef PyObject_DEL
753# define PyObject_DEL PyObject_Del
754#endif
755
756/* A crude PyExc_StopIteration exception for old Pythons */
757#if PY_VERSION_HEX < 0x02020000
758# ifndef PyExc_StopIteration
759# define PyExc_StopIteration PyExc_RuntimeError
760# endif
761# ifndef PyObject_GenericGetAttr
762# define PyObject_GenericGetAttr 0
763# endif
093d3ff1 764#endif
554f62e9
RD
765/* Py_NotImplemented is defined in 2.1 and up. */
766#if PY_VERSION_HEX < 0x02010000
767# ifndef Py_NotImplemented
768# define Py_NotImplemented PyExc_RuntimeError
769# endif
770#endif
771
772
773/* A crude PyString_AsStringAndSize implementation for old Pythons */
774#if PY_VERSION_HEX < 0x02010000
775# ifndef PyString_AsStringAndSize
776# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777# endif
778#endif
779
780/* PySequence_Size for old Pythons */
781#if PY_VERSION_HEX < 0x02000000
782# ifndef PySequence_Size
783# define PySequence_Size PySequence_Length
784# endif
785#endif
786
787
788/* PyBool_FromLong for old Pythons */
789#if PY_VERSION_HEX < 0x02030000
790static
791PyObject *PyBool_FromLong(long ok)
792{
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796}
797#endif
798
c32bde28 799
093d3ff1 800/* -----------------------------------------------------------------------------
554f62e9 801 * error manipulation
093d3ff1 802 * ----------------------------------------------------------------------------- */
d55e5bfc 803
554f62e9
RD
804SWIGRUNTIME PyObject*
805SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845}
d55e5bfc 846
554f62e9
RD
847
848SWIGRUNTIME void
849SWIG_Python_AddErrorMsg(const char* mesg)
850{
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866}
867
868
869
870#if defined(SWIG_PYTHON_NO_THREADS)
871# if defined(SWIG_PYTHON_THREADS)
872# undef SWIG_PYTHON_THREADS
873# endif
874#endif
875#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877# if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878# define SWIG_PYTHON_USE_GIL
879# endif
880# endif
881# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882# ifndef SWIG_PYTHON_INITIALIZE_THREADS
883# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884# endif
885# ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906# else /* C code */
907# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911# endif
912# else /* Old thread way, not implemented, user must provide it */
913# if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914# define SWIG_PYTHON_INITIALIZE_THREADS
915# endif
916# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918# endif
919# if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920# define SWIG_PYTHON_THREAD_END_BLOCK
921# endif
922# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924# endif
925# if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926# define SWIG_PYTHON_THREAD_END_ALLOW
927# endif
928# endif
929#else /* No thread support */
930# define SWIG_PYTHON_INITIALIZE_THREADS
931# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932# define SWIG_PYTHON_THREAD_END_BLOCK
933# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934# define SWIG_PYTHON_THREAD_END_ALLOW
093d3ff1 935#endif
d55e5bfc 936
554f62e9
RD
937/* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
093d3ff1 940
554f62e9
RD
941#ifdef __cplusplus
942extern "C" {
943#if 0
944} /* cc-mode */
945#endif
946#endif
093d3ff1
RD
947
948/* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
d55e5bfc 951
093d3ff1 952/* Constant Types */
093d3ff1
RD
953#define SWIG_PY_POINTER 4
954#define SWIG_PY_BINARY 5
955
956/* Constant information structure */
957typedef struct swig_const_info {
554f62e9
RD
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
093d3ff1 964} swig_const_info;
d55e5bfc 965
d55e5bfc 966#ifdef __cplusplus
554f62e9
RD
967#if 0
968{ /* cc-mode */
969#endif
093d3ff1
RD
970}
971#endif
d55e5bfc 972
d55e5bfc 973
554f62e9
RD
974/* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
093d3ff1
RD
978 * pyrun.swg
979 *
554f62e9
RD
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
093d3ff1 983 *
554f62e9 984 * ----------------------------------------------------------------------------- */
d55e5bfc 985
093d3ff1 986/* Common SWIG API */
d55e5bfc 987
554f62e9
RD
988/* for raw pointers */
989#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
990#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
991#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
992#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
993#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
994#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
995#define swig_owntype int
d55e5bfc 996
554f62e9
RD
997/* for raw packed data */
998#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
999#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
d55e5bfc 1000
554f62e9
RD
1001/* for class or struct pointers */
1002#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1003#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
d55e5bfc 1004
554f62e9
RD
1005/* for C or C++ function pointers */
1006#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1007#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
d55e5bfc 1008
554f62e9
RD
1009/* for C++ member pointers, ie, member methods */
1010#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1011#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
7449af73 1012
c32bde28 1013
554f62e9 1014/* Runtime API */
d55e5bfc 1015
554f62e9
RD
1016#define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1017#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1018#define SWIG_NewClientData(obj) PySwigClientData_New(obj)
7449af73 1019
554f62e9
RD
1020#define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1021#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1022#define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1023#define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1024#define SWIG_fail goto fail
7449af73 1025
d55e5bfc 1026
554f62e9 1027/* Runtime API implementation */
c32bde28 1028
554f62e9 1029/* Error manipulation */
c32bde28 1030
554f62e9
RD
1031SWIGINTERN void
1032SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1033 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1034 PyErr_SetObject(errtype, obj);
1035 Py_DECREF(obj);
1036 SWIG_PYTHON_THREAD_END_BLOCK;
c32bde28 1037}
d55e5bfc 1038
554f62e9
RD
1039SWIGINTERN void
1040SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1041 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1042 PyErr_SetString(errtype, (char *) msg);
1043 SWIG_PYTHON_THREAD_END_BLOCK;
c32bde28 1044}
d55e5bfc 1045
554f62e9 1046#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
7449af73 1047
554f62e9 1048/* Set a constant value */
c32bde28 1049
554f62e9
RD
1050SWIGINTERN void
1051SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1052 PyDict_SetItemString(d, (char*) name, obj);
1053 Py_DECREF(obj);
d55e5bfc
RD
1054}
1055
554f62e9 1056/* Append a value to the result obj */
d55e5bfc 1057
554f62e9
RD
1058SWIGINTERN PyObject*
1059SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1060#if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1061 if (!result) {
1062 result = obj;
1063 } else if (result == Py_None) {
1064 Py_DECREF(result);
1065 result = obj;
1066 } else {
1067 if (!PyList_Check(result)) {
1068 PyObject *o2 = result;
1069 result = PyList_New(1);
1070 PyList_SetItem(result, 0, o2);
1071 }
1072 PyList_Append(result,obj);
1073 Py_DECREF(obj);
1074 }
1075 return result;
1076#else
1077 PyObject* o2;
1078 PyObject* o3;
1079 if (!result) {
1080 result = obj;
1081 } else if (result == Py_None) {
1082 Py_DECREF(result);
1083 result = obj;
093d3ff1 1084 } else {
554f62e9
RD
1085 if (!PyTuple_Check(result)) {
1086 o2 = result;
1087 result = PyTuple_New(1);
1088 PyTuple_SET_ITEM(result, 0, o2);
1089 }
1090 o3 = PyTuple_New(1);
1091 PyTuple_SET_ITEM(o3, 0, obj);
1092 o2 = result;
1093 result = PySequence_Concat(o2, o3);
1094 Py_DECREF(o2);
1095 Py_DECREF(o3);
d55e5bfc 1096 }
554f62e9
RD
1097 return result;
1098#endif
093d3ff1 1099}
d55e5bfc 1100
554f62e9 1101/* Unpack the argument tuple */
d55e5bfc 1102
554f62e9
RD
1103SWIGINTERN int
1104SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1105{
1106 if (!args) {
1107 if (!min && !max) {
1108 return 1;
1109 } else {
1110 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1111 name, (min == max ? "" : "at least "), min);
1112 return 0;
1113 }
1114 }
1115 if (!PyTuple_Check(args)) {
1116 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1117 return 0;
1118 } else {
1119 register int l = PyTuple_GET_SIZE(args);
1120 if (l < min) {
1121 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1122 name, (min == max ? "" : "at least "), min, l);
1123 return 0;
1124 } else if (l > max) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at most "), max, l);
1127 return 0;
1128 } else {
1129 register int i;
1130 for (i = 0; i < l; ++i) {
1131 objs[i] = PyTuple_GET_ITEM(args, i);
1132 }
1133 for (; l < max; ++l) {
1134 objs[l] = 0;
1135 }
1136 return i + 1;
1137 }
1138 }
1139}
1140
1141/* A functor is a function object with one single object argument */
1142#if PY_VERSION_HEX >= 0x02020000
1143#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1144#else
1145#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1146#endif
1147
1148/*
1149 Helper for static pointer initialization for both C and C++ code, for example
1150 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1151*/
1152#ifdef __cplusplus
1153#define SWIG_STATIC_POINTER(var) var
1154#else
1155#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1156#endif
1157
1158/* -----------------------------------------------------------------------------
1159 * Pointer declarations
1160 * ----------------------------------------------------------------------------- */
1161
1162/* Flags for new pointer objects */
1163#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1164#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1165
1166#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1167
1168#ifdef __cplusplus
1169extern "C" {
1170#if 0
1171} /* cc-mode */
1172#endif
1173#endif
1174
1175/* How to access Py_None */
1176#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1177# ifndef SWIG_PYTHON_NO_BUILD_NONE
1178# ifndef SWIG_PYTHON_BUILD_NONE
1179# define SWIG_PYTHON_BUILD_NONE
1180# endif
1181# endif
1182#endif
1183
1184#ifdef SWIG_PYTHON_BUILD_NONE
1185# ifdef Py_None
1186# undef Py_None
1187# define Py_None SWIG_Py_None()
1188# endif
1189SWIGRUNTIMEINLINE PyObject *
1190_SWIG_Py_None(void)
1191{
1192 PyObject *none = Py_BuildValue("");
1193 Py_DECREF(none);
1194 return none;
1195}
1196SWIGRUNTIME PyObject *
1197SWIG_Py_None(void)
1198{
1199 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1200 return none;
1201}
1202#endif
1203
1204/* The python void return value */
1205
1206SWIGRUNTIMEINLINE PyObject *
1207SWIG_Py_Void(void)
1208{
1209 PyObject *none = Py_None;
1210 Py_INCREF(none);
1211 return none;
1212}
1213
1214/* PySwigClientData */
1215
1216typedef struct {
1217 PyObject *klass;
1218 PyObject *newraw;
1219 PyObject *newargs;
1220 PyObject *destroy;
1221 int delargs;
1222 int implicitconv;
1223} PySwigClientData;
1224
1225SWIGRUNTIMEINLINE int
1226SWIG_Python_CheckImplicit(swig_type_info *ty)
1227{
1228 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1229 return data ? data->implicitconv : 0;
1230}
1231
1232SWIGRUNTIMEINLINE PyObject *
1233SWIG_Python_ExceptionType(swig_type_info *desc) {
1234 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1235 PyObject *klass = data ? data->klass : 0;
1236 return (klass ? klass : PyExc_RuntimeError);
1237}
1238
1239
1240SWIGRUNTIME PySwigClientData *
1241PySwigClientData_New(PyObject* obj)
1242{
1243 if (!obj) {
1244 return 0;
1245 } else {
1246 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1247 /* the klass element */
1248 data->klass = obj;
1249 Py_INCREF(data->klass);
1250 /* the newraw method and newargs arguments used to create a new raw instance */
1251 if (PyClass_Check(obj)) {
1252 data->newraw = 0;
1253 data->newargs = obj;
1254 Py_INCREF(obj);
1255 } else {
1256#if (PY_VERSION_HEX < 0x02020000)
1257 data->newraw = 0;
1258#else
1259 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1260#endif
1261 if (data->newraw) {
1262 Py_INCREF(data->newraw);
1263 data->newargs = PyTuple_New(1);
1264 PyTuple_SetItem(data->newargs, 0, obj);
1265 } else {
1266 data->newargs = obj;
1267 }
1268 Py_INCREF(data->newargs);
1269 }
1270 /* the destroy method, aka as the C++ delete method */
1271 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1272 if (PyErr_Occurred()) {
1273 PyErr_Clear();
1274 data->destroy = 0;
1275 }
1276 if (data->destroy) {
1277 int flags;
1278 Py_INCREF(data->destroy);
1279 flags = PyCFunction_GET_FLAGS(data->destroy);
1280#ifdef METH_O
1281 data->delargs = !(flags & (METH_O));
1282#else
1283 data->delargs = 0;
1284#endif
1285 } else {
1286 data->delargs = 0;
1287 }
1288 data->implicitconv = 0;
1289 return data;
1290 }
1291}
1292
1293SWIGRUNTIME void
1294PySwigClientData_Del(PySwigClientData* data)
1295{
1296 Py_XDECREF(data->newraw);
1297 Py_XDECREF(data->newargs);
1298 Py_XDECREF(data->destroy);
1299}
1300
1301/* =============== PySwigObject =====================*/
1302
1303typedef struct {
1304 PyObject_HEAD
1305 void *ptr;
1306 swig_type_info *ty;
1307 int own;
1308 PyObject *next;
1309} PySwigObject;
1310
1311SWIGRUNTIME PyObject *
1312PySwigObject_long(PySwigObject *v)
1313{
1314 return PyLong_FromVoidPtr(v->ptr);
1315}
1316
1317SWIGRUNTIME PyObject *
1318PySwigObject_format(const char* fmt, PySwigObject *v)
1319{
1320 PyObject *res = NULL;
1321 PyObject *args = PyTuple_New(1);
1322 if (args) {
1323 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1324 PyObject *ofmt = PyString_FromString(fmt);
1325 if (ofmt) {
1326 res = PyString_Format(ofmt,args);
1327 Py_DECREF(ofmt);
1328 }
1329 Py_DECREF(args);
1330 }
1331 }
1332 return res;
1333}
1334
1335SWIGRUNTIME PyObject *
1336PySwigObject_oct(PySwigObject *v)
1337{
1338 return PySwigObject_format("%o",v);
1339}
1340
1341SWIGRUNTIME PyObject *
1342PySwigObject_hex(PySwigObject *v)
1343{
1344 return PySwigObject_format("%x",v);
1345}
1346
1347SWIGRUNTIME PyObject *
1348#ifdef METH_NOARGS
1349PySwigObject_repr(PySwigObject *v)
1350#else
1351PySwigObject_repr(PySwigObject *v, PyObject *args)
1352#endif
1353{
1354 const char *name = SWIG_TypePrettyName(v->ty);
1355 PyObject *hex = PySwigObject_hex(v);
1356 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1357 Py_DECREF(hex);
1358 if (v->next) {
1359#ifdef METH_NOARGS
1360 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1361#else
1362 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1363#endif
1364 PyString_ConcatAndDel(&repr,nrep);
1365 }
1366 return repr;
1367}
1368
1369SWIGRUNTIME int
1370PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1371{
1372#ifdef METH_NOARGS
1373 PyObject *repr = PySwigObject_repr(v);
1374#else
1375 PyObject *repr = PySwigObject_repr(v, NULL);
1376#endif
1377 if (repr) {
1378 fputs(PyString_AsString(repr), fp);
1379 Py_DECREF(repr);
1380 return 0;
1381 } else {
1382 return 1;
1383 }
1384}
1385
1386SWIGRUNTIME PyObject *
1387PySwigObject_str(PySwigObject *v)
1388{
1389 char result[SWIG_BUFFER_SIZE];
1390 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1391 PyString_FromString(result) : 0;
1392}
1393
1394SWIGRUNTIME int
1395PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1396{
1397 void *i = v->ptr;
1398 void *j = w->ptr;
1399 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1400}
1401
1402SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1403
1404SWIGRUNTIME PyTypeObject*
1405PySwigObject_type(void) {
1406 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1407 return type;
1408}
1409
1410SWIGRUNTIMEINLINE int
1411PySwigObject_Check(PyObject *op) {
1412 return ((op)->ob_type == PySwigObject_type())
1413 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1414}
1415
1416SWIGRUNTIME PyObject *
1417PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1418
1419SWIGRUNTIME void
1420PySwigObject_dealloc(PyObject *v)
1421{
1422 PySwigObject *sobj = (PySwigObject *) v;
1423 PyObject *next = sobj->next;
1424 if (sobj->own) {
1425 swig_type_info *ty = sobj->ty;
1426 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1427 PyObject *destroy = data ? data->destroy : 0;
1428 if (destroy) {
1429 /* destroy is always a VARARGS method */
1430 PyObject *res;
1431 if (data->delargs) {
1432 /* we need to create a temporal object to carry the destroy operation */
1433 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1434 res = SWIG_Python_CallFunctor(destroy, tmp);
1435 Py_DECREF(tmp);
1436 } else {
1437 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1438 PyObject *mself = PyCFunction_GET_SELF(destroy);
1439 res = ((*meth)(mself, v));
1440 }
1441 Py_XDECREF(res);
1442 } else {
1443 const char *name = SWIG_TypePrettyName(ty);
1444#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1445 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1446#endif
1447 }
1448 }
1449 Py_XDECREF(next);
1450 PyObject_DEL(v);
1451}
1452
1453SWIGRUNTIME PyObject*
1454PySwigObject_append(PyObject* v, PyObject* next)
1455{
1456 PySwigObject *sobj = (PySwigObject *) v;
1457#ifndef METH_O
1458 PyObject *tmp = 0;
1459 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1460 next = tmp;
1461#endif
1462 if (!PySwigObject_Check(next)) {
1463 return NULL;
1464 }
1465 sobj->next = next;
1466 Py_INCREF(next);
1467 return SWIG_Py_Void();
1468}
1469
1470SWIGRUNTIME PyObject*
1471#ifdef METH_NOARGS
1472PySwigObject_next(PyObject* v)
1473#else
1474PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1475#endif
1476{
1477 PySwigObject *sobj = (PySwigObject *) v;
1478 if (sobj->next) {
1479 Py_INCREF(sobj->next);
1480 return sobj->next;
1481 } else {
1482 return SWIG_Py_Void();
1483 }
1484}
1485
1486SWIGINTERN PyObject*
1487#ifdef METH_NOARGS
1488PySwigObject_disown(PyObject *v)
1489#else
1490PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1491#endif
1492{
1493 PySwigObject *sobj = (PySwigObject *)v;
1494 sobj->own = 0;
1495 return SWIG_Py_Void();
1496}
1497
1498SWIGINTERN PyObject*
1499#ifdef METH_NOARGS
1500PySwigObject_acquire(PyObject *v)
1501#else
1502PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1503#endif
1504{
1505 PySwigObject *sobj = (PySwigObject *)v;
1506 sobj->own = SWIG_POINTER_OWN;
1507 return SWIG_Py_Void();
1508}
1509
1510SWIGINTERN PyObject*
1511PySwigObject_own(PyObject *v, PyObject *args)
1512{
1513 PyObject *val = 0;
1514#if (PY_VERSION_HEX < 0x02020000)
1515 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1516#else
1517 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1518#endif
1519 {
1520 return NULL;
1521 }
1522 else
1523 {
1524 PySwigObject *sobj = (PySwigObject *)v;
1525 PyObject *obj = PyBool_FromLong(sobj->own);
1526 if (val) {
1527#ifdef METH_NOARGS
1528 if (PyObject_IsTrue(val)) {
1529 PySwigObject_acquire(v);
1530 } else {
1531 PySwigObject_disown(v);
1532 }
1533#else
1534 if (PyObject_IsTrue(val)) {
1535 PySwigObject_acquire(v,args);
1536 } else {
1537 PySwigObject_disown(v,args);
1538 }
1539#endif
1540 }
1541 return obj;
1542 }
1543}
1544
1545#ifdef METH_O
1546static PyMethodDef
1547swigobject_methods[] = {
1548 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1549 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1550 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1551 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1552 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1553 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1554 {0, 0, 0, 0}
1555};
1556#else
1557static PyMethodDef
1558swigobject_methods[] = {
1559 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1560 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1561 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1562 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1563 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1564 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1565 {0, 0, 0, 0}
1566};
1567#endif
1568
1569#if PY_VERSION_HEX < 0x02020000
1570SWIGINTERN PyObject *
1571PySwigObject_getattr(PySwigObject *sobj,char *name)
1572{
1573 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1574}
1575#endif
1576
1577SWIGRUNTIME PyTypeObject*
1578_PySwigObject_type(void) {
1579 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1580
1581 static PyNumberMethods PySwigObject_as_number = {
1582 (binaryfunc)0, /*nb_add*/
1583 (binaryfunc)0, /*nb_subtract*/
1584 (binaryfunc)0, /*nb_multiply*/
1585 (binaryfunc)0, /*nb_divide*/
1586 (binaryfunc)0, /*nb_remainder*/
093d3ff1
RD
1587 (binaryfunc)0, /*nb_divmod*/
1588 (ternaryfunc)0,/*nb_power*/
1589 (unaryfunc)0, /*nb_negative*/
1590 (unaryfunc)0, /*nb_positive*/
1591 (unaryfunc)0, /*nb_absolute*/
1592 (inquiry)0, /*nb_nonzero*/
1593 0, /*nb_invert*/
1594 0, /*nb_lshift*/
1595 0, /*nb_rshift*/
1596 0, /*nb_and*/
1597 0, /*nb_xor*/
1598 0, /*nb_or*/
1599 (coercion)0, /*nb_coerce*/
1600 (unaryfunc)PySwigObject_long, /*nb_int*/
1601 (unaryfunc)PySwigObject_long, /*nb_long*/
1602 (unaryfunc)0, /*nb_float*/
1603 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1604 (unaryfunc)PySwigObject_hex, /*nb_hex*/
7449af73 1605#if PY_VERSION_HEX >= 0x02020000
093d3ff1 1606 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
7449af73
RD
1607#elif PY_VERSION_HEX >= 0x02000000
1608 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
093d3ff1
RD
1609#endif
1610 };
1611
554f62e9 1612 static PyTypeObject pyswigobject_type;
7449af73 1613 static int type_init = 0;
093d3ff1 1614 if (!type_init) {
554f62e9
RD
1615 const PyTypeObject tmp
1616 = {
1617 PyObject_HEAD_INIT(NULL)
1618 0, /* ob_size */
1619 (char *)"PySwigObject", /* tp_name */
1620 sizeof(PySwigObject), /* tp_basicsize */
1621 0, /* tp_itemsize */
1622 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1623 (printfunc)PySwigObject_print, /* tp_print */
1624#if PY_VERSION_HEX < 0x02020000
1625 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1626#else
1627 (getattrfunc)0, /* tp_getattr */
093d3ff1 1628#endif
554f62e9
RD
1629 (setattrfunc)0, /* tp_setattr */
1630 (cmpfunc)PySwigObject_compare, /* tp_compare */
1631 (reprfunc)PySwigObject_repr, /* tp_repr */
1632 &PySwigObject_as_number, /* tp_as_number */
1633 0, /* tp_as_sequence */
1634 0, /* tp_as_mapping */
1635 (hashfunc)0, /* tp_hash */
1636 (ternaryfunc)0, /* tp_call */
1637 (reprfunc)PySwigObject_str, /* tp_str */
1638 PyObject_GenericGetAttr, /* tp_getattro */
1639 0, /* tp_setattro */
1640 0, /* tp_as_buffer */
1641 Py_TPFLAGS_DEFAULT, /* tp_flags */
1642 swigobject_doc, /* tp_doc */
1643 0, /* tp_traverse */
1644 0, /* tp_clear */
1645 0, /* tp_richcompare */
1646 0, /* tp_weaklistoffset */
093d3ff1 1647#if PY_VERSION_HEX >= 0x02020000
554f62e9
RD
1648 0, /* tp_iter */
1649 0, /* tp_iternext */
1650 swigobject_methods, /* tp_methods */
1651 0, /* tp_members */
1652 0, /* tp_getset */
1653 0, /* tp_base */
1654 0, /* tp_dict */
1655 0, /* tp_descr_get */
1656 0, /* tp_descr_set */
1657 0, /* tp_dictoffset */
1658 0, /* tp_init */
1659 0, /* tp_alloc */
1660 0, /* tp_new */
1661 0, /* tp_free */
1662 0, /* tp_is_gc */
1663 0, /* tp_bases */
1664 0, /* tp_mro */
1665 0, /* tp_cache */
1666 0, /* tp_subclasses */
1667 0, /* tp_weaklist */
093d3ff1
RD
1668#endif
1669#if PY_VERSION_HEX >= 0x02030000
554f62e9 1670 0, /* tp_del */
093d3ff1
RD
1671#endif
1672#ifdef COUNT_ALLOCS
554f62e9 1673 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 1674#endif
554f62e9 1675 };
7449af73 1676 pyswigobject_type = tmp;
554f62e9 1677 pyswigobject_type.ob_type = &PyType_Type;
093d3ff1 1678 type_init = 1;
c32bde28 1679 }
7449af73 1680 return &pyswigobject_type;
d55e5bfc
RD
1681}
1682
093d3ff1 1683SWIGRUNTIME PyObject *
554f62e9 1684PySwigObject_New(void *ptr, swig_type_info *ty, int own)
093d3ff1 1685{
554f62e9
RD
1686 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1687 if (sobj) {
1688 sobj->ptr = ptr;
1689 sobj->ty = ty;
1690 sobj->own = own;
1691 sobj->next = 0;
7449af73 1692 }
554f62e9 1693 return (PyObject *)sobj;
093d3ff1 1694}
c32bde28 1695
093d3ff1
RD
1696/* -----------------------------------------------------------------------------
1697 * Implements a simple Swig Packed type, and use it instead of string
1698 * ----------------------------------------------------------------------------- */
1699
1700typedef struct {
1701 PyObject_HEAD
1702 void *pack;
554f62e9 1703 swig_type_info *ty;
093d3ff1
RD
1704 size_t size;
1705} PySwigPacked;
1706
1707SWIGRUNTIME int
554f62e9 1708PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
c32bde28 1709{
093d3ff1
RD
1710 char result[SWIG_BUFFER_SIZE];
1711 fputs("<Swig Packed ", fp);
1712 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1713 fputs("at ", fp);
1714 fputs(result, fp);
d55e5bfc 1715 }
554f62e9 1716 fputs(v->ty->name,fp);
093d3ff1
RD
1717 fputs(">", fp);
1718 return 0;
c32bde28 1719}
9d7dfdff 1720
093d3ff1
RD
1721SWIGRUNTIME PyObject *
1722PySwigPacked_repr(PySwigPacked *v)
c32bde28 1723{
093d3ff1
RD
1724 char result[SWIG_BUFFER_SIZE];
1725 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
554f62e9 1726 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
093d3ff1 1727 } else {
554f62e9 1728 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
093d3ff1 1729 }
d55e5bfc
RD
1730}
1731
093d3ff1
RD
1732SWIGRUNTIME PyObject *
1733PySwigPacked_str(PySwigPacked *v)
d55e5bfc 1734{
093d3ff1
RD
1735 char result[SWIG_BUFFER_SIZE];
1736 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
554f62e9 1737 return PyString_FromFormat("%s%s", result, v->ty->name);
093d3ff1 1738 } else {
554f62e9 1739 return PyString_FromString(v->ty->name);
093d3ff1 1740 }
d55e5bfc
RD
1741}
1742
093d3ff1
RD
1743SWIGRUNTIME int
1744PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
d55e5bfc 1745{
554f62e9
RD
1746 size_t i = v->size;
1747 size_t j = w->size;
1748 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1749 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
d55e5bfc
RD
1750}
1751
554f62e9 1752SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
d55e5bfc 1753
093d3ff1 1754SWIGRUNTIME PyTypeObject*
7449af73 1755PySwigPacked_type(void) {
554f62e9
RD
1756 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1757 return type;
1758}
1759
1760SWIGRUNTIMEINLINE int
1761PySwigPacked_Check(PyObject *op) {
1762 return ((op)->ob_type == _PySwigPacked_type())
1763 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1764}
1765
1766SWIGRUNTIME void
1767PySwigPacked_dealloc(PyObject *v)
1768{
1769 if (PySwigPacked_Check(v)) {
1770 PySwigPacked *sobj = (PySwigPacked *) v;
1771 free(sobj->pack);
1772 }
1773 PyObject_DEL(v);
1774}
1775
1776SWIGRUNTIME PyTypeObject*
1777_PySwigPacked_type(void) {
1778 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1779 static PyTypeObject pyswigpacked_type;
1780 static int type_init = 0;
1781 if (!type_init) {
1782 const PyTypeObject tmp
1783 = {
1784 PyObject_HEAD_INIT(NULL)
1785 0, /* ob_size */
1786 (char *)"PySwigPacked", /* tp_name */
1787 sizeof(PySwigPacked), /* tp_basicsize */
1788 0, /* tp_itemsize */
1789 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1790 (printfunc)PySwigPacked_print, /* tp_print */
1791 (getattrfunc)0, /* tp_getattr */
1792 (setattrfunc)0, /* tp_setattr */
1793 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1794 (reprfunc)PySwigPacked_repr, /* tp_repr */
1795 0, /* tp_as_number */
1796 0, /* tp_as_sequence */
1797 0, /* tp_as_mapping */
1798 (hashfunc)0, /* tp_hash */
1799 (ternaryfunc)0, /* tp_call */
1800 (reprfunc)PySwigPacked_str, /* tp_str */
1801 PyObject_GenericGetAttr, /* tp_getattro */
1802 0, /* tp_setattro */
1803 0, /* tp_as_buffer */
1804 Py_TPFLAGS_DEFAULT, /* tp_flags */
1805 swigpacked_doc, /* tp_doc */
1806 0, /* tp_traverse */
1807 0, /* tp_clear */
1808 0, /* tp_richcompare */
1809 0, /* tp_weaklistoffset */
1810#if PY_VERSION_HEX >= 0x02020000
1811 0, /* tp_iter */
1812 0, /* tp_iternext */
1813 0, /* tp_methods */
1814 0, /* tp_members */
1815 0, /* tp_getset */
1816 0, /* tp_base */
1817 0, /* tp_dict */
1818 0, /* tp_descr_get */
1819 0, /* tp_descr_set */
1820 0, /* tp_dictoffset */
1821 0, /* tp_init */
1822 0, /* tp_alloc */
1823 0, /* tp_new */
1824 0, /* tp_free */
1825 0, /* tp_is_gc */
1826 0, /* tp_bases */
1827 0, /* tp_mro */
1828 0, /* tp_cache */
1829 0, /* tp_subclasses */
1830 0, /* tp_weaklist */
093d3ff1
RD
1831#endif
1832#if PY_VERSION_HEX >= 0x02030000
554f62e9 1833 0, /* tp_del */
093d3ff1
RD
1834#endif
1835#ifdef COUNT_ALLOCS
554f62e9 1836 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 1837#endif
554f62e9 1838 };
7449af73 1839 pyswigpacked_type = tmp;
554f62e9 1840 pyswigpacked_type.ob_type = &PyType_Type;
093d3ff1
RD
1841 type_init = 1;
1842 }
7449af73 1843 return &pyswigpacked_type;
093d3ff1
RD
1844}
1845
1846SWIGRUNTIME PyObject *
554f62e9 1847PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
093d3ff1 1848{
554f62e9
RD
1849 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1850 if (sobj) {
093d3ff1 1851 void *pack = malloc(size);
7449af73
RD
1852 if (pack) {
1853 memcpy(pack, ptr, size);
554f62e9
RD
1854 sobj->pack = pack;
1855 sobj->ty = ty;
1856 sobj->size = size;
1857 } else {
1858 PyObject_DEL((PyObject *) sobj);
1859 sobj = 0;
7449af73 1860 }
7e63a440 1861 }
554f62e9 1862 return (PyObject *) sobj;
093d3ff1 1863}
d55e5bfc 1864
554f62e9 1865SWIGRUNTIME swig_type_info *
093d3ff1
RD
1866PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1867{
554f62e9
RD
1868 if (PySwigPacked_Check(obj)) {
1869 PySwigPacked *sobj = (PySwigPacked *)obj;
1870 if (sobj->size != size) return 0;
1871 memcpy(ptr, sobj->pack, size);
1872 return sobj->ty;
1873 } else {
1874 return 0;
1875 }
093d3ff1 1876}
d55e5bfc 1877
093d3ff1 1878/* -----------------------------------------------------------------------------
554f62e9 1879 * pointers/data manipulation
093d3ff1 1880 * ----------------------------------------------------------------------------- */
d55e5bfc 1881
554f62e9
RD
1882SWIGRUNTIMEINLINE PyObject *
1883_SWIG_This(void)
1884{
1885 return PyString_FromString("this");
1886}
d55e5bfc 1887
554f62e9
RD
1888SWIGRUNTIME PyObject *
1889SWIG_This(void)
1890{
1891 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1892 return swig_this;
1893}
d55e5bfc 1894
554f62e9 1895/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
d55e5bfc 1896
554f62e9
RD
1897SWIGRUNTIME PySwigObject *
1898SWIG_Python_GetSwigThis(PyObject *pyobj)
093d3ff1 1899{
554f62e9
RD
1900 if (PySwigObject_Check(pyobj)) {
1901 return (PySwigObject *) pyobj;
1902 } else {
1903 PyObject *obj = 0;
1904#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1905 if (PyInstance_Check(pyobj)) {
1906 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1907 } else {
1908 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1909 if (dictptr != NULL) {
1910 PyObject *dict = *dictptr;
1911 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1912 } else {
1913#ifdef PyWeakref_CheckProxy
1914 if (PyWeakref_CheckProxy(pyobj)) {
1915 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1916 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1917 }
1918#endif
1919 obj = PyObject_GetAttr(pyobj,SWIG_This());
1920 if (obj) {
1921 Py_DECREF(obj);
093d3ff1 1922 } else {
554f62e9
RD
1923 if (PyErr_Occurred()) PyErr_Clear();
1924 return 0;
093d3ff1 1925 }
093d3ff1 1926 }
554f62e9
RD
1927 }
1928#else
1929 obj = PyObject_GetAttr(pyobj,SWIG_This());
1930 if (obj) {
1931 Py_DECREF(obj);
1932 } else {
1933 if (PyErr_Occurred()) PyErr_Clear();
1934 return 0;
1935 }
1936#endif
1937 if (obj && !PySwigObject_Check(obj)) {
1938 /* a PyObject is called 'this', try to get the 'real this'
1939 PySwigObject from it */
1940 return SWIG_Python_GetSwigThis(obj);
1941 }
1942 return (PySwigObject *)obj;
093d3ff1
RD
1943 }
1944}
d55e5bfc 1945
554f62e9
RD
1946/* Acquire a pointer value */
1947
1948SWIGRUNTIME int
1949SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1950 if (own) {
1951 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1952 if (sobj) {
1953 int oldown = sobj->own;
1954 sobj->own = own;
1955 return oldown;
1956 }
d55e5bfc 1957 }
554f62e9 1958 return 0;
c32bde28
RD
1959}
1960
554f62e9
RD
1961/* Convert a pointer value */
1962
093d3ff1 1963SWIGRUNTIME int
554f62e9
RD
1964SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1965 if (!obj) return SWIG_ERROR;
1966 if (obj == Py_None) {
1967 if (ptr) *ptr = 0;
1968 return SWIG_OK;
1969 } else {
1970 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1971 while (sobj) {
1972 void *vptr = sobj->ptr;
1973 if (ty) {
1974 swig_type_info *to = sobj->ty;
1975 if (to == ty) {
1976 /* no type cast needed */
1977 if (ptr) *ptr = vptr;
1978 break;
1979 } else {
1980 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1981 if (!tc) {
1982 sobj = (PySwigObject *)sobj->next;
1983 } else {
1984 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1985 break;
1986 }
1987 }
093d3ff1 1988 } else {
554f62e9
RD
1989 if (ptr) *ptr = vptr;
1990 break;
093d3ff1 1991 }
093d3ff1 1992 }
554f62e9
RD
1993 if (sobj) {
1994 if (own) *own = sobj->own;
1995 if (flags & SWIG_POINTER_DISOWN) {
1996 sobj->own = 0;
1997 }
1998 return SWIG_OK;
1999 } else {
2000 int res = SWIG_ERROR;
2001 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2002 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2003 if (data && !data->implicitconv) {
2004 PyObject *klass = data->klass;
2005 if (klass) {
2006 PyObject *impconv;
2007 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2008 impconv = SWIG_Python_CallFunctor(klass, obj);
2009 data->implicitconv = 0;
2010 if (PyErr_Occurred()) {
2011 PyErr_Clear();
2012 impconv = 0;
2013 }
2014 if (impconv) {
2015 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2016 if (iobj) {
2017 void *vptr;
2018 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2019 if (SWIG_IsOK(res)) {
2020 if (ptr) {
2021 *ptr = vptr;
2022 /* transfer the ownership to 'ptr' */
2023 iobj->own = 0;
2024 res = SWIG_AddCast(res);
2025 res = SWIG_AddNewMask(res);
2026 } else {
2027 res = SWIG_AddCast(res);
2028 }
2029 }
2030 }
2031 Py_DECREF(impconv);
2032 }
2033 }
2034 }
2035 }
2036 return res;
2037 }
093d3ff1 2038 }
d55e5bfc
RD
2039}
2040
554f62e9
RD
2041/* Convert a function ptr value */
2042
093d3ff1 2043SWIGRUNTIME int
554f62e9
RD
2044SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2045 if (!PyCFunction_Check(obj)) {
2046 return SWIG_ConvertPtr(obj, ptr, ty, 0);
093d3ff1 2047 } else {
554f62e9
RD
2048 void *vptr = 0;
2049
2050 /* here we get the method pointer for callbacks */
2051 char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2052 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2053 if (desc) {
2054 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2055 if (!desc) return SWIG_ERROR;
2056 }
2057 if (ty) {
2058 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2059 if (!tc) return SWIG_ERROR;
2060 *ptr = SWIG_TypeCast(tc,vptr);
2061 } else {
2062 *ptr = vptr;
2063 }
2064 return SWIG_OK;
093d3ff1
RD
2065 }
2066}
d55e5bfc 2067
554f62e9 2068/* Convert a packed value value */
d55e5bfc 2069
093d3ff1 2070SWIGRUNTIME int
554f62e9
RD
2071SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2072 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2073 if (!to) return SWIG_ERROR;
2074 if (ty) {
2075 if (to != ty) {
2076 /* check type cast? */
2077 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2078 if (!tc) return SWIG_ERROR;
2079 }
093d3ff1 2080 }
554f62e9
RD
2081 return SWIG_OK;
2082}
d55e5bfc 2083
554f62e9
RD
2084/* -----------------------------------------------------------------------------
2085 * Create a new pointer object
2086 * ----------------------------------------------------------------------------- */
d55e5bfc 2087
554f62e9
RD
2088/*
2089 Create a new instance object, whitout calling __init__, and set the
2090 'this' attribute.
2091*/
d55e5bfc 2092
554f62e9
RD
2093SWIGRUNTIME PyObject*
2094SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2095{
2096#if (PY_VERSION_HEX >= 0x02020000)
2097 PyObject *inst = 0;
2098 PyObject *newraw = data->newraw;
2099 if (newraw) {
2100 inst = PyObject_Call(newraw, data->newargs, NULL);
2101 if (inst) {
2102#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2103 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2104 if (dictptr != NULL) {
2105 PyObject *dict = *dictptr;
2106 if (dict == NULL) {
2107 dict = PyDict_New();
2108 *dictptr = dict;
2109 PyDict_SetItem(dict, SWIG_This(), swig_this);
2110 }
093d3ff1 2111 }
554f62e9
RD
2112#else
2113 PyObject *key = SWIG_This();
2114 PyObject_SetAttr(inst, key, swig_this);
2115#endif
093d3ff1 2116 }
554f62e9
RD
2117 } else {
2118 PyObject *dict = PyDict_New();
2119 PyDict_SetItem(dict, SWIG_This(), swig_this);
2120 inst = PyInstance_NewRaw(data->newargs, dict);
2121 Py_DECREF(dict);
093d3ff1 2122 }
554f62e9
RD
2123 return inst;
2124#else
2125#if (PY_VERSION_HEX >= 0x02010000)
2126 PyObject *inst;
2127 PyObject *dict = PyDict_New();
2128 PyDict_SetItem(dict, SWIG_This(), swig_this);
2129 inst = PyInstance_NewRaw(data->newargs, dict);
2130 Py_DECREF(dict);
2131 return (PyObject *) inst;
2132#else
2133 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2134 if (inst == NULL) {
2135 return NULL;
093d3ff1 2136 }
554f62e9
RD
2137 inst->in_class = (PyClassObject *)data->newargs;
2138 Py_INCREF(inst->in_class);
2139 inst->in_dict = PyDict_New();
2140 if (inst->in_dict == NULL) {
2141 Py_DECREF(inst);
2142 return NULL;
093d3ff1 2143 }
554f62e9
RD
2144#ifdef Py_TPFLAGS_HAVE_WEAKREFS
2145 inst->in_weakreflist = NULL;
2146#endif
2147#ifdef Py_TPFLAGS_GC
2148 PyObject_GC_Init(inst);
2149#endif
2150 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2151 return (PyObject *) inst;
2152#endif
2153#endif
093d3ff1 2154}
d55e5bfc 2155
554f62e9
RD
2156SWIGRUNTIME void
2157SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2158{
2159 PyObject *dict;
2160#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2161 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2162 if (dictptr != NULL) {
2163 dict = *dictptr;
2164 if (dict == NULL) {
2165 dict = PyDict_New();
2166 *dictptr = dict;
2167 }
2168 PyDict_SetItem(dict, SWIG_This(), swig_this);
2169 return;
2170 }
093d3ff1 2171#endif
554f62e9
RD
2172 dict = PyObject_GetAttrString(inst, "__dict__");
2173 PyDict_SetItem(dict, SWIG_This(), swig_this);
2174 Py_DECREF(dict);
2175}
d55e5bfc 2176
554f62e9
RD
2177
2178SWIGINTERN PyObject *
2179SWIG_Python_InitShadowInstance(PyObject *args) {
2180 PyObject *obj[2];
2181 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2182 return NULL;
2183 } else {
2184 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2185 if (sthis) {
2186 PySwigObject_append((PyObject*) sthis, obj[1]);
093d3ff1 2187 } else {
554f62e9 2188 SWIG_Python_SetSwigThis(obj[0], obj[1]);
093d3ff1 2189 }
554f62e9 2190 return SWIG_Py_Void();
093d3ff1 2191 }
554f62e9
RD
2192}
2193
2194/* Create a new pointer object */
093d3ff1 2195
093d3ff1 2196SWIGRUNTIME PyObject *
554f62e9 2197SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
093d3ff1 2198 if (!ptr) {
554f62e9
RD
2199 return SWIG_Py_Void();
2200 } else {
2201 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2202 PyObject *robj = PySwigObject_New(ptr, type, own);
2203 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2204 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2205 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2206 if (inst) {
2207 Py_DECREF(robj);
2208 robj = inst;
093d3ff1 2209 }
093d3ff1 2210 }
554f62e9 2211 return robj;
093d3ff1 2212 }
093d3ff1
RD
2213}
2214
554f62e9
RD
2215/* Create a new packed object */
2216
2217SWIGRUNTIMEINLINE PyObject *
093d3ff1 2218SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
554f62e9 2219 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
093d3ff1 2220}
d55e5bfc 2221
093d3ff1
RD
2222/* -----------------------------------------------------------------------------*
2223 * Get type list
2224 * -----------------------------------------------------------------------------*/
d55e5bfc 2225
093d3ff1
RD
2226#ifdef SWIG_LINK_RUNTIME
2227void *SWIG_ReturnGlobalTypeList(void *);
2228#endif
d55e5bfc 2229
7449af73
RD
2230SWIGRUNTIME swig_module_info *
2231SWIG_Python_GetModule(void) {
093d3ff1
RD
2232 static void *type_pointer = (void *)0;
2233 /* first check if module already created */
2234 if (!type_pointer) {
2235#ifdef SWIG_LINK_RUNTIME
2236 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
d55e5bfc 2237#else
093d3ff1
RD
2238 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2239 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2240 if (PyErr_Occurred()) {
2241 PyErr_Clear();
2242 type_pointer = (void *)0;
2243 }
d55e5bfc 2244#endif
7449af73
RD
2245 }
2246 return (swig_module_info *) type_pointer;
093d3ff1 2247}
d55e5bfc 2248
7449af73
RD
2249#if PY_MAJOR_VERSION < 2
2250/* PyModule_AddObject function was introduced in Python 2.0. The following function
554f62e9 2251 is copied out of Python/modsupport.c in python version 2.3.4 */
7449af73
RD
2252SWIGINTERN int
2253PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2254{
2255 PyObject *dict;
2256 if (!PyModule_Check(m)) {
2257 PyErr_SetString(PyExc_TypeError,
2258 "PyModule_AddObject() needs module as first arg");
554f62e9 2259 return SWIG_ERROR;
7449af73
RD
2260 }
2261 if (!o) {
2262 PyErr_SetString(PyExc_TypeError,
2263 "PyModule_AddObject() needs non-NULL value");
554f62e9 2264 return SWIG_ERROR;
7449af73
RD
2265 }
2266
2267 dict = PyModule_GetDict(m);
2268 if (dict == NULL) {
2269 /* Internal error -- modules must have a dict! */
2270 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2271 PyModule_GetName(m));
554f62e9 2272 return SWIG_ERROR;
7449af73
RD
2273 }
2274 if (PyDict_SetItemString(dict, name, o))
554f62e9 2275 return SWIG_ERROR;
7449af73 2276 Py_DECREF(o);
554f62e9 2277 return SWIG_OK;
093d3ff1 2278}
7449af73 2279#endif
d55e5bfc 2280
554f62e9
RD
2281SWIGRUNTIME void
2282SWIG_Python_DestroyModule(void *vptr)
2283{
2284 swig_module_info *swig_module = (swig_module_info *) vptr;
2285 swig_type_info **types = swig_module->types;
2286 size_t i;
2287 for (i =0; i < swig_module->size; ++i) {
2288 swig_type_info *ty = types[i];
2289 if (ty->owndata) {
2290 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2291 if (data) PySwigClientData_Del(data);
2292 }
2293 }
2294 Py_DECREF(SWIG_This());
2295}
2296
7449af73
RD
2297SWIGRUNTIME void
2298SWIG_Python_SetModule(swig_module_info *swig_module) {
2299 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2300
2301 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2302 swig_empty_runtime_method_table);
554f62e9 2303 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
7449af73
RD
2304 if (pointer && module) {
2305 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
554f62e9
RD
2306 } else {
2307 Py_XDECREF(pointer);
7449af73
RD
2308 }
2309}
d55e5bfc 2310
554f62e9
RD
2311/* The python cached type query */
2312SWIGRUNTIME PyObject *
2313SWIG_Python_TypeCache() {
2314 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2315 return cache;
093d3ff1 2316}
5e483524 2317
554f62e9
RD
2318SWIGRUNTIME swig_type_info *
2319SWIG_Python_TypeQuery(const char *type)
2320{
2321 PyObject *cache = SWIG_Python_TypeCache();
2322 PyObject *key = PyString_FromString(type);
2323 PyObject *obj = PyDict_GetItem(cache, key);
2324 swig_type_info *descriptor;
2325 if (obj) {
2326 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2327 } else {
2328 swig_module_info *swig_module = SWIG_Python_GetModule();
2329 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2330 if (descriptor) {
2331 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2332 PyDict_SetItem(cache, key, obj);
2333 Py_DECREF(obj);
2334 }
2335 }
2336 Py_DECREF(key);
2337 return descriptor;
2338}
2339
2340/*
2341 For backward compatibility only
2342*/
2343#define SWIG_POINTER_EXCEPTION 0
2344#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2345#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2346
2347SWIGRUNTIME int
2348SWIG_Python_AddErrMesg(const char* mesg, int infront)
2349{
2350 if (PyErr_Occurred()) {
2351 PyObject *type = 0;
2352 PyObject *value = 0;
2353 PyObject *traceback = 0;
2354 PyErr_Fetch(&type, &value, &traceback);
2355 if (value) {
2356 PyObject *old_str = PyObject_Str(value);
2357 Py_XINCREF(type);
2358 PyErr_Clear();
2359 if (infront) {
2360 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2361 } else {
2362 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2363 }
2364 Py_DECREF(old_str);
2365 }
2366 return 1;
2367 } else {
2368 return 0;
2369 }
2370}
2371
2372SWIGRUNTIME int
2373SWIG_Python_ArgFail(int argnum)
2374{
2375 if (PyErr_Occurred()) {
2376 /* add information about failing argument */
2377 char mesg[256];
2378 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2379 return SWIG_Python_AddErrMesg(mesg, 1);
2380 } else {
2381 return 0;
2382 }
2383}
2384
2385SWIGRUNTIMEINLINE const char *
2386PySwigObject_GetDesc(PyObject *self)
2387{
2388 PySwigObject *v = (PySwigObject *)self;
2389 swig_type_info *ty = v ? v->ty : 0;
2390 return ty ? ty->str : (char*)"";
2391}
2392
2393SWIGRUNTIME void
2394SWIG_Python_TypeError(const char *type, PyObject *obj)
2395{
2396 if (type) {
2397#if defined(SWIG_COBJECT_TYPES)
2398 if (obj && PySwigObject_Check(obj)) {
2399 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2400 if (otype) {
2401 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2402 type, otype);
2403 return;
2404 }
2405 } else
2406#endif
2407 {
2408 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2409 if (otype) {
2410 PyObject *str = PyObject_Str(obj);
2411 const char *cstr = str ? PyString_AsString(str) : 0;
2412 if (cstr) {
2413 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2414 type, otype, cstr);
2415 } else {
2416 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2417 type, otype);
2418 }
2419 Py_XDECREF(str);
2420 return;
2421 }
2422 }
2423 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2424 } else {
2425 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2426 }
2427}
2428
2429
2430/* Convert a pointer value, signal an exception on a type mismatch */
2431SWIGRUNTIME void *
2432SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2433 void *result;
2434 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2435 PyErr_Clear();
2436 if (flags & SWIG_POINTER_EXCEPTION) {
2437 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2438 SWIG_Python_ArgFail(argnum);
2439 }
2440 }
2441 return result;
2442}
2443
2444
2445#ifdef __cplusplus
2446#if 0
2447{ /* cc-mode */
2448#endif
2449}
2450#endif
2451
2452
2453
2454#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2455
2456#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2457
2458
2459
2460/* -------- TYPES TABLE (BEGIN) -------- */
2461
2462#define SWIGTYPE_p_char swig_types[0]
2463#define SWIGTYPE_p_double swig_types[1]
7449af73
RD
2464#define SWIGTYPE_p_form_ops_t swig_types[2]
2465#define SWIGTYPE_p_int swig_types[3]
2466#define SWIGTYPE_p_unsigned_char swig_types[4]
2467#define SWIGTYPE_p_unsigned_int swig_types[5]
2468#define SWIGTYPE_p_unsigned_long swig_types[6]
2469#define SWIGTYPE_p_wxANIHandler swig_types[7]
2470#define SWIGTYPE_p_wxAcceleratorTable swig_types[8]
2471#define SWIGTYPE_p_wxActivateEvent swig_types[9]
2472#define SWIGTYPE_p_wxBMPHandler swig_types[10]
2473#define SWIGTYPE_p_wxBitmap swig_types[11]
2474#define SWIGTYPE_p_wxBoxSizer swig_types[12]
2475#define SWIGTYPE_p_wxBrush swig_types[13]
2476#define SWIGTYPE_p_wxBrushList swig_types[14]
2477#define SWIGTYPE_p_wxBufferedDC swig_types[15]
2478#define SWIGTYPE_p_wxBufferedPaintDC swig_types[16]
2479#define SWIGTYPE_p_wxCURHandler swig_types[17]
2480#define SWIGTYPE_p_wxChildFocusEvent swig_types[18]
2481#define SWIGTYPE_p_wxClientDC swig_types[19]
2131d850
RD
2482#define SWIGTYPE_p_wxClipboardTextEvent swig_types[20]
2483#define SWIGTYPE_p_wxCloseEvent swig_types[21]
2484#define SWIGTYPE_p_wxColour swig_types[22]
2485#define SWIGTYPE_p_wxColourDatabase swig_types[23]
2486#define SWIGTYPE_p_wxCommandEvent swig_types[24]
2487#define SWIGTYPE_p_wxContextMenuEvent swig_types[25]
2488#define SWIGTYPE_p_wxControl swig_types[26]
2489#define SWIGTYPE_p_wxControlWithItems swig_types[27]
2490#define SWIGTYPE_p_wxCursor swig_types[28]
2491#define SWIGTYPE_p_wxDC swig_types[29]
2492#define SWIGTYPE_p_wxDash swig_types[30]
2493#define SWIGTYPE_p_wxDateEvent swig_types[31]
2494#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[32]
2495#define SWIGTYPE_p_wxDropFilesEvent swig_types[33]
2496#define SWIGTYPE_p_wxDuplexMode swig_types[34]
2497#define SWIGTYPE_p_wxEffects swig_types[35]
2498#define SWIGTYPE_p_wxEncodingConverter swig_types[36]
2499#define SWIGTYPE_p_wxEraseEvent swig_types[37]
2500#define SWIGTYPE_p_wxEvent swig_types[38]
2501#define SWIGTYPE_p_wxEvtHandler swig_types[39]
2502#define SWIGTYPE_p_wxFSFile swig_types[40]
2503#define SWIGTYPE_p_wxFileSystem swig_types[41]
2504#define SWIGTYPE_p_wxFlexGridSizer swig_types[42]
2505#define SWIGTYPE_p_wxFocusEvent swig_types[43]
2506#define SWIGTYPE_p_wxFont swig_types[44]
2507#define SWIGTYPE_p_wxFontList swig_types[45]
2508#define SWIGTYPE_p_wxFontMapper swig_types[46]
2509#define SWIGTYPE_p_wxGBSizerItem swig_types[47]
2510#define SWIGTYPE_p_wxGDIObjListBase swig_types[48]
2511#define SWIGTYPE_p_wxGDIObject swig_types[49]
2512#define SWIGTYPE_p_wxGIFHandler swig_types[50]
2513#define SWIGTYPE_p_wxGridBagSizer swig_types[51]
2514#define SWIGTYPE_p_wxGridSizer swig_types[52]
2515#define SWIGTYPE_p_wxICOHandler swig_types[53]
2516#define SWIGTYPE_p_wxIcon swig_types[54]
2517#define SWIGTYPE_p_wxIconBundle swig_types[55]
2518#define SWIGTYPE_p_wxIconLocation swig_types[56]
2519#define SWIGTYPE_p_wxIconizeEvent swig_types[57]
2520#define SWIGTYPE_p_wxIdleEvent swig_types[58]
2521#define SWIGTYPE_p_wxImage swig_types[59]
2522#define SWIGTYPE_p_wxImageHandler swig_types[60]
2523#define SWIGTYPE_p_wxImageList swig_types[61]
2524#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[62]
2525#define SWIGTYPE_p_wxInitDialogEvent swig_types[63]
2526#define SWIGTYPE_p_wxJPEGHandler swig_types[64]
2527#define SWIGTYPE_p_wxKeyEvent swig_types[65]
2528#define SWIGTYPE_p_wxLanguageInfo swig_types[66]
2529#define SWIGTYPE_p_wxLayoutConstraints swig_types[67]
2530#define SWIGTYPE_p_wxLocale swig_types[68]
2531#define SWIGTYPE_p_wxMask swig_types[69]
2532#define SWIGTYPE_p_wxMaximizeEvent swig_types[70]
2533#define SWIGTYPE_p_wxMemoryDC swig_types[71]
2534#define SWIGTYPE_p_wxMenu swig_types[72]
2535#define SWIGTYPE_p_wxMenuBar swig_types[73]
2536#define SWIGTYPE_p_wxMenuEvent swig_types[74]
2537#define SWIGTYPE_p_wxMenuItem swig_types[75]
2538#define SWIGTYPE_p_wxMetaFile swig_types[76]
2539#define SWIGTYPE_p_wxMetaFileDC swig_types[77]
2540#define SWIGTYPE_p_wxMirrorDC swig_types[78]
2541#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[79]
2542#define SWIGTYPE_p_wxMouseEvent swig_types[80]
2543#define SWIGTYPE_p_wxMoveEvent swig_types[81]
2544#define SWIGTYPE_p_wxNativeEncodingInfo swig_types[82]
2545#define SWIGTYPE_p_wxNativeFontInfo swig_types[83]
2546#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[84]
2547#define SWIGTYPE_p_wxNcPaintEvent swig_types[85]
2548#define SWIGTYPE_p_wxNotifyEvent swig_types[86]
2549#define SWIGTYPE_p_wxObject swig_types[87]
2550#define SWIGTYPE_p_wxPCXHandler swig_types[88]
2551#define SWIGTYPE_p_wxPNGHandler swig_types[89]
2552#define SWIGTYPE_p_wxPNMHandler swig_types[90]
2553#define SWIGTYPE_p_wxPaintDC swig_types[91]
2554#define SWIGTYPE_p_wxPaintEvent swig_types[92]
2555#define SWIGTYPE_p_wxPalette swig_types[93]
2556#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[94]
2557#define SWIGTYPE_p_wxPaperSize swig_types[95]
2558#define SWIGTYPE_p_wxPen swig_types[96]
2559#define SWIGTYPE_p_wxPenList swig_types[97]
2560#define SWIGTYPE_p_wxPoint swig_types[98]
2561#define SWIGTYPE_p_wxPostScriptDC swig_types[99]
2562#define SWIGTYPE_p_wxPrintData swig_types[100]
2563#define SWIGTYPE_p_wxPrinterDC swig_types[101]
2564#define SWIGTYPE_p_wxPyApp swig_types[102]
2565#define SWIGTYPE_p_wxPyCommandEvent swig_types[103]
2566#define SWIGTYPE_p_wxPyEvent swig_types[104]
2567#define SWIGTYPE_p_wxPyFontEnumerator swig_types[105]
2568#define SWIGTYPE_p_wxPyImageHandler swig_types[106]
2569#define SWIGTYPE_p_wxPySizer swig_types[107]
2570#define SWIGTYPE_p_wxPyValidator swig_types[108]
2571#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[109]
2572#define SWIGTYPE_p_wxRect swig_types[110]
2573#define SWIGTYPE_p_wxRegion swig_types[111]
2574#define SWIGTYPE_p_wxRegionIterator swig_types[112]
2575#define SWIGTYPE_p_wxRendererNative swig_types[113]
2576#define SWIGTYPE_p_wxRendererVersion swig_types[114]
2577#define SWIGTYPE_p_wxScreenDC swig_types[115]
2578#define SWIGTYPE_p_wxScrollEvent swig_types[116]
2579#define SWIGTYPE_p_wxScrollWinEvent swig_types[117]
2580#define SWIGTYPE_p_wxSetCursorEvent swig_types[118]
2581#define SWIGTYPE_p_wxShowEvent swig_types[119]
2582#define SWIGTYPE_p_wxSize swig_types[120]
2583#define SWIGTYPE_p_wxSizeEvent swig_types[121]
2584#define SWIGTYPE_p_wxSizer swig_types[122]
2585#define SWIGTYPE_p_wxSizerItem swig_types[123]
2586#define SWIGTYPE_p_wxSplitterRenderParams swig_types[124]
2587#define SWIGTYPE_p_wxStaticBoxSizer swig_types[125]
2588#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[126]
2589#define SWIGTYPE_p_wxStockGDI swig_types[127]
2590#define SWIGTYPE_p_wxString swig_types[128]
2591#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[129]
2592#define SWIGTYPE_p_wxTIFFHandler swig_types[130]
2593#define SWIGTYPE_p_wxUpdateUIEvent swig_types[131]
2594#define SWIGTYPE_p_wxValidator swig_types[132]
2595#define SWIGTYPE_p_wxWindow swig_types[133]
2596#define SWIGTYPE_p_wxWindowCreateEvent swig_types[134]
2597#define SWIGTYPE_p_wxWindowDC swig_types[135]
2598#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[136]
2599#define SWIGTYPE_p_wxXPMHandler swig_types[137]
2600static swig_type_info *swig_types[139];
2601static swig_module_info swig_module = {swig_types, 138, 0, 0, 0, 0};
7449af73
RD
2602#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2603#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
d55e5bfc 2604
093d3ff1 2605/* -------- TYPES TABLE (END) -------- */
d55e5bfc 2606
554f62e9
RD
2607#if (PY_VERSION_HEX <= 0x02000000)
2608# if !defined(SWIG_PYTHON_CLASSIC)
2609# error "This python version requires to use swig with the '-classic' option"
2610# endif
2611#endif
2612#if (PY_VERSION_HEX <= 0x02020000)
2613# error "This python version requires to use swig with the '-nomodern' option"
2614#endif
2615#if (PY_VERSION_HEX <= 0x02020000)
2616# error "This python version requires to use swig with the '-nomodernargs' option"
2617#endif
2618#ifndef METH_O
2619# error "This python version requires to use swig with the '-nofastunpack' option"
2620#endif
d55e5bfc 2621
093d3ff1
RD
2622/*-----------------------------------------------
2623 @(target):= _gdi_.so
2624 ------------------------------------------------*/
2625#define SWIG_init init_gdi_
d55e5bfc 2626
093d3ff1 2627#define SWIG_name "_gdi_"
d55e5bfc 2628
554f62e9 2629#define SWIGVERSION 0x010329
d55e5bfc 2630
d55e5bfc 2631
554f62e9
RD
2632#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2633#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
d55e5bfc
RD
2634
2635
554f62e9
RD
2636#include <stdexcept>
2637
2638
2639namespace swig {
2640 class PyObject_ptr {
2641 protected:
2642 PyObject *_obj;
2643
2644 public:
2645 PyObject_ptr() :_obj(0)
2646 {
093d3ff1 2647 }
554f62e9
RD
2648
2649 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2650 {
2651 Py_XINCREF(_obj);
093d3ff1 2652 }
554f62e9
RD
2653
2654 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2655 {
2656 if (initial_ref) Py_XINCREF(_obj);
2657 }
2658
2659 PyObject_ptr & operator=(const PyObject_ptr& item)
2660 {
2661 Py_XINCREF(item._obj);
2662 Py_XDECREF(_obj);
2663 _obj = item._obj;
2664 return *this;
2665 }
2666
2667 ~PyObject_ptr()
2668 {
2669 Py_XDECREF(_obj);
2670 }
2671
2672 operator PyObject *() const
2673 {
2674 return _obj;
2675 }
2676
2677 PyObject *operator->() const
2678 {
2679 return _obj;
2680 }
2681 };
093d3ff1 2682}
d55e5bfc 2683
d55e5bfc 2684
554f62e9
RD
2685namespace swig {
2686 struct PyObject_var : PyObject_ptr {
2687 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2688
2689 PyObject_var & operator = (PyObject* obj)
2690 {
2691 Py_XDECREF(_obj);
2692 _obj = obj;
2693 return *this;
d55e5bfc 2694 }
554f62e9 2695 };
d55e5bfc
RD
2696}
2697
2698
554f62e9
RD
2699#include "wx/wxPython/wxPython.h"
2700#include "wx/wxPython/pyclasses.h"
2701
2702
2703 static const wxString wxPyEmptyString(wxEmptyString);
2704
f460c29d
RD
2705 #define SWIG_From_long PyInt_FromLong
2706
2707
2708SWIGINTERNINLINE PyObject *
2709SWIG_From_int (int value)
2710{
2711 return SWIG_From_long (value);
2712}
2713
2714
554f62e9
RD
2715#include <limits.h>
2716#ifndef LLONG_MIN
2717# define LLONG_MIN LONG_LONG_MIN
2718#endif
2719#ifndef LLONG_MAX
2720# define LLONG_MAX LONG_LONG_MAX
2721#endif
2722#ifndef ULLONG_MAX
2723# define ULLONG_MAX ULONG_LONG_MAX
2724#endif
d55e5bfc 2725
c32bde28 2726
50efceee
RD
2727SWIGINTERN int
2728SWIG_AsVal_long (PyObject* obj, long* val)
2729{
2730 if (PyNumber_Check(obj)) {
2731 if (val) *val = PyInt_AsLong(obj);
2732 return SWIG_OK;
2733 }
2734 return SWIG_TypeError;
2735}
2736
2737
093d3ff1 2738SWIGINTERN int
554f62e9 2739SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
093d3ff1
RD
2740{
2741 long v = 0;
2742 if (SWIG_AsVal_long(obj, &v) && v < 0) {
554f62e9 2743 return SWIG_TypeError;
093d3ff1
RD
2744 }
2745 else if (val)
2746 *val = (unsigned long)v;
554f62e9 2747 return SWIG_OK;
093d3ff1 2748}
c32bde28 2749
d55e5bfc 2750
093d3ff1 2751SWIGINTERN int
554f62e9
RD
2752SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2753{
093d3ff1 2754 unsigned long v;
554f62e9
RD
2755 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2756 if (SWIG_IsOK(res)) {
2757 if ((v > UCHAR_MAX)) {
2758 return SWIG_OverflowError;
093d3ff1 2759 } else {
554f62e9 2760 if (val) *val = static_cast< unsigned char >(v);
093d3ff1 2761 }
554f62e9
RD
2762 }
2763 return res;
093d3ff1 2764}
d55e5bfc
RD
2765
2766
554f62e9
RD
2767SWIGINTERNINLINE PyObject*
2768SWIG_From_unsigned_SS_long (unsigned long value)
093d3ff1 2769{
554f62e9
RD
2770 return (value > LONG_MAX) ?
2771 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
093d3ff1 2772}
d55e5bfc
RD
2773
2774
554f62e9
RD
2775SWIGINTERNINLINE PyObject *
2776SWIG_From_unsigned_SS_char (unsigned char value)
2777{
2778 return SWIG_From_unsigned_SS_long (value);
2779}
d55e5bfc 2780
e9d6f3a4
RD
2781SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2782 wxColour temp, *obj = &temp;
2783 if ( other == Py_None ) return false;
2784 if ( ! wxColour_helper(other, &obj) ) {
2785 PyErr_Clear();
2786 return false;
2787 }
2788 return self->operator==(*obj);
2789 }
2790SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2791 wxColour temp, *obj = &temp;
2792 if ( other == Py_None ) return true;
2793 if ( ! wxColour_helper(other, &obj)) {
2794 PyErr_Clear();
2795 return true;
2796 }
2797 return self->operator!=(*obj);
2798 }
554f62e9 2799SWIGINTERN PyObject *wxColour_Get(wxColour *self){
093d3ff1
RD
2800 PyObject* rv = PyTuple_New(3);
2801 int red = -1;
2802 int green = -1;
2803 int blue = -1;
2804 if (self->Ok()) {
2805 red = self->Red();
2806 green = self->Green();
2807 blue = self->Blue();
2808 }
2809 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2810 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2811 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2812 return rv;
2813 }
554f62e9 2814SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
093d3ff1
RD
2815 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2816 }
2817
554f62e9
RD
2818SWIGINTERN int
2819SWIG_AsVal_int (PyObject * obj, int *val)
093d3ff1 2820{
554f62e9
RD
2821 long v;
2822 int res = SWIG_AsVal_long (obj, &v);
2823 if (SWIG_IsOK(res)) {
2824 if ((v < INT_MIN || v > INT_MAX)) {
2825 return SWIG_OverflowError;
2826 } else {
2827 if (val) *val = static_cast< int >(v);
2828 }
2829 }
2830 return res;
d55e5bfc
RD
2831}
2832
554f62e9 2833SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
093d3ff1
RD
2834 wxDash* dashes;
2835 int count = self->GetDashes(&dashes);
5a446332 2836 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
2837 PyObject* retval = PyList_New(0);
2838 for (int x=0; x<count; x++) {
2839 PyObject* pyint = PyInt_FromLong(dashes[x]);
2840 PyList_Append(retval, pyint);
2841 Py_DECREF(pyint);
2842 }
2843 wxPyEndBlockThreads(blocked);
2844 return retval;
2845 }
554f62e9 2846SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
5a446332 2847 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
2848 int size = PyList_Size(pyDashes);
2849 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
d55e5bfc 2850
093d3ff1
RD
2851 // black magic warning! The array of wxDashes needs to exist as
2852 // long as the pen does because wxPen does not copy the array. So
2853 // stick a copy in a Python string object and attach it to _self,
2854 // and then call SetDashes with a pointer to that array. Then
2855 // when the Python pen object is destroyed the array will be
2856 // cleaned up too.
2857 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2858 PyObject_SetAttrString(_self, "_dashes", strDashes);
2859
2860 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2861 delete [] dashes;
2862 Py_DECREF(strDashes);
2863 wxPyEndBlockThreads(blocked);
2864 }
554f62e9
RD
2865SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2866SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
d55e5bfc 2867
093d3ff1 2868#include <wx/image.h>
d55e5bfc 2869
093d3ff1
RD
2870 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2871 char** cArray = NULL;
2872 int count;
d55e5bfc 2873
093d3ff1
RD
2874 if (!PyList_Check(listOfStrings)) {
2875 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2876 return NULL;
2877 }
2878 count = PyList_Size(listOfStrings);
2879 cArray = new char*[count];
d55e5bfc 2880
093d3ff1
RD
2881 for(int x=0; x<count; x++) {
2882 // TODO: Need some validation and error checking here
2883 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2884 }
2885 return cArray;
d55e5bfc 2886 }
d55e5bfc
RD
2887
2888
554f62e9 2889SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
093d3ff1
RD
2890 char** cArray = NULL;
2891 wxBitmap* bmp;
d55e5bfc 2892
093d3ff1
RD
2893 cArray = ConvertListOfStrings(listOfStrings);
2894 if (! cArray)
2895 return NULL;
2896 bmp = new wxBitmap(cArray);
2897 delete [] cArray;
2898 return bmp;
2899 }
554f62e9 2900SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
093d3ff1
RD
2901 char* buf;
2902 int length;
2903 PyString_AsStringAndSize(bits, &buf, &length);
2904 return new wxBitmap(buf, width, height, depth);
2905 }
554f62e9
RD
2906SWIGINTERN void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); }
2907SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
093d3ff1
RD
2908 wxSize size(self->GetWidth(), self->GetHeight());
2909 return size;
2910 }
554f62e9 2911SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
093d3ff1
RD
2912 wxMask *mask = new wxMask(*self, colour);
2913 self->SetMask(mask);
2914 }
554f62e9 2915SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
093d3ff1
RD
2916 self->SetWidth(size.x);
2917 self->SetHeight(size.y);
2918 }
554f62e9
RD
2919SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2920SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
2921SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
093d3ff1
RD
2922 if ( !colour.Ok() )
2923 return new wxMask(bitmap, *wxBLACK);
2924 else
2925 return new wxMask(bitmap, colour);
2926 }
d55e5bfc 2927
093d3ff1 2928#include <wx/iconbndl.h>
d55e5bfc 2929
554f62e9 2930SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
093d3ff1
RD
2931 wxIcon* icon = new wxIcon();
2932 icon->CopyFromBitmap(bmp);
2933 return icon;
2934 }
554f62e9 2935SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
093d3ff1
RD
2936 char** cArray = NULL;
2937 wxIcon* icon;
d55e5bfc 2938
093d3ff1
RD
2939 cArray = ConvertListOfStrings(listOfStrings);
2940 if (! cArray)
2941 return NULL;
2942 icon = new wxIcon(cArray);
2943 delete [] cArray;
2944 return icon;
2945 }
554f62e9
RD
2946SWIGINTERN void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); }
2947SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
d55e5bfc 2948
093d3ff1 2949 return new wxIconLocation(*filename, num);
d55e5bfc
RD
2950
2951
d55e5bfc 2952
093d3ff1 2953 }
554f62e9 2954SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
d55e5bfc 2955
093d3ff1 2956 self->SetIndex(num);
d55e5bfc
RD
2957
2958
d55e5bfc 2959
093d3ff1 2960 }
554f62e9 2961SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
d55e5bfc 2962
093d3ff1 2963 return self->GetIndex();
d55e5bfc
RD
2964
2965
d55e5bfc 2966
093d3ff1 2967 }
554f62e9 2968SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
093d3ff1 2969#ifdef __WXGTK__
fef4c27a
RD
2970 wxImage img(cursorName, type);
2971 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
2972 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
2973 return new wxCursor(img);
093d3ff1 2974#else
fef4c27a 2975 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
093d3ff1
RD
2976#endif
2977 }
554f62e9 2978SWIGINTERN void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); }
d55e5bfc 2979
093d3ff1 2980
554f62e9 2981SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
093d3ff1
RD
2982 (*self) ++;
2983 }
554f62e9 2984SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
093d3ff1
RD
2985 return self->operator bool();
2986 }
2987
2988#include <wx/fontutil.h>
2989#include <wx/fontmap.h>
2990#include <wx/fontenum.h>
2991
50efceee
RD
2992
2993SWIGINTERN int
2994SWIG_AsVal_bool (PyObject *obj, bool *val)
2995{
2996 if (obj == Py_True) {
2997 if (val) *val = true;
2998 return SWIG_OK;
2999 } else if (obj == Py_False) {
3000 if (val) *val = false;
3001 return SWIG_OK;
3002 } else {
3003 long v = 0;
3004 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
3005 if (SWIG_IsOK(res) && val) *val = v ? true : false;
3006 return res;
3007 }
3008}
3009
554f62e9 3010SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
093d3ff1
RD
3011 return self->ToString();
3012 }
3013
3014 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding)
3015 { wxPyRaiseNotImplemented(); return NULL; }
3016
3017 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
3018 { wxPyRaiseNotImplemented(); return false; }
3019
554f62e9
RD
3020
3021SWIGINTERNINLINE PyObject *
3022SWIG_From_size_t (size_t value)
3023{
3024 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3025}
3026
3027
3028SWIGINTERNINLINE int
3029SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3030{
3031 unsigned long v;
3032 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3033 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3034 return res;
3035}
3036
3037SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
093d3ff1
RD
3038 wxFontEncoding alt_enc;
3039 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3040 return PyInt_FromLong(alt_enc);
3041 else {
3042 Py_INCREF(Py_None);
3043 return Py_None;
3044 }
3045 }
554f62e9 3046SWIGINTERN wxFont *new_wxFont(wxString const &info){
a97cefba
RD
3047 wxNativeFontInfo nfi;
3048 nfi.FromString(info);
3049 return new wxFont(nfi);
3050 }
554f62e9 3051SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3052 return wxFont::New(pointSize, family, flags, face, encoding);
3053 }
554f62e9 3054SWIGINTERN 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
3055 return wxFontBase::New(pixelSize, family,
3056 style, weight, underlined,
3057 face, encoding);
3058 }
554f62e9 3059SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3060 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3061 }
554f62e9
RD
3062SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3063SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
093d3ff1
RD
3064
3065class wxPyFontEnumerator : public wxFontEnumerator {
3066public:
3067 wxPyFontEnumerator() {}
3068 ~wxPyFontEnumerator() {}
3069
3070 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3071 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3072
3073 PYPRIVATE;
3074};
3075
3076IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3077IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3078
3079
704eda0c 3080SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
e9d6f3a4 3081 PyObject* ret;
704eda0c 3082 wxArrayString arr = wxFontEnumerator::GetEncodings();
e9d6f3a4 3083 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3084 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3085 wxPyEndBlockThreads(blocked);
3086 return ret;
093d3ff1 3087 }
704eda0c 3088SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
e9d6f3a4 3089 PyObject* ret;
704eda0c 3090 wxArrayString arr = wxFontEnumerator::GetFacenames();
e9d6f3a4 3091 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3092 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3093 wxPyEndBlockThreads(blocked);
3094 return ret;
093d3ff1
RD
3095 }
3096
3097#include <locale.h>
3098
554f62e9 3099SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
093d3ff1
RD
3100 wxLocale* loc;
3101 if (language == -1)
3102 loc = new wxLocale();
3103 else
3104 loc = new wxLocale(language, flags);
3105 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3106 // for the floating point conversions and such to work right.
3107#if PY_VERSION_HEX < 0x02040000
3108 setlocale(LC_NUMERIC, "C");
3109#endif
3110 return loc;
3111 }
554f62e9 3112SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
093d3ff1
RD
3113 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3114 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3115 // for the floating point conversions and such to work right.
3116#if PY_VERSION_HEX < 0x02040000
3117 setlocale(LC_NUMERIC, "C");
3118#endif
3119 return rc;
3120 }
554f62e9 3121SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
093d3ff1
RD
3122 bool rc = self->Init(language, flags);
3123 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3124 // for the floating point conversions and such to work right.
3125#if PY_VERSION_HEX < 0x02040000
3126 setlocale(LC_NUMERIC, "C");
3127#endif
3128 return rc;
3129 }
3130
3131#include "wx/wxPython/pydrawxxx.h"
3132
554f62e9 3133SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
093d3ff1
RD
3134 wxColour col;
3135 self->GetPixel(x, y, &col);
3136 return col;
3137 }
554f62e9 3138SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
093d3ff1
RD
3139 wxColour col;
3140 self->GetPixel(pt, &col);
3141 return col;
3142 }
3143
3144SWIGINTERN int
554f62e9 3145SWIG_AsVal_double (PyObject *obj, double* val)
093d3ff1
RD
3146{
3147 if (PyNumber_Check(obj)) {
3148 if (val) *val = PyFloat_AsDouble(obj);
554f62e9 3149 return SWIG_OK;
093d3ff1 3150 }
554f62e9 3151 return SWIG_TypeError;
093d3ff1
RD
3152}
3153
554f62e9 3154SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
093d3ff1
RD
3155 wxRect rv;
3156 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3157 return rv;
3158 }
554f62e9 3159SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
093d3ff1
RD
3160 wxRect rect;
3161 self->GetClippingBox(rect);
3162 return rect;
3163 }
554f62e9 3164SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
093d3ff1
RD
3165 wxArrayInt widths;
3166 self->GetPartialTextExtents(text, widths);
3167 return widths;
3168 }
3169
554f62e9 3170 #define SWIG_From_double PyFloat_FromDouble
093d3ff1 3171
554f62e9 3172SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3173 self->SetLogicalOrigin(point.x, point.y);
3174 }
554f62e9 3175SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3176 self->SetDeviceOrigin(point.x, point.y);
3177 }
554f62e9 3178SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3179 self->CalcBoundingBox(point.x, point.y);
3180 }
554f62e9 3181SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3182 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3183 }
554f62e9 3184SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3185 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3186 }
554f62e9 3187SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3188 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3189 }
554f62e9 3190SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3191 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3192 }
554f62e9 3193SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3194 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3195 }
554f62e9 3196SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
093d3ff1
RD
3197 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3198 }
3199
3200static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3201 *x1 = dc->MinX();
3202 *y1 = dc->MinY();
3203 *x2 = dc->MaxX();
3204 *y2 = dc->MaxY();
3205}
3206
3207
3208#include <wx/dcbuffer.h>
3209
3210
3211#include <wx/dcps.h>
3212
3213
3214#include <wx/metafile.h>
3215
3216
3217
554f62e9 3218SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
093d3ff1
RD
3219 self->AddColour(name, wxColour(red, green, blue));
3220 }
3221
50efceee
RD
3222 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3223 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3224 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3225 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3226
3227
093d3ff1
RD
3228#include <wx/effects.h>
3229
be9b1dca
RD
3230
3231#include "wx/renderer.h"
3232
3233
7449af73 3234SWIGINTERNINLINE PyObject*
554f62e9 3235 SWIG_From_bool (bool value)
be9b1dca 3236{
554f62e9 3237 return PyBool_FromLong(value ? 1 : 0);
be9b1dca
RD
3238}
3239
093d3ff1
RD
3240#ifdef __cplusplus
3241extern "C" {
3242#endif
554f62e9
RD
3243SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3244 PyObject *resultobj = 0;
3245 wxGDIObject *result = 0 ;
3246
3247 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3248 {
3249 if (!wxPyCheckForApp()) SWIG_fail;
3250 PyThreadState* __tstate = wxPyBeginAllowThreads();
3251 result = (wxGDIObject *)new wxGDIObject();
3252 wxPyEndAllowThreads(__tstate);
3253 if (PyErr_Occurred()) SWIG_fail;
3254 }
3255 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3256 return resultobj;
3257fail:
3258 return NULL;
d55e5bfc
RD
3259}
3260
3261
554f62e9
RD
3262SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3263 PyObject *resultobj = 0;
3264 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3265 void *argp1 = 0 ;
3266 int res1 = 0 ;
3267 PyObject *swig_obj[1] ;
3268
3269 if (!args) SWIG_fail;
3270 swig_obj[0] = args;
3271 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3272 if (!SWIG_IsOK(res1)) {
3273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3274 }
3275 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3276 {
3277 PyThreadState* __tstate = wxPyBeginAllowThreads();
3278 delete arg1;
d55e5bfc 3279
554f62e9
RD
3280 wxPyEndAllowThreads(__tstate);
3281 if (PyErr_Occurred()) SWIG_fail;
3282 }
3283 resultobj = SWIG_Py_Void();
3284 return resultobj;
3285fail:
3286 return NULL;
d55e5bfc
RD
3287}
3288
3289
554f62e9
RD
3290SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3291 PyObject *resultobj = 0;
3292 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3293 bool result;
3294 void *argp1 = 0 ;
3295 int res1 = 0 ;
3296 PyObject *swig_obj[1] ;
3297
3298 if (!args) SWIG_fail;
3299 swig_obj[0] = args;
3300 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3301 if (!SWIG_IsOK(res1)) {
3302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3303 }
3304 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3305 {
3306 PyThreadState* __tstate = wxPyBeginAllowThreads();
3307 result = (bool)(arg1)->IsNull();
3308 wxPyEndAllowThreads(__tstate);
3309 if (PyErr_Occurred()) SWIG_fail;
3310 }
3311 {
3312 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3313 }
3314 return resultobj;
3315fail:
3316 return NULL;
3317}
3318
3319
3320SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3321 PyObject *obj;
3322 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3323 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3324 return SWIG_Py_Void();
3325}
3326
3327SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3328 return SWIG_Python_InitShadowInstance(args);
3329}
3330
3331SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3332 PyObject *resultobj = 0;
3333 byte arg1 = (byte) 0 ;
3334 byte arg2 = (byte) 0 ;
3335 byte arg3 = (byte) 0 ;
3336 wxColour *result = 0 ;
3337 unsigned char val1 ;
3338 int ecode1 = 0 ;
3339 unsigned char val2 ;
3340 int ecode2 = 0 ;
3341 unsigned char val3 ;
3342 int ecode3 = 0 ;
3343 PyObject * obj0 = 0 ;
3344 PyObject * obj1 = 0 ;
3345 PyObject * obj2 = 0 ;
3346 char * kwnames[] = {
3347 (char *) "red",(char *) "green",(char *) "blue", NULL
3348 };
3349
3350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
3351 if (obj0) {
3352 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3353 if (!SWIG_IsOK(ecode1)) {
3354 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3355 }
3356 arg1 = static_cast< byte >(val1);
3357 }
3358 if (obj1) {
3359 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3360 if (!SWIG_IsOK(ecode2)) {
3361 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3362 }
3363 arg2 = static_cast< byte >(val2);
3364 }
3365 if (obj2) {
3366 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3367 if (!SWIG_IsOK(ecode3)) {
3368 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3369 }
3370 arg3 = static_cast< byte >(val3);
3371 }
3372 {
3373 PyThreadState* __tstate = wxPyBeginAllowThreads();
3374 result = (wxColour *)new wxColour(arg1,arg2,arg3);
3375 wxPyEndAllowThreads(__tstate);
3376 if (PyErr_Occurred()) SWIG_fail;
3377 }
3378 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3379 return resultobj;
3380fail:
3381 return NULL;
d55e5bfc
RD
3382}
3383
3384
554f62e9
RD
3385SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3386 PyObject *resultobj = 0;
3387 wxString *arg1 = 0 ;
3388 wxColour *result = 0 ;
3389 bool temp1 = false ;
3390 PyObject * obj0 = 0 ;
3391 char * kwnames[] = {
3392 (char *) "colorName", NULL
3393 };
3394
3395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3396 {
3397 arg1 = wxString_in_helper(obj0);
3398 if (arg1 == NULL) SWIG_fail;
3399 temp1 = true;
3400 }
3401 {
3402 if (!wxPyCheckForApp()) SWIG_fail;
3403 PyThreadState* __tstate = wxPyBeginAllowThreads();
3404 result = (wxColour *)new wxColour((wxString const &)*arg1);
3405 wxPyEndAllowThreads(__tstate);
3406 if (PyErr_Occurred()) SWIG_fail;
3407 }
3408 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3409 {
3410 if (temp1)
3411 delete arg1;
3412 }
3413 return resultobj;
3414fail:
3415 {
3416 if (temp1)
3417 delete arg1;
3418 }
3419 return NULL;
b519803b
RD
3420}
3421
3422
554f62e9
RD
3423SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3424 PyObject *resultobj = 0;
3425 unsigned long arg1 ;
3426 wxColour *result = 0 ;
3427 unsigned long val1 ;
3428 int ecode1 = 0 ;
3429 PyObject * obj0 = 0 ;
3430 char * kwnames[] = {
3431 (char *) "colRGB", NULL
3432 };
3433
3434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3435 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3436 if (!SWIG_IsOK(ecode1)) {
3437 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3438 }
3439 arg1 = static_cast< unsigned long >(val1);
3440 {
3441 PyThreadState* __tstate = wxPyBeginAllowThreads();
3442 result = (wxColour *)new wxColour(arg1);
3443 wxPyEndAllowThreads(__tstate);
3444 if (PyErr_Occurred()) SWIG_fail;
3445 }
3446 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3447 return resultobj;
3448fail:
3449 return NULL;
d55e5bfc
RD
3450}
3451
3452
554f62e9
RD
3453SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3454 PyObject *resultobj = 0;
3455 wxColour *arg1 = (wxColour *) 0 ;
3456 void *argp1 = 0 ;
3457 int res1 = 0 ;
3458 PyObject *swig_obj[1] ;
3459
3460 if (!args) SWIG_fail;
3461 swig_obj[0] = args;
3462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3463 if (!SWIG_IsOK(res1)) {
3464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3465 }
3466 arg1 = reinterpret_cast< wxColour * >(argp1);
3467 {
3468 PyThreadState* __tstate = wxPyBeginAllowThreads();
3469 delete arg1;
d55e5bfc 3470
554f62e9
RD
3471 wxPyEndAllowThreads(__tstate);
3472 if (PyErr_Occurred()) SWIG_fail;
3473 }
3474 resultobj = SWIG_Py_Void();
3475 return resultobj;
3476fail:
3477 return NULL;
d55e5bfc
RD
3478}
3479
3480
554f62e9
RD
3481SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3482 PyObject *resultobj = 0;
3483 wxColour *arg1 = (wxColour *) 0 ;
3484 byte result;
3485 void *argp1 = 0 ;
3486 int res1 = 0 ;
3487 PyObject *swig_obj[1] ;
3488
3489 if (!args) SWIG_fail;
3490 swig_obj[0] = args;
3491 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3492 if (!SWIG_IsOK(res1)) {
3493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
3494 }
3495 arg1 = reinterpret_cast< wxColour * >(argp1);
3496 {
3497 PyThreadState* __tstate = wxPyBeginAllowThreads();
3498 result = (byte)(arg1)->Red();
3499 wxPyEndAllowThreads(__tstate);
3500 if (PyErr_Occurred()) SWIG_fail;
3501 }
3502 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3503 return resultobj;
3504fail:
3505 return NULL;
d55e5bfc
RD
3506}
3507
3508
554f62e9
RD
3509SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3510 PyObject *resultobj = 0;
3511 wxColour *arg1 = (wxColour *) 0 ;
3512 byte result;
3513 void *argp1 = 0 ;
3514 int res1 = 0 ;
3515 PyObject *swig_obj[1] ;
3516
3517 if (!args) SWIG_fail;
3518 swig_obj[0] = args;
3519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3520 if (!SWIG_IsOK(res1)) {
3521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
3522 }
3523 arg1 = reinterpret_cast< wxColour * >(argp1);
3524 {
3525 PyThreadState* __tstate = wxPyBeginAllowThreads();
3526 result = (byte)(arg1)->Green();
3527 wxPyEndAllowThreads(__tstate);
3528 if (PyErr_Occurred()) SWIG_fail;
3529 }
3530 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3531 return resultobj;
3532fail:
3533 return NULL;
d55e5bfc
RD
3534}
3535
3536
554f62e9
RD
3537SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3538 PyObject *resultobj = 0;
3539 wxColour *arg1 = (wxColour *) 0 ;
3540 byte result;
3541 void *argp1 = 0 ;
3542 int res1 = 0 ;
3543 PyObject *swig_obj[1] ;
3544
3545 if (!args) SWIG_fail;
3546 swig_obj[0] = args;
3547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3548 if (!SWIG_IsOK(res1)) {
3549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
3550 }
3551 arg1 = reinterpret_cast< wxColour * >(argp1);
3552 {
3553 PyThreadState* __tstate = wxPyBeginAllowThreads();
3554 result = (byte)(arg1)->Blue();
3555 wxPyEndAllowThreads(__tstate);
3556 if (PyErr_Occurred()) SWIG_fail;
3557 }
3558 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3559 return resultobj;
3560fail:
3561 return NULL;
d55e5bfc
RD
3562}
3563
3564
554f62e9
RD
3565SWIGINTERN PyObject *_wrap_Colour_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3566 PyObject *resultobj = 0;
3567 wxColour *arg1 = (wxColour *) 0 ;
3568 bool result;
3569 void *argp1 = 0 ;
3570 int res1 = 0 ;
3571 PyObject *swig_obj[1] ;
3572
3573 if (!args) SWIG_fail;
3574 swig_obj[0] = args;
3575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3576 if (!SWIG_IsOK(res1)) {
3577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Ok" "', expected argument " "1"" of type '" "wxColour *""'");
3578 }
3579 arg1 = reinterpret_cast< wxColour * >(argp1);
3580 {
3581 PyThreadState* __tstate = wxPyBeginAllowThreads();
3582 result = (bool)(arg1)->Ok();
3583 wxPyEndAllowThreads(__tstate);
3584 if (PyErr_Occurred()) SWIG_fail;
3585 }
3586 {
3587 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3588 }
3589 return resultobj;
3590fail:
3591 return NULL;
3592}
3593
3594
3595SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3596 PyObject *resultobj = 0;
3597 wxColour *arg1 = (wxColour *) 0 ;
3598 byte arg2 ;
3599 byte arg3 ;
3600 byte arg4 ;
3601 void *argp1 = 0 ;
3602 int res1 = 0 ;
3603 unsigned char val2 ;
3604 int ecode2 = 0 ;
3605 unsigned char val3 ;
3606 int ecode3 = 0 ;
3607 unsigned char val4 ;
3608 int ecode4 = 0 ;
3609 PyObject * obj0 = 0 ;
3610 PyObject * obj1 = 0 ;
3611 PyObject * obj2 = 0 ;
3612 PyObject * obj3 = 0 ;
3613 char * kwnames[] = {
3614 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
3615 };
3616
3617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3619 if (!SWIG_IsOK(res1)) {
3620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
3621 }
3622 arg1 = reinterpret_cast< wxColour * >(argp1);
3623 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3624 if (!SWIG_IsOK(ecode2)) {
3625 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
3626 }
3627 arg2 = static_cast< byte >(val2);
3628 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3629 if (!SWIG_IsOK(ecode3)) {
3630 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
3631 }
3632 arg3 = static_cast< byte >(val3);
3633 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3634 if (!SWIG_IsOK(ecode4)) {
3635 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
3636 }
3637 arg4 = static_cast< byte >(val4);
3638 {
3639 PyThreadState* __tstate = wxPyBeginAllowThreads();
3640 (arg1)->Set(arg2,arg3,arg4);
3641 wxPyEndAllowThreads(__tstate);
3642 if (PyErr_Occurred()) SWIG_fail;
3643 }
3644 resultobj = SWIG_Py_Void();
3645 return resultobj;
3646fail:
3647 return NULL;
3648}
3649
3650
3651SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3652 PyObject *resultobj = 0;
3653 wxColour *arg1 = (wxColour *) 0 ;
3654 unsigned long arg2 ;
3655 void *argp1 = 0 ;
3656 int res1 = 0 ;
3657 unsigned long val2 ;
3658 int ecode2 = 0 ;
3659 PyObject * obj0 = 0 ;
3660 PyObject * obj1 = 0 ;
3661 char * kwnames[] = {
3662 (char *) "self",(char *) "colRGB", NULL
3663 };
3664
3665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
3666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3667 if (!SWIG_IsOK(res1)) {
3668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
3669 }
3670 arg1 = reinterpret_cast< wxColour * >(argp1);
3671 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
3672 if (!SWIG_IsOK(ecode2)) {
3673 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
3674 }
3675 arg2 = static_cast< unsigned long >(val2);
3676 {
3677 PyThreadState* __tstate = wxPyBeginAllowThreads();
3678 (arg1)->Set(arg2);
3679 wxPyEndAllowThreads(__tstate);
3680 if (PyErr_Occurred()) SWIG_fail;
3681 }
3682 resultobj = SWIG_Py_Void();
3683 return resultobj;
3684fail:
3685 return NULL;
3686}
3687
3688
3689SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3690 PyObject *resultobj = 0;
3691 wxColour *arg1 = (wxColour *) 0 ;
3692 wxString *arg2 = 0 ;
3693 void *argp1 = 0 ;
3694 int res1 = 0 ;
3695 bool temp2 = false ;
3696 PyObject * obj0 = 0 ;
3697 PyObject * obj1 = 0 ;
3698 char * kwnames[] = {
3699 (char *) "self",(char *) "colourName", NULL
3700 };
3701
3702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
3703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3704 if (!SWIG_IsOK(res1)) {
3705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
3706 }
3707 arg1 = reinterpret_cast< wxColour * >(argp1);
3708 {
3709 arg2 = wxString_in_helper(obj1);
3710 if (arg2 == NULL) SWIG_fail;
3711 temp2 = true;
3712 }
3713 {
3714 PyThreadState* __tstate = wxPyBeginAllowThreads();
3715 (arg1)->InitFromName((wxString const &)*arg2);
3716 wxPyEndAllowThreads(__tstate);
3717 if (PyErr_Occurred()) SWIG_fail;
3718 }
3719 resultobj = SWIG_Py_Void();
3720 {
3721 if (temp2)
3722 delete arg2;
3723 }
3724 return resultobj;
3725fail:
3726 {
3727 if (temp2)
3728 delete arg2;
3729 }
3730 return NULL;
d55e5bfc
RD
3731}
3732
3733
f460c29d
RD
3734SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3735 PyObject *resultobj = 0;
3736 wxColour *arg1 = (wxColour *) 0 ;
3737 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
3738 wxString result;
3739 void *argp1 = 0 ;
3740 int res1 = 0 ;
3741 long val2 ;
3742 int ecode2 = 0 ;
3743 PyObject * obj0 = 0 ;
3744 PyObject * obj1 = 0 ;
3745 char * kwnames[] = {
3746 (char *) "self",(char *) "flags", NULL
3747 };
3748
3749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
3750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3751 if (!SWIG_IsOK(res1)) {
3752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
3753 }
3754 arg1 = reinterpret_cast< wxColour * >(argp1);
3755 if (obj1) {
3756 ecode2 = SWIG_AsVal_long(obj1, &val2);
3757 if (!SWIG_IsOK(ecode2)) {
3758 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
3759 }
3760 arg2 = static_cast< long >(val2);
3761 }
3762 {
3763 PyThreadState* __tstate = wxPyBeginAllowThreads();
3764 result = ((wxColour const *)arg1)->GetAsString(arg2);
3765 wxPyEndAllowThreads(__tstate);
3766 if (PyErr_Occurred()) SWIG_fail;
3767 }
3768 {
3769#if wxUSE_UNICODE
3770 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3771#else
3772 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3773#endif
3774 }
3775 return resultobj;
3776fail:
3777 return NULL;
3778}
3779
3780
554f62e9
RD
3781SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3782 PyObject *resultobj = 0;
3783 wxColour *arg1 = (wxColour *) 0 ;
3784 long result;
3785 void *argp1 = 0 ;
3786 int res1 = 0 ;
3787 PyObject *swig_obj[1] ;
3788
3789 if (!args) SWIG_fail;
3790 swig_obj[0] = args;
3791 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3792 if (!SWIG_IsOK(res1)) {
3793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
3794 }
3795 arg1 = reinterpret_cast< wxColour * >(argp1);
3796 {
3797 PyThreadState* __tstate = wxPyBeginAllowThreads();
3798 result = (long)((wxColour const *)arg1)->GetPixel();
3799 wxPyEndAllowThreads(__tstate);
3800 if (PyErr_Occurred()) SWIG_fail;
3801 }
3802 resultobj = SWIG_From_long(static_cast< long >(result));
3803 return resultobj;
3804fail:
3805 return NULL;
3806}
3807
3808
3809SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3810 PyObject *resultobj = 0;
3811 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 3812 PyObject *arg2 = (PyObject *) 0 ;
554f62e9
RD
3813 bool result;
3814 void *argp1 = 0 ;
3815 int res1 = 0 ;
554f62e9
RD
3816 PyObject * obj0 = 0 ;
3817 PyObject * obj1 = 0 ;
3818 char * kwnames[] = {
e9d6f3a4 3819 (char *) "self",(char *) "other", NULL
554f62e9
RD
3820 };
3821
3822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
3823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3824 if (!SWIG_IsOK(res1)) {
e9d6f3a4 3825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
554f62e9
RD
3826 }
3827 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 3828 arg2 = obj1;
554f62e9 3829 {
e9d6f3a4 3830 result = (bool)wxColour___eq__(arg1,arg2);
554f62e9
RD
3831 if (PyErr_Occurred()) SWIG_fail;
3832 }
3833 {
3834 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3835 }
3836 return resultobj;
3837fail:
3838 return NULL;
3839}
3840
3841
3842SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3843 PyObject *resultobj = 0;
3844 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 3845 PyObject *arg2 = (PyObject *) 0 ;
554f62e9
RD
3846 bool result;
3847 void *argp1 = 0 ;
3848 int res1 = 0 ;
554f62e9
RD
3849 PyObject * obj0 = 0 ;
3850 PyObject * obj1 = 0 ;
3851 char * kwnames[] = {
e9d6f3a4 3852 (char *) "self",(char *) "other", NULL
554f62e9
RD
3853 };
3854
3855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
3856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3857 if (!SWIG_IsOK(res1)) {
e9d6f3a4 3858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
554f62e9
RD
3859 }
3860 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 3861 arg2 = obj1;
554f62e9 3862 {
e9d6f3a4 3863 result = (bool)wxColour___ne__(arg1,arg2);
554f62e9
RD
3864 if (PyErr_Occurred()) SWIG_fail;
3865 }
3866 {
3867 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3868 }
3869 return resultobj;
3870fail:
3871 return NULL;
d55e5bfc
RD
3872}
3873
3874
554f62e9
RD
3875SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3876 PyObject *resultobj = 0;
3877 wxColour *arg1 = (wxColour *) 0 ;
3878 PyObject *result = 0 ;
3879 void *argp1 = 0 ;
3880 int res1 = 0 ;
3881 PyObject *swig_obj[1] ;
3882
3883 if (!args) SWIG_fail;
3884 swig_obj[0] = args;
3885 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3886 if (!SWIG_IsOK(res1)) {
3887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
3888 }
3889 arg1 = reinterpret_cast< wxColour * >(argp1);
3890 {
3891 PyThreadState* __tstate = wxPyBeginAllowThreads();
3892 result = (PyObject *)wxColour_Get(arg1);
3893 wxPyEndAllowThreads(__tstate);
3894 if (PyErr_Occurred()) SWIG_fail;
3895 }
3896 resultobj = result;
3897 return resultobj;
3898fail:
3899 return NULL;
d55e5bfc
RD
3900}
3901
3902
554f62e9
RD
3903SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3904 PyObject *resultobj = 0;
3905 wxColour *arg1 = (wxColour *) 0 ;
3906 unsigned long result;
3907 void *argp1 = 0 ;
3908 int res1 = 0 ;
3909 PyObject *swig_obj[1] ;
3910
3911 if (!args) SWIG_fail;
3912 swig_obj[0] = args;
3913 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3914 if (!SWIG_IsOK(res1)) {
3915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
3916 }
3917 arg1 = reinterpret_cast< wxColour * >(argp1);
3918 {
3919 PyThreadState* __tstate = wxPyBeginAllowThreads();
3920 result = (unsigned long)wxColour_GetRGB(arg1);
3921 wxPyEndAllowThreads(__tstate);
3922 if (PyErr_Occurred()) SWIG_fail;
3923 }
3924 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
3925 return resultobj;
3926fail:
3927 return NULL;
3928}
3929
3930
3931SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3932 PyObject *obj;
3933 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3934 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
3935 return SWIG_Py_Void();
3936}
3937
3938SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3939 return SWIG_Python_InitShadowInstance(args);
3940}
3941
3942SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3943 PyObject *resultobj = 0;
3944 int arg1 ;
3945 unsigned char *arg2 = (unsigned char *) 0 ;
3946 unsigned char *arg3 = (unsigned char *) 0 ;
3947 unsigned char *arg4 = (unsigned char *) 0 ;
3948 wxPalette *result = 0 ;
3949 int val1 ;
3950 int ecode1 = 0 ;
3951 void *argp2 = 0 ;
3952 int res2 = 0 ;
3953 void *argp3 = 0 ;
3954 int res3 = 0 ;
3955 void *argp4 = 0 ;
3956 int res4 = 0 ;
3957 PyObject * obj0 = 0 ;
3958 PyObject * obj1 = 0 ;
3959 PyObject * obj2 = 0 ;
3960 PyObject * obj3 = 0 ;
3961 char * kwnames[] = {
3962 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
3963 };
3964
3965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3966 ecode1 = SWIG_AsVal_int(obj0, &val1);
3967 if (!SWIG_IsOK(ecode1)) {
3968 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
3969 }
3970 arg1 = static_cast< int >(val1);
3971 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
3972 if (!SWIG_IsOK(res2)) {
3973 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
3974 }
3975 arg2 = reinterpret_cast< unsigned char * >(argp2);
3976 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
3977 if (!SWIG_IsOK(res3)) {
3978 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
3979 }
3980 arg3 = reinterpret_cast< unsigned char * >(argp3);
3981 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
3982 if (!SWIG_IsOK(res4)) {
3983 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
3984 }
3985 arg4 = reinterpret_cast< unsigned char * >(argp4);
3986 {
3987 if (!wxPyCheckForApp()) SWIG_fail;
3988 PyThreadState* __tstate = wxPyBeginAllowThreads();
3989 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
3990 wxPyEndAllowThreads(__tstate);
3991 if (PyErr_Occurred()) SWIG_fail;
3992 }
3993 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
3994 return resultobj;
3995fail:
3996 return NULL;
093d3ff1
RD
3997}
3998
3999
554f62e9
RD
4000SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4001 PyObject *resultobj = 0;
4002 wxPalette *arg1 = (wxPalette *) 0 ;
4003 void *argp1 = 0 ;
4004 int res1 = 0 ;
4005 PyObject *swig_obj[1] ;
4006
4007 if (!args) SWIG_fail;
4008 swig_obj[0] = args;
4009 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4010 if (!SWIG_IsOK(res1)) {
4011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4012 }
4013 arg1 = reinterpret_cast< wxPalette * >(argp1);
4014 {
4015 PyThreadState* __tstate = wxPyBeginAllowThreads();
4016 delete arg1;
093d3ff1 4017
554f62e9
RD
4018 wxPyEndAllowThreads(__tstate);
4019 if (PyErr_Occurred()) SWIG_fail;
4020 }
4021 resultobj = SWIG_Py_Void();
4022 return resultobj;
4023fail:
4024 return NULL;
4025}
4026
4027
4028SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4029 PyObject *resultobj = 0;
4030 wxPalette *arg1 = (wxPalette *) 0 ;
4031 byte arg2 ;
4032 byte arg3 ;
4033 byte arg4 ;
4034 int result;
4035 void *argp1 = 0 ;
4036 int res1 = 0 ;
4037 unsigned char val2 ;
4038 int ecode2 = 0 ;
4039 unsigned char val3 ;
4040 int ecode3 = 0 ;
4041 unsigned char val4 ;
4042 int ecode4 = 0 ;
4043 PyObject * obj0 = 0 ;
4044 PyObject * obj1 = 0 ;
4045 PyObject * obj2 = 0 ;
4046 PyObject * obj3 = 0 ;
4047 char * kwnames[] = {
4048 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4049 };
4050
4051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4053 if (!SWIG_IsOK(res1)) {
4054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4055 }
4056 arg1 = reinterpret_cast< wxPalette * >(argp1);
4057 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4058 if (!SWIG_IsOK(ecode2)) {
4059 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4060 }
4061 arg2 = static_cast< byte >(val2);
4062 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4063 if (!SWIG_IsOK(ecode3)) {
4064 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4065 }
4066 arg3 = static_cast< byte >(val3);
4067 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4068 if (!SWIG_IsOK(ecode4)) {
4069 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4070 }
4071 arg4 = static_cast< byte >(val4);
4072 {
4073 PyThreadState* __tstate = wxPyBeginAllowThreads();
4074 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4075 wxPyEndAllowThreads(__tstate);
4076 if (PyErr_Occurred()) SWIG_fail;
4077 }
4078 resultobj = SWIG_From_int(static_cast< int >(result));
4079 return resultobj;
4080fail:
4081 return NULL;
4082}
4083
4084
4085SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4086 PyObject *resultobj = 0;
4087 wxPalette *arg1 = (wxPalette *) 0 ;
4088 int arg2 ;
4089 byte *arg3 = (byte *) 0 ;
4090 byte *arg4 = (byte *) 0 ;
4091 byte *arg5 = (byte *) 0 ;
4092 bool result;
4093 void *argp1 = 0 ;
4094 int res1 = 0 ;
4095 int val2 ;
4096 int ecode2 = 0 ;
4097 byte temp3 ;
4098 int res3 = SWIG_TMPOBJ ;
4099 byte temp4 ;
4100 int res4 = SWIG_TMPOBJ ;
4101 byte temp5 ;
4102 int res5 = SWIG_TMPOBJ ;
4103 PyObject * obj0 = 0 ;
4104 PyObject * obj1 = 0 ;
4105 char * kwnames[] = {
4106 (char *) "self",(char *) "pixel", NULL
4107 };
4108
4109 arg3 = &temp3;
4110 arg4 = &temp4;
4111 arg5 = &temp5;
4112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4114 if (!SWIG_IsOK(res1)) {
4115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4116 }
4117 arg1 = reinterpret_cast< wxPalette * >(argp1);
4118 ecode2 = SWIG_AsVal_int(obj1, &val2);
4119 if (!SWIG_IsOK(ecode2)) {
4120 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4121 }
4122 arg2 = static_cast< int >(val2);
4123 {
4124 PyThreadState* __tstate = wxPyBeginAllowThreads();
4125 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4126 wxPyEndAllowThreads(__tstate);
4127 if (PyErr_Occurred()) SWIG_fail;
4128 }
4129 {
4130 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4131 }
4132 if (SWIG_IsTmpObj(res3)) {
4133 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4134 } else {
4135 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4136 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4137 }
4138 if (SWIG_IsTmpObj(res4)) {
4139 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4140 } else {
4141 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4142 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4143 }
4144 if (SWIG_IsTmpObj(res5)) {
4145 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4146 } else {
4147 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4148 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4149 }
4150 return resultobj;
4151fail:
4152 return NULL;
d55e5bfc
RD
4153}
4154
4155
554f62e9
RD
4156SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4157 PyObject *resultobj = 0;
4158 wxPalette *arg1 = (wxPalette *) 0 ;
4159 int result;
4160 void *argp1 = 0 ;
4161 int res1 = 0 ;
4162 PyObject *swig_obj[1] ;
4163
4164 if (!args) SWIG_fail;
4165 swig_obj[0] = args;
4166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4167 if (!SWIG_IsOK(res1)) {
4168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4169 }
4170 arg1 = reinterpret_cast< wxPalette * >(argp1);
4171 {
4172 PyThreadState* __tstate = wxPyBeginAllowThreads();
4173 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4174 wxPyEndAllowThreads(__tstate);
4175 if (PyErr_Occurred()) SWIG_fail;
4176 }
4177 resultobj = SWIG_From_int(static_cast< int >(result));
4178 return resultobj;
4179fail:
4180 return NULL;
d55e5bfc
RD
4181}
4182
4183
554f62e9
RD
4184SWIGINTERN PyObject *_wrap_Palette_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4185 PyObject *resultobj = 0;
4186 wxPalette *arg1 = (wxPalette *) 0 ;
4187 bool result;
4188 void *argp1 = 0 ;
4189 int res1 = 0 ;
4190 PyObject *swig_obj[1] ;
4191
4192 if (!args) SWIG_fail;
4193 swig_obj[0] = args;
4194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4195 if (!SWIG_IsOK(res1)) {
4196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_Ok" "', expected argument " "1"" of type '" "wxPalette *""'");
4197 }
4198 arg1 = reinterpret_cast< wxPalette * >(argp1);
4199 {
4200 PyThreadState* __tstate = wxPyBeginAllowThreads();
4201 result = (bool)(arg1)->Ok();
4202 wxPyEndAllowThreads(__tstate);
4203 if (PyErr_Occurred()) SWIG_fail;
4204 }
4205 {
4206 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4207 }
4208 return resultobj;
4209fail:
4210 return NULL;
4211}
4212
4213
4214SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4215 PyObject *obj;
4216 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4217 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4218 return SWIG_Py_Void();
4219}
4220
4221SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4222 return SWIG_Python_InitShadowInstance(args);
4223}
4224
4225SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4226 PyObject *resultobj = 0;
4227 wxColour *arg1 = 0 ;
4228 int arg2 = (int) 1 ;
4229 int arg3 = (int) wxSOLID ;
4230 wxPen *result = 0 ;
4231 wxColour temp1 ;
4232 int val2 ;
4233 int ecode2 = 0 ;
4234 int val3 ;
4235 int ecode3 = 0 ;
4236 PyObject * obj0 = 0 ;
4237 PyObject * obj1 = 0 ;
4238 PyObject * obj2 = 0 ;
4239 char * kwnames[] = {
4240 (char *) "colour",(char *) "width",(char *) "style", NULL
4241 };
4242
4243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4244 {
4245 arg1 = &temp1;
4246 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4247 }
4248 if (obj1) {
4249 ecode2 = SWIG_AsVal_int(obj1, &val2);
4250 if (!SWIG_IsOK(ecode2)) {
4251 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4252 }
4253 arg2 = static_cast< int >(val2);
4254 }
4255 if (obj2) {
4256 ecode3 = SWIG_AsVal_int(obj2, &val3);
4257 if (!SWIG_IsOK(ecode3)) {
4258 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4259 }
4260 arg3 = static_cast< int >(val3);
4261 }
4262 {
4263 if (!wxPyCheckForApp()) SWIG_fail;
4264 PyThreadState* __tstate = wxPyBeginAllowThreads();
4265 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4266 wxPyEndAllowThreads(__tstate);
4267 if (PyErr_Occurred()) SWIG_fail;
4268 }
4269 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4270 return resultobj;
4271fail:
4272 return NULL;
d55e5bfc
RD
4273}
4274
4275
554f62e9
RD
4276SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4277 PyObject *resultobj = 0;
4278 wxPen *arg1 = (wxPen *) 0 ;
4279 void *argp1 = 0 ;
4280 int res1 = 0 ;
4281 PyObject *swig_obj[1] ;
4282
4283 if (!args) SWIG_fail;
4284 swig_obj[0] = args;
4285 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4286 if (!SWIG_IsOK(res1)) {
4287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4288 }
4289 arg1 = reinterpret_cast< wxPen * >(argp1);
4290 {
4291 PyThreadState* __tstate = wxPyBeginAllowThreads();
4292 delete arg1;
d55e5bfc 4293
554f62e9
RD
4294 wxPyEndAllowThreads(__tstate);
4295 if (PyErr_Occurred()) SWIG_fail;
4296 }
4297 resultobj = SWIG_Py_Void();
4298 return resultobj;
4299fail:
4300 return NULL;
d55e5bfc
RD
4301}
4302
4303
554f62e9
RD
4304SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4305 PyObject *resultobj = 0;
4306 wxPen *arg1 = (wxPen *) 0 ;
4307 int result;
4308 void *argp1 = 0 ;
4309 int res1 = 0 ;
4310 PyObject *swig_obj[1] ;
4311
4312 if (!args) SWIG_fail;
4313 swig_obj[0] = args;
4314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4315 if (!SWIG_IsOK(res1)) {
4316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4317 }
4318 arg1 = reinterpret_cast< wxPen * >(argp1);
4319 {
4320 PyThreadState* __tstate = wxPyBeginAllowThreads();
4321 result = (int)(arg1)->GetCap();
4322 wxPyEndAllowThreads(__tstate);
4323 if (PyErr_Occurred()) SWIG_fail;
4324 }
4325 resultobj = SWIG_From_int(static_cast< int >(result));
4326 return resultobj;
4327fail:
4328 return NULL;
d55e5bfc
RD
4329}
4330
4331
554f62e9
RD
4332SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4333 PyObject *resultobj = 0;
4334 wxPen *arg1 = (wxPen *) 0 ;
4335 wxColour result;
4336 void *argp1 = 0 ;
4337 int res1 = 0 ;
4338 PyObject *swig_obj[1] ;
4339
4340 if (!args) SWIG_fail;
4341 swig_obj[0] = args;
4342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4343 if (!SWIG_IsOK(res1)) {
4344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4345 }
4346 arg1 = reinterpret_cast< wxPen * >(argp1);
4347 {
4348 PyThreadState* __tstate = wxPyBeginAllowThreads();
4349 result = (arg1)->GetColour();
4350 wxPyEndAllowThreads(__tstate);
4351 if (PyErr_Occurred()) SWIG_fail;
4352 }
4353 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4354 return resultobj;
4355fail:
4356 return NULL;
d55e5bfc
RD
4357}
4358
4359
554f62e9
RD
4360SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4361 PyObject *resultobj = 0;
4362 wxPen *arg1 = (wxPen *) 0 ;
4363 int result;
4364 void *argp1 = 0 ;
4365 int res1 = 0 ;
4366 PyObject *swig_obj[1] ;
4367
4368 if (!args) SWIG_fail;
4369 swig_obj[0] = args;
4370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4371 if (!SWIG_IsOK(res1)) {
4372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4373 }
4374 arg1 = reinterpret_cast< wxPen * >(argp1);
4375 {
4376 PyThreadState* __tstate = wxPyBeginAllowThreads();
4377 result = (int)(arg1)->GetJoin();
4378 wxPyEndAllowThreads(__tstate);
4379 if (PyErr_Occurred()) SWIG_fail;
4380 }
4381 resultobj = SWIG_From_int(static_cast< int >(result));
4382 return resultobj;
4383fail:
4384 return NULL;
d55e5bfc
RD
4385}
4386
4387
554f62e9
RD
4388SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4389 PyObject *resultobj = 0;
4390 wxPen *arg1 = (wxPen *) 0 ;
4391 int result;
4392 void *argp1 = 0 ;
4393 int res1 = 0 ;
4394 PyObject *swig_obj[1] ;
4395
4396 if (!args) SWIG_fail;
4397 swig_obj[0] = args;
4398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4399 if (!SWIG_IsOK(res1)) {
4400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4401 }
4402 arg1 = reinterpret_cast< wxPen * >(argp1);
4403 {
4404 PyThreadState* __tstate = wxPyBeginAllowThreads();
4405 result = (int)(arg1)->GetStyle();
4406 wxPyEndAllowThreads(__tstate);
4407 if (PyErr_Occurred()) SWIG_fail;
4408 }
4409 resultobj = SWIG_From_int(static_cast< int >(result));
4410 return resultobj;
4411fail:
4412 return NULL;
d55e5bfc
RD
4413}
4414
4415
554f62e9
RD
4416SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4417 PyObject *resultobj = 0;
4418 wxPen *arg1 = (wxPen *) 0 ;
4419 int result;
4420 void *argp1 = 0 ;
4421 int res1 = 0 ;
4422 PyObject *swig_obj[1] ;
4423
4424 if (!args) SWIG_fail;
4425 swig_obj[0] = args;
4426 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4427 if (!SWIG_IsOK(res1)) {
4428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4429 }
4430 arg1 = reinterpret_cast< wxPen * >(argp1);
4431 {
4432 PyThreadState* __tstate = wxPyBeginAllowThreads();
4433 result = (int)(arg1)->GetWidth();
4434 wxPyEndAllowThreads(__tstate);
4435 if (PyErr_Occurred()) SWIG_fail;
4436 }
4437 resultobj = SWIG_From_int(static_cast< int >(result));
4438 return resultobj;
4439fail:
4440 return NULL;
d55e5bfc
RD
4441}
4442
4443
554f62e9
RD
4444SWIGINTERN PyObject *_wrap_Pen_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4445 PyObject *resultobj = 0;
4446 wxPen *arg1 = (wxPen *) 0 ;
4447 bool result;
4448 void *argp1 = 0 ;
4449 int res1 = 0 ;
4450 PyObject *swig_obj[1] ;
4451
4452 if (!args) SWIG_fail;
4453 swig_obj[0] = args;
4454 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4455 if (!SWIG_IsOK(res1)) {
4456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_Ok" "', expected argument " "1"" of type '" "wxPen *""'");
4457 }
4458 arg1 = reinterpret_cast< wxPen * >(argp1);
4459 {
4460 PyThreadState* __tstate = wxPyBeginAllowThreads();
4461 result = (bool)(arg1)->Ok();
4462 wxPyEndAllowThreads(__tstate);
4463 if (PyErr_Occurred()) SWIG_fail;
4464 }
4465 {
4466 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4467 }
4468 return resultobj;
4469fail:
4470 return NULL;
4471}
4472
4473
4474SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4475 PyObject *resultobj = 0;
4476 wxPen *arg1 = (wxPen *) 0 ;
4477 int arg2 ;
4478 void *argp1 = 0 ;
4479 int res1 = 0 ;
4480 int val2 ;
4481 int ecode2 = 0 ;
4482 PyObject * obj0 = 0 ;
4483 PyObject * obj1 = 0 ;
4484 char * kwnames[] = {
4485 (char *) "self",(char *) "cap_style", NULL
4486 };
4487
4488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
4489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4490 if (!SWIG_IsOK(res1)) {
4491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4492 }
4493 arg1 = reinterpret_cast< wxPen * >(argp1);
4494 ecode2 = SWIG_AsVal_int(obj1, &val2);
4495 if (!SWIG_IsOK(ecode2)) {
4496 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
4497 }
4498 arg2 = static_cast< int >(val2);
4499 {
4500 PyThreadState* __tstate = wxPyBeginAllowThreads();
4501 (arg1)->SetCap(arg2);
4502 wxPyEndAllowThreads(__tstate);
4503 if (PyErr_Occurred()) SWIG_fail;
4504 }
4505 resultobj = SWIG_Py_Void();
4506 return resultobj;
4507fail:
4508 return NULL;
4509}
4510
4511
4512SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4513 PyObject *resultobj = 0;
4514 wxPen *arg1 = (wxPen *) 0 ;
4515 wxColour *arg2 = 0 ;
4516 void *argp1 = 0 ;
4517 int res1 = 0 ;
4518 wxColour temp2 ;
4519 PyObject * obj0 = 0 ;
4520 PyObject * obj1 = 0 ;
4521 char * kwnames[] = {
4522 (char *) "self",(char *) "colour", NULL
4523 };
4524
4525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
4526 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4527 if (!SWIG_IsOK(res1)) {
4528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4529 }
4530 arg1 = reinterpret_cast< wxPen * >(argp1);
4531 {
4532 arg2 = &temp2;
4533 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4534 }
4535 {
4536 PyThreadState* __tstate = wxPyBeginAllowThreads();
4537 (arg1)->SetColour(*arg2);
4538 wxPyEndAllowThreads(__tstate);
4539 if (PyErr_Occurred()) SWIG_fail;
4540 }
4541 resultobj = SWIG_Py_Void();
4542 return resultobj;
4543fail:
4544 return NULL;
4545}
4546
4547
4548SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4549 PyObject *resultobj = 0;
4550 wxPen *arg1 = (wxPen *) 0 ;
4551 int arg2 ;
4552 void *argp1 = 0 ;
4553 int res1 = 0 ;
4554 int val2 ;
4555 int ecode2 = 0 ;
4556 PyObject * obj0 = 0 ;
4557 PyObject * obj1 = 0 ;
4558 char * kwnames[] = {
4559 (char *) "self",(char *) "join_style", NULL
4560 };
4561
4562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
4563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4564 if (!SWIG_IsOK(res1)) {
4565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4566 }
4567 arg1 = reinterpret_cast< wxPen * >(argp1);
4568 ecode2 = SWIG_AsVal_int(obj1, &val2);
4569 if (!SWIG_IsOK(ecode2)) {
4570 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
4571 }
4572 arg2 = static_cast< int >(val2);
4573 {
4574 PyThreadState* __tstate = wxPyBeginAllowThreads();
4575 (arg1)->SetJoin(arg2);
4576 wxPyEndAllowThreads(__tstate);
4577 if (PyErr_Occurred()) SWIG_fail;
4578 }
4579 resultobj = SWIG_Py_Void();
4580 return resultobj;
4581fail:
4582 return NULL;
4583}
4584
4585
4586SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4587 PyObject *resultobj = 0;
4588 wxPen *arg1 = (wxPen *) 0 ;
4589 int arg2 ;
4590 void *argp1 = 0 ;
4591 int res1 = 0 ;
4592 int val2 ;
4593 int ecode2 = 0 ;
4594 PyObject * obj0 = 0 ;
4595 PyObject * obj1 = 0 ;
4596 char * kwnames[] = {
4597 (char *) "self",(char *) "style", NULL
4598 };
4599
4600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
4601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4602 if (!SWIG_IsOK(res1)) {
4603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4604 }
4605 arg1 = reinterpret_cast< wxPen * >(argp1);
4606 ecode2 = SWIG_AsVal_int(obj1, &val2);
4607 if (!SWIG_IsOK(ecode2)) {
4608 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
4609 }
4610 arg2 = static_cast< int >(val2);
4611 {
4612 PyThreadState* __tstate = wxPyBeginAllowThreads();
4613 (arg1)->SetStyle(arg2);
4614 wxPyEndAllowThreads(__tstate);
4615 if (PyErr_Occurred()) SWIG_fail;
4616 }
4617 resultobj = SWIG_Py_Void();
4618 return resultobj;
4619fail:
4620 return NULL;
4621}
4622
4623
4624SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4625 PyObject *resultobj = 0;
4626 wxPen *arg1 = (wxPen *) 0 ;
4627 int arg2 ;
4628 void *argp1 = 0 ;
4629 int res1 = 0 ;
4630 int val2 ;
4631 int ecode2 = 0 ;
4632 PyObject * obj0 = 0 ;
4633 PyObject * obj1 = 0 ;
4634 char * kwnames[] = {
4635 (char *) "self",(char *) "width", NULL
4636 };
4637
4638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
4639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4640 if (!SWIG_IsOK(res1)) {
4641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4642 }
4643 arg1 = reinterpret_cast< wxPen * >(argp1);
4644 ecode2 = SWIG_AsVal_int(obj1, &val2);
4645 if (!SWIG_IsOK(ecode2)) {
4646 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
4647 }
4648 arg2 = static_cast< int >(val2);
4649 {
4650 PyThreadState* __tstate = wxPyBeginAllowThreads();
4651 (arg1)->SetWidth(arg2);
4652 wxPyEndAllowThreads(__tstate);
4653 if (PyErr_Occurred()) SWIG_fail;
4654 }
4655 resultobj = SWIG_Py_Void();
4656 return resultobj;
4657fail:
4658 return NULL;
4659}
4660
4661
4662SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4663 PyObject *resultobj = 0;
4664 wxPen *arg1 = (wxPen *) 0 ;
4665 int arg2 ;
4666 wxDash *arg3 = (wxDash *) 0 ;
4667 void *argp1 = 0 ;
4668 int res1 = 0 ;
4669 PyObject * obj0 = 0 ;
4670 PyObject * obj1 = 0 ;
4671 char * kwnames[] = {
4672 (char *) "self",(char *) "dashes", NULL
4673 };
4674
4675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
4676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4677 if (!SWIG_IsOK(res1)) {
4678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4679 }
4680 arg1 = reinterpret_cast< wxPen * >(argp1);
4681 {
4682 arg2 = PyList_Size(obj1);
4683 arg3 = (wxDash*)byte_LIST_helper(obj1);
4684 if (arg3 == NULL) SWIG_fail;
4685 }
4686 {
4687 PyThreadState* __tstate = wxPyBeginAllowThreads();
4688 (arg1)->SetDashes(arg2,arg3);
4689 wxPyEndAllowThreads(__tstate);
4690 if (PyErr_Occurred()) SWIG_fail;
4691 }
4692 resultobj = SWIG_Py_Void();
4693 {
4694 if (arg3) delete [] arg3;
4695 }
4696 return resultobj;
4697fail:
4698 {
4699 if (arg3) delete [] arg3;
4700 }
4701 return NULL;
d55e5bfc
RD
4702}
4703
4704
554f62e9
RD
4705SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4706 PyObject *resultobj = 0;
4707 wxPen *arg1 = (wxPen *) 0 ;
4708 PyObject *result = 0 ;
4709 void *argp1 = 0 ;
4710 int res1 = 0 ;
4711 PyObject *swig_obj[1] ;
4712
4713 if (!args) SWIG_fail;
4714 swig_obj[0] = args;
4715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4716 if (!SWIG_IsOK(res1)) {
4717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4718 }
4719 arg1 = reinterpret_cast< wxPen * >(argp1);
4720 {
4721 PyThreadState* __tstate = wxPyBeginAllowThreads();
4722 result = (PyObject *)wxPen_GetDashes(arg1);
4723 wxPyEndAllowThreads(__tstate);
4724 if (PyErr_Occurred()) SWIG_fail;
4725 }
4726 resultobj = result;
4727 return resultobj;
4728fail:
4729 return NULL;
4730}
4731
4732
4733SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4734 PyObject *resultobj = 0;
4735 wxPen *arg1 = (wxPen *) 0 ;
4736 PyObject *arg2 = (PyObject *) 0 ;
4737 PyObject *arg3 = (PyObject *) 0 ;
4738 void *argp1 = 0 ;
4739 int res1 = 0 ;
4740 PyObject * obj0 = 0 ;
4741 PyObject * obj1 = 0 ;
4742 PyObject * obj2 = 0 ;
4743 char * kwnames[] = {
4744 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
4745 };
4746
4747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4749 if (!SWIG_IsOK(res1)) {
4750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4751 }
4752 arg1 = reinterpret_cast< wxPen * >(argp1);
4753 arg2 = obj1;
4754 arg3 = obj2;
4755 {
4756 PyThreadState* __tstate = wxPyBeginAllowThreads();
4757 wxPen__SetDashes(arg1,arg2,arg3);
4758 wxPyEndAllowThreads(__tstate);
4759 if (PyErr_Occurred()) SWIG_fail;
4760 }
4761 resultobj = SWIG_Py_Void();
4762 return resultobj;
4763fail:
4764 return NULL;
d55e5bfc
RD
4765}
4766
4767
554f62e9
RD
4768SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4769 PyObject *resultobj = 0;
4770 wxPen *arg1 = (wxPen *) 0 ;
4771 int result;
4772 void *argp1 = 0 ;
4773 int res1 = 0 ;
4774 PyObject *swig_obj[1] ;
4775
4776 if (!args) SWIG_fail;
4777 swig_obj[0] = args;
4778 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4779 if (!SWIG_IsOK(res1)) {
4780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
4781 }
4782 arg1 = reinterpret_cast< wxPen * >(argp1);
4783 {
4784 PyThreadState* __tstate = wxPyBeginAllowThreads();
4785 result = (int)((wxPen const *)arg1)->GetDashCount();
4786 wxPyEndAllowThreads(__tstate);
4787 if (PyErr_Occurred()) SWIG_fail;
4788 }
4789 resultobj = SWIG_From_int(static_cast< int >(result));
4790 return resultobj;
4791fail:
4792 return NULL;
d55e5bfc
RD
4793}
4794
4795
554f62e9
RD
4796SWIGINTERN PyObject *_wrap_Pen_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4797 PyObject *resultobj = 0;
4798 wxPen *arg1 = (wxPen *) 0 ;
4799 wxBitmap *result = 0 ;
4800 void *argp1 = 0 ;
4801 int res1 = 0 ;
4802 PyObject *swig_obj[1] ;
4803
4804 if (!args) SWIG_fail;
4805 swig_obj[0] = args;
4806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4807 if (!SWIG_IsOK(res1)) {
4808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
4809 }
4810 arg1 = reinterpret_cast< wxPen * >(argp1);
4811 {
4812 PyThreadState* __tstate = wxPyBeginAllowThreads();
4813 result = (wxBitmap *)(arg1)->GetStipple();
4814 wxPyEndAllowThreads(__tstate);
4815 if (PyErr_Occurred()) SWIG_fail;
4816 }
4817 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
4818 return resultobj;
4819fail:
4820 return NULL;
4821}
4822
4823
4824SWIGINTERN PyObject *_wrap_Pen_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4825 PyObject *resultobj = 0;
4826 wxPen *arg1 = (wxPen *) 0 ;
4827 wxBitmap *arg2 = 0 ;
4828 void *argp1 = 0 ;
4829 int res1 = 0 ;
4830 void *argp2 = 0 ;
4831 int res2 = 0 ;
4832 PyObject * obj0 = 0 ;
4833 PyObject * obj1 = 0 ;
4834 char * kwnames[] = {
4835 (char *) "self",(char *) "stipple", NULL
4836 };
4837
4838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
4839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4840 if (!SWIG_IsOK(res1)) {
4841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
4842 }
4843 arg1 = reinterpret_cast< wxPen * >(argp1);
4844 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
4845 if (!SWIG_IsOK(res2)) {
4846 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
4847 }
4848 if (!argp2) {
4849 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
4850 }
4851 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4852 {
4853 PyThreadState* __tstate = wxPyBeginAllowThreads();
4854 (arg1)->SetStipple(*arg2);
4855 wxPyEndAllowThreads(__tstate);
4856 if (PyErr_Occurred()) SWIG_fail;
4857 }
4858 resultobj = SWIG_Py_Void();
4859 return resultobj;
4860fail:
4861 return NULL;
4862}
4863
4864
4865SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4866 PyObject *resultobj = 0;
4867 wxPen *arg1 = (wxPen *) 0 ;
4868 wxPen *arg2 = (wxPen *) 0 ;
4869 bool result;
4870 void *argp1 = 0 ;
4871 int res1 = 0 ;
4872 void *argp2 = 0 ;
4873 int res2 = 0 ;
4874 PyObject * obj0 = 0 ;
4875 PyObject * obj1 = 0 ;
4876 char * kwnames[] = {
4877 (char *) "self",(char *) "other", NULL
4878 };
4879
4880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4882 if (!SWIG_IsOK(res1)) {
4883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
4884 }
4885 arg1 = reinterpret_cast< wxPen * >(argp1);
4886 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
4887 if (!SWIG_IsOK(res2)) {
4888 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
4889 }
4890 arg2 = reinterpret_cast< wxPen * >(argp2);
4891 {
4892 PyThreadState* __tstate = wxPyBeginAllowThreads();
4893 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
4894 wxPyEndAllowThreads(__tstate);
4895 if (PyErr_Occurred()) SWIG_fail;
4896 }
4897 {
4898 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4899 }
4900 return resultobj;
4901fail:
4902 return NULL;
4903}
4904
4905
4906SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4907 PyObject *resultobj = 0;
4908 wxPen *arg1 = (wxPen *) 0 ;
4909 wxPen *arg2 = (wxPen *) 0 ;
4910 bool result;
4911 void *argp1 = 0 ;
4912 int res1 = 0 ;
4913 void *argp2 = 0 ;
4914 int res2 = 0 ;
4915 PyObject * obj0 = 0 ;
4916 PyObject * obj1 = 0 ;
4917 char * kwnames[] = {
4918 (char *) "self",(char *) "other", NULL
4919 };
4920
4921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4923 if (!SWIG_IsOK(res1)) {
4924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
4925 }
4926 arg1 = reinterpret_cast< wxPen * >(argp1);
4927 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
4928 if (!SWIG_IsOK(res2)) {
4929 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
4930 }
4931 arg2 = reinterpret_cast< wxPen * >(argp2);
4932 {
4933 PyThreadState* __tstate = wxPyBeginAllowThreads();
4934 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
4935 wxPyEndAllowThreads(__tstate);
4936 if (PyErr_Occurred()) SWIG_fail;
4937 }
4938 {
4939 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4940 }
4941 return resultobj;
4942fail:
4943 return NULL;
d55e5bfc
RD
4944}
4945
4946
554f62e9
RD
4947SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4948 PyObject *obj;
4949 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4950 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
4951 return SWIG_Py_Void();
d55e5bfc
RD
4952}
4953
554f62e9
RD
4954SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4955 return SWIG_Python_InitShadowInstance(args);
4956}
d55e5bfc 4957
554f62e9
RD
4958SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4959 PyObject *resultobj = 0;
4960 wxColour *arg1 = 0 ;
4961 int arg2 = (int) wxSOLID ;
4962 wxBrush *result = 0 ;
4963 wxColour temp1 ;
4964 int val2 ;
4965 int ecode2 = 0 ;
4966 PyObject * obj0 = 0 ;
4967 PyObject * obj1 = 0 ;
4968 char * kwnames[] = {
4969 (char *) "colour",(char *) "style", NULL
4970 };
4971
4972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
4973 {
4974 arg1 = &temp1;
4975 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4976 }
4977 if (obj1) {
4978 ecode2 = SWIG_AsVal_int(obj1, &val2);
4979 if (!SWIG_IsOK(ecode2)) {
4980 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
4981 }
4982 arg2 = static_cast< int >(val2);
4983 }
4984 {
4985 if (!wxPyCheckForApp()) SWIG_fail;
4986 PyThreadState* __tstate = wxPyBeginAllowThreads();
4987 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
4988 wxPyEndAllowThreads(__tstate);
4989 if (PyErr_Occurred()) SWIG_fail;
4990 }
4991 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
4992 return resultobj;
4993fail:
4994 return NULL;
4995}
4996
4997
4998SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4999 PyObject *resultobj = 0;
5000 wxBitmap *arg1 = 0 ;
5001 wxBrush *result = 0 ;
5002 void *argp1 = 0 ;
5003 int res1 = 0 ;
5004 PyObject * obj0 = 0 ;
5005 char * kwnames[] = {
5006 (char *) "stippleBitmap", NULL
5007 };
5008
5009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5010 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5011 if (!SWIG_IsOK(res1)) {
5012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5013 }
5014 if (!argp1) {
5015 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5016 }
5017 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5018 {
5019 if (!wxPyCheckForApp()) SWIG_fail;
5020 PyThreadState* __tstate = wxPyBeginAllowThreads();
5021 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5022 wxPyEndAllowThreads(__tstate);
5023 if (PyErr_Occurred()) SWIG_fail;
5024 }
5025 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5026 return resultobj;
5027fail:
5028 return NULL;
d55e5bfc
RD
5029}
5030
5031
554f62e9
RD
5032SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5033 PyObject *resultobj = 0;
5034 wxBrush *arg1 = (wxBrush *) 0 ;
5035 void *argp1 = 0 ;
5036 int res1 = 0 ;
5037 PyObject *swig_obj[1] ;
5038
5039 if (!args) SWIG_fail;
5040 swig_obj[0] = args;
5041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5042 if (!SWIG_IsOK(res1)) {
5043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5044 }
5045 arg1 = reinterpret_cast< wxBrush * >(argp1);
5046 {
5047 PyThreadState* __tstate = wxPyBeginAllowThreads();
5048 delete arg1;
d55e5bfc 5049
554f62e9
RD
5050 wxPyEndAllowThreads(__tstate);
5051 if (PyErr_Occurred()) SWIG_fail;
5052 }
5053 resultobj = SWIG_Py_Void();
5054 return resultobj;
5055fail:
5056 return NULL;
5057}
5058
5059
5060SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5061 PyObject *resultobj = 0;
5062 wxBrush *arg1 = (wxBrush *) 0 ;
5063 wxColour *arg2 = 0 ;
5064 void *argp1 = 0 ;
5065 int res1 = 0 ;
5066 wxColour temp2 ;
5067 PyObject * obj0 = 0 ;
5068 PyObject * obj1 = 0 ;
5069 char * kwnames[] = {
5070 (char *) "self",(char *) "col", NULL
5071 };
5072
5073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5075 if (!SWIG_IsOK(res1)) {
5076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5077 }
5078 arg1 = reinterpret_cast< wxBrush * >(argp1);
5079 {
5080 arg2 = &temp2;
5081 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5082 }
5083 {
5084 PyThreadState* __tstate = wxPyBeginAllowThreads();
5085 (arg1)->SetColour((wxColour const &)*arg2);
5086 wxPyEndAllowThreads(__tstate);
5087 if (PyErr_Occurred()) SWIG_fail;
5088 }
5089 resultobj = SWIG_Py_Void();
5090 return resultobj;
5091fail:
5092 return NULL;
5093}
5094
5095
5096SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5097 PyObject *resultobj = 0;
5098 wxBrush *arg1 = (wxBrush *) 0 ;
5099 int arg2 ;
5100 void *argp1 = 0 ;
5101 int res1 = 0 ;
5102 int val2 ;
5103 int ecode2 = 0 ;
5104 PyObject * obj0 = 0 ;
5105 PyObject * obj1 = 0 ;
5106 char * kwnames[] = {
5107 (char *) "self",(char *) "style", NULL
5108 };
5109
5110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5112 if (!SWIG_IsOK(res1)) {
5113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5114 }
5115 arg1 = reinterpret_cast< wxBrush * >(argp1);
5116 ecode2 = SWIG_AsVal_int(obj1, &val2);
5117 if (!SWIG_IsOK(ecode2)) {
5118 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5119 }
5120 arg2 = static_cast< int >(val2);
5121 {
5122 PyThreadState* __tstate = wxPyBeginAllowThreads();
5123 (arg1)->SetStyle(arg2);
5124 wxPyEndAllowThreads(__tstate);
5125 if (PyErr_Occurred()) SWIG_fail;
5126 }
5127 resultobj = SWIG_Py_Void();
5128 return resultobj;
5129fail:
5130 return NULL;
5131}
5132
5133
5134SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5135 PyObject *resultobj = 0;
5136 wxBrush *arg1 = (wxBrush *) 0 ;
5137 wxBitmap *arg2 = 0 ;
5138 void *argp1 = 0 ;
5139 int res1 = 0 ;
5140 void *argp2 = 0 ;
5141 int res2 = 0 ;
5142 PyObject * obj0 = 0 ;
5143 PyObject * obj1 = 0 ;
5144 char * kwnames[] = {
5145 (char *) "self",(char *) "stipple", NULL
5146 };
5147
5148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5150 if (!SWIG_IsOK(res1)) {
5151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5152 }
5153 arg1 = reinterpret_cast< wxBrush * >(argp1);
5154 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5155 if (!SWIG_IsOK(res2)) {
5156 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5157 }
5158 if (!argp2) {
5159 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5160 }
5161 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5162 {
5163 PyThreadState* __tstate = wxPyBeginAllowThreads();
5164 (arg1)->SetStipple((wxBitmap const &)*arg2);
5165 wxPyEndAllowThreads(__tstate);
5166 if (PyErr_Occurred()) SWIG_fail;
5167 }
5168 resultobj = SWIG_Py_Void();
5169 return resultobj;
5170fail:
5171 return NULL;
d55e5bfc
RD
5172}
5173
5174
554f62e9
RD
5175SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5176 PyObject *resultobj = 0;
5177 wxBrush *arg1 = (wxBrush *) 0 ;
5178 wxColour result;
5179 void *argp1 = 0 ;
5180 int res1 = 0 ;
5181 PyObject *swig_obj[1] ;
5182
5183 if (!args) SWIG_fail;
5184 swig_obj[0] = args;
5185 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5186 if (!SWIG_IsOK(res1)) {
5187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5188 }
5189 arg1 = reinterpret_cast< wxBrush * >(argp1);
5190 {
5191 PyThreadState* __tstate = wxPyBeginAllowThreads();
5192 result = ((wxBrush const *)arg1)->GetColour();
5193 wxPyEndAllowThreads(__tstate);
5194 if (PyErr_Occurred()) SWIG_fail;
5195 }
5196 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5197 return resultobj;
5198fail:
5199 return NULL;
d55e5bfc
RD
5200}
5201
5202
554f62e9
RD
5203SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5204 PyObject *resultobj = 0;
5205 wxBrush *arg1 = (wxBrush *) 0 ;
5206 int result;
5207 void *argp1 = 0 ;
5208 int res1 = 0 ;
5209 PyObject *swig_obj[1] ;
5210
5211 if (!args) SWIG_fail;
5212 swig_obj[0] = args;
5213 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5214 if (!SWIG_IsOK(res1)) {
5215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5216 }
5217 arg1 = reinterpret_cast< wxBrush * >(argp1);
5218 {
5219 PyThreadState* __tstate = wxPyBeginAllowThreads();
5220 result = (int)((wxBrush const *)arg1)->GetStyle();
5221 wxPyEndAllowThreads(__tstate);
5222 if (PyErr_Occurred()) SWIG_fail;
5223 }
5224 resultobj = SWIG_From_int(static_cast< int >(result));
5225 return resultobj;
5226fail:
5227 return NULL;
d55e5bfc
RD
5228}
5229
5230
554f62e9
RD
5231SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5232 PyObject *resultobj = 0;
5233 wxBrush *arg1 = (wxBrush *) 0 ;
5234 wxBitmap *result = 0 ;
5235 void *argp1 = 0 ;
5236 int res1 = 0 ;
5237 PyObject *swig_obj[1] ;
5238
5239 if (!args) SWIG_fail;
5240 swig_obj[0] = args;
5241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5242 if (!SWIG_IsOK(res1)) {
5243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5244 }
5245 arg1 = reinterpret_cast< wxBrush * >(argp1);
5246 {
5247 PyThreadState* __tstate = wxPyBeginAllowThreads();
5248 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5249 wxPyEndAllowThreads(__tstate);
5250 if (PyErr_Occurred()) SWIG_fail;
5251 }
5252 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5253 return resultobj;
5254fail:
5255 return NULL;
d55e5bfc
RD
5256}
5257
5258
554f62e9
RD
5259SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5260 PyObject *resultobj = 0;
5261 wxBrush *arg1 = (wxBrush *) 0 ;
5262 bool result;
5263 void *argp1 = 0 ;
5264 int res1 = 0 ;
5265 PyObject *swig_obj[1] ;
5266
5267 if (!args) SWIG_fail;
5268 swig_obj[0] = args;
5269 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5270 if (!SWIG_IsOK(res1)) {
5271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5272 }
5273 arg1 = reinterpret_cast< wxBrush * >(argp1);
5274 {
5275 PyThreadState* __tstate = wxPyBeginAllowThreads();
5276 result = (bool)((wxBrush const *)arg1)->IsHatch();
5277 wxPyEndAllowThreads(__tstate);
5278 if (PyErr_Occurred()) SWIG_fail;
5279 }
5280 {
5281 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5282 }
5283 return resultobj;
5284fail:
5285 return NULL;
f78cc896
RD
5286}
5287
5288
554f62e9
RD
5289SWIGINTERN PyObject *_wrap_Brush_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5290 PyObject *resultobj = 0;
5291 wxBrush *arg1 = (wxBrush *) 0 ;
5292 bool result;
5293 void *argp1 = 0 ;
5294 int res1 = 0 ;
5295 PyObject *swig_obj[1] ;
5296
5297 if (!args) SWIG_fail;
5298 swig_obj[0] = args;
5299 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5300 if (!SWIG_IsOK(res1)) {
5301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_Ok" "', expected argument " "1"" of type '" "wxBrush *""'");
5302 }
5303 arg1 = reinterpret_cast< wxBrush * >(argp1);
5304 {
5305 PyThreadState* __tstate = wxPyBeginAllowThreads();
5306 result = (bool)(arg1)->Ok();
5307 wxPyEndAllowThreads(__tstate);
5308 if (PyErr_Occurred()) SWIG_fail;
5309 }
5310 {
5311 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5312 }
5313 return resultobj;
5314fail:
5315 return NULL;
d55e5bfc
RD
5316}
5317
5318
554f62e9
RD
5319SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5320 PyObject *obj;
5321 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5322 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5323 return SWIG_Py_Void();
d55e5bfc
RD
5324}
5325
554f62e9
RD
5326SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5327 return SWIG_Python_InitShadowInstance(args);
5328}
d55e5bfc 5329
554f62e9
RD
5330SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5331 PyObject *resultobj = 0;
5332 wxString *arg1 = 0 ;
5333 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5334 wxBitmap *result = 0 ;
5335 bool temp1 = false ;
5336 int val2 ;
5337 int ecode2 = 0 ;
5338 PyObject * obj0 = 0 ;
5339 PyObject * obj1 = 0 ;
5340 char * kwnames[] = {
5341 (char *) "name",(char *) "type", NULL
5342 };
5343
5344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5345 {
5346 arg1 = wxString_in_helper(obj0);
5347 if (arg1 == NULL) SWIG_fail;
5348 temp1 = true;
5349 }
5350 if (obj1) {
5351 ecode2 = SWIG_AsVal_int(obj1, &val2);
5352 if (!SWIG_IsOK(ecode2)) {
5353 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5354 }
5355 arg2 = static_cast< wxBitmapType >(val2);
5356 }
5357 {
5358 if (!wxPyCheckForApp()) SWIG_fail;
5359 PyThreadState* __tstate = wxPyBeginAllowThreads();
5360 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5361 wxPyEndAllowThreads(__tstate);
5362 if (PyErr_Occurred()) SWIG_fail;
5363 }
5364 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5365 {
5366 if (temp1)
5367 delete arg1;
5368 }
5369 return resultobj;
5370fail:
5371 {
5372 if (temp1)
5373 delete arg1;
5374 }
5375 return NULL;
d55e5bfc
RD
5376}
5377
5378
554f62e9
RD
5379SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5380 PyObject *resultobj = 0;
5381 wxBitmap *arg1 = (wxBitmap *) 0 ;
5382 void *argp1 = 0 ;
5383 int res1 = 0 ;
5384 PyObject *swig_obj[1] ;
5385
5386 if (!args) SWIG_fail;
5387 swig_obj[0] = args;
5388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5389 if (!SWIG_IsOK(res1)) {
5390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5391 }
5392 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5393 {
5394 PyThreadState* __tstate = wxPyBeginAllowThreads();
5395 delete arg1;
c24da6d6 5396
554f62e9
RD
5397 wxPyEndAllowThreads(__tstate);
5398 if (PyErr_Occurred()) SWIG_fail;
5399 }
5400 resultobj = SWIG_Py_Void();
5401 return resultobj;
5402fail:
5403 return NULL;
5404}
5405
5406
5407SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5408 PyObject *resultobj = 0;
5409 int arg1 ;
5410 int arg2 ;
5411 int arg3 = (int) -1 ;
5412 wxBitmap *result = 0 ;
5413 int val1 ;
5414 int ecode1 = 0 ;
5415 int val2 ;
5416 int ecode2 = 0 ;
5417 int val3 ;
5418 int ecode3 = 0 ;
5419 PyObject * obj0 = 0 ;
5420 PyObject * obj1 = 0 ;
5421 PyObject * obj2 = 0 ;
5422 char * kwnames[] = {
5423 (char *) "width",(char *) "height",(char *) "depth", NULL
5424 };
5425
5426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5427 ecode1 = SWIG_AsVal_int(obj0, &val1);
5428 if (!SWIG_IsOK(ecode1)) {
5429 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5430 }
5431 arg1 = static_cast< int >(val1);
5432 ecode2 = SWIG_AsVal_int(obj1, &val2);
5433 if (!SWIG_IsOK(ecode2)) {
5434 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5435 }
5436 arg2 = static_cast< int >(val2);
5437 if (obj2) {
5438 ecode3 = SWIG_AsVal_int(obj2, &val3);
5439 if (!SWIG_IsOK(ecode3)) {
5440 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5441 }
5442 arg3 = static_cast< int >(val3);
5443 }
5444 {
5445 if (!wxPyCheckForApp()) SWIG_fail;
5446 PyThreadState* __tstate = wxPyBeginAllowThreads();
5447 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5448 wxPyEndAllowThreads(__tstate);
5449 if (PyErr_Occurred()) SWIG_fail;
5450 }
5451 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5452 return resultobj;
5453fail:
5454 return NULL;
5455}
5456
5457
5458SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5459 PyObject *resultobj = 0;
5460 wxIcon *arg1 = 0 ;
5461 wxBitmap *result = 0 ;
5462 void *argp1 = 0 ;
5463 int res1 = 0 ;
5464 PyObject * obj0 = 0 ;
5465 char * kwnames[] = {
5466 (char *) "icon", NULL
5467 };
5468
5469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
5470 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
5471 if (!SWIG_IsOK(res1)) {
5472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5473 }
5474 if (!argp1) {
5475 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5476 }
5477 arg1 = reinterpret_cast< wxIcon * >(argp1);
5478 {
5479 if (!wxPyCheckForApp()) SWIG_fail;
5480 PyThreadState* __tstate = wxPyBeginAllowThreads();
5481 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
5482 wxPyEndAllowThreads(__tstate);
5483 if (PyErr_Occurred()) SWIG_fail;
5484 }
5485 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5486 return resultobj;
5487fail:
5488 return NULL;
5489}
5490
5491
5492SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5493 PyObject *resultobj = 0;
5494 wxImage *arg1 = 0 ;
5495 int arg2 = (int) -1 ;
5496 wxBitmap *result = 0 ;
5497 void *argp1 = 0 ;
5498 int res1 = 0 ;
5499 int val2 ;
5500 int ecode2 = 0 ;
5501 PyObject * obj0 = 0 ;
5502 PyObject * obj1 = 0 ;
5503 char * kwnames[] = {
5504 (char *) "image",(char *) "depth", NULL
5505 };
5506
5507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
5508 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
5509 if (!SWIG_IsOK(res1)) {
5510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5511 }
5512 if (!argp1) {
5513 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5514 }
5515 arg1 = reinterpret_cast< wxImage * >(argp1);
5516 if (obj1) {
5517 ecode2 = SWIG_AsVal_int(obj1, &val2);
5518 if (!SWIG_IsOK(ecode2)) {
5519 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
5520 }
5521 arg2 = static_cast< int >(val2);
5522 }
5523 {
5524 if (!wxPyCheckForApp()) SWIG_fail;
5525 PyThreadState* __tstate = wxPyBeginAllowThreads();
5526 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
5527 wxPyEndAllowThreads(__tstate);
5528 if (PyErr_Occurred()) SWIG_fail;
5529 }
5530 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5531 return resultobj;
5532fail:
5533 return NULL;
c24da6d6
RD
5534}
5535
5536
554f62e9
RD
5537SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5538 PyObject *resultobj = 0;
5539 PyObject *arg1 = (PyObject *) 0 ;
5540 wxBitmap *result = 0 ;
5541 PyObject * obj0 = 0 ;
5542 char * kwnames[] = {
5543 (char *) "listOfStrings", NULL
5544 };
5545
5546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
5547 arg1 = obj0;
5548 {
5549 if (!wxPyCheckForApp()) SWIG_fail;
5550 PyThreadState* __tstate = wxPyBeginAllowThreads();
5551 result = (wxBitmap *)new_wxBitmap(arg1);
5552 wxPyEndAllowThreads(__tstate);
5553 if (PyErr_Occurred()) SWIG_fail;
5554 }
5555 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5556 return resultobj;
5557fail:
5558 return NULL;
5559}
5560
5561
5562SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5563 PyObject *resultobj = 0;
5564 PyObject *arg1 = (PyObject *) 0 ;
5565 int arg2 ;
5566 int arg3 ;
5567 int arg4 = (int) 1 ;
5568 wxBitmap *result = 0 ;
5569 int val2 ;
5570 int ecode2 = 0 ;
5571 int val3 ;
5572 int ecode3 = 0 ;
5573 int val4 ;
5574 int ecode4 = 0 ;
5575 PyObject * obj0 = 0 ;
5576 PyObject * obj1 = 0 ;
5577 PyObject * obj2 = 0 ;
5578 PyObject * obj3 = 0 ;
5579 char * kwnames[] = {
5580 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
5581 };
5582
5583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
5584 arg1 = obj0;
5585 ecode2 = SWIG_AsVal_int(obj1, &val2);
5586 if (!SWIG_IsOK(ecode2)) {
5587 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
5588 }
5589 arg2 = static_cast< int >(val2);
5590 ecode3 = SWIG_AsVal_int(obj2, &val3);
5591 if (!SWIG_IsOK(ecode3)) {
5592 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
5593 }
5594 arg3 = static_cast< int >(val3);
5595 if (obj3) {
5596 ecode4 = SWIG_AsVal_int(obj3, &val4);
5597 if (!SWIG_IsOK(ecode4)) {
5598 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
5599 }
5600 arg4 = static_cast< int >(val4);
5601 }
5602 {
5603 if (!wxPyCheckForApp()) SWIG_fail;
5604 PyThreadState* __tstate = wxPyBeginAllowThreads();
5605 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
5606 wxPyEndAllowThreads(__tstate);
5607 if (PyErr_Occurred()) SWIG_fail;
5608 }
5609 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5610 return resultobj;
5611fail:
5612 return NULL;
d55e5bfc
RD
5613}
5614
5615
554f62e9
RD
5616SWIGINTERN PyObject *_wrap_Bitmap_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5617 PyObject *resultobj = 0;
5618 wxBitmap *arg1 = (wxBitmap *) 0 ;
5619 long result;
5620 void *argp1 = 0 ;
5621 int res1 = 0 ;
5622 PyObject *swig_obj[1] ;
5623
5624 if (!args) SWIG_fail;
5625 swig_obj[0] = args;
5626 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5627 if (!SWIG_IsOK(res1)) {
5628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
5629 }
5630 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5631 {
5632 PyThreadState* __tstate = wxPyBeginAllowThreads();
5633 result = (long)(arg1)->GetHandle();
5634 wxPyEndAllowThreads(__tstate);
5635 if (PyErr_Occurred()) SWIG_fail;
5636 }
5637 resultobj = SWIG_From_long(static_cast< long >(result));
5638 return resultobj;
5639fail:
5640 return NULL;
5641}
5642
5643
5644SWIGINTERN PyObject *_wrap_Bitmap_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5645 PyObject *resultobj = 0;
5646 wxBitmap *arg1 = (wxBitmap *) 0 ;
5647 long arg2 ;
5648 void *argp1 = 0 ;
5649 int res1 = 0 ;
5650 long val2 ;
5651 int ecode2 = 0 ;
5652 PyObject * obj0 = 0 ;
5653 PyObject * obj1 = 0 ;
5654 char * kwnames[] = {
5655 (char *) "self",(char *) "handle", NULL
5656 };
5657
5658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
5659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5660 if (!SWIG_IsOK(res1)) {
5661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
5662 }
5663 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5664 ecode2 = SWIG_AsVal_long(obj1, &val2);
5665 if (!SWIG_IsOK(ecode2)) {
5666 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHandle" "', expected argument " "2"" of type '" "long""'");
5667 }
5668 arg2 = static_cast< long >(val2);
5669 {
5670 PyThreadState* __tstate = wxPyBeginAllowThreads();
5671 wxBitmap_SetHandle(arg1,arg2);
5672 wxPyEndAllowThreads(__tstate);
5673 if (PyErr_Occurred()) SWIG_fail;
5674 }
5675 resultobj = SWIG_Py_Void();
5676 return resultobj;
5677fail:
5678 return NULL;
d55e5bfc
RD
5679}
5680
5681
554f62e9
RD
5682SWIGINTERN PyObject *_wrap_Bitmap_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5683 PyObject *resultobj = 0;
5684 wxBitmap *arg1 = (wxBitmap *) 0 ;
5685 bool result;
5686 void *argp1 = 0 ;
5687 int res1 = 0 ;
5688 PyObject *swig_obj[1] ;
5689
5690 if (!args) SWIG_fail;
5691 swig_obj[0] = args;
5692 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5693 if (!SWIG_IsOK(res1)) {
5694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_Ok" "', expected argument " "1"" of type '" "wxBitmap *""'");
5695 }
5696 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5697 {
5698 PyThreadState* __tstate = wxPyBeginAllowThreads();
5699 result = (bool)(arg1)->Ok();
5700 wxPyEndAllowThreads(__tstate);
5701 if (PyErr_Occurred()) SWIG_fail;
5702 }
5703 {
5704 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5705 }
5706 return resultobj;
5707fail:
5708 return NULL;
d55e5bfc
RD
5709}
5710
5711
554f62e9
RD
5712SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5713 PyObject *resultobj = 0;
5714 wxBitmap *arg1 = (wxBitmap *) 0 ;
5715 int result;
5716 void *argp1 = 0 ;
5717 int res1 = 0 ;
5718 PyObject *swig_obj[1] ;
5719
5720 if (!args) SWIG_fail;
5721 swig_obj[0] = args;
5722 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5723 if (!SWIG_IsOK(res1)) {
5724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
5725 }
5726 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5727 {
5728 PyThreadState* __tstate = wxPyBeginAllowThreads();
5729 result = (int)(arg1)->GetWidth();
5730 wxPyEndAllowThreads(__tstate);
5731 if (PyErr_Occurred()) SWIG_fail;
5732 }
5733 resultobj = SWIG_From_int(static_cast< int >(result));
5734 return resultobj;
5735fail:
5736 return NULL;
d55e5bfc
RD
5737}
5738
5739
554f62e9
RD
5740SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5741 PyObject *resultobj = 0;
5742 wxBitmap *arg1 = (wxBitmap *) 0 ;
5743 int result;
5744 void *argp1 = 0 ;
5745 int res1 = 0 ;
5746 PyObject *swig_obj[1] ;
5747
5748 if (!args) SWIG_fail;
5749 swig_obj[0] = args;
5750 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5751 if (!SWIG_IsOK(res1)) {
5752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
5753 }
5754 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5755 {
5756 PyThreadState* __tstate = wxPyBeginAllowThreads();
5757 result = (int)(arg1)->GetHeight();
5758 wxPyEndAllowThreads(__tstate);
5759 if (PyErr_Occurred()) SWIG_fail;
5760 }
5761 resultobj = SWIG_From_int(static_cast< int >(result));
5762 return resultobj;
5763fail:
5764 return NULL;
c24da6d6
RD
5765}
5766
5767
554f62e9
RD
5768SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5769 PyObject *resultobj = 0;
5770 wxBitmap *arg1 = (wxBitmap *) 0 ;
5771 int result;
5772 void *argp1 = 0 ;
5773 int res1 = 0 ;
5774 PyObject *swig_obj[1] ;
5775
5776 if (!args) SWIG_fail;
5777 swig_obj[0] = args;
5778 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5779 if (!SWIG_IsOK(res1)) {
5780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
5781 }
5782 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5783 {
5784 PyThreadState* __tstate = wxPyBeginAllowThreads();
5785 result = (int)(arg1)->GetDepth();
5786 wxPyEndAllowThreads(__tstate);
5787 if (PyErr_Occurred()) SWIG_fail;
5788 }
5789 resultobj = SWIG_From_int(static_cast< int >(result));
5790 return resultobj;
5791fail:
5792 return NULL;
d55e5bfc
RD
5793}
5794
5795
554f62e9
RD
5796SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5797 PyObject *resultobj = 0;
5798 wxBitmap *arg1 = (wxBitmap *) 0 ;
5799 wxSize result;
5800 void *argp1 = 0 ;
5801 int res1 = 0 ;
5802 PyObject *swig_obj[1] ;
5803
5804 if (!args) SWIG_fail;
5805 swig_obj[0] = args;
5806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5807 if (!SWIG_IsOK(res1)) {
5808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
5809 }
5810 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5811 {
5812 PyThreadState* __tstate = wxPyBeginAllowThreads();
5813 result = wxBitmap_GetSize(arg1);
5814 wxPyEndAllowThreads(__tstate);
5815 if (PyErr_Occurred()) SWIG_fail;
5816 }
5817 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
5818 return resultobj;
5819fail:
5820 return NULL;
d55e5bfc
RD
5821}
5822
5823
554f62e9
RD
5824SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5825 PyObject *resultobj = 0;
5826 wxBitmap *arg1 = (wxBitmap *) 0 ;
5827 SwigValueWrapper<wxImage > result;
5828 void *argp1 = 0 ;
5829 int res1 = 0 ;
5830 PyObject *swig_obj[1] ;
5831
5832 if (!args) SWIG_fail;
5833 swig_obj[0] = args;
5834 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5835 if (!SWIG_IsOK(res1)) {
5836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5837 }
5838 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5839 {
5840 PyThreadState* __tstate = wxPyBeginAllowThreads();
5841 result = ((wxBitmap const *)arg1)->ConvertToImage();
5842 wxPyEndAllowThreads(__tstate);
5843 if (PyErr_Occurred()) SWIG_fail;
5844 }
5845 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
5846 return resultobj;
5847fail:
5848 return NULL;
d55e5bfc
RD
5849}
5850
5851
554f62e9
RD
5852SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5853 PyObject *resultobj = 0;
5854 wxBitmap *arg1 = (wxBitmap *) 0 ;
5855 wxMask *result = 0 ;
5856 void *argp1 = 0 ;
5857 int res1 = 0 ;
5858 PyObject *swig_obj[1] ;
5859
5860 if (!args) SWIG_fail;
5861 swig_obj[0] = args;
5862 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5863 if (!SWIG_IsOK(res1)) {
5864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5865 }
5866 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5867 {
5868 PyThreadState* __tstate = wxPyBeginAllowThreads();
5869 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
5870 wxPyEndAllowThreads(__tstate);
5871 if (PyErr_Occurred()) SWIG_fail;
5872 }
5873 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
5874 return resultobj;
5875fail:
5876 return NULL;
5877}
5878
5879
5880SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5881 PyObject *resultobj = 0;
5882 wxBitmap *arg1 = (wxBitmap *) 0 ;
5883 wxMask *arg2 = (wxMask *) 0 ;
5884 void *argp1 = 0 ;
5885 int res1 = 0 ;
5886 int res2 = 0 ;
5887 PyObject * obj0 = 0 ;
5888 PyObject * obj1 = 0 ;
5889 char * kwnames[] = {
5890 (char *) "self",(char *) "mask", NULL
5891 };
5892
5893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
5894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5895 if (!SWIG_IsOK(res1)) {
5896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
5897 }
5898 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5899 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
5900 if (!SWIG_IsOK(res2)) {
5901 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
5902 }
5903 {
5904 PyThreadState* __tstate = wxPyBeginAllowThreads();
5905 (arg1)->SetMask(arg2);
5906 wxPyEndAllowThreads(__tstate);
5907 if (PyErr_Occurred()) SWIG_fail;
5908 }
5909 resultobj = SWIG_Py_Void();
5910 return resultobj;
5911fail:
5912 return NULL;
5913}
5914
5915
5916SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5917 PyObject *resultobj = 0;
5918 wxBitmap *arg1 = (wxBitmap *) 0 ;
5919 wxColour *arg2 = 0 ;
5920 void *argp1 = 0 ;
5921 int res1 = 0 ;
5922 wxColour temp2 ;
5923 PyObject * obj0 = 0 ;
5924 PyObject * obj1 = 0 ;
5925 char * kwnames[] = {
5926 (char *) "self",(char *) "colour", NULL
5927 };
5928
5929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
5930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5931 if (!SWIG_IsOK(res1)) {
5932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
5933 }
5934 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5935 {
5936 arg2 = &temp2;
5937 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5938 }
5939 {
5940 PyThreadState* __tstate = wxPyBeginAllowThreads();
5941 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
5942 wxPyEndAllowThreads(__tstate);
5943 if (PyErr_Occurred()) SWIG_fail;
5944 }
5945 resultobj = SWIG_Py_Void();
5946 return resultobj;
5947fail:
5948 return NULL;
5949}
5950
5951
5952SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5953 PyObject *resultobj = 0;
5954 wxBitmap *arg1 = (wxBitmap *) 0 ;
5955 wxRect *arg2 = 0 ;
5956 SwigValueWrapper<wxBitmap > result;
5957 void *argp1 = 0 ;
5958 int res1 = 0 ;
5959 wxRect temp2 ;
5960 PyObject * obj0 = 0 ;
5961 PyObject * obj1 = 0 ;
5962 char * kwnames[] = {
5963 (char *) "self",(char *) "rect", NULL
5964 };
5965
5966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5968 if (!SWIG_IsOK(res1)) {
5969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5970 }
5971 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5972 {
5973 arg2 = &temp2;
5974 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5975 }
5976 {
5977 PyThreadState* __tstate = wxPyBeginAllowThreads();
5978 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
5979 wxPyEndAllowThreads(__tstate);
5980 if (PyErr_Occurred()) SWIG_fail;
5981 }
5982 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5983 return resultobj;
5984fail:
5985 return NULL;
5986}
5987
5988
5989SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5990 PyObject *resultobj = 0;
5991 wxBitmap *arg1 = (wxBitmap *) 0 ;
5992 wxString *arg2 = 0 ;
5993 wxBitmapType arg3 ;
5994 wxPalette *arg4 = (wxPalette *) NULL ;
5995 bool result;
5996 void *argp1 = 0 ;
5997 int res1 = 0 ;
5998 bool temp2 = false ;
5999 int val3 ;
6000 int ecode3 = 0 ;
6001 void *argp4 = 0 ;
6002 int res4 = 0 ;
6003 PyObject * obj0 = 0 ;
6004 PyObject * obj1 = 0 ;
6005 PyObject * obj2 = 0 ;
6006 PyObject * obj3 = 0 ;
6007 char * kwnames[] = {
6008 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6009 };
6010
6011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6013 if (!SWIG_IsOK(res1)) {
6014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6015 }
6016 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6017 {
6018 arg2 = wxString_in_helper(obj1);
6019 if (arg2 == NULL) SWIG_fail;
6020 temp2 = true;
6021 }
6022 ecode3 = SWIG_AsVal_int(obj2, &val3);
6023 if (!SWIG_IsOK(ecode3)) {
6024 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6025 }
6026 arg3 = static_cast< wxBitmapType >(val3);
6027 if (obj3) {
6028 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6029 if (!SWIG_IsOK(res4)) {
6030 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
d04418a7 6031 }
554f62e9
RD
6032 arg4 = reinterpret_cast< wxPalette * >(argp4);
6033 }
6034 {
6035 PyThreadState* __tstate = wxPyBeginAllowThreads();
6036 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
6037 wxPyEndAllowThreads(__tstate);
6038 if (PyErr_Occurred()) SWIG_fail;
6039 }
6040 {
6041 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6042 }
6043 {
6044 if (temp2)
6045 delete arg2;
6046 }
6047 return resultobj;
6048fail:
6049 {
6050 if (temp2)
6051 delete arg2;
6052 }
6053 return NULL;
6054}
6055
6056
6057SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6058 PyObject *resultobj = 0;
6059 wxBitmap *arg1 = (wxBitmap *) 0 ;
6060 wxString *arg2 = 0 ;
6061 wxBitmapType arg3 ;
6062 bool result;
6063 void *argp1 = 0 ;
6064 int res1 = 0 ;
6065 bool temp2 = false ;
6066 int val3 ;
6067 int ecode3 = 0 ;
6068 PyObject * obj0 = 0 ;
6069 PyObject * obj1 = 0 ;
6070 PyObject * obj2 = 0 ;
6071 char * kwnames[] = {
6072 (char *) "self",(char *) "name",(char *) "type", NULL
6073 };
6074
6075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6077 if (!SWIG_IsOK(res1)) {
6078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6079 }
6080 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6081 {
6082 arg2 = wxString_in_helper(obj1);
6083 if (arg2 == NULL) SWIG_fail;
6084 temp2 = true;
6085 }
6086 ecode3 = SWIG_AsVal_int(obj2, &val3);
6087 if (!SWIG_IsOK(ecode3)) {
6088 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6089 }
6090 arg3 = static_cast< wxBitmapType >(val3);
6091 {
6092 PyThreadState* __tstate = wxPyBeginAllowThreads();
6093 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6094 wxPyEndAllowThreads(__tstate);
6095 if (PyErr_Occurred()) SWIG_fail;
6096 }
6097 {
6098 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6099 }
6100 {
6101 if (temp2)
6102 delete arg2;
6103 }
6104 return resultobj;
6105fail:
6106 {
6107 if (temp2)
6108 delete arg2;
6109 }
6110 return NULL;
d04418a7
RD
6111}
6112
6113
554f62e9
RD
6114SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6115 PyObject *resultobj = 0;
6116 wxBitmap *arg1 = (wxBitmap *) 0 ;
6117 wxPalette *result = 0 ;
6118 void *argp1 = 0 ;
6119 int res1 = 0 ;
6120 PyObject *swig_obj[1] ;
6121
6122 if (!args) SWIG_fail;
6123 swig_obj[0] = args;
6124 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6125 if (!SWIG_IsOK(res1)) {
6126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6127 }
6128 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6129 {
6130 PyThreadState* __tstate = wxPyBeginAllowThreads();
6131 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6132 wxPyEndAllowThreads(__tstate);
6133 if (PyErr_Occurred()) SWIG_fail;
6134 }
6135 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6136 return resultobj;
6137fail:
6138 return NULL;
6139}
6140
6141
6142SWIGINTERN PyObject *_wrap_Bitmap_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6143 PyObject *resultobj = 0;
6144 wxBitmap *arg1 = (wxBitmap *) 0 ;
6145 wxPalette *arg2 = 0 ;
6146 void *argp1 = 0 ;
6147 int res1 = 0 ;
6148 void *argp2 = 0 ;
6149 int res2 = 0 ;
6150 PyObject * obj0 = 0 ;
6151 PyObject * obj1 = 0 ;
6152 char * kwnames[] = {
6153 (char *) "self",(char *) "palette", NULL
6154 };
6155
6156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
6157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6158 if (!SWIG_IsOK(res1)) {
6159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetPalette" "', expected argument " "1"" of type '" "wxBitmap *""'");
6160 }
6161 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6162 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
6163 if (!SWIG_IsOK(res2)) {
6164 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6165 }
6166 if (!argp2) {
6167 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6168 }
6169 arg2 = reinterpret_cast< wxPalette * >(argp2);
6170 {
6171 PyThreadState* __tstate = wxPyBeginAllowThreads();
6172 (arg1)->SetPalette((wxPalette const &)*arg2);
6173 wxPyEndAllowThreads(__tstate);
6174 if (PyErr_Occurred()) SWIG_fail;
6175 }
6176 resultobj = SWIG_Py_Void();
6177 return resultobj;
6178fail:
6179 return NULL;
6180}
6181
6182
6183SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6184 PyObject *resultobj = 0;
6185 wxBitmap *arg1 = (wxBitmap *) 0 ;
6186 wxIcon *arg2 = 0 ;
6187 bool result;
6188 void *argp1 = 0 ;
6189 int res1 = 0 ;
6190 void *argp2 = 0 ;
6191 int res2 = 0 ;
6192 PyObject * obj0 = 0 ;
6193 PyObject * obj1 = 0 ;
6194 char * kwnames[] = {
6195 (char *) "self",(char *) "icon", NULL
6196 };
6197
6198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6200 if (!SWIG_IsOK(res1)) {
6201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6202 }
6203 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6204 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6205 if (!SWIG_IsOK(res2)) {
6206 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6207 }
6208 if (!argp2) {
6209 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6210 }
6211 arg2 = reinterpret_cast< wxIcon * >(argp2);
6212 {
6213 PyThreadState* __tstate = wxPyBeginAllowThreads();
6214 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6215 wxPyEndAllowThreads(__tstate);
6216 if (PyErr_Occurred()) SWIG_fail;
6217 }
6218 {
6219 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6220 }
6221 return resultobj;
6222fail:
6223 return NULL;
6224}
6225
6226
6227SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6228 PyObject *resultobj = 0;
6229 wxBitmap *arg1 = (wxBitmap *) 0 ;
6230 int arg2 ;
6231 void *argp1 = 0 ;
6232 int res1 = 0 ;
6233 int val2 ;
6234 int ecode2 = 0 ;
6235 PyObject * obj0 = 0 ;
6236 PyObject * obj1 = 0 ;
6237 char * kwnames[] = {
6238 (char *) "self",(char *) "height", NULL
6239 };
6240
6241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6243 if (!SWIG_IsOK(res1)) {
6244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6245 }
6246 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6247 ecode2 = SWIG_AsVal_int(obj1, &val2);
6248 if (!SWIG_IsOK(ecode2)) {
6249 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6250 }
6251 arg2 = static_cast< int >(val2);
6252 {
6253 PyThreadState* __tstate = wxPyBeginAllowThreads();
6254 (arg1)->SetHeight(arg2);
6255 wxPyEndAllowThreads(__tstate);
6256 if (PyErr_Occurred()) SWIG_fail;
6257 }
6258 resultobj = SWIG_Py_Void();
6259 return resultobj;
6260fail:
6261 return NULL;
6262}
6263
6264
6265SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6266 PyObject *resultobj = 0;
6267 wxBitmap *arg1 = (wxBitmap *) 0 ;
6268 int arg2 ;
6269 void *argp1 = 0 ;
6270 int res1 = 0 ;
6271 int val2 ;
6272 int ecode2 = 0 ;
6273 PyObject * obj0 = 0 ;
6274 PyObject * obj1 = 0 ;
6275 char * kwnames[] = {
6276 (char *) "self",(char *) "width", NULL
6277 };
6278
6279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6281 if (!SWIG_IsOK(res1)) {
6282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6283 }
6284 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6285 ecode2 = SWIG_AsVal_int(obj1, &val2);
6286 if (!SWIG_IsOK(ecode2)) {
6287 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6288 }
6289 arg2 = static_cast< int >(val2);
6290 {
6291 PyThreadState* __tstate = wxPyBeginAllowThreads();
6292 (arg1)->SetWidth(arg2);
6293 wxPyEndAllowThreads(__tstate);
6294 if (PyErr_Occurred()) SWIG_fail;
6295 }
6296 resultobj = SWIG_Py_Void();
6297 return resultobj;
6298fail:
6299 return NULL;
6300}
6301
6302
6303SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6304 PyObject *resultobj = 0;
6305 wxBitmap *arg1 = (wxBitmap *) 0 ;
6306 int arg2 ;
6307 void *argp1 = 0 ;
6308 int res1 = 0 ;
6309 int val2 ;
6310 int ecode2 = 0 ;
6311 PyObject * obj0 = 0 ;
6312 PyObject * obj1 = 0 ;
6313 char * kwnames[] = {
6314 (char *) "self",(char *) "depth", NULL
6315 };
6316
6317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6319 if (!SWIG_IsOK(res1)) {
6320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6321 }
6322 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6323 ecode2 = SWIG_AsVal_int(obj1, &val2);
6324 if (!SWIG_IsOK(ecode2)) {
6325 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6326 }
6327 arg2 = static_cast< int >(val2);
6328 {
6329 PyThreadState* __tstate = wxPyBeginAllowThreads();
6330 (arg1)->SetDepth(arg2);
6331 wxPyEndAllowThreads(__tstate);
6332 if (PyErr_Occurred()) SWIG_fail;
6333 }
6334 resultobj = SWIG_Py_Void();
6335 return resultobj;
6336fail:
6337 return NULL;
6338}
6339
6340
6341SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6342 PyObject *resultobj = 0;
6343 wxBitmap *arg1 = (wxBitmap *) 0 ;
6344 wxSize *arg2 = 0 ;
6345 void *argp1 = 0 ;
6346 int res1 = 0 ;
6347 wxSize temp2 ;
6348 PyObject * obj0 = 0 ;
6349 PyObject * obj1 = 0 ;
6350 char * kwnames[] = {
6351 (char *) "self",(char *) "size", NULL
6352 };
6353
6354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6356 if (!SWIG_IsOK(res1)) {
6357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6358 }
6359 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6360 {
6361 arg2 = &temp2;
6362 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6363 }
6364 {
6365 PyThreadState* __tstate = wxPyBeginAllowThreads();
6366 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
6367 wxPyEndAllowThreads(__tstate);
6368 if (PyErr_Occurred()) SWIG_fail;
6369 }
6370 resultobj = SWIG_Py_Void();
6371 return resultobj;
6372fail:
6373 return NULL;
6374}
6375
6376
6377SWIGINTERN PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6378 PyObject *resultobj = 0;
6379 wxBitmap *arg1 = (wxBitmap *) 0 ;
6380 wxCursor *arg2 = 0 ;
6381 bool result;
6382 void *argp1 = 0 ;
6383 int res1 = 0 ;
6384 void *argp2 = 0 ;
6385 int res2 = 0 ;
6386 PyObject * obj0 = 0 ;
6387 PyObject * obj1 = 0 ;
6388 char * kwnames[] = {
6389 (char *) "self",(char *) "cursor", NULL
6390 };
6391
6392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) SWIG_fail;
6393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6394 if (!SWIG_IsOK(res1)) {
6395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "1"" of type '" "wxBitmap *""'");
6396 }
6397 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6398 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
6399 if (!SWIG_IsOK(res2)) {
6400 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
6401 }
6402 if (!argp2) {
6403 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
6404 }
6405 arg2 = reinterpret_cast< wxCursor * >(argp2);
6406 {
6407 PyThreadState* __tstate = wxPyBeginAllowThreads();
6408 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
6409 wxPyEndAllowThreads(__tstate);
6410 if (PyErr_Occurred()) SWIG_fail;
6411 }
6412 {
6413 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6414 }
6415 return resultobj;
6416fail:
6417 return NULL;
6418}
6419
6420
6421SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6422 PyObject *resultobj = 0;
6423 wxBitmap *arg1 = (wxBitmap *) 0 ;
6424 wxBitmap *arg2 = (wxBitmap *) 0 ;
6425 bool result;
6426 void *argp1 = 0 ;
6427 int res1 = 0 ;
6428 void *argp2 = 0 ;
6429 int res2 = 0 ;
6430 PyObject * obj0 = 0 ;
6431 PyObject * obj1 = 0 ;
6432 char * kwnames[] = {
6433 (char *) "self",(char *) "other", NULL
6434 };
6435
6436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6438 if (!SWIG_IsOK(res1)) {
6439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6440 }
6441 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6442 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6443 if (!SWIG_IsOK(res2)) {
6444 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6445 }
6446 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6447 {
6448 PyThreadState* __tstate = wxPyBeginAllowThreads();
6449 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
6450 wxPyEndAllowThreads(__tstate);
6451 if (PyErr_Occurred()) SWIG_fail;
6452 }
6453 {
6454 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6455 }
6456 return resultobj;
6457fail:
6458 return NULL;
6459}
6460
6461
6462SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6463 PyObject *resultobj = 0;
6464 wxBitmap *arg1 = (wxBitmap *) 0 ;
6465 wxBitmap *arg2 = (wxBitmap *) 0 ;
6466 bool result;
6467 void *argp1 = 0 ;
6468 int res1 = 0 ;
6469 void *argp2 = 0 ;
6470 int res2 = 0 ;
6471 PyObject * obj0 = 0 ;
6472 PyObject * obj1 = 0 ;
6473 char * kwnames[] = {
6474 (char *) "self",(char *) "other", NULL
6475 };
6476
6477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6479 if (!SWIG_IsOK(res1)) {
6480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6481 }
6482 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6483 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6484 if (!SWIG_IsOK(res2)) {
6485 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6486 }
6487 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6488 {
6489 PyThreadState* __tstate = wxPyBeginAllowThreads();
6490 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6491 wxPyEndAllowThreads(__tstate);
6492 if (PyErr_Occurred()) SWIG_fail;
6493 }
6494 {
6495 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6496 }
6497 return resultobj;
6498fail:
6499 return NULL;
d55e5bfc
RD
6500}
6501
6502
554f62e9
RD
6503SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6504 PyObject *obj;
6505 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6506 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6507 return SWIG_Py_Void();
d55e5bfc
RD
6508}
6509
554f62e9
RD
6510SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6511 return SWIG_Python_InitShadowInstance(args);
093d3ff1
RD
6512}
6513
554f62e9
RD
6514SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6515 PyObject *resultobj = 0;
6516 wxBitmap *arg1 = 0 ;
6517 wxColour const &arg2_defvalue = wxNullColour ;
6518 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
6519 wxMask *result = 0 ;
6520 void *argp1 = 0 ;
6521 int res1 = 0 ;
6522 wxColour temp2 ;
6523 PyObject * obj0 = 0 ;
6524 PyObject * obj1 = 0 ;
6525 char * kwnames[] = {
6526 (char *) "bitmap",(char *) "colour", NULL
6527 };
6528
6529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
6530 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
6531 if (!SWIG_IsOK(res1)) {
6532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6533 }
6534 if (!argp1) {
6535 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6536 }
6537 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6538 if (obj1) {
d55e5bfc 6539 {
554f62e9
RD
6540 arg2 = &temp2;
6541 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 6542 }
554f62e9
RD
6543 }
6544 {
6545 if (!wxPyCheckForApp()) SWIG_fail;
6546 PyThreadState* __tstate = wxPyBeginAllowThreads();
6547 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
6548 wxPyEndAllowThreads(__tstate);
6549 if (PyErr_Occurred()) SWIG_fail;
6550 }
6551 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
6552 return resultobj;
6553fail:
6554 return NULL;
d55e5bfc
RD
6555}
6556
6557
554f62e9
RD
6558SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6559 PyObject *resultobj = 0;
6560 wxMask *arg1 = (wxMask *) 0 ;
6561 void *argp1 = 0 ;
6562 int res1 = 0 ;
6563 PyObject *swig_obj[1] ;
6564
6565 if (!args) SWIG_fail;
6566 swig_obj[0] = args;
6567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6568 if (!SWIG_IsOK(res1)) {
6569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
6570 }
6571 arg1 = reinterpret_cast< wxMask * >(argp1);
6572 {
6573 PyThreadState* __tstate = wxPyBeginAllowThreads();
6574 delete arg1;
d55e5bfc 6575
554f62e9
RD
6576 wxPyEndAllowThreads(__tstate);
6577 if (PyErr_Occurred()) SWIG_fail;
6578 }
6579 resultobj = SWIG_Py_Void();
6580 return resultobj;
6581fail:
6582 return NULL;
6583}
6584
6585
6586SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6587 PyObject *obj;
6588 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6589 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
6590 return SWIG_Py_Void();
6591}
6592
6593SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6594 return SWIG_Python_InitShadowInstance(args);
6595}
6596
6597SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6598 PyObject *resultobj = 0;
6599 wxString *arg1 = 0 ;
6600 wxBitmapType arg2 ;
6601 int arg3 = (int) -1 ;
6602 int arg4 = (int) -1 ;
6603 wxIcon *result = 0 ;
6604 bool temp1 = false ;
6605 int val2 ;
6606 int ecode2 = 0 ;
6607 int val3 ;
6608 int ecode3 = 0 ;
6609 int val4 ;
6610 int ecode4 = 0 ;
6611 PyObject * obj0 = 0 ;
6612 PyObject * obj1 = 0 ;
6613 PyObject * obj2 = 0 ;
6614 PyObject * obj3 = 0 ;
6615 char * kwnames[] = {
6616 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
6617 };
6618
6619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6620 {
6621 arg1 = wxString_in_helper(obj0);
6622 if (arg1 == NULL) SWIG_fail;
6623 temp1 = true;
6624 }
6625 ecode2 = SWIG_AsVal_int(obj1, &val2);
6626 if (!SWIG_IsOK(ecode2)) {
6627 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
6628 }
6629 arg2 = static_cast< wxBitmapType >(val2);
6630 if (obj2) {
6631 ecode3 = SWIG_AsVal_int(obj2, &val3);
6632 if (!SWIG_IsOK(ecode3)) {
6633 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
6634 }
6635 arg3 = static_cast< int >(val3);
6636 }
6637 if (obj3) {
6638 ecode4 = SWIG_AsVal_int(obj3, &val4);
6639 if (!SWIG_IsOK(ecode4)) {
6640 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
6641 }
6642 arg4 = static_cast< int >(val4);
6643 }
6644 {
6645 if (!wxPyCheckForApp()) SWIG_fail;
6646 PyThreadState* __tstate = wxPyBeginAllowThreads();
6647 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
6648 wxPyEndAllowThreads(__tstate);
6649 if (PyErr_Occurred()) SWIG_fail;
6650 }
6651 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
6652 {
6653 if (temp1)
6654 delete arg1;
6655 }
6656 return resultobj;
6657fail:
6658 {
6659 if (temp1)
6660 delete arg1;
6661 }
6662 return NULL;
d55e5bfc
RD
6663}
6664
6665
554f62e9
RD
6666SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6667 PyObject *resultobj = 0;
6668 wxIcon *arg1 = (wxIcon *) 0 ;
6669 void *argp1 = 0 ;
6670 int res1 = 0 ;
6671 PyObject *swig_obj[1] ;
6672
6673 if (!args) SWIG_fail;
6674 swig_obj[0] = args;
6675 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
6676 if (!SWIG_IsOK(res1)) {
6677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
6678 }
6679 arg1 = reinterpret_cast< wxIcon * >(argp1);
6680 {
6681 PyThreadState* __tstate = wxPyBeginAllowThreads();
6682 delete arg1;
d55e5bfc 6683
554f62e9
RD
6684 wxPyEndAllowThreads(__tstate);
6685 if (PyErr_Occurred()) SWIG_fail;
6686 }
6687 resultobj = SWIG_Py_Void();
6688 return resultobj;
6689fail:
6690 return NULL;
d55e5bfc
RD
6691}
6692
6693
554f62e9
RD
6694SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6695 PyObject *resultobj = 0;
6696 wxIcon *result = 0 ;
6697
6698 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
6699 {
6700 if (!wxPyCheckForApp()) SWIG_fail;
6701 PyThreadState* __tstate = wxPyBeginAllowThreads();
6702 result = (wxIcon *)new wxIcon();
6703 wxPyEndAllowThreads(__tstate);
6704 if (PyErr_Occurred()) SWIG_fail;
6705 }
6706 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6707 return resultobj;
6708fail:
6709 return NULL;
6710}
6711
6712
6713SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6714 PyObject *resultobj = 0;
6715 wxIconLocation *arg1 = 0 ;
6716 wxIcon *result = 0 ;
6717 void *argp1 = 0 ;
6718 int res1 = 0 ;
6719 PyObject * obj0 = 0 ;
6720 char * kwnames[] = {
6721 (char *) "loc", NULL
6722 };
6723
6724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
6725 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
6726 if (!SWIG_IsOK(res1)) {
6727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
6728 }
6729 if (!argp1) {
6730 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
6731 }
6732 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
6733 {
6734 if (!wxPyCheckForApp()) SWIG_fail;
6735 PyThreadState* __tstate = wxPyBeginAllowThreads();
6736 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
6737 wxPyEndAllowThreads(__tstate);
6738 if (PyErr_Occurred()) SWIG_fail;
6739 }
6740 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6741 return resultobj;
6742fail:
6743 return NULL;
6744}
6745
6746
6747SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6748 PyObject *resultobj = 0;
6749 wxBitmap *arg1 = 0 ;
6750 wxIcon *result = 0 ;
6751 void *argp1 = 0 ;
6752 int res1 = 0 ;
6753 PyObject * obj0 = 0 ;
6754 char * kwnames[] = {
6755 (char *) "bmp", NULL
6756 };
6757
6758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
6759 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
6760 if (!SWIG_IsOK(res1)) {
6761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6762 }
6763 if (!argp1) {
6764 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6765 }
6766 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6767 {
6768 if (!wxPyCheckForApp()) SWIG_fail;
6769 PyThreadState* __tstate = wxPyBeginAllowThreads();
6770 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
6771 wxPyEndAllowThreads(__tstate);
6772 if (PyErr_Occurred()) SWIG_fail;
6773 }
6774 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6775 return resultobj;
6776fail:
6777 return NULL;
d55e5bfc
RD
6778}
6779
6780
554f62e9
RD
6781SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6782 PyObject *resultobj = 0;
6783 PyObject *arg1 = (PyObject *) 0 ;
6784 wxIcon *result = 0 ;
6785 PyObject * obj0 = 0 ;
6786 char * kwnames[] = {
6787 (char *) "listOfStrings", NULL
6788 };
6789
6790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
6791 arg1 = obj0;
6792 {
6793 if (!wxPyCheckForApp()) SWIG_fail;
6794 PyThreadState* __tstate = wxPyBeginAllowThreads();
6795 result = (wxIcon *)new_wxIcon(arg1);
6796 wxPyEndAllowThreads(__tstate);
6797 if (PyErr_Occurred()) SWIG_fail;
6798 }
6799 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6800 return resultobj;
6801fail:
6802 return NULL;
6803}
6804
6805
6806SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6807 PyObject *resultobj = 0;
6808 wxIcon *arg1 = (wxIcon *) 0 ;
6809 wxString *arg2 = 0 ;
6810 wxBitmapType arg3 ;
6811 bool result;
6812 void *argp1 = 0 ;
6813 int res1 = 0 ;
6814 bool temp2 = false ;
6815 int val3 ;
6816 int ecode3 = 0 ;
6817 PyObject * obj0 = 0 ;
6818 PyObject * obj1 = 0 ;
6819 PyObject * obj2 = 0 ;
6820 char * kwnames[] = {
6821 (char *) "self",(char *) "name",(char *) "type", NULL
6822 };
6823
6824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6826 if (!SWIG_IsOK(res1)) {
6827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
6828 }
6829 arg1 = reinterpret_cast< wxIcon * >(argp1);
6830 {
6831 arg2 = wxString_in_helper(obj1);
6832 if (arg2 == NULL) SWIG_fail;
6833 temp2 = true;
6834 }
6835 ecode3 = SWIG_AsVal_int(obj2, &val3);
6836 if (!SWIG_IsOK(ecode3)) {
6837 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6838 }
6839 arg3 = static_cast< wxBitmapType >(val3);
6840 {
6841 PyThreadState* __tstate = wxPyBeginAllowThreads();
6842 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6843 wxPyEndAllowThreads(__tstate);
6844 if (PyErr_Occurred()) SWIG_fail;
6845 }
6846 {
6847 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6848 }
6849 {
6850 if (temp2)
6851 delete arg2;
6852 }
6853 return resultobj;
6854fail:
6855 {
6856 if (temp2)
6857 delete arg2;
6858 }
6859 return NULL;
d55e5bfc
RD
6860}
6861
6862
554f62e9
RD
6863SWIGINTERN PyObject *_wrap_Icon_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6864 PyObject *resultobj = 0;
6865 wxIcon *arg1 = (wxIcon *) 0 ;
6866 long result;
6867 void *argp1 = 0 ;
6868 int res1 = 0 ;
6869 PyObject *swig_obj[1] ;
6870
6871 if (!args) SWIG_fail;
6872 swig_obj[0] = args;
6873 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6874 if (!SWIG_IsOK(res1)) {
6875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
6876 }
6877 arg1 = reinterpret_cast< wxIcon * >(argp1);
6878 {
6879 PyThreadState* __tstate = wxPyBeginAllowThreads();
6880 result = (long)(arg1)->GetHandle();
6881 wxPyEndAllowThreads(__tstate);
6882 if (PyErr_Occurred()) SWIG_fail;
6883 }
6884 resultobj = SWIG_From_long(static_cast< long >(result));
6885 return resultobj;
6886fail:
6887 return NULL;
6888}
6889
6890
6891SWIGINTERN PyObject *_wrap_Icon_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6892 PyObject *resultobj = 0;
6893 wxIcon *arg1 = (wxIcon *) 0 ;
6894 long arg2 ;
6895 void *argp1 = 0 ;
6896 int res1 = 0 ;
6897 long val2 ;
6898 int ecode2 = 0 ;
6899 PyObject * obj0 = 0 ;
6900 PyObject * obj1 = 0 ;
6901 char * kwnames[] = {
6902 (char *) "self",(char *) "handle", NULL
6903 };
6904
6905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
6906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6907 if (!SWIG_IsOK(res1)) {
6908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
6909 }
6910 arg1 = reinterpret_cast< wxIcon * >(argp1);
6911 ecode2 = SWIG_AsVal_long(obj1, &val2);
6912 if (!SWIG_IsOK(ecode2)) {
6913 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHandle" "', expected argument " "2"" of type '" "long""'");
6914 }
6915 arg2 = static_cast< long >(val2);
6916 {
6917 PyThreadState* __tstate = wxPyBeginAllowThreads();
6918 wxIcon_SetHandle(arg1,arg2);
6919 wxPyEndAllowThreads(__tstate);
6920 if (PyErr_Occurred()) SWIG_fail;
6921 }
6922 resultobj = SWIG_Py_Void();
6923 return resultobj;
6924fail:
6925 return NULL;
d55e5bfc
RD
6926}
6927
6928
554f62e9
RD
6929SWIGINTERN PyObject *_wrap_Icon_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6930 PyObject *resultobj = 0;
6931 wxIcon *arg1 = (wxIcon *) 0 ;
6932 bool result;
6933 void *argp1 = 0 ;
6934 int res1 = 0 ;
6935 PyObject *swig_obj[1] ;
6936
6937 if (!args) SWIG_fail;
6938 swig_obj[0] = args;
6939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6940 if (!SWIG_IsOK(res1)) {
6941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_Ok" "', expected argument " "1"" of type '" "wxIcon *""'");
6942 }
6943 arg1 = reinterpret_cast< wxIcon * >(argp1);
6944 {
6945 PyThreadState* __tstate = wxPyBeginAllowThreads();
6946 result = (bool)(arg1)->Ok();
6947 wxPyEndAllowThreads(__tstate);
6948 if (PyErr_Occurred()) SWIG_fail;
6949 }
6950 {
6951 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6952 }
6953 return resultobj;
6954fail:
6955 return NULL;
d55e5bfc
RD
6956}
6957
6958
554f62e9
RD
6959SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6960 PyObject *resultobj = 0;
6961 wxIcon *arg1 = (wxIcon *) 0 ;
6962 int result;
6963 void *argp1 = 0 ;
6964 int res1 = 0 ;
6965 PyObject *swig_obj[1] ;
6966
6967 if (!args) SWIG_fail;
6968 swig_obj[0] = args;
6969 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6970 if (!SWIG_IsOK(res1)) {
6971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
6972 }
6973 arg1 = reinterpret_cast< wxIcon * >(argp1);
6974 {
6975 PyThreadState* __tstate = wxPyBeginAllowThreads();
6976 result = (int)(arg1)->GetWidth();
6977 wxPyEndAllowThreads(__tstate);
6978 if (PyErr_Occurred()) SWIG_fail;
6979 }
6980 resultobj = SWIG_From_int(static_cast< int >(result));
6981 return resultobj;
6982fail:
6983 return NULL;
c1cb24a4
RD
6984}
6985
6986
554f62e9
RD
6987SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6988 PyObject *resultobj = 0;
6989 wxIcon *arg1 = (wxIcon *) 0 ;
6990 int result;
6991 void *argp1 = 0 ;
6992 int res1 = 0 ;
6993 PyObject *swig_obj[1] ;
6994
6995 if (!args) SWIG_fail;
6996 swig_obj[0] = args;
6997 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6998 if (!SWIG_IsOK(res1)) {
6999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
7000 }
7001 arg1 = reinterpret_cast< wxIcon * >(argp1);
7002 {
7003 PyThreadState* __tstate = wxPyBeginAllowThreads();
7004 result = (int)(arg1)->GetHeight();
7005 wxPyEndAllowThreads(__tstate);
7006 if (PyErr_Occurred()) SWIG_fail;
7007 }
7008 resultobj = SWIG_From_int(static_cast< int >(result));
7009 return resultobj;
7010fail:
7011 return NULL;
c1cb24a4
RD
7012}
7013
7014
554f62e9
RD
7015SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7016 PyObject *resultobj = 0;
7017 wxIcon *arg1 = (wxIcon *) 0 ;
7018 int result;
7019 void *argp1 = 0 ;
7020 int res1 = 0 ;
7021 PyObject *swig_obj[1] ;
7022
7023 if (!args) SWIG_fail;
7024 swig_obj[0] = args;
7025 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
7026 if (!SWIG_IsOK(res1)) {
7027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
7028 }
7029 arg1 = reinterpret_cast< wxIcon * >(argp1);
7030 {
7031 PyThreadState* __tstate = wxPyBeginAllowThreads();
7032 result = (int)(arg1)->GetDepth();
7033 wxPyEndAllowThreads(__tstate);
7034 if (PyErr_Occurred()) SWIG_fail;
7035 }
7036 resultobj = SWIG_From_int(static_cast< int >(result));
7037 return resultobj;
7038fail:
7039 return NULL;
7040}
7041
7042
7043SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7044 PyObject *resultobj = 0;
7045 wxIcon *arg1 = (wxIcon *) 0 ;
7046 int arg2 ;
7047 void *argp1 = 0 ;
7048 int res1 = 0 ;
7049 int val2 ;
7050 int ecode2 = 0 ;
7051 PyObject * obj0 = 0 ;
7052 PyObject * obj1 = 0 ;
7053 char * kwnames[] = {
7054 (char *) "self",(char *) "w", NULL
7055 };
7056
7057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
7059 if (!SWIG_IsOK(res1)) {
7060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
7061 }
7062 arg1 = reinterpret_cast< wxIcon * >(argp1);
7063 ecode2 = SWIG_AsVal_int(obj1, &val2);
7064 if (!SWIG_IsOK(ecode2)) {
7065 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
7066 }
7067 arg2 = static_cast< int >(val2);
7068 {
7069 PyThreadState* __tstate = wxPyBeginAllowThreads();
7070 (arg1)->SetWidth(arg2);
7071 wxPyEndAllowThreads(__tstate);
7072 if (PyErr_Occurred()) SWIG_fail;
7073 }
7074 resultobj = SWIG_Py_Void();
7075 return resultobj;
7076fail:
7077 return NULL;
7078}
7079
7080
7081SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7082 PyObject *resultobj = 0;
7083 wxIcon *arg1 = (wxIcon *) 0 ;
7084 int arg2 ;
7085 void *argp1 = 0 ;
7086 int res1 = 0 ;
7087 int val2 ;
7088 int ecode2 = 0 ;
7089 PyObject * obj0 = 0 ;
7090 PyObject * obj1 = 0 ;
7091 char * kwnames[] = {
7092 (char *) "self",(char *) "h", NULL
7093 };
7094
7095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
7096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
7097 if (!SWIG_IsOK(res1)) {
7098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
7099 }
7100 arg1 = reinterpret_cast< wxIcon * >(argp1);
7101 ecode2 = SWIG_AsVal_int(obj1, &val2);
7102 if (!SWIG_IsOK(ecode2)) {
7103 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
7104 }
7105 arg2 = static_cast< int >(val2);
7106 {
7107 PyThreadState* __tstate = wxPyBeginAllowThreads();
7108 (arg1)->SetHeight(arg2);
7109 wxPyEndAllowThreads(__tstate);
7110 if (PyErr_Occurred()) SWIG_fail;
7111 }
7112 resultobj = SWIG_Py_Void();
7113 return resultobj;
7114fail:
7115 return NULL;
7116}
7117
7118
7119SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7120 PyObject *resultobj = 0;
7121 wxIcon *arg1 = (wxIcon *) 0 ;
7122 int arg2 ;
7123 void *argp1 = 0 ;
7124 int res1 = 0 ;
7125 int val2 ;
7126 int ecode2 = 0 ;
7127 PyObject * obj0 = 0 ;
7128 PyObject * obj1 = 0 ;
7129 char * kwnames[] = {
7130 (char *) "self",(char *) "d", NULL
7131 };
7132
7133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
7134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
7135 if (!SWIG_IsOK(res1)) {
7136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
7137 }
7138 arg1 = reinterpret_cast< wxIcon * >(argp1);
7139 ecode2 = SWIG_AsVal_int(obj1, &val2);
7140 if (!SWIG_IsOK(ecode2)) {
7141 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
7142 }
7143 arg2 = static_cast< int >(val2);
7144 {
7145 PyThreadState* __tstate = wxPyBeginAllowThreads();
7146 (arg1)->SetDepth(arg2);
7147 wxPyEndAllowThreads(__tstate);
7148 if (PyErr_Occurred()) SWIG_fail;
7149 }
7150 resultobj = SWIG_Py_Void();
7151 return resultobj;
7152fail:
7153 return NULL;
7154}
7155
7156
7157SWIGINTERN PyObject *_wrap_Icon_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7158 PyObject *resultobj = 0;
7159 wxIcon *arg1 = (wxIcon *) 0 ;
7160 wxSize *arg2 = 0 ;
7161 void *argp1 = 0 ;
7162 int res1 = 0 ;
7163 wxSize temp2 ;
7164 PyObject * obj0 = 0 ;
7165 PyObject * obj1 = 0 ;
7166 char * kwnames[] = {
7167 (char *) "self",(char *) "size", NULL
7168 };
7169
7170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
7171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
7172 if (!SWIG_IsOK(res1)) {
7173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetSize" "', expected argument " "1"" of type '" "wxIcon *""'");
7174 }
7175 arg1 = reinterpret_cast< wxIcon * >(argp1);
7176 {
7177 arg2 = &temp2;
7178 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7179 }
7180 {
7181 PyThreadState* __tstate = wxPyBeginAllowThreads();
7182 (arg1)->SetSize((wxSize const &)*arg2);
7183 wxPyEndAllowThreads(__tstate);
7184 if (PyErr_Occurred()) SWIG_fail;
7185 }
7186 resultobj = SWIG_Py_Void();
7187 return resultobj;
7188fail:
7189 return NULL;
7190}
7191
7192
7193SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7194 PyObject *resultobj = 0;
7195 wxIcon *arg1 = (wxIcon *) 0 ;
7196 wxBitmap *arg2 = 0 ;
7197 void *argp1 = 0 ;
7198 int res1 = 0 ;
7199 void *argp2 = 0 ;
7200 int res2 = 0 ;
7201 PyObject * obj0 = 0 ;
7202 PyObject * obj1 = 0 ;
7203 char * kwnames[] = {
7204 (char *) "self",(char *) "bmp", NULL
7205 };
7206
7207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
7208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
7209 if (!SWIG_IsOK(res1)) {
7210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
7211 }
7212 arg1 = reinterpret_cast< wxIcon * >(argp1);
7213 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
7214 if (!SWIG_IsOK(res2)) {
7215 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
7216 }
7217 if (!argp2) {
7218 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
7219 }
7220 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7221 {
7222 PyThreadState* __tstate = wxPyBeginAllowThreads();
7223 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
7224 wxPyEndAllowThreads(__tstate);
7225 if (PyErr_Occurred()) SWIG_fail;
7226 }
7227 resultobj = SWIG_Py_Void();
7228 return resultobj;
7229fail:
7230 return NULL;
d55e5bfc
RD
7231}
7232
7233
554f62e9
RD
7234SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7235 PyObject *obj;
7236 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7237 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
7238 return SWIG_Py_Void();
d55e5bfc
RD
7239}
7240
554f62e9
RD
7241SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7242 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
7243}
7244
554f62e9
RD
7245SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7246 PyObject *resultobj = 0;
7247 wxString *arg1 = (wxString *) &wxPyEmptyString ;
7248 int arg2 = (int) 0 ;
7249 wxIconLocation *result = 0 ;
7250 bool temp1 = false ;
7251 int val2 ;
7252 int ecode2 = 0 ;
7253 PyObject * obj0 = 0 ;
7254 PyObject * obj1 = 0 ;
7255 char * kwnames[] = {
7256 (char *) "filename",(char *) "num", NULL
7257 };
7258
7259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
7260 if (obj0) {
d55e5bfc 7261 {
554f62e9
RD
7262 arg1 = wxString_in_helper(obj0);
7263 if (arg1 == NULL) SWIG_fail;
7264 temp1 = true;
d55e5bfc 7265 }
554f62e9
RD
7266 }
7267 if (obj1) {
7268 ecode2 = SWIG_AsVal_int(obj1, &val2);
7269 if (!SWIG_IsOK(ecode2)) {
7270 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
7271 }
7272 arg2 = static_cast< int >(val2);
7273 }
7274 {
7275 PyThreadState* __tstate = wxPyBeginAllowThreads();
7276 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
7277 wxPyEndAllowThreads(__tstate);
7278 if (PyErr_Occurred()) SWIG_fail;
7279 }
7280 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
7281 {
7282 if (temp1)
7283 delete arg1;
7284 }
7285 return resultobj;
7286fail:
7287 {
7288 if (temp1)
7289 delete arg1;
7290 }
7291 return NULL;
d55e5bfc
RD
7292}
7293
7294
554f62e9
RD
7295SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7296 PyObject *resultobj = 0;
7297 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7298 void *argp1 = 0 ;
7299 int res1 = 0 ;
7300 PyObject *swig_obj[1] ;
7301
7302 if (!args) SWIG_fail;
7303 swig_obj[0] = args;
7304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
7305 if (!SWIG_IsOK(res1)) {
7306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7307 }
7308 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7309 {
7310 PyThreadState* __tstate = wxPyBeginAllowThreads();
7311 delete arg1;
d55e5bfc 7312
554f62e9
RD
7313 wxPyEndAllowThreads(__tstate);
7314 if (PyErr_Occurred()) SWIG_fail;
7315 }
7316 resultobj = SWIG_Py_Void();
7317 return resultobj;
7318fail:
7319 return NULL;
d55e5bfc
RD
7320}
7321
7322
554f62e9
RD
7323SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7324 PyObject *resultobj = 0;
7325 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7326 bool result;
7327 void *argp1 = 0 ;
7328 int res1 = 0 ;
7329 PyObject *swig_obj[1] ;
7330
7331 if (!args) SWIG_fail;
7332 swig_obj[0] = args;
7333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7334 if (!SWIG_IsOK(res1)) {
7335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
7336 }
7337 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7338 {
7339 PyThreadState* __tstate = wxPyBeginAllowThreads();
7340 result = (bool)((wxIconLocation const *)arg1)->IsOk();
7341 wxPyEndAllowThreads(__tstate);
7342 if (PyErr_Occurred()) SWIG_fail;
7343 }
7344 {
7345 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7346 }
7347 return resultobj;
7348fail:
7349 return NULL;
7350}
7351
7352
7353SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7354 PyObject *resultobj = 0;
7355 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7356 wxString *arg2 = 0 ;
7357 void *argp1 = 0 ;
7358 int res1 = 0 ;
7359 bool temp2 = false ;
7360 PyObject * obj0 = 0 ;
7361 PyObject * obj1 = 0 ;
7362 char * kwnames[] = {
7363 (char *) "self",(char *) "filename", NULL
7364 };
7365
7366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
7367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7368 if (!SWIG_IsOK(res1)) {
7369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7370 }
7371 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7372 {
7373 arg2 = wxString_in_helper(obj1);
7374 if (arg2 == NULL) SWIG_fail;
7375 temp2 = true;
7376 }
7377 {
7378 PyThreadState* __tstate = wxPyBeginAllowThreads();
7379 (arg1)->SetFileName((wxString const &)*arg2);
7380 wxPyEndAllowThreads(__tstate);
7381 if (PyErr_Occurred()) SWIG_fail;
7382 }
7383 resultobj = SWIG_Py_Void();
7384 {
7385 if (temp2)
7386 delete arg2;
7387 }
7388 return resultobj;
7389fail:
7390 {
7391 if (temp2)
7392 delete arg2;
7393 }
7394 return NULL;
d55e5bfc
RD
7395}
7396
7397
554f62e9
RD
7398SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7399 PyObject *resultobj = 0;
7400 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7401 wxString *result = 0 ;
7402 void *argp1 = 0 ;
7403 int res1 = 0 ;
7404 PyObject *swig_obj[1] ;
7405
7406 if (!args) SWIG_fail;
7407 swig_obj[0] = args;
7408 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7409 if (!SWIG_IsOK(res1)) {
7410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
7411 }
7412 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7413 {
7414 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7415 {
554f62e9
RD
7416 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
7417 result = (wxString *) &_result_ref;
093d3ff1 7418 }
554f62e9
RD
7419 wxPyEndAllowThreads(__tstate);
7420 if (PyErr_Occurred()) SWIG_fail;
7421 }
7422 {
7423#if wxUSE_UNICODE
7424 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
7425#else
7426 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
7427#endif
7428 }
7429 return resultobj;
7430fail:
7431 return NULL;
7432}
7433
7434
7435SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7436 PyObject *resultobj = 0;
7437 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7438 int arg2 ;
7439 void *argp1 = 0 ;
7440 int res1 = 0 ;
7441 int val2 ;
7442 int ecode2 = 0 ;
7443 PyObject * obj0 = 0 ;
7444 PyObject * obj1 = 0 ;
7445 char * kwnames[] = {
7446 (char *) "self",(char *) "num", NULL
7447 };
7448
7449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
7450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7451 if (!SWIG_IsOK(res1)) {
7452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7453 }
7454 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7455 ecode2 = SWIG_AsVal_int(obj1, &val2);
7456 if (!SWIG_IsOK(ecode2)) {
7457 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
7458 }
7459 arg2 = static_cast< int >(val2);
7460 {
7461 PyThreadState* __tstate = wxPyBeginAllowThreads();
7462 wxIconLocation_SetIndex(arg1,arg2);
7463 wxPyEndAllowThreads(__tstate);
7464 if (PyErr_Occurred()) SWIG_fail;
7465 }
7466 resultobj = SWIG_Py_Void();
7467 return resultobj;
7468fail:
7469 return NULL;
d55e5bfc
RD
7470}
7471
7472
554f62e9
RD
7473SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7474 PyObject *resultobj = 0;
7475 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7476 int result;
7477 void *argp1 = 0 ;
7478 int res1 = 0 ;
7479 PyObject *swig_obj[1] ;
7480
7481 if (!args) SWIG_fail;
7482 swig_obj[0] = args;
7483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7484 if (!SWIG_IsOK(res1)) {
7485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7486 }
7487 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7488 {
7489 PyThreadState* __tstate = wxPyBeginAllowThreads();
7490 result = (int)wxIconLocation_GetIndex(arg1);
7491 wxPyEndAllowThreads(__tstate);
7492 if (PyErr_Occurred()) SWIG_fail;
7493 }
7494 resultobj = SWIG_From_int(static_cast< int >(result));
7495 return resultobj;
7496fail:
7497 return NULL;
d55e5bfc
RD
7498}
7499
7500
554f62e9
RD
7501SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7502 PyObject *obj;
7503 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7504 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
7505 return SWIG_Py_Void();
d55e5bfc
RD
7506}
7507
554f62e9
RD
7508SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7509 return SWIG_Python_InitShadowInstance(args);
7510}
d55e5bfc 7511
554f62e9
RD
7512SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7513 PyObject *resultobj = 0;
7514 wxIconBundle *result = 0 ;
7515
7516 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
7517 {
7518 PyThreadState* __tstate = wxPyBeginAllowThreads();
7519 result = (wxIconBundle *)new wxIconBundle();
7520 wxPyEndAllowThreads(__tstate);
7521 if (PyErr_Occurred()) SWIG_fail;
7522 }
7523 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
7524 return resultobj;
7525fail:
7526 return NULL;
7527}
7528
7529
7530SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7531 PyObject *resultobj = 0;
7532 wxString *arg1 = 0 ;
7533 long arg2 ;
7534 wxIconBundle *result = 0 ;
7535 bool temp1 = false ;
7536 long val2 ;
7537 int ecode2 = 0 ;
7538 PyObject * obj0 = 0 ;
7539 PyObject * obj1 = 0 ;
7540 char * kwnames[] = {
7541 (char *) "file",(char *) "type", NULL
7542 };
7543
7544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
7545 {
7546 arg1 = wxString_in_helper(obj0);
7547 if (arg1 == NULL) SWIG_fail;
7548 temp1 = true;
7549 }
7550 ecode2 = SWIG_AsVal_long(obj1, &val2);
7551 if (!SWIG_IsOK(ecode2)) {
7552 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
7553 }
7554 arg2 = static_cast< long >(val2);
7555 {
7556 PyThreadState* __tstate = wxPyBeginAllowThreads();
7557 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
7558 wxPyEndAllowThreads(__tstate);
7559 if (PyErr_Occurred()) SWIG_fail;
7560 }
7561 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
7562 {
7563 if (temp1)
7564 delete arg1;
7565 }
7566 return resultobj;
7567fail:
7568 {
7569 if (temp1)
7570 delete arg1;
7571 }
7572 return NULL;
d55e5bfc
RD
7573}
7574
7575
554f62e9
RD
7576SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7577 PyObject *resultobj = 0;
7578 wxIcon *arg1 = 0 ;
7579 wxIconBundle *result = 0 ;
7580 void *argp1 = 0 ;
7581 int res1 = 0 ;
7582 PyObject * obj0 = 0 ;
7583 char * kwnames[] = {
7584 (char *) "icon", NULL
7585 };
7586
7587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
7588 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
7589 if (!SWIG_IsOK(res1)) {
7590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
7591 }
7592 if (!argp1) {
7593 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
7594 }
7595 arg1 = reinterpret_cast< wxIcon * >(argp1);
7596 {
7597 PyThreadState* __tstate = wxPyBeginAllowThreads();
7598 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
7599 wxPyEndAllowThreads(__tstate);
7600 if (PyErr_Occurred()) SWIG_fail;
7601 }
7602 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
7603 return resultobj;
7604fail:
7605 return NULL;
d55e5bfc
RD
7606}
7607
7608
554f62e9
RD
7609SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7610 PyObject *resultobj = 0;
7611 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7612 void *argp1 = 0 ;
7613 int res1 = 0 ;
7614 PyObject *swig_obj[1] ;
7615
7616 if (!args) SWIG_fail;
7617 swig_obj[0] = args;
7618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
7619 if (!SWIG_IsOK(res1)) {
7620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7621 }
7622 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7623 {
7624 PyThreadState* __tstate = wxPyBeginAllowThreads();
7625 delete arg1;
d55e5bfc 7626
554f62e9
RD
7627 wxPyEndAllowThreads(__tstate);
7628 if (PyErr_Occurred()) SWIG_fail;
7629 }
7630 resultobj = SWIG_Py_Void();
7631 return resultobj;
7632fail:
7633 return NULL;
7634}
7635
7636
7637SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7638 PyObject *resultobj = 0;
7639 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7640 wxIcon *arg2 = 0 ;
7641 void *argp1 = 0 ;
7642 int res1 = 0 ;
7643 void *argp2 = 0 ;
7644 int res2 = 0 ;
7645 PyObject * obj0 = 0 ;
7646 PyObject * obj1 = 0 ;
7647 char * kwnames[] = {
7648 (char *) "self",(char *) "icon", NULL
7649 };
7650
7651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
7652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7653 if (!SWIG_IsOK(res1)) {
7654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7655 }
7656 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7657 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
7658 if (!SWIG_IsOK(res2)) {
7659 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
7660 }
7661 if (!argp2) {
7662 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
7663 }
7664 arg2 = reinterpret_cast< wxIcon * >(argp2);
7665 {
7666 PyThreadState* __tstate = wxPyBeginAllowThreads();
7667 (arg1)->AddIcon((wxIcon const &)*arg2);
7668 wxPyEndAllowThreads(__tstate);
7669 if (PyErr_Occurred()) SWIG_fail;
7670 }
7671 resultobj = SWIG_Py_Void();
7672 return resultobj;
7673fail:
7674 return NULL;
7675}
7676
7677
7678SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7679 PyObject *resultobj = 0;
7680 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7681 wxString *arg2 = 0 ;
7682 long arg3 ;
7683 void *argp1 = 0 ;
7684 int res1 = 0 ;
7685 bool temp2 = false ;
7686 long val3 ;
7687 int ecode3 = 0 ;
7688 PyObject * obj0 = 0 ;
7689 PyObject * obj1 = 0 ;
7690 PyObject * obj2 = 0 ;
7691 char * kwnames[] = {
7692 (char *) "self",(char *) "file",(char *) "type", NULL
7693 };
7694
7695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7697 if (!SWIG_IsOK(res1)) {
7698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7699 }
7700 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7701 {
7702 arg2 = wxString_in_helper(obj1);
7703 if (arg2 == NULL) SWIG_fail;
7704 temp2 = true;
7705 }
7706 ecode3 = SWIG_AsVal_long(obj2, &val3);
7707 if (!SWIG_IsOK(ecode3)) {
7708 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
7709 }
7710 arg3 = static_cast< long >(val3);
7711 {
7712 PyThreadState* __tstate = wxPyBeginAllowThreads();
7713 (arg1)->AddIcon((wxString const &)*arg2,arg3);
7714 wxPyEndAllowThreads(__tstate);
7715 if (PyErr_Occurred()) SWIG_fail;
7716 }
7717 resultobj = SWIG_Py_Void();
7718 {
7719 if (temp2)
7720 delete arg2;
7721 }
7722 return resultobj;
7723fail:
7724 {
7725 if (temp2)
7726 delete arg2;
7727 }
7728 return NULL;
7729}
7730
7731
7732SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7733 PyObject *resultobj = 0;
7734 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7735 wxSize *arg2 = 0 ;
7736 wxIcon *result = 0 ;
7737 void *argp1 = 0 ;
7738 int res1 = 0 ;
7739 wxSize temp2 ;
7740 PyObject * obj0 = 0 ;
7741 PyObject * obj1 = 0 ;
7742 char * kwnames[] = {
7743 (char *) "self",(char *) "size", NULL
7744 };
7745
7746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
7747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7748 if (!SWIG_IsOK(res1)) {
7749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
7750 }
7751 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7752 {
7753 arg2 = &temp2;
7754 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7755 }
7756 {
7757 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 7758 {
554f62e9
RD
7759 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
7760 result = (wxIcon *) &_result_ref;
d55e5bfc 7761 }
554f62e9
RD
7762 wxPyEndAllowThreads(__tstate);
7763 if (PyErr_Occurred()) SWIG_fail;
7764 }
7765 {
7766 wxIcon* resultptr = new wxIcon(*result);
7767 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
7768 }
7769 return resultobj;
7770fail:
7771 return NULL;
7772}
7773
7774
7775SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7776 PyObject *obj;
7777 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7778 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
7779 return SWIG_Py_Void();
7780}
7781
7782SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7783 return SWIG_Python_InitShadowInstance(args);
7784}
7785
7786SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7787 PyObject *resultobj = 0;
7788 wxString *arg1 = 0 ;
7789 long arg2 ;
7790 int arg3 = (int) 0 ;
7791 int arg4 = (int) 0 ;
7792 wxCursor *result = 0 ;
7793 bool temp1 = false ;
7794 long val2 ;
7795 int ecode2 = 0 ;
7796 int val3 ;
7797 int ecode3 = 0 ;
7798 int val4 ;
7799 int ecode4 = 0 ;
7800 PyObject * obj0 = 0 ;
7801 PyObject * obj1 = 0 ;
7802 PyObject * obj2 = 0 ;
7803 PyObject * obj3 = 0 ;
7804 char * kwnames[] = {
7805 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
7806 };
7807
7808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7809 {
7810 arg1 = wxString_in_helper(obj0);
7811 if (arg1 == NULL) SWIG_fail;
7812 temp1 = true;
7813 }
7814 ecode2 = SWIG_AsVal_long(obj1, &val2);
7815 if (!SWIG_IsOK(ecode2)) {
7816 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
7817 }
7818 arg2 = static_cast< long >(val2);
7819 if (obj2) {
7820 ecode3 = SWIG_AsVal_int(obj2, &val3);
7821 if (!SWIG_IsOK(ecode3)) {
7822 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
7823 }
7824 arg3 = static_cast< int >(val3);
7825 }
7826 if (obj3) {
7827 ecode4 = SWIG_AsVal_int(obj3, &val4);
7828 if (!SWIG_IsOK(ecode4)) {
7829 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
7830 }
7831 arg4 = static_cast< int >(val4);
7832 }
7833 {
7834 if (!wxPyCheckForApp()) SWIG_fail;
7835 PyThreadState* __tstate = wxPyBeginAllowThreads();
7836 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
7837 wxPyEndAllowThreads(__tstate);
7838 if (PyErr_Occurred()) SWIG_fail;
7839 }
7840 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
7841 {
7842 if (temp1)
7843 delete arg1;
7844 }
7845 return resultobj;
7846fail:
7847 {
7848 if (temp1)
7849 delete arg1;
7850 }
7851 return NULL;
d55e5bfc
RD
7852}
7853
7854
554f62e9
RD
7855SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7856 PyObject *resultobj = 0;
7857 wxCursor *arg1 = (wxCursor *) 0 ;
7858 void *argp1 = 0 ;
7859 int res1 = 0 ;
7860 PyObject *swig_obj[1] ;
7861
7862 if (!args) SWIG_fail;
7863 swig_obj[0] = args;
7864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
7865 if (!SWIG_IsOK(res1)) {
7866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
7867 }
7868 arg1 = reinterpret_cast< wxCursor * >(argp1);
7869 {
7870 PyThreadState* __tstate = wxPyBeginAllowThreads();
7871 delete arg1;
d55e5bfc 7872
554f62e9
RD
7873 wxPyEndAllowThreads(__tstate);
7874 if (PyErr_Occurred()) SWIG_fail;
7875 }
7876 resultobj = SWIG_Py_Void();
7877 return resultobj;
7878fail:
7879 return NULL;
7880}
7881
7882
7883SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7884 PyObject *resultobj = 0;
7885 int arg1 ;
7886 wxCursor *result = 0 ;
7887 int val1 ;
7888 int ecode1 = 0 ;
7889 PyObject * obj0 = 0 ;
7890 char * kwnames[] = {
7891 (char *) "id", NULL
7892 };
7893
7894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
7895 ecode1 = SWIG_AsVal_int(obj0, &val1);
7896 if (!SWIG_IsOK(ecode1)) {
7897 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
7898 }
7899 arg1 = static_cast< int >(val1);
7900 {
7901 if (!wxPyCheckForApp()) SWIG_fail;
7902 PyThreadState* __tstate = wxPyBeginAllowThreads();
7903 result = (wxCursor *)new wxCursor(arg1);
7904 wxPyEndAllowThreads(__tstate);
7905 if (PyErr_Occurred()) SWIG_fail;
7906 }
7907 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
7908 return resultobj;
7909fail:
7910 return NULL;
7911}
7912
7913
7914SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7915 PyObject *resultobj = 0;
7916 wxImage *arg1 = 0 ;
7917 wxCursor *result = 0 ;
7918 void *argp1 = 0 ;
7919 int res1 = 0 ;
7920 PyObject * obj0 = 0 ;
7921 char * kwnames[] = {
7922 (char *) "image", NULL
7923 };
7924
7925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
7926 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
7927 if (!SWIG_IsOK(res1)) {
7928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
7929 }
7930 if (!argp1) {
7931 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
7932 }
7933 arg1 = reinterpret_cast< wxImage * >(argp1);
7934 {
7935 if (!wxPyCheckForApp()) SWIG_fail;
7936 PyThreadState* __tstate = wxPyBeginAllowThreads();
7937 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
7938 wxPyEndAllowThreads(__tstate);
7939 if (PyErr_Occurred()) SWIG_fail;
7940 }
7941 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
7942 return resultobj;
7943fail:
7944 return NULL;
d55e5bfc
RD
7945}
7946
7947
554f62e9
RD
7948SWIGINTERN PyObject *_wrap_Cursor_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7949 PyObject *resultobj = 0;
7950 wxCursor *arg1 = (wxCursor *) 0 ;
7951 long result;
7952 void *argp1 = 0 ;
7953 int res1 = 0 ;
7954 PyObject *swig_obj[1] ;
7955
7956 if (!args) SWIG_fail;
7957 swig_obj[0] = args;
7958 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
7959 if (!SWIG_IsOK(res1)) {
7960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
7961 }
7962 arg1 = reinterpret_cast< wxCursor * >(argp1);
7963 {
7964 PyThreadState* __tstate = wxPyBeginAllowThreads();
7965 result = (long)(arg1)->GetHandle();
7966 wxPyEndAllowThreads(__tstate);
7967 if (PyErr_Occurred()) SWIG_fail;
7968 }
7969 resultobj = SWIG_From_long(static_cast< long >(result));
7970 return resultobj;
7971fail:
7972 return NULL;
7973}
7974
7975
7976SWIGINTERN PyObject *_wrap_Cursor_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7977 PyObject *resultobj = 0;
7978 wxCursor *arg1 = (wxCursor *) 0 ;
7979 long arg2 ;
7980 void *argp1 = 0 ;
7981 int res1 = 0 ;
7982 long val2 ;
7983 int ecode2 = 0 ;
7984 PyObject * obj0 = 0 ;
7985 PyObject * obj1 = 0 ;
7986 char * kwnames[] = {
7987 (char *) "self",(char *) "handle", NULL
7988 };
7989
7990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
7991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
7992 if (!SWIG_IsOK(res1)) {
7993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
7994 }
7995 arg1 = reinterpret_cast< wxCursor * >(argp1);
7996 ecode2 = SWIG_AsVal_long(obj1, &val2);
7997 if (!SWIG_IsOK(ecode2)) {
7998 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHandle" "', expected argument " "2"" of type '" "long""'");
7999 }
8000 arg2 = static_cast< long >(val2);
8001 {
8002 PyThreadState* __tstate = wxPyBeginAllowThreads();
8003 wxCursor_SetHandle(arg1,arg2);
8004 wxPyEndAllowThreads(__tstate);
8005 if (PyErr_Occurred()) SWIG_fail;
8006 }
8007 resultobj = SWIG_Py_Void();
8008 return resultobj;
8009fail:
8010 return NULL;
d55e5bfc
RD
8011}
8012
8013
554f62e9
RD
8014SWIGINTERN PyObject *_wrap_Cursor_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8015 PyObject *resultobj = 0;
8016 wxCursor *arg1 = (wxCursor *) 0 ;
8017 bool result;
8018 void *argp1 = 0 ;
8019 int res1 = 0 ;
8020 PyObject *swig_obj[1] ;
8021
8022 if (!args) SWIG_fail;
8023 swig_obj[0] = args;
8024 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8025 if (!SWIG_IsOK(res1)) {
8026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_Ok" "', expected argument " "1"" of type '" "wxCursor *""'");
8027 }
8028 arg1 = reinterpret_cast< wxCursor * >(argp1);
8029 {
8030 PyThreadState* __tstate = wxPyBeginAllowThreads();
8031 result = (bool)(arg1)->Ok();
8032 wxPyEndAllowThreads(__tstate);
8033 if (PyErr_Occurred()) SWIG_fail;
8034 }
8035 {
8036 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8037 }
8038 return resultobj;
8039fail:
8040 return NULL;
d55e5bfc
RD
8041}
8042
8043
554f62e9
RD
8044SWIGINTERN PyObject *_wrap_Cursor_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8045 PyObject *resultobj = 0;
8046 wxCursor *arg1 = (wxCursor *) 0 ;
8047 int result;
8048 void *argp1 = 0 ;
8049 int res1 = 0 ;
8050 PyObject *swig_obj[1] ;
8051
8052 if (!args) SWIG_fail;
8053 swig_obj[0] = args;
8054 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8055 if (!SWIG_IsOK(res1)) {
8056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
8057 }
8058 arg1 = reinterpret_cast< wxCursor * >(argp1);
8059 {
8060 PyThreadState* __tstate = wxPyBeginAllowThreads();
8061 result = (int)(arg1)->GetWidth();
8062 wxPyEndAllowThreads(__tstate);
8063 if (PyErr_Occurred()) SWIG_fail;
8064 }
8065 resultobj = SWIG_From_int(static_cast< int >(result));
8066 return resultobj;
8067fail:
8068 return NULL;
d55e5bfc
RD
8069}
8070
8071
554f62e9
RD
8072SWIGINTERN PyObject *_wrap_Cursor_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8073 PyObject *resultobj = 0;
8074 wxCursor *arg1 = (wxCursor *) 0 ;
8075 int result;
8076 void *argp1 = 0 ;
8077 int res1 = 0 ;
8078 PyObject *swig_obj[1] ;
8079
8080 if (!args) SWIG_fail;
8081 swig_obj[0] = args;
8082 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8083 if (!SWIG_IsOK(res1)) {
8084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
8085 }
8086 arg1 = reinterpret_cast< wxCursor * >(argp1);
8087 {
8088 PyThreadState* __tstate = wxPyBeginAllowThreads();
8089 result = (int)(arg1)->GetHeight();
8090 wxPyEndAllowThreads(__tstate);
8091 if (PyErr_Occurred()) SWIG_fail;
8092 }
8093 resultobj = SWIG_From_int(static_cast< int >(result));
8094 return resultobj;
8095fail:
8096 return NULL;
d55e5bfc
RD
8097}
8098
8099
554f62e9
RD
8100SWIGINTERN PyObject *_wrap_Cursor_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8101 PyObject *resultobj = 0;
8102 wxCursor *arg1 = (wxCursor *) 0 ;
8103 int result;
8104 void *argp1 = 0 ;
8105 int res1 = 0 ;
8106 PyObject *swig_obj[1] ;
8107
8108 if (!args) SWIG_fail;
8109 swig_obj[0] = args;
8110 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8111 if (!SWIG_IsOK(res1)) {
8112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
8113 }
8114 arg1 = reinterpret_cast< wxCursor * >(argp1);
8115 {
8116 PyThreadState* __tstate = wxPyBeginAllowThreads();
8117 result = (int)(arg1)->GetDepth();
8118 wxPyEndAllowThreads(__tstate);
8119 if (PyErr_Occurred()) SWIG_fail;
8120 }
8121 resultobj = SWIG_From_int(static_cast< int >(result));
8122 return resultobj;
8123fail:
8124 return NULL;
8125}
8126
8127
8128SWIGINTERN PyObject *_wrap_Cursor_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8129 PyObject *resultobj = 0;
8130 wxCursor *arg1 = (wxCursor *) 0 ;
8131 int arg2 ;
8132 void *argp1 = 0 ;
8133 int res1 = 0 ;
8134 int val2 ;
8135 int ecode2 = 0 ;
8136 PyObject * obj0 = 0 ;
8137 PyObject * obj1 = 0 ;
8138 char * kwnames[] = {
8139 (char *) "self",(char *) "w", NULL
8140 };
8141
8142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
8143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8144 if (!SWIG_IsOK(res1)) {
8145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
8146 }
8147 arg1 = reinterpret_cast< wxCursor * >(argp1);
8148 ecode2 = SWIG_AsVal_int(obj1, &val2);
8149 if (!SWIG_IsOK(ecode2)) {
8150 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetWidth" "', expected argument " "2"" of type '" "int""'");
8151 }
8152 arg2 = static_cast< int >(val2);
8153 {
8154 PyThreadState* __tstate = wxPyBeginAllowThreads();
8155 (arg1)->SetWidth(arg2);
8156 wxPyEndAllowThreads(__tstate);
8157 if (PyErr_Occurred()) SWIG_fail;
8158 }
8159 resultobj = SWIG_Py_Void();
8160 return resultobj;
8161fail:
8162 return NULL;
8163}
8164
8165
8166SWIGINTERN PyObject *_wrap_Cursor_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8167 PyObject *resultobj = 0;
8168 wxCursor *arg1 = (wxCursor *) 0 ;
8169 int arg2 ;
8170 void *argp1 = 0 ;
8171 int res1 = 0 ;
8172 int val2 ;
8173 int ecode2 = 0 ;
8174 PyObject * obj0 = 0 ;
8175 PyObject * obj1 = 0 ;
8176 char * kwnames[] = {
8177 (char *) "self",(char *) "h", NULL
8178 };
8179
8180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
8181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8182 if (!SWIG_IsOK(res1)) {
8183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
8184 }
8185 arg1 = reinterpret_cast< wxCursor * >(argp1);
8186 ecode2 = SWIG_AsVal_int(obj1, &val2);
8187 if (!SWIG_IsOK(ecode2)) {
8188 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHeight" "', expected argument " "2"" of type '" "int""'");
8189 }
8190 arg2 = static_cast< int >(val2);
8191 {
8192 PyThreadState* __tstate = wxPyBeginAllowThreads();
8193 (arg1)->SetHeight(arg2);
8194 wxPyEndAllowThreads(__tstate);
8195 if (PyErr_Occurred()) SWIG_fail;
8196 }
8197 resultobj = SWIG_Py_Void();
8198 return resultobj;
8199fail:
8200 return NULL;
8201}
8202
8203
8204SWIGINTERN PyObject *_wrap_Cursor_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8205 PyObject *resultobj = 0;
8206 wxCursor *arg1 = (wxCursor *) 0 ;
8207 int arg2 ;
8208 void *argp1 = 0 ;
8209 int res1 = 0 ;
8210 int val2 ;
8211 int ecode2 = 0 ;
8212 PyObject * obj0 = 0 ;
8213 PyObject * obj1 = 0 ;
8214 char * kwnames[] = {
8215 (char *) "self",(char *) "d", NULL
8216 };
8217
8218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
8219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8220 if (!SWIG_IsOK(res1)) {
8221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
8222 }
8223 arg1 = reinterpret_cast< wxCursor * >(argp1);
8224 ecode2 = SWIG_AsVal_int(obj1, &val2);
8225 if (!SWIG_IsOK(ecode2)) {
8226 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetDepth" "', expected argument " "2"" of type '" "int""'");
8227 }
8228 arg2 = static_cast< int >(val2);
8229 {
8230 PyThreadState* __tstate = wxPyBeginAllowThreads();
8231 (arg1)->SetDepth(arg2);
8232 wxPyEndAllowThreads(__tstate);
8233 if (PyErr_Occurred()) SWIG_fail;
8234 }
8235 resultobj = SWIG_Py_Void();
8236 return resultobj;
8237fail:
8238 return NULL;
8239}
8240
8241
8242SWIGINTERN PyObject *_wrap_Cursor_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8243 PyObject *resultobj = 0;
8244 wxCursor *arg1 = (wxCursor *) 0 ;
8245 wxSize *arg2 = 0 ;
8246 void *argp1 = 0 ;
8247 int res1 = 0 ;
8248 wxSize temp2 ;
8249 PyObject * obj0 = 0 ;
8250 PyObject * obj1 = 0 ;
8251 char * kwnames[] = {
8252 (char *) "self",(char *) "size", NULL
8253 };
8254
8255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
8256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8257 if (!SWIG_IsOK(res1)) {
8258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetSize" "', expected argument " "1"" of type '" "wxCursor *""'");
8259 }
8260 arg1 = reinterpret_cast< wxCursor * >(argp1);
8261 {
8262 arg2 = &temp2;
8263 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
8264 }
8265 {
8266 PyThreadState* __tstate = wxPyBeginAllowThreads();
8267 (arg1)->SetSize((wxSize const &)*arg2);
8268 wxPyEndAllowThreads(__tstate);
8269 if (PyErr_Occurred()) SWIG_fail;
8270 }
8271 resultobj = SWIG_Py_Void();
8272 return resultobj;
8273fail:
8274 return NULL;
8275}
8276
8277
8278SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8279 PyObject *obj;
8280 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8281 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
8282 return SWIG_Py_Void();
8283}
8284
8285SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8286 return SWIG_Python_InitShadowInstance(args);
8287}
8288
8289SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8290 PyObject *resultobj = 0;
8291 int arg1 = (int) 0 ;
8292 int arg2 = (int) 0 ;
8293 int arg3 = (int) 0 ;
8294 int arg4 = (int) 0 ;
8295 wxRegion *result = 0 ;
8296 int val1 ;
8297 int ecode1 = 0 ;
8298 int val2 ;
8299 int ecode2 = 0 ;
8300 int val3 ;
8301 int ecode3 = 0 ;
8302 int val4 ;
8303 int ecode4 = 0 ;
8304 PyObject * obj0 = 0 ;
8305 PyObject * obj1 = 0 ;
8306 PyObject * obj2 = 0 ;
8307 PyObject * obj3 = 0 ;
8308 char * kwnames[] = {
8309 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8310 };
8311
8312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8313 if (obj0) {
8314 ecode1 = SWIG_AsVal_int(obj0, &val1);
8315 if (!SWIG_IsOK(ecode1)) {
8316 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
8317 }
8318 arg1 = static_cast< int >(val1);
8319 }
8320 if (obj1) {
8321 ecode2 = SWIG_AsVal_int(obj1, &val2);
8322 if (!SWIG_IsOK(ecode2)) {
8323 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
8324 }
8325 arg2 = static_cast< int >(val2);
8326 }
8327 if (obj2) {
8328 ecode3 = SWIG_AsVal_int(obj2, &val3);
8329 if (!SWIG_IsOK(ecode3)) {
8330 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
8331 }
8332 arg3 = static_cast< int >(val3);
8333 }
8334 if (obj3) {
8335 ecode4 = SWIG_AsVal_int(obj3, &val4);
8336 if (!SWIG_IsOK(ecode4)) {
8337 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
8338 }
8339 arg4 = static_cast< int >(val4);
8340 }
8341 {
8342 if (!wxPyCheckForApp()) SWIG_fail;
8343 PyThreadState* __tstate = wxPyBeginAllowThreads();
8344 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
8345 wxPyEndAllowThreads(__tstate);
8346 if (PyErr_Occurred()) SWIG_fail;
8347 }
8348 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
8349 return resultobj;
8350fail:
8351 return NULL;
8352}
8353
8354
8355SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8356 PyObject *resultobj = 0;
8357 wxBitmap *arg1 = 0 ;
8358 wxRegion *result = 0 ;
8359 void *argp1 = 0 ;
8360 int res1 = 0 ;
8361 PyObject * obj0 = 0 ;
8362 char * kwnames[] = {
8363 (char *) "bmp", NULL
8364 };
8365
8366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
8367 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8368 if (!SWIG_IsOK(res1)) {
8369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8370 }
8371 if (!argp1) {
8372 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8373 }
8374 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8375 {
8376 if (!wxPyCheckForApp()) SWIG_fail;
8377 PyThreadState* __tstate = wxPyBeginAllowThreads();
8378 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
8379 wxPyEndAllowThreads(__tstate);
8380 if (PyErr_Occurred()) SWIG_fail;
8381 }
8382 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
8383 return resultobj;
8384fail:
8385 return NULL;
8386}
8387
8388
8389SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8390 PyObject *resultobj = 0;
8391 wxBitmap *arg1 = 0 ;
8392 wxColour *arg2 = 0 ;
8393 int arg3 = (int) 0 ;
8394 wxRegion *result = 0 ;
8395 void *argp1 = 0 ;
8396 int res1 = 0 ;
8397 wxColour temp2 ;
8398 int val3 ;
8399 int ecode3 = 0 ;
8400 PyObject * obj0 = 0 ;
8401 PyObject * obj1 = 0 ;
8402 PyObject * obj2 = 0 ;
8403 char * kwnames[] = {
8404 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
8405 };
8406
8407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8408 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8409 if (!SWIG_IsOK(res1)) {
8410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8411 }
8412 if (!argp1) {
8413 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8414 }
8415 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8416 {
8417 arg2 = &temp2;
8418 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
8419 }
8420 if (obj2) {
8421 ecode3 = SWIG_AsVal_int(obj2, &val3);
8422 if (!SWIG_IsOK(ecode3)) {
8423 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
8424 }
8425 arg3 = static_cast< int >(val3);
8426 }
8427 {
8428 if (!wxPyCheckForApp()) SWIG_fail;
8429 PyThreadState* __tstate = wxPyBeginAllowThreads();
8430 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
8431 wxPyEndAllowThreads(__tstate);
8432 if (PyErr_Occurred()) SWIG_fail;
8433 }
8434 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
8435 return resultobj;
8436fail:
8437 return NULL;
8438}
8439
8440
8441SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8442 PyObject *resultobj = 0;
8443 int arg1 ;
8444 wxPoint *arg2 = (wxPoint *) 0 ;
8445 int arg3 = (int) wxWINDING_RULE ;
8446 wxRegion *result = 0 ;
8447 int val3 ;
8448 int ecode3 = 0 ;
8449 PyObject * obj0 = 0 ;
8450 PyObject * obj1 = 0 ;
8451 char * kwnames[] = {
8452 (char *) "points",(char *) "fillStyle", NULL
8453 };
8454
8455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
8456 {
8457 arg2 = wxPoint_LIST_helper(obj0, &arg1);
8458 if (arg2 == NULL) SWIG_fail;
8459 }
8460 if (obj1) {
8461 ecode3 = SWIG_AsVal_int(obj1, &val3);
8462 if (!SWIG_IsOK(ecode3)) {
8463 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
8464 }
8465 arg3 = static_cast< int >(val3);
8466 }
8467 {
8468 if (!wxPyCheckForApp()) SWIG_fail;
8469 PyThreadState* __tstate = wxPyBeginAllowThreads();
8470 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
8471 wxPyEndAllowThreads(__tstate);
8472 if (PyErr_Occurred()) SWIG_fail;
8473 }
8474 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
8475 {
8476 if (arg2) delete [] arg2;
8477 }
8478 return resultobj;
8479fail:
8480 {
8481 if (arg2) delete [] arg2;
8482 }
8483 return NULL;
d55e5bfc
RD
8484}
8485
8486
554f62e9
RD
8487SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8488 PyObject *resultobj = 0;
8489 wxRegion *arg1 = (wxRegion *) 0 ;
8490 void *argp1 = 0 ;
8491 int res1 = 0 ;
8492 PyObject *swig_obj[1] ;
8493
8494 if (!args) SWIG_fail;
8495 swig_obj[0] = args;
8496 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
8497 if (!SWIG_IsOK(res1)) {
8498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
8499 }
8500 arg1 = reinterpret_cast< wxRegion * >(argp1);
8501 {
8502 PyThreadState* __tstate = wxPyBeginAllowThreads();
8503 delete arg1;
d55e5bfc 8504
554f62e9
RD
8505 wxPyEndAllowThreads(__tstate);
8506 if (PyErr_Occurred()) SWIG_fail;
8507 }
8508 resultobj = SWIG_Py_Void();
8509 return resultobj;
8510fail:
8511 return NULL;
d55e5bfc
RD
8512}
8513
8514
554f62e9
RD
8515SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8516 PyObject *resultobj = 0;
8517 wxRegion *arg1 = (wxRegion *) 0 ;
8518 void *argp1 = 0 ;
8519 int res1 = 0 ;
8520 PyObject *swig_obj[1] ;
8521
8522 if (!args) SWIG_fail;
8523 swig_obj[0] = args;
8524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8525 if (!SWIG_IsOK(res1)) {
8526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
8527 }
8528 arg1 = reinterpret_cast< wxRegion * >(argp1);
8529 {
8530 PyThreadState* __tstate = wxPyBeginAllowThreads();
8531 (arg1)->Clear();
8532 wxPyEndAllowThreads(__tstate);
8533 if (PyErr_Occurred()) SWIG_fail;
8534 }
8535 resultobj = SWIG_Py_Void();
8536 return resultobj;
8537fail:
8538 return NULL;
8539}
8540
8541
8542SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8543 PyObject *resultobj = 0;
8544 wxRegion *arg1 = (wxRegion *) 0 ;
8545 int arg2 ;
8546 int arg3 ;
8547 bool result;
8548 void *argp1 = 0 ;
8549 int res1 = 0 ;
8550 int val2 ;
8551 int ecode2 = 0 ;
8552 int val3 ;
8553 int ecode3 = 0 ;
8554 PyObject * obj0 = 0 ;
8555 PyObject * obj1 = 0 ;
8556 PyObject * obj2 = 0 ;
8557 char * kwnames[] = {
8558 (char *) "self",(char *) "x",(char *) "y", NULL
8559 };
8560
8561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) 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_Offset" "', 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_Offset" "', 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_Offset" "', expected argument " "3"" of type '" "int""'");
8575 }
8576 arg3 = static_cast< int >(val3);
8577 {
8578 PyThreadState* __tstate = wxPyBeginAllowThreads();
8579 result = (bool)(arg1)->Offset(arg2,arg3);
8580 wxPyEndAllowThreads(__tstate);
8581 if (PyErr_Occurred()) SWIG_fail;
8582 }
8583 {
8584 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8585 }
8586 return resultobj;
8587fail:
8588 return NULL;
8589}
8590
8591
8592SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8593 PyObject *resultobj = 0;
8594 wxRegion *arg1 = (wxRegion *) 0 ;
8595 int arg2 ;
8596 int arg3 ;
8597 wxRegionContain result;
8598 void *argp1 = 0 ;
8599 int res1 = 0 ;
8600 int val2 ;
8601 int ecode2 = 0 ;
8602 int val3 ;
8603 int ecode3 = 0 ;
8604 PyObject * obj0 = 0 ;
8605 PyObject * obj1 = 0 ;
8606 PyObject * obj2 = 0 ;
8607 char * kwnames[] = {
8608 (char *) "self",(char *) "x",(char *) "y", NULL
8609 };
8610
8611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8613 if (!SWIG_IsOK(res1)) {
8614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
8615 }
8616 arg1 = reinterpret_cast< wxRegion * >(argp1);
8617 ecode2 = SWIG_AsVal_int(obj1, &val2);
8618 if (!SWIG_IsOK(ecode2)) {
8619 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
8620 }
8621 arg2 = static_cast< int >(val2);
8622 ecode3 = SWIG_AsVal_int(obj2, &val3);
8623 if (!SWIG_IsOK(ecode3)) {
8624 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
8625 }
8626 arg3 = static_cast< int >(val3);
8627 {
8628 PyThreadState* __tstate = wxPyBeginAllowThreads();
8629 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
8630 wxPyEndAllowThreads(__tstate);
8631 if (PyErr_Occurred()) SWIG_fail;
8632 }
8633 resultobj = SWIG_From_int(static_cast< int >(result));
8634 return resultobj;
8635fail:
8636 return NULL;
8637}
8638
8639
8640SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8641 PyObject *resultobj = 0;
8642 wxRegion *arg1 = (wxRegion *) 0 ;
8643 wxPoint *arg2 = 0 ;
8644 wxRegionContain result;
8645 void *argp1 = 0 ;
8646 int res1 = 0 ;
8647 wxPoint temp2 ;
8648 PyObject * obj0 = 0 ;
8649 PyObject * obj1 = 0 ;
8650 char * kwnames[] = {
8651 (char *) "self",(char *) "pt", NULL
8652 };
8653
8654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
8655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8656 if (!SWIG_IsOK(res1)) {
8657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
8658 }
8659 arg1 = reinterpret_cast< wxRegion * >(argp1);
8660 {
8661 arg2 = &temp2;
8662 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
8663 }
8664 {
8665 PyThreadState* __tstate = wxPyBeginAllowThreads();
8666 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
8667 wxPyEndAllowThreads(__tstate);
8668 if (PyErr_Occurred()) SWIG_fail;
8669 }
8670 resultobj = SWIG_From_int(static_cast< int >(result));
8671 return resultobj;
8672fail:
8673 return NULL;
8674}
8675
8676
8677SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8678 PyObject *resultobj = 0;
8679 wxRegion *arg1 = (wxRegion *) 0 ;
8680 wxRect *arg2 = 0 ;
8681 wxRegionContain result;
8682 void *argp1 = 0 ;
8683 int res1 = 0 ;
8684 wxRect temp2 ;
8685 PyObject * obj0 = 0 ;
8686 PyObject * obj1 = 0 ;
8687 char * kwnames[] = {
8688 (char *) "self",(char *) "rect", NULL
8689 };
8690
8691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
8692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8693 if (!SWIG_IsOK(res1)) {
8694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8695 }
8696 arg1 = reinterpret_cast< wxRegion * >(argp1);
8697 {
8698 arg2 = &temp2;
8699 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8700 }
8701 {
8702 PyThreadState* __tstate = wxPyBeginAllowThreads();
8703 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
8704 wxPyEndAllowThreads(__tstate);
8705 if (PyErr_Occurred()) SWIG_fail;
8706 }
8707 resultobj = SWIG_From_int(static_cast< int >(result));
8708 return resultobj;
8709fail:
8710 return NULL;
8711}
8712
8713
8714SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8715 PyObject *resultobj = 0;
8716 wxRegion *arg1 = (wxRegion *) 0 ;
8717 int arg2 ;
8718 int arg3 ;
8719 int arg4 ;
8720 int arg5 ;
8721 wxRegionContain result;
8722 void *argp1 = 0 ;
8723 int res1 = 0 ;
8724 int val2 ;
8725 int ecode2 = 0 ;
8726 int val3 ;
8727 int ecode3 = 0 ;
8728 int val4 ;
8729 int ecode4 = 0 ;
8730 int val5 ;
8731 int ecode5 = 0 ;
8732 PyObject * obj0 = 0 ;
8733 PyObject * obj1 = 0 ;
8734 PyObject * obj2 = 0 ;
8735 PyObject * obj3 = 0 ;
8736 PyObject * obj4 = 0 ;
8737 char * kwnames[] = {
8738 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
8739 };
8740
8741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8743 if (!SWIG_IsOK(res1)) {
8744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
8745 }
8746 arg1 = reinterpret_cast< wxRegion * >(argp1);
8747 ecode2 = SWIG_AsVal_int(obj1, &val2);
8748 if (!SWIG_IsOK(ecode2)) {
8749 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
8750 }
8751 arg2 = static_cast< int >(val2);
8752 ecode3 = SWIG_AsVal_int(obj2, &val3);
8753 if (!SWIG_IsOK(ecode3)) {
8754 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
8755 }
8756 arg3 = static_cast< int >(val3);
8757 ecode4 = SWIG_AsVal_int(obj3, &val4);
8758 if (!SWIG_IsOK(ecode4)) {
8759 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
8760 }
8761 arg4 = static_cast< int >(val4);
8762 ecode5 = SWIG_AsVal_int(obj4, &val5);
8763 if (!SWIG_IsOK(ecode5)) {
8764 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
8765 }
8766 arg5 = static_cast< int >(val5);
8767 {
8768 PyThreadState* __tstate = wxPyBeginAllowThreads();
8769 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
8770 wxPyEndAllowThreads(__tstate);
8771 if (PyErr_Occurred()) SWIG_fail;
8772 }
8773 resultobj = SWIG_From_int(static_cast< int >(result));
8774 return resultobj;
8775fail:
8776 return NULL;
d55e5bfc
RD
8777}
8778
8779
554f62e9
RD
8780SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8781 PyObject *resultobj = 0;
8782 wxRegion *arg1 = (wxRegion *) 0 ;
8783 wxRect result;
8784 void *argp1 = 0 ;
8785 int res1 = 0 ;
8786 PyObject *swig_obj[1] ;
8787
8788 if (!args) SWIG_fail;
8789 swig_obj[0] = args;
8790 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8791 if (!SWIG_IsOK(res1)) {
8792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
8793 }
8794 arg1 = reinterpret_cast< wxRegion * >(argp1);
8795 {
8796 PyThreadState* __tstate = wxPyBeginAllowThreads();
8797 result = (arg1)->GetBox();
8798 wxPyEndAllowThreads(__tstate);
8799 if (PyErr_Occurred()) SWIG_fail;
8800 }
8801 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
8802 return resultobj;
8803fail:
8804 return NULL;
8805}
8806
8807
8808SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8809 PyObject *resultobj = 0;
8810 wxRegion *arg1 = (wxRegion *) 0 ;
8811 int arg2 ;
8812 int arg3 ;
8813 int arg4 ;
8814 int arg5 ;
8815 bool result;
8816 void *argp1 = 0 ;
8817 int res1 = 0 ;
8818 int val2 ;
8819 int ecode2 = 0 ;
8820 int val3 ;
8821 int ecode3 = 0 ;
8822 int val4 ;
8823 int ecode4 = 0 ;
8824 int val5 ;
8825 int ecode5 = 0 ;
8826 PyObject * obj0 = 0 ;
8827 PyObject * obj1 = 0 ;
8828 PyObject * obj2 = 0 ;
8829 PyObject * obj3 = 0 ;
8830 PyObject * obj4 = 0 ;
8831 char * kwnames[] = {
8832 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8833 };
8834
8835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8837 if (!SWIG_IsOK(res1)) {
8838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
8839 }
8840 arg1 = reinterpret_cast< wxRegion * >(argp1);
8841 ecode2 = SWIG_AsVal_int(obj1, &val2);
8842 if (!SWIG_IsOK(ecode2)) {
8843 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
8844 }
8845 arg2 = static_cast< int >(val2);
8846 ecode3 = SWIG_AsVal_int(obj2, &val3);
8847 if (!SWIG_IsOK(ecode3)) {
8848 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
8849 }
8850 arg3 = static_cast< int >(val3);
8851 ecode4 = SWIG_AsVal_int(obj3, &val4);
8852 if (!SWIG_IsOK(ecode4)) {
8853 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
8854 }
8855 arg4 = static_cast< int >(val4);
8856 ecode5 = SWIG_AsVal_int(obj4, &val5);
8857 if (!SWIG_IsOK(ecode5)) {
8858 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
8859 }
8860 arg5 = static_cast< int >(val5);
8861 {
8862 PyThreadState* __tstate = wxPyBeginAllowThreads();
8863 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
8864 wxPyEndAllowThreads(__tstate);
8865 if (PyErr_Occurred()) SWIG_fail;
8866 }
8867 {
8868 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8869 }
8870 return resultobj;
8871fail:
8872 return NULL;
8873}
8874
8875
8876SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8877 PyObject *resultobj = 0;
8878 wxRegion *arg1 = (wxRegion *) 0 ;
8879 wxRect *arg2 = 0 ;
8880 bool result;
8881 void *argp1 = 0 ;
8882 int res1 = 0 ;
8883 wxRect temp2 ;
8884 PyObject * obj0 = 0 ;
8885 PyObject * obj1 = 0 ;
8886 char * kwnames[] = {
8887 (char *) "self",(char *) "rect", NULL
8888 };
8889
8890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
8891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8892 if (!SWIG_IsOK(res1)) {
8893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8894 }
8895 arg1 = reinterpret_cast< wxRegion * >(argp1);
8896 {
8897 arg2 = &temp2;
8898 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8899 }
8900 {
8901 PyThreadState* __tstate = wxPyBeginAllowThreads();
8902 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
8903 wxPyEndAllowThreads(__tstate);
8904 if (PyErr_Occurred()) SWIG_fail;
8905 }
8906 {
8907 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8908 }
8909 return resultobj;
8910fail:
8911 return NULL;
8912}
8913
8914
8915SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8916 PyObject *resultobj = 0;
8917 wxRegion *arg1 = (wxRegion *) 0 ;
8918 wxRegion *arg2 = 0 ;
8919 bool result;
8920 void *argp1 = 0 ;
8921 int res1 = 0 ;
8922 void *argp2 = 0 ;
8923 int res2 = 0 ;
8924 PyObject * obj0 = 0 ;
8925 PyObject * obj1 = 0 ;
8926 char * kwnames[] = {
8927 (char *) "self",(char *) "region", NULL
8928 };
8929
8930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) 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_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8934 }
8935 arg1 = reinterpret_cast< wxRegion * >(argp1);
8936 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8937 if (!SWIG_IsOK(res2)) {
8938 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8939 }
8940 if (!argp2) {
8941 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8942 }
8943 arg2 = reinterpret_cast< wxRegion * >(argp2);
8944 {
8945 PyThreadState* __tstate = wxPyBeginAllowThreads();
8946 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
8947 wxPyEndAllowThreads(__tstate);
8948 if (PyErr_Occurred()) SWIG_fail;
8949 }
8950 {
8951 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8952 }
8953 return resultobj;
8954fail:
8955 return NULL;
d55e5bfc
RD
8956}
8957
8958
554f62e9
RD
8959SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8960 PyObject *resultobj = 0;
8961 wxRegion *arg1 = (wxRegion *) 0 ;
8962 bool result;
8963 void *argp1 = 0 ;
8964 int res1 = 0 ;
8965 PyObject *swig_obj[1] ;
8966
8967 if (!args) SWIG_fail;
8968 swig_obj[0] = args;
8969 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8970 if (!SWIG_IsOK(res1)) {
8971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
8972 }
8973 arg1 = reinterpret_cast< wxRegion * >(argp1);
8974 {
8975 PyThreadState* __tstate = wxPyBeginAllowThreads();
8976 result = (bool)(arg1)->IsEmpty();
8977 wxPyEndAllowThreads(__tstate);
8978 if (PyErr_Occurred()) SWIG_fail;
8979 }
8980 {
8981 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8982 }
8983 return resultobj;
8984fail:
8985 return NULL;
8986}
8987
8988
8989SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8990 PyObject *resultobj = 0;
8991 wxRegion *arg1 = (wxRegion *) 0 ;
8992 int arg2 ;
8993 int arg3 ;
8994 int arg4 ;
8995 int arg5 ;
8996 bool result;
8997 void *argp1 = 0 ;
8998 int res1 = 0 ;
8999 int val2 ;
9000 int ecode2 = 0 ;
9001 int val3 ;
9002 int ecode3 = 0 ;
9003 int val4 ;
9004 int ecode4 = 0 ;
9005 int val5 ;
9006 int ecode5 = 0 ;
9007 PyObject * obj0 = 0 ;
9008 PyObject * obj1 = 0 ;
9009 PyObject * obj2 = 0 ;
9010 PyObject * obj3 = 0 ;
9011 PyObject * obj4 = 0 ;
9012 char * kwnames[] = {
9013 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9014 };
9015
9016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
9017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9018 if (!SWIG_IsOK(res1)) {
9019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
9020 }
9021 arg1 = reinterpret_cast< wxRegion * >(argp1);
9022 ecode2 = SWIG_AsVal_int(obj1, &val2);
9023 if (!SWIG_IsOK(ecode2)) {
9024 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
9025 }
9026 arg2 = static_cast< int >(val2);
9027 ecode3 = SWIG_AsVal_int(obj2, &val3);
9028 if (!SWIG_IsOK(ecode3)) {
9029 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
9030 }
9031 arg3 = static_cast< int >(val3);
9032 ecode4 = SWIG_AsVal_int(obj3, &val4);
9033 if (!SWIG_IsOK(ecode4)) {
9034 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
9035 }
9036 arg4 = static_cast< int >(val4);
9037 ecode5 = SWIG_AsVal_int(obj4, &val5);
9038 if (!SWIG_IsOK(ecode5)) {
9039 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
9040 }
9041 arg5 = static_cast< int >(val5);
9042 {
9043 PyThreadState* __tstate = wxPyBeginAllowThreads();
9044 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
9045 wxPyEndAllowThreads(__tstate);
9046 if (PyErr_Occurred()) SWIG_fail;
9047 }
9048 {
9049 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9050 }
9051 return resultobj;
9052fail:
9053 return NULL;
9054}
9055
9056
9057SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9058 PyObject *resultobj = 0;
9059 wxRegion *arg1 = (wxRegion *) 0 ;
9060 wxRect *arg2 = 0 ;
9061 bool result;
9062 void *argp1 = 0 ;
9063 int res1 = 0 ;
9064 wxRect temp2 ;
9065 PyObject * obj0 = 0 ;
9066 PyObject * obj1 = 0 ;
9067 char * kwnames[] = {
9068 (char *) "self",(char *) "rect", NULL
9069 };
9070
9071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
9072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9073 if (!SWIG_IsOK(res1)) {
9074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
9075 }
9076 arg1 = reinterpret_cast< wxRegion * >(argp1);
9077 {
9078 arg2 = &temp2;
9079 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9080 }
9081 {
9082 PyThreadState* __tstate = wxPyBeginAllowThreads();
9083 result = (bool)(arg1)->Union((wxRect const &)*arg2);
9084 wxPyEndAllowThreads(__tstate);
9085 if (PyErr_Occurred()) SWIG_fail;
9086 }
9087 {
9088 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9089 }
9090 return resultobj;
9091fail:
9092 return NULL;
9093}
9094
9095
9096SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9097 PyObject *resultobj = 0;
9098 wxRegion *arg1 = (wxRegion *) 0 ;
9099 wxRegion *arg2 = 0 ;
9100 bool result;
9101 void *argp1 = 0 ;
9102 int res1 = 0 ;
9103 void *argp2 = 0 ;
9104 int res2 = 0 ;
9105 PyObject * obj0 = 0 ;
9106 PyObject * obj1 = 0 ;
9107 char * kwnames[] = {
9108 (char *) "self",(char *) "region", NULL
9109 };
9110
9111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
9112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9113 if (!SWIG_IsOK(res1)) {
9114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
9115 }
9116 arg1 = reinterpret_cast< wxRegion * >(argp1);
9117 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
9118 if (!SWIG_IsOK(res2)) {
9119 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
9120 }
9121 if (!argp2) {
9122 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
9123 }
9124 arg2 = reinterpret_cast< wxRegion * >(argp2);
9125 {
9126 PyThreadState* __tstate = wxPyBeginAllowThreads();
9127 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
9128 wxPyEndAllowThreads(__tstate);
9129 if (PyErr_Occurred()) SWIG_fail;
9130 }
9131 {
9132 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9133 }
9134 return resultobj;
9135fail:
9136 return NULL;
9137}
9138
9139
9140SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9141 PyObject *resultobj = 0;
9142 wxRegion *arg1 = (wxRegion *) 0 ;
9143 int arg2 ;
9144 int arg3 ;
9145 int arg4 ;
9146 int arg5 ;
9147 bool result;
9148 void *argp1 = 0 ;
9149 int res1 = 0 ;
9150 int val2 ;
9151 int ecode2 = 0 ;
9152 int val3 ;
9153 int ecode3 = 0 ;
9154 int val4 ;
9155 int ecode4 = 0 ;
9156 int val5 ;
9157 int ecode5 = 0 ;
9158 PyObject * obj0 = 0 ;
9159 PyObject * obj1 = 0 ;
9160 PyObject * obj2 = 0 ;
9161 PyObject * obj3 = 0 ;
9162 PyObject * obj4 = 0 ;
9163 char * kwnames[] = {
9164 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9165 };
9166
9167 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
9168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9169 if (!SWIG_IsOK(res1)) {
9170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
9171 }
9172 arg1 = reinterpret_cast< wxRegion * >(argp1);
9173 ecode2 = SWIG_AsVal_int(obj1, &val2);
9174 if (!SWIG_IsOK(ecode2)) {
9175 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
9176 }
9177 arg2 = static_cast< int >(val2);
9178 ecode3 = SWIG_AsVal_int(obj2, &val3);
9179 if (!SWIG_IsOK(ecode3)) {
9180 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
9181 }
9182 arg3 = static_cast< int >(val3);
9183 ecode4 = SWIG_AsVal_int(obj3, &val4);
9184 if (!SWIG_IsOK(ecode4)) {
9185 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
9186 }
9187 arg4 = static_cast< int >(val4);
9188 ecode5 = SWIG_AsVal_int(obj4, &val5);
9189 if (!SWIG_IsOK(ecode5)) {
9190 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
9191 }
9192 arg5 = static_cast< int >(val5);
9193 {
9194 PyThreadState* __tstate = wxPyBeginAllowThreads();
9195 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
9196 wxPyEndAllowThreads(__tstate);
9197 if (PyErr_Occurred()) SWIG_fail;
9198 }
9199 {
9200 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9201 }
9202 return resultobj;
9203fail:
9204 return NULL;
9205}
9206
9207
9208SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9209 PyObject *resultobj = 0;
9210 wxRegion *arg1 = (wxRegion *) 0 ;
9211 wxRect *arg2 = 0 ;
9212 bool result;
9213 void *argp1 = 0 ;
9214 int res1 = 0 ;
9215 wxRect temp2 ;
9216 PyObject * obj0 = 0 ;
9217 PyObject * obj1 = 0 ;
9218 char * kwnames[] = {
9219 (char *) "self",(char *) "rect", NULL
9220 };
9221
9222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
9223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9224 if (!SWIG_IsOK(res1)) {
9225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
9226 }
9227 arg1 = reinterpret_cast< wxRegion * >(argp1);
9228 {
9229 arg2 = &temp2;
9230 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9231 }
9232 {
9233 PyThreadState* __tstate = wxPyBeginAllowThreads();
9234 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
9235 wxPyEndAllowThreads(__tstate);
9236 if (PyErr_Occurred()) SWIG_fail;
9237 }
9238 {
9239 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9240 }
9241 return resultobj;
9242fail:
9243 return NULL;
9244}
9245
9246
9247SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9248 PyObject *resultobj = 0;
9249 wxRegion *arg1 = (wxRegion *) 0 ;
9250 wxRegion *arg2 = 0 ;
9251 bool result;
9252 void *argp1 = 0 ;
9253 int res1 = 0 ;
9254 void *argp2 = 0 ;
9255 int res2 = 0 ;
9256 PyObject * obj0 = 0 ;
9257 PyObject * obj1 = 0 ;
9258 char * kwnames[] = {
9259 (char *) "self",(char *) "region", NULL
9260 };
9261
9262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
9263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9264 if (!SWIG_IsOK(res1)) {
9265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
9266 }
9267 arg1 = reinterpret_cast< wxRegion * >(argp1);
9268 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
9269 if (!SWIG_IsOK(res2)) {
9270 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
9271 }
9272 if (!argp2) {
9273 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
9274 }
9275 arg2 = reinterpret_cast< wxRegion * >(argp2);
9276 {
9277 PyThreadState* __tstate = wxPyBeginAllowThreads();
9278 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
9279 wxPyEndAllowThreads(__tstate);
9280 if (PyErr_Occurred()) SWIG_fail;
9281 }
9282 {
9283 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9284 }
9285 return resultobj;
9286fail:
9287 return NULL;
9288}
9289
9290
9291SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9292 PyObject *resultobj = 0;
9293 wxRegion *arg1 = (wxRegion *) 0 ;
9294 int arg2 ;
9295 int arg3 ;
9296 int arg4 ;
9297 int arg5 ;
9298 bool result;
9299 void *argp1 = 0 ;
9300 int res1 = 0 ;
9301 int val2 ;
9302 int ecode2 = 0 ;
9303 int val3 ;
9304 int ecode3 = 0 ;
9305 int val4 ;
9306 int ecode4 = 0 ;
9307 int val5 ;
9308 int ecode5 = 0 ;
9309 PyObject * obj0 = 0 ;
9310 PyObject * obj1 = 0 ;
9311 PyObject * obj2 = 0 ;
9312 PyObject * obj3 = 0 ;
9313 PyObject * obj4 = 0 ;
9314 char * kwnames[] = {
9315 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9316 };
9317
9318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
9319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9320 if (!SWIG_IsOK(res1)) {
9321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
9322 }
9323 arg1 = reinterpret_cast< wxRegion * >(argp1);
9324 ecode2 = SWIG_AsVal_int(obj1, &val2);
9325 if (!SWIG_IsOK(ecode2)) {
9326 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
9327 }
9328 arg2 = static_cast< int >(val2);
9329 ecode3 = SWIG_AsVal_int(obj2, &val3);
9330 if (!SWIG_IsOK(ecode3)) {
9331 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
9332 }
9333 arg3 = static_cast< int >(val3);
9334 ecode4 = SWIG_AsVal_int(obj3, &val4);
9335 if (!SWIG_IsOK(ecode4)) {
9336 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
9337 }
9338 arg4 = static_cast< int >(val4);
9339 ecode5 = SWIG_AsVal_int(obj4, &val5);
9340 if (!SWIG_IsOK(ecode5)) {
9341 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
9342 }
9343 arg5 = static_cast< int >(val5);
9344 {
9345 PyThreadState* __tstate = wxPyBeginAllowThreads();
9346 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
9347 wxPyEndAllowThreads(__tstate);
9348 if (PyErr_Occurred()) SWIG_fail;
9349 }
9350 {
9351 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9352 }
9353 return resultobj;
9354fail:
9355 return NULL;
9356}
9357
9358
9359SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9360 PyObject *resultobj = 0;
9361 wxRegion *arg1 = (wxRegion *) 0 ;
9362 wxRect *arg2 = 0 ;
9363 bool result;
9364 void *argp1 = 0 ;
9365 int res1 = 0 ;
9366 wxRect temp2 ;
9367 PyObject * obj0 = 0 ;
9368 PyObject * obj1 = 0 ;
9369 char * kwnames[] = {
9370 (char *) "self",(char *) "rect", NULL
9371 };
9372
9373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
9374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9375 if (!SWIG_IsOK(res1)) {
9376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
9377 }
9378 arg1 = reinterpret_cast< wxRegion * >(argp1);
9379 {
9380 arg2 = &temp2;
9381 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9382 }
9383 {
9384 PyThreadState* __tstate = wxPyBeginAllowThreads();
9385 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
9386 wxPyEndAllowThreads(__tstate);
9387 if (PyErr_Occurred()) SWIG_fail;
9388 }
9389 {
9390 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9391 }
9392 return resultobj;
9393fail:
9394 return NULL;
9395}
9396
9397
9398SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9399 PyObject *resultobj = 0;
9400 wxRegion *arg1 = (wxRegion *) 0 ;
9401 wxRegion *arg2 = 0 ;
9402 bool result;
9403 void *argp1 = 0 ;
9404 int res1 = 0 ;
9405 void *argp2 = 0 ;
9406 int res2 = 0 ;
9407 PyObject * obj0 = 0 ;
9408 PyObject * obj1 = 0 ;
9409 char * kwnames[] = {
9410 (char *) "self",(char *) "region", NULL
9411 };
9412
9413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
9414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9415 if (!SWIG_IsOK(res1)) {
9416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
9417 }
9418 arg1 = reinterpret_cast< wxRegion * >(argp1);
9419 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
9420 if (!SWIG_IsOK(res2)) {
9421 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
9422 }
9423 if (!argp2) {
9424 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
9425 }
9426 arg2 = reinterpret_cast< wxRegion * >(argp2);
9427 {
9428 PyThreadState* __tstate = wxPyBeginAllowThreads();
9429 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
9430 wxPyEndAllowThreads(__tstate);
9431 if (PyErr_Occurred()) SWIG_fail;
9432 }
9433 {
9434 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9435 }
9436 return resultobj;
9437fail:
9438 return NULL;
d55e5bfc
RD
9439}
9440
9441
554f62e9
RD
9442SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9443 PyObject *resultobj = 0;
9444 wxRegion *arg1 = (wxRegion *) 0 ;
9445 SwigValueWrapper<wxBitmap > result;
9446 void *argp1 = 0 ;
9447 int res1 = 0 ;
9448 PyObject *swig_obj[1] ;
9449
9450 if (!args) SWIG_fail;
9451 swig_obj[0] = args;
9452 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9453 if (!SWIG_IsOK(res1)) {
9454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
9455 }
9456 arg1 = reinterpret_cast< wxRegion * >(argp1);
9457 {
9458 PyThreadState* __tstate = wxPyBeginAllowThreads();
9459 result = (arg1)->ConvertToBitmap();
9460 wxPyEndAllowThreads(__tstate);
9461 if (PyErr_Occurred()) SWIG_fail;
9462 }
9463 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
9464 return resultobj;
9465fail:
9466 return NULL;
9467}
9468
9469
9470SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9471 PyObject *resultobj = 0;
9472 wxRegion *arg1 = (wxRegion *) 0 ;
9473 wxBitmap *arg2 = 0 ;
9474 bool result;
9475 void *argp1 = 0 ;
9476 int res1 = 0 ;
9477 void *argp2 = 0 ;
9478 int res2 = 0 ;
9479 PyObject * obj0 = 0 ;
9480 PyObject * obj1 = 0 ;
9481 char * kwnames[] = {
9482 (char *) "self",(char *) "bmp", NULL
9483 };
9484
9485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9487 if (!SWIG_IsOK(res1)) {
9488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
9489 }
9490 arg1 = reinterpret_cast< wxRegion * >(argp1);
9491 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9492 if (!SWIG_IsOK(res2)) {
9493 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9494 }
9495 if (!argp2) {
9496 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9497 }
9498 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9499 {
9500 PyThreadState* __tstate = wxPyBeginAllowThreads();
9501 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
9502 wxPyEndAllowThreads(__tstate);
9503 if (PyErr_Occurred()) SWIG_fail;
9504 }
9505 {
9506 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9507 }
9508 return resultobj;
9509fail:
9510 return NULL;
9511}
9512
9513
9514SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9515 PyObject *resultobj = 0;
9516 wxRegion *arg1 = (wxRegion *) 0 ;
9517 wxBitmap *arg2 = 0 ;
9518 wxColour *arg3 = 0 ;
9519 int arg4 = (int) 0 ;
9520 bool result;
9521 void *argp1 = 0 ;
9522 int res1 = 0 ;
9523 void *argp2 = 0 ;
9524 int res2 = 0 ;
9525 wxColour temp3 ;
9526 int val4 ;
9527 int ecode4 = 0 ;
9528 PyObject * obj0 = 0 ;
9529 PyObject * obj1 = 0 ;
9530 PyObject * obj2 = 0 ;
9531 PyObject * obj3 = 0 ;
9532 char * kwnames[] = {
9533 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
9534 };
9535
9536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9538 if (!SWIG_IsOK(res1)) {
9539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
9540 }
9541 arg1 = reinterpret_cast< wxRegion * >(argp1);
9542 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9543 if (!SWIG_IsOK(res2)) {
9544 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9545 }
9546 if (!argp2) {
9547 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9548 }
9549 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9550 {
9551 arg3 = &temp3;
9552 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9553 }
9554 if (obj3) {
9555 ecode4 = SWIG_AsVal_int(obj3, &val4);
9556 if (!SWIG_IsOK(ecode4)) {
9557 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
9558 }
9559 arg4 = static_cast< int >(val4);
9560 }
9561 {
9562 PyThreadState* __tstate = wxPyBeginAllowThreads();
9563 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
9564 wxPyEndAllowThreads(__tstate);
9565 if (PyErr_Occurred()) SWIG_fail;
9566 }
9567 {
9568 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9569 }
9570 return resultobj;
9571fail:
9572 return NULL;
d55e5bfc
RD
9573}
9574
9575
554f62e9
RD
9576SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9577 PyObject *obj;
9578 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9579 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
9580 return SWIG_Py_Void();
d55e5bfc
RD
9581}
9582
554f62e9
RD
9583SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9584 return SWIG_Python_InitShadowInstance(args);
9585}
d55e5bfc 9586
554f62e9
RD
9587SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9588 PyObject *resultobj = 0;
9589 wxRegion *arg1 = 0 ;
9590 wxRegionIterator *result = 0 ;
9591 void *argp1 = 0 ;
9592 int res1 = 0 ;
9593 PyObject * obj0 = 0 ;
9594 char * kwnames[] = {
9595 (char *) "region", NULL
9596 };
9597
9598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
9599 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
9600 if (!SWIG_IsOK(res1)) {
9601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
9602 }
9603 if (!argp1) {
9604 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
9605 }
9606 arg1 = reinterpret_cast< wxRegion * >(argp1);
9607 {
9608 if (!wxPyCheckForApp()) SWIG_fail;
9609 PyThreadState* __tstate = wxPyBeginAllowThreads();
9610 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
9611 wxPyEndAllowThreads(__tstate);
9612 if (PyErr_Occurred()) SWIG_fail;
9613 }
9614 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
9615 return resultobj;
9616fail:
9617 return NULL;
d55e5bfc
RD
9618}
9619
9620
554f62e9
RD
9621SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9622 PyObject *resultobj = 0;
9623 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9624 void *argp1 = 0 ;
9625 int res1 = 0 ;
9626 PyObject *swig_obj[1] ;
9627
9628 if (!args) SWIG_fail;
9629 swig_obj[0] = args;
9630 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
9631 if (!SWIG_IsOK(res1)) {
9632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9633 }
9634 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9635 {
9636 PyThreadState* __tstate = wxPyBeginAllowThreads();
9637 delete arg1;
d55e5bfc 9638
554f62e9
RD
9639 wxPyEndAllowThreads(__tstate);
9640 if (PyErr_Occurred()) SWIG_fail;
9641 }
9642 resultobj = SWIG_Py_Void();
9643 return resultobj;
9644fail:
9645 return NULL;
d55e5bfc
RD
9646}
9647
9648
554f62e9
RD
9649SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9650 PyObject *resultobj = 0;
9651 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9652 int result;
9653 void *argp1 = 0 ;
9654 int res1 = 0 ;
9655 PyObject *swig_obj[1] ;
9656
9657 if (!args) SWIG_fail;
9658 swig_obj[0] = args;
9659 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9660 if (!SWIG_IsOK(res1)) {
9661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9662 }
9663 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9664 {
9665 PyThreadState* __tstate = wxPyBeginAllowThreads();
9666 result = (int)(arg1)->GetX();
9667 wxPyEndAllowThreads(__tstate);
9668 if (PyErr_Occurred()) SWIG_fail;
9669 }
9670 resultobj = SWIG_From_int(static_cast< int >(result));
9671 return resultobj;
9672fail:
9673 return NULL;
d55e5bfc
RD
9674}
9675
9676
554f62e9
RD
9677SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9678 PyObject *resultobj = 0;
9679 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9680 int result;
9681 void *argp1 = 0 ;
9682 int res1 = 0 ;
9683 PyObject *swig_obj[1] ;
9684
9685 if (!args) SWIG_fail;
9686 swig_obj[0] = args;
9687 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9688 if (!SWIG_IsOK(res1)) {
9689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9690 }
9691 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9692 {
9693 PyThreadState* __tstate = wxPyBeginAllowThreads();
9694 result = (int)(arg1)->GetY();
9695 wxPyEndAllowThreads(__tstate);
9696 if (PyErr_Occurred()) SWIG_fail;
9697 }
9698 resultobj = SWIG_From_int(static_cast< int >(result));
9699 return resultobj;
9700fail:
9701 return NULL;
d55e5bfc
RD
9702}
9703
9704
554f62e9
RD
9705SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9706 PyObject *resultobj = 0;
9707 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9708 int result;
9709 void *argp1 = 0 ;
9710 int res1 = 0 ;
9711 PyObject *swig_obj[1] ;
9712
9713 if (!args) SWIG_fail;
9714 swig_obj[0] = args;
9715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9716 if (!SWIG_IsOK(res1)) {
9717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9718 }
9719 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9720 {
9721 PyThreadState* __tstate = wxPyBeginAllowThreads();
9722 result = (int)(arg1)->GetW();
9723 wxPyEndAllowThreads(__tstate);
9724 if (PyErr_Occurred()) SWIG_fail;
9725 }
9726 resultobj = SWIG_From_int(static_cast< int >(result));
9727 return resultobj;
9728fail:
9729 return NULL;
d55e5bfc
RD
9730}
9731
9732
554f62e9
RD
9733SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9734 PyObject *resultobj = 0;
9735 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9736 int result;
9737 void *argp1 = 0 ;
9738 int res1 = 0 ;
9739 PyObject *swig_obj[1] ;
9740
9741 if (!args) SWIG_fail;
9742 swig_obj[0] = args;
9743 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9744 if (!SWIG_IsOK(res1)) {
9745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9746 }
9747 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9748 {
9749 PyThreadState* __tstate = wxPyBeginAllowThreads();
9750 result = (int)(arg1)->GetWidth();
9751 wxPyEndAllowThreads(__tstate);
9752 if (PyErr_Occurred()) SWIG_fail;
9753 }
9754 resultobj = SWIG_From_int(static_cast< int >(result));
9755 return resultobj;
9756fail:
9757 return NULL;
d55e5bfc
RD
9758}
9759
9760
554f62e9
RD
9761SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9762 PyObject *resultobj = 0;
9763 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9764 int result;
9765 void *argp1 = 0 ;
9766 int res1 = 0 ;
9767 PyObject *swig_obj[1] ;
9768
9769 if (!args) SWIG_fail;
9770 swig_obj[0] = args;
9771 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9772 if (!SWIG_IsOK(res1)) {
9773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9774 }
9775 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9776 {
9777 PyThreadState* __tstate = wxPyBeginAllowThreads();
9778 result = (int)(arg1)->GetH();
9779 wxPyEndAllowThreads(__tstate);
9780 if (PyErr_Occurred()) SWIG_fail;
9781 }
9782 resultobj = SWIG_From_int(static_cast< int >(result));
9783 return resultobj;
9784fail:
9785 return NULL;
d55e5bfc
RD
9786}
9787
9788
554f62e9
RD
9789SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9790 PyObject *resultobj = 0;
9791 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9792 int result;
9793 void *argp1 = 0 ;
9794 int res1 = 0 ;
9795 PyObject *swig_obj[1] ;
9796
9797 if (!args) SWIG_fail;
9798 swig_obj[0] = args;
9799 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9800 if (!SWIG_IsOK(res1)) {
9801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9802 }
9803 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9804 {
9805 PyThreadState* __tstate = wxPyBeginAllowThreads();
9806 result = (int)(arg1)->GetHeight();
9807 wxPyEndAllowThreads(__tstate);
9808 if (PyErr_Occurred()) SWIG_fail;
9809 }
9810 resultobj = SWIG_From_int(static_cast< int >(result));
9811 return resultobj;
9812fail:
9813 return NULL;
d55e5bfc
RD
9814}
9815
9816
554f62e9
RD
9817SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9818 PyObject *resultobj = 0;
9819 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9820 wxRect result;
9821 void *argp1 = 0 ;
9822 int res1 = 0 ;
9823 PyObject *swig_obj[1] ;
9824
9825 if (!args) SWIG_fail;
9826 swig_obj[0] = args;
9827 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9828 if (!SWIG_IsOK(res1)) {
9829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9830 }
9831 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9832 {
9833 PyThreadState* __tstate = wxPyBeginAllowThreads();
9834 result = (arg1)->GetRect();
9835 wxPyEndAllowThreads(__tstate);
9836 if (PyErr_Occurred()) SWIG_fail;
9837 }
9838 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
9839 return resultobj;
9840fail:
9841 return NULL;
d55e5bfc
RD
9842}
9843
9844
554f62e9
RD
9845SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9846 PyObject *resultobj = 0;
9847 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9848 bool result;
9849 void *argp1 = 0 ;
9850 int res1 = 0 ;
9851 PyObject *swig_obj[1] ;
9852
9853 if (!args) SWIG_fail;
9854 swig_obj[0] = args;
9855 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9856 if (!SWIG_IsOK(res1)) {
9857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9858 }
9859 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9860 {
9861 PyThreadState* __tstate = wxPyBeginAllowThreads();
9862 result = (bool)(arg1)->HaveRects();
9863 wxPyEndAllowThreads(__tstate);
9864 if (PyErr_Occurred()) SWIG_fail;
9865 }
9866 {
9867 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9868 }
9869 return resultobj;
9870fail:
9871 return NULL;
d55e5bfc
RD
9872}
9873
9874
554f62e9
RD
9875SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9876 PyObject *resultobj = 0;
9877 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9878 void *argp1 = 0 ;
9879 int res1 = 0 ;
9880 PyObject *swig_obj[1] ;
9881
9882 if (!args) SWIG_fail;
9883 swig_obj[0] = args;
9884 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9885 if (!SWIG_IsOK(res1)) {
9886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9887 }
9888 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9889 {
9890 PyThreadState* __tstate = wxPyBeginAllowThreads();
9891 (arg1)->Reset();
9892 wxPyEndAllowThreads(__tstate);
9893 if (PyErr_Occurred()) SWIG_fail;
9894 }
9895 resultobj = SWIG_Py_Void();
9896 return resultobj;
9897fail:
9898 return NULL;
d55e5bfc
RD
9899}
9900
9901
554f62e9
RD
9902SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9903 PyObject *resultobj = 0;
9904 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9905 void *argp1 = 0 ;
9906 int res1 = 0 ;
9907 PyObject *swig_obj[1] ;
9908
9909 if (!args) SWIG_fail;
9910 swig_obj[0] = args;
9911 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9912 if (!SWIG_IsOK(res1)) {
9913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9914 }
9915 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9916 {
9917 PyThreadState* __tstate = wxPyBeginAllowThreads();
9918 wxRegionIterator_Next(arg1);
9919 wxPyEndAllowThreads(__tstate);
9920 if (PyErr_Occurred()) SWIG_fail;
9921 }
9922 resultobj = SWIG_Py_Void();
9923 return resultobj;
9924fail:
9925 return NULL;
d55e5bfc
RD
9926}
9927
9928
554f62e9
RD
9929SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9930 PyObject *resultobj = 0;
9931 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9932 bool result;
9933 void *argp1 = 0 ;
9934 int res1 = 0 ;
9935 PyObject *swig_obj[1] ;
9936
9937 if (!args) SWIG_fail;
9938 swig_obj[0] = args;
9939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9940 if (!SWIG_IsOK(res1)) {
9941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9942 }
9943 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9944 {
9945 PyThreadState* __tstate = wxPyBeginAllowThreads();
9946 result = (bool)wxRegionIterator___nonzero__(arg1);
9947 wxPyEndAllowThreads(__tstate);
9948 if (PyErr_Occurred()) SWIG_fail;
9949 }
9950 {
9951 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9952 }
9953 return resultobj;
9954fail:
9955 return NULL;
d55e5bfc
RD
9956}
9957
9958
554f62e9
RD
9959SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9960 PyObject *obj;
9961 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9962 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
9963 return SWIG_Py_Void();
d55e5bfc
RD
9964}
9965
554f62e9
RD
9966SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9967 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
9968}
9969
554f62e9
RD
9970SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9971 PyObject *resultobj = 0;
9972 wxNativeFontInfo *result = 0 ;
9973
9974 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
9975 {
9976 PyThreadState* __tstate = wxPyBeginAllowThreads();
9977 result = (wxNativeFontInfo *)new wxNativeFontInfo();
9978 wxPyEndAllowThreads(__tstate);
9979 if (PyErr_Occurred()) SWIG_fail;
9980 }
9981 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
9982 return resultobj;
9983fail:
9984 return NULL;
d55e5bfc
RD
9985}
9986
9987
554f62e9
RD
9988SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9989 PyObject *resultobj = 0;
9990 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9991 void *argp1 = 0 ;
9992 int res1 = 0 ;
9993 PyObject *swig_obj[1] ;
9994
9995 if (!args) SWIG_fail;
9996 swig_obj[0] = args;
9997 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
9998 if (!SWIG_IsOK(res1)) {
9999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10000 }
10001 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10002 {
10003 PyThreadState* __tstate = wxPyBeginAllowThreads();
10004 delete arg1;
d55e5bfc 10005
554f62e9
RD
10006 wxPyEndAllowThreads(__tstate);
10007 if (PyErr_Occurred()) SWIG_fail;
10008 }
10009 resultobj = SWIG_Py_Void();
10010 return resultobj;
10011fail:
10012 return NULL;
d55e5bfc
RD
10013}
10014
10015
554f62e9
RD
10016SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10017 PyObject *resultobj = 0;
10018 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10019 void *argp1 = 0 ;
10020 int res1 = 0 ;
10021 PyObject *swig_obj[1] ;
10022
10023 if (!args) SWIG_fail;
10024 swig_obj[0] = args;
10025 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10026 if (!SWIG_IsOK(res1)) {
10027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10028 }
10029 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10030 {
10031 PyThreadState* __tstate = wxPyBeginAllowThreads();
10032 (arg1)->Init();
10033 wxPyEndAllowThreads(__tstate);
10034 if (PyErr_Occurred()) SWIG_fail;
10035 }
10036 resultobj = SWIG_Py_Void();
10037 return resultobj;
10038fail:
10039 return NULL;
10040}
10041
10042
10043SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10044 PyObject *resultobj = 0;
10045 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10046 wxFont *arg2 = 0 ;
10047 void *argp1 = 0 ;
10048 int res1 = 0 ;
10049 void *argp2 = 0 ;
10050 int res2 = 0 ;
10051 PyObject * obj0 = 0 ;
10052 PyObject * obj1 = 0 ;
10053 char * kwnames[] = {
10054 (char *) "self",(char *) "font", NULL
10055 };
10056
10057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
10058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10059 if (!SWIG_IsOK(res1)) {
10060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10061 }
10062 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10063 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10064 if (!SWIG_IsOK(res2)) {
10065 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10066 }
10067 if (!argp2) {
10068 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10069 }
10070 arg2 = reinterpret_cast< wxFont * >(argp2);
10071 {
10072 PyThreadState* __tstate = wxPyBeginAllowThreads();
10073 (arg1)->InitFromFont((wxFont const &)*arg2);
10074 wxPyEndAllowThreads(__tstate);
10075 if (PyErr_Occurred()) SWIG_fail;
10076 }
10077 resultobj = SWIG_Py_Void();
10078 return resultobj;
10079fail:
10080 return NULL;
d55e5bfc
RD
10081}
10082
10083
554f62e9
RD
10084SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10085 PyObject *resultobj = 0;
10086 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10087 int result;
10088 void *argp1 = 0 ;
10089 int res1 = 0 ;
10090 PyObject *swig_obj[1] ;
10091
10092 if (!args) SWIG_fail;
10093 swig_obj[0] = args;
10094 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10095 if (!SWIG_IsOK(res1)) {
10096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10097 }
10098 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10099 {
10100 PyThreadState* __tstate = wxPyBeginAllowThreads();
10101 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
10102 wxPyEndAllowThreads(__tstate);
10103 if (PyErr_Occurred()) SWIG_fail;
10104 }
10105 resultobj = SWIG_From_int(static_cast< int >(result));
10106 return resultobj;
10107fail:
10108 return NULL;
d55e5bfc
RD
10109}
10110
10111
554f62e9
RD
10112SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10113 PyObject *resultobj = 0;
10114 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10115 wxSize result;
10116 void *argp1 = 0 ;
10117 int res1 = 0 ;
10118 PyObject *swig_obj[1] ;
10119
10120 if (!args) SWIG_fail;
10121 swig_obj[0] = args;
10122 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10123 if (!SWIG_IsOK(res1)) {
10124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10125 }
10126 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10127 {
10128 PyThreadState* __tstate = wxPyBeginAllowThreads();
10129 result = ((wxNativeFontInfo const *)arg1)->GetPixelSize();
10130 wxPyEndAllowThreads(__tstate);
10131 if (PyErr_Occurred()) SWIG_fail;
10132 }
10133 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
10134 return resultobj;
10135fail:
10136 return NULL;
d55e5bfc
RD
10137}
10138
10139
554f62e9
RD
10140SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10141 PyObject *resultobj = 0;
10142 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10143 wxFontStyle result;
10144 void *argp1 = 0 ;
10145 int res1 = 0 ;
10146 PyObject *swig_obj[1] ;
10147
10148 if (!args) SWIG_fail;
10149 swig_obj[0] = args;
10150 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10151 if (!SWIG_IsOK(res1)) {
10152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10153 }
10154 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10155 {
10156 PyThreadState* __tstate = wxPyBeginAllowThreads();
10157 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
10158 wxPyEndAllowThreads(__tstate);
10159 if (PyErr_Occurred()) SWIG_fail;
10160 }
10161 resultobj = SWIG_From_int(static_cast< int >(result));
10162 return resultobj;
10163fail:
10164 return NULL;
d55e5bfc
RD
10165}
10166
10167
554f62e9
RD
10168SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10169 PyObject *resultobj = 0;
10170 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10171 wxFontWeight result;
10172 void *argp1 = 0 ;
10173 int res1 = 0 ;
10174 PyObject *swig_obj[1] ;
10175
10176 if (!args) SWIG_fail;
10177 swig_obj[0] = args;
10178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10179 if (!SWIG_IsOK(res1)) {
10180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10181 }
10182 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10183 {
10184 PyThreadState* __tstate = wxPyBeginAllowThreads();
10185 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
10186 wxPyEndAllowThreads(__tstate);
10187 if (PyErr_Occurred()) SWIG_fail;
10188 }
10189 resultobj = SWIG_From_int(static_cast< int >(result));
10190 return resultobj;
10191fail:
10192 return NULL;
d55e5bfc
RD
10193}
10194
10195
554f62e9
RD
10196SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10197 PyObject *resultobj = 0;
10198 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10199 bool result;
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_wxNativeFontInfo, 0 | 0 );
10207 if (!SWIG_IsOK(res1)) {
10208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10209 }
10210 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10211 {
10212 PyThreadState* __tstate = wxPyBeginAllowThreads();
10213 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
10214 wxPyEndAllowThreads(__tstate);
10215 if (PyErr_Occurred()) SWIG_fail;
10216 }
10217 {
10218 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10219 }
10220 return resultobj;
10221fail:
10222 return NULL;
d55e5bfc
RD
10223}
10224
10225
554f62e9
RD
10226SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10227 PyObject *resultobj = 0;
10228 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10229 wxString result;
10230 void *argp1 = 0 ;
10231 int res1 = 0 ;
10232 PyObject *swig_obj[1] ;
10233
10234 if (!args) SWIG_fail;
10235 swig_obj[0] = args;
10236 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10237 if (!SWIG_IsOK(res1)) {
10238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10239 }
10240 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10241 {
10242 PyThreadState* __tstate = wxPyBeginAllowThreads();
10243 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
10244 wxPyEndAllowThreads(__tstate);
10245 if (PyErr_Occurred()) SWIG_fail;
10246 }
10247 {
093d3ff1 10248#if wxUSE_UNICODE
554f62e9 10249 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 10250#else
554f62e9 10251 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 10252#endif
554f62e9
RD
10253 }
10254 return resultobj;
10255fail:
10256 return NULL;
d55e5bfc
RD
10257}
10258
10259
554f62e9
RD
10260SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10261 PyObject *resultobj = 0;
10262 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10263 wxFontFamily result;
10264 void *argp1 = 0 ;
10265 int res1 = 0 ;
10266 PyObject *swig_obj[1] ;
10267
10268 if (!args) SWIG_fail;
10269 swig_obj[0] = args;
10270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10271 if (!SWIG_IsOK(res1)) {
10272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10273 }
10274 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10275 {
10276 PyThreadState* __tstate = wxPyBeginAllowThreads();
10277 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
10278 wxPyEndAllowThreads(__tstate);
10279 if (PyErr_Occurred()) SWIG_fail;
10280 }
10281 resultobj = SWIG_From_int(static_cast< int >(result));
10282 return resultobj;
10283fail:
10284 return NULL;
d55e5bfc
RD
10285}
10286
10287
554f62e9
RD
10288SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10289 PyObject *resultobj = 0;
10290 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10291 wxFontEncoding result;
10292 void *argp1 = 0 ;
10293 int res1 = 0 ;
10294 PyObject *swig_obj[1] ;
10295
10296 if (!args) SWIG_fail;
10297 swig_obj[0] = args;
10298 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10299 if (!SWIG_IsOK(res1)) {
10300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10301 }
10302 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10303 {
10304 PyThreadState* __tstate = wxPyBeginAllowThreads();
10305 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
10306 wxPyEndAllowThreads(__tstate);
10307 if (PyErr_Occurred()) SWIG_fail;
10308 }
10309 resultobj = SWIG_From_int(static_cast< int >(result));
10310 return resultobj;
10311fail:
10312 return NULL;
10313}
10314
10315
10316SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10317 PyObject *resultobj = 0;
10318 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10319 int arg2 ;
10320 void *argp1 = 0 ;
10321 int res1 = 0 ;
10322 int val2 ;
10323 int ecode2 = 0 ;
10324 PyObject * obj0 = 0 ;
10325 PyObject * obj1 = 0 ;
10326 char * kwnames[] = {
10327 (char *) "self",(char *) "pointsize", NULL
10328 };
10329
10330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
10331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10332 if (!SWIG_IsOK(res1)) {
10333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10334 }
10335 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10336 ecode2 = SWIG_AsVal_int(obj1, &val2);
10337 if (!SWIG_IsOK(ecode2)) {
10338 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
10339 }
10340 arg2 = static_cast< int >(val2);
10341 {
10342 PyThreadState* __tstate = wxPyBeginAllowThreads();
10343 (arg1)->SetPointSize(arg2);
10344 wxPyEndAllowThreads(__tstate);
10345 if (PyErr_Occurred()) SWIG_fail;
10346 }
10347 resultobj = SWIG_Py_Void();
10348 return resultobj;
10349fail:
10350 return NULL;
10351}
10352
10353
10354SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10355 PyObject *resultobj = 0;
10356 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10357 wxSize *arg2 = 0 ;
10358 void *argp1 = 0 ;
10359 int res1 = 0 ;
10360 wxSize temp2 ;
10361 PyObject * obj0 = 0 ;
10362 PyObject * obj1 = 0 ;
10363 char * kwnames[] = {
10364 (char *) "self",(char *) "pixelSize", NULL
10365 };
10366
10367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
10368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10369 if (!SWIG_IsOK(res1)) {
10370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10371 }
10372 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10373 {
10374 arg2 = &temp2;
10375 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10376 }
10377 {
10378 PyThreadState* __tstate = wxPyBeginAllowThreads();
10379 (arg1)->SetPixelSize((wxSize const &)*arg2);
10380 wxPyEndAllowThreads(__tstate);
10381 if (PyErr_Occurred()) SWIG_fail;
10382 }
10383 resultobj = SWIG_Py_Void();
10384 return resultobj;
10385fail:
10386 return NULL;
10387}
10388
10389
10390SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10391 PyObject *resultobj = 0;
10392 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10393 wxFontStyle arg2 ;
10394 void *argp1 = 0 ;
10395 int res1 = 0 ;
10396 int val2 ;
10397 int ecode2 = 0 ;
10398 PyObject * obj0 = 0 ;
10399 PyObject * obj1 = 0 ;
10400 char * kwnames[] = {
10401 (char *) "self",(char *) "style", NULL
10402 };
10403
10404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
10405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10406 if (!SWIG_IsOK(res1)) {
10407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10408 }
10409 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10410 ecode2 = SWIG_AsVal_int(obj1, &val2);
10411 if (!SWIG_IsOK(ecode2)) {
10412 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
10413 }
10414 arg2 = static_cast< wxFontStyle >(val2);
10415 {
10416 PyThreadState* __tstate = wxPyBeginAllowThreads();
10417 (arg1)->SetStyle(arg2);
10418 wxPyEndAllowThreads(__tstate);
10419 if (PyErr_Occurred()) SWIG_fail;
10420 }
10421 resultobj = SWIG_Py_Void();
10422 return resultobj;
10423fail:
10424 return NULL;
10425}
10426
10427
10428SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10429 PyObject *resultobj = 0;
10430 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10431 wxFontWeight arg2 ;
10432 void *argp1 = 0 ;
10433 int res1 = 0 ;
10434 int val2 ;
10435 int ecode2 = 0 ;
10436 PyObject * obj0 = 0 ;
10437 PyObject * obj1 = 0 ;
10438 char * kwnames[] = {
10439 (char *) "self",(char *) "weight", NULL
10440 };
10441
10442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
10443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10444 if (!SWIG_IsOK(res1)) {
10445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10446 }
10447 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10448 ecode2 = SWIG_AsVal_int(obj1, &val2);
10449 if (!SWIG_IsOK(ecode2)) {
10450 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
10451 }
10452 arg2 = static_cast< wxFontWeight >(val2);
10453 {
10454 PyThreadState* __tstate = wxPyBeginAllowThreads();
10455 (arg1)->SetWeight(arg2);
10456 wxPyEndAllowThreads(__tstate);
10457 if (PyErr_Occurred()) SWIG_fail;
10458 }
10459 resultobj = SWIG_Py_Void();
10460 return resultobj;
10461fail:
10462 return NULL;
10463}
10464
10465
10466SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10467 PyObject *resultobj = 0;
10468 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10469 bool arg2 ;
10470 void *argp1 = 0 ;
10471 int res1 = 0 ;
10472 bool val2 ;
10473 int ecode2 = 0 ;
10474 PyObject * obj0 = 0 ;
10475 PyObject * obj1 = 0 ;
10476 char * kwnames[] = {
10477 (char *) "self",(char *) "underlined", NULL
10478 };
10479
10480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
10481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10482 if (!SWIG_IsOK(res1)) {
10483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10484 }
10485 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10486 ecode2 = SWIG_AsVal_bool(obj1, &val2);
10487 if (!SWIG_IsOK(ecode2)) {
10488 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
10489 }
10490 arg2 = static_cast< bool >(val2);
10491 {
10492 PyThreadState* __tstate = wxPyBeginAllowThreads();
10493 (arg1)->SetUnderlined(arg2);
10494 wxPyEndAllowThreads(__tstate);
10495 if (PyErr_Occurred()) SWIG_fail;
10496 }
10497 resultobj = SWIG_Py_Void();
10498 return resultobj;
10499fail:
10500 return NULL;
10501}
10502
10503
10504SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10505 PyObject *resultobj = 0;
10506 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10507 wxString arg2 ;
704eda0c 10508 bool result;
554f62e9
RD
10509 void *argp1 = 0 ;
10510 int res1 = 0 ;
10511 PyObject * obj0 = 0 ;
10512 PyObject * obj1 = 0 ;
10513 char * kwnames[] = {
10514 (char *) "self",(char *) "facename", NULL
10515 };
10516
10517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
10518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10519 if (!SWIG_IsOK(res1)) {
10520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10521 }
10522 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10523 {
10524 wxString* sptr = wxString_in_helper(obj1);
10525 if (sptr == NULL) SWIG_fail;
10526 arg2 = *sptr;
10527 delete sptr;
10528 }
10529 {
10530 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 10531 result = (bool)(arg1)->SetFaceName(arg2);
554f62e9
RD
10532 wxPyEndAllowThreads(__tstate);
10533 if (PyErr_Occurred()) SWIG_fail;
10534 }
704eda0c
RD
10535 {
10536 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10537 }
554f62e9
RD
10538 return resultobj;
10539fail:
10540 return NULL;
10541}
10542
10543
10544SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10545 PyObject *resultobj = 0;
10546 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10547 wxFontFamily arg2 ;
10548 void *argp1 = 0 ;
10549 int res1 = 0 ;
10550 int val2 ;
10551 int ecode2 = 0 ;
10552 PyObject * obj0 = 0 ;
10553 PyObject * obj1 = 0 ;
10554 char * kwnames[] = {
10555 (char *) "self",(char *) "family", NULL
10556 };
10557
10558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
10559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10560 if (!SWIG_IsOK(res1)) {
10561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10562 }
10563 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10564 ecode2 = SWIG_AsVal_int(obj1, &val2);
10565 if (!SWIG_IsOK(ecode2)) {
10566 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
10567 }
10568 arg2 = static_cast< wxFontFamily >(val2);
10569 {
10570 PyThreadState* __tstate = wxPyBeginAllowThreads();
10571 (arg1)->SetFamily(arg2);
10572 wxPyEndAllowThreads(__tstate);
10573 if (PyErr_Occurred()) SWIG_fail;
10574 }
10575 resultobj = SWIG_Py_Void();
10576 return resultobj;
10577fail:
10578 return NULL;
10579}
10580
10581
10582SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10583 PyObject *resultobj = 0;
10584 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10585 wxFontEncoding arg2 ;
10586 void *argp1 = 0 ;
10587 int res1 = 0 ;
10588 int val2 ;
10589 int ecode2 = 0 ;
10590 PyObject * obj0 = 0 ;
10591 PyObject * obj1 = 0 ;
10592 char * kwnames[] = {
10593 (char *) "self",(char *) "encoding", NULL
10594 };
10595
10596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
10597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10598 if (!SWIG_IsOK(res1)) {
10599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10600 }
10601 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10602 ecode2 = SWIG_AsVal_int(obj1, &val2);
10603 if (!SWIG_IsOK(ecode2)) {
10604 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10605 }
10606 arg2 = static_cast< wxFontEncoding >(val2);
10607 {
10608 PyThreadState* __tstate = wxPyBeginAllowThreads();
10609 (arg1)->SetEncoding(arg2);
10610 wxPyEndAllowThreads(__tstate);
10611 if (PyErr_Occurred()) SWIG_fail;
10612 }
10613 resultobj = SWIG_Py_Void();
10614 return resultobj;
10615fail:
10616 return NULL;
10617}
10618
10619
10620SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10621 PyObject *resultobj = 0;
10622 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10623 wxString *arg2 = 0 ;
10624 bool result;
10625 void *argp1 = 0 ;
10626 int res1 = 0 ;
10627 bool temp2 = false ;
10628 PyObject * obj0 = 0 ;
10629 PyObject * obj1 = 0 ;
10630 char * kwnames[] = {
10631 (char *) "self",(char *) "s", NULL
10632 };
10633
10634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
10635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10636 if (!SWIG_IsOK(res1)) {
10637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10638 }
10639 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10640 {
10641 arg2 = wxString_in_helper(obj1);
10642 if (arg2 == NULL) SWIG_fail;
10643 temp2 = true;
10644 }
10645 {
10646 PyThreadState* __tstate = wxPyBeginAllowThreads();
10647 result = (bool)(arg1)->FromString((wxString const &)*arg2);
10648 wxPyEndAllowThreads(__tstate);
10649 if (PyErr_Occurred()) SWIG_fail;
10650 }
10651 {
10652 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10653 }
10654 {
10655 if (temp2)
10656 delete arg2;
10657 }
10658 return resultobj;
10659fail:
10660 {
10661 if (temp2)
10662 delete arg2;
10663 }
10664 return NULL;
d55e5bfc
RD
10665}
10666
10667
554f62e9
RD
10668SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10669 PyObject *resultobj = 0;
10670 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10671 wxString result;
10672 void *argp1 = 0 ;
10673 int res1 = 0 ;
10674 PyObject *swig_obj[1] ;
10675
10676 if (!args) SWIG_fail;
10677 swig_obj[0] = args;
10678 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10679 if (!SWIG_IsOK(res1)) {
10680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10681 }
10682 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10683 {
10684 PyThreadState* __tstate = wxPyBeginAllowThreads();
10685 result = ((wxNativeFontInfo const *)arg1)->ToString();
10686 wxPyEndAllowThreads(__tstate);
10687 if (PyErr_Occurred()) SWIG_fail;
10688 }
10689 {
10690#if wxUSE_UNICODE
10691 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10692#else
10693 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10694#endif
10695 }
10696 return resultobj;
10697fail:
10698 return NULL;
d55e5bfc
RD
10699}
10700
10701
554f62e9
RD
10702SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10703 PyObject *resultobj = 0;
10704 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10705 wxString result;
10706 void *argp1 = 0 ;
10707 int res1 = 0 ;
10708 PyObject *swig_obj[1] ;
10709
10710 if (!args) SWIG_fail;
10711 swig_obj[0] = args;
10712 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10713 if (!SWIG_IsOK(res1)) {
10714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10715 }
10716 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10717 {
10718 PyThreadState* __tstate = wxPyBeginAllowThreads();
10719 result = wxNativeFontInfo___str__(arg1);
10720 wxPyEndAllowThreads(__tstate);
10721 if (PyErr_Occurred()) SWIG_fail;
10722 }
10723 {
10724#if wxUSE_UNICODE
10725 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10726#else
10727 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10728#endif
10729 }
10730 return resultobj;
10731fail:
10732 return NULL;
10733}
10734
10735
10736SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10737 PyObject *resultobj = 0;
10738 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10739 wxString *arg2 = 0 ;
10740 bool result;
10741 void *argp1 = 0 ;
10742 int res1 = 0 ;
10743 bool temp2 = false ;
10744 PyObject * obj0 = 0 ;
10745 PyObject * obj1 = 0 ;
10746 char * kwnames[] = {
10747 (char *) "self",(char *) "s", NULL
10748 };
10749
10750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
10751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10752 if (!SWIG_IsOK(res1)) {
10753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10754 }
10755 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10756 {
10757 arg2 = wxString_in_helper(obj1);
10758 if (arg2 == NULL) SWIG_fail;
10759 temp2 = true;
10760 }
10761 {
10762 PyThreadState* __tstate = wxPyBeginAllowThreads();
10763 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
10764 wxPyEndAllowThreads(__tstate);
10765 if (PyErr_Occurred()) SWIG_fail;
10766 }
10767 {
10768 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10769 }
10770 {
10771 if (temp2)
10772 delete arg2;
10773 }
10774 return resultobj;
10775fail:
10776 {
10777 if (temp2)
10778 delete arg2;
10779 }
10780 return NULL;
a2569024
RD
10781}
10782
10783
554f62e9
RD
10784SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10785 PyObject *resultobj = 0;
10786 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10787 wxString result;
10788 void *argp1 = 0 ;
10789 int res1 = 0 ;
10790 PyObject *swig_obj[1] ;
10791
10792 if (!args) SWIG_fail;
10793 swig_obj[0] = args;
10794 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10795 if (!SWIG_IsOK(res1)) {
10796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10797 }
10798 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10799 {
10800 PyThreadState* __tstate = wxPyBeginAllowThreads();
10801 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
10802 wxPyEndAllowThreads(__tstate);
10803 if (PyErr_Occurred()) SWIG_fail;
10804 }
10805 {
10806#if wxUSE_UNICODE
10807 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10808#else
10809 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10810#endif
10811 }
10812 return resultobj;
10813fail:
10814 return NULL;
d55e5bfc
RD
10815}
10816
10817
554f62e9
RD
10818SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10819 PyObject *obj;
10820 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10821 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
10822 return SWIG_Py_Void();
d55e5bfc
RD
10823}
10824
554f62e9
RD
10825SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10826 return SWIG_Python_InitShadowInstance(args);
10827}
d55e5bfc 10828
554f62e9
RD
10829SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10830 PyObject *resultobj = 0;
10831 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10832 wxString *arg2 = (wxString *) 0 ;
10833 void *argp1 = 0 ;
10834 int res1 = 0 ;
10835 bool temp2 = false ;
10836 PyObject *swig_obj[2] ;
10837
10838 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
10839 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10840 if (!SWIG_IsOK(res1)) {
10841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10842 }
10843 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10844 {
10845 arg2 = wxString_in_helper(swig_obj[1]);
10846 if (arg2 == NULL) SWIG_fail;
10847 temp2 = true;
10848 }
10849 if (arg1) (arg1)->facename = *arg2;
10850
10851 resultobj = SWIG_Py_Void();
10852 {
10853 if (temp2)
10854 delete arg2;
10855 }
10856 return resultobj;
10857fail:
10858 {
10859 if (temp2)
10860 delete arg2;
10861 }
10862 return NULL;
d55e5bfc
RD
10863}
10864
10865
554f62e9
RD
10866SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10867 PyObject *resultobj = 0;
10868 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10869 wxString *result = 0 ;
10870 void *argp1 = 0 ;
10871 int res1 = 0 ;
10872 PyObject *swig_obj[1] ;
10873
10874 if (!args) SWIG_fail;
10875 swig_obj[0] = args;
10876 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10877 if (!SWIG_IsOK(res1)) {
10878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10879 }
10880 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10881 result = (wxString *)& ((arg1)->facename);
10882 {
10883#if wxUSE_UNICODE
10884 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10885#else
10886 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10887#endif
10888 }
10889 return resultobj;
10890fail:
10891 return NULL;
d55e5bfc
RD
10892}
10893
10894
554f62e9
RD
10895SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10896 PyObject *resultobj = 0;
10897 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10898 wxFontEncoding arg2 ;
10899 void *argp1 = 0 ;
10900 int res1 = 0 ;
10901 int val2 ;
10902 int ecode2 = 0 ;
10903 PyObject *swig_obj[2] ;
10904
10905 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
10906 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10907 if (!SWIG_IsOK(res1)) {
10908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10909 }
10910 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10911 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
10912 if (!SWIG_IsOK(ecode2)) {
10913 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10914 }
10915 arg2 = static_cast< wxFontEncoding >(val2);
10916 if (arg1) (arg1)->encoding = arg2;
10917
10918 resultobj = SWIG_Py_Void();
10919 return resultobj;
10920fail:
10921 return NULL;
d55e5bfc
RD
10922}
10923
10924
554f62e9
RD
10925SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10926 PyObject *resultobj = 0;
10927 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10928 wxFontEncoding result;
10929 void *argp1 = 0 ;
10930 int res1 = 0 ;
10931 PyObject *swig_obj[1] ;
10932
10933 if (!args) SWIG_fail;
10934 swig_obj[0] = args;
10935 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10936 if (!SWIG_IsOK(res1)) {
10937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10938 }
10939 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10940 result = (wxFontEncoding) ((arg1)->encoding);
10941 resultobj = SWIG_From_int(static_cast< int >(result));
10942 return resultobj;
10943fail:
10944 return NULL;
d55e5bfc
RD
10945}
10946
10947
554f62e9
RD
10948SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10949 PyObject *resultobj = 0;
10950 wxNativeEncodingInfo *result = 0 ;
10951
10952 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
10953 {
10954 PyThreadState* __tstate = wxPyBeginAllowThreads();
10955 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
10956 wxPyEndAllowThreads(__tstate);
10957 if (PyErr_Occurred()) SWIG_fail;
10958 }
10959 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
10960 return resultobj;
10961fail:
10962 return NULL;
d55e5bfc
RD
10963}
10964
10965
554f62e9
RD
10966SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10967 PyObject *resultobj = 0;
10968 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10969 void *argp1 = 0 ;
10970 int res1 = 0 ;
10971 PyObject *swig_obj[1] ;
10972
10973 if (!args) SWIG_fail;
10974 swig_obj[0] = args;
10975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
10976 if (!SWIG_IsOK(res1)) {
10977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10978 }
10979 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10980 {
10981 PyThreadState* __tstate = wxPyBeginAllowThreads();
10982 delete arg1;
d55e5bfc 10983
554f62e9
RD
10984 wxPyEndAllowThreads(__tstate);
10985 if (PyErr_Occurred()) SWIG_fail;
10986 }
10987 resultobj = SWIG_Py_Void();
10988 return resultobj;
10989fail:
10990 return NULL;
10991}
10992
10993
10994SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10995 PyObject *resultobj = 0;
10996 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10997 wxString *arg2 = 0 ;
10998 bool result;
10999 void *argp1 = 0 ;
11000 int res1 = 0 ;
11001 bool temp2 = false ;
11002 PyObject * obj0 = 0 ;
11003 PyObject * obj1 = 0 ;
11004 char * kwnames[] = {
11005 (char *) "self",(char *) "s", NULL
11006 };
11007
11008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
11009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
11010 if (!SWIG_IsOK(res1)) {
11011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
11012 }
11013 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
11014 {
11015 arg2 = wxString_in_helper(obj1);
11016 if (arg2 == NULL) SWIG_fail;
11017 temp2 = true;
11018 }
11019 {
11020 PyThreadState* __tstate = wxPyBeginAllowThreads();
11021 result = (bool)(arg1)->FromString((wxString const &)*arg2);
11022 wxPyEndAllowThreads(__tstate);
11023 if (PyErr_Occurred()) SWIG_fail;
11024 }
11025 {
11026 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11027 }
11028 {
11029 if (temp2)
11030 delete arg2;
11031 }
11032 return resultobj;
11033fail:
11034 {
11035 if (temp2)
11036 delete arg2;
11037 }
11038 return NULL;
d55e5bfc
RD
11039}
11040
11041
554f62e9
RD
11042SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11043 PyObject *resultobj = 0;
11044 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
11045 wxString result;
11046 void *argp1 = 0 ;
11047 int res1 = 0 ;
11048 PyObject *swig_obj[1] ;
11049
11050 if (!args) SWIG_fail;
11051 swig_obj[0] = args;
11052 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
11053 if (!SWIG_IsOK(res1)) {
11054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
11055 }
11056 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
11057 {
11058 PyThreadState* __tstate = wxPyBeginAllowThreads();
11059 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
11060 wxPyEndAllowThreads(__tstate);
11061 if (PyErr_Occurred()) SWIG_fail;
11062 }
11063 {
11064#if wxUSE_UNICODE
11065 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11066#else
11067 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11068#endif
11069 }
11070 return resultobj;
11071fail:
11072 return NULL;
d55e5bfc
RD
11073}
11074
11075
554f62e9
RD
11076SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11077 PyObject *obj;
11078 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11079 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
11080 return SWIG_Py_Void();
d55e5bfc
RD
11081}
11082
554f62e9
RD
11083SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11084 return SWIG_Python_InitShadowInstance(args);
11085}
d55e5bfc 11086
554f62e9
RD
11087SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11088 PyObject *resultobj = 0;
11089 wxFontEncoding arg1 ;
11090 wxNativeEncodingInfo *result = 0 ;
11091 int val1 ;
11092 int ecode1 = 0 ;
11093 PyObject * obj0 = 0 ;
11094 char * kwnames[] = {
11095 (char *) "encoding", NULL
11096 };
11097
11098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
11099 ecode1 = SWIG_AsVal_int(obj0, &val1);
11100 if (!SWIG_IsOK(ecode1)) {
11101 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
11102 }
11103 arg1 = static_cast< wxFontEncoding >(val1);
11104 {
11105 PyThreadState* __tstate = wxPyBeginAllowThreads();
11106 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
11107 wxPyEndAllowThreads(__tstate);
11108 if (PyErr_Occurred()) SWIG_fail;
11109 }
11110 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
11111 return resultobj;
11112fail:
11113 return NULL;
11114}
11115
11116
11117SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11118 PyObject *resultobj = 0;
11119 wxNativeEncodingInfo *arg1 = 0 ;
11120 bool result;
11121 void *argp1 = 0 ;
11122 int res1 = 0 ;
11123 PyObject * obj0 = 0 ;
11124 char * kwnames[] = {
11125 (char *) "info", NULL
11126 };
11127
11128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
11129 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
11130 if (!SWIG_IsOK(res1)) {
11131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
11132 }
11133 if (!argp1) {
11134 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
11135 }
11136 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
11137 {
11138 PyThreadState* __tstate = wxPyBeginAllowThreads();
11139 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
11140 wxPyEndAllowThreads(__tstate);
11141 if (PyErr_Occurred()) SWIG_fail;
11142 }
11143 {
11144 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11145 }
11146 return resultobj;
11147fail:
11148 return NULL;
d55e5bfc
RD
11149}
11150
11151
554f62e9
RD
11152SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11153 PyObject *resultobj = 0;
11154 wxFontMapper *result = 0 ;
11155
11156 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
11157 {
11158 PyThreadState* __tstate = wxPyBeginAllowThreads();
11159 result = (wxFontMapper *)new wxFontMapper();
11160 wxPyEndAllowThreads(__tstate);
11161 if (PyErr_Occurred()) SWIG_fail;
11162 }
11163 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
11164 return resultobj;
11165fail:
11166 return NULL;
d55e5bfc
RD
11167}
11168
11169
554f62e9
RD
11170SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11171 PyObject *resultobj = 0;
11172 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11173 void *argp1 = 0 ;
11174 int res1 = 0 ;
11175 PyObject *swig_obj[1] ;
11176
11177 if (!args) SWIG_fail;
11178 swig_obj[0] = args;
11179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
11180 if (!SWIG_IsOK(res1)) {
11181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11182 }
11183 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11184 {
11185 PyThreadState* __tstate = wxPyBeginAllowThreads();
11186 delete arg1;
d55e5bfc 11187
554f62e9
RD
11188 wxPyEndAllowThreads(__tstate);
11189 if (PyErr_Occurred()) SWIG_fail;
11190 }
11191 resultobj = SWIG_Py_Void();
11192 return resultobj;
11193fail:
11194 return NULL;
d55e5bfc
RD
11195}
11196
11197
554f62e9
RD
11198SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11199 PyObject *resultobj = 0;
11200 wxFontMapper *result = 0 ;
11201
11202 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
11203 {
11204 PyThreadState* __tstate = wxPyBeginAllowThreads();
11205 result = (wxFontMapper *)wxFontMapper::Get();
11206 wxPyEndAllowThreads(__tstate);
11207 if (PyErr_Occurred()) SWIG_fail;
11208 }
11209 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
11210 return resultobj;
11211fail:
11212 return NULL;
11213}
11214
11215
11216SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11217 PyObject *resultobj = 0;
11218 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11219 wxFontMapper *result = 0 ;
11220 void *argp1 = 0 ;
11221 int res1 = 0 ;
11222 PyObject * obj0 = 0 ;
11223 char * kwnames[] = {
11224 (char *) "mapper", NULL
11225 };
11226
11227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
11228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11229 if (!SWIG_IsOK(res1)) {
11230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11231 }
11232 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11233 {
11234 PyThreadState* __tstate = wxPyBeginAllowThreads();
11235 result = (wxFontMapper *)wxFontMapper::Set(arg1);
11236 wxPyEndAllowThreads(__tstate);
11237 if (PyErr_Occurred()) SWIG_fail;
11238 }
11239 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
11240 return resultobj;
11241fail:
11242 return NULL;
11243}
11244
11245
11246SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11247 PyObject *resultobj = 0;
11248 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11249 wxString *arg2 = 0 ;
11250 bool arg3 = (bool) true ;
11251 wxFontEncoding result;
11252 void *argp1 = 0 ;
11253 int res1 = 0 ;
11254 bool temp2 = false ;
11255 bool val3 ;
11256 int ecode3 = 0 ;
11257 PyObject * obj0 = 0 ;
11258 PyObject * obj1 = 0 ;
11259 PyObject * obj2 = 0 ;
11260 char * kwnames[] = {
11261 (char *) "self",(char *) "charset",(char *) "interactive", NULL
11262 };
11263
11264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11266 if (!SWIG_IsOK(res1)) {
11267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11268 }
11269 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11270 {
11271 arg2 = wxString_in_helper(obj1);
11272 if (arg2 == NULL) SWIG_fail;
11273 temp2 = true;
11274 }
11275 if (obj2) {
11276 ecode3 = SWIG_AsVal_bool(obj2, &val3);
11277 if (!SWIG_IsOK(ecode3)) {
11278 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
11279 }
11280 arg3 = static_cast< bool >(val3);
11281 }
11282 {
11283 PyThreadState* __tstate = wxPyBeginAllowThreads();
11284 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
11285 wxPyEndAllowThreads(__tstate);
11286 if (PyErr_Occurred()) SWIG_fail;
11287 }
11288 resultobj = SWIG_From_int(static_cast< int >(result));
11289 {
11290 if (temp2)
11291 delete arg2;
11292 }
11293 return resultobj;
11294fail:
11295 {
11296 if (temp2)
11297 delete arg2;
11298 }
11299 return NULL;
d55e5bfc
RD
11300}
11301
11302
554f62e9
RD
11303SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11304 PyObject *resultobj = 0;
11305 size_t result;
11306
11307 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
11308 {
11309 PyThreadState* __tstate = wxPyBeginAllowThreads();
11310 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
11311 wxPyEndAllowThreads(__tstate);
11312 if (PyErr_Occurred()) SWIG_fail;
11313 }
11314 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
11315 return resultobj;
11316fail:
11317 return NULL;
11318}
11319
11320
11321SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11322 PyObject *resultobj = 0;
11323 size_t arg1 ;
11324 wxFontEncoding result;
11325 size_t val1 ;
11326 int ecode1 = 0 ;
11327 PyObject * obj0 = 0 ;
11328 char * kwnames[] = {
11329 (char *) "n", NULL
11330 };
11331
11332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
11333 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
11334 if (!SWIG_IsOK(ecode1)) {
11335 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
11336 }
11337 arg1 = static_cast< size_t >(val1);
11338 {
11339 PyThreadState* __tstate = wxPyBeginAllowThreads();
11340 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
11341 wxPyEndAllowThreads(__tstate);
11342 if (PyErr_Occurred()) SWIG_fail;
11343 }
11344 resultobj = SWIG_From_int(static_cast< int >(result));
11345 return resultobj;
11346fail:
11347 return NULL;
11348}
11349
11350
11351SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11352 PyObject *resultobj = 0;
11353 wxFontEncoding arg1 ;
11354 wxString result;
11355 int val1 ;
11356 int ecode1 = 0 ;
11357 PyObject * obj0 = 0 ;
11358 char * kwnames[] = {
11359 (char *) "encoding", NULL
11360 };
11361
11362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
11363 ecode1 = SWIG_AsVal_int(obj0, &val1);
11364 if (!SWIG_IsOK(ecode1)) {
11365 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
11366 }
11367 arg1 = static_cast< wxFontEncoding >(val1);
11368 {
11369 PyThreadState* __tstate = wxPyBeginAllowThreads();
11370 result = wxFontMapper::GetEncodingName(arg1);
11371 wxPyEndAllowThreads(__tstate);
11372 if (PyErr_Occurred()) SWIG_fail;
11373 }
11374 {
11375#if wxUSE_UNICODE
11376 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11377#else
11378 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11379#endif
11380 }
11381 return resultobj;
11382fail:
11383 return NULL;
d55e5bfc
RD
11384}
11385
11386
554f62e9
RD
11387SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11388 PyObject *resultobj = 0;
11389 wxFontEncoding arg1 ;
11390 wxString result;
11391 int val1 ;
11392 int ecode1 = 0 ;
11393 PyObject * obj0 = 0 ;
11394 char * kwnames[] = {
11395 (char *) "encoding", NULL
11396 };
11397
11398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
11399 ecode1 = SWIG_AsVal_int(obj0, &val1);
11400 if (!SWIG_IsOK(ecode1)) {
11401 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
11402 }
11403 arg1 = static_cast< wxFontEncoding >(val1);
11404 {
11405 PyThreadState* __tstate = wxPyBeginAllowThreads();
11406 result = wxFontMapper::GetEncodingDescription(arg1);
11407 wxPyEndAllowThreads(__tstate);
11408 if (PyErr_Occurred()) SWIG_fail;
11409 }
11410 {
11411#if wxUSE_UNICODE
11412 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11413#else
11414 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11415#endif
11416 }
11417 return resultobj;
11418fail:
11419 return NULL;
d55e5bfc
RD
11420}
11421
11422
554f62e9
RD
11423SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11424 PyObject *resultobj = 0;
11425 wxString *arg1 = 0 ;
11426 wxFontEncoding result;
11427 bool temp1 = false ;
11428 PyObject * obj0 = 0 ;
11429 char * kwnames[] = {
11430 (char *) "name", NULL
11431 };
11432
11433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
11434 {
11435 arg1 = wxString_in_helper(obj0);
11436 if (arg1 == NULL) SWIG_fail;
11437 temp1 = true;
11438 }
11439 {
11440 PyThreadState* __tstate = wxPyBeginAllowThreads();
11441 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
11442 wxPyEndAllowThreads(__tstate);
11443 if (PyErr_Occurred()) SWIG_fail;
11444 }
11445 resultobj = SWIG_From_int(static_cast< int >(result));
11446 {
11447 if (temp1)
11448 delete arg1;
11449 }
11450 return resultobj;
11451fail:
11452 {
11453 if (temp1)
11454 delete arg1;
11455 }
11456 return NULL;
d55e5bfc
RD
11457}
11458
11459
554f62e9
RD
11460SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11461 PyObject *resultobj = 0;
11462 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11463 wxString *arg2 = 0 ;
11464 void *argp1 = 0 ;
11465 int res1 = 0 ;
11466 bool temp2 = false ;
11467 PyObject * obj0 = 0 ;
11468 PyObject * obj1 = 0 ;
11469 char * kwnames[] = {
11470 (char *) "self",(char *) "prefix", NULL
11471 };
11472
11473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
11474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11475 if (!SWIG_IsOK(res1)) {
11476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11477 }
11478 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11479 {
11480 arg2 = wxString_in_helper(obj1);
11481 if (arg2 == NULL) SWIG_fail;
11482 temp2 = true;
11483 }
11484 {
11485 PyThreadState* __tstate = wxPyBeginAllowThreads();
11486 (arg1)->SetConfigPath((wxString const &)*arg2);
11487 wxPyEndAllowThreads(__tstate);
11488 if (PyErr_Occurred()) SWIG_fail;
11489 }
11490 resultobj = SWIG_Py_Void();
11491 {
11492 if (temp2)
11493 delete arg2;
11494 }
11495 return resultobj;
11496fail:
11497 {
11498 if (temp2)
11499 delete arg2;
11500 }
11501 return NULL;
d55e5bfc
RD
11502}
11503
11504
554f62e9
RD
11505SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11506 PyObject *resultobj = 0;
11507 wxString result;
11508
11509 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
11510 {
11511 PyThreadState* __tstate = wxPyBeginAllowThreads();
11512 result = wxFontMapper::GetDefaultConfigPath();
11513 wxPyEndAllowThreads(__tstate);
11514 if (PyErr_Occurred()) SWIG_fail;
11515 }
11516 {
11517#if wxUSE_UNICODE
11518 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11519#else
11520 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11521#endif
11522 }
11523 return resultobj;
11524fail:
11525 return NULL;
11526}
11527
11528
11529SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11530 PyObject *resultobj = 0;
11531 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11532 wxFontEncoding arg2 ;
11533 wxString const &arg3_defvalue = wxPyEmptyString ;
11534 wxString *arg3 = (wxString *) &arg3_defvalue ;
11535 bool arg4 = (bool) true ;
11536 PyObject *result = 0 ;
11537 void *argp1 = 0 ;
11538 int res1 = 0 ;
11539 int val2 ;
11540 int ecode2 = 0 ;
11541 bool temp3 = false ;
11542 bool val4 ;
11543 int ecode4 = 0 ;
11544 PyObject * obj0 = 0 ;
11545 PyObject * obj1 = 0 ;
11546 PyObject * obj2 = 0 ;
11547 PyObject * obj3 = 0 ;
11548 char * kwnames[] = {
11549 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
11550 };
11551
11552 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11553 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11554 if (!SWIG_IsOK(res1)) {
11555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11556 }
11557 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11558 ecode2 = SWIG_AsVal_int(obj1, &val2);
11559 if (!SWIG_IsOK(ecode2)) {
11560 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
11561 }
11562 arg2 = static_cast< wxFontEncoding >(val2);
11563 if (obj2) {
d55e5bfc 11564 {
554f62e9
RD
11565 arg3 = wxString_in_helper(obj2);
11566 if (arg3 == NULL) SWIG_fail;
11567 temp3 = true;
d55e5bfc 11568 }
554f62e9
RD
11569 }
11570 if (obj3) {
11571 ecode4 = SWIG_AsVal_bool(obj3, &val4);
11572 if (!SWIG_IsOK(ecode4)) {
11573 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
11574 }
11575 arg4 = static_cast< bool >(val4);
11576 }
11577 {
11578 PyThreadState* __tstate = wxPyBeginAllowThreads();
11579 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
11580 wxPyEndAllowThreads(__tstate);
11581 if (PyErr_Occurred()) SWIG_fail;
11582 }
11583 resultobj = result;
11584 {
11585 if (temp3)
11586 delete arg3;
11587 }
11588 return resultobj;
11589fail:
11590 {
11591 if (temp3)
11592 delete arg3;
11593 }
11594 return NULL;
11595}
11596
11597
11598SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11599 PyObject *resultobj = 0;
11600 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11601 wxFontEncoding arg2 ;
11602 wxString const &arg3_defvalue = wxPyEmptyString ;
11603 wxString *arg3 = (wxString *) &arg3_defvalue ;
11604 bool result;
11605 void *argp1 = 0 ;
11606 int res1 = 0 ;
11607 int val2 ;
11608 int ecode2 = 0 ;
11609 bool temp3 = false ;
11610 PyObject * obj0 = 0 ;
11611 PyObject * obj1 = 0 ;
11612 PyObject * obj2 = 0 ;
11613 char * kwnames[] = {
11614 (char *) "self",(char *) "encoding",(char *) "facename", NULL
11615 };
11616
11617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11619 if (!SWIG_IsOK(res1)) {
11620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11621 }
11622 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11623 ecode2 = SWIG_AsVal_int(obj1, &val2);
11624 if (!SWIG_IsOK(ecode2)) {
11625 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
11626 }
11627 arg2 = static_cast< wxFontEncoding >(val2);
11628 if (obj2) {
093d3ff1 11629 {
554f62e9
RD
11630 arg3 = wxString_in_helper(obj2);
11631 if (arg3 == NULL) SWIG_fail;
11632 temp3 = true;
d55e5bfc 11633 }
554f62e9
RD
11634 }
11635 {
11636 PyThreadState* __tstate = wxPyBeginAllowThreads();
11637 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
11638 wxPyEndAllowThreads(__tstate);
11639 if (PyErr_Occurred()) SWIG_fail;
11640 }
11641 {
11642 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11643 }
11644 {
11645 if (temp3)
11646 delete arg3;
11647 }
11648 return resultobj;
11649fail:
11650 {
11651 if (temp3)
11652 delete arg3;
11653 }
11654 return NULL;
11655}
11656
11657
11658SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11659 PyObject *resultobj = 0;
11660 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11661 wxWindow *arg2 = (wxWindow *) 0 ;
11662 void *argp1 = 0 ;
11663 int res1 = 0 ;
11664 void *argp2 = 0 ;
11665 int res2 = 0 ;
11666 PyObject * obj0 = 0 ;
11667 PyObject * obj1 = 0 ;
11668 char * kwnames[] = {
11669 (char *) "self",(char *) "parent", NULL
11670 };
11671
11672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
11673 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11674 if (!SWIG_IsOK(res1)) {
11675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11676 }
11677 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11678 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11679 if (!SWIG_IsOK(res2)) {
11680 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
11681 }
11682 arg2 = reinterpret_cast< wxWindow * >(argp2);
11683 {
11684 PyThreadState* __tstate = wxPyBeginAllowThreads();
11685 (arg1)->SetDialogParent(arg2);
11686 wxPyEndAllowThreads(__tstate);
11687 if (PyErr_Occurred()) SWIG_fail;
11688 }
11689 resultobj = SWIG_Py_Void();
11690 return resultobj;
11691fail:
11692 return NULL;
11693}
11694
11695
11696SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11697 PyObject *resultobj = 0;
11698 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11699 wxString *arg2 = 0 ;
11700 void *argp1 = 0 ;
11701 int res1 = 0 ;
11702 bool temp2 = false ;
11703 PyObject * obj0 = 0 ;
11704 PyObject * obj1 = 0 ;
11705 char * kwnames[] = {
11706 (char *) "self",(char *) "title", NULL
11707 };
11708
11709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
11710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11711 if (!SWIG_IsOK(res1)) {
11712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11713 }
11714 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11715 {
11716 arg2 = wxString_in_helper(obj1);
11717 if (arg2 == NULL) SWIG_fail;
11718 temp2 = true;
11719 }
11720 {
11721 PyThreadState* __tstate = wxPyBeginAllowThreads();
11722 (arg1)->SetDialogTitle((wxString const &)*arg2);
11723 wxPyEndAllowThreads(__tstate);
11724 if (PyErr_Occurred()) SWIG_fail;
11725 }
11726 resultobj = SWIG_Py_Void();
11727 {
11728 if (temp2)
11729 delete arg2;
11730 }
11731 return resultobj;
11732fail:
11733 {
11734 if (temp2)
11735 delete arg2;
11736 }
11737 return NULL;
11738}
11739
11740
11741SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11742 PyObject *obj;
11743 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11744 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
11745 return SWIG_Py_Void();
11746}
11747
11748SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11749 return SWIG_Python_InitShadowInstance(args);
11750}
11751
11752SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11753 PyObject *resultobj = 0;
11754 int arg1 ;
11755 int arg2 ;
11756 int arg3 ;
11757 int arg4 ;
11758 bool arg5 = (bool) false ;
11759 wxString const &arg6_defvalue = wxPyEmptyString ;
11760 wxString *arg6 = (wxString *) &arg6_defvalue ;
11761 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11762 wxFont *result = 0 ;
11763 int val1 ;
11764 int ecode1 = 0 ;
11765 int val2 ;
11766 int ecode2 = 0 ;
11767 int val3 ;
11768 int ecode3 = 0 ;
11769 int val4 ;
11770 int ecode4 = 0 ;
11771 bool val5 ;
11772 int ecode5 = 0 ;
11773 bool temp6 = false ;
11774 int val7 ;
11775 int ecode7 = 0 ;
11776 PyObject * obj0 = 0 ;
11777 PyObject * obj1 = 0 ;
11778 PyObject * obj2 = 0 ;
11779 PyObject * obj3 = 0 ;
11780 PyObject * obj4 = 0 ;
11781 PyObject * obj5 = 0 ;
11782 PyObject * obj6 = 0 ;
11783 char * kwnames[] = {
11784 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
11785 };
11786
11787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
11788 ecode1 = SWIG_AsVal_int(obj0, &val1);
11789 if (!SWIG_IsOK(ecode1)) {
11790 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
11791 }
11792 arg1 = static_cast< int >(val1);
11793 ecode2 = SWIG_AsVal_int(obj1, &val2);
11794 if (!SWIG_IsOK(ecode2)) {
11795 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
11796 }
11797 arg2 = static_cast< int >(val2);
11798 ecode3 = SWIG_AsVal_int(obj2, &val3);
11799 if (!SWIG_IsOK(ecode3)) {
11800 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
11801 }
11802 arg3 = static_cast< int >(val3);
11803 ecode4 = SWIG_AsVal_int(obj3, &val4);
11804 if (!SWIG_IsOK(ecode4)) {
11805 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
11806 }
11807 arg4 = static_cast< int >(val4);
11808 if (obj4) {
11809 ecode5 = SWIG_AsVal_bool(obj4, &val5);
11810 if (!SWIG_IsOK(ecode5)) {
11811 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
11812 }
11813 arg5 = static_cast< bool >(val5);
11814 }
11815 if (obj5) {
d55e5bfc 11816 {
554f62e9
RD
11817 arg6 = wxString_in_helper(obj5);
11818 if (arg6 == NULL) SWIG_fail;
11819 temp6 = true;
d55e5bfc 11820 }
554f62e9
RD
11821 }
11822 if (obj6) {
11823 ecode7 = SWIG_AsVal_int(obj6, &val7);
11824 if (!SWIG_IsOK(ecode7)) {
11825 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
11826 }
11827 arg7 = static_cast< wxFontEncoding >(val7);
11828 }
11829 {
11830 if (!wxPyCheckForApp()) SWIG_fail;
11831 PyThreadState* __tstate = wxPyBeginAllowThreads();
11832 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
11833 wxPyEndAllowThreads(__tstate);
11834 if (PyErr_Occurred()) SWIG_fail;
11835 }
11836 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
11837 {
11838 if (temp6)
11839 delete arg6;
11840 }
11841 return resultobj;
11842fail:
11843 {
11844 if (temp6)
11845 delete arg6;
11846 }
11847 return NULL;
d55e5bfc
RD
11848}
11849
11850
554f62e9
RD
11851SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11852 PyObject *resultobj = 0;
11853 wxFont *arg1 = (wxFont *) 0 ;
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, SWIG_POINTER_DISOWN | 0 );
11861 if (!SWIG_IsOK(res1)) {
11862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
11863 }
11864 arg1 = reinterpret_cast< wxFont * >(argp1);
11865 {
11866 PyThreadState* __tstate = wxPyBeginAllowThreads();
11867 delete arg1;
d55e5bfc 11868
554f62e9
RD
11869 wxPyEndAllowThreads(__tstate);
11870 if (PyErr_Occurred()) SWIG_fail;
11871 }
11872 resultobj = SWIG_Py_Void();
11873 return resultobj;
11874fail:
11875 return NULL;
11876}
11877
11878
11879SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11880 PyObject *resultobj = 0;
11881 wxNativeFontInfo *arg1 = 0 ;
11882 wxFont *result = 0 ;
11883 void *argp1 = 0 ;
11884 int res1 = 0 ;
11885 PyObject * obj0 = 0 ;
11886 char * kwnames[] = {
11887 (char *) "info", NULL
11888 };
11889
11890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
11891 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
11892 if (!SWIG_IsOK(res1)) {
11893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
11894 }
11895 if (!argp1) {
11896 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
11897 }
11898 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11899 {
11900 if (!wxPyCheckForApp()) SWIG_fail;
11901 PyThreadState* __tstate = wxPyBeginAllowThreads();
11902 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
11903 wxPyEndAllowThreads(__tstate);
11904 if (PyErr_Occurred()) SWIG_fail;
11905 }
11906 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11907 return resultobj;
11908fail:
11909 return NULL;
d55e5bfc
RD
11910}
11911
11912
554f62e9
RD
11913SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11914 PyObject *resultobj = 0;
11915 wxString *arg1 = 0 ;
11916 wxFont *result = 0 ;
11917 bool temp1 = false ;
11918 PyObject * obj0 = 0 ;
11919 char * kwnames[] = {
11920 (char *) "info", NULL
11921 };
11922
11923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
11924 {
11925 arg1 = wxString_in_helper(obj0);
11926 if (arg1 == NULL) SWIG_fail;
11927 temp1 = true;
11928 }
11929 {
11930 if (!wxPyCheckForApp()) SWIG_fail;
11931 PyThreadState* __tstate = wxPyBeginAllowThreads();
11932 result = (wxFont *)new_wxFont((wxString const &)*arg1);
11933 wxPyEndAllowThreads(__tstate);
11934 if (PyErr_Occurred()) SWIG_fail;
11935 }
11936 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11937 {
11938 if (temp1)
11939 delete arg1;
11940 }
11941 return resultobj;
11942fail:
11943 {
11944 if (temp1)
11945 delete arg1;
11946 }
11947 return NULL;
11948}
11949
11950
11951SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11952 PyObject *resultobj = 0;
11953 int arg1 ;
11954 wxFontFamily arg2 ;
11955 int arg3 = (int) wxFONTFLAG_DEFAULT ;
11956 wxString const &arg4_defvalue = wxPyEmptyString ;
11957 wxString *arg4 = (wxString *) &arg4_defvalue ;
11958 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11959 wxFont *result = 0 ;
11960 int val1 ;
11961 int ecode1 = 0 ;
11962 int val2 ;
11963 int ecode2 = 0 ;
11964 int val3 ;
11965 int ecode3 = 0 ;
11966 bool temp4 = false ;
11967 int val5 ;
11968 int ecode5 = 0 ;
11969 PyObject * obj0 = 0 ;
11970 PyObject * obj1 = 0 ;
11971 PyObject * obj2 = 0 ;
11972 PyObject * obj3 = 0 ;
11973 PyObject * obj4 = 0 ;
11974 char * kwnames[] = {
11975 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
11976 };
11977
11978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11979 ecode1 = SWIG_AsVal_int(obj0, &val1);
11980 if (!SWIG_IsOK(ecode1)) {
11981 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
11982 }
11983 arg1 = static_cast< int >(val1);
11984 ecode2 = SWIG_AsVal_int(obj1, &val2);
11985 if (!SWIG_IsOK(ecode2)) {
11986 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
11987 }
11988 arg2 = static_cast< wxFontFamily >(val2);
11989 if (obj2) {
11990 ecode3 = SWIG_AsVal_int(obj2, &val3);
11991 if (!SWIG_IsOK(ecode3)) {
11992 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
11993 }
11994 arg3 = static_cast< int >(val3);
11995 }
11996 if (obj3) {
d55e5bfc 11997 {
554f62e9
RD
11998 arg4 = wxString_in_helper(obj3);
11999 if (arg4 == NULL) SWIG_fail;
12000 temp4 = true;
d55e5bfc 12001 }
554f62e9
RD
12002 }
12003 if (obj4) {
12004 ecode5 = SWIG_AsVal_int(obj4, &val5);
12005 if (!SWIG_IsOK(ecode5)) {
12006 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
12007 }
12008 arg5 = static_cast< wxFontEncoding >(val5);
12009 }
12010 {
12011 if (!wxPyCheckForApp()) SWIG_fail;
12012 PyThreadState* __tstate = wxPyBeginAllowThreads();
12013 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
12014 wxPyEndAllowThreads(__tstate);
12015 if (PyErr_Occurred()) SWIG_fail;
12016 }
12017 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
12018 {
12019 if (temp4)
12020 delete arg4;
12021 }
12022 return resultobj;
12023fail:
12024 {
12025 if (temp4)
12026 delete arg4;
12027 }
12028 return NULL;
12029}
12030
12031
12032SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12033 PyObject *resultobj = 0;
12034 wxSize *arg1 = 0 ;
12035 int arg2 ;
12036 int arg3 ;
12037 int arg4 ;
12038 bool arg5 = (bool) false ;
12039 wxString const &arg6_defvalue = wxEmptyString ;
12040 wxString *arg6 = (wxString *) &arg6_defvalue ;
12041 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
12042 wxFont *result = 0 ;
12043 wxSize temp1 ;
12044 int val2 ;
12045 int ecode2 = 0 ;
12046 int val3 ;
12047 int ecode3 = 0 ;
12048 int val4 ;
12049 int ecode4 = 0 ;
12050 bool val5 ;
12051 int ecode5 = 0 ;
12052 bool temp6 = false ;
12053 int val7 ;
12054 int ecode7 = 0 ;
12055 PyObject * obj0 = 0 ;
12056 PyObject * obj1 = 0 ;
12057 PyObject * obj2 = 0 ;
12058 PyObject * obj3 = 0 ;
12059 PyObject * obj4 = 0 ;
12060 PyObject * obj5 = 0 ;
12061 PyObject * obj6 = 0 ;
12062 char * kwnames[] = {
12063 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
12064 };
12065
12066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
12067 {
12068 arg1 = &temp1;
12069 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
12070 }
12071 ecode2 = SWIG_AsVal_int(obj1, &val2);
12072 if (!SWIG_IsOK(ecode2)) {
12073 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
12074 }
12075 arg2 = static_cast< int >(val2);
12076 ecode3 = SWIG_AsVal_int(obj2, &val3);
12077 if (!SWIG_IsOK(ecode3)) {
12078 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
12079 }
12080 arg3 = static_cast< int >(val3);
12081 ecode4 = SWIG_AsVal_int(obj3, &val4);
12082 if (!SWIG_IsOK(ecode4)) {
12083 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
12084 }
12085 arg4 = static_cast< int >(val4);
12086 if (obj4) {
12087 ecode5 = SWIG_AsVal_bool(obj4, &val5);
12088 if (!SWIG_IsOK(ecode5)) {
12089 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
12090 }
12091 arg5 = static_cast< bool >(val5);
12092 }
12093 if (obj5) {
d55e5bfc 12094 {
554f62e9
RD
12095 arg6 = wxString_in_helper(obj5);
12096 if (arg6 == NULL) SWIG_fail;
12097 temp6 = true;
d55e5bfc 12098 }
554f62e9
RD
12099 }
12100 if (obj6) {
12101 ecode7 = SWIG_AsVal_int(obj6, &val7);
12102 if (!SWIG_IsOK(ecode7)) {
12103 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
12104 }
12105 arg7 = static_cast< wxFontEncoding >(val7);
12106 }
12107 {
12108 if (!wxPyCheckForApp()) SWIG_fail;
12109 PyThreadState* __tstate = wxPyBeginAllowThreads();
12110 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
12111 wxPyEndAllowThreads(__tstate);
12112 if (PyErr_Occurred()) SWIG_fail;
12113 }
12114 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
12115 {
12116 if (temp6)
12117 delete arg6;
12118 }
12119 return resultobj;
12120fail:
12121 {
12122 if (temp6)
12123 delete arg6;
12124 }
12125 return NULL;
12126}
12127
12128
12129SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12130 PyObject *resultobj = 0;
12131 wxSize *arg1 = 0 ;
12132 wxFontFamily arg2 ;
12133 int arg3 = (int) wxFONTFLAG_DEFAULT ;
12134 wxString const &arg4_defvalue = wxEmptyString ;
12135 wxString *arg4 = (wxString *) &arg4_defvalue ;
12136 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
12137 wxFont *result = 0 ;
12138 wxSize temp1 ;
12139 int val2 ;
12140 int ecode2 = 0 ;
12141 int val3 ;
12142 int ecode3 = 0 ;
12143 bool temp4 = false ;
12144 int val5 ;
12145 int ecode5 = 0 ;
12146 PyObject * obj0 = 0 ;
12147 PyObject * obj1 = 0 ;
12148 PyObject * obj2 = 0 ;
12149 PyObject * obj3 = 0 ;
12150 PyObject * obj4 = 0 ;
12151 char * kwnames[] = {
12152 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
12153 };
12154
12155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
12156 {
12157 arg1 = &temp1;
12158 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
12159 }
12160 ecode2 = SWIG_AsVal_int(obj1, &val2);
12161 if (!SWIG_IsOK(ecode2)) {
12162 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
12163 }
12164 arg2 = static_cast< wxFontFamily >(val2);
12165 if (obj2) {
12166 ecode3 = SWIG_AsVal_int(obj2, &val3);
12167 if (!SWIG_IsOK(ecode3)) {
12168 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
12169 }
12170 arg3 = static_cast< int >(val3);
12171 }
12172 if (obj3) {
d55e5bfc 12173 {
554f62e9
RD
12174 arg4 = wxString_in_helper(obj3);
12175 if (arg4 == NULL) SWIG_fail;
12176 temp4 = true;
d55e5bfc 12177 }
554f62e9
RD
12178 }
12179 if (obj4) {
12180 ecode5 = SWIG_AsVal_int(obj4, &val5);
12181 if (!SWIG_IsOK(ecode5)) {
12182 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
12183 }
12184 arg5 = static_cast< wxFontEncoding >(val5);
12185 }
12186 {
12187 if (!wxPyCheckForApp()) SWIG_fail;
12188 PyThreadState* __tstate = wxPyBeginAllowThreads();
12189 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
12190 wxPyEndAllowThreads(__tstate);
12191 if (PyErr_Occurred()) SWIG_fail;
12192 }
12193 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
12194 {
12195 if (temp4)
12196 delete arg4;
12197 }
12198 return resultobj;
12199fail:
12200 {
12201 if (temp4)
12202 delete arg4;
12203 }
12204 return NULL;
d55e5bfc
RD
12205}
12206
12207
554f62e9
RD
12208SWIGINTERN PyObject *_wrap_Font_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12209 PyObject *resultobj = 0;
12210 wxFont *arg1 = (wxFont *) 0 ;
12211 bool result;
12212 void *argp1 = 0 ;
12213 int res1 = 0 ;
12214 PyObject *swig_obj[1] ;
12215
12216 if (!args) SWIG_fail;
12217 swig_obj[0] = args;
12218 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12219 if (!SWIG_IsOK(res1)) {
12220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_Ok" "', expected argument " "1"" of type '" "wxFont const *""'");
12221 }
12222 arg1 = reinterpret_cast< wxFont * >(argp1);
12223 {
12224 PyThreadState* __tstate = wxPyBeginAllowThreads();
12225 result = (bool)((wxFont const *)arg1)->Ok();
12226 wxPyEndAllowThreads(__tstate);
12227 if (PyErr_Occurred()) SWIG_fail;
12228 }
12229 {
12230 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12231 }
12232 return resultobj;
12233fail:
12234 return NULL;
12235}
12236
12237
12238SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12239 PyObject *resultobj = 0;
12240 wxFont *arg1 = (wxFont *) 0 ;
12241 wxFont *arg2 = (wxFont *) 0 ;
12242 bool result;
12243 void *argp1 = 0 ;
12244 int res1 = 0 ;
12245 void *argp2 = 0 ;
12246 int res2 = 0 ;
12247 PyObject * obj0 = 0 ;
12248 PyObject * obj1 = 0 ;
12249 char * kwnames[] = {
12250 (char *) "self",(char *) "other", NULL
12251 };
12252
12253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
12254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12255 if (!SWIG_IsOK(res1)) {
12256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
12257 }
12258 arg1 = reinterpret_cast< wxFont * >(argp1);
12259 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
12260 if (!SWIG_IsOK(res2)) {
12261 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
12262 }
12263 arg2 = reinterpret_cast< wxFont * >(argp2);
12264 {
12265 PyThreadState* __tstate = wxPyBeginAllowThreads();
12266 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
12267 wxPyEndAllowThreads(__tstate);
12268 if (PyErr_Occurred()) SWIG_fail;
12269 }
12270 {
12271 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12272 }
12273 return resultobj;
12274fail:
12275 return NULL;
12276}
12277
12278
12279SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12280 PyObject *resultobj = 0;
12281 wxFont *arg1 = (wxFont *) 0 ;
12282 wxFont *arg2 = (wxFont *) 0 ;
12283 bool result;
12284 void *argp1 = 0 ;
12285 int res1 = 0 ;
12286 void *argp2 = 0 ;
12287 int res2 = 0 ;
12288 PyObject * obj0 = 0 ;
12289 PyObject * obj1 = 0 ;
12290 char * kwnames[] = {
12291 (char *) "self",(char *) "other", NULL
12292 };
12293
12294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
12295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12296 if (!SWIG_IsOK(res1)) {
12297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
12298 }
12299 arg1 = reinterpret_cast< wxFont * >(argp1);
12300 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
12301 if (!SWIG_IsOK(res2)) {
12302 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
12303 }
12304 arg2 = reinterpret_cast< wxFont * >(argp2);
12305 {
12306 PyThreadState* __tstate = wxPyBeginAllowThreads();
12307 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
12308 wxPyEndAllowThreads(__tstate);
12309 if (PyErr_Occurred()) SWIG_fail;
12310 }
12311 {
12312 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12313 }
12314 return resultobj;
12315fail:
12316 return NULL;
a2569024
RD
12317}
12318
12319
554f62e9
RD
12320SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12321 PyObject *resultobj = 0;
12322 wxFont *arg1 = (wxFont *) 0 ;
12323 int result;
12324 void *argp1 = 0 ;
12325 int res1 = 0 ;
12326 PyObject *swig_obj[1] ;
12327
12328 if (!args) SWIG_fail;
12329 swig_obj[0] = args;
12330 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12331 if (!SWIG_IsOK(res1)) {
12332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
12333 }
12334 arg1 = reinterpret_cast< wxFont * >(argp1);
12335 {
12336 PyThreadState* __tstate = wxPyBeginAllowThreads();
12337 result = (int)((wxFont const *)arg1)->GetPointSize();
12338 wxPyEndAllowThreads(__tstate);
12339 if (PyErr_Occurred()) SWIG_fail;
12340 }
12341 resultobj = SWIG_From_int(static_cast< int >(result));
12342 return resultobj;
12343fail:
12344 return NULL;
d55e5bfc
RD
12345}
12346
12347
554f62e9
RD
12348SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12349 PyObject *resultobj = 0;
12350 wxFont *arg1 = (wxFont *) 0 ;
12351 wxSize result;
12352 void *argp1 = 0 ;
12353 int res1 = 0 ;
12354 PyObject *swig_obj[1] ;
12355
12356 if (!args) SWIG_fail;
12357 swig_obj[0] = args;
12358 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12359 if (!SWIG_IsOK(res1)) {
12360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
12361 }
12362 arg1 = reinterpret_cast< wxFont * >(argp1);
12363 {
12364 PyThreadState* __tstate = wxPyBeginAllowThreads();
12365 result = ((wxFont const *)arg1)->GetPixelSize();
12366 wxPyEndAllowThreads(__tstate);
12367 if (PyErr_Occurred()) SWIG_fail;
12368 }
12369 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
12370 return resultobj;
12371fail:
12372 return NULL;
d55e5bfc
RD
12373}
12374
12375
554f62e9
RD
12376SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12377 PyObject *resultobj = 0;
12378 wxFont *arg1 = (wxFont *) 0 ;
12379 bool result;
12380 void *argp1 = 0 ;
12381 int res1 = 0 ;
12382 PyObject *swig_obj[1] ;
12383
12384 if (!args) SWIG_fail;
12385 swig_obj[0] = args;
12386 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12387 if (!SWIG_IsOK(res1)) {
12388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
12389 }
12390 arg1 = reinterpret_cast< wxFont * >(argp1);
12391 {
12392 PyThreadState* __tstate = wxPyBeginAllowThreads();
12393 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
12394 wxPyEndAllowThreads(__tstate);
12395 if (PyErr_Occurred()) SWIG_fail;
12396 }
12397 {
12398 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12399 }
12400 return resultobj;
12401fail:
12402 return NULL;
d55e5bfc
RD
12403}
12404
12405
554f62e9
RD
12406SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12407 PyObject *resultobj = 0;
12408 wxFont *arg1 = (wxFont *) 0 ;
12409 int result;
12410 void *argp1 = 0 ;
12411 int res1 = 0 ;
12412 PyObject *swig_obj[1] ;
12413
12414 if (!args) SWIG_fail;
12415 swig_obj[0] = args;
12416 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12417 if (!SWIG_IsOK(res1)) {
12418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
12419 }
12420 arg1 = reinterpret_cast< wxFont * >(argp1);
12421 {
12422 PyThreadState* __tstate = wxPyBeginAllowThreads();
12423 result = (int)((wxFont const *)arg1)->GetFamily();
12424 wxPyEndAllowThreads(__tstate);
12425 if (PyErr_Occurred()) SWIG_fail;
12426 }
12427 resultobj = SWIG_From_int(static_cast< int >(result));
12428 return resultobj;
12429fail:
12430 return NULL;
d55e5bfc
RD
12431}
12432
12433
554f62e9
RD
12434SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12435 PyObject *resultobj = 0;
12436 wxFont *arg1 = (wxFont *) 0 ;
12437 int result;
12438 void *argp1 = 0 ;
12439 int res1 = 0 ;
12440 PyObject *swig_obj[1] ;
12441
12442 if (!args) SWIG_fail;
12443 swig_obj[0] = args;
12444 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12445 if (!SWIG_IsOK(res1)) {
12446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
12447 }
12448 arg1 = reinterpret_cast< wxFont * >(argp1);
12449 {
12450 PyThreadState* __tstate = wxPyBeginAllowThreads();
12451 result = (int)((wxFont const *)arg1)->GetStyle();
12452 wxPyEndAllowThreads(__tstate);
12453 if (PyErr_Occurred()) SWIG_fail;
12454 }
12455 resultobj = SWIG_From_int(static_cast< int >(result));
12456 return resultobj;
12457fail:
12458 return NULL;
d55e5bfc
RD
12459}
12460
12461
554f62e9
RD
12462SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12463 PyObject *resultobj = 0;
12464 wxFont *arg1 = (wxFont *) 0 ;
12465 int result;
12466 void *argp1 = 0 ;
12467 int res1 = 0 ;
12468 PyObject *swig_obj[1] ;
12469
12470 if (!args) SWIG_fail;
12471 swig_obj[0] = args;
12472 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12473 if (!SWIG_IsOK(res1)) {
12474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
12475 }
12476 arg1 = reinterpret_cast< wxFont * >(argp1);
12477 {
12478 PyThreadState* __tstate = wxPyBeginAllowThreads();
12479 result = (int)((wxFont const *)arg1)->GetWeight();
12480 wxPyEndAllowThreads(__tstate);
12481 if (PyErr_Occurred()) SWIG_fail;
12482 }
12483 resultobj = SWIG_From_int(static_cast< int >(result));
12484 return resultobj;
12485fail:
12486 return NULL;
d55e5bfc
RD
12487}
12488
12489
554f62e9
RD
12490SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12491 PyObject *resultobj = 0;
12492 wxFont *arg1 = (wxFont *) 0 ;
12493 bool result;
12494 void *argp1 = 0 ;
12495 int res1 = 0 ;
12496 PyObject *swig_obj[1] ;
12497
12498 if (!args) SWIG_fail;
12499 swig_obj[0] = args;
12500 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12501 if (!SWIG_IsOK(res1)) {
12502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
12503 }
12504 arg1 = reinterpret_cast< wxFont * >(argp1);
12505 {
12506 PyThreadState* __tstate = wxPyBeginAllowThreads();
12507 result = (bool)((wxFont const *)arg1)->GetUnderlined();
12508 wxPyEndAllowThreads(__tstate);
12509 if (PyErr_Occurred()) SWIG_fail;
12510 }
12511 {
12512 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12513 }
12514 return resultobj;
12515fail:
12516 return NULL;
d55e5bfc
RD
12517}
12518
12519
554f62e9
RD
12520SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12521 PyObject *resultobj = 0;
12522 wxFont *arg1 = (wxFont *) 0 ;
12523 wxString result;
12524 void *argp1 = 0 ;
12525 int res1 = 0 ;
12526 PyObject *swig_obj[1] ;
12527
12528 if (!args) SWIG_fail;
12529 swig_obj[0] = args;
12530 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12531 if (!SWIG_IsOK(res1)) {
12532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
12533 }
12534 arg1 = reinterpret_cast< wxFont * >(argp1);
12535 {
12536 PyThreadState* __tstate = wxPyBeginAllowThreads();
12537 result = ((wxFont const *)arg1)->GetFaceName();
12538 wxPyEndAllowThreads(__tstate);
12539 if (PyErr_Occurred()) SWIG_fail;
12540 }
12541 {
12542#if wxUSE_UNICODE
12543 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12544#else
12545 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12546#endif
12547 }
12548 return resultobj;
12549fail:
12550 return NULL;
d55e5bfc
RD
12551}
12552
12553
554f62e9
RD
12554SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12555 PyObject *resultobj = 0;
12556 wxFont *arg1 = (wxFont *) 0 ;
12557 wxFontEncoding result;
12558 void *argp1 = 0 ;
12559 int res1 = 0 ;
12560 PyObject *swig_obj[1] ;
12561
12562 if (!args) SWIG_fail;
12563 swig_obj[0] = args;
12564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12565 if (!SWIG_IsOK(res1)) {
12566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
12567 }
12568 arg1 = reinterpret_cast< wxFont * >(argp1);
12569 {
12570 PyThreadState* __tstate = wxPyBeginAllowThreads();
12571 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
12572 wxPyEndAllowThreads(__tstate);
12573 if (PyErr_Occurred()) SWIG_fail;
12574 }
12575 resultobj = SWIG_From_int(static_cast< int >(result));
12576 return resultobj;
12577fail:
12578 return NULL;
d55e5bfc
RD
12579}
12580
12581
554f62e9
RD
12582SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12583 PyObject *resultobj = 0;
12584 wxFont *arg1 = (wxFont *) 0 ;
12585 wxNativeFontInfo *result = 0 ;
12586 void *argp1 = 0 ;
12587 int res1 = 0 ;
12588 PyObject *swig_obj[1] ;
12589
12590 if (!args) SWIG_fail;
12591 swig_obj[0] = args;
12592 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12593 if (!SWIG_IsOK(res1)) {
12594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
12595 }
12596 arg1 = reinterpret_cast< wxFont * >(argp1);
12597 {
12598 PyThreadState* __tstate = wxPyBeginAllowThreads();
12599 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
12600 wxPyEndAllowThreads(__tstate);
12601 if (PyErr_Occurred()) SWIG_fail;
12602 }
12603 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12604 return resultobj;
12605fail:
12606 return NULL;
d55e5bfc
RD
12607}
12608
12609
554f62e9
RD
12610SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12611 PyObject *resultobj = 0;
12612 wxFont *arg1 = (wxFont *) 0 ;
12613 bool result;
12614 void *argp1 = 0 ;
12615 int res1 = 0 ;
12616 PyObject *swig_obj[1] ;
12617
12618 if (!args) SWIG_fail;
12619 swig_obj[0] = args;
12620 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12621 if (!SWIG_IsOK(res1)) {
12622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
12623 }
12624 arg1 = reinterpret_cast< wxFont * >(argp1);
12625 {
12626 PyThreadState* __tstate = wxPyBeginAllowThreads();
12627 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
12628 wxPyEndAllowThreads(__tstate);
12629 if (PyErr_Occurred()) SWIG_fail;
12630 }
12631 {
12632 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12633 }
12634 return resultobj;
12635fail:
12636 return NULL;
d55e5bfc
RD
12637}
12638
12639
554f62e9
RD
12640SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12641 PyObject *resultobj = 0;
12642 wxFont *arg1 = (wxFont *) 0 ;
12643 wxString result;
12644 void *argp1 = 0 ;
12645 int res1 = 0 ;
12646 PyObject *swig_obj[1] ;
12647
12648 if (!args) SWIG_fail;
12649 swig_obj[0] = args;
12650 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12651 if (!SWIG_IsOK(res1)) {
12652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
12653 }
12654 arg1 = reinterpret_cast< wxFont * >(argp1);
12655 {
12656 PyThreadState* __tstate = wxPyBeginAllowThreads();
12657 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
12658 wxPyEndAllowThreads(__tstate);
12659 if (PyErr_Occurred()) SWIG_fail;
12660 }
12661 {
12662#if wxUSE_UNICODE
12663 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12664#else
12665 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12666#endif
12667 }
12668 return resultobj;
12669fail:
12670 return NULL;
d55e5bfc
RD
12671}
12672
12673
554f62e9
RD
12674SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12675 PyObject *resultobj = 0;
12676 wxFont *arg1 = (wxFont *) 0 ;
12677 wxString result;
12678 void *argp1 = 0 ;
12679 int res1 = 0 ;
12680 PyObject *swig_obj[1] ;
12681
12682 if (!args) SWIG_fail;
12683 swig_obj[0] = args;
12684 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12685 if (!SWIG_IsOK(res1)) {
12686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
12687 }
12688 arg1 = reinterpret_cast< wxFont * >(argp1);
12689 {
12690 PyThreadState* __tstate = wxPyBeginAllowThreads();
12691 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
12692 wxPyEndAllowThreads(__tstate);
12693 if (PyErr_Occurred()) SWIG_fail;
12694 }
12695 {
12696#if wxUSE_UNICODE
12697 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12698#else
12699 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12700#endif
12701 }
12702 return resultobj;
12703fail:
12704 return NULL;
12705}
12706
12707
12708SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12709 PyObject *resultobj = 0;
12710 wxFont *arg1 = (wxFont *) 0 ;
12711 int arg2 ;
12712 void *argp1 = 0 ;
12713 int res1 = 0 ;
12714 int val2 ;
12715 int ecode2 = 0 ;
12716 PyObject * obj0 = 0 ;
12717 PyObject * obj1 = 0 ;
12718 char * kwnames[] = {
12719 (char *) "self",(char *) "pointSize", NULL
12720 };
12721
12722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12724 if (!SWIG_IsOK(res1)) {
12725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
12726 }
12727 arg1 = reinterpret_cast< wxFont * >(argp1);
12728 ecode2 = SWIG_AsVal_int(obj1, &val2);
12729 if (!SWIG_IsOK(ecode2)) {
12730 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12731 }
12732 arg2 = static_cast< int >(val2);
12733 {
12734 PyThreadState* __tstate = wxPyBeginAllowThreads();
12735 (arg1)->SetPointSize(arg2);
12736 wxPyEndAllowThreads(__tstate);
12737 if (PyErr_Occurred()) SWIG_fail;
12738 }
12739 resultobj = SWIG_Py_Void();
12740 return resultobj;
12741fail:
12742 return NULL;
12743}
12744
12745
12746SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12747 PyObject *resultobj = 0;
12748 wxFont *arg1 = (wxFont *) 0 ;
12749 wxSize *arg2 = 0 ;
12750 void *argp1 = 0 ;
12751 int res1 = 0 ;
12752 wxSize temp2 ;
12753 PyObject * obj0 = 0 ;
12754 PyObject * obj1 = 0 ;
12755 char * kwnames[] = {
12756 (char *) "self",(char *) "pixelSize", NULL
12757 };
12758
12759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
12760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12761 if (!SWIG_IsOK(res1)) {
12762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
12763 }
12764 arg1 = reinterpret_cast< wxFont * >(argp1);
12765 {
12766 arg2 = &temp2;
12767 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
12768 }
12769 {
12770 PyThreadState* __tstate = wxPyBeginAllowThreads();
12771 (arg1)->SetPixelSize((wxSize const &)*arg2);
12772 wxPyEndAllowThreads(__tstate);
12773 if (PyErr_Occurred()) SWIG_fail;
12774 }
12775 resultobj = SWIG_Py_Void();
12776 return resultobj;
12777fail:
12778 return NULL;
12779}
12780
12781
12782SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12783 PyObject *resultobj = 0;
12784 wxFont *arg1 = (wxFont *) 0 ;
12785 int arg2 ;
12786 void *argp1 = 0 ;
12787 int res1 = 0 ;
12788 int val2 ;
12789 int ecode2 = 0 ;
12790 PyObject * obj0 = 0 ;
12791 PyObject * obj1 = 0 ;
12792 char * kwnames[] = {
12793 (char *) "self",(char *) "family", NULL
12794 };
12795
12796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12798 if (!SWIG_IsOK(res1)) {
12799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
12800 }
12801 arg1 = reinterpret_cast< wxFont * >(argp1);
12802 ecode2 = SWIG_AsVal_int(obj1, &val2);
12803 if (!SWIG_IsOK(ecode2)) {
12804 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
12805 }
12806 arg2 = static_cast< int >(val2);
12807 {
12808 PyThreadState* __tstate = wxPyBeginAllowThreads();
12809 (arg1)->SetFamily(arg2);
12810 wxPyEndAllowThreads(__tstate);
12811 if (PyErr_Occurred()) SWIG_fail;
12812 }
12813 resultobj = SWIG_Py_Void();
12814 return resultobj;
12815fail:
12816 return NULL;
12817}
12818
12819
12820SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12821 PyObject *resultobj = 0;
12822 wxFont *arg1 = (wxFont *) 0 ;
12823 int arg2 ;
12824 void *argp1 = 0 ;
12825 int res1 = 0 ;
12826 int val2 ;
12827 int ecode2 = 0 ;
12828 PyObject * obj0 = 0 ;
12829 PyObject * obj1 = 0 ;
12830 char * kwnames[] = {
12831 (char *) "self",(char *) "style", NULL
12832 };
12833
12834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12836 if (!SWIG_IsOK(res1)) {
12837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
12838 }
12839 arg1 = reinterpret_cast< wxFont * >(argp1);
12840 ecode2 = SWIG_AsVal_int(obj1, &val2);
12841 if (!SWIG_IsOK(ecode2)) {
12842 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
12843 }
12844 arg2 = static_cast< int >(val2);
12845 {
12846 PyThreadState* __tstate = wxPyBeginAllowThreads();
12847 (arg1)->SetStyle(arg2);
12848 wxPyEndAllowThreads(__tstate);
12849 if (PyErr_Occurred()) SWIG_fail;
12850 }
12851 resultobj = SWIG_Py_Void();
12852 return resultobj;
12853fail:
12854 return NULL;
12855}
12856
12857
12858SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12859 PyObject *resultobj = 0;
12860 wxFont *arg1 = (wxFont *) 0 ;
12861 int arg2 ;
12862 void *argp1 = 0 ;
12863 int res1 = 0 ;
12864 int val2 ;
12865 int ecode2 = 0 ;
12866 PyObject * obj0 = 0 ;
12867 PyObject * obj1 = 0 ;
12868 char * kwnames[] = {
12869 (char *) "self",(char *) "weight", NULL
12870 };
12871
12872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12874 if (!SWIG_IsOK(res1)) {
12875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
12876 }
12877 arg1 = reinterpret_cast< wxFont * >(argp1);
12878 ecode2 = SWIG_AsVal_int(obj1, &val2);
12879 if (!SWIG_IsOK(ecode2)) {
12880 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
12881 }
12882 arg2 = static_cast< int >(val2);
12883 {
12884 PyThreadState* __tstate = wxPyBeginAllowThreads();
12885 (arg1)->SetWeight(arg2);
12886 wxPyEndAllowThreads(__tstate);
12887 if (PyErr_Occurred()) SWIG_fail;
12888 }
12889 resultobj = SWIG_Py_Void();
12890 return resultobj;
12891fail:
12892 return NULL;
12893}
12894
12895
12896SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12897 PyObject *resultobj = 0;
12898 wxFont *arg1 = (wxFont *) 0 ;
12899 wxString *arg2 = 0 ;
704eda0c 12900 bool result;
554f62e9
RD
12901 void *argp1 = 0 ;
12902 int res1 = 0 ;
12903 bool temp2 = false ;
12904 PyObject * obj0 = 0 ;
12905 PyObject * obj1 = 0 ;
12906 char * kwnames[] = {
12907 (char *) "self",(char *) "faceName", NULL
12908 };
12909
12910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12912 if (!SWIG_IsOK(res1)) {
12913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
12914 }
12915 arg1 = reinterpret_cast< wxFont * >(argp1);
12916 {
12917 arg2 = wxString_in_helper(obj1);
12918 if (arg2 == NULL) SWIG_fail;
12919 temp2 = true;
12920 }
12921 {
12922 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 12923 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
554f62e9
RD
12924 wxPyEndAllowThreads(__tstate);
12925 if (PyErr_Occurred()) SWIG_fail;
12926 }
704eda0c
RD
12927 {
12928 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12929 }
554f62e9
RD
12930 {
12931 if (temp2)
12932 delete arg2;
12933 }
12934 return resultobj;
12935fail:
12936 {
12937 if (temp2)
12938 delete arg2;
12939 }
12940 return NULL;
12941}
12942
12943
12944SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12945 PyObject *resultobj = 0;
12946 wxFont *arg1 = (wxFont *) 0 ;
12947 bool arg2 ;
12948 void *argp1 = 0 ;
12949 int res1 = 0 ;
12950 bool val2 ;
12951 int ecode2 = 0 ;
12952 PyObject * obj0 = 0 ;
12953 PyObject * obj1 = 0 ;
12954 char * kwnames[] = {
12955 (char *) "self",(char *) "underlined", NULL
12956 };
12957
12958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12960 if (!SWIG_IsOK(res1)) {
12961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
12962 }
12963 arg1 = reinterpret_cast< wxFont * >(argp1);
12964 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12965 if (!SWIG_IsOK(ecode2)) {
12966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12967 }
12968 arg2 = static_cast< bool >(val2);
12969 {
12970 PyThreadState* __tstate = wxPyBeginAllowThreads();
12971 (arg1)->SetUnderlined(arg2);
12972 wxPyEndAllowThreads(__tstate);
12973 if (PyErr_Occurred()) SWIG_fail;
12974 }
12975 resultobj = SWIG_Py_Void();
12976 return resultobj;
12977fail:
12978 return NULL;
12979}
12980
12981
12982SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12983 PyObject *resultobj = 0;
12984 wxFont *arg1 = (wxFont *) 0 ;
12985 wxFontEncoding arg2 ;
12986 void *argp1 = 0 ;
12987 int res1 = 0 ;
12988 int val2 ;
12989 int ecode2 = 0 ;
12990 PyObject * obj0 = 0 ;
12991 PyObject * obj1 = 0 ;
12992 char * kwnames[] = {
12993 (char *) "self",(char *) "encoding", NULL
12994 };
12995
12996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12998 if (!SWIG_IsOK(res1)) {
12999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
13000 }
13001 arg1 = reinterpret_cast< wxFont * >(argp1);
13002 ecode2 = SWIG_AsVal_int(obj1, &val2);
13003 if (!SWIG_IsOK(ecode2)) {
13004 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13005 }
13006 arg2 = static_cast< wxFontEncoding >(val2);
13007 {
13008 PyThreadState* __tstate = wxPyBeginAllowThreads();
13009 (arg1)->SetEncoding(arg2);
13010 wxPyEndAllowThreads(__tstate);
13011 if (PyErr_Occurred()) SWIG_fail;
13012 }
13013 resultobj = SWIG_Py_Void();
13014 return resultobj;
13015fail:
13016 return NULL;
13017}
13018
13019
13020SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13021 PyObject *resultobj = 0;
13022 wxFont *arg1 = (wxFont *) 0 ;
13023 wxNativeFontInfo *arg2 = 0 ;
13024 void *argp1 = 0 ;
13025 int res1 = 0 ;
13026 void *argp2 = 0 ;
13027 int res2 = 0 ;
13028 PyObject * obj0 = 0 ;
13029 PyObject * obj1 = 0 ;
13030 char * kwnames[] = {
13031 (char *) "self",(char *) "info", NULL
13032 };
13033
13034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
13035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13036 if (!SWIG_IsOK(res1)) {
13037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
13038 }
13039 arg1 = reinterpret_cast< wxFont * >(argp1);
13040 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13041 if (!SWIG_IsOK(res2)) {
13042 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
13043 }
13044 if (!argp2) {
13045 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
13046 }
13047 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
13048 {
13049 PyThreadState* __tstate = wxPyBeginAllowThreads();
13050 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
13051 wxPyEndAllowThreads(__tstate);
13052 if (PyErr_Occurred()) SWIG_fail;
13053 }
13054 resultobj = SWIG_Py_Void();
13055 return resultobj;
13056fail:
13057 return NULL;
13058}
13059
13060
13061SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13062 PyObject *resultobj = 0;
13063 wxFont *arg1 = (wxFont *) 0 ;
13064 wxString *arg2 = 0 ;
704eda0c 13065 bool result;
554f62e9
RD
13066 void *argp1 = 0 ;
13067 int res1 = 0 ;
13068 bool temp2 = false ;
13069 PyObject * obj0 = 0 ;
13070 PyObject * obj1 = 0 ;
13071 char * kwnames[] = {
13072 (char *) "self",(char *) "info", NULL
13073 };
13074
13075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
13076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13077 if (!SWIG_IsOK(res1)) {
13078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
13079 }
13080 arg1 = reinterpret_cast< wxFont * >(argp1);
13081 {
13082 arg2 = wxString_in_helper(obj1);
13083 if (arg2 == NULL) SWIG_fail;
13084 temp2 = true;
13085 }
13086 {
13087 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 13088 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
554f62e9
RD
13089 wxPyEndAllowThreads(__tstate);
13090 if (PyErr_Occurred()) SWIG_fail;
13091 }
704eda0c
RD
13092 {
13093 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13094 }
554f62e9
RD
13095 {
13096 if (temp2)
13097 delete arg2;
13098 }
13099 return resultobj;
13100fail:
13101 {
13102 if (temp2)
13103 delete arg2;
13104 }
13105 return NULL;
d55e5bfc
RD
13106}
13107
13108
554f62e9
RD
13109SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13110 PyObject *resultobj = 0;
13111 wxFont *arg1 = (wxFont *) 0 ;
13112 wxString *arg2 = 0 ;
704eda0c 13113 bool result;
554f62e9
RD
13114 void *argp1 = 0 ;
13115 int res1 = 0 ;
13116 bool temp2 = false ;
13117 PyObject * obj0 = 0 ;
13118 PyObject * obj1 = 0 ;
13119 char * kwnames[] = {
13120 (char *) "self",(char *) "info", NULL
13121 };
13122
13123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
13124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13125 if (!SWIG_IsOK(res1)) {
13126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
13127 }
13128 arg1 = reinterpret_cast< wxFont * >(argp1);
13129 {
13130 arg2 = wxString_in_helper(obj1);
13131 if (arg2 == NULL) SWIG_fail;
13132 temp2 = true;
13133 }
13134 {
13135 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 13136 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
554f62e9
RD
13137 wxPyEndAllowThreads(__tstate);
13138 if (PyErr_Occurred()) SWIG_fail;
13139 }
704eda0c
RD
13140 {
13141 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13142 }
554f62e9
RD
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
554f62e9
RD
13157SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13158 PyObject *resultobj = 0;
13159 wxFont *arg1 = (wxFont *) 0 ;
13160 wxString result;
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_wxFont, 0 | 0 );
13168 if (!SWIG_IsOK(res1)) {
13169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
13170 }
13171 arg1 = reinterpret_cast< wxFont * >(argp1);
13172 {
13173 PyThreadState* __tstate = wxPyBeginAllowThreads();
13174 result = ((wxFont const *)arg1)->GetFamilyString();
13175 wxPyEndAllowThreads(__tstate);
13176 if (PyErr_Occurred()) SWIG_fail;
13177 }
13178 {
13179#if wxUSE_UNICODE
13180 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13181#else
13182 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13183#endif
13184 }
13185 return resultobj;
13186fail:
13187 return NULL;
d55e5bfc
RD
13188}
13189
13190
554f62e9
RD
13191SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13192 PyObject *resultobj = 0;
13193 wxFont *arg1 = (wxFont *) 0 ;
13194 wxString result;
13195 void *argp1 = 0 ;
13196 int res1 = 0 ;
13197 PyObject *swig_obj[1] ;
13198
13199 if (!args) SWIG_fail;
13200 swig_obj[0] = args;
13201 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13202 if (!SWIG_IsOK(res1)) {
13203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
13204 }
13205 arg1 = reinterpret_cast< wxFont * >(argp1);
13206 {
13207 PyThreadState* __tstate = wxPyBeginAllowThreads();
13208 result = ((wxFont const *)arg1)->GetStyleString();
13209 wxPyEndAllowThreads(__tstate);
13210 if (PyErr_Occurred()) SWIG_fail;
13211 }
13212 {
13213#if wxUSE_UNICODE
13214 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13215#else
13216 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13217#endif
13218 }
13219 return resultobj;
13220fail:
13221 return NULL;
d55e5bfc
RD
13222}
13223
13224
554f62e9
RD
13225SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13226 PyObject *resultobj = 0;
13227 wxFont *arg1 = (wxFont *) 0 ;
13228 wxString result;
13229 void *argp1 = 0 ;
13230 int res1 = 0 ;
13231 PyObject *swig_obj[1] ;
13232
13233 if (!args) SWIG_fail;
13234 swig_obj[0] = args;
13235 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13236 if (!SWIG_IsOK(res1)) {
13237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
13238 }
13239 arg1 = reinterpret_cast< wxFont * >(argp1);
13240 {
13241 PyThreadState* __tstate = wxPyBeginAllowThreads();
13242 result = ((wxFont const *)arg1)->GetWeightString();
13243 wxPyEndAllowThreads(__tstate);
13244 if (PyErr_Occurred()) SWIG_fail;
13245 }
13246 {
13247#if wxUSE_UNICODE
13248 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13249#else
13250 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13251#endif
13252 }
13253 return resultobj;
13254fail:
13255 return NULL;
13256}
13257
13258
13259SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13260 PyObject *resultobj = 0;
13261 wxFont *arg1 = (wxFont *) 0 ;
13262 bool arg2 = (bool) true ;
13263 void *argp1 = 0 ;
13264 int res1 = 0 ;
13265 bool val2 ;
13266 int ecode2 = 0 ;
13267 PyObject * obj0 = 0 ;
13268 PyObject * obj1 = 0 ;
13269 char * kwnames[] = {
13270 (char *) "self",(char *) "no", NULL
13271 };
13272
13273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
13274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13275 if (!SWIG_IsOK(res1)) {
13276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
13277 }
13278 arg1 = reinterpret_cast< wxFont * >(argp1);
13279 if (obj1) {
13280 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13281 if (!SWIG_IsOK(ecode2)) {
13282 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
13283 }
13284 arg2 = static_cast< bool >(val2);
13285 }
13286 {
13287 PyThreadState* __tstate = wxPyBeginAllowThreads();
13288 (arg1)->SetNoAntiAliasing(arg2);
13289 wxPyEndAllowThreads(__tstate);
13290 if (PyErr_Occurred()) SWIG_fail;
13291 }
13292 resultobj = SWIG_Py_Void();
13293 return resultobj;
13294fail:
13295 return NULL;
d55e5bfc
RD
13296}
13297
13298
554f62e9
RD
13299SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13300 PyObject *resultobj = 0;
13301 wxFont *arg1 = (wxFont *) 0 ;
13302 bool result;
13303 void *argp1 = 0 ;
13304 int res1 = 0 ;
13305 PyObject *swig_obj[1] ;
13306
13307 if (!args) SWIG_fail;
13308 swig_obj[0] = args;
13309 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13310 if (!SWIG_IsOK(res1)) {
13311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
13312 }
13313 arg1 = reinterpret_cast< wxFont * >(argp1);
13314 {
13315 PyThreadState* __tstate = wxPyBeginAllowThreads();
13316 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
13317 wxPyEndAllowThreads(__tstate);
13318 if (PyErr_Occurred()) SWIG_fail;
13319 }
13320 {
13321 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13322 }
13323 return resultobj;
13324fail:
13325 return NULL;
d55e5bfc
RD
13326}
13327
13328
554f62e9
RD
13329SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13330 PyObject *resultobj = 0;
13331 wxFontEncoding result;
13332
13333 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
13334 {
13335 if (!wxPyCheckForApp()) SWIG_fail;
13336 PyThreadState* __tstate = wxPyBeginAllowThreads();
13337 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
13338 wxPyEndAllowThreads(__tstate);
13339 if (PyErr_Occurred()) SWIG_fail;
13340 }
13341 resultobj = SWIG_From_int(static_cast< int >(result));
13342 return resultobj;
13343fail:
13344 return NULL;
d55e5bfc
RD
13345}
13346
13347
554f62e9
RD
13348SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13349 PyObject *resultobj = 0;
13350 wxFontEncoding arg1 ;
13351 int val1 ;
13352 int ecode1 = 0 ;
13353 PyObject * obj0 = 0 ;
13354 char * kwnames[] = {
13355 (char *) "encoding", NULL
13356 };
13357
13358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
13359 ecode1 = SWIG_AsVal_int(obj0, &val1);
13360 if (!SWIG_IsOK(ecode1)) {
13361 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13362 }
13363 arg1 = static_cast< wxFontEncoding >(val1);
13364 {
13365 if (!wxPyCheckForApp()) SWIG_fail;
13366 PyThreadState* __tstate = wxPyBeginAllowThreads();
13367 wxFont::SetDefaultEncoding(arg1);
13368 wxPyEndAllowThreads(__tstate);
13369 if (PyErr_Occurred()) SWIG_fail;
13370 }
13371 resultobj = SWIG_Py_Void();
13372 return resultobj;
13373fail:
13374 return NULL;
5e483524
RD
13375}
13376
13377
554f62e9
RD
13378SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13379 PyObject *obj;
13380 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13381 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
13382 return SWIG_Py_Void();
d55e5bfc
RD
13383}
13384
554f62e9
RD
13385SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13386 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
13387}
13388
554f62e9
RD
13389SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13390 PyObject *resultobj = 0;
13391 wxPyFontEnumerator *result = 0 ;
13392
13393 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
13394 {
13395 if (!wxPyCheckForApp()) SWIG_fail;
13396 PyThreadState* __tstate = wxPyBeginAllowThreads();
13397 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
13398 wxPyEndAllowThreads(__tstate);
13399 if (PyErr_Occurred()) SWIG_fail;
13400 }
13401 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
13402 return resultobj;
13403fail:
13404 return NULL;
d55e5bfc
RD
13405}
13406
13407
554f62e9
RD
13408SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13409 PyObject *resultobj = 0;
13410 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
13411 void *argp1 = 0 ;
13412 int res1 = 0 ;
13413 PyObject *swig_obj[1] ;
13414
13415 if (!args) SWIG_fail;
13416 swig_obj[0] = args;
13417 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
13418 if (!SWIG_IsOK(res1)) {
13419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
13420 }
13421 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
13422 {
13423 PyThreadState* __tstate = wxPyBeginAllowThreads();
13424 delete arg1;
d55e5bfc 13425
554f62e9
RD
13426 wxPyEndAllowThreads(__tstate);
13427 if (PyErr_Occurred()) SWIG_fail;
13428 }
13429 resultobj = SWIG_Py_Void();
13430 return resultobj;
13431fail:
13432 return NULL;
13433}
13434
13435
13436SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13437 PyObject *resultobj = 0;
13438 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
13439 PyObject *arg2 = (PyObject *) 0 ;
13440 PyObject *arg3 = (PyObject *) 0 ;
13441 bool arg4 ;
13442 void *argp1 = 0 ;
13443 int res1 = 0 ;
13444 bool val4 ;
13445 int ecode4 = 0 ;
13446 PyObject * obj0 = 0 ;
13447 PyObject * obj1 = 0 ;
13448 PyObject * obj2 = 0 ;
13449 PyObject * obj3 = 0 ;
13450 char * kwnames[] = {
13451 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
13452 };
13453
13454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
13456 if (!SWIG_IsOK(res1)) {
13457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
13458 }
13459 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
13460 arg2 = obj1;
13461 arg3 = obj2;
13462 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13463 if (!SWIG_IsOK(ecode4)) {
13464 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
13465 }
13466 arg4 = static_cast< bool >(val4);
13467 {
13468 PyThreadState* __tstate = wxPyBeginAllowThreads();
13469 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
13470 wxPyEndAllowThreads(__tstate);
13471 if (PyErr_Occurred()) SWIG_fail;
13472 }
13473 resultobj = SWIG_Py_Void();
13474 return resultobj;
13475fail:
13476 return NULL;
13477}
13478
13479
13480SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13481 PyObject *resultobj = 0;
13482 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
13483 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
13484 bool arg3 = (bool) false ;
13485 bool result;
13486 void *argp1 = 0 ;
13487 int res1 = 0 ;
13488 int val2 ;
13489 int ecode2 = 0 ;
13490 bool val3 ;
13491 int ecode3 = 0 ;
13492 PyObject * obj0 = 0 ;
13493 PyObject * obj1 = 0 ;
13494 PyObject * obj2 = 0 ;
13495 char * kwnames[] = {
13496 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
13497 };
13498
13499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
13501 if (!SWIG_IsOK(res1)) {
13502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
13503 }
13504 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
13505 if (obj1) {
13506 ecode2 = SWIG_AsVal_int(obj1, &val2);
13507 if (!SWIG_IsOK(ecode2)) {
13508 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13509 }
13510 arg2 = static_cast< wxFontEncoding >(val2);
13511 }
13512 if (obj2) {
13513 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13514 if (!SWIG_IsOK(ecode3)) {
13515 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
13516 }
13517 arg3 = static_cast< bool >(val3);
13518 }
13519 {
13520 PyThreadState* __tstate = wxPyBeginAllowThreads();
13521 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
13522 wxPyEndAllowThreads(__tstate);
13523 if (PyErr_Occurred()) SWIG_fail;
13524 }
13525 {
13526 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13527 }
13528 return resultobj;
13529fail:
13530 return NULL;
13531}
13532
13533
13534SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13535 PyObject *resultobj = 0;
13536 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
13537 wxString const &arg2_defvalue = wxPyEmptyString ;
13538 wxString *arg2 = (wxString *) &arg2_defvalue ;
13539 bool result;
13540 void *argp1 = 0 ;
13541 int res1 = 0 ;
13542 bool temp2 = false ;
13543 PyObject * obj0 = 0 ;
13544 PyObject * obj1 = 0 ;
13545 char * kwnames[] = {
13546 (char *) "self",(char *) "facename", NULL
13547 };
13548
13549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
13550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
13551 if (!SWIG_IsOK(res1)) {
13552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
13553 }
13554 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
13555 if (obj1) {
093d3ff1 13556 {
554f62e9
RD
13557 arg2 = wxString_in_helper(obj1);
13558 if (arg2 == NULL) SWIG_fail;
13559 temp2 = true;
093d3ff1 13560 }
554f62e9
RD
13561 }
13562 {
13563 PyThreadState* __tstate = wxPyBeginAllowThreads();
13564 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
13565 wxPyEndAllowThreads(__tstate);
13566 if (PyErr_Occurred()) SWIG_fail;
13567 }
13568 {
13569 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13570 }
13571 {
13572 if (temp2)
13573 delete arg2;
13574 }
13575 return resultobj;
13576fail:
13577 {
13578 if (temp2)
13579 delete arg2;
13580 }
13581 return NULL;
d55e5bfc
RD
13582}
13583
13584
554f62e9
RD
13585SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13586 PyObject *resultobj = 0;
554f62e9 13587 PyObject *result = 0 ;
554f62e9 13588
704eda0c 13589 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
554f62e9
RD
13590 {
13591 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 13592 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
554f62e9
RD
13593 wxPyEndAllowThreads(__tstate);
13594 if (PyErr_Occurred()) SWIG_fail;
13595 }
13596 resultobj = result;
13597 return resultobj;
13598fail:
13599 return NULL;
d55e5bfc
RD
13600}
13601
13602
554f62e9
RD
13603SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13604 PyObject *resultobj = 0;
554f62e9 13605 PyObject *result = 0 ;
554f62e9 13606
704eda0c 13607 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
554f62e9
RD
13608 {
13609 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 13610 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
554f62e9
RD
13611 wxPyEndAllowThreads(__tstate);
13612 if (PyErr_Occurred()) SWIG_fail;
13613 }
13614 resultobj = result;
13615 return resultobj;
13616fail:
13617 return NULL;
d55e5bfc
RD
13618}
13619
13620
704eda0c
RD
13621SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13622 PyObject *resultobj = 0;
13623 wxString *arg1 = 0 ;
13624 bool result;
13625 bool temp1 = false ;
13626 PyObject * obj0 = 0 ;
13627 char * kwnames[] = {
13628 (char *) "str", NULL
13629 };
13630
13631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
13632 {
13633 arg1 = wxString_in_helper(obj0);
13634 if (arg1 == NULL) SWIG_fail;
13635 temp1 = true;
13636 }
13637 {
13638 PyThreadState* __tstate = wxPyBeginAllowThreads();
13639 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
13640 wxPyEndAllowThreads(__tstate);
13641 if (PyErr_Occurred()) SWIG_fail;
13642 }
13643 {
13644 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13645 }
13646 {
13647 if (temp1)
13648 delete arg1;
13649 }
13650 return resultobj;
13651fail:
13652 {
13653 if (temp1)
13654 delete arg1;
13655 }
13656 return NULL;
13657}
13658
13659
554f62e9
RD
13660SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13661 PyObject *obj;
13662 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13663 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
13664 return SWIG_Py_Void();
5e483524
RD
13665}
13666
554f62e9
RD
13667SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13668 return SWIG_Python_InitShadowInstance(args);
13669}
5e483524 13670
554f62e9
RD
13671SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13672 PyObject *resultobj = 0;
13673 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13674 int arg2 ;
13675 void *argp1 = 0 ;
13676 int res1 = 0 ;
13677 int val2 ;
13678 int ecode2 = 0 ;
13679 PyObject *swig_obj[2] ;
13680
13681 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
13682 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13683 if (!SWIG_IsOK(res1)) {
13684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13685 }
13686 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13687 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13688 if (!SWIG_IsOK(ecode2)) {
13689 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
13690 }
13691 arg2 = static_cast< int >(val2);
13692 if (arg1) (arg1)->Language = arg2;
13693
13694 resultobj = SWIG_Py_Void();
13695 return resultobj;
13696fail:
13697 return NULL;
d55e5bfc
RD
13698}
13699
13700
554f62e9
RD
13701SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13702 PyObject *resultobj = 0;
13703 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13704 int result;
13705 void *argp1 = 0 ;
13706 int res1 = 0 ;
13707 PyObject *swig_obj[1] ;
13708
13709 if (!args) SWIG_fail;
13710 swig_obj[0] = args;
13711 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13712 if (!SWIG_IsOK(res1)) {
13713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13714 }
13715 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13716 result = (int) ((arg1)->Language);
13717 resultobj = SWIG_From_int(static_cast< int >(result));
13718 return resultobj;
13719fail:
13720 return NULL;
13721}
13722
13723
13724SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13725 PyObject *resultobj = 0;
13726 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13727 wxString *arg2 = (wxString *) 0 ;
13728 void *argp1 = 0 ;
13729 int res1 = 0 ;
13730 bool temp2 = false ;
13731 PyObject *swig_obj[2] ;
13732
13733 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
13734 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13735 if (!SWIG_IsOK(res1)) {
13736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13737 }
13738 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13739 {
13740 arg2 = wxString_in_helper(swig_obj[1]);
13741 if (arg2 == NULL) SWIG_fail;
13742 temp2 = true;
13743 }
13744 if (arg1) (arg1)->CanonicalName = *arg2;
13745
13746 resultobj = SWIG_Py_Void();
13747 {
13748 if (temp2)
13749 delete arg2;
13750 }
13751 return resultobj;
13752fail:
13753 {
13754 if (temp2)
13755 delete arg2;
13756 }
13757 return NULL;
d55e5bfc
RD
13758}
13759
13760
554f62e9
RD
13761SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13762 PyObject *resultobj = 0;
13763 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13764 wxString *result = 0 ;
13765 void *argp1 = 0 ;
13766 int res1 = 0 ;
13767 PyObject *swig_obj[1] ;
13768
13769 if (!args) SWIG_fail;
13770 swig_obj[0] = args;
13771 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13772 if (!SWIG_IsOK(res1)) {
13773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13774 }
13775 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13776 result = (wxString *)& ((arg1)->CanonicalName);
13777 {
13778#if wxUSE_UNICODE
13779 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13780#else
13781 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13782#endif
13783 }
13784 return resultobj;
13785fail:
13786 return NULL;
d55e5bfc
RD
13787}
13788
13789
554f62e9
RD
13790SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13791 PyObject *resultobj = 0;
13792 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13793 wxString *arg2 = (wxString *) 0 ;
13794 void *argp1 = 0 ;
13795 int res1 = 0 ;
13796 bool temp2 = false ;
13797 PyObject *swig_obj[2] ;
13798
13799 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
13800 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13801 if (!SWIG_IsOK(res1)) {
13802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13803 }
13804 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13805 {
13806 arg2 = wxString_in_helper(swig_obj[1]);
13807 if (arg2 == NULL) SWIG_fail;
13808 temp2 = true;
13809 }
13810 if (arg1) (arg1)->Description = *arg2;
13811
13812 resultobj = SWIG_Py_Void();
13813 {
13814 if (temp2)
13815 delete arg2;
13816 }
13817 return resultobj;
13818fail:
13819 {
13820 if (temp2)
13821 delete arg2;
13822 }
13823 return NULL;
d55e5bfc
RD
13824}
13825
13826
554f62e9
RD
13827SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13828 PyObject *resultobj = 0;
13829 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13830 wxString *result = 0 ;
13831 void *argp1 = 0 ;
13832 int res1 = 0 ;
13833 PyObject *swig_obj[1] ;
13834
13835 if (!args) SWIG_fail;
13836 swig_obj[0] = args;
13837 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13838 if (!SWIG_IsOK(res1)) {
13839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13840 }
13841 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13842 result = (wxString *)& ((arg1)->Description);
13843 {
13844#if wxUSE_UNICODE
13845 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13846#else
13847 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13848#endif
13849 }
13850 return resultobj;
13851fail:
13852 return NULL;
13853}
13854
13855
13856SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13857 PyObject *obj;
13858 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13859 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
13860 return SWIG_Py_Void();
13861}
13862
13863SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13864 PyObject *resultobj = 0;
13865 int arg1 = (int) -1 ;
13866 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
13867 wxLocale *result = 0 ;
13868 int val1 ;
13869 int ecode1 = 0 ;
13870 int val2 ;
13871 int ecode2 = 0 ;
13872 PyObject * obj0 = 0 ;
13873 PyObject * obj1 = 0 ;
13874 char * kwnames[] = {
13875 (char *) "language",(char *) "flags", NULL
13876 };
13877
13878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
13879 if (obj0) {
13880 ecode1 = SWIG_AsVal_int(obj0, &val1);
13881 if (!SWIG_IsOK(ecode1)) {
13882 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
13883 }
13884 arg1 = static_cast< int >(val1);
13885 }
13886 if (obj1) {
13887 ecode2 = SWIG_AsVal_int(obj1, &val2);
13888 if (!SWIG_IsOK(ecode2)) {
13889 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
13890 }
13891 arg2 = static_cast< int >(val2);
13892 }
13893 {
13894 PyThreadState* __tstate = wxPyBeginAllowThreads();
13895 result = (wxLocale *)new_wxLocale(arg1,arg2);
13896 wxPyEndAllowThreads(__tstate);
13897 if (PyErr_Occurred()) SWIG_fail;
13898 }
13899 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
13900 return resultobj;
13901fail:
13902 return NULL;
d55e5bfc
RD
13903}
13904
13905
554f62e9
RD
13906SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13907 PyObject *resultobj = 0;
13908 wxLocale *arg1 = (wxLocale *) 0 ;
13909 void *argp1 = 0 ;
13910 int res1 = 0 ;
13911 PyObject *swig_obj[1] ;
13912
13913 if (!args) SWIG_fail;
13914 swig_obj[0] = args;
13915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
13916 if (!SWIG_IsOK(res1)) {
13917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
13918 }
13919 arg1 = reinterpret_cast< wxLocale * >(argp1);
13920 {
13921 PyThreadState* __tstate = wxPyBeginAllowThreads();
13922 delete arg1;
d55e5bfc 13923
554f62e9
RD
13924 wxPyEndAllowThreads(__tstate);
13925 if (PyErr_Occurred()) SWIG_fail;
13926 }
13927 resultobj = SWIG_Py_Void();
13928 return resultobj;
13929fail:
13930 return NULL;
13931}
13932
13933
13934SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13935 PyObject *resultobj = 0;
13936 wxLocale *arg1 = (wxLocale *) 0 ;
13937 wxString *arg2 = 0 ;
13938 wxString const &arg3_defvalue = wxPyEmptyString ;
13939 wxString *arg3 = (wxString *) &arg3_defvalue ;
13940 wxString const &arg4_defvalue = wxPyEmptyString ;
13941 wxString *arg4 = (wxString *) &arg4_defvalue ;
13942 bool arg5 = (bool) true ;
13943 bool arg6 = (bool) false ;
13944 bool result;
13945 void *argp1 = 0 ;
13946 int res1 = 0 ;
13947 bool temp2 = false ;
13948 bool temp3 = false ;
13949 bool temp4 = false ;
13950 bool val5 ;
13951 int ecode5 = 0 ;
13952 bool val6 ;
13953 int ecode6 = 0 ;
13954 PyObject * obj0 = 0 ;
13955 PyObject * obj1 = 0 ;
13956 PyObject * obj2 = 0 ;
13957 PyObject * obj3 = 0 ;
13958 PyObject * obj4 = 0 ;
13959 PyObject * obj5 = 0 ;
13960 char * kwnames[] = {
13961 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
13962 };
13963
13964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
13965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13966 if (!SWIG_IsOK(res1)) {
13967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
13968 }
13969 arg1 = reinterpret_cast< wxLocale * >(argp1);
13970 {
13971 arg2 = wxString_in_helper(obj1);
13972 if (arg2 == NULL) SWIG_fail;
13973 temp2 = true;
13974 }
13975 if (obj2) {
093d3ff1 13976 {
554f62e9
RD
13977 arg3 = wxString_in_helper(obj2);
13978 if (arg3 == NULL) SWIG_fail;
13979 temp3 = true;
093d3ff1 13980 }
554f62e9
RD
13981 }
13982 if (obj3) {
d55e5bfc 13983 {
554f62e9
RD
13984 arg4 = wxString_in_helper(obj3);
13985 if (arg4 == NULL) SWIG_fail;
13986 temp4 = true;
d55e5bfc 13987 }
554f62e9
RD
13988 }
13989 if (obj4) {
13990 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13991 if (!SWIG_IsOK(ecode5)) {
13992 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
13993 }
13994 arg5 = static_cast< bool >(val5);
13995 }
13996 if (obj5) {
13997 ecode6 = SWIG_AsVal_bool(obj5, &val6);
13998 if (!SWIG_IsOK(ecode6)) {
13999 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
14000 }
14001 arg6 = static_cast< bool >(val6);
14002 }
14003 {
14004 PyThreadState* __tstate = wxPyBeginAllowThreads();
14005 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
14006 wxPyEndAllowThreads(__tstate);
14007 if (PyErr_Occurred()) SWIG_fail;
14008 }
14009 {
14010 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14011 }
14012 {
14013 if (temp2)
14014 delete arg2;
14015 }
14016 {
14017 if (temp3)
14018 delete arg3;
14019 }
14020 {
14021 if (temp4)
14022 delete arg4;
14023 }
14024 return resultobj;
14025fail:
14026 {
14027 if (temp2)
14028 delete arg2;
14029 }
14030 {
14031 if (temp3)
14032 delete arg3;
14033 }
14034 {
14035 if (temp4)
14036 delete arg4;
14037 }
14038 return NULL;
14039}
14040
14041
14042SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14043 PyObject *resultobj = 0;
14044 wxLocale *arg1 = (wxLocale *) 0 ;
14045 int arg2 = (int) wxLANGUAGE_DEFAULT ;
14046 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
14047 bool result;
14048 void *argp1 = 0 ;
14049 int res1 = 0 ;
14050 int val2 ;
14051 int ecode2 = 0 ;
14052 int val3 ;
14053 int ecode3 = 0 ;
14054 PyObject * obj0 = 0 ;
14055 PyObject * obj1 = 0 ;
14056 PyObject * obj2 = 0 ;
14057 char * kwnames[] = {
14058 (char *) "self",(char *) "language",(char *) "flags", NULL
14059 };
14060
14061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14063 if (!SWIG_IsOK(res1)) {
14064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
14065 }
14066 arg1 = reinterpret_cast< wxLocale * >(argp1);
14067 if (obj1) {
14068 ecode2 = SWIG_AsVal_int(obj1, &val2);
14069 if (!SWIG_IsOK(ecode2)) {
14070 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
14071 }
14072 arg2 = static_cast< int >(val2);
14073 }
14074 if (obj2) {
14075 ecode3 = SWIG_AsVal_int(obj2, &val3);
14076 if (!SWIG_IsOK(ecode3)) {
14077 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
14078 }
14079 arg3 = static_cast< int >(val3);
14080 }
14081 {
14082 PyThreadState* __tstate = wxPyBeginAllowThreads();
14083 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
14084 wxPyEndAllowThreads(__tstate);
14085 if (PyErr_Occurred()) SWIG_fail;
14086 }
14087 {
14088 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14089 }
14090 return resultobj;
14091fail:
14092 return NULL;
d55e5bfc
RD
14093}
14094
14095
554f62e9
RD
14096SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14097 PyObject *resultobj = 0;
14098 int result;
14099
14100 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
14101 {
14102 PyThreadState* __tstate = wxPyBeginAllowThreads();
14103 result = (int)wxLocale::GetSystemLanguage();
14104 wxPyEndAllowThreads(__tstate);
14105 if (PyErr_Occurred()) SWIG_fail;
14106 }
14107 resultobj = SWIG_From_int(static_cast< int >(result));
14108 return resultobj;
14109fail:
14110 return NULL;
d55e5bfc
RD
14111}
14112
14113
554f62e9
RD
14114SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14115 PyObject *resultobj = 0;
14116 wxFontEncoding result;
14117
14118 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
14119 {
14120 PyThreadState* __tstate = wxPyBeginAllowThreads();
14121 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
14122 wxPyEndAllowThreads(__tstate);
14123 if (PyErr_Occurred()) SWIG_fail;
14124 }
14125 resultobj = SWIG_From_int(static_cast< int >(result));
14126 return resultobj;
14127fail:
14128 return NULL;
d55e5bfc
RD
14129}
14130
14131
554f62e9
RD
14132SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14133 PyObject *resultobj = 0;
14134 wxString result;
14135
14136 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
14137 {
14138 PyThreadState* __tstate = wxPyBeginAllowThreads();
14139 result = wxLocale::GetSystemEncodingName();
14140 wxPyEndAllowThreads(__tstate);
14141 if (PyErr_Occurred()) SWIG_fail;
14142 }
14143 {
14144#if wxUSE_UNICODE
14145 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14146#else
14147 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14148#endif
14149 }
14150 return resultobj;
14151fail:
14152 return NULL;
d55e5bfc
RD
14153}
14154
14155
554f62e9
RD
14156SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14157 PyObject *resultobj = 0;
14158 wxLocale *arg1 = (wxLocale *) 0 ;
14159 bool result;
14160 void *argp1 = 0 ;
14161 int res1 = 0 ;
14162 PyObject *swig_obj[1] ;
14163
14164 if (!args) SWIG_fail;
14165 swig_obj[0] = args;
14166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14167 if (!SWIG_IsOK(res1)) {
14168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
14169 }
14170 arg1 = reinterpret_cast< wxLocale * >(argp1);
14171 {
14172 PyThreadState* __tstate = wxPyBeginAllowThreads();
14173 result = (bool)((wxLocale const *)arg1)->IsOk();
14174 wxPyEndAllowThreads(__tstate);
14175 if (PyErr_Occurred()) SWIG_fail;
14176 }
14177 {
14178 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14179 }
14180 return resultobj;
14181fail:
14182 return NULL;
d55e5bfc
RD
14183}
14184
14185
554f62e9
RD
14186SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14187 PyObject *resultobj = 0;
14188 wxLocale *arg1 = (wxLocale *) 0 ;
14189 wxString result;
14190 void *argp1 = 0 ;
14191 int res1 = 0 ;
14192 PyObject *swig_obj[1] ;
14193
14194 if (!args) SWIG_fail;
14195 swig_obj[0] = args;
14196 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14197 if (!SWIG_IsOK(res1)) {
14198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
14199 }
14200 arg1 = reinterpret_cast< wxLocale * >(argp1);
14201 {
14202 PyThreadState* __tstate = wxPyBeginAllowThreads();
14203 result = ((wxLocale const *)arg1)->GetLocale();
14204 wxPyEndAllowThreads(__tstate);
14205 if (PyErr_Occurred()) SWIG_fail;
14206 }
14207 {
14208#if wxUSE_UNICODE
14209 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14210#else
14211 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14212#endif
14213 }
14214 return resultobj;
14215fail:
14216 return NULL;
d55e5bfc
RD
14217}
14218
14219
554f62e9
RD
14220SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14221 PyObject *resultobj = 0;
14222 wxLocale *arg1 = (wxLocale *) 0 ;
14223 int result;
14224 void *argp1 = 0 ;
14225 int res1 = 0 ;
14226 PyObject *swig_obj[1] ;
14227
14228 if (!args) SWIG_fail;
14229 swig_obj[0] = args;
14230 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14231 if (!SWIG_IsOK(res1)) {
14232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
14233 }
14234 arg1 = reinterpret_cast< wxLocale * >(argp1);
14235 {
14236 PyThreadState* __tstate = wxPyBeginAllowThreads();
14237 result = (int)((wxLocale const *)arg1)->GetLanguage();
14238 wxPyEndAllowThreads(__tstate);
14239 if (PyErr_Occurred()) SWIG_fail;
14240 }
14241 resultobj = SWIG_From_int(static_cast< int >(result));
14242 return resultobj;
14243fail:
14244 return NULL;
d55e5bfc
RD
14245}
14246
14247
554f62e9
RD
14248SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14249 PyObject *resultobj = 0;
14250 wxLocale *arg1 = (wxLocale *) 0 ;
14251 wxString result;
14252 void *argp1 = 0 ;
14253 int res1 = 0 ;
14254 PyObject *swig_obj[1] ;
14255
14256 if (!args) SWIG_fail;
14257 swig_obj[0] = args;
14258 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14259 if (!SWIG_IsOK(res1)) {
14260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
14261 }
14262 arg1 = reinterpret_cast< wxLocale * >(argp1);
14263 {
14264 PyThreadState* __tstate = wxPyBeginAllowThreads();
14265 result = ((wxLocale const *)arg1)->GetSysName();
14266 wxPyEndAllowThreads(__tstate);
14267 if (PyErr_Occurred()) SWIG_fail;
14268 }
14269 {
14270#if wxUSE_UNICODE
14271 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14272#else
14273 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14274#endif
14275 }
14276 return resultobj;
14277fail:
14278 return NULL;
d55e5bfc
RD
14279}
14280
14281
554f62e9
RD
14282SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14283 PyObject *resultobj = 0;
14284 wxLocale *arg1 = (wxLocale *) 0 ;
14285 wxString result;
14286 void *argp1 = 0 ;
14287 int res1 = 0 ;
14288 PyObject *swig_obj[1] ;
14289
14290 if (!args) SWIG_fail;
14291 swig_obj[0] = args;
14292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14293 if (!SWIG_IsOK(res1)) {
14294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
14295 }
14296 arg1 = reinterpret_cast< wxLocale * >(argp1);
14297 {
14298 PyThreadState* __tstate = wxPyBeginAllowThreads();
14299 result = ((wxLocale const *)arg1)->GetCanonicalName();
14300 wxPyEndAllowThreads(__tstate);
14301 if (PyErr_Occurred()) SWIG_fail;
14302 }
14303 {
093d3ff1 14304#if wxUSE_UNICODE
554f62e9 14305 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 14306#else
554f62e9 14307 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 14308#endif
554f62e9
RD
14309 }
14310 return resultobj;
14311fail:
14312 return NULL;
d55e5bfc
RD
14313}
14314
14315
554f62e9
RD
14316SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14317 PyObject *resultobj = 0;
14318 wxString *arg1 = 0 ;
14319 bool temp1 = false ;
14320 PyObject * obj0 = 0 ;
14321 char * kwnames[] = {
14322 (char *) "prefix", NULL
14323 };
14324
14325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
14326 {
14327 arg1 = wxString_in_helper(obj0);
14328 if (arg1 == NULL) SWIG_fail;
14329 temp1 = true;
14330 }
14331 {
14332 PyThreadState* __tstate = wxPyBeginAllowThreads();
14333 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
14334 wxPyEndAllowThreads(__tstate);
14335 if (PyErr_Occurred()) SWIG_fail;
14336 }
14337 resultobj = SWIG_Py_Void();
14338 {
14339 if (temp1)
14340 delete arg1;
14341 }
14342 return resultobj;
14343fail:
14344 {
14345 if (temp1)
14346 delete arg1;
14347 }
14348 return NULL;
14349}
14350
14351
14352SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14353 PyObject *resultobj = 0;
14354 wxLocale *arg1 = (wxLocale *) 0 ;
14355 wxString *arg2 = 0 ;
14356 bool result;
14357 void *argp1 = 0 ;
14358 int res1 = 0 ;
14359 bool temp2 = false ;
14360 PyObject * obj0 = 0 ;
14361 PyObject * obj1 = 0 ;
14362 char * kwnames[] = {
14363 (char *) "self",(char *) "szDomain", NULL
14364 };
14365
14366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
14367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14368 if (!SWIG_IsOK(res1)) {
14369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
14370 }
14371 arg1 = reinterpret_cast< wxLocale * >(argp1);
14372 {
14373 arg2 = wxString_in_helper(obj1);
14374 if (arg2 == NULL) SWIG_fail;
14375 temp2 = true;
14376 }
14377 {
14378 PyThreadState* __tstate = wxPyBeginAllowThreads();
14379 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
14380 wxPyEndAllowThreads(__tstate);
14381 if (PyErr_Occurred()) SWIG_fail;
14382 }
14383 {
14384 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14385 }
14386 {
14387 if (temp2)
14388 delete arg2;
14389 }
14390 return resultobj;
14391fail:
14392 {
14393 if (temp2)
14394 delete arg2;
14395 }
14396 return NULL;
14397}
14398
14399
14400SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14401 PyObject *resultobj = 0;
14402 wxLocale *arg1 = (wxLocale *) 0 ;
14403 wxString *arg2 = 0 ;
14404 bool result;
14405 void *argp1 = 0 ;
14406 int res1 = 0 ;
14407 bool temp2 = false ;
14408 PyObject * obj0 = 0 ;
14409 PyObject * obj1 = 0 ;
14410 char * kwnames[] = {
14411 (char *) "self",(char *) "szDomain", NULL
14412 };
14413
14414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
14415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14416 if (!SWIG_IsOK(res1)) {
14417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
14418 }
14419 arg1 = reinterpret_cast< wxLocale * >(argp1);
14420 {
14421 arg2 = wxString_in_helper(obj1);
14422 if (arg2 == NULL) SWIG_fail;
14423 temp2 = true;
14424 }
14425 {
14426 PyThreadState* __tstate = wxPyBeginAllowThreads();
14427 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
14428 wxPyEndAllowThreads(__tstate);
14429 if (PyErr_Occurred()) SWIG_fail;
14430 }
14431 {
14432 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14433 }
14434 {
14435 if (temp2)
14436 delete arg2;
14437 }
14438 return resultobj;
14439fail:
14440 {
14441 if (temp2)
14442 delete arg2;
14443 }
14444 return NULL;
d55e5bfc
RD
14445}
14446
14447
554f62e9
RD
14448SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14449 PyObject *resultobj = 0;
14450 int arg1 ;
14451 wxLanguageInfo *result = 0 ;
14452 int val1 ;
14453 int ecode1 = 0 ;
14454 PyObject * obj0 = 0 ;
14455 char * kwnames[] = {
14456 (char *) "lang", NULL
14457 };
14458
14459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
14460 ecode1 = SWIG_AsVal_int(obj0, &val1);
14461 if (!SWIG_IsOK(ecode1)) {
14462 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
14463 }
14464 arg1 = static_cast< int >(val1);
14465 {
14466 PyThreadState* __tstate = wxPyBeginAllowThreads();
14467 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
14468 wxPyEndAllowThreads(__tstate);
14469 if (PyErr_Occurred()) SWIG_fail;
14470 }
14471 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
14472 return resultobj;
14473fail:
14474 return NULL;
14475}
14476
14477
14478SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14479 PyObject *resultobj = 0;
14480 int arg1 ;
14481 wxString result;
14482 int val1 ;
14483 int ecode1 = 0 ;
14484 PyObject * obj0 = 0 ;
14485 char * kwnames[] = {
14486 (char *) "lang", NULL
14487 };
14488
14489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
14490 ecode1 = SWIG_AsVal_int(obj0, &val1);
14491 if (!SWIG_IsOK(ecode1)) {
14492 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
14493 }
14494 arg1 = static_cast< int >(val1);
14495 {
14496 PyThreadState* __tstate = wxPyBeginAllowThreads();
14497 result = wxLocale::GetLanguageName(arg1);
14498 wxPyEndAllowThreads(__tstate);
14499 if (PyErr_Occurred()) SWIG_fail;
14500 }
14501 {
14502#if wxUSE_UNICODE
14503 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14504#else
14505 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14506#endif
14507 }
14508 return resultobj;
14509fail:
14510 return NULL;
093d3ff1
RD
14511}
14512
14513
554f62e9
RD
14514SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14515 PyObject *resultobj = 0;
14516 wxString *arg1 = 0 ;
14517 wxLanguageInfo *result = 0 ;
14518 bool temp1 = false ;
14519 PyObject * obj0 = 0 ;
14520 char * kwnames[] = {
14521 (char *) "locale", NULL
14522 };
14523
14524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
14525 {
14526 arg1 = wxString_in_helper(obj0);
14527 if (arg1 == NULL) SWIG_fail;
14528 temp1 = true;
14529 }
14530 {
14531 PyThreadState* __tstate = wxPyBeginAllowThreads();
14532 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
14533 wxPyEndAllowThreads(__tstate);
14534 if (PyErr_Occurred()) SWIG_fail;
14535 }
14536 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
14537 {
14538 if (temp1)
14539 delete arg1;
14540 }
14541 return resultobj;
14542fail:
14543 {
14544 if (temp1)
14545 delete arg1;
14546 }
14547 return NULL;
d55e5bfc
RD
14548}
14549
14550
554f62e9
RD
14551SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14552 PyObject *resultobj = 0;
14553 wxLanguageInfo *arg1 = 0 ;
14554 void *argp1 = 0 ;
14555 int res1 = 0 ;
14556 PyObject * obj0 = 0 ;
14557 char * kwnames[] = {
14558 (char *) "info", NULL
14559 };
14560
14561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
14562 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
14563 if (!SWIG_IsOK(res1)) {
14564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
14565 }
14566 if (!argp1) {
14567 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
14568 }
14569 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
14570 {
14571 PyThreadState* __tstate = wxPyBeginAllowThreads();
14572 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
14573 wxPyEndAllowThreads(__tstate);
14574 if (PyErr_Occurred()) SWIG_fail;
14575 }
14576 resultobj = SWIG_Py_Void();
14577 return resultobj;
14578fail:
14579 return NULL;
14580}
14581
14582
14583SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14584 PyObject *resultobj = 0;
14585 wxLocale *arg1 = (wxLocale *) 0 ;
14586 wxString *arg2 = 0 ;
14587 wxString const &arg3_defvalue = wxPyEmptyString ;
14588 wxString *arg3 = (wxString *) &arg3_defvalue ;
14589 wxString result;
14590 void *argp1 = 0 ;
14591 int res1 = 0 ;
14592 bool temp2 = false ;
14593 bool temp3 = false ;
14594 PyObject * obj0 = 0 ;
14595 PyObject * obj1 = 0 ;
14596 PyObject * obj2 = 0 ;
14597 char * kwnames[] = {
14598 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
14599 };
14600
14601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14603 if (!SWIG_IsOK(res1)) {
14604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
14605 }
14606 arg1 = reinterpret_cast< wxLocale * >(argp1);
14607 {
14608 arg2 = wxString_in_helper(obj1);
14609 if (arg2 == NULL) SWIG_fail;
14610 temp2 = true;
14611 }
14612 if (obj2) {
d55e5bfc 14613 {
554f62e9
RD
14614 arg3 = wxString_in_helper(obj2);
14615 if (arg3 == NULL) SWIG_fail;
14616 temp3 = true;
d55e5bfc 14617 }
554f62e9
RD
14618 }
14619 {
14620 PyThreadState* __tstate = wxPyBeginAllowThreads();
14621 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
14622 wxPyEndAllowThreads(__tstate);
14623 if (PyErr_Occurred()) SWIG_fail;
14624 }
14625 {
14626#if wxUSE_UNICODE
14627 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14628#else
14629 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14630#endif
14631 }
14632 {
14633 if (temp2)
14634 delete arg2;
14635 }
14636 {
14637 if (temp3)
14638 delete arg3;
14639 }
14640 return resultobj;
14641fail:
14642 {
14643 if (temp2)
14644 delete arg2;
14645 }
14646 {
14647 if (temp3)
14648 delete arg3;
14649 }
14650 return NULL;
d55e5bfc
RD
14651}
14652
14653
554f62e9
RD
14654SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14655 PyObject *resultobj = 0;
14656 wxLocale *arg1 = (wxLocale *) 0 ;
14657 wxString *result = 0 ;
14658 void *argp1 = 0 ;
14659 int res1 = 0 ;
14660 PyObject *swig_obj[1] ;
14661
14662 if (!args) SWIG_fail;
14663 swig_obj[0] = args;
14664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14665 if (!SWIG_IsOK(res1)) {
14666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
14667 }
14668 arg1 = reinterpret_cast< wxLocale * >(argp1);
14669 {
14670 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 14671 {
554f62e9
RD
14672 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
14673 result = (wxString *) &_result_ref;
d55e5bfc 14674 }
554f62e9
RD
14675 wxPyEndAllowThreads(__tstate);
14676 if (PyErr_Occurred()) SWIG_fail;
14677 }
14678 {
14679#if wxUSE_UNICODE
14680 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
14681#else
14682 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
14683#endif
14684 }
14685 return resultobj;
14686fail:
14687 return NULL;
d55e5bfc
RD
14688}
14689
14690
554f62e9
RD
14691SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14692 PyObject *obj;
14693 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14694 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
14695 return SWIG_Py_Void();
d55e5bfc
RD
14696}
14697
554f62e9
RD
14698SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14699 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
14700}
14701
554f62e9
RD
14702SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14703 PyObject *resultobj = 0;
14704 wxLocale *result = 0 ;
14705
14706 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
14707 {
14708 PyThreadState* __tstate = wxPyBeginAllowThreads();
14709 result = (wxLocale *)wxGetLocale();
14710 wxPyEndAllowThreads(__tstate);
14711 if (PyErr_Occurred()) SWIG_fail;
14712 }
14713 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
14714 return resultobj;
14715fail:
14716 return NULL;
d55e5bfc
RD
14717}
14718
14719
554f62e9
RD
14720SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14721 PyObject *resultobj = 0;
14722 wxString *arg1 = 0 ;
14723 wxString result;
14724 bool temp1 = false ;
14725
14726 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
14727 {
14728 arg1 = wxString_in_helper(swig_obj[0]);
14729 if (arg1 == NULL) SWIG_fail;
14730 temp1 = true;
14731 }
14732 {
14733 PyThreadState* __tstate = wxPyBeginAllowThreads();
14734 result = wxGetTranslation((wxString const &)*arg1);
14735 wxPyEndAllowThreads(__tstate);
14736 if (PyErr_Occurred()) SWIG_fail;
14737 }
14738 {
093d3ff1 14739#if wxUSE_UNICODE
554f62e9 14740 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 14741#else
554f62e9 14742 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 14743#endif
554f62e9
RD
14744 }
14745 {
14746 if (temp1)
14747 delete arg1;
14748 }
14749 return resultobj;
14750fail:
14751 {
14752 if (temp1)
14753 delete arg1;
14754 }
14755 return NULL;
d55e5bfc
RD
14756}
14757
14758
554f62e9
RD
14759SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14760 PyObject *resultobj = 0;
14761 wxString *arg1 = 0 ;
14762 wxString *arg2 = 0 ;
14763 size_t arg3 ;
14764 wxString result;
14765 bool temp1 = false ;
14766 bool temp2 = false ;
14767 size_t val3 ;
14768 int ecode3 = 0 ;
14769
14770 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
14771 {
14772 arg1 = wxString_in_helper(swig_obj[0]);
14773 if (arg1 == NULL) SWIG_fail;
14774 temp1 = true;
14775 }
14776 {
14777 arg2 = wxString_in_helper(swig_obj[1]);
14778 if (arg2 == NULL) SWIG_fail;
14779 temp2 = true;
14780 }
14781 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
14782 if (!SWIG_IsOK(ecode3)) {
14783 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
14784 }
14785 arg3 = static_cast< size_t >(val3);
14786 {
14787 PyThreadState* __tstate = wxPyBeginAllowThreads();
14788 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
14789 wxPyEndAllowThreads(__tstate);
14790 if (PyErr_Occurred()) SWIG_fail;
14791 }
14792 {
093d3ff1 14793#if wxUSE_UNICODE
554f62e9 14794 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 14795#else
554f62e9 14796 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 14797#endif
554f62e9
RD
14798 }
14799 {
14800 if (temp1)
14801 delete arg1;
14802 }
14803 {
14804 if (temp2)
14805 delete arg2;
14806 }
14807 return resultobj;
14808fail:
14809 {
14810 if (temp1)
14811 delete arg1;
14812 }
14813 {
14814 if (temp2)
14815 delete arg2;
14816 }
14817 return NULL;
d55e5bfc
RD
14818}
14819
14820
554f62e9
RD
14821SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
14822 int argc;
14823 PyObject *argv[4];
14824
14825 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,3,argv))) SWIG_fail;
14826 --argc;
14827 if (argc == 1) {
14828 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
14829 }
14830 if (argc == 3) {
14831 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
14832 }
14833
14834fail:
14835 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
14836 return NULL;
d55e5bfc
RD
14837}
14838
14839
554f62e9
RD
14840SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14841 PyObject *resultobj = 0;
14842 wxEncodingConverter *result = 0 ;
14843
14844 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
14845 {
14846 PyThreadState* __tstate = wxPyBeginAllowThreads();
14847 result = (wxEncodingConverter *)new wxEncodingConverter();
14848 wxPyEndAllowThreads(__tstate);
14849 if (PyErr_Occurred()) SWIG_fail;
14850 }
14851 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
14852 return resultobj;
14853fail:
14854 return NULL;
d55e5bfc
RD
14855}
14856
14857
554f62e9
RD
14858SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14859 PyObject *resultobj = 0;
14860 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14861 void *argp1 = 0 ;
14862 int res1 = 0 ;
14863 PyObject *swig_obj[1] ;
14864
14865 if (!args) SWIG_fail;
14866 swig_obj[0] = args;
14867 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
14868 if (!SWIG_IsOK(res1)) {
14869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14870 }
14871 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14872 {
14873 PyThreadState* __tstate = wxPyBeginAllowThreads();
14874 delete arg1;
d55e5bfc 14875
554f62e9
RD
14876 wxPyEndAllowThreads(__tstate);
14877 if (PyErr_Occurred()) SWIG_fail;
14878 }
14879 resultobj = SWIG_Py_Void();
14880 return resultobj;
14881fail:
14882 return NULL;
14883}
14884
14885
14886SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14887 PyObject *resultobj = 0;
14888 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14889 wxFontEncoding arg2 ;
14890 wxFontEncoding arg3 ;
14891 int arg4 = (int) wxCONVERT_STRICT ;
14892 bool result;
14893 void *argp1 = 0 ;
14894 int res1 = 0 ;
14895 int val2 ;
14896 int ecode2 = 0 ;
14897 int val3 ;
14898 int ecode3 = 0 ;
14899 int val4 ;
14900 int ecode4 = 0 ;
14901 PyObject * obj0 = 0 ;
14902 PyObject * obj1 = 0 ;
14903 PyObject * obj2 = 0 ;
14904 PyObject * obj3 = 0 ;
14905 char * kwnames[] = {
14906 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
14907 };
14908
14909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
14911 if (!SWIG_IsOK(res1)) {
14912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14913 }
14914 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14915 ecode2 = SWIG_AsVal_int(obj1, &val2);
14916 if (!SWIG_IsOK(ecode2)) {
14917 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14918 }
14919 arg2 = static_cast< wxFontEncoding >(val2);
14920 ecode3 = SWIG_AsVal_int(obj2, &val3);
14921 if (!SWIG_IsOK(ecode3)) {
14922 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
14923 }
14924 arg3 = static_cast< wxFontEncoding >(val3);
14925 if (obj3) {
14926 ecode4 = SWIG_AsVal_int(obj3, &val4);
14927 if (!SWIG_IsOK(ecode4)) {
14928 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
14929 }
14930 arg4 = static_cast< int >(val4);
14931 }
14932 {
14933 PyThreadState* __tstate = wxPyBeginAllowThreads();
14934 result = (bool)(arg1)->Init(arg2,arg3,arg4);
14935 wxPyEndAllowThreads(__tstate);
14936 if (PyErr_Occurred()) SWIG_fail;
14937 }
14938 {
14939 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14940 }
14941 return resultobj;
14942fail:
14943 return NULL;
14944}
14945
14946
14947SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14948 PyObject *resultobj = 0;
14949 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14950 wxString *arg2 = 0 ;
14951 wxString result;
14952 void *argp1 = 0 ;
14953 int res1 = 0 ;
14954 bool temp2 = false ;
14955 PyObject * obj0 = 0 ;
14956 PyObject * obj1 = 0 ;
14957 char * kwnames[] = {
14958 (char *) "self",(char *) "input", NULL
14959 };
14960
14961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
14962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
14963 if (!SWIG_IsOK(res1)) {
14964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14965 }
14966 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14967 {
14968 arg2 = wxString_in_helper(obj1);
14969 if (arg2 == NULL) SWIG_fail;
14970 temp2 = true;
14971 }
14972 {
14973 PyThreadState* __tstate = wxPyBeginAllowThreads();
14974 result = (arg1)->Convert((wxString const &)*arg2);
14975 wxPyEndAllowThreads(__tstate);
14976 if (PyErr_Occurred()) SWIG_fail;
14977 }
14978 {
d55e5bfc 14979#if wxUSE_UNICODE
554f62e9 14980 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 14981#else
554f62e9 14982 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 14983#endif
554f62e9
RD
14984 }
14985 {
14986 if (temp2)
14987 delete arg2;
14988 }
14989 return resultobj;
14990fail:
14991 {
14992 if (temp2)
14993 delete arg2;
14994 }
14995 return NULL;
14996}
14997
14998
14999SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15000 PyObject *resultobj = 0;
15001 wxFontEncoding arg1 ;
15002 int arg2 = (int) wxPLATFORM_CURRENT ;
15003 wxFontEncodingArray result;
15004 int val1 ;
15005 int ecode1 = 0 ;
15006 int val2 ;
15007 int ecode2 = 0 ;
15008 PyObject * obj0 = 0 ;
15009 PyObject * obj1 = 0 ;
15010 char * kwnames[] = {
15011 (char *) "enc",(char *) "platform", NULL
15012 };
15013
15014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
15015 ecode1 = SWIG_AsVal_int(obj0, &val1);
15016 if (!SWIG_IsOK(ecode1)) {
15017 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15018 }
15019 arg1 = static_cast< wxFontEncoding >(val1);
15020 if (obj1) {
15021 ecode2 = SWIG_AsVal_int(obj1, &val2);
15022 if (!SWIG_IsOK(ecode2)) {
15023 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
15024 }
15025 arg2 = static_cast< int >(val2);
15026 }
15027 {
15028 PyThreadState* __tstate = wxPyBeginAllowThreads();
15029 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
15030 wxPyEndAllowThreads(__tstate);
15031 if (PyErr_Occurred()) SWIG_fail;
15032 }
15033 {
15034 resultobj = PyList_New(0);
15035 for (size_t i=0; i < (&result)->GetCount(); i++) {
15036 PyObject* number = PyInt_FromLong((&result)->Item(i));
15037 PyList_Append(resultobj, number);
15038 Py_DECREF(number);
d55e5bfc 15039 }
554f62e9
RD
15040 }
15041 return resultobj;
15042fail:
15043 return NULL;
d55e5bfc
RD
15044}
15045
15046
554f62e9
RD
15047SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15048 PyObject *resultobj = 0;
15049 wxFontEncoding arg1 ;
15050 wxFontEncodingArray result;
15051 int val1 ;
15052 int ecode1 = 0 ;
15053 PyObject * obj0 = 0 ;
15054 char * kwnames[] = {
15055 (char *) "enc", NULL
15056 };
15057
15058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
15059 ecode1 = SWIG_AsVal_int(obj0, &val1);
15060 if (!SWIG_IsOK(ecode1)) {
15061 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15062 }
15063 arg1 = static_cast< wxFontEncoding >(val1);
15064 {
15065 PyThreadState* __tstate = wxPyBeginAllowThreads();
15066 result = wxEncodingConverter::GetAllEquivalents(arg1);
15067 wxPyEndAllowThreads(__tstate);
15068 if (PyErr_Occurred()) SWIG_fail;
15069 }
15070 {
15071 resultobj = PyList_New(0);
15072 for (size_t i=0; i < (&result)->GetCount(); i++) {
15073 PyObject* number = PyInt_FromLong((&result)->Item(i));
15074 PyList_Append(resultobj, number);
15075 Py_DECREF(number);
d55e5bfc 15076 }
554f62e9
RD
15077 }
15078 return resultobj;
15079fail:
15080 return NULL;
15081}
15082
15083
15084SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15085 PyObject *resultobj = 0;
15086 wxFontEncoding arg1 ;
15087 wxFontEncoding arg2 ;
15088 bool result;
15089 int val1 ;
15090 int ecode1 = 0 ;
15091 int val2 ;
15092 int ecode2 = 0 ;
15093 PyObject * obj0 = 0 ;
15094 PyObject * obj1 = 0 ;
15095 char * kwnames[] = {
15096 (char *) "encIn",(char *) "encOut", NULL
15097 };
15098
15099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
15100 ecode1 = SWIG_AsVal_int(obj0, &val1);
15101 if (!SWIG_IsOK(ecode1)) {
15102 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15103 }
15104 arg1 = static_cast< wxFontEncoding >(val1);
15105 ecode2 = SWIG_AsVal_int(obj1, &val2);
15106 if (!SWIG_IsOK(ecode2)) {
15107 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15108 }
15109 arg2 = static_cast< wxFontEncoding >(val2);
15110 {
15111 PyThreadState* __tstate = wxPyBeginAllowThreads();
15112 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
15113 wxPyEndAllowThreads(__tstate);
15114 if (PyErr_Occurred()) SWIG_fail;
15115 }
15116 {
15117 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15118 }
15119 return resultobj;
15120fail:
15121 return NULL;
d55e5bfc
RD
15122}
15123
15124
554f62e9
RD
15125SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15126 PyObject *obj;
15127 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15128 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
15129 return SWIG_Py_Void();
d55e5bfc
RD
15130}
15131
554f62e9
RD
15132SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15133 return SWIG_Python_InitShadowInstance(args);
5e483524
RD
15134}
15135
554f62e9
RD
15136SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15137 PyObject *resultobj = 0;
15138 wxDC *arg1 = (wxDC *) 0 ;
15139 void *argp1 = 0 ;
15140 int res1 = 0 ;
15141 PyObject *swig_obj[1] ;
15142
15143 if (!args) SWIG_fail;
15144 swig_obj[0] = args;
15145 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
15146 if (!SWIG_IsOK(res1)) {
15147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
15148 }
15149 arg1 = reinterpret_cast< wxDC * >(argp1);
15150 {
15151 PyThreadState* __tstate = wxPyBeginAllowThreads();
15152 delete arg1;
d55e5bfc 15153
554f62e9
RD
15154 wxPyEndAllowThreads(__tstate);
15155 if (PyErr_Occurred()) SWIG_fail;
15156 }
15157 resultobj = SWIG_Py_Void();
15158 return resultobj;
15159fail:
15160 return NULL;
15161}
15162
15163
15164SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15165 PyObject *resultobj = 0;
15166 wxDC *arg1 = (wxDC *) 0 ;
15167 int arg2 ;
15168 int arg3 ;
15169 wxColour *arg4 = 0 ;
15170 int arg5 = (int) wxFLOOD_SURFACE ;
15171 bool result;
15172 void *argp1 = 0 ;
15173 int res1 = 0 ;
15174 int val2 ;
15175 int ecode2 = 0 ;
15176 int val3 ;
15177 int ecode3 = 0 ;
15178 wxColour temp4 ;
15179 int val5 ;
15180 int ecode5 = 0 ;
15181 PyObject * obj0 = 0 ;
15182 PyObject * obj1 = 0 ;
15183 PyObject * obj2 = 0 ;
15184 PyObject * obj3 = 0 ;
15185 PyObject * obj4 = 0 ;
15186 char * kwnames[] = {
15187 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
15188 };
15189
15190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15192 if (!SWIG_IsOK(res1)) {
15193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
15194 }
15195 arg1 = reinterpret_cast< wxDC * >(argp1);
15196 ecode2 = SWIG_AsVal_int(obj1, &val2);
15197 if (!SWIG_IsOK(ecode2)) {
15198 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
15199 }
15200 arg2 = static_cast< int >(val2);
15201 ecode3 = SWIG_AsVal_int(obj2, &val3);
15202 if (!SWIG_IsOK(ecode3)) {
15203 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
15204 }
15205 arg3 = static_cast< int >(val3);
15206 {
15207 arg4 = &temp4;
15208 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
15209 }
15210 if (obj4) {
15211 ecode5 = SWIG_AsVal_int(obj4, &val5);
15212 if (!SWIG_IsOK(ecode5)) {
15213 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
15214 }
15215 arg5 = static_cast< int >(val5);
15216 }
15217 {
15218 PyThreadState* __tstate = wxPyBeginAllowThreads();
15219 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
15220 wxPyEndAllowThreads(__tstate);
15221 if (PyErr_Occurred()) SWIG_fail;
15222 }
15223 {
15224 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15225 }
15226 return resultobj;
15227fail:
15228 return NULL;
15229}
15230
15231
15232SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15233 PyObject *resultobj = 0;
15234 wxDC *arg1 = (wxDC *) 0 ;
15235 wxPoint *arg2 = 0 ;
15236 wxColour *arg3 = 0 ;
15237 int arg4 = (int) wxFLOOD_SURFACE ;
15238 bool result;
15239 void *argp1 = 0 ;
15240 int res1 = 0 ;
15241 wxPoint temp2 ;
15242 wxColour temp3 ;
15243 int val4 ;
15244 int ecode4 = 0 ;
15245 PyObject * obj0 = 0 ;
15246 PyObject * obj1 = 0 ;
15247 PyObject * obj2 = 0 ;
15248 PyObject * obj3 = 0 ;
15249 char * kwnames[] = {
15250 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
15251 };
15252
15253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15255 if (!SWIG_IsOK(res1)) {
15256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15257 }
15258 arg1 = reinterpret_cast< wxDC * >(argp1);
15259 {
15260 arg2 = &temp2;
15261 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15262 }
15263 {
15264 arg3 = &temp3;
15265 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
15266 }
15267 if (obj3) {
15268 ecode4 = SWIG_AsVal_int(obj3, &val4);
15269 if (!SWIG_IsOK(ecode4)) {
15270 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
15271 }
15272 arg4 = static_cast< int >(val4);
15273 }
15274 {
15275 PyThreadState* __tstate = wxPyBeginAllowThreads();
15276 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
15277 wxPyEndAllowThreads(__tstate);
15278 if (PyErr_Occurred()) SWIG_fail;
15279 }
15280 {
15281 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15282 }
15283 return resultobj;
15284fail:
15285 return NULL;
15286}
15287
15288
15289SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15290 PyObject *resultobj = 0;
15291 wxDC *arg1 = (wxDC *) 0 ;
15292 wxRect *arg2 = 0 ;
15293 wxColour *arg3 = 0 ;
15294 wxColour *arg4 = 0 ;
15295 wxPoint *arg5 = 0 ;
15296 void *argp1 = 0 ;
15297 int res1 = 0 ;
15298 wxRect temp2 ;
15299 wxColour temp3 ;
15300 wxColour temp4 ;
15301 wxPoint temp5 ;
15302 PyObject * obj0 = 0 ;
15303 PyObject * obj1 = 0 ;
15304 PyObject * obj2 = 0 ;
15305 PyObject * obj3 = 0 ;
15306 PyObject * obj4 = 0 ;
15307 char * kwnames[] = {
15308 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
15309 };
15310
15311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15313 if (!SWIG_IsOK(res1)) {
15314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
15315 }
15316 arg1 = reinterpret_cast< wxDC * >(argp1);
15317 {
15318 arg2 = &temp2;
15319 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15320 }
15321 {
15322 arg3 = &temp3;
15323 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
15324 }
15325 {
15326 arg4 = &temp4;
15327 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
15328 }
15329 {
15330 arg5 = &temp5;
15331 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
15332 }
15333 {
15334 PyThreadState* __tstate = wxPyBeginAllowThreads();
15335 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
15336 wxPyEndAllowThreads(__tstate);
15337 if (PyErr_Occurred()) SWIG_fail;
15338 }
15339 resultobj = SWIG_Py_Void();
15340 return resultobj;
15341fail:
15342 return NULL;
15343}
15344
15345
15346SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15347 PyObject *resultobj = 0;
15348 wxDC *arg1 = (wxDC *) 0 ;
15349 wxRect *arg2 = 0 ;
15350 wxColour *arg3 = 0 ;
15351 wxColour *arg4 = 0 ;
15352 wxDirection arg5 = (wxDirection) wxEAST ;
15353 void *argp1 = 0 ;
15354 int res1 = 0 ;
15355 wxRect temp2 ;
15356 wxColour temp3 ;
15357 wxColour temp4 ;
15358 int val5 ;
15359 int ecode5 = 0 ;
15360 PyObject * obj0 = 0 ;
15361 PyObject * obj1 = 0 ;
15362 PyObject * obj2 = 0 ;
15363 PyObject * obj3 = 0 ;
15364 PyObject * obj4 = 0 ;
15365 char * kwnames[] = {
15366 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
15367 };
15368
15369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15370 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15371 if (!SWIG_IsOK(res1)) {
15372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
15373 }
15374 arg1 = reinterpret_cast< wxDC * >(argp1);
15375 {
15376 arg2 = &temp2;
15377 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15378 }
15379 {
15380 arg3 = &temp3;
15381 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
15382 }
15383 {
15384 arg4 = &temp4;
15385 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
15386 }
15387 if (obj4) {
15388 ecode5 = SWIG_AsVal_int(obj4, &val5);
15389 if (!SWIG_IsOK(ecode5)) {
15390 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
15391 }
15392 arg5 = static_cast< wxDirection >(val5);
15393 }
15394 {
15395 PyThreadState* __tstate = wxPyBeginAllowThreads();
15396 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
15397 wxPyEndAllowThreads(__tstate);
15398 if (PyErr_Occurred()) SWIG_fail;
15399 }
15400 resultobj = SWIG_Py_Void();
15401 return resultobj;
15402fail:
15403 return NULL;
15404}
15405
15406
15407SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15408 PyObject *resultobj = 0;
15409 wxDC *arg1 = (wxDC *) 0 ;
15410 int arg2 ;
15411 int arg3 ;
15412 wxColour result;
15413 void *argp1 = 0 ;
15414 int res1 = 0 ;
15415 int val2 ;
15416 int ecode2 = 0 ;
15417 int val3 ;
15418 int ecode3 = 0 ;
15419 PyObject * obj0 = 0 ;
15420 PyObject * obj1 = 0 ;
15421 PyObject * obj2 = 0 ;
15422 char * kwnames[] = {
15423 (char *) "self",(char *) "x",(char *) "y", NULL
15424 };
15425
15426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15428 if (!SWIG_IsOK(res1)) {
15429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
15430 }
15431 arg1 = reinterpret_cast< wxDC * >(argp1);
15432 ecode2 = SWIG_AsVal_int(obj1, &val2);
15433 if (!SWIG_IsOK(ecode2)) {
15434 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
15435 }
15436 arg2 = static_cast< int >(val2);
15437 ecode3 = SWIG_AsVal_int(obj2, &val3);
15438 if (!SWIG_IsOK(ecode3)) {
15439 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
15440 }
15441 arg3 = static_cast< int >(val3);
15442 {
15443 PyThreadState* __tstate = wxPyBeginAllowThreads();
15444 result = wxDC_GetPixel(arg1,arg2,arg3);
15445 wxPyEndAllowThreads(__tstate);
15446 if (PyErr_Occurred()) SWIG_fail;
15447 }
15448 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
15449 return resultobj;
15450fail:
15451 return NULL;
15452}
15453
15454
15455SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15456 PyObject *resultobj = 0;
15457 wxDC *arg1 = (wxDC *) 0 ;
15458 wxPoint *arg2 = 0 ;
15459 wxColour result;
15460 void *argp1 = 0 ;
15461 int res1 = 0 ;
15462 wxPoint temp2 ;
15463 PyObject * obj0 = 0 ;
15464 PyObject * obj1 = 0 ;
15465 char * kwnames[] = {
15466 (char *) "self",(char *) "pt", NULL
15467 };
15468
15469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
15470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15471 if (!SWIG_IsOK(res1)) {
15472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15473 }
15474 arg1 = reinterpret_cast< wxDC * >(argp1);
15475 {
15476 arg2 = &temp2;
15477 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15478 }
15479 {
15480 PyThreadState* __tstate = wxPyBeginAllowThreads();
15481 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
15482 wxPyEndAllowThreads(__tstate);
15483 if (PyErr_Occurred()) SWIG_fail;
15484 }
15485 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
15486 return resultobj;
15487fail:
15488 return NULL;
15489}
15490
15491
15492SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15493 PyObject *resultobj = 0;
15494 wxDC *arg1 = (wxDC *) 0 ;
15495 int arg2 ;
15496 int arg3 ;
15497 int arg4 ;
15498 int arg5 ;
15499 void *argp1 = 0 ;
15500 int res1 = 0 ;
15501 int val2 ;
15502 int ecode2 = 0 ;
15503 int val3 ;
15504 int ecode3 = 0 ;
15505 int val4 ;
15506 int ecode4 = 0 ;
15507 int val5 ;
15508 int ecode5 = 0 ;
15509 PyObject * obj0 = 0 ;
15510 PyObject * obj1 = 0 ;
15511 PyObject * obj2 = 0 ;
15512 PyObject * obj3 = 0 ;
15513 PyObject * obj4 = 0 ;
15514 char * kwnames[] = {
15515 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
15516 };
15517
15518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15520 if (!SWIG_IsOK(res1)) {
15521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
15522 }
15523 arg1 = reinterpret_cast< wxDC * >(argp1);
15524 ecode2 = SWIG_AsVal_int(obj1, &val2);
15525 if (!SWIG_IsOK(ecode2)) {
15526 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
15527 }
15528 arg2 = static_cast< int >(val2);
15529 ecode3 = SWIG_AsVal_int(obj2, &val3);
15530 if (!SWIG_IsOK(ecode3)) {
15531 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
15532 }
15533 arg3 = static_cast< int >(val3);
15534 ecode4 = SWIG_AsVal_int(obj3, &val4);
15535 if (!SWIG_IsOK(ecode4)) {
15536 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
15537 }
15538 arg4 = static_cast< int >(val4);
15539 ecode5 = SWIG_AsVal_int(obj4, &val5);
15540 if (!SWIG_IsOK(ecode5)) {
15541 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
15542 }
15543 arg5 = static_cast< int >(val5);
15544 {
15545 PyThreadState* __tstate = wxPyBeginAllowThreads();
15546 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
15547 wxPyEndAllowThreads(__tstate);
15548 if (PyErr_Occurred()) SWIG_fail;
15549 }
15550 resultobj = SWIG_Py_Void();
15551 return resultobj;
15552fail:
15553 return NULL;
15554}
15555
15556
15557SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15558 PyObject *resultobj = 0;
15559 wxDC *arg1 = (wxDC *) 0 ;
15560 wxPoint *arg2 = 0 ;
15561 wxPoint *arg3 = 0 ;
15562 void *argp1 = 0 ;
15563 int res1 = 0 ;
15564 wxPoint temp2 ;
15565 wxPoint temp3 ;
15566 PyObject * obj0 = 0 ;
15567 PyObject * obj1 = 0 ;
15568 PyObject * obj2 = 0 ;
15569 char * kwnames[] = {
15570 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
15571 };
15572
15573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15575 if (!SWIG_IsOK(res1)) {
15576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
15577 }
15578 arg1 = reinterpret_cast< wxDC * >(argp1);
15579 {
15580 arg2 = &temp2;
15581 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15582 }
15583 {
15584 arg3 = &temp3;
15585 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15586 }
15587 {
15588 PyThreadState* __tstate = wxPyBeginAllowThreads();
15589 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
15590 wxPyEndAllowThreads(__tstate);
15591 if (PyErr_Occurred()) SWIG_fail;
15592 }
15593 resultobj = SWIG_Py_Void();
15594 return resultobj;
15595fail:
15596 return NULL;
15597}
15598
15599
15600SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15601 PyObject *resultobj = 0;
15602 wxDC *arg1 = (wxDC *) 0 ;
15603 int arg2 ;
15604 int arg3 ;
15605 void *argp1 = 0 ;
15606 int res1 = 0 ;
15607 int val2 ;
15608 int ecode2 = 0 ;
15609 int val3 ;
15610 int ecode3 = 0 ;
15611 PyObject * obj0 = 0 ;
15612 PyObject * obj1 = 0 ;
15613 PyObject * obj2 = 0 ;
15614 char * kwnames[] = {
15615 (char *) "self",(char *) "x",(char *) "y", NULL
15616 };
15617
15618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15620 if (!SWIG_IsOK(res1)) {
15621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
15622 }
15623 arg1 = reinterpret_cast< wxDC * >(argp1);
15624 ecode2 = SWIG_AsVal_int(obj1, &val2);
15625 if (!SWIG_IsOK(ecode2)) {
15626 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
15627 }
15628 arg2 = static_cast< int >(val2);
15629 ecode3 = SWIG_AsVal_int(obj2, &val3);
15630 if (!SWIG_IsOK(ecode3)) {
15631 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
15632 }
15633 arg3 = static_cast< int >(val3);
15634 {
15635 PyThreadState* __tstate = wxPyBeginAllowThreads();
15636 (arg1)->CrossHair(arg2,arg3);
15637 wxPyEndAllowThreads(__tstate);
15638 if (PyErr_Occurred()) SWIG_fail;
15639 }
15640 resultobj = SWIG_Py_Void();
15641 return resultobj;
15642fail:
15643 return NULL;
15644}
15645
15646
15647SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15648 PyObject *resultobj = 0;
15649 wxDC *arg1 = (wxDC *) 0 ;
15650 wxPoint *arg2 = 0 ;
15651 void *argp1 = 0 ;
15652 int res1 = 0 ;
15653 wxPoint temp2 ;
15654 PyObject * obj0 = 0 ;
15655 PyObject * obj1 = 0 ;
15656 char * kwnames[] = {
15657 (char *) "self",(char *) "pt", NULL
15658 };
15659
15660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
15661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15662 if (!SWIG_IsOK(res1)) {
15663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15664 }
15665 arg1 = reinterpret_cast< wxDC * >(argp1);
15666 {
15667 arg2 = &temp2;
15668 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15669 }
15670 {
15671 PyThreadState* __tstate = wxPyBeginAllowThreads();
15672 (arg1)->CrossHair((wxPoint const &)*arg2);
15673 wxPyEndAllowThreads(__tstate);
15674 if (PyErr_Occurred()) SWIG_fail;
15675 }
15676 resultobj = SWIG_Py_Void();
15677 return resultobj;
15678fail:
15679 return NULL;
15680}
15681
15682
15683SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15684 PyObject *resultobj = 0;
15685 wxDC *arg1 = (wxDC *) 0 ;
15686 int arg2 ;
15687 int arg3 ;
15688 int arg4 ;
15689 int arg5 ;
15690 int arg6 ;
15691 int arg7 ;
15692 void *argp1 = 0 ;
15693 int res1 = 0 ;
15694 int val2 ;
15695 int ecode2 = 0 ;
15696 int val3 ;
15697 int ecode3 = 0 ;
15698 int val4 ;
15699 int ecode4 = 0 ;
15700 int val5 ;
15701 int ecode5 = 0 ;
15702 int val6 ;
15703 int ecode6 = 0 ;
15704 int val7 ;
15705 int ecode7 = 0 ;
15706 PyObject * obj0 = 0 ;
15707 PyObject * obj1 = 0 ;
15708 PyObject * obj2 = 0 ;
15709 PyObject * obj3 = 0 ;
15710 PyObject * obj4 = 0 ;
15711 PyObject * obj5 = 0 ;
15712 PyObject * obj6 = 0 ;
15713 char * kwnames[] = {
15714 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
15715 };
15716
15717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
15718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15719 if (!SWIG_IsOK(res1)) {
15720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
15721 }
15722 arg1 = reinterpret_cast< wxDC * >(argp1);
15723 ecode2 = SWIG_AsVal_int(obj1, &val2);
15724 if (!SWIG_IsOK(ecode2)) {
15725 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
15726 }
15727 arg2 = static_cast< int >(val2);
15728 ecode3 = SWIG_AsVal_int(obj2, &val3);
15729 if (!SWIG_IsOK(ecode3)) {
15730 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
15731 }
15732 arg3 = static_cast< int >(val3);
15733 ecode4 = SWIG_AsVal_int(obj3, &val4);
15734 if (!SWIG_IsOK(ecode4)) {
15735 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
15736 }
15737 arg4 = static_cast< int >(val4);
15738 ecode5 = SWIG_AsVal_int(obj4, &val5);
15739 if (!SWIG_IsOK(ecode5)) {
15740 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
15741 }
15742 arg5 = static_cast< int >(val5);
15743 ecode6 = SWIG_AsVal_int(obj5, &val6);
15744 if (!SWIG_IsOK(ecode6)) {
15745 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
15746 }
15747 arg6 = static_cast< int >(val6);
15748 ecode7 = SWIG_AsVal_int(obj6, &val7);
15749 if (!SWIG_IsOK(ecode7)) {
15750 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
15751 }
15752 arg7 = static_cast< int >(val7);
15753 {
15754 PyThreadState* __tstate = wxPyBeginAllowThreads();
15755 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
15756 wxPyEndAllowThreads(__tstate);
15757 if (PyErr_Occurred()) SWIG_fail;
15758 }
15759 resultobj = SWIG_Py_Void();
15760 return resultobj;
15761fail:
15762 return NULL;
15763}
15764
15765
15766SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15767 PyObject *resultobj = 0;
15768 wxDC *arg1 = (wxDC *) 0 ;
15769 wxPoint *arg2 = 0 ;
15770 wxPoint *arg3 = 0 ;
15771 wxPoint *arg4 = 0 ;
15772 void *argp1 = 0 ;
15773 int res1 = 0 ;
15774 wxPoint temp2 ;
15775 wxPoint temp3 ;
15776 wxPoint temp4 ;
15777 PyObject * obj0 = 0 ;
15778 PyObject * obj1 = 0 ;
15779 PyObject * obj2 = 0 ;
15780 PyObject * obj3 = 0 ;
15781 char * kwnames[] = {
15782 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
15783 };
15784
15785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15787 if (!SWIG_IsOK(res1)) {
15788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15789 }
15790 arg1 = reinterpret_cast< wxDC * >(argp1);
15791 {
15792 arg2 = &temp2;
15793 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15794 }
15795 {
15796 arg3 = &temp3;
15797 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15798 }
15799 {
15800 arg4 = &temp4;
15801 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15802 }
15803 {
15804 PyThreadState* __tstate = wxPyBeginAllowThreads();
15805 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
15806 wxPyEndAllowThreads(__tstate);
15807 if (PyErr_Occurred()) SWIG_fail;
15808 }
15809 resultobj = SWIG_Py_Void();
15810 return resultobj;
15811fail:
15812 return NULL;
15813}
15814
15815
15816SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15817 PyObject *resultobj = 0;
15818 wxDC *arg1 = (wxDC *) 0 ;
15819 int arg2 ;
15820 int arg3 ;
15821 int arg4 ;
15822 int arg5 ;
15823 void *argp1 = 0 ;
15824 int res1 = 0 ;
15825 int val2 ;
15826 int ecode2 = 0 ;
15827 int val3 ;
15828 int ecode3 = 0 ;
15829 int val4 ;
15830 int ecode4 = 0 ;
15831 int val5 ;
15832 int ecode5 = 0 ;
15833 PyObject * obj0 = 0 ;
15834 PyObject * obj1 = 0 ;
15835 PyObject * obj2 = 0 ;
15836 PyObject * obj3 = 0 ;
15837 PyObject * obj4 = 0 ;
15838 char * kwnames[] = {
15839 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
15840 };
15841
15842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15844 if (!SWIG_IsOK(res1)) {
15845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
15846 }
15847 arg1 = reinterpret_cast< wxDC * >(argp1);
15848 ecode2 = SWIG_AsVal_int(obj1, &val2);
15849 if (!SWIG_IsOK(ecode2)) {
15850 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
15851 }
15852 arg2 = static_cast< int >(val2);
15853 ecode3 = SWIG_AsVal_int(obj2, &val3);
15854 if (!SWIG_IsOK(ecode3)) {
15855 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
15856 }
15857 arg3 = static_cast< int >(val3);
15858 ecode4 = SWIG_AsVal_int(obj3, &val4);
15859 if (!SWIG_IsOK(ecode4)) {
15860 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
15861 }
15862 arg4 = static_cast< int >(val4);
15863 ecode5 = SWIG_AsVal_int(obj4, &val5);
15864 if (!SWIG_IsOK(ecode5)) {
15865 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
15866 }
15867 arg5 = static_cast< int >(val5);
15868 {
15869 PyThreadState* __tstate = wxPyBeginAllowThreads();
15870 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
15871 wxPyEndAllowThreads(__tstate);
15872 if (PyErr_Occurred()) SWIG_fail;
15873 }
15874 resultobj = SWIG_Py_Void();
15875 return resultobj;
15876fail:
15877 return NULL;
15878}
15879
15880
15881SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15882 PyObject *resultobj = 0;
15883 wxDC *arg1 = (wxDC *) 0 ;
15884 wxRect *arg2 = 0 ;
15885 void *argp1 = 0 ;
15886 int res1 = 0 ;
15887 wxRect temp2 ;
15888 PyObject * obj0 = 0 ;
15889 PyObject * obj1 = 0 ;
15890 char * kwnames[] = {
15891 (char *) "self",(char *) "rect", NULL
15892 };
15893
15894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
15895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15896 if (!SWIG_IsOK(res1)) {
15897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
15898 }
15899 arg1 = reinterpret_cast< wxDC * >(argp1);
15900 {
15901 arg2 = &temp2;
15902 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15903 }
15904 {
15905 PyThreadState* __tstate = wxPyBeginAllowThreads();
15906 (arg1)->DrawCheckMark((wxRect const &)*arg2);
15907 wxPyEndAllowThreads(__tstate);
15908 if (PyErr_Occurred()) SWIG_fail;
15909 }
15910 resultobj = SWIG_Py_Void();
15911 return resultobj;
15912fail:
15913 return NULL;
15914}
15915
15916
15917SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15918 PyObject *resultobj = 0;
15919 wxDC *arg1 = (wxDC *) 0 ;
15920 int arg2 ;
15921 int arg3 ;
15922 int arg4 ;
15923 int arg5 ;
15924 double arg6 ;
15925 double arg7 ;
15926 void *argp1 = 0 ;
15927 int res1 = 0 ;
15928 int val2 ;
15929 int ecode2 = 0 ;
15930 int val3 ;
15931 int ecode3 = 0 ;
15932 int val4 ;
15933 int ecode4 = 0 ;
15934 int val5 ;
15935 int ecode5 = 0 ;
15936 double val6 ;
15937 int ecode6 = 0 ;
15938 double val7 ;
15939 int ecode7 = 0 ;
15940 PyObject * obj0 = 0 ;
15941 PyObject * obj1 = 0 ;
15942 PyObject * obj2 = 0 ;
15943 PyObject * obj3 = 0 ;
15944 PyObject * obj4 = 0 ;
15945 PyObject * obj5 = 0 ;
15946 PyObject * obj6 = 0 ;
15947 char * kwnames[] = {
15948 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
15949 };
15950
15951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
15952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15953 if (!SWIG_IsOK(res1)) {
15954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
15955 }
15956 arg1 = reinterpret_cast< wxDC * >(argp1);
15957 ecode2 = SWIG_AsVal_int(obj1, &val2);
15958 if (!SWIG_IsOK(ecode2)) {
15959 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
15960 }
15961 arg2 = static_cast< int >(val2);
15962 ecode3 = SWIG_AsVal_int(obj2, &val3);
15963 if (!SWIG_IsOK(ecode3)) {
15964 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
15965 }
15966 arg3 = static_cast< int >(val3);
15967 ecode4 = SWIG_AsVal_int(obj3, &val4);
15968 if (!SWIG_IsOK(ecode4)) {
15969 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
15970 }
15971 arg4 = static_cast< int >(val4);
15972 ecode5 = SWIG_AsVal_int(obj4, &val5);
15973 if (!SWIG_IsOK(ecode5)) {
15974 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
15975 }
15976 arg5 = static_cast< int >(val5);
15977 ecode6 = SWIG_AsVal_double(obj5, &val6);
15978 if (!SWIG_IsOK(ecode6)) {
15979 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
15980 }
15981 arg6 = static_cast< double >(val6);
15982 ecode7 = SWIG_AsVal_double(obj6, &val7);
15983 if (!SWIG_IsOK(ecode7)) {
15984 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
15985 }
15986 arg7 = static_cast< double >(val7);
15987 {
15988 PyThreadState* __tstate = wxPyBeginAllowThreads();
15989 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
15990 wxPyEndAllowThreads(__tstate);
15991 if (PyErr_Occurred()) SWIG_fail;
15992 }
15993 resultobj = SWIG_Py_Void();
15994 return resultobj;
15995fail:
15996 return NULL;
15997}
15998
15999
16000SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16001 PyObject *resultobj = 0;
16002 wxDC *arg1 = (wxDC *) 0 ;
16003 wxPoint *arg2 = 0 ;
16004 wxSize *arg3 = 0 ;
16005 double arg4 ;
16006 double arg5 ;
16007 void *argp1 = 0 ;
16008 int res1 = 0 ;
16009 wxPoint temp2 ;
16010 wxSize temp3 ;
16011 double val4 ;
16012 int ecode4 = 0 ;
16013 double val5 ;
16014 int ecode5 = 0 ;
16015 PyObject * obj0 = 0 ;
16016 PyObject * obj1 = 0 ;
16017 PyObject * obj2 = 0 ;
16018 PyObject * obj3 = 0 ;
16019 PyObject * obj4 = 0 ;
16020 char * kwnames[] = {
16021 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
16022 };
16023
16024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16026 if (!SWIG_IsOK(res1)) {
16027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16028 }
16029 arg1 = reinterpret_cast< wxDC * >(argp1);
16030 {
16031 arg2 = &temp2;
16032 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16033 }
16034 {
16035 arg3 = &temp3;
16036 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16037 }
16038 ecode4 = SWIG_AsVal_double(obj3, &val4);
16039 if (!SWIG_IsOK(ecode4)) {
16040 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
16041 }
16042 arg4 = static_cast< double >(val4);
16043 ecode5 = SWIG_AsVal_double(obj4, &val5);
16044 if (!SWIG_IsOK(ecode5)) {
16045 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
16046 }
16047 arg5 = static_cast< double >(val5);
16048 {
16049 PyThreadState* __tstate = wxPyBeginAllowThreads();
16050 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
16051 wxPyEndAllowThreads(__tstate);
16052 if (PyErr_Occurred()) SWIG_fail;
16053 }
16054 resultobj = SWIG_Py_Void();
16055 return resultobj;
16056fail:
16057 return NULL;
16058}
16059
16060
16061SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16062 PyObject *resultobj = 0;
16063 wxDC *arg1 = (wxDC *) 0 ;
16064 int arg2 ;
16065 int arg3 ;
16066 void *argp1 = 0 ;
16067 int res1 = 0 ;
16068 int val2 ;
16069 int ecode2 = 0 ;
16070 int val3 ;
16071 int ecode3 = 0 ;
16072 PyObject * obj0 = 0 ;
16073 PyObject * obj1 = 0 ;
16074 PyObject * obj2 = 0 ;
16075 char * kwnames[] = {
16076 (char *) "self",(char *) "x",(char *) "y", NULL
16077 };
16078
16079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16081 if (!SWIG_IsOK(res1)) {
16082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16083 }
16084 arg1 = reinterpret_cast< wxDC * >(argp1);
16085 ecode2 = SWIG_AsVal_int(obj1, &val2);
16086 if (!SWIG_IsOK(ecode2)) {
16087 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
16088 }
16089 arg2 = static_cast< int >(val2);
16090 ecode3 = SWIG_AsVal_int(obj2, &val3);
16091 if (!SWIG_IsOK(ecode3)) {
16092 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
16093 }
16094 arg3 = static_cast< int >(val3);
16095 {
16096 PyThreadState* __tstate = wxPyBeginAllowThreads();
16097 (arg1)->DrawPoint(arg2,arg3);
16098 wxPyEndAllowThreads(__tstate);
16099 if (PyErr_Occurred()) SWIG_fail;
16100 }
16101 resultobj = SWIG_Py_Void();
16102 return resultobj;
16103fail:
16104 return NULL;
16105}
16106
16107
16108SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16109 PyObject *resultobj = 0;
16110 wxDC *arg1 = (wxDC *) 0 ;
16111 wxPoint *arg2 = 0 ;
16112 void *argp1 = 0 ;
16113 int res1 = 0 ;
16114 wxPoint temp2 ;
16115 PyObject * obj0 = 0 ;
16116 PyObject * obj1 = 0 ;
16117 char * kwnames[] = {
16118 (char *) "self",(char *) "pt", NULL
16119 };
16120
16121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
16122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16123 if (!SWIG_IsOK(res1)) {
16124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16125 }
16126 arg1 = reinterpret_cast< wxDC * >(argp1);
16127 {
16128 arg2 = &temp2;
16129 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16130 }
16131 {
16132 PyThreadState* __tstate = wxPyBeginAllowThreads();
16133 (arg1)->DrawPoint((wxPoint const &)*arg2);
16134 wxPyEndAllowThreads(__tstate);
16135 if (PyErr_Occurred()) SWIG_fail;
16136 }
16137 resultobj = SWIG_Py_Void();
16138 return resultobj;
16139fail:
16140 return NULL;
16141}
16142
16143
16144SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16145 PyObject *resultobj = 0;
16146 wxDC *arg1 = (wxDC *) 0 ;
16147 int arg2 ;
16148 int arg3 ;
16149 int arg4 ;
16150 int arg5 ;
16151 void *argp1 = 0 ;
16152 int res1 = 0 ;
16153 int val2 ;
16154 int ecode2 = 0 ;
16155 int val3 ;
16156 int ecode3 = 0 ;
16157 int val4 ;
16158 int ecode4 = 0 ;
16159 int val5 ;
16160 int ecode5 = 0 ;
16161 PyObject * obj0 = 0 ;
16162 PyObject * obj1 = 0 ;
16163 PyObject * obj2 = 0 ;
16164 PyObject * obj3 = 0 ;
16165 PyObject * obj4 = 0 ;
16166 char * kwnames[] = {
16167 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
16168 };
16169
16170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16172 if (!SWIG_IsOK(res1)) {
16173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
16174 }
16175 arg1 = reinterpret_cast< wxDC * >(argp1);
16176 ecode2 = SWIG_AsVal_int(obj1, &val2);
16177 if (!SWIG_IsOK(ecode2)) {
16178 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
16179 }
16180 arg2 = static_cast< int >(val2);
16181 ecode3 = SWIG_AsVal_int(obj2, &val3);
16182 if (!SWIG_IsOK(ecode3)) {
16183 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', 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_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
16189 }
16190 arg4 = static_cast< int >(val4);
16191 ecode5 = SWIG_AsVal_int(obj4, &val5);
16192 if (!SWIG_IsOK(ecode5)) {
16193 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
16194 }
16195 arg5 = static_cast< int >(val5);
16196 {
16197 PyThreadState* __tstate = wxPyBeginAllowThreads();
16198 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
16199 wxPyEndAllowThreads(__tstate);
16200 if (PyErr_Occurred()) SWIG_fail;
16201 }
16202 resultobj = SWIG_Py_Void();
16203 return resultobj;
16204fail:
16205 return NULL;
16206}
16207
16208
16209SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16210 PyObject *resultobj = 0;
16211 wxDC *arg1 = (wxDC *) 0 ;
16212 wxRect *arg2 = 0 ;
16213 void *argp1 = 0 ;
16214 int res1 = 0 ;
16215 wxRect temp2 ;
16216 PyObject * obj0 = 0 ;
16217 PyObject * obj1 = 0 ;
16218 char * kwnames[] = {
16219 (char *) "self",(char *) "rect", NULL
16220 };
16221
16222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
16223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16224 if (!SWIG_IsOK(res1)) {
16225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
16226 }
16227 arg1 = reinterpret_cast< wxDC * >(argp1);
16228 {
16229 arg2 = &temp2;
16230 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
16231 }
16232 {
16233 PyThreadState* __tstate = wxPyBeginAllowThreads();
16234 (arg1)->DrawRectangle((wxRect const &)*arg2);
16235 wxPyEndAllowThreads(__tstate);
16236 if (PyErr_Occurred()) SWIG_fail;
16237 }
16238 resultobj = SWIG_Py_Void();
16239 return resultobj;
16240fail:
16241 return NULL;
16242}
16243
16244
16245SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16246 PyObject *resultobj = 0;
16247 wxDC *arg1 = (wxDC *) 0 ;
16248 wxPoint *arg2 = 0 ;
16249 wxSize *arg3 = 0 ;
16250 void *argp1 = 0 ;
16251 int res1 = 0 ;
16252 wxPoint temp2 ;
16253 wxSize temp3 ;
16254 PyObject * obj0 = 0 ;
16255 PyObject * obj1 = 0 ;
16256 PyObject * obj2 = 0 ;
16257 char * kwnames[] = {
16258 (char *) "self",(char *) "pt",(char *) "sz", NULL
16259 };
16260
16261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16263 if (!SWIG_IsOK(res1)) {
16264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16265 }
16266 arg1 = reinterpret_cast< wxDC * >(argp1);
16267 {
16268 arg2 = &temp2;
16269 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16270 }
16271 {
16272 arg3 = &temp3;
16273 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16274 }
16275 {
16276 PyThreadState* __tstate = wxPyBeginAllowThreads();
16277 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
16278 wxPyEndAllowThreads(__tstate);
16279 if (PyErr_Occurred()) SWIG_fail;
16280 }
16281 resultobj = SWIG_Py_Void();
16282 return resultobj;
16283fail:
16284 return NULL;
16285}
16286
16287
16288SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16289 PyObject *resultobj = 0;
16290 wxDC *arg1 = (wxDC *) 0 ;
16291 int arg2 ;
16292 int arg3 ;
16293 int arg4 ;
16294 int arg5 ;
16295 double arg6 ;
16296 void *argp1 = 0 ;
16297 int res1 = 0 ;
16298 int val2 ;
16299 int ecode2 = 0 ;
16300 int val3 ;
16301 int ecode3 = 0 ;
16302 int val4 ;
16303 int ecode4 = 0 ;
16304 int val5 ;
16305 int ecode5 = 0 ;
16306 double val6 ;
16307 int ecode6 = 0 ;
16308 PyObject * obj0 = 0 ;
16309 PyObject * obj1 = 0 ;
16310 PyObject * obj2 = 0 ;
16311 PyObject * obj3 = 0 ;
16312 PyObject * obj4 = 0 ;
16313 PyObject * obj5 = 0 ;
16314 char * kwnames[] = {
16315 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
16316 };
16317
16318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
16319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16320 if (!SWIG_IsOK(res1)) {
16321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
16322 }
16323 arg1 = reinterpret_cast< wxDC * >(argp1);
16324 ecode2 = SWIG_AsVal_int(obj1, &val2);
16325 if (!SWIG_IsOK(ecode2)) {
16326 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
16327 }
16328 arg2 = static_cast< int >(val2);
16329 ecode3 = SWIG_AsVal_int(obj2, &val3);
16330 if (!SWIG_IsOK(ecode3)) {
16331 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
16332 }
16333 arg3 = static_cast< int >(val3);
16334 ecode4 = SWIG_AsVal_int(obj3, &val4);
16335 if (!SWIG_IsOK(ecode4)) {
16336 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
16337 }
16338 arg4 = static_cast< int >(val4);
16339 ecode5 = SWIG_AsVal_int(obj4, &val5);
16340 if (!SWIG_IsOK(ecode5)) {
16341 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
16342 }
16343 arg5 = static_cast< int >(val5);
16344 ecode6 = SWIG_AsVal_double(obj5, &val6);
16345 if (!SWIG_IsOK(ecode6)) {
16346 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
16347 }
16348 arg6 = static_cast< double >(val6);
16349 {
16350 PyThreadState* __tstate = wxPyBeginAllowThreads();
16351 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
16352 wxPyEndAllowThreads(__tstate);
16353 if (PyErr_Occurred()) SWIG_fail;
16354 }
16355 resultobj = SWIG_Py_Void();
16356 return resultobj;
16357fail:
16358 return NULL;
16359}
16360
16361
16362SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16363 PyObject *resultobj = 0;
16364 wxDC *arg1 = (wxDC *) 0 ;
16365 wxRect *arg2 = 0 ;
16366 double arg3 ;
16367 void *argp1 = 0 ;
16368 int res1 = 0 ;
16369 wxRect temp2 ;
16370 double val3 ;
16371 int ecode3 = 0 ;
16372 PyObject * obj0 = 0 ;
16373 PyObject * obj1 = 0 ;
16374 PyObject * obj2 = 0 ;
16375 char * kwnames[] = {
16376 (char *) "self",(char *) "r",(char *) "radius", NULL
16377 };
16378
16379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16381 if (!SWIG_IsOK(res1)) {
16382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
16383 }
16384 arg1 = reinterpret_cast< wxDC * >(argp1);
16385 {
16386 arg2 = &temp2;
16387 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
16388 }
16389 ecode3 = SWIG_AsVal_double(obj2, &val3);
16390 if (!SWIG_IsOK(ecode3)) {
16391 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
16392 }
16393 arg3 = static_cast< double >(val3);
16394 {
16395 PyThreadState* __tstate = wxPyBeginAllowThreads();
16396 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
16397 wxPyEndAllowThreads(__tstate);
16398 if (PyErr_Occurred()) SWIG_fail;
16399 }
16400 resultobj = SWIG_Py_Void();
16401 return resultobj;
16402fail:
16403 return NULL;
16404}
16405
16406
16407SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16408 PyObject *resultobj = 0;
16409 wxDC *arg1 = (wxDC *) 0 ;
16410 wxPoint *arg2 = 0 ;
16411 wxSize *arg3 = 0 ;
16412 double arg4 ;
16413 void *argp1 = 0 ;
16414 int res1 = 0 ;
16415 wxPoint temp2 ;
16416 wxSize temp3 ;
16417 double val4 ;
16418 int ecode4 = 0 ;
16419 PyObject * obj0 = 0 ;
16420 PyObject * obj1 = 0 ;
16421 PyObject * obj2 = 0 ;
16422 PyObject * obj3 = 0 ;
16423 char * kwnames[] = {
16424 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
16425 };
16426
16427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16429 if (!SWIG_IsOK(res1)) {
16430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16431 }
16432 arg1 = reinterpret_cast< wxDC * >(argp1);
16433 {
16434 arg2 = &temp2;
16435 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16436 }
16437 {
16438 arg3 = &temp3;
16439 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16440 }
16441 ecode4 = SWIG_AsVal_double(obj3, &val4);
16442 if (!SWIG_IsOK(ecode4)) {
16443 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
16444 }
16445 arg4 = static_cast< double >(val4);
16446 {
16447 PyThreadState* __tstate = wxPyBeginAllowThreads();
16448 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
16449 wxPyEndAllowThreads(__tstate);
16450 if (PyErr_Occurred()) SWIG_fail;
16451 }
16452 resultobj = SWIG_Py_Void();
16453 return resultobj;
16454fail:
16455 return NULL;
16456}
16457
16458
16459SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16460 PyObject *resultobj = 0;
16461 wxDC *arg1 = (wxDC *) 0 ;
16462 int arg2 ;
16463 int arg3 ;
16464 int arg4 ;
16465 void *argp1 = 0 ;
16466 int res1 = 0 ;
16467 int val2 ;
16468 int ecode2 = 0 ;
16469 int val3 ;
16470 int ecode3 = 0 ;
16471 int val4 ;
16472 int ecode4 = 0 ;
16473 PyObject * obj0 = 0 ;
16474 PyObject * obj1 = 0 ;
16475 PyObject * obj2 = 0 ;
16476 PyObject * obj3 = 0 ;
16477 char * kwnames[] = {
16478 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
16479 };
16480
16481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16483 if (!SWIG_IsOK(res1)) {
16484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
16485 }
16486 arg1 = reinterpret_cast< wxDC * >(argp1);
16487 ecode2 = SWIG_AsVal_int(obj1, &val2);
16488 if (!SWIG_IsOK(ecode2)) {
16489 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
16490 }
16491 arg2 = static_cast< int >(val2);
16492 ecode3 = SWIG_AsVal_int(obj2, &val3);
16493 if (!SWIG_IsOK(ecode3)) {
16494 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
16495 }
16496 arg3 = static_cast< int >(val3);
16497 ecode4 = SWIG_AsVal_int(obj3, &val4);
16498 if (!SWIG_IsOK(ecode4)) {
16499 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
16500 }
16501 arg4 = static_cast< int >(val4);
16502 {
16503 PyThreadState* __tstate = wxPyBeginAllowThreads();
16504 (arg1)->DrawCircle(arg2,arg3,arg4);
16505 wxPyEndAllowThreads(__tstate);
16506 if (PyErr_Occurred()) SWIG_fail;
16507 }
16508 resultobj = SWIG_Py_Void();
16509 return resultobj;
16510fail:
16511 return NULL;
16512}
16513
16514
16515SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16516 PyObject *resultobj = 0;
16517 wxDC *arg1 = (wxDC *) 0 ;
16518 wxPoint *arg2 = 0 ;
16519 int arg3 ;
16520 void *argp1 = 0 ;
16521 int res1 = 0 ;
16522 wxPoint temp2 ;
16523 int val3 ;
16524 int ecode3 = 0 ;
16525 PyObject * obj0 = 0 ;
16526 PyObject * obj1 = 0 ;
16527 PyObject * obj2 = 0 ;
16528 char * kwnames[] = {
16529 (char *) "self",(char *) "pt",(char *) "radius", NULL
16530 };
16531
16532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16534 if (!SWIG_IsOK(res1)) {
16535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
16536 }
16537 arg1 = reinterpret_cast< wxDC * >(argp1);
16538 {
16539 arg2 = &temp2;
16540 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16541 }
16542 ecode3 = SWIG_AsVal_int(obj2, &val3);
16543 if (!SWIG_IsOK(ecode3)) {
16544 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
16545 }
16546 arg3 = static_cast< int >(val3);
16547 {
16548 PyThreadState* __tstate = wxPyBeginAllowThreads();
16549 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
16550 wxPyEndAllowThreads(__tstate);
16551 if (PyErr_Occurred()) SWIG_fail;
16552 }
16553 resultobj = SWIG_Py_Void();
16554 return resultobj;
16555fail:
16556 return NULL;
16557}
16558
16559
16560SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16561 PyObject *resultobj = 0;
16562 wxDC *arg1 = (wxDC *) 0 ;
16563 int arg2 ;
16564 int arg3 ;
16565 int arg4 ;
16566 int arg5 ;
16567 void *argp1 = 0 ;
16568 int res1 = 0 ;
16569 int val2 ;
16570 int ecode2 = 0 ;
16571 int val3 ;
16572 int ecode3 = 0 ;
16573 int val4 ;
16574 int ecode4 = 0 ;
16575 int val5 ;
16576 int ecode5 = 0 ;
16577 PyObject * obj0 = 0 ;
16578 PyObject * obj1 = 0 ;
16579 PyObject * obj2 = 0 ;
16580 PyObject * obj3 = 0 ;
16581 PyObject * obj4 = 0 ;
16582 char * kwnames[] = {
16583 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
16584 };
16585
16586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16588 if (!SWIG_IsOK(res1)) {
16589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
16590 }
16591 arg1 = reinterpret_cast< wxDC * >(argp1);
16592 ecode2 = SWIG_AsVal_int(obj1, &val2);
16593 if (!SWIG_IsOK(ecode2)) {
16594 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
16595 }
16596 arg2 = static_cast< int >(val2);
16597 ecode3 = SWIG_AsVal_int(obj2, &val3);
16598 if (!SWIG_IsOK(ecode3)) {
16599 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
16600 }
16601 arg3 = static_cast< int >(val3);
16602 ecode4 = SWIG_AsVal_int(obj3, &val4);
16603 if (!SWIG_IsOK(ecode4)) {
16604 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
16605 }
16606 arg4 = static_cast< int >(val4);
16607 ecode5 = SWIG_AsVal_int(obj4, &val5);
16608 if (!SWIG_IsOK(ecode5)) {
16609 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
16610 }
16611 arg5 = static_cast< int >(val5);
16612 {
16613 PyThreadState* __tstate = wxPyBeginAllowThreads();
16614 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
16615 wxPyEndAllowThreads(__tstate);
16616 if (PyErr_Occurred()) SWIG_fail;
16617 }
16618 resultobj = SWIG_Py_Void();
16619 return resultobj;
16620fail:
16621 return NULL;
16622}
16623
16624
16625SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16626 PyObject *resultobj = 0;
16627 wxDC *arg1 = (wxDC *) 0 ;
16628 wxRect *arg2 = 0 ;
16629 void *argp1 = 0 ;
16630 int res1 = 0 ;
16631 wxRect temp2 ;
16632 PyObject * obj0 = 0 ;
16633 PyObject * obj1 = 0 ;
16634 char * kwnames[] = {
16635 (char *) "self",(char *) "rect", NULL
16636 };
16637
16638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
16639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16640 if (!SWIG_IsOK(res1)) {
16641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
16642 }
16643 arg1 = reinterpret_cast< wxDC * >(argp1);
16644 {
16645 arg2 = &temp2;
16646 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
16647 }
16648 {
16649 PyThreadState* __tstate = wxPyBeginAllowThreads();
16650 (arg1)->DrawEllipse((wxRect const &)*arg2);
16651 wxPyEndAllowThreads(__tstate);
16652 if (PyErr_Occurred()) SWIG_fail;
16653 }
16654 resultobj = SWIG_Py_Void();
16655 return resultobj;
16656fail:
16657 return NULL;
16658}
16659
16660
16661SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16662 PyObject *resultobj = 0;
16663 wxDC *arg1 = (wxDC *) 0 ;
16664 wxPoint *arg2 = 0 ;
16665 wxSize *arg3 = 0 ;
16666 void *argp1 = 0 ;
16667 int res1 = 0 ;
16668 wxPoint temp2 ;
16669 wxSize temp3 ;
16670 PyObject * obj0 = 0 ;
16671 PyObject * obj1 = 0 ;
16672 PyObject * obj2 = 0 ;
16673 char * kwnames[] = {
16674 (char *) "self",(char *) "pt",(char *) "sz", NULL
16675 };
16676
16677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16679 if (!SWIG_IsOK(res1)) {
16680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16681 }
16682 arg1 = reinterpret_cast< wxDC * >(argp1);
16683 {
16684 arg2 = &temp2;
16685 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16686 }
16687 {
16688 arg3 = &temp3;
16689 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16690 }
16691 {
16692 PyThreadState* __tstate = wxPyBeginAllowThreads();
16693 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
16694 wxPyEndAllowThreads(__tstate);
16695 if (PyErr_Occurred()) SWIG_fail;
16696 }
16697 resultobj = SWIG_Py_Void();
16698 return resultobj;
16699fail:
16700 return NULL;
16701}
16702
16703
16704SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16705 PyObject *resultobj = 0;
16706 wxDC *arg1 = (wxDC *) 0 ;
16707 wxIcon *arg2 = 0 ;
16708 int arg3 ;
16709 int arg4 ;
16710 void *argp1 = 0 ;
16711 int res1 = 0 ;
16712 void *argp2 = 0 ;
16713 int res2 = 0 ;
16714 int val3 ;
16715 int ecode3 = 0 ;
16716 int val4 ;
16717 int ecode4 = 0 ;
16718 PyObject * obj0 = 0 ;
16719 PyObject * obj1 = 0 ;
16720 PyObject * obj2 = 0 ;
16721 PyObject * obj3 = 0 ;
16722 char * kwnames[] = {
16723 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
16724 };
16725
16726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16728 if (!SWIG_IsOK(res1)) {
16729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
16730 }
16731 arg1 = reinterpret_cast< wxDC * >(argp1);
16732 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
16733 if (!SWIG_IsOK(res2)) {
16734 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
16735 }
16736 if (!argp2) {
16737 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
16738 }
16739 arg2 = reinterpret_cast< wxIcon * >(argp2);
16740 ecode3 = SWIG_AsVal_int(obj2, &val3);
16741 if (!SWIG_IsOK(ecode3)) {
16742 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
16743 }
16744 arg3 = static_cast< int >(val3);
16745 ecode4 = SWIG_AsVal_int(obj3, &val4);
16746 if (!SWIG_IsOK(ecode4)) {
16747 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
16748 }
16749 arg4 = static_cast< int >(val4);
16750 {
16751 PyThreadState* __tstate = wxPyBeginAllowThreads();
16752 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
16753 wxPyEndAllowThreads(__tstate);
16754 if (PyErr_Occurred()) SWIG_fail;
16755 }
16756 resultobj = SWIG_Py_Void();
16757 return resultobj;
16758fail:
16759 return NULL;
16760}
16761
16762
16763SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16764 PyObject *resultobj = 0;
16765 wxDC *arg1 = (wxDC *) 0 ;
16766 wxIcon *arg2 = 0 ;
16767 wxPoint *arg3 = 0 ;
16768 void *argp1 = 0 ;
16769 int res1 = 0 ;
16770 void *argp2 = 0 ;
16771 int res2 = 0 ;
16772 wxPoint temp3 ;
16773 PyObject * obj0 = 0 ;
16774 PyObject * obj1 = 0 ;
16775 PyObject * obj2 = 0 ;
16776 char * kwnames[] = {
16777 (char *) "self",(char *) "icon",(char *) "pt", NULL
16778 };
16779
16780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16782 if (!SWIG_IsOK(res1)) {
16783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16784 }
16785 arg1 = reinterpret_cast< wxDC * >(argp1);
16786 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
16787 if (!SWIG_IsOK(res2)) {
16788 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
16789 }
16790 if (!argp2) {
16791 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
16792 }
16793 arg2 = reinterpret_cast< wxIcon * >(argp2);
16794 {
16795 arg3 = &temp3;
16796 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16797 }
16798 {
16799 PyThreadState* __tstate = wxPyBeginAllowThreads();
16800 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
16801 wxPyEndAllowThreads(__tstate);
16802 if (PyErr_Occurred()) SWIG_fail;
16803 }
16804 resultobj = SWIG_Py_Void();
16805 return resultobj;
16806fail:
16807 return NULL;
16808}
16809
16810
16811SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16812 PyObject *resultobj = 0;
16813 wxDC *arg1 = (wxDC *) 0 ;
16814 wxBitmap *arg2 = 0 ;
16815 int arg3 ;
16816 int arg4 ;
16817 bool arg5 = (bool) false ;
16818 void *argp1 = 0 ;
16819 int res1 = 0 ;
16820 void *argp2 = 0 ;
16821 int res2 = 0 ;
16822 int val3 ;
16823 int ecode3 = 0 ;
16824 int val4 ;
16825 int ecode4 = 0 ;
16826 bool val5 ;
16827 int ecode5 = 0 ;
16828 PyObject * obj0 = 0 ;
16829 PyObject * obj1 = 0 ;
16830 PyObject * obj2 = 0 ;
16831 PyObject * obj3 = 0 ;
16832 PyObject * obj4 = 0 ;
16833 char * kwnames[] = {
16834 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
16835 };
16836
16837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16839 if (!SWIG_IsOK(res1)) {
16840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
16841 }
16842 arg1 = reinterpret_cast< wxDC * >(argp1);
16843 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
16844 if (!SWIG_IsOK(res2)) {
16845 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16846 }
16847 if (!argp2) {
16848 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16849 }
16850 arg2 = reinterpret_cast< wxBitmap * >(argp2);
16851 ecode3 = SWIG_AsVal_int(obj2, &val3);
16852 if (!SWIG_IsOK(ecode3)) {
16853 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
16854 }
16855 arg3 = static_cast< int >(val3);
16856 ecode4 = SWIG_AsVal_int(obj3, &val4);
16857 if (!SWIG_IsOK(ecode4)) {
16858 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
16859 }
16860 arg4 = static_cast< int >(val4);
16861 if (obj4) {
16862 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16863 if (!SWIG_IsOK(ecode5)) {
16864 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
16865 }
16866 arg5 = static_cast< bool >(val5);
16867 }
16868 {
16869 PyThreadState* __tstate = wxPyBeginAllowThreads();
16870 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
16871 wxPyEndAllowThreads(__tstate);
16872 if (PyErr_Occurred()) SWIG_fail;
16873 }
16874 resultobj = SWIG_Py_Void();
16875 return resultobj;
16876fail:
16877 return NULL;
16878}
16879
16880
16881SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16882 PyObject *resultobj = 0;
16883 wxDC *arg1 = (wxDC *) 0 ;
16884 wxBitmap *arg2 = 0 ;
16885 wxPoint *arg3 = 0 ;
16886 bool arg4 = (bool) false ;
16887 void *argp1 = 0 ;
16888 int res1 = 0 ;
16889 void *argp2 = 0 ;
16890 int res2 = 0 ;
16891 wxPoint temp3 ;
16892 bool val4 ;
16893 int ecode4 = 0 ;
16894 PyObject * obj0 = 0 ;
16895 PyObject * obj1 = 0 ;
16896 PyObject * obj2 = 0 ;
16897 PyObject * obj3 = 0 ;
16898 char * kwnames[] = {
16899 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
16900 };
16901
16902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16904 if (!SWIG_IsOK(res1)) {
16905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16906 }
16907 arg1 = reinterpret_cast< wxDC * >(argp1);
16908 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
16909 if (!SWIG_IsOK(res2)) {
16910 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16911 }
16912 if (!argp2) {
16913 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16914 }
16915 arg2 = reinterpret_cast< wxBitmap * >(argp2);
16916 {
16917 arg3 = &temp3;
16918 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16919 }
16920 if (obj3) {
16921 ecode4 = SWIG_AsVal_bool(obj3, &val4);
16922 if (!SWIG_IsOK(ecode4)) {
16923 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
16924 }
16925 arg4 = static_cast< bool >(val4);
16926 }
16927 {
16928 PyThreadState* __tstate = wxPyBeginAllowThreads();
16929 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
16930 wxPyEndAllowThreads(__tstate);
16931 if (PyErr_Occurred()) SWIG_fail;
16932 }
16933 resultobj = SWIG_Py_Void();
16934 return resultobj;
16935fail:
16936 return NULL;
16937}
16938
16939
16940SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16941 PyObject *resultobj = 0;
16942 wxDC *arg1 = (wxDC *) 0 ;
16943 wxString *arg2 = 0 ;
16944 int arg3 ;
16945 int arg4 ;
16946 void *argp1 = 0 ;
16947 int res1 = 0 ;
16948 bool temp2 = false ;
16949 int val3 ;
16950 int ecode3 = 0 ;
16951 int val4 ;
16952 int ecode4 = 0 ;
16953 PyObject * obj0 = 0 ;
16954 PyObject * obj1 = 0 ;
16955 PyObject * obj2 = 0 ;
16956 PyObject * obj3 = 0 ;
16957 char * kwnames[] = {
16958 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
16959 };
16960
16961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16963 if (!SWIG_IsOK(res1)) {
16964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
16965 }
16966 arg1 = reinterpret_cast< wxDC * >(argp1);
16967 {
16968 arg2 = wxString_in_helper(obj1);
16969 if (arg2 == NULL) SWIG_fail;
16970 temp2 = true;
16971 }
16972 ecode3 = SWIG_AsVal_int(obj2, &val3);
16973 if (!SWIG_IsOK(ecode3)) {
16974 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
16975 }
16976 arg3 = static_cast< int >(val3);
16977 ecode4 = SWIG_AsVal_int(obj3, &val4);
16978 if (!SWIG_IsOK(ecode4)) {
16979 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
16980 }
16981 arg4 = static_cast< int >(val4);
16982 {
16983 PyThreadState* __tstate = wxPyBeginAllowThreads();
16984 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
16985 wxPyEndAllowThreads(__tstate);
16986 if (PyErr_Occurred()) SWIG_fail;
16987 }
16988 resultobj = SWIG_Py_Void();
16989 {
16990 if (temp2)
16991 delete arg2;
16992 }
16993 return resultobj;
16994fail:
16995 {
16996 if (temp2)
16997 delete arg2;
16998 }
16999 return NULL;
17000}
17001
17002
17003SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17004 PyObject *resultobj = 0;
17005 wxDC *arg1 = (wxDC *) 0 ;
17006 wxString *arg2 = 0 ;
17007 wxPoint *arg3 = 0 ;
17008 void *argp1 = 0 ;
17009 int res1 = 0 ;
17010 bool temp2 = false ;
17011 wxPoint temp3 ;
17012 PyObject * obj0 = 0 ;
17013 PyObject * obj1 = 0 ;
17014 PyObject * obj2 = 0 ;
17015 char * kwnames[] = {
17016 (char *) "self",(char *) "text",(char *) "pt", NULL
17017 };
17018
17019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17021 if (!SWIG_IsOK(res1)) {
17022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17023 }
17024 arg1 = reinterpret_cast< wxDC * >(argp1);
17025 {
17026 arg2 = wxString_in_helper(obj1);
17027 if (arg2 == NULL) SWIG_fail;
17028 temp2 = true;
17029 }
17030 {
17031 arg3 = &temp3;
17032 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17033 }
17034 {
17035 PyThreadState* __tstate = wxPyBeginAllowThreads();
17036 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
17037 wxPyEndAllowThreads(__tstate);
17038 if (PyErr_Occurred()) SWIG_fail;
17039 }
17040 resultobj = SWIG_Py_Void();
17041 {
17042 if (temp2)
17043 delete arg2;
17044 }
17045 return resultobj;
17046fail:
17047 {
17048 if (temp2)
17049 delete arg2;
17050 }
17051 return NULL;
17052}
17053
17054
17055SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17056 PyObject *resultobj = 0;
17057 wxDC *arg1 = (wxDC *) 0 ;
17058 wxString *arg2 = 0 ;
17059 int arg3 ;
17060 int arg4 ;
17061 double arg5 ;
17062 void *argp1 = 0 ;
17063 int res1 = 0 ;
17064 bool temp2 = false ;
17065 int val3 ;
17066 int ecode3 = 0 ;
17067 int val4 ;
17068 int ecode4 = 0 ;
17069 double val5 ;
17070 int ecode5 = 0 ;
17071 PyObject * obj0 = 0 ;
17072 PyObject * obj1 = 0 ;
17073 PyObject * obj2 = 0 ;
17074 PyObject * obj3 = 0 ;
17075 PyObject * obj4 = 0 ;
17076 char * kwnames[] = {
17077 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
17078 };
17079
17080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17081 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17082 if (!SWIG_IsOK(res1)) {
17083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
17084 }
17085 arg1 = reinterpret_cast< wxDC * >(argp1);
17086 {
17087 arg2 = wxString_in_helper(obj1);
17088 if (arg2 == NULL) SWIG_fail;
17089 temp2 = true;
17090 }
17091 ecode3 = SWIG_AsVal_int(obj2, &val3);
17092 if (!SWIG_IsOK(ecode3)) {
17093 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
17094 }
17095 arg3 = static_cast< int >(val3);
17096 ecode4 = SWIG_AsVal_int(obj3, &val4);
17097 if (!SWIG_IsOK(ecode4)) {
17098 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
17099 }
17100 arg4 = static_cast< int >(val4);
17101 ecode5 = SWIG_AsVal_double(obj4, &val5);
17102 if (!SWIG_IsOK(ecode5)) {
17103 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
17104 }
17105 arg5 = static_cast< double >(val5);
17106 {
17107 PyThreadState* __tstate = wxPyBeginAllowThreads();
17108 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
17109 wxPyEndAllowThreads(__tstate);
17110 if (PyErr_Occurred()) SWIG_fail;
17111 }
17112 resultobj = SWIG_Py_Void();
17113 {
17114 if (temp2)
17115 delete arg2;
17116 }
17117 return resultobj;
17118fail:
17119 {
17120 if (temp2)
17121 delete arg2;
17122 }
17123 return NULL;
17124}
17125
17126
17127SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17128 PyObject *resultobj = 0;
17129 wxDC *arg1 = (wxDC *) 0 ;
17130 wxString *arg2 = 0 ;
17131 wxPoint *arg3 = 0 ;
17132 double arg4 ;
17133 void *argp1 = 0 ;
17134 int res1 = 0 ;
17135 bool temp2 = false ;
17136 wxPoint temp3 ;
17137 double val4 ;
17138 int ecode4 = 0 ;
17139 PyObject * obj0 = 0 ;
17140 PyObject * obj1 = 0 ;
17141 PyObject * obj2 = 0 ;
17142 PyObject * obj3 = 0 ;
17143 char * kwnames[] = {
17144 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
17145 };
17146
17147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17149 if (!SWIG_IsOK(res1)) {
17150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17151 }
17152 arg1 = reinterpret_cast< wxDC * >(argp1);
17153 {
17154 arg2 = wxString_in_helper(obj1);
17155 if (arg2 == NULL) SWIG_fail;
17156 temp2 = true;
17157 }
17158 {
17159 arg3 = &temp3;
17160 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17161 }
17162 ecode4 = SWIG_AsVal_double(obj3, &val4);
17163 if (!SWIG_IsOK(ecode4)) {
17164 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
17165 }
17166 arg4 = static_cast< double >(val4);
17167 {
17168 PyThreadState* __tstate = wxPyBeginAllowThreads();
17169 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
17170 wxPyEndAllowThreads(__tstate);
17171 if (PyErr_Occurred()) SWIG_fail;
17172 }
17173 resultobj = SWIG_Py_Void();
17174 {
17175 if (temp2)
17176 delete arg2;
17177 }
17178 return resultobj;
17179fail:
17180 {
17181 if (temp2)
17182 delete arg2;
17183 }
17184 return NULL;
17185}
17186
17187
17188SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17189 PyObject *resultobj = 0;
17190 wxDC *arg1 = (wxDC *) 0 ;
17191 int arg2 ;
17192 int arg3 ;
17193 int arg4 ;
17194 int arg5 ;
17195 wxDC *arg6 = (wxDC *) 0 ;
17196 int arg7 ;
17197 int arg8 ;
17198 int arg9 = (int) wxCOPY ;
17199 bool arg10 = (bool) false ;
17200 int arg11 = (int) -1 ;
17201 int arg12 = (int) -1 ;
17202 bool result;
17203 void *argp1 = 0 ;
17204 int res1 = 0 ;
17205 int val2 ;
17206 int ecode2 = 0 ;
17207 int val3 ;
17208 int ecode3 = 0 ;
17209 int val4 ;
17210 int ecode4 = 0 ;
17211 int val5 ;
17212 int ecode5 = 0 ;
17213 void *argp6 = 0 ;
17214 int res6 = 0 ;
17215 int val7 ;
17216 int ecode7 = 0 ;
17217 int val8 ;
17218 int ecode8 = 0 ;
17219 int val9 ;
17220 int ecode9 = 0 ;
17221 bool val10 ;
17222 int ecode10 = 0 ;
17223 int val11 ;
17224 int ecode11 = 0 ;
17225 int val12 ;
17226 int ecode12 = 0 ;
17227 PyObject * obj0 = 0 ;
17228 PyObject * obj1 = 0 ;
17229 PyObject * obj2 = 0 ;
17230 PyObject * obj3 = 0 ;
17231 PyObject * obj4 = 0 ;
17232 PyObject * obj5 = 0 ;
17233 PyObject * obj6 = 0 ;
17234 PyObject * obj7 = 0 ;
17235 PyObject * obj8 = 0 ;
17236 PyObject * obj9 = 0 ;
17237 PyObject * obj10 = 0 ;
17238 PyObject * obj11 = 0 ;
17239 char * kwnames[] = {
17240 (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
17241 };
17242
17243 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;
17244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17245 if (!SWIG_IsOK(res1)) {
17246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
17247 }
17248 arg1 = reinterpret_cast< wxDC * >(argp1);
17249 ecode2 = SWIG_AsVal_int(obj1, &val2);
17250 if (!SWIG_IsOK(ecode2)) {
17251 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
17252 }
17253 arg2 = static_cast< int >(val2);
17254 ecode3 = SWIG_AsVal_int(obj2, &val3);
17255 if (!SWIG_IsOK(ecode3)) {
17256 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
17257 }
17258 arg3 = static_cast< int >(val3);
17259 ecode4 = SWIG_AsVal_int(obj3, &val4);
17260 if (!SWIG_IsOK(ecode4)) {
17261 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
17262 }
17263 arg4 = static_cast< int >(val4);
17264 ecode5 = SWIG_AsVal_int(obj4, &val5);
17265 if (!SWIG_IsOK(ecode5)) {
17266 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
17267 }
17268 arg5 = static_cast< int >(val5);
17269 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
17270 if (!SWIG_IsOK(res6)) {
17271 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
17272 }
17273 arg6 = reinterpret_cast< wxDC * >(argp6);
17274 ecode7 = SWIG_AsVal_int(obj6, &val7);
17275 if (!SWIG_IsOK(ecode7)) {
17276 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
17277 }
17278 arg7 = static_cast< int >(val7);
17279 ecode8 = SWIG_AsVal_int(obj7, &val8);
17280 if (!SWIG_IsOK(ecode8)) {
17281 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
17282 }
17283 arg8 = static_cast< int >(val8);
17284 if (obj8) {
17285 ecode9 = SWIG_AsVal_int(obj8, &val9);
17286 if (!SWIG_IsOK(ecode9)) {
17287 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
17288 }
17289 arg9 = static_cast< int >(val9);
17290 }
17291 if (obj9) {
17292 ecode10 = SWIG_AsVal_bool(obj9, &val10);
17293 if (!SWIG_IsOK(ecode10)) {
17294 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
17295 }
17296 arg10 = static_cast< bool >(val10);
17297 }
17298 if (obj10) {
17299 ecode11 = SWIG_AsVal_int(obj10, &val11);
17300 if (!SWIG_IsOK(ecode11)) {
17301 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
17302 }
17303 arg11 = static_cast< int >(val11);
17304 }
17305 if (obj11) {
17306 ecode12 = SWIG_AsVal_int(obj11, &val12);
17307 if (!SWIG_IsOK(ecode12)) {
17308 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
17309 }
17310 arg12 = static_cast< int >(val12);
17311 }
17312 {
17313 PyThreadState* __tstate = wxPyBeginAllowThreads();
17314 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
17315 wxPyEndAllowThreads(__tstate);
17316 if (PyErr_Occurred()) SWIG_fail;
17317 }
17318 {
17319 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17320 }
17321 return resultobj;
17322fail:
17323 return NULL;
17324}
17325
17326
17327SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17328 PyObject *resultobj = 0;
17329 wxDC *arg1 = (wxDC *) 0 ;
17330 wxPoint *arg2 = 0 ;
17331 wxSize *arg3 = 0 ;
17332 wxDC *arg4 = (wxDC *) 0 ;
17333 wxPoint *arg5 = 0 ;
17334 int arg6 = (int) wxCOPY ;
17335 bool arg7 = (bool) false ;
17336 wxPoint const &arg8_defvalue = wxDefaultPosition ;
17337 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
17338 bool result;
17339 void *argp1 = 0 ;
17340 int res1 = 0 ;
17341 wxPoint temp2 ;
17342 wxSize temp3 ;
17343 void *argp4 = 0 ;
17344 int res4 = 0 ;
17345 wxPoint temp5 ;
17346 int val6 ;
17347 int ecode6 = 0 ;
17348 bool val7 ;
17349 int ecode7 = 0 ;
17350 wxPoint temp8 ;
17351 PyObject * obj0 = 0 ;
17352 PyObject * obj1 = 0 ;
17353 PyObject * obj2 = 0 ;
17354 PyObject * obj3 = 0 ;
17355 PyObject * obj4 = 0 ;
17356 PyObject * obj5 = 0 ;
17357 PyObject * obj6 = 0 ;
17358 PyObject * obj7 = 0 ;
17359 char * kwnames[] = {
17360 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
17361 };
17362
17363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
17364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17365 if (!SWIG_IsOK(res1)) {
17366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
17367 }
17368 arg1 = reinterpret_cast< wxDC * >(argp1);
17369 {
17370 arg2 = &temp2;
17371 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17372 }
17373 {
17374 arg3 = &temp3;
17375 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
17376 }
17377 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
17378 if (!SWIG_IsOK(res4)) {
17379 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
17380 }
17381 arg4 = reinterpret_cast< wxDC * >(argp4);
17382 {
17383 arg5 = &temp5;
17384 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17385 }
17386 if (obj5) {
17387 ecode6 = SWIG_AsVal_int(obj5, &val6);
17388 if (!SWIG_IsOK(ecode6)) {
17389 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
17390 }
17391 arg6 = static_cast< int >(val6);
17392 }
17393 if (obj6) {
17394 ecode7 = SWIG_AsVal_bool(obj6, &val7);
17395 if (!SWIG_IsOK(ecode7)) {
17396 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
17397 }
17398 arg7 = static_cast< bool >(val7);
17399 }
17400 if (obj7) {
093d3ff1 17401 {
554f62e9
RD
17402 arg8 = &temp8;
17403 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
093d3ff1 17404 }
554f62e9
RD
17405 }
17406 {
17407 PyThreadState* __tstate = wxPyBeginAllowThreads();
17408 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
17409 wxPyEndAllowThreads(__tstate);
17410 if (PyErr_Occurred()) SWIG_fail;
17411 }
17412 {
17413 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17414 }
17415 return resultobj;
17416fail:
17417 return NULL;
17418}
17419
17420
17421SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17422 PyObject *resultobj = 0;
17423 wxDC *arg1 = (wxDC *) 0 ;
17424 int arg2 ;
17425 int arg3 ;
17426 int arg4 ;
17427 int arg5 ;
17428 void *argp1 = 0 ;
17429 int res1 = 0 ;
17430 int val2 ;
17431 int ecode2 = 0 ;
17432 int val3 ;
17433 int ecode3 = 0 ;
17434 int val4 ;
17435 int ecode4 = 0 ;
17436 int val5 ;
17437 int ecode5 = 0 ;
17438 PyObject * obj0 = 0 ;
17439 PyObject * obj1 = 0 ;
17440 PyObject * obj2 = 0 ;
17441 PyObject * obj3 = 0 ;
17442 PyObject * obj4 = 0 ;
17443 char * kwnames[] = {
17444 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
17445 };
17446
17447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17449 if (!SWIG_IsOK(res1)) {
17450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
17451 }
17452 arg1 = reinterpret_cast< wxDC * >(argp1);
17453 ecode2 = SWIG_AsVal_int(obj1, &val2);
17454 if (!SWIG_IsOK(ecode2)) {
17455 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
17456 }
17457 arg2 = static_cast< int >(val2);
17458 ecode3 = SWIG_AsVal_int(obj2, &val3);
17459 if (!SWIG_IsOK(ecode3)) {
17460 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
17461 }
17462 arg3 = static_cast< int >(val3);
17463 ecode4 = SWIG_AsVal_int(obj3, &val4);
17464 if (!SWIG_IsOK(ecode4)) {
17465 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
17466 }
17467 arg4 = static_cast< int >(val4);
17468 ecode5 = SWIG_AsVal_int(obj4, &val5);
17469 if (!SWIG_IsOK(ecode5)) {
17470 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
17471 }
17472 arg5 = static_cast< int >(val5);
17473 {
17474 PyThreadState* __tstate = wxPyBeginAllowThreads();
17475 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
17476 wxPyEndAllowThreads(__tstate);
17477 if (PyErr_Occurred()) SWIG_fail;
17478 }
17479 resultobj = SWIG_Py_Void();
17480 return resultobj;
17481fail:
17482 return NULL;
17483}
17484
17485
17486SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17487 PyObject *resultobj = 0;
17488 wxDC *arg1 = (wxDC *) 0 ;
17489 wxPoint *arg2 = 0 ;
17490 wxSize *arg3 = 0 ;
17491 void *argp1 = 0 ;
17492 int res1 = 0 ;
17493 wxPoint temp2 ;
17494 wxSize temp3 ;
17495 PyObject * obj0 = 0 ;
17496 PyObject * obj1 = 0 ;
17497 PyObject * obj2 = 0 ;
17498 char * kwnames[] = {
17499 (char *) "self",(char *) "pt",(char *) "sz", NULL
17500 };
17501
17502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17504 if (!SWIG_IsOK(res1)) {
17505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
17506 }
17507 arg1 = reinterpret_cast< wxDC * >(argp1);
17508 {
17509 arg2 = &temp2;
17510 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17511 }
17512 {
17513 arg3 = &temp3;
17514 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
17515 }
17516 {
17517 PyThreadState* __tstate = wxPyBeginAllowThreads();
17518 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
17519 wxPyEndAllowThreads(__tstate);
17520 if (PyErr_Occurred()) SWIG_fail;
17521 }
17522 resultobj = SWIG_Py_Void();
17523 return resultobj;
17524fail:
17525 return NULL;
17526}
17527
17528
17529SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17530 PyObject *resultobj = 0;
17531 wxDC *arg1 = (wxDC *) 0 ;
17532 wxRegion *arg2 = 0 ;
17533 void *argp1 = 0 ;
17534 int res1 = 0 ;
17535 void *argp2 = 0 ;
17536 int res2 = 0 ;
17537 PyObject * obj0 = 0 ;
17538 PyObject * obj1 = 0 ;
17539 char * kwnames[] = {
17540 (char *) "self",(char *) "region", NULL
17541 };
17542
17543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
17544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17545 if (!SWIG_IsOK(res1)) {
17546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
17547 }
17548 arg1 = reinterpret_cast< wxDC * >(argp1);
17549 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
17550 if (!SWIG_IsOK(res2)) {
17551 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
17552 }
17553 if (!argp2) {
17554 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
17555 }
17556 arg2 = reinterpret_cast< wxRegion * >(argp2);
17557 {
17558 PyThreadState* __tstate = wxPyBeginAllowThreads();
17559 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
17560 wxPyEndAllowThreads(__tstate);
17561 if (PyErr_Occurred()) SWIG_fail;
17562 }
17563 resultobj = SWIG_Py_Void();
17564 return resultobj;
17565fail:
17566 return NULL;
17567}
17568
17569
17570SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17571 PyObject *resultobj = 0;
17572 wxDC *arg1 = (wxDC *) 0 ;
17573 wxRect *arg2 = 0 ;
17574 void *argp1 = 0 ;
17575 int res1 = 0 ;
17576 wxRect temp2 ;
17577 PyObject * obj0 = 0 ;
17578 PyObject * obj1 = 0 ;
17579 char * kwnames[] = {
17580 (char *) "self",(char *) "rect", NULL
17581 };
17582
17583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
17584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17585 if (!SWIG_IsOK(res1)) {
17586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
17587 }
17588 arg1 = reinterpret_cast< wxDC * >(argp1);
17589 {
17590 arg2 = &temp2;
17591 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17592 }
17593 {
17594 PyThreadState* __tstate = wxPyBeginAllowThreads();
17595 (arg1)->SetClippingRegion((wxRect const &)*arg2);
17596 wxPyEndAllowThreads(__tstate);
17597 if (PyErr_Occurred()) SWIG_fail;
17598 }
17599 resultobj = SWIG_Py_Void();
17600 return resultobj;
17601fail:
17602 return NULL;
17603}
17604
17605
17606SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17607 PyObject *resultobj = 0;
17608 wxDC *arg1 = (wxDC *) 0 ;
17609 int arg2 ;
17610 wxPoint *arg3 = (wxPoint *) 0 ;
17611 int arg4 = (int) 0 ;
17612 int arg5 = (int) 0 ;
17613 void *argp1 = 0 ;
17614 int res1 = 0 ;
17615 int val4 ;
17616 int ecode4 = 0 ;
17617 int val5 ;
17618 int ecode5 = 0 ;
17619 PyObject * obj0 = 0 ;
17620 PyObject * obj1 = 0 ;
17621 PyObject * obj2 = 0 ;
17622 PyObject * obj3 = 0 ;
17623 char * kwnames[] = {
17624 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
17625 };
17626
17627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17629 if (!SWIG_IsOK(res1)) {
17630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
17631 }
17632 arg1 = reinterpret_cast< wxDC * >(argp1);
17633 {
17634 arg3 = wxPoint_LIST_helper(obj1, &arg2);
17635 if (arg3 == NULL) SWIG_fail;
17636 }
17637 if (obj2) {
17638 ecode4 = SWIG_AsVal_int(obj2, &val4);
17639 if (!SWIG_IsOK(ecode4)) {
17640 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
17641 }
17642 arg4 = static_cast< int >(val4);
17643 }
17644 if (obj3) {
17645 ecode5 = SWIG_AsVal_int(obj3, &val5);
17646 if (!SWIG_IsOK(ecode5)) {
17647 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
17648 }
17649 arg5 = static_cast< int >(val5);
17650 }
17651 {
17652 PyThreadState* __tstate = wxPyBeginAllowThreads();
17653 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
17654 wxPyEndAllowThreads(__tstate);
17655 if (PyErr_Occurred()) SWIG_fail;
17656 }
17657 resultobj = SWIG_Py_Void();
17658 {
17659 if (arg3) delete [] arg3;
17660 }
17661 return resultobj;
17662fail:
17663 {
17664 if (arg3) delete [] arg3;
17665 }
17666 return NULL;
17667}
17668
17669
17670SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17671 PyObject *resultobj = 0;
17672 wxDC *arg1 = (wxDC *) 0 ;
17673 int arg2 ;
17674 wxPoint *arg3 = (wxPoint *) 0 ;
17675 int arg4 = (int) 0 ;
17676 int arg5 = (int) 0 ;
17677 int arg6 = (int) wxODDEVEN_RULE ;
17678 void *argp1 = 0 ;
17679 int res1 = 0 ;
17680 int val4 ;
17681 int ecode4 = 0 ;
17682 int val5 ;
17683 int ecode5 = 0 ;
17684 int val6 ;
17685 int ecode6 = 0 ;
17686 PyObject * obj0 = 0 ;
17687 PyObject * obj1 = 0 ;
17688 PyObject * obj2 = 0 ;
17689 PyObject * obj3 = 0 ;
17690 PyObject * obj4 = 0 ;
17691 char * kwnames[] = {
17692 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
17693 };
17694
17695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17697 if (!SWIG_IsOK(res1)) {
17698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
17699 }
17700 arg1 = reinterpret_cast< wxDC * >(argp1);
17701 {
17702 arg3 = wxPoint_LIST_helper(obj1, &arg2);
17703 if (arg3 == NULL) SWIG_fail;
17704 }
17705 if (obj2) {
17706 ecode4 = SWIG_AsVal_int(obj2, &val4);
17707 if (!SWIG_IsOK(ecode4)) {
17708 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
17709 }
17710 arg4 = static_cast< int >(val4);
17711 }
17712 if (obj3) {
17713 ecode5 = SWIG_AsVal_int(obj3, &val5);
17714 if (!SWIG_IsOK(ecode5)) {
17715 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
17716 }
17717 arg5 = static_cast< int >(val5);
17718 }
17719 if (obj4) {
17720 ecode6 = SWIG_AsVal_int(obj4, &val6);
17721 if (!SWIG_IsOK(ecode6)) {
17722 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
17723 }
17724 arg6 = static_cast< int >(val6);
17725 }
17726 {
17727 PyThreadState* __tstate = wxPyBeginAllowThreads();
17728 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
17729 wxPyEndAllowThreads(__tstate);
17730 if (PyErr_Occurred()) SWIG_fail;
17731 }
17732 resultobj = SWIG_Py_Void();
17733 {
17734 if (arg3) delete [] arg3;
17735 }
17736 return resultobj;
17737fail:
17738 {
17739 if (arg3) delete [] arg3;
17740 }
17741 return NULL;
17742}
17743
17744
17745SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17746 PyObject *resultobj = 0;
17747 wxDC *arg1 = (wxDC *) 0 ;
17748 wxString *arg2 = 0 ;
17749 wxRect *arg3 = 0 ;
17750 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
17751 int arg5 = (int) -1 ;
17752 void *argp1 = 0 ;
17753 int res1 = 0 ;
17754 bool temp2 = false ;
17755 wxRect temp3 ;
17756 int val4 ;
17757 int ecode4 = 0 ;
17758 int val5 ;
17759 int ecode5 = 0 ;
17760 PyObject * obj0 = 0 ;
17761 PyObject * obj1 = 0 ;
17762 PyObject * obj2 = 0 ;
17763 PyObject * obj3 = 0 ;
17764 PyObject * obj4 = 0 ;
17765 char * kwnames[] = {
17766 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
17767 };
17768
17769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17771 if (!SWIG_IsOK(res1)) {
17772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
17773 }
17774 arg1 = reinterpret_cast< wxDC * >(argp1);
17775 {
17776 arg2 = wxString_in_helper(obj1);
17777 if (arg2 == NULL) SWIG_fail;
17778 temp2 = true;
17779 }
17780 {
17781 arg3 = &temp3;
17782 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
17783 }
17784 if (obj3) {
17785 ecode4 = SWIG_AsVal_int(obj3, &val4);
17786 if (!SWIG_IsOK(ecode4)) {
17787 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
17788 }
17789 arg4 = static_cast< int >(val4);
17790 }
17791 if (obj4) {
17792 ecode5 = SWIG_AsVal_int(obj4, &val5);
17793 if (!SWIG_IsOK(ecode5)) {
17794 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
17795 }
17796 arg5 = static_cast< int >(val5);
17797 }
17798 {
17799 PyThreadState* __tstate = wxPyBeginAllowThreads();
17800 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
17801 wxPyEndAllowThreads(__tstate);
17802 if (PyErr_Occurred()) SWIG_fail;
17803 }
17804 resultobj = SWIG_Py_Void();
17805 {
17806 if (temp2)
17807 delete arg2;
17808 }
17809 return resultobj;
17810fail:
17811 {
17812 if (temp2)
17813 delete arg2;
17814 }
17815 return NULL;
17816}
17817
17818
17819SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17820 PyObject *resultobj = 0;
17821 wxDC *arg1 = (wxDC *) 0 ;
17822 wxString *arg2 = 0 ;
17823 wxBitmap *arg3 = 0 ;
17824 wxRect *arg4 = 0 ;
17825 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
17826 int arg6 = (int) -1 ;
17827 wxRect result;
17828 void *argp1 = 0 ;
17829 int res1 = 0 ;
17830 bool temp2 = false ;
17831 void *argp3 = 0 ;
17832 int res3 = 0 ;
17833 wxRect temp4 ;
17834 int val5 ;
17835 int ecode5 = 0 ;
17836 int val6 ;
17837 int ecode6 = 0 ;
17838 PyObject * obj0 = 0 ;
17839 PyObject * obj1 = 0 ;
17840 PyObject * obj2 = 0 ;
17841 PyObject * obj3 = 0 ;
17842 PyObject * obj4 = 0 ;
17843 PyObject * obj5 = 0 ;
17844 char * kwnames[] = {
17845 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
17846 };
17847
17848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
17849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17850 if (!SWIG_IsOK(res1)) {
17851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
17852 }
17853 arg1 = reinterpret_cast< wxDC * >(argp1);
17854 {
17855 arg2 = wxString_in_helper(obj1);
17856 if (arg2 == NULL) SWIG_fail;
17857 temp2 = true;
17858 }
17859 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
17860 if (!SWIG_IsOK(res3)) {
17861 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
17862 }
17863 if (!argp3) {
17864 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
17865 }
17866 arg3 = reinterpret_cast< wxBitmap * >(argp3);
17867 {
17868 arg4 = &temp4;
17869 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
17870 }
17871 if (obj4) {
17872 ecode5 = SWIG_AsVal_int(obj4, &val5);
17873 if (!SWIG_IsOK(ecode5)) {
17874 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
17875 }
17876 arg5 = static_cast< int >(val5);
17877 }
17878 if (obj5) {
17879 ecode6 = SWIG_AsVal_int(obj5, &val6);
17880 if (!SWIG_IsOK(ecode6)) {
17881 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
17882 }
17883 arg6 = static_cast< int >(val6);
17884 }
17885 {
17886 PyThreadState* __tstate = wxPyBeginAllowThreads();
17887 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
17888 wxPyEndAllowThreads(__tstate);
17889 if (PyErr_Occurred()) SWIG_fail;
17890 }
17891 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
17892 {
17893 if (temp2)
17894 delete arg2;
17895 }
17896 return resultobj;
17897fail:
17898 {
17899 if (temp2)
17900 delete arg2;
17901 }
17902 return NULL;
17903}
17904
17905
17906SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17907 PyObject *resultobj = 0;
17908 wxDC *arg1 = (wxDC *) 0 ;
17909 int arg2 ;
17910 wxPoint *arg3 = (wxPoint *) 0 ;
17911 void *argp1 = 0 ;
17912 int res1 = 0 ;
17913 PyObject * obj0 = 0 ;
17914 PyObject * obj1 = 0 ;
17915 char * kwnames[] = {
17916 (char *) "self",(char *) "points", NULL
17917 };
17918
17919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
17920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17921 if (!SWIG_IsOK(res1)) {
17922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
17923 }
17924 arg1 = reinterpret_cast< wxDC * >(argp1);
17925 {
17926 arg3 = wxPoint_LIST_helper(obj1, &arg2);
17927 if (arg3 == NULL) SWIG_fail;
17928 }
17929 {
17930 PyThreadState* __tstate = wxPyBeginAllowThreads();
17931 (arg1)->DrawSpline(arg2,arg3);
17932 wxPyEndAllowThreads(__tstate);
17933 if (PyErr_Occurred()) SWIG_fail;
17934 }
17935 resultobj = SWIG_Py_Void();
17936 {
17937 if (arg3) delete [] arg3;
17938 }
17939 return resultobj;
17940fail:
17941 {
17942 if (arg3) delete [] arg3;
17943 }
17944 return NULL;
17945}
17946
17947
17948SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17949 PyObject *resultobj = 0;
17950 wxDC *arg1 = (wxDC *) 0 ;
17951 void *argp1 = 0 ;
17952 int res1 = 0 ;
17953 PyObject *swig_obj[1] ;
17954
17955 if (!args) SWIG_fail;
17956 swig_obj[0] = args;
17957 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17958 if (!SWIG_IsOK(res1)) {
17959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
17960 }
17961 arg1 = reinterpret_cast< wxDC * >(argp1);
17962 {
17963 PyThreadState* __tstate = wxPyBeginAllowThreads();
17964 (arg1)->Clear();
17965 wxPyEndAllowThreads(__tstate);
17966 if (PyErr_Occurred()) SWIG_fail;
17967 }
17968 resultobj = SWIG_Py_Void();
17969 return resultobj;
17970fail:
17971 return NULL;
17972}
17973
17974
17975SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17976 PyObject *resultobj = 0;
17977 wxDC *arg1 = (wxDC *) 0 ;
17978 wxString *arg2 = 0 ;
17979 bool result;
17980 void *argp1 = 0 ;
17981 int res1 = 0 ;
17982 bool temp2 = false ;
17983 PyObject * obj0 = 0 ;
17984 PyObject * obj1 = 0 ;
17985 char * kwnames[] = {
17986 (char *) "self",(char *) "message", NULL
17987 };
17988
17989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
17990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17991 if (!SWIG_IsOK(res1)) {
17992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
17993 }
17994 arg1 = reinterpret_cast< wxDC * >(argp1);
17995 {
17996 arg2 = wxString_in_helper(obj1);
17997 if (arg2 == NULL) SWIG_fail;
17998 temp2 = true;
17999 }
18000 {
18001 PyThreadState* __tstate = wxPyBeginAllowThreads();
18002 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
18003 wxPyEndAllowThreads(__tstate);
18004 if (PyErr_Occurred()) SWIG_fail;
18005 }
18006 {
18007 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18008 }
18009 {
18010 if (temp2)
18011 delete arg2;
18012 }
18013 return resultobj;
18014fail:
18015 {
18016 if (temp2)
18017 delete arg2;
18018 }
18019 return NULL;
18020}
18021
18022
18023SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18024 PyObject *resultobj = 0;
18025 wxDC *arg1 = (wxDC *) 0 ;
18026 void *argp1 = 0 ;
18027 int res1 = 0 ;
18028 PyObject *swig_obj[1] ;
18029
18030 if (!args) SWIG_fail;
18031 swig_obj[0] = args;
18032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18033 if (!SWIG_IsOK(res1)) {
18034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
18035 }
18036 arg1 = reinterpret_cast< wxDC * >(argp1);
18037 {
18038 PyThreadState* __tstate = wxPyBeginAllowThreads();
18039 (arg1)->EndDoc();
18040 wxPyEndAllowThreads(__tstate);
18041 if (PyErr_Occurred()) SWIG_fail;
18042 }
18043 resultobj = SWIG_Py_Void();
18044 return resultobj;
18045fail:
18046 return NULL;
18047}
18048
18049
18050SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18051 PyObject *resultobj = 0;
18052 wxDC *arg1 = (wxDC *) 0 ;
18053 void *argp1 = 0 ;
18054 int res1 = 0 ;
18055 PyObject *swig_obj[1] ;
18056
18057 if (!args) SWIG_fail;
18058 swig_obj[0] = args;
18059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18060 if (!SWIG_IsOK(res1)) {
18061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
18062 }
18063 arg1 = reinterpret_cast< wxDC * >(argp1);
18064 {
18065 PyThreadState* __tstate = wxPyBeginAllowThreads();
18066 (arg1)->StartPage();
18067 wxPyEndAllowThreads(__tstate);
18068 if (PyErr_Occurred()) SWIG_fail;
18069 }
18070 resultobj = SWIG_Py_Void();
18071 return resultobj;
18072fail:
18073 return NULL;
18074}
18075
18076
18077SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18078 PyObject *resultobj = 0;
18079 wxDC *arg1 = (wxDC *) 0 ;
18080 void *argp1 = 0 ;
18081 int res1 = 0 ;
18082 PyObject *swig_obj[1] ;
18083
18084 if (!args) SWIG_fail;
18085 swig_obj[0] = args;
18086 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18087 if (!SWIG_IsOK(res1)) {
18088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
18089 }
18090 arg1 = reinterpret_cast< wxDC * >(argp1);
18091 {
18092 PyThreadState* __tstate = wxPyBeginAllowThreads();
18093 (arg1)->EndPage();
18094 wxPyEndAllowThreads(__tstate);
18095 if (PyErr_Occurred()) SWIG_fail;
18096 }
18097 resultobj = SWIG_Py_Void();
18098 return resultobj;
18099fail:
18100 return NULL;
18101}
18102
18103
18104SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18105 PyObject *resultobj = 0;
18106 wxDC *arg1 = (wxDC *) 0 ;
18107 wxFont *arg2 = 0 ;
18108 void *argp1 = 0 ;
18109 int res1 = 0 ;
18110 void *argp2 = 0 ;
18111 int res2 = 0 ;
18112 PyObject * obj0 = 0 ;
18113 PyObject * obj1 = 0 ;
18114 char * kwnames[] = {
18115 (char *) "self",(char *) "font", NULL
18116 };
18117
18118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
18119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18120 if (!SWIG_IsOK(res1)) {
18121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
18122 }
18123 arg1 = reinterpret_cast< wxDC * >(argp1);
18124 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
18125 if (!SWIG_IsOK(res2)) {
18126 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
18127 }
18128 if (!argp2) {
18129 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
18130 }
18131 arg2 = reinterpret_cast< wxFont * >(argp2);
18132 {
18133 PyThreadState* __tstate = wxPyBeginAllowThreads();
18134 (arg1)->SetFont((wxFont const &)*arg2);
18135 wxPyEndAllowThreads(__tstate);
18136 if (PyErr_Occurred()) SWIG_fail;
18137 }
18138 resultobj = SWIG_Py_Void();
18139 return resultobj;
18140fail:
18141 return NULL;
18142}
18143
18144
18145SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18146 PyObject *resultobj = 0;
18147 wxDC *arg1 = (wxDC *) 0 ;
18148 wxPen *arg2 = 0 ;
18149 void *argp1 = 0 ;
18150 int res1 = 0 ;
18151 void *argp2 = 0 ;
18152 int res2 = 0 ;
18153 PyObject * obj0 = 0 ;
18154 PyObject * obj1 = 0 ;
18155 char * kwnames[] = {
18156 (char *) "self",(char *) "pen", NULL
18157 };
18158
18159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
18160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18161 if (!SWIG_IsOK(res1)) {
18162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
18163 }
18164 arg1 = reinterpret_cast< wxDC * >(argp1);
18165 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
18166 if (!SWIG_IsOK(res2)) {
18167 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
18168 }
18169 if (!argp2) {
18170 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
18171 }
18172 arg2 = reinterpret_cast< wxPen * >(argp2);
18173 {
18174 PyThreadState* __tstate = wxPyBeginAllowThreads();
18175 (arg1)->SetPen((wxPen const &)*arg2);
18176 wxPyEndAllowThreads(__tstate);
18177 if (PyErr_Occurred()) SWIG_fail;
18178 }
18179 resultobj = SWIG_Py_Void();
18180 return resultobj;
18181fail:
18182 return NULL;
18183}
18184
18185
18186SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18187 PyObject *resultobj = 0;
18188 wxDC *arg1 = (wxDC *) 0 ;
18189 wxBrush *arg2 = 0 ;
18190 void *argp1 = 0 ;
18191 int res1 = 0 ;
18192 void *argp2 = 0 ;
18193 int res2 = 0 ;
18194 PyObject * obj0 = 0 ;
18195 PyObject * obj1 = 0 ;
18196 char * kwnames[] = {
18197 (char *) "self",(char *) "brush", NULL
18198 };
18199
18200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
18201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18202 if (!SWIG_IsOK(res1)) {
18203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
18204 }
18205 arg1 = reinterpret_cast< wxDC * >(argp1);
18206 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
18207 if (!SWIG_IsOK(res2)) {
18208 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
18209 }
18210 if (!argp2) {
18211 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
18212 }
18213 arg2 = reinterpret_cast< wxBrush * >(argp2);
18214 {
18215 PyThreadState* __tstate = wxPyBeginAllowThreads();
18216 (arg1)->SetBrush((wxBrush const &)*arg2);
18217 wxPyEndAllowThreads(__tstate);
18218 if (PyErr_Occurred()) SWIG_fail;
18219 }
18220 resultobj = SWIG_Py_Void();
18221 return resultobj;
18222fail:
18223 return NULL;
18224}
18225
18226
18227SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18228 PyObject *resultobj = 0;
18229 wxDC *arg1 = (wxDC *) 0 ;
18230 wxBrush *arg2 = 0 ;
18231 void *argp1 = 0 ;
18232 int res1 = 0 ;
18233 void *argp2 = 0 ;
18234 int res2 = 0 ;
18235 PyObject * obj0 = 0 ;
18236 PyObject * obj1 = 0 ;
18237 char * kwnames[] = {
18238 (char *) "self",(char *) "brush", NULL
18239 };
18240
18241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
18242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18243 if (!SWIG_IsOK(res1)) {
18244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
18245 }
18246 arg1 = reinterpret_cast< wxDC * >(argp1);
18247 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
18248 if (!SWIG_IsOK(res2)) {
18249 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
18250 }
18251 if (!argp2) {
18252 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
18253 }
18254 arg2 = reinterpret_cast< wxBrush * >(argp2);
18255 {
18256 PyThreadState* __tstate = wxPyBeginAllowThreads();
18257 (arg1)->SetBackground((wxBrush const &)*arg2);
18258 wxPyEndAllowThreads(__tstate);
18259 if (PyErr_Occurred()) SWIG_fail;
18260 }
18261 resultobj = SWIG_Py_Void();
18262 return resultobj;
18263fail:
18264 return NULL;
18265}
18266
18267
18268SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18269 PyObject *resultobj = 0;
18270 wxDC *arg1 = (wxDC *) 0 ;
18271 int arg2 ;
18272 void *argp1 = 0 ;
18273 int res1 = 0 ;
18274 int val2 ;
18275 int ecode2 = 0 ;
18276 PyObject * obj0 = 0 ;
18277 PyObject * obj1 = 0 ;
18278 char * kwnames[] = {
18279 (char *) "self",(char *) "mode", NULL
18280 };
18281
18282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
18283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18284 if (!SWIG_IsOK(res1)) {
18285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
18286 }
18287 arg1 = reinterpret_cast< wxDC * >(argp1);
18288 ecode2 = SWIG_AsVal_int(obj1, &val2);
18289 if (!SWIG_IsOK(ecode2)) {
18290 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
18291 }
18292 arg2 = static_cast< int >(val2);
18293 {
18294 PyThreadState* __tstate = wxPyBeginAllowThreads();
18295 (arg1)->SetBackgroundMode(arg2);
18296 wxPyEndAllowThreads(__tstate);
18297 if (PyErr_Occurred()) SWIG_fail;
18298 }
18299 resultobj = SWIG_Py_Void();
18300 return resultobj;
18301fail:
18302 return NULL;
18303}
18304
18305
18306SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18307 PyObject *resultobj = 0;
18308 wxDC *arg1 = (wxDC *) 0 ;
18309 wxPalette *arg2 = 0 ;
18310 void *argp1 = 0 ;
18311 int res1 = 0 ;
18312 void *argp2 = 0 ;
18313 int res2 = 0 ;
18314 PyObject * obj0 = 0 ;
18315 PyObject * obj1 = 0 ;
18316 char * kwnames[] = {
18317 (char *) "self",(char *) "palette", NULL
18318 };
18319
18320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
18321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18322 if (!SWIG_IsOK(res1)) {
18323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
18324 }
18325 arg1 = reinterpret_cast< wxDC * >(argp1);
18326 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
18327 if (!SWIG_IsOK(res2)) {
18328 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
18329 }
18330 if (!argp2) {
18331 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
18332 }
18333 arg2 = reinterpret_cast< wxPalette * >(argp2);
18334 {
18335 PyThreadState* __tstate = wxPyBeginAllowThreads();
18336 (arg1)->SetPalette((wxPalette const &)*arg2);
18337 wxPyEndAllowThreads(__tstate);
18338 if (PyErr_Occurred()) SWIG_fail;
18339 }
18340 resultobj = SWIG_Py_Void();
18341 return resultobj;
18342fail:
18343 return NULL;
18344}
18345
18346
18347SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18348 PyObject *resultobj = 0;
18349 wxDC *arg1 = (wxDC *) 0 ;
18350 void *argp1 = 0 ;
18351 int res1 = 0 ;
18352 PyObject *swig_obj[1] ;
18353
18354 if (!args) SWIG_fail;
18355 swig_obj[0] = args;
18356 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18357 if (!SWIG_IsOK(res1)) {
18358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
18359 }
18360 arg1 = reinterpret_cast< wxDC * >(argp1);
18361 {
18362 PyThreadState* __tstate = wxPyBeginAllowThreads();
18363 (arg1)->DestroyClippingRegion();
18364 wxPyEndAllowThreads(__tstate);
18365 if (PyErr_Occurred()) SWIG_fail;
18366 }
18367 resultobj = SWIG_Py_Void();
18368 return resultobj;
18369fail:
18370 return NULL;
18371}
18372
18373
18374SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18375 PyObject *resultobj = 0;
18376 wxDC *arg1 = (wxDC *) 0 ;
18377 int *arg2 = (int *) 0 ;
18378 int *arg3 = (int *) 0 ;
18379 int *arg4 = (int *) 0 ;
18380 int *arg5 = (int *) 0 ;
18381 void *argp1 = 0 ;
18382 int res1 = 0 ;
18383 int temp2 ;
18384 int res2 = SWIG_TMPOBJ ;
18385 int temp3 ;
18386 int res3 = SWIG_TMPOBJ ;
18387 int temp4 ;
18388 int res4 = SWIG_TMPOBJ ;
18389 int temp5 ;
18390 int res5 = SWIG_TMPOBJ ;
18391 PyObject *swig_obj[1] ;
18392
18393 arg2 = &temp2;
18394 arg3 = &temp3;
18395 arg4 = &temp4;
18396 arg5 = &temp5;
18397 if (!args) SWIG_fail;
18398 swig_obj[0] = args;
18399 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18400 if (!SWIG_IsOK(res1)) {
18401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
18402 }
18403 arg1 = reinterpret_cast< wxDC * >(argp1);
18404 {
18405 PyThreadState* __tstate = wxPyBeginAllowThreads();
18406 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
18407 wxPyEndAllowThreads(__tstate);
18408 if (PyErr_Occurred()) SWIG_fail;
18409 }
18410 resultobj = SWIG_Py_Void();
18411 if (SWIG_IsTmpObj(res2)) {
18412 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
18413 } else {
18414 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18415 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
18416 }
18417 if (SWIG_IsTmpObj(res3)) {
18418 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18419 } else {
18420 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18421 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18422 }
18423 if (SWIG_IsTmpObj(res4)) {
18424 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
18425 } else {
18426 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18427 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
18428 }
18429 if (SWIG_IsTmpObj(res5)) {
18430 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
18431 } else {
18432 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18433 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
18434 }
18435 return resultobj;
18436fail:
18437 return NULL;
18438}
18439
18440
18441SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18442 PyObject *resultobj = 0;
18443 wxDC *arg1 = (wxDC *) 0 ;
18444 wxRect result;
18445 void *argp1 = 0 ;
18446 int res1 = 0 ;
18447 PyObject *swig_obj[1] ;
18448
18449 if (!args) SWIG_fail;
18450 swig_obj[0] = args;
18451 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18452 if (!SWIG_IsOK(res1)) {
18453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
18454 }
18455 arg1 = reinterpret_cast< wxDC * >(argp1);
18456 {
18457 PyThreadState* __tstate = wxPyBeginAllowThreads();
18458 result = wxDC_GetClippingRect(arg1);
18459 wxPyEndAllowThreads(__tstate);
18460 if (PyErr_Occurred()) SWIG_fail;
18461 }
18462 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
18463 return resultobj;
18464fail:
18465 return NULL;
18466}
18467
18468
18469SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18470 PyObject *resultobj = 0;
18471 wxDC *arg1 = (wxDC *) 0 ;
18472 int result;
18473 void *argp1 = 0 ;
18474 int res1 = 0 ;
18475 PyObject *swig_obj[1] ;
18476
18477 if (!args) SWIG_fail;
18478 swig_obj[0] = args;
18479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18480 if (!SWIG_IsOK(res1)) {
18481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
18482 }
18483 arg1 = reinterpret_cast< wxDC * >(argp1);
18484 {
18485 PyThreadState* __tstate = wxPyBeginAllowThreads();
18486 result = (int)((wxDC const *)arg1)->GetCharHeight();
18487 wxPyEndAllowThreads(__tstate);
18488 if (PyErr_Occurred()) SWIG_fail;
18489 }
18490 resultobj = SWIG_From_int(static_cast< int >(result));
18491 return resultobj;
18492fail:
18493 return NULL;
18494}
18495
18496
18497SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18498 PyObject *resultobj = 0;
18499 wxDC *arg1 = (wxDC *) 0 ;
18500 int result;
18501 void *argp1 = 0 ;
18502 int res1 = 0 ;
18503 PyObject *swig_obj[1] ;
18504
18505 if (!args) SWIG_fail;
18506 swig_obj[0] = args;
18507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18508 if (!SWIG_IsOK(res1)) {
18509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
18510 }
18511 arg1 = reinterpret_cast< wxDC * >(argp1);
18512 {
18513 PyThreadState* __tstate = wxPyBeginAllowThreads();
18514 result = (int)((wxDC const *)arg1)->GetCharWidth();
18515 wxPyEndAllowThreads(__tstate);
18516 if (PyErr_Occurred()) SWIG_fail;
18517 }
18518 resultobj = SWIG_From_int(static_cast< int >(result));
18519 return resultobj;
18520fail:
18521 return NULL;
18522}
18523
18524
18525SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18526 PyObject *resultobj = 0;
18527 wxDC *arg1 = (wxDC *) 0 ;
18528 wxString *arg2 = 0 ;
18529 int *arg3 = (int *) 0 ;
18530 int *arg4 = (int *) 0 ;
18531 void *argp1 = 0 ;
18532 int res1 = 0 ;
18533 bool temp2 = false ;
18534 int temp3 ;
18535 int res3 = SWIG_TMPOBJ ;
18536 int temp4 ;
18537 int res4 = SWIG_TMPOBJ ;
18538 PyObject * obj0 = 0 ;
18539 PyObject * obj1 = 0 ;
18540 char * kwnames[] = {
18541 (char *) "self",(char *) "string", NULL
18542 };
18543
18544 arg3 = &temp3;
18545 arg4 = &temp4;
18546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
18547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18548 if (!SWIG_IsOK(res1)) {
18549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
18550 }
18551 arg1 = reinterpret_cast< wxDC * >(argp1);
18552 {
18553 arg2 = wxString_in_helper(obj1);
18554 if (arg2 == NULL) SWIG_fail;
18555 temp2 = true;
18556 }
18557 {
18558 PyThreadState* __tstate = wxPyBeginAllowThreads();
18559 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
18560 wxPyEndAllowThreads(__tstate);
18561 if (PyErr_Occurred()) SWIG_fail;
18562 }
18563 resultobj = SWIG_Py_Void();
18564 if (SWIG_IsTmpObj(res3)) {
18565 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18566 } else {
18567 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18568 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18569 }
18570 if (SWIG_IsTmpObj(res4)) {
18571 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
18572 } else {
18573 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18574 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
18575 }
18576 {
18577 if (temp2)
18578 delete arg2;
18579 }
18580 return resultobj;
18581fail:
18582 {
18583 if (temp2)
18584 delete arg2;
18585 }
18586 return NULL;
18587}
18588
18589
18590SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18591 PyObject *resultobj = 0;
18592 wxDC *arg1 = (wxDC *) 0 ;
18593 wxString *arg2 = 0 ;
18594 int *arg3 = (int *) 0 ;
18595 int *arg4 = (int *) 0 ;
18596 int *arg5 = (int *) 0 ;
18597 int *arg6 = (int *) 0 ;
18598 wxFont *arg7 = (wxFont *) NULL ;
18599 void *argp1 = 0 ;
18600 int res1 = 0 ;
18601 bool temp2 = false ;
18602 int temp3 ;
18603 int res3 = SWIG_TMPOBJ ;
18604 int temp4 ;
18605 int res4 = SWIG_TMPOBJ ;
18606 int temp5 ;
18607 int res5 = SWIG_TMPOBJ ;
18608 int temp6 ;
18609 int res6 = SWIG_TMPOBJ ;
18610 void *argp7 = 0 ;
18611 int res7 = 0 ;
18612 PyObject * obj0 = 0 ;
18613 PyObject * obj1 = 0 ;
18614 PyObject * obj2 = 0 ;
18615 char * kwnames[] = {
18616 (char *) "self",(char *) "string",(char *) "font", NULL
18617 };
18618
18619 arg3 = &temp3;
18620 arg4 = &temp4;
18621 arg5 = &temp5;
18622 arg6 = &temp6;
18623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18624 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18625 if (!SWIG_IsOK(res1)) {
18626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
18627 }
18628 arg1 = reinterpret_cast< wxDC * >(argp1);
18629 {
18630 arg2 = wxString_in_helper(obj1);
18631 if (arg2 == NULL) SWIG_fail;
18632 temp2 = true;
18633 }
18634 if (obj2) {
18635 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
18636 if (!SWIG_IsOK(res7)) {
18637 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
093d3ff1 18638 }
554f62e9
RD
18639 arg7 = reinterpret_cast< wxFont * >(argp7);
18640 }
18641 {
18642 PyThreadState* __tstate = wxPyBeginAllowThreads();
18643 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
18644 wxPyEndAllowThreads(__tstate);
18645 if (PyErr_Occurred()) SWIG_fail;
18646 }
18647 resultobj = SWIG_Py_Void();
18648 if (SWIG_IsTmpObj(res3)) {
18649 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18650 } else {
18651 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18652 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18653 }
18654 if (SWIG_IsTmpObj(res4)) {
18655 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
18656 } else {
18657 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18658 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
18659 }
18660 if (SWIG_IsTmpObj(res5)) {
18661 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
18662 } else {
18663 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18664 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
18665 }
18666 if (SWIG_IsTmpObj(res6)) {
18667 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
18668 } else {
18669 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18670 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
18671 }
18672 {
18673 if (temp2)
18674 delete arg2;
18675 }
18676 return resultobj;
18677fail:
18678 {
18679 if (temp2)
18680 delete arg2;
18681 }
18682 return NULL;
18683}
18684
18685
18686SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18687 PyObject *resultobj = 0;
18688 wxDC *arg1 = (wxDC *) 0 ;
18689 wxString *arg2 = 0 ;
18690 int *arg3 = (int *) 0 ;
18691 int *arg4 = (int *) 0 ;
18692 int *arg5 = (int *) 0 ;
18693 wxFont *arg6 = (wxFont *) NULL ;
18694 void *argp1 = 0 ;
18695 int res1 = 0 ;
18696 bool temp2 = false ;
18697 int temp3 ;
18698 int res3 = SWIG_TMPOBJ ;
18699 int temp4 ;
18700 int res4 = SWIG_TMPOBJ ;
18701 int temp5 ;
18702 int res5 = SWIG_TMPOBJ ;
18703 void *argp6 = 0 ;
18704 int res6 = 0 ;
18705 PyObject * obj0 = 0 ;
18706 PyObject * obj1 = 0 ;
18707 PyObject * obj2 = 0 ;
18708 char * kwnames[] = {
18709 (char *) "self",(char *) "text",(char *) "font", NULL
18710 };
18711
18712 arg3 = &temp3;
18713 arg4 = &temp4;
18714 arg5 = &temp5;
18715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18717 if (!SWIG_IsOK(res1)) {
18718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
18719 }
18720 arg1 = reinterpret_cast< wxDC * >(argp1);
18721 {
18722 arg2 = wxString_in_helper(obj1);
18723 if (arg2 == NULL) SWIG_fail;
18724 temp2 = true;
18725 }
18726 if (obj2) {
18727 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
18728 if (!SWIG_IsOK(res6)) {
18729 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
093d3ff1 18730 }
554f62e9
RD
18731 arg6 = reinterpret_cast< wxFont * >(argp6);
18732 }
18733 {
18734 PyThreadState* __tstate = wxPyBeginAllowThreads();
18735 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
18736 wxPyEndAllowThreads(__tstate);
18737 if (PyErr_Occurred()) SWIG_fail;
18738 }
18739 resultobj = SWIG_Py_Void();
18740 if (SWIG_IsTmpObj(res3)) {
18741 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18742 } else {
18743 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18744 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18745 }
18746 if (SWIG_IsTmpObj(res4)) {
18747 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
18748 } else {
18749 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18750 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
18751 }
18752 if (SWIG_IsTmpObj(res5)) {
18753 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
18754 } else {
18755 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18756 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
18757 }
18758 {
18759 if (temp2)
18760 delete arg2;
18761 }
18762 return resultobj;
18763fail:
18764 {
18765 if (temp2)
18766 delete arg2;
18767 }
18768 return NULL;
18769}
18770
18771
18772SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18773 PyObject *resultobj = 0;
18774 wxDC *arg1 = (wxDC *) 0 ;
18775 wxString *arg2 = 0 ;
18776 wxArrayInt result;
18777 void *argp1 = 0 ;
18778 int res1 = 0 ;
18779 bool temp2 = false ;
18780 PyObject * obj0 = 0 ;
18781 PyObject * obj1 = 0 ;
18782 char * kwnames[] = {
18783 (char *) "self",(char *) "text", NULL
18784 };
18785
18786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
18787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18788 if (!SWIG_IsOK(res1)) {
18789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
18790 }
18791 arg1 = reinterpret_cast< wxDC * >(argp1);
18792 {
18793 arg2 = wxString_in_helper(obj1);
18794 if (arg2 == NULL) SWIG_fail;
18795 temp2 = true;
18796 }
18797 {
18798 PyThreadState* __tstate = wxPyBeginAllowThreads();
18799 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
18800 wxPyEndAllowThreads(__tstate);
18801 if (PyErr_Occurred()) SWIG_fail;
18802 }
18803 {
18804 resultobj = PyList_New(0);
18805 size_t idx;
18806 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
18807 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
18808 PyList_Append(resultobj, val);
18809 Py_DECREF(val);
093d3ff1 18810 }
554f62e9
RD
18811 }
18812 {
18813 if (temp2)
18814 delete arg2;
18815 }
18816 return resultobj;
18817fail:
18818 {
18819 if (temp2)
18820 delete arg2;
18821 }
18822 return NULL;
18823}
18824
18825
18826SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18827 PyObject *resultobj = 0;
18828 wxDC *arg1 = (wxDC *) 0 ;
18829 wxSize result;
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_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
18839 }
18840 arg1 = reinterpret_cast< wxDC * >(argp1);
18841 {
18842 PyThreadState* __tstate = wxPyBeginAllowThreads();
18843 result = (arg1)->GetSize();
18844 wxPyEndAllowThreads(__tstate);
18845 if (PyErr_Occurred()) SWIG_fail;
18846 }
18847 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
18848 return resultobj;
18849fail:
18850 return NULL;
18851}
18852
18853
18854SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18855 PyObject *resultobj = 0;
18856 wxDC *arg1 = (wxDC *) 0 ;
18857 int *arg2 = (int *) 0 ;
18858 int *arg3 = (int *) 0 ;
18859 void *argp1 = 0 ;
18860 int res1 = 0 ;
18861 int temp2 ;
18862 int res2 = SWIG_TMPOBJ ;
18863 int temp3 ;
18864 int res3 = SWIG_TMPOBJ ;
18865 PyObject *swig_obj[1] ;
18866
18867 arg2 = &temp2;
18868 arg3 = &temp3;
18869 if (!args) SWIG_fail;
18870 swig_obj[0] = args;
18871 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18872 if (!SWIG_IsOK(res1)) {
18873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
18874 }
18875 arg1 = reinterpret_cast< wxDC * >(argp1);
18876 {
18877 PyThreadState* __tstate = wxPyBeginAllowThreads();
18878 (arg1)->GetSize(arg2,arg3);
18879 wxPyEndAllowThreads(__tstate);
18880 if (PyErr_Occurred()) SWIG_fail;
18881 }
18882 resultobj = SWIG_Py_Void();
18883 if (SWIG_IsTmpObj(res2)) {
18884 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
18885 } else {
18886 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18887 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
18888 }
18889 if (SWIG_IsTmpObj(res3)) {
18890 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18891 } else {
18892 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18893 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18894 }
18895 return resultobj;
18896fail:
18897 return NULL;
18898}
18899
18900
18901SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18902 PyObject *resultobj = 0;
18903 wxDC *arg1 = (wxDC *) 0 ;
18904 wxSize result;
18905 void *argp1 = 0 ;
18906 int res1 = 0 ;
18907 PyObject *swig_obj[1] ;
18908
18909 if (!args) SWIG_fail;
18910 swig_obj[0] = args;
18911 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18912 if (!SWIG_IsOK(res1)) {
18913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
18914 }
18915 arg1 = reinterpret_cast< wxDC * >(argp1);
18916 {
18917 PyThreadState* __tstate = wxPyBeginAllowThreads();
18918 result = ((wxDC const *)arg1)->GetSizeMM();
18919 wxPyEndAllowThreads(__tstate);
18920 if (PyErr_Occurred()) SWIG_fail;
18921 }
18922 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
18923 return resultobj;
18924fail:
18925 return NULL;
18926}
18927
18928
18929SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18930 PyObject *resultobj = 0;
18931 wxDC *arg1 = (wxDC *) 0 ;
18932 int *arg2 = (int *) 0 ;
18933 int *arg3 = (int *) 0 ;
18934 void *argp1 = 0 ;
18935 int res1 = 0 ;
18936 int temp2 ;
18937 int res2 = SWIG_TMPOBJ ;
18938 int temp3 ;
18939 int res3 = SWIG_TMPOBJ ;
18940 PyObject *swig_obj[1] ;
18941
18942 arg2 = &temp2;
18943 arg3 = &temp3;
18944 if (!args) SWIG_fail;
18945 swig_obj[0] = args;
18946 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18947 if (!SWIG_IsOK(res1)) {
18948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
18949 }
18950 arg1 = reinterpret_cast< wxDC * >(argp1);
18951 {
18952 PyThreadState* __tstate = wxPyBeginAllowThreads();
18953 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
18954 wxPyEndAllowThreads(__tstate);
18955 if (PyErr_Occurred()) SWIG_fail;
18956 }
18957 resultobj = SWIG_Py_Void();
18958 if (SWIG_IsTmpObj(res2)) {
18959 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
18960 } else {
18961 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18962 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
18963 }
18964 if (SWIG_IsTmpObj(res3)) {
18965 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18966 } else {
18967 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18968 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18969 }
18970 return resultobj;
18971fail:
18972 return NULL;
18973}
18974
18975
18976SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18977 PyObject *resultobj = 0;
18978 wxDC *arg1 = (wxDC *) 0 ;
18979 int arg2 ;
18980 int result;
18981 void *argp1 = 0 ;
18982 int res1 = 0 ;
18983 int val2 ;
18984 int ecode2 = 0 ;
18985 PyObject * obj0 = 0 ;
18986 PyObject * obj1 = 0 ;
18987 char * kwnames[] = {
18988 (char *) "self",(char *) "x", NULL
18989 };
18990
18991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
18992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18993 if (!SWIG_IsOK(res1)) {
18994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
18995 }
18996 arg1 = reinterpret_cast< wxDC * >(argp1);
18997 ecode2 = SWIG_AsVal_int(obj1, &val2);
18998 if (!SWIG_IsOK(ecode2)) {
18999 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
19000 }
19001 arg2 = static_cast< int >(val2);
19002 {
19003 PyThreadState* __tstate = wxPyBeginAllowThreads();
19004 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
19005 wxPyEndAllowThreads(__tstate);
19006 if (PyErr_Occurred()) SWIG_fail;
19007 }
19008 resultobj = SWIG_From_int(static_cast< int >(result));
19009 return resultobj;
19010fail:
19011 return NULL;
19012}
19013
19014
19015SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19016 PyObject *resultobj = 0;
19017 wxDC *arg1 = (wxDC *) 0 ;
19018 int arg2 ;
19019 int result;
19020 void *argp1 = 0 ;
19021 int res1 = 0 ;
19022 int val2 ;
19023 int ecode2 = 0 ;
19024 PyObject * obj0 = 0 ;
19025 PyObject * obj1 = 0 ;
19026 char * kwnames[] = {
19027 (char *) "self",(char *) "y", NULL
19028 };
19029
19030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
19031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19032 if (!SWIG_IsOK(res1)) {
19033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
19034 }
19035 arg1 = reinterpret_cast< wxDC * >(argp1);
19036 ecode2 = SWIG_AsVal_int(obj1, &val2);
19037 if (!SWIG_IsOK(ecode2)) {
19038 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
19039 }
19040 arg2 = static_cast< int >(val2);
19041 {
19042 PyThreadState* __tstate = wxPyBeginAllowThreads();
19043 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
19044 wxPyEndAllowThreads(__tstate);
19045 if (PyErr_Occurred()) SWIG_fail;
19046 }
19047 resultobj = SWIG_From_int(static_cast< int >(result));
19048 return resultobj;
19049fail:
19050 return NULL;
19051}
19052
19053
19054SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19055 PyObject *resultobj = 0;
19056 wxDC *arg1 = (wxDC *) 0 ;
19057 int arg2 ;
19058 int result;
19059 void *argp1 = 0 ;
19060 int res1 = 0 ;
19061 int val2 ;
19062 int ecode2 = 0 ;
19063 PyObject * obj0 = 0 ;
19064 PyObject * obj1 = 0 ;
19065 char * kwnames[] = {
19066 (char *) "self",(char *) "x", NULL
19067 };
19068
19069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
19070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19071 if (!SWIG_IsOK(res1)) {
19072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
19073 }
19074 arg1 = reinterpret_cast< wxDC * >(argp1);
19075 ecode2 = SWIG_AsVal_int(obj1, &val2);
19076 if (!SWIG_IsOK(ecode2)) {
19077 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
19078 }
19079 arg2 = static_cast< int >(val2);
19080 {
19081 PyThreadState* __tstate = wxPyBeginAllowThreads();
19082 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
19083 wxPyEndAllowThreads(__tstate);
19084 if (PyErr_Occurred()) SWIG_fail;
19085 }
19086 resultobj = SWIG_From_int(static_cast< int >(result));
19087 return resultobj;
19088fail:
19089 return NULL;
19090}
19091
19092
19093SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19094 PyObject *resultobj = 0;
19095 wxDC *arg1 = (wxDC *) 0 ;
19096 int arg2 ;
19097 int result;
19098 void *argp1 = 0 ;
19099 int res1 = 0 ;
19100 int val2 ;
19101 int ecode2 = 0 ;
19102 PyObject * obj0 = 0 ;
19103 PyObject * obj1 = 0 ;
19104 char * kwnames[] = {
19105 (char *) "self",(char *) "y", NULL
19106 };
19107
19108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
19109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19110 if (!SWIG_IsOK(res1)) {
19111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
19112 }
19113 arg1 = reinterpret_cast< wxDC * >(argp1);
19114 ecode2 = SWIG_AsVal_int(obj1, &val2);
19115 if (!SWIG_IsOK(ecode2)) {
19116 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
19117 }
19118 arg2 = static_cast< int >(val2);
19119 {
19120 PyThreadState* __tstate = wxPyBeginAllowThreads();
19121 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
19122 wxPyEndAllowThreads(__tstate);
19123 if (PyErr_Occurred()) SWIG_fail;
19124 }
19125 resultobj = SWIG_From_int(static_cast< int >(result));
19126 return resultobj;
19127fail:
19128 return NULL;
19129}
19130
19131
19132SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19133 PyObject *resultobj = 0;
19134 wxDC *arg1 = (wxDC *) 0 ;
19135 int arg2 ;
19136 int result;
19137 void *argp1 = 0 ;
19138 int res1 = 0 ;
19139 int val2 ;
19140 int ecode2 = 0 ;
19141 PyObject * obj0 = 0 ;
19142 PyObject * obj1 = 0 ;
19143 char * kwnames[] = {
19144 (char *) "self",(char *) "x", NULL
19145 };
19146
19147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
19148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19149 if (!SWIG_IsOK(res1)) {
19150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
19151 }
19152 arg1 = reinterpret_cast< wxDC * >(argp1);
19153 ecode2 = SWIG_AsVal_int(obj1, &val2);
19154 if (!SWIG_IsOK(ecode2)) {
19155 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
19156 }
19157 arg2 = static_cast< int >(val2);
19158 {
19159 PyThreadState* __tstate = wxPyBeginAllowThreads();
19160 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
19161 wxPyEndAllowThreads(__tstate);
19162 if (PyErr_Occurred()) SWIG_fail;
19163 }
19164 resultobj = SWIG_From_int(static_cast< int >(result));
19165 return resultobj;
19166fail:
19167 return NULL;
19168}
19169
19170
19171SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19172 PyObject *resultobj = 0;
19173 wxDC *arg1 = (wxDC *) 0 ;
19174 int arg2 ;
19175 int result;
19176 void *argp1 = 0 ;
19177 int res1 = 0 ;
19178 int val2 ;
19179 int ecode2 = 0 ;
19180 PyObject * obj0 = 0 ;
19181 PyObject * obj1 = 0 ;
19182 char * kwnames[] = {
19183 (char *) "self",(char *) "y", NULL
19184 };
19185
19186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
19187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19188 if (!SWIG_IsOK(res1)) {
19189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
19190 }
19191 arg1 = reinterpret_cast< wxDC * >(argp1);
19192 ecode2 = SWIG_AsVal_int(obj1, &val2);
19193 if (!SWIG_IsOK(ecode2)) {
19194 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
19195 }
19196 arg2 = static_cast< int >(val2);
19197 {
19198 PyThreadState* __tstate = wxPyBeginAllowThreads();
19199 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
19200 wxPyEndAllowThreads(__tstate);
19201 if (PyErr_Occurred()) SWIG_fail;
19202 }
19203 resultobj = SWIG_From_int(static_cast< int >(result));
19204 return resultobj;
19205fail:
19206 return NULL;
19207}
19208
19209
19210SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19211 PyObject *resultobj = 0;
19212 wxDC *arg1 = (wxDC *) 0 ;
19213 int arg2 ;
19214 int result;
19215 void *argp1 = 0 ;
19216 int res1 = 0 ;
19217 int val2 ;
19218 int ecode2 = 0 ;
19219 PyObject * obj0 = 0 ;
19220 PyObject * obj1 = 0 ;
19221 char * kwnames[] = {
19222 (char *) "self",(char *) "x", NULL
19223 };
19224
19225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
19226 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19227 if (!SWIG_IsOK(res1)) {
19228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
19229 }
19230 arg1 = reinterpret_cast< wxDC * >(argp1);
19231 ecode2 = SWIG_AsVal_int(obj1, &val2);
19232 if (!SWIG_IsOK(ecode2)) {
19233 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
19234 }
19235 arg2 = static_cast< int >(val2);
19236 {
19237 PyThreadState* __tstate = wxPyBeginAllowThreads();
19238 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
19239 wxPyEndAllowThreads(__tstate);
19240 if (PyErr_Occurred()) SWIG_fail;
19241 }
19242 resultobj = SWIG_From_int(static_cast< int >(result));
19243 return resultobj;
19244fail:
19245 return NULL;
19246}
19247
19248
19249SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19250 PyObject *resultobj = 0;
19251 wxDC *arg1 = (wxDC *) 0 ;
19252 int arg2 ;
19253 int result;
19254 void *argp1 = 0 ;
19255 int res1 = 0 ;
19256 int val2 ;
19257 int ecode2 = 0 ;
19258 PyObject * obj0 = 0 ;
19259 PyObject * obj1 = 0 ;
19260 char * kwnames[] = {
19261 (char *) "self",(char *) "y", NULL
19262 };
19263
19264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
19265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19266 if (!SWIG_IsOK(res1)) {
19267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
19268 }
19269 arg1 = reinterpret_cast< wxDC * >(argp1);
19270 ecode2 = SWIG_AsVal_int(obj1, &val2);
19271 if (!SWIG_IsOK(ecode2)) {
19272 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
19273 }
19274 arg2 = static_cast< int >(val2);
19275 {
19276 PyThreadState* __tstate = wxPyBeginAllowThreads();
19277 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
19278 wxPyEndAllowThreads(__tstate);
19279 if (PyErr_Occurred()) SWIG_fail;
19280 }
19281 resultobj = SWIG_From_int(static_cast< int >(result));
19282 return resultobj;
19283fail:
19284 return NULL;
19285}
19286
19287
19288SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19289 PyObject *resultobj = 0;
19290 wxDC *arg1 = (wxDC *) 0 ;
19291 bool result;
19292 void *argp1 = 0 ;
19293 int res1 = 0 ;
19294 PyObject *swig_obj[1] ;
19295
19296 if (!args) SWIG_fail;
19297 swig_obj[0] = args;
19298 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19299 if (!SWIG_IsOK(res1)) {
19300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
19301 }
19302 arg1 = reinterpret_cast< wxDC * >(argp1);
19303 {
19304 PyThreadState* __tstate = wxPyBeginAllowThreads();
19305 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
19306 wxPyEndAllowThreads(__tstate);
19307 if (PyErr_Occurred()) SWIG_fail;
19308 }
19309 {
19310 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19311 }
19312 return resultobj;
19313fail:
19314 return NULL;
19315}
19316
19317
19318SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19319 PyObject *resultobj = 0;
19320 wxDC *arg1 = (wxDC *) 0 ;
19321 bool result;
19322 void *argp1 = 0 ;
19323 int res1 = 0 ;
19324 PyObject *swig_obj[1] ;
19325
19326 if (!args) SWIG_fail;
19327 swig_obj[0] = args;
19328 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19329 if (!SWIG_IsOK(res1)) {
19330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
19331 }
19332 arg1 = reinterpret_cast< wxDC * >(argp1);
19333 {
19334 PyThreadState* __tstate = wxPyBeginAllowThreads();
19335 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
19336 wxPyEndAllowThreads(__tstate);
19337 if (PyErr_Occurred()) SWIG_fail;
19338 }
19339 {
19340 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19341 }
19342 return resultobj;
19343fail:
19344 return NULL;
19345}
19346
19347
19348SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19349 PyObject *resultobj = 0;
19350 wxDC *arg1 = (wxDC *) 0 ;
19351 int result;
19352 void *argp1 = 0 ;
19353 int res1 = 0 ;
19354 PyObject *swig_obj[1] ;
19355
19356 if (!args) SWIG_fail;
19357 swig_obj[0] = args;
19358 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19359 if (!SWIG_IsOK(res1)) {
19360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
19361 }
19362 arg1 = reinterpret_cast< wxDC * >(argp1);
19363 {
19364 PyThreadState* __tstate = wxPyBeginAllowThreads();
19365 result = (int)((wxDC const *)arg1)->GetDepth();
19366 wxPyEndAllowThreads(__tstate);
19367 if (PyErr_Occurred()) SWIG_fail;
19368 }
19369 resultobj = SWIG_From_int(static_cast< int >(result));
19370 return resultobj;
19371fail:
19372 return NULL;
19373}
19374
19375
19376SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19377 PyObject *resultobj = 0;
19378 wxDC *arg1 = (wxDC *) 0 ;
19379 wxSize result;
19380 void *argp1 = 0 ;
19381 int res1 = 0 ;
19382 PyObject *swig_obj[1] ;
19383
19384 if (!args) SWIG_fail;
19385 swig_obj[0] = args;
19386 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19387 if (!SWIG_IsOK(res1)) {
19388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
19389 }
19390 arg1 = reinterpret_cast< wxDC * >(argp1);
19391 {
19392 PyThreadState* __tstate = wxPyBeginAllowThreads();
19393 result = ((wxDC const *)arg1)->GetPPI();
19394 wxPyEndAllowThreads(__tstate);
19395 if (PyErr_Occurred()) SWIG_fail;
19396 }
19397 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19398 return resultobj;
19399fail:
19400 return NULL;
19401}
19402
19403
19404SWIGINTERN PyObject *_wrap_DC_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19405 PyObject *resultobj = 0;
19406 wxDC *arg1 = (wxDC *) 0 ;
19407 bool result;
19408 void *argp1 = 0 ;
19409 int res1 = 0 ;
19410 PyObject *swig_obj[1] ;
19411
19412 if (!args) SWIG_fail;
19413 swig_obj[0] = args;
19414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19415 if (!SWIG_IsOK(res1)) {
19416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Ok" "', expected argument " "1"" of type '" "wxDC const *""'");
19417 }
19418 arg1 = reinterpret_cast< wxDC * >(argp1);
19419 {
19420 PyThreadState* __tstate = wxPyBeginAllowThreads();
19421 result = (bool)((wxDC const *)arg1)->Ok();
19422 wxPyEndAllowThreads(__tstate);
19423 if (PyErr_Occurred()) SWIG_fail;
19424 }
19425 {
19426 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19427 }
19428 return resultobj;
19429fail:
19430 return NULL;
19431}
19432
19433
19434SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19435 PyObject *resultobj = 0;
19436 wxDC *arg1 = (wxDC *) 0 ;
19437 int result;
19438 void *argp1 = 0 ;
19439 int res1 = 0 ;
19440 PyObject *swig_obj[1] ;
19441
19442 if (!args) SWIG_fail;
19443 swig_obj[0] = args;
19444 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19445 if (!SWIG_IsOK(res1)) {
19446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
19447 }
19448 arg1 = reinterpret_cast< wxDC * >(argp1);
19449 {
19450 PyThreadState* __tstate = wxPyBeginAllowThreads();
19451 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
19452 wxPyEndAllowThreads(__tstate);
19453 if (PyErr_Occurred()) SWIG_fail;
19454 }
19455 resultobj = SWIG_From_int(static_cast< int >(result));
19456 return resultobj;
19457fail:
19458 return NULL;
19459}
19460
19461
19462SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19463 PyObject *resultobj = 0;
19464 wxDC *arg1 = (wxDC *) 0 ;
19465 wxBrush *result = 0 ;
19466 void *argp1 = 0 ;
19467 int res1 = 0 ;
19468 PyObject *swig_obj[1] ;
19469
19470 if (!args) SWIG_fail;
19471 swig_obj[0] = args;
19472 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19473 if (!SWIG_IsOK(res1)) {
19474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
19475 }
19476 arg1 = reinterpret_cast< wxDC * >(argp1);
19477 {
19478 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 19479 {
554f62e9
RD
19480 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
19481 result = (wxBrush *) &_result_ref;
093d3ff1 19482 }
554f62e9
RD
19483 wxPyEndAllowThreads(__tstate);
19484 if (PyErr_Occurred()) SWIG_fail;
19485 }
19486 {
19487 wxBrush* resultptr = new wxBrush(*result);
19488 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
19489 }
19490 return resultobj;
19491fail:
19492 return NULL;
19493}
19494
19495
19496SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19497 PyObject *resultobj = 0;
19498 wxDC *arg1 = (wxDC *) 0 ;
19499 wxBrush *result = 0 ;
19500 void *argp1 = 0 ;
19501 int res1 = 0 ;
19502 PyObject *swig_obj[1] ;
19503
19504 if (!args) SWIG_fail;
19505 swig_obj[0] = args;
19506 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19507 if (!SWIG_IsOK(res1)) {
19508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
19509 }
19510 arg1 = reinterpret_cast< wxDC * >(argp1);
19511 {
19512 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 19513 {
554f62e9
RD
19514 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
19515 result = (wxBrush *) &_result_ref;
093d3ff1 19516 }
554f62e9
RD
19517 wxPyEndAllowThreads(__tstate);
19518 if (PyErr_Occurred()) SWIG_fail;
19519 }
19520 {
19521 wxBrush* resultptr = new wxBrush(*result);
19522 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
19523 }
19524 return resultobj;
19525fail:
19526 return NULL;
19527}
19528
19529
19530SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19531 PyObject *resultobj = 0;
19532 wxDC *arg1 = (wxDC *) 0 ;
19533 wxFont *result = 0 ;
19534 void *argp1 = 0 ;
19535 int res1 = 0 ;
19536 PyObject *swig_obj[1] ;
19537
19538 if (!args) SWIG_fail;
19539 swig_obj[0] = args;
19540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19541 if (!SWIG_IsOK(res1)) {
19542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
19543 }
19544 arg1 = reinterpret_cast< wxDC * >(argp1);
19545 {
19546 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 19547 {
554f62e9
RD
19548 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
19549 result = (wxFont *) &_result_ref;
093d3ff1 19550 }
554f62e9
RD
19551 wxPyEndAllowThreads(__tstate);
19552 if (PyErr_Occurred()) SWIG_fail;
19553 }
19554 {
19555 wxFont* resultptr = new wxFont(*result);
19556 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
19557 }
19558 return resultobj;
19559fail:
19560 return NULL;
19561}
19562
19563
19564SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19565 PyObject *resultobj = 0;
19566 wxDC *arg1 = (wxDC *) 0 ;
19567 wxPen *result = 0 ;
19568 void *argp1 = 0 ;
19569 int res1 = 0 ;
19570 PyObject *swig_obj[1] ;
19571
19572 if (!args) SWIG_fail;
19573 swig_obj[0] = args;
19574 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19575 if (!SWIG_IsOK(res1)) {
19576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
19577 }
19578 arg1 = reinterpret_cast< wxDC * >(argp1);
19579 {
19580 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 19581 {
554f62e9
RD
19582 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
19583 result = (wxPen *) &_result_ref;
093d3ff1 19584 }
554f62e9
RD
19585 wxPyEndAllowThreads(__tstate);
19586 if (PyErr_Occurred()) SWIG_fail;
19587 }
19588 {
19589 wxPen* resultptr = new wxPen(*result);
19590 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
19591 }
19592 return resultobj;
19593fail:
19594 return NULL;
19595}
19596
19597
19598SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19599 PyObject *resultobj = 0;
19600 wxDC *arg1 = (wxDC *) 0 ;
19601 wxColour *result = 0 ;
19602 void *argp1 = 0 ;
19603 int res1 = 0 ;
19604 PyObject *swig_obj[1] ;
19605
19606 if (!args) SWIG_fail;
19607 swig_obj[0] = args;
19608 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19609 if (!SWIG_IsOK(res1)) {
19610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
19611 }
19612 arg1 = reinterpret_cast< wxDC * >(argp1);
19613 {
19614 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 19615 {
554f62e9
RD
19616 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
19617 result = (wxColour *) &_result_ref;
093d3ff1 19618 }
554f62e9
RD
19619 wxPyEndAllowThreads(__tstate);
19620 if (PyErr_Occurred()) SWIG_fail;
19621 }
19622 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
19623 return resultobj;
19624fail:
19625 return NULL;
19626}
19627
19628
19629SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19630 PyObject *resultobj = 0;
19631 wxDC *arg1 = (wxDC *) 0 ;
19632 wxColour *result = 0 ;
19633 void *argp1 = 0 ;
19634 int res1 = 0 ;
19635 PyObject *swig_obj[1] ;
19636
19637 if (!args) SWIG_fail;
19638 swig_obj[0] = args;
19639 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19640 if (!SWIG_IsOK(res1)) {
19641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
19642 }
19643 arg1 = reinterpret_cast< wxDC * >(argp1);
19644 {
19645 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 19646 {
554f62e9
RD
19647 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
19648 result = (wxColour *) &_result_ref;
093d3ff1 19649 }
554f62e9
RD
19650 wxPyEndAllowThreads(__tstate);
19651 if (PyErr_Occurred()) SWIG_fail;
19652 }
19653 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
19654 return resultobj;
19655fail:
19656 return NULL;
19657}
19658
19659
19660SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19661 PyObject *resultobj = 0;
19662 wxDC *arg1 = (wxDC *) 0 ;
19663 wxColour *arg2 = 0 ;
19664 void *argp1 = 0 ;
19665 int res1 = 0 ;
19666 wxColour temp2 ;
19667 PyObject * obj0 = 0 ;
19668 PyObject * obj1 = 0 ;
19669 char * kwnames[] = {
19670 (char *) "self",(char *) "colour", NULL
19671 };
19672
19673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
19674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19675 if (!SWIG_IsOK(res1)) {
19676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
19677 }
19678 arg1 = reinterpret_cast< wxDC * >(argp1);
19679 {
19680 arg2 = &temp2;
19681 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19682 }
19683 {
19684 PyThreadState* __tstate = wxPyBeginAllowThreads();
19685 (arg1)->SetTextForeground((wxColour const &)*arg2);
19686 wxPyEndAllowThreads(__tstate);
19687 if (PyErr_Occurred()) SWIG_fail;
19688 }
19689 resultobj = SWIG_Py_Void();
19690 return resultobj;
19691fail:
19692 return NULL;
19693}
19694
19695
19696SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19697 PyObject *resultobj = 0;
19698 wxDC *arg1 = (wxDC *) 0 ;
19699 wxColour *arg2 = 0 ;
19700 void *argp1 = 0 ;
19701 int res1 = 0 ;
19702 wxColour temp2 ;
19703 PyObject * obj0 = 0 ;
19704 PyObject * obj1 = 0 ;
19705 char * kwnames[] = {
19706 (char *) "self",(char *) "colour", NULL
19707 };
19708
19709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
19710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19711 if (!SWIG_IsOK(res1)) {
19712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
19713 }
19714 arg1 = reinterpret_cast< wxDC * >(argp1);
19715 {
19716 arg2 = &temp2;
19717 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19718 }
19719 {
19720 PyThreadState* __tstate = wxPyBeginAllowThreads();
19721 (arg1)->SetTextBackground((wxColour const &)*arg2);
19722 wxPyEndAllowThreads(__tstate);
19723 if (PyErr_Occurred()) SWIG_fail;
19724 }
19725 resultobj = SWIG_Py_Void();
19726 return resultobj;
19727fail:
19728 return NULL;
19729}
19730
19731
19732SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19733 PyObject *resultobj = 0;
19734 wxDC *arg1 = (wxDC *) 0 ;
19735 int result;
19736 void *argp1 = 0 ;
19737 int res1 = 0 ;
19738 PyObject *swig_obj[1] ;
19739
19740 if (!args) SWIG_fail;
19741 swig_obj[0] = args;
19742 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19743 if (!SWIG_IsOK(res1)) {
19744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
19745 }
19746 arg1 = reinterpret_cast< wxDC * >(argp1);
19747 {
19748 PyThreadState* __tstate = wxPyBeginAllowThreads();
19749 result = (int)((wxDC const *)arg1)->GetMapMode();
19750 wxPyEndAllowThreads(__tstate);
19751 if (PyErr_Occurred()) SWIG_fail;
19752 }
19753 resultobj = SWIG_From_int(static_cast< int >(result));
19754 return resultobj;
19755fail:
19756 return NULL;
19757}
19758
19759
19760SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19761 PyObject *resultobj = 0;
19762 wxDC *arg1 = (wxDC *) 0 ;
19763 int arg2 ;
19764 void *argp1 = 0 ;
19765 int res1 = 0 ;
19766 int val2 ;
19767 int ecode2 = 0 ;
19768 PyObject * obj0 = 0 ;
19769 PyObject * obj1 = 0 ;
19770 char * kwnames[] = {
19771 (char *) "self",(char *) "mode", NULL
19772 };
19773
19774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
19775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19776 if (!SWIG_IsOK(res1)) {
19777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
19778 }
19779 arg1 = reinterpret_cast< wxDC * >(argp1);
19780 ecode2 = SWIG_AsVal_int(obj1, &val2);
19781 if (!SWIG_IsOK(ecode2)) {
19782 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
19783 }
19784 arg2 = static_cast< int >(val2);
19785 {
19786 PyThreadState* __tstate = wxPyBeginAllowThreads();
19787 (arg1)->SetMapMode(arg2);
19788 wxPyEndAllowThreads(__tstate);
19789 if (PyErr_Occurred()) SWIG_fail;
19790 }
19791 resultobj = SWIG_Py_Void();
19792 return resultobj;
19793fail:
19794 return NULL;
19795}
19796
19797
19798SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19799 PyObject *resultobj = 0;
19800 wxDC *arg1 = (wxDC *) 0 ;
19801 double *arg2 = (double *) 0 ;
19802 double *arg3 = (double *) 0 ;
19803 void *argp1 = 0 ;
19804 int res1 = 0 ;
19805 double temp2 ;
19806 int res2 = SWIG_TMPOBJ ;
19807 double temp3 ;
19808 int res3 = SWIG_TMPOBJ ;
19809 PyObject *swig_obj[1] ;
19810
19811 arg2 = &temp2;
19812 arg3 = &temp3;
19813 if (!args) SWIG_fail;
19814 swig_obj[0] = args;
19815 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19816 if (!SWIG_IsOK(res1)) {
19817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
19818 }
19819 arg1 = reinterpret_cast< wxDC * >(argp1);
19820 {
19821 PyThreadState* __tstate = wxPyBeginAllowThreads();
19822 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
19823 wxPyEndAllowThreads(__tstate);
19824 if (PyErr_Occurred()) SWIG_fail;
19825 }
19826 resultobj = SWIG_Py_Void();
19827 if (SWIG_IsTmpObj(res2)) {
19828 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
19829 } else {
19830 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19831 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
19832 }
19833 if (SWIG_IsTmpObj(res3)) {
19834 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
19835 } else {
19836 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19837 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
19838 }
19839 return resultobj;
19840fail:
19841 return NULL;
19842}
19843
19844
19845SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19846 PyObject *resultobj = 0;
19847 wxDC *arg1 = (wxDC *) 0 ;
19848 double arg2 ;
19849 double arg3 ;
19850 void *argp1 = 0 ;
19851 int res1 = 0 ;
19852 double val2 ;
19853 int ecode2 = 0 ;
19854 double val3 ;
19855 int ecode3 = 0 ;
19856 PyObject * obj0 = 0 ;
19857 PyObject * obj1 = 0 ;
19858 PyObject * obj2 = 0 ;
19859 char * kwnames[] = {
19860 (char *) "self",(char *) "x",(char *) "y", NULL
19861 };
19862
19863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19865 if (!SWIG_IsOK(res1)) {
19866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
19867 }
19868 arg1 = reinterpret_cast< wxDC * >(argp1);
19869 ecode2 = SWIG_AsVal_double(obj1, &val2);
19870 if (!SWIG_IsOK(ecode2)) {
19871 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
19872 }
19873 arg2 = static_cast< double >(val2);
19874 ecode3 = SWIG_AsVal_double(obj2, &val3);
19875 if (!SWIG_IsOK(ecode3)) {
19876 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
19877 }
19878 arg3 = static_cast< double >(val3);
19879 {
19880 PyThreadState* __tstate = wxPyBeginAllowThreads();
19881 (arg1)->SetUserScale(arg2,arg3);
19882 wxPyEndAllowThreads(__tstate);
19883 if (PyErr_Occurred()) SWIG_fail;
19884 }
19885 resultobj = SWIG_Py_Void();
19886 return resultobj;
19887fail:
19888 return NULL;
19889}
19890
19891
19892SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19893 PyObject *resultobj = 0;
19894 wxDC *arg1 = (wxDC *) 0 ;
19895 double *arg2 = (double *) 0 ;
19896 double *arg3 = (double *) 0 ;
19897 void *argp1 = 0 ;
19898 int res1 = 0 ;
19899 double temp2 ;
19900 int res2 = SWIG_TMPOBJ ;
19901 double temp3 ;
19902 int res3 = SWIG_TMPOBJ ;
19903 PyObject *swig_obj[1] ;
19904
19905 arg2 = &temp2;
19906 arg3 = &temp3;
19907 if (!args) SWIG_fail;
19908 swig_obj[0] = args;
19909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19910 if (!SWIG_IsOK(res1)) {
19911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
19912 }
19913 arg1 = reinterpret_cast< wxDC * >(argp1);
19914 {
19915 PyThreadState* __tstate = wxPyBeginAllowThreads();
19916 (arg1)->GetLogicalScale(arg2,arg3);
19917 wxPyEndAllowThreads(__tstate);
19918 if (PyErr_Occurred()) SWIG_fail;
19919 }
19920 resultobj = SWIG_Py_Void();
19921 if (SWIG_IsTmpObj(res2)) {
19922 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
19923 } else {
19924 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19925 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
19926 }
19927 if (SWIG_IsTmpObj(res3)) {
19928 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
19929 } else {
19930 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19931 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
19932 }
19933 return resultobj;
19934fail:
19935 return NULL;
19936}
19937
19938
19939SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19940 PyObject *resultobj = 0;
19941 wxDC *arg1 = (wxDC *) 0 ;
19942 double arg2 ;
19943 double arg3 ;
19944 void *argp1 = 0 ;
19945 int res1 = 0 ;
19946 double val2 ;
19947 int ecode2 = 0 ;
19948 double val3 ;
19949 int ecode3 = 0 ;
19950 PyObject * obj0 = 0 ;
19951 PyObject * obj1 = 0 ;
19952 PyObject * obj2 = 0 ;
19953 char * kwnames[] = {
19954 (char *) "self",(char *) "x",(char *) "y", NULL
19955 };
19956
19957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19959 if (!SWIG_IsOK(res1)) {
19960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
19961 }
19962 arg1 = reinterpret_cast< wxDC * >(argp1);
19963 ecode2 = SWIG_AsVal_double(obj1, &val2);
19964 if (!SWIG_IsOK(ecode2)) {
19965 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
19966 }
19967 arg2 = static_cast< double >(val2);
19968 ecode3 = SWIG_AsVal_double(obj2, &val3);
19969 if (!SWIG_IsOK(ecode3)) {
19970 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
19971 }
19972 arg3 = static_cast< double >(val3);
19973 {
19974 PyThreadState* __tstate = wxPyBeginAllowThreads();
19975 (arg1)->SetLogicalScale(arg2,arg3);
19976 wxPyEndAllowThreads(__tstate);
19977 if (PyErr_Occurred()) SWIG_fail;
19978 }
19979 resultobj = SWIG_Py_Void();
19980 return resultobj;
19981fail:
19982 return NULL;
19983}
19984
19985
19986SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19987 PyObject *resultobj = 0;
19988 wxDC *arg1 = (wxDC *) 0 ;
19989 wxPoint result;
19990 void *argp1 = 0 ;
19991 int res1 = 0 ;
19992 PyObject *swig_obj[1] ;
19993
19994 if (!args) SWIG_fail;
19995 swig_obj[0] = args;
19996 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19997 if (!SWIG_IsOK(res1)) {
19998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
19999 }
20000 arg1 = reinterpret_cast< wxDC * >(argp1);
20001 {
20002 PyThreadState* __tstate = wxPyBeginAllowThreads();
20003 result = ((wxDC const *)arg1)->GetLogicalOrigin();
20004 wxPyEndAllowThreads(__tstate);
20005 if (PyErr_Occurred()) SWIG_fail;
20006 }
20007 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
20008 return resultobj;
20009fail:
20010 return NULL;
20011}
20012
20013
20014SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20015 PyObject *resultobj = 0;
20016 wxDC *arg1 = (wxDC *) 0 ;
20017 int *arg2 = (int *) 0 ;
20018 int *arg3 = (int *) 0 ;
20019 void *argp1 = 0 ;
20020 int res1 = 0 ;
20021 int temp2 ;
20022 int res2 = SWIG_TMPOBJ ;
20023 int temp3 ;
20024 int res3 = SWIG_TMPOBJ ;
20025 PyObject *swig_obj[1] ;
20026
20027 arg2 = &temp2;
20028 arg3 = &temp3;
20029 if (!args) SWIG_fail;
20030 swig_obj[0] = args;
20031 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20032 if (!SWIG_IsOK(res1)) {
20033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
20034 }
20035 arg1 = reinterpret_cast< wxDC * >(argp1);
20036 {
20037 PyThreadState* __tstate = wxPyBeginAllowThreads();
20038 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
20039 wxPyEndAllowThreads(__tstate);
20040 if (PyErr_Occurred()) SWIG_fail;
20041 }
20042 resultobj = SWIG_Py_Void();
20043 if (SWIG_IsTmpObj(res2)) {
20044 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20045 } else {
20046 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20047 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20048 }
20049 if (SWIG_IsTmpObj(res3)) {
20050 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20051 } else {
20052 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20053 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20054 }
20055 return resultobj;
20056fail:
20057 return NULL;
20058}
20059
20060
20061SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20062 PyObject *resultobj = 0;
20063 wxDC *arg1 = (wxDC *) 0 ;
20064 int arg2 ;
20065 int arg3 ;
20066 void *argp1 = 0 ;
20067 int res1 = 0 ;
20068 int val2 ;
20069 int ecode2 = 0 ;
20070 int val3 ;
20071 int ecode3 = 0 ;
20072 PyObject * obj0 = 0 ;
20073 PyObject * obj1 = 0 ;
20074 PyObject * obj2 = 0 ;
20075 char * kwnames[] = {
20076 (char *) "self",(char *) "x",(char *) "y", NULL
20077 };
20078
20079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20081 if (!SWIG_IsOK(res1)) {
20082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
20083 }
20084 arg1 = reinterpret_cast< wxDC * >(argp1);
20085 ecode2 = SWIG_AsVal_int(obj1, &val2);
20086 if (!SWIG_IsOK(ecode2)) {
20087 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
20088 }
20089 arg2 = static_cast< int >(val2);
20090 ecode3 = SWIG_AsVal_int(obj2, &val3);
20091 if (!SWIG_IsOK(ecode3)) {
20092 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
20093 }
20094 arg3 = static_cast< int >(val3);
20095 {
20096 PyThreadState* __tstate = wxPyBeginAllowThreads();
20097 (arg1)->SetLogicalOrigin(arg2,arg3);
20098 wxPyEndAllowThreads(__tstate);
20099 if (PyErr_Occurred()) SWIG_fail;
20100 }
20101 resultobj = SWIG_Py_Void();
20102 return resultobj;
20103fail:
20104 return NULL;
20105}
20106
20107
20108SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20109 PyObject *resultobj = 0;
20110 wxDC *arg1 = (wxDC *) 0 ;
20111 wxPoint *arg2 = 0 ;
20112 void *argp1 = 0 ;
20113 int res1 = 0 ;
20114 wxPoint temp2 ;
20115 PyObject * obj0 = 0 ;
20116 PyObject * obj1 = 0 ;
20117 char * kwnames[] = {
20118 (char *) "self",(char *) "point", NULL
20119 };
20120
20121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
20122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20123 if (!SWIG_IsOK(res1)) {
20124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20125 }
20126 arg1 = reinterpret_cast< wxDC * >(argp1);
20127 {
20128 arg2 = &temp2;
20129 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20130 }
20131 {
20132 PyThreadState* __tstate = wxPyBeginAllowThreads();
20133 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
20134 wxPyEndAllowThreads(__tstate);
20135 if (PyErr_Occurred()) SWIG_fail;
20136 }
20137 resultobj = SWIG_Py_Void();
20138 return resultobj;
20139fail:
20140 return NULL;
20141}
20142
20143
20144SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20145 PyObject *resultobj = 0;
20146 wxDC *arg1 = (wxDC *) 0 ;
20147 wxPoint result;
20148 void *argp1 = 0 ;
20149 int res1 = 0 ;
20150 PyObject *swig_obj[1] ;
20151
20152 if (!args) SWIG_fail;
20153 swig_obj[0] = args;
20154 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20155 if (!SWIG_IsOK(res1)) {
20156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
20157 }
20158 arg1 = reinterpret_cast< wxDC * >(argp1);
20159 {
20160 PyThreadState* __tstate = wxPyBeginAllowThreads();
20161 result = ((wxDC const *)arg1)->GetDeviceOrigin();
20162 wxPyEndAllowThreads(__tstate);
20163 if (PyErr_Occurred()) SWIG_fail;
20164 }
20165 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
20166 return resultobj;
20167fail:
20168 return NULL;
20169}
20170
20171
20172SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20173 PyObject *resultobj = 0;
20174 wxDC *arg1 = (wxDC *) 0 ;
20175 int *arg2 = (int *) 0 ;
20176 int *arg3 = (int *) 0 ;
20177 void *argp1 = 0 ;
20178 int res1 = 0 ;
20179 int temp2 ;
20180 int res2 = SWIG_TMPOBJ ;
20181 int temp3 ;
20182 int res3 = SWIG_TMPOBJ ;
20183 PyObject *swig_obj[1] ;
20184
20185 arg2 = &temp2;
20186 arg3 = &temp3;
20187 if (!args) SWIG_fail;
20188 swig_obj[0] = args;
20189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20190 if (!SWIG_IsOK(res1)) {
20191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
20192 }
20193 arg1 = reinterpret_cast< wxDC * >(argp1);
20194 {
20195 PyThreadState* __tstate = wxPyBeginAllowThreads();
20196 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
20197 wxPyEndAllowThreads(__tstate);
20198 if (PyErr_Occurred()) SWIG_fail;
20199 }
20200 resultobj = SWIG_Py_Void();
20201 if (SWIG_IsTmpObj(res2)) {
20202 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20203 } else {
20204 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20205 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20206 }
20207 if (SWIG_IsTmpObj(res3)) {
20208 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20209 } else {
20210 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20211 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20212 }
20213 return resultobj;
20214fail:
20215 return NULL;
20216}
20217
20218
20219SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20220 PyObject *resultobj = 0;
20221 wxDC *arg1 = (wxDC *) 0 ;
20222 int arg2 ;
20223 int arg3 ;
20224 void *argp1 = 0 ;
20225 int res1 = 0 ;
20226 int val2 ;
20227 int ecode2 = 0 ;
20228 int val3 ;
20229 int ecode3 = 0 ;
20230 PyObject * obj0 = 0 ;
20231 PyObject * obj1 = 0 ;
20232 PyObject * obj2 = 0 ;
20233 char * kwnames[] = {
20234 (char *) "self",(char *) "x",(char *) "y", NULL
20235 };
20236
20237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20239 if (!SWIG_IsOK(res1)) {
20240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
20241 }
20242 arg1 = reinterpret_cast< wxDC * >(argp1);
20243 ecode2 = SWIG_AsVal_int(obj1, &val2);
20244 if (!SWIG_IsOK(ecode2)) {
20245 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
20246 }
20247 arg2 = static_cast< int >(val2);
20248 ecode3 = SWIG_AsVal_int(obj2, &val3);
20249 if (!SWIG_IsOK(ecode3)) {
20250 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
20251 }
20252 arg3 = static_cast< int >(val3);
20253 {
20254 PyThreadState* __tstate = wxPyBeginAllowThreads();
20255 (arg1)->SetDeviceOrigin(arg2,arg3);
20256 wxPyEndAllowThreads(__tstate);
20257 if (PyErr_Occurred()) SWIG_fail;
20258 }
20259 resultobj = SWIG_Py_Void();
20260 return resultobj;
20261fail:
20262 return NULL;
20263}
20264
20265
20266SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20267 PyObject *resultobj = 0;
20268 wxDC *arg1 = (wxDC *) 0 ;
20269 wxPoint *arg2 = 0 ;
20270 void *argp1 = 0 ;
20271 int res1 = 0 ;
20272 wxPoint temp2 ;
20273 PyObject * obj0 = 0 ;
20274 PyObject * obj1 = 0 ;
20275 char * kwnames[] = {
20276 (char *) "self",(char *) "point", NULL
20277 };
20278
20279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
20280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20281 if (!SWIG_IsOK(res1)) {
20282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20283 }
20284 arg1 = reinterpret_cast< wxDC * >(argp1);
20285 {
20286 arg2 = &temp2;
20287 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20288 }
20289 {
20290 PyThreadState* __tstate = wxPyBeginAllowThreads();
20291 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
20292 wxPyEndAllowThreads(__tstate);
20293 if (PyErr_Occurred()) SWIG_fail;
20294 }
20295 resultobj = SWIG_Py_Void();
20296 return resultobj;
20297fail:
20298 return NULL;
20299}
20300
20301
20302SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20303 PyObject *resultobj = 0;
20304 wxDC *arg1 = (wxDC *) 0 ;
20305 bool arg2 ;
20306 bool arg3 ;
20307 void *argp1 = 0 ;
20308 int res1 = 0 ;
20309 bool val2 ;
20310 int ecode2 = 0 ;
20311 bool val3 ;
20312 int ecode3 = 0 ;
20313 PyObject * obj0 = 0 ;
20314 PyObject * obj1 = 0 ;
20315 PyObject * obj2 = 0 ;
20316 char * kwnames[] = {
20317 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
20318 };
20319
20320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20322 if (!SWIG_IsOK(res1)) {
20323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
20324 }
20325 arg1 = reinterpret_cast< wxDC * >(argp1);
20326 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20327 if (!SWIG_IsOK(ecode2)) {
20328 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
20329 }
20330 arg2 = static_cast< bool >(val2);
20331 ecode3 = SWIG_AsVal_bool(obj2, &val3);
20332 if (!SWIG_IsOK(ecode3)) {
20333 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
20334 }
20335 arg3 = static_cast< bool >(val3);
20336 {
20337 PyThreadState* __tstate = wxPyBeginAllowThreads();
20338 (arg1)->SetAxisOrientation(arg2,arg3);
20339 wxPyEndAllowThreads(__tstate);
20340 if (PyErr_Occurred()) SWIG_fail;
20341 }
20342 resultobj = SWIG_Py_Void();
20343 return resultobj;
20344fail:
20345 return NULL;
20346}
20347
20348
20349SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20350 PyObject *resultobj = 0;
20351 wxDC *arg1 = (wxDC *) 0 ;
20352 int result;
20353 void *argp1 = 0 ;
20354 int res1 = 0 ;
20355 PyObject *swig_obj[1] ;
20356
20357 if (!args) SWIG_fail;
20358 swig_obj[0] = args;
20359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20360 if (!SWIG_IsOK(res1)) {
20361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
20362 }
20363 arg1 = reinterpret_cast< wxDC * >(argp1);
20364 {
20365 PyThreadState* __tstate = wxPyBeginAllowThreads();
20366 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
20367 wxPyEndAllowThreads(__tstate);
20368 if (PyErr_Occurred()) SWIG_fail;
20369 }
20370 resultobj = SWIG_From_int(static_cast< int >(result));
20371 return resultobj;
20372fail:
20373 return NULL;
20374}
20375
20376
20377SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20378 PyObject *resultobj = 0;
20379 wxDC *arg1 = (wxDC *) 0 ;
20380 int arg2 ;
20381 void *argp1 = 0 ;
20382 int res1 = 0 ;
20383 int val2 ;
20384 int ecode2 = 0 ;
20385 PyObject * obj0 = 0 ;
20386 PyObject * obj1 = 0 ;
20387 char * kwnames[] = {
20388 (char *) "self",(char *) "function", NULL
20389 };
20390
20391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
20392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20393 if (!SWIG_IsOK(res1)) {
20394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
20395 }
20396 arg1 = reinterpret_cast< wxDC * >(argp1);
20397 ecode2 = SWIG_AsVal_int(obj1, &val2);
20398 if (!SWIG_IsOK(ecode2)) {
20399 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
20400 }
20401 arg2 = static_cast< int >(val2);
20402 {
20403 PyThreadState* __tstate = wxPyBeginAllowThreads();
20404 (arg1)->SetLogicalFunction(arg2);
20405 wxPyEndAllowThreads(__tstate);
20406 if (PyErr_Occurred()) SWIG_fail;
20407 }
20408 resultobj = SWIG_Py_Void();
20409 return resultobj;
20410fail:
20411 return NULL;
20412}
20413
20414
20415SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20416 PyObject *resultobj = 0;
20417 wxDC *arg1 = (wxDC *) 0 ;
20418 void *argp1 = 0 ;
20419 int res1 = 0 ;
20420 PyObject *swig_obj[1] ;
20421
20422 if (!args) SWIG_fail;
20423 swig_obj[0] = args;
20424 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20425 if (!SWIG_IsOK(res1)) {
20426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
20427 }
20428 arg1 = reinterpret_cast< wxDC * >(argp1);
20429 {
20430 PyThreadState* __tstate = wxPyBeginAllowThreads();
20431 (arg1)->ComputeScaleAndOrigin();
20432 wxPyEndAllowThreads(__tstate);
20433 if (PyErr_Occurred()) SWIG_fail;
20434 }
20435 resultobj = SWIG_Py_Void();
20436 return resultobj;
20437fail:
20438 return NULL;
20439}
20440
20441
20442SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20443 PyObject *resultobj = 0;
20444 wxDC *arg1 = (wxDC *) 0 ;
20445 int arg2 ;
20446 int arg3 ;
20447 void *argp1 = 0 ;
20448 int res1 = 0 ;
20449 int val2 ;
20450 int ecode2 = 0 ;
20451 int val3 ;
20452 int ecode3 = 0 ;
20453 PyObject * obj0 = 0 ;
20454 PyObject * obj1 = 0 ;
20455 PyObject * obj2 = 0 ;
20456 char * kwnames[] = {
20457 (char *) "self",(char *) "x",(char *) "y", NULL
20458 };
20459
20460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20462 if (!SWIG_IsOK(res1)) {
20463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
20464 }
20465 arg1 = reinterpret_cast< wxDC * >(argp1);
20466 ecode2 = SWIG_AsVal_int(obj1, &val2);
20467 if (!SWIG_IsOK(ecode2)) {
20468 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
20469 }
20470 arg2 = static_cast< int >(val2);
20471 ecode3 = SWIG_AsVal_int(obj2, &val3);
20472 if (!SWIG_IsOK(ecode3)) {
20473 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
20474 }
20475 arg3 = static_cast< int >(val3);
20476 {
20477 PyThreadState* __tstate = wxPyBeginAllowThreads();
20478 (arg1)->CalcBoundingBox(arg2,arg3);
20479 wxPyEndAllowThreads(__tstate);
20480 if (PyErr_Occurred()) SWIG_fail;
20481 }
20482 resultobj = SWIG_Py_Void();
20483 return resultobj;
20484fail:
20485 return NULL;
20486}
20487
20488
20489SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20490 PyObject *resultobj = 0;
20491 wxDC *arg1 = (wxDC *) 0 ;
20492 wxPoint *arg2 = 0 ;
20493 void *argp1 = 0 ;
20494 int res1 = 0 ;
20495 wxPoint temp2 ;
20496 PyObject * obj0 = 0 ;
20497 PyObject * obj1 = 0 ;
20498 char * kwnames[] = {
20499 (char *) "self",(char *) "point", NULL
20500 };
20501
20502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
20503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20504 if (!SWIG_IsOK(res1)) {
20505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20506 }
20507 arg1 = reinterpret_cast< wxDC * >(argp1);
20508 {
20509 arg2 = &temp2;
20510 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20511 }
20512 {
20513 PyThreadState* __tstate = wxPyBeginAllowThreads();
20514 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
20515 wxPyEndAllowThreads(__tstate);
20516 if (PyErr_Occurred()) SWIG_fail;
20517 }
20518 resultobj = SWIG_Py_Void();
20519 return resultobj;
20520fail:
20521 return NULL;
20522}
20523
20524
20525SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20526 PyObject *resultobj = 0;
20527 wxDC *arg1 = (wxDC *) 0 ;
20528 void *argp1 = 0 ;
20529 int res1 = 0 ;
20530 PyObject *swig_obj[1] ;
20531
20532 if (!args) SWIG_fail;
20533 swig_obj[0] = args;
20534 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20535 if (!SWIG_IsOK(res1)) {
20536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
20537 }
20538 arg1 = reinterpret_cast< wxDC * >(argp1);
20539 {
20540 PyThreadState* __tstate = wxPyBeginAllowThreads();
20541 (arg1)->ResetBoundingBox();
20542 wxPyEndAllowThreads(__tstate);
20543 if (PyErr_Occurred()) SWIG_fail;
20544 }
20545 resultobj = SWIG_Py_Void();
20546 return resultobj;
20547fail:
20548 return NULL;
20549}
20550
20551
20552SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20553 PyObject *resultobj = 0;
20554 wxDC *arg1 = (wxDC *) 0 ;
20555 int result;
20556 void *argp1 = 0 ;
20557 int res1 = 0 ;
20558 PyObject *swig_obj[1] ;
20559
20560 if (!args) SWIG_fail;
20561 swig_obj[0] = args;
20562 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20563 if (!SWIG_IsOK(res1)) {
20564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
20565 }
20566 arg1 = reinterpret_cast< wxDC * >(argp1);
20567 {
20568 PyThreadState* __tstate = wxPyBeginAllowThreads();
20569 result = (int)((wxDC const *)arg1)->MinX();
20570 wxPyEndAllowThreads(__tstate);
20571 if (PyErr_Occurred()) SWIG_fail;
20572 }
20573 resultobj = SWIG_From_int(static_cast< int >(result));
20574 return resultobj;
20575fail:
20576 return NULL;
20577}
20578
20579
20580SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20581 PyObject *resultobj = 0;
20582 wxDC *arg1 = (wxDC *) 0 ;
20583 int result;
20584 void *argp1 = 0 ;
20585 int res1 = 0 ;
20586 PyObject *swig_obj[1] ;
20587
20588 if (!args) SWIG_fail;
20589 swig_obj[0] = args;
20590 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20591 if (!SWIG_IsOK(res1)) {
20592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
20593 }
20594 arg1 = reinterpret_cast< wxDC * >(argp1);
20595 {
20596 PyThreadState* __tstate = wxPyBeginAllowThreads();
20597 result = (int)((wxDC const *)arg1)->MaxX();
20598 wxPyEndAllowThreads(__tstate);
20599 if (PyErr_Occurred()) SWIG_fail;
20600 }
20601 resultobj = SWIG_From_int(static_cast< int >(result));
20602 return resultobj;
20603fail:
20604 return NULL;
20605}
20606
20607
20608SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20609 PyObject *resultobj = 0;
20610 wxDC *arg1 = (wxDC *) 0 ;
20611 int result;
20612 void *argp1 = 0 ;
20613 int res1 = 0 ;
20614 PyObject *swig_obj[1] ;
20615
20616 if (!args) SWIG_fail;
20617 swig_obj[0] = args;
20618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20619 if (!SWIG_IsOK(res1)) {
20620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
20621 }
20622 arg1 = reinterpret_cast< wxDC * >(argp1);
20623 {
20624 PyThreadState* __tstate = wxPyBeginAllowThreads();
20625 result = (int)((wxDC const *)arg1)->MinY();
20626 wxPyEndAllowThreads(__tstate);
20627 if (PyErr_Occurred()) SWIG_fail;
20628 }
20629 resultobj = SWIG_From_int(static_cast< int >(result));
20630 return resultobj;
20631fail:
20632 return NULL;
20633}
20634
20635
20636SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20637 PyObject *resultobj = 0;
20638 wxDC *arg1 = (wxDC *) 0 ;
20639 int result;
20640 void *argp1 = 0 ;
20641 int res1 = 0 ;
20642 PyObject *swig_obj[1] ;
20643
20644 if (!args) SWIG_fail;
20645 swig_obj[0] = args;
20646 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20647 if (!SWIG_IsOK(res1)) {
20648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
20649 }
20650 arg1 = reinterpret_cast< wxDC * >(argp1);
20651 {
20652 PyThreadState* __tstate = wxPyBeginAllowThreads();
20653 result = (int)((wxDC const *)arg1)->MaxY();
20654 wxPyEndAllowThreads(__tstate);
20655 if (PyErr_Occurred()) SWIG_fail;
20656 }
20657 resultobj = SWIG_From_int(static_cast< int >(result));
20658 return resultobj;
20659fail:
20660 return NULL;
20661}
20662
20663
20664SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20665 PyObject *resultobj = 0;
20666 wxDC *arg1 = (wxDC *) 0 ;
20667 int *arg2 = (int *) 0 ;
20668 int *arg3 = (int *) 0 ;
20669 int *arg4 = (int *) 0 ;
20670 int *arg5 = (int *) 0 ;
20671 void *argp1 = 0 ;
20672 int res1 = 0 ;
20673 int temp2 ;
20674 int res2 = SWIG_TMPOBJ ;
20675 int temp3 ;
20676 int res3 = SWIG_TMPOBJ ;
20677 int temp4 ;
20678 int res4 = SWIG_TMPOBJ ;
20679 int temp5 ;
20680 int res5 = SWIG_TMPOBJ ;
20681 PyObject *swig_obj[1] ;
20682
20683 arg2 = &temp2;
20684 arg3 = &temp3;
20685 arg4 = &temp4;
20686 arg5 = &temp5;
20687 if (!args) SWIG_fail;
20688 swig_obj[0] = args;
20689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20690 if (!SWIG_IsOK(res1)) {
20691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
20692 }
20693 arg1 = reinterpret_cast< wxDC * >(argp1);
20694 {
20695 PyThreadState* __tstate = wxPyBeginAllowThreads();
20696 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
20697 wxPyEndAllowThreads(__tstate);
20698 if (PyErr_Occurred()) SWIG_fail;
20699 }
20700 resultobj = SWIG_Py_Void();
20701 if (SWIG_IsTmpObj(res2)) {
20702 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20703 } else {
20704 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20705 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20706 }
20707 if (SWIG_IsTmpObj(res3)) {
20708 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20709 } else {
20710 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20711 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20712 }
20713 if (SWIG_IsTmpObj(res4)) {
20714 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20715 } else {
20716 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20717 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20718 }
20719 if (SWIG_IsTmpObj(res5)) {
20720 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20721 } else {
20722 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20723 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20724 }
20725 return resultobj;
20726fail:
20727 return NULL;
20728}
20729
20730
20731SWIGINTERN PyObject *_wrap_DC_GetHDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20732 PyObject *resultobj = 0;
20733 wxDC *arg1 = (wxDC *) 0 ;
20734 long result;
20735 void *argp1 = 0 ;
20736 int res1 = 0 ;
20737 PyObject *swig_obj[1] ;
20738
20739 if (!args) SWIG_fail;
20740 swig_obj[0] = args;
20741 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20742 if (!SWIG_IsOK(res1)) {
20743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetHDC" "', expected argument " "1"" of type '" "wxDC *""'");
20744 }
20745 arg1 = reinterpret_cast< wxDC * >(argp1);
20746 {
20747 PyThreadState* __tstate = wxPyBeginAllowThreads();
20748 result = (long)(arg1)->GetHDC();
20749 wxPyEndAllowThreads(__tstate);
20750 if (PyErr_Occurred()) SWIG_fail;
20751 }
20752 resultobj = SWIG_From_long(static_cast< long >(result));
20753 return resultobj;
20754fail:
20755 return NULL;
20756}
20757
20758
20759SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20760 PyObject *resultobj = 0;
20761 wxDC *arg1 = (wxDC *) 0 ;
20762 PyObject *arg2 = (PyObject *) 0 ;
20763 PyObject *arg3 = (PyObject *) 0 ;
20764 PyObject *arg4 = (PyObject *) 0 ;
20765 PyObject *result = 0 ;
20766 void *argp1 = 0 ;
20767 int res1 = 0 ;
20768 PyObject * obj0 = 0 ;
20769 PyObject * obj1 = 0 ;
20770 PyObject * obj2 = 0 ;
20771 PyObject * obj3 = 0 ;
20772 char * kwnames[] = {
20773 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20774 };
20775
20776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20778 if (!SWIG_IsOK(res1)) {
20779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
20780 }
20781 arg1 = reinterpret_cast< wxDC * >(argp1);
20782 arg2 = obj1;
20783 arg3 = obj2;
20784 arg4 = obj3;
20785 {
20786 PyThreadState* __tstate = wxPyBeginAllowThreads();
20787 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
20788 wxPyEndAllowThreads(__tstate);
20789 if (PyErr_Occurred()) SWIG_fail;
20790 }
20791 resultobj = result;
20792 return resultobj;
20793fail:
20794 return NULL;
20795}
20796
20797
20798SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20799 PyObject *resultobj = 0;
20800 wxDC *arg1 = (wxDC *) 0 ;
20801 PyObject *arg2 = (PyObject *) 0 ;
20802 PyObject *arg3 = (PyObject *) 0 ;
20803 PyObject *arg4 = (PyObject *) 0 ;
20804 PyObject *result = 0 ;
20805 void *argp1 = 0 ;
20806 int res1 = 0 ;
20807 PyObject * obj0 = 0 ;
20808 PyObject * obj1 = 0 ;
20809 PyObject * obj2 = 0 ;
20810 PyObject * obj3 = 0 ;
20811 char * kwnames[] = {
20812 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20813 };
20814
20815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20817 if (!SWIG_IsOK(res1)) {
20818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
20819 }
20820 arg1 = reinterpret_cast< wxDC * >(argp1);
20821 arg2 = obj1;
20822 arg3 = obj2;
20823 arg4 = obj3;
20824 {
20825 PyThreadState* __tstate = wxPyBeginAllowThreads();
20826 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
20827 wxPyEndAllowThreads(__tstate);
20828 if (PyErr_Occurred()) SWIG_fail;
20829 }
20830 resultobj = result;
20831 return resultobj;
20832fail:
20833 return NULL;
20834}
20835
20836
20837SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20838 PyObject *resultobj = 0;
20839 wxDC *arg1 = (wxDC *) 0 ;
20840 PyObject *arg2 = (PyObject *) 0 ;
20841 PyObject *arg3 = (PyObject *) 0 ;
20842 PyObject *arg4 = (PyObject *) 0 ;
20843 PyObject *result = 0 ;
20844 void *argp1 = 0 ;
20845 int res1 = 0 ;
20846 PyObject * obj0 = 0 ;
20847 PyObject * obj1 = 0 ;
20848 PyObject * obj2 = 0 ;
20849 PyObject * obj3 = 0 ;
20850 char * kwnames[] = {
20851 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20852 };
20853
20854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20856 if (!SWIG_IsOK(res1)) {
20857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
20858 }
20859 arg1 = reinterpret_cast< wxDC * >(argp1);
20860 arg2 = obj1;
20861 arg3 = obj2;
20862 arg4 = obj3;
20863 {
20864 PyThreadState* __tstate = wxPyBeginAllowThreads();
20865 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
20866 wxPyEndAllowThreads(__tstate);
20867 if (PyErr_Occurred()) SWIG_fail;
20868 }
20869 resultobj = result;
20870 return resultobj;
20871fail:
20872 return NULL;
20873}
20874
20875
20876SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20877 PyObject *resultobj = 0;
20878 wxDC *arg1 = (wxDC *) 0 ;
20879 PyObject *arg2 = (PyObject *) 0 ;
20880 PyObject *arg3 = (PyObject *) 0 ;
20881 PyObject *arg4 = (PyObject *) 0 ;
20882 PyObject *result = 0 ;
20883 void *argp1 = 0 ;
20884 int res1 = 0 ;
20885 PyObject * obj0 = 0 ;
20886 PyObject * obj1 = 0 ;
20887 PyObject * obj2 = 0 ;
20888 PyObject * obj3 = 0 ;
20889 char * kwnames[] = {
20890 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20891 };
20892
20893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20895 if (!SWIG_IsOK(res1)) {
20896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
20897 }
20898 arg1 = reinterpret_cast< wxDC * >(argp1);
20899 arg2 = obj1;
20900 arg3 = obj2;
20901 arg4 = obj3;
20902 {
20903 PyThreadState* __tstate = wxPyBeginAllowThreads();
20904 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
20905 wxPyEndAllowThreads(__tstate);
20906 if (PyErr_Occurred()) SWIG_fail;
20907 }
20908 resultobj = result;
20909 return resultobj;
20910fail:
20911 return NULL;
20912}
20913
20914
20915SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20916 PyObject *resultobj = 0;
20917 wxDC *arg1 = (wxDC *) 0 ;
20918 PyObject *arg2 = (PyObject *) 0 ;
20919 PyObject *arg3 = (PyObject *) 0 ;
20920 PyObject *arg4 = (PyObject *) 0 ;
20921 PyObject *result = 0 ;
20922 void *argp1 = 0 ;
20923 int res1 = 0 ;
20924 PyObject * obj0 = 0 ;
20925 PyObject * obj1 = 0 ;
20926 PyObject * obj2 = 0 ;
20927 PyObject * obj3 = 0 ;
20928 char * kwnames[] = {
20929 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20930 };
20931
20932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20934 if (!SWIG_IsOK(res1)) {
20935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
20936 }
20937 arg1 = reinterpret_cast< wxDC * >(argp1);
20938 arg2 = obj1;
20939 arg3 = obj2;
20940 arg4 = obj3;
20941 {
20942 PyThreadState* __tstate = wxPyBeginAllowThreads();
20943 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
20944 wxPyEndAllowThreads(__tstate);
20945 if (PyErr_Occurred()) SWIG_fail;
20946 }
20947 resultobj = result;
20948 return resultobj;
20949fail:
20950 return NULL;
20951}
20952
20953
20954SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20955 PyObject *resultobj = 0;
20956 wxDC *arg1 = (wxDC *) 0 ;
20957 PyObject *arg2 = (PyObject *) 0 ;
20958 PyObject *arg3 = (PyObject *) 0 ;
20959 PyObject *arg4 = (PyObject *) 0 ;
20960 PyObject *arg5 = (PyObject *) 0 ;
20961 PyObject *result = 0 ;
20962 void *argp1 = 0 ;
20963 int res1 = 0 ;
20964 PyObject * obj0 = 0 ;
20965 PyObject * obj1 = 0 ;
20966 PyObject * obj2 = 0 ;
20967 PyObject * obj3 = 0 ;
20968 PyObject * obj4 = 0 ;
20969 char * kwnames[] = {
20970 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
20971 };
20972
20973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20975 if (!SWIG_IsOK(res1)) {
20976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
20977 }
20978 arg1 = reinterpret_cast< wxDC * >(argp1);
20979 arg2 = obj1;
20980 arg3 = obj2;
20981 arg4 = obj3;
20982 arg5 = obj4;
20983 {
20984 PyThreadState* __tstate = wxPyBeginAllowThreads();
20985 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
20986 wxPyEndAllowThreads(__tstate);
20987 if (PyErr_Occurred()) SWIG_fail;
20988 }
20989 resultobj = result;
20990 return resultobj;
20991fail:
20992 return NULL;
20993}
20994
20995
20996SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20997 PyObject *obj;
20998 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20999 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
21000 return SWIG_Py_Void();
21001}
21002
21003SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21004 PyObject *resultobj = 0;
21005 wxMemoryDC *result = 0 ;
21006
21007 if (!SWIG_Python_UnpackTuple(args,"new_MemoryDC",0,0,0)) SWIG_fail;
21008 {
21009 if (!wxPyCheckForApp()) SWIG_fail;
21010 PyThreadState* __tstate = wxPyBeginAllowThreads();
21011 result = (wxMemoryDC *)new wxMemoryDC();
21012 wxPyEndAllowThreads(__tstate);
21013 if (PyErr_Occurred()) SWIG_fail;
21014 }
21015 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
21016 return resultobj;
21017fail:
21018 return NULL;
21019}
21020
21021
21022SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21023 PyObject *resultobj = 0;
21024 wxDC *arg1 = (wxDC *) 0 ;
21025 wxMemoryDC *result = 0 ;
21026 void *argp1 = 0 ;
21027 int res1 = 0 ;
21028 PyObject * obj0 = 0 ;
21029 char * kwnames[] = {
21030 (char *) "oldDC", NULL
21031 };
21032
21033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
21034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21035 if (!SWIG_IsOK(res1)) {
21036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
21037 }
21038 arg1 = reinterpret_cast< wxDC * >(argp1);
21039 {
21040 if (!wxPyCheckForApp()) SWIG_fail;
21041 PyThreadState* __tstate = wxPyBeginAllowThreads();
21042 result = (wxMemoryDC *)new wxMemoryDC(arg1);
21043 wxPyEndAllowThreads(__tstate);
21044 if (PyErr_Occurred()) SWIG_fail;
21045 }
21046 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
21047 return resultobj;
21048fail:
21049 return NULL;
21050}
21051
21052
21053SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21054 PyObject *resultobj = 0;
21055 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
21056 wxBitmap *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 *) "bitmap", NULL
21065 };
21066
21067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
21068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
21069 if (!SWIG_IsOK(res1)) {
21070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
21071 }
21072 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
21073 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
21074 if (!SWIG_IsOK(res2)) {
21075 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21076 }
21077 if (!argp2) {
21078 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21079 }
21080 arg2 = reinterpret_cast< wxBitmap * >(argp2);
21081 {
21082 PyThreadState* __tstate = wxPyBeginAllowThreads();
21083 (arg1)->SelectObject((wxBitmap 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 *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21095 PyObject *obj;
21096 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21097 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
21098 return SWIG_Py_Void();
21099}
21100
21101SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21102 return SWIG_Python_InitShadowInstance(args);
21103}
21104
21105SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
21106 PyObject *resultobj = 0;
21107 wxDC *arg1 = (wxDC *) 0 ;
21108 wxBitmap const &arg2_defvalue = wxNullBitmap ;
21109 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
21110 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
21111 wxBufferedDC *result = 0 ;
21112 void *argp1 = 0 ;
21113 int res1 = 0 ;
21114 void *argp2 = 0 ;
21115 int res2 = 0 ;
21116 int val3 ;
21117 int ecode3 = 0 ;
21118
21119 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
21120 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21121 if (!SWIG_IsOK(res1)) {
21122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
21123 }
21124 arg1 = reinterpret_cast< wxDC * >(argp1);
21125 if (swig_obj[1]) {
21126 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
21127 if (!SWIG_IsOK(res2)) {
21128 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
093d3ff1 21129 }
554f62e9
RD
21130 if (!argp2) {
21131 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
093d3ff1 21132 }
554f62e9
RD
21133 arg2 = reinterpret_cast< wxBitmap * >(argp2);
21134 }
21135 if (swig_obj[2]) {
21136 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
21137 if (!SWIG_IsOK(ecode3)) {
21138 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
21139 }
21140 arg3 = static_cast< int >(val3);
21141 }
21142 {
21143 if (!wxPyCheckForApp()) SWIG_fail;
21144 PyThreadState* __tstate = wxPyBeginAllowThreads();
21145 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
21146 wxPyEndAllowThreads(__tstate);
21147 if (PyErr_Occurred()) SWIG_fail;
21148 }
21149 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
21150 return resultobj;
21151fail:
21152 return NULL;
21153}
21154
21155
21156SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
21157 PyObject *resultobj = 0;
21158 wxDC *arg1 = (wxDC *) 0 ;
21159 wxSize *arg2 = 0 ;
21160 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
21161 wxBufferedDC *result = 0 ;
21162 void *argp1 = 0 ;
21163 int res1 = 0 ;
21164 wxSize temp2 ;
21165 int val3 ;
21166 int ecode3 = 0 ;
21167
21168 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
21169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21170 if (!SWIG_IsOK(res1)) {
21171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
21172 }
21173 arg1 = reinterpret_cast< wxDC * >(argp1);
21174 {
21175 arg2 = &temp2;
21176 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
21177 }
21178 if (swig_obj[2]) {
21179 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
21180 if (!SWIG_IsOK(ecode3)) {
21181 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
21182 }
21183 arg3 = static_cast< int >(val3);
21184 }
21185 {
21186 if (!wxPyCheckForApp()) SWIG_fail;
21187 PyThreadState* __tstate = wxPyBeginAllowThreads();
21188 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
21189 wxPyEndAllowThreads(__tstate);
21190 if (PyErr_Occurred()) SWIG_fail;
21191 }
21192 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
21193 return resultobj;
21194fail:
21195 return NULL;
21196}
21197
21198
21199SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
21200 int argc;
21201 PyObject *argv[4];
21202
21203 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
21204 --argc;
21205 if ((argc >= 1) && (argc <= 3)) {
21206 int _v = 0;
21207 if (argc > 1) {
21208 {
21209 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
21210 _v = SWIG_CheckState(res);
21211 }
21212 if (!_v) goto check_1;
093d3ff1 21213 }
554f62e9
RD
21214 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
21215 }
21216check_1:
21217
21218 if ((argc >= 2) && (argc <= 3)) {
21219 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
21220 }
21221
21222fail:
21223 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
21224 return NULL;
21225}
21226
21227
21228SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21229 PyObject *resultobj = 0;
21230 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
21231 void *argp1 = 0 ;
21232 int res1 = 0 ;
21233 PyObject *swig_obj[1] ;
21234
21235 if (!args) SWIG_fail;
21236 swig_obj[0] = args;
21237 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
21238 if (!SWIG_IsOK(res1)) {
21239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
21240 }
21241 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
21242 {
21243 PyThreadState* __tstate = wxPyBeginAllowThreads();
21244 delete arg1;
21245
21246 wxPyEndAllowThreads(__tstate);
21247 if (PyErr_Occurred()) SWIG_fail;
21248 }
21249 resultobj = SWIG_Py_Void();
21250 return resultobj;
21251fail:
21252 return NULL;
21253}
21254
21255
21256SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21257 PyObject *resultobj = 0;
21258 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
21259 void *argp1 = 0 ;
21260 int res1 = 0 ;
21261 PyObject *swig_obj[1] ;
21262
21263 if (!args) SWIG_fail;
21264 swig_obj[0] = args;
21265 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
21266 if (!SWIG_IsOK(res1)) {
21267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
21268 }
21269 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
21270 {
21271 PyThreadState* __tstate = wxPyBeginAllowThreads();
21272 (arg1)->UnMask();
21273 wxPyEndAllowThreads(__tstate);
21274 if (PyErr_Occurred()) SWIG_fail;
21275 }
21276 resultobj = SWIG_Py_Void();
21277 return resultobj;
21278fail:
21279 return NULL;
21280}
21281
21282
21283SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21284 PyObject *obj;
21285 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21286 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
21287 return SWIG_Py_Void();
21288}
21289
21290SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21291 return SWIG_Python_InitShadowInstance(args);
21292}
21293
21294SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21295 PyObject *resultobj = 0;
21296 wxWindow *arg1 = (wxWindow *) 0 ;
21297 wxBitmap const &arg2_defvalue = wxNullBitmap ;
21298 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
21299 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
21300 wxBufferedPaintDC *result = 0 ;
21301 void *argp1 = 0 ;
21302 int res1 = 0 ;
21303 void *argp2 = 0 ;
21304 int res2 = 0 ;
21305 int val3 ;
21306 int ecode3 = 0 ;
21307 PyObject * obj0 = 0 ;
21308 PyObject * obj1 = 0 ;
21309 PyObject * obj2 = 0 ;
21310 char * kwnames[] = {
21311 (char *) "window",(char *) "buffer",(char *) "style", NULL
21312 };
21313
21314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21316 if (!SWIG_IsOK(res1)) {
21317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
21318 }
21319 arg1 = reinterpret_cast< wxWindow * >(argp1);
21320 if (obj1) {
21321 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
21322 if (!SWIG_IsOK(res2)) {
21323 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
093d3ff1 21324 }
554f62e9
RD
21325 if (!argp2) {
21326 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
093d3ff1 21327 }
554f62e9
RD
21328 arg2 = reinterpret_cast< wxBitmap * >(argp2);
21329 }
21330 if (obj2) {
21331 ecode3 = SWIG_AsVal_int(obj2, &val3);
21332 if (!SWIG_IsOK(ecode3)) {
21333 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
21334 }
21335 arg3 = static_cast< int >(val3);
21336 }
21337 {
21338 if (!wxPyCheckForApp()) SWIG_fail;
21339 PyThreadState* __tstate = wxPyBeginAllowThreads();
21340 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
21341 wxPyEndAllowThreads(__tstate);
21342 if (PyErr_Occurred()) SWIG_fail;
21343 }
21344 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
21345 return resultobj;
21346fail:
21347 return NULL;
21348}
21349
21350
21351SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21352 PyObject *obj;
21353 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21354 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
21355 return SWIG_Py_Void();
21356}
21357
21358SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21359 return SWIG_Python_InitShadowInstance(args);
21360}
21361
21362SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21363 PyObject *resultobj = 0;
21364 wxScreenDC *result = 0 ;
21365
21366 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
21367 {
21368 if (!wxPyCheckForApp()) SWIG_fail;
21369 PyThreadState* __tstate = wxPyBeginAllowThreads();
21370 result = (wxScreenDC *)new wxScreenDC();
21371 wxPyEndAllowThreads(__tstate);
21372 if (PyErr_Occurred()) SWIG_fail;
21373 }
21374 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
21375 return resultobj;
21376fail:
21377 return NULL;
21378}
21379
21380
21381SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21382 PyObject *resultobj = 0;
21383 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
21384 wxWindow *arg2 = (wxWindow *) 0 ;
21385 bool result;
21386 void *argp1 = 0 ;
21387 int res1 = 0 ;
21388 void *argp2 = 0 ;
21389 int res2 = 0 ;
21390 PyObject * obj0 = 0 ;
21391 PyObject * obj1 = 0 ;
21392 char * kwnames[] = {
21393 (char *) "self",(char *) "window", NULL
21394 };
21395
21396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
21397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
21398 if (!SWIG_IsOK(res1)) {
21399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
21400 }
21401 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
21402 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21403 if (!SWIG_IsOK(res2)) {
21404 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
21405 }
21406 arg2 = reinterpret_cast< wxWindow * >(argp2);
21407 {
21408 PyThreadState* __tstate = wxPyBeginAllowThreads();
21409 result = (bool)(arg1)->StartDrawingOnTop(arg2);
21410 wxPyEndAllowThreads(__tstate);
21411 if (PyErr_Occurred()) SWIG_fail;
21412 }
21413 {
21414 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21415 }
21416 return resultobj;
21417fail:
21418 return NULL;
21419}
21420
21421
21422SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21423 PyObject *resultobj = 0;
21424 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
21425 wxRect *arg2 = (wxRect *) NULL ;
21426 bool result;
21427 void *argp1 = 0 ;
21428 int res1 = 0 ;
21429 void *argp2 = 0 ;
21430 int res2 = 0 ;
21431 PyObject * obj0 = 0 ;
21432 PyObject * obj1 = 0 ;
21433 char * kwnames[] = {
21434 (char *) "self",(char *) "rect", NULL
21435 };
21436
21437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
21438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
21439 if (!SWIG_IsOK(res1)) {
21440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
21441 }
21442 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
21443 if (obj1) {
21444 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
21445 if (!SWIG_IsOK(res2)) {
21446 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
093d3ff1 21447 }
554f62e9
RD
21448 arg2 = reinterpret_cast< wxRect * >(argp2);
21449 }
21450 {
21451 PyThreadState* __tstate = wxPyBeginAllowThreads();
21452 result = (bool)(arg1)->StartDrawingOnTop(arg2);
21453 wxPyEndAllowThreads(__tstate);
21454 if (PyErr_Occurred()) SWIG_fail;
21455 }
21456 {
21457 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21458 }
21459 return resultobj;
21460fail:
21461 return NULL;
21462}
21463
21464
21465SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21466 PyObject *resultobj = 0;
21467 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
21468 bool result;
21469 void *argp1 = 0 ;
21470 int res1 = 0 ;
21471 PyObject *swig_obj[1] ;
21472
21473 if (!args) SWIG_fail;
21474 swig_obj[0] = args;
21475 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
21476 if (!SWIG_IsOK(res1)) {
21477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
21478 }
21479 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
21480 {
21481 PyThreadState* __tstate = wxPyBeginAllowThreads();
21482 result = (bool)(arg1)->EndDrawingOnTop();
21483 wxPyEndAllowThreads(__tstate);
21484 if (PyErr_Occurred()) SWIG_fail;
21485 }
21486 {
21487 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21488 }
21489 return resultobj;
21490fail:
21491 return NULL;
21492}
21493
21494
21495SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21496 PyObject *obj;
21497 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21498 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
21499 return SWIG_Py_Void();
21500}
21501
21502SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21503 return SWIG_Python_InitShadowInstance(args);
21504}
21505
21506SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21507 PyObject *resultobj = 0;
21508 wxWindow *arg1 = (wxWindow *) 0 ;
21509 wxClientDC *result = 0 ;
21510 void *argp1 = 0 ;
21511 int res1 = 0 ;
21512 PyObject * obj0 = 0 ;
21513 char * kwnames[] = {
21514 (char *) "win", NULL
21515 };
21516
21517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
21518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21519 if (!SWIG_IsOK(res1)) {
21520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
21521 }
21522 arg1 = reinterpret_cast< wxWindow * >(argp1);
21523 {
21524 if (!wxPyCheckForApp()) SWIG_fail;
21525 PyThreadState* __tstate = wxPyBeginAllowThreads();
21526 result = (wxClientDC *)new wxClientDC(arg1);
21527 wxPyEndAllowThreads(__tstate);
21528 if (PyErr_Occurred()) SWIG_fail;
21529 }
21530 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
21531 return resultobj;
21532fail:
21533 return NULL;
21534}
21535
21536
21537SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21538 PyObject *obj;
21539 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21540 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
21541 return SWIG_Py_Void();
21542}
21543
21544SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21545 return SWIG_Python_InitShadowInstance(args);
21546}
21547
21548SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21549 PyObject *resultobj = 0;
21550 wxWindow *arg1 = (wxWindow *) 0 ;
21551 wxPaintDC *result = 0 ;
21552 void *argp1 = 0 ;
21553 int res1 = 0 ;
21554 PyObject * obj0 = 0 ;
21555 char * kwnames[] = {
21556 (char *) "win", NULL
21557 };
21558
21559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
21560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21561 if (!SWIG_IsOK(res1)) {
21562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
21563 }
21564 arg1 = reinterpret_cast< wxWindow * >(argp1);
21565 {
21566 if (!wxPyCheckForApp()) SWIG_fail;
21567 PyThreadState* __tstate = wxPyBeginAllowThreads();
21568 result = (wxPaintDC *)new wxPaintDC(arg1);
21569 wxPyEndAllowThreads(__tstate);
21570 if (PyErr_Occurred()) SWIG_fail;
21571 }
21572 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
21573 return resultobj;
21574fail:
21575 return NULL;
21576}
21577
21578
21579SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21580 PyObject *obj;
21581 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21582 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
21583 return SWIG_Py_Void();
21584}
21585
21586SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21587 return SWIG_Python_InitShadowInstance(args);
21588}
21589
21590SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21591 PyObject *resultobj = 0;
21592 wxWindow *arg1 = (wxWindow *) 0 ;
21593 wxWindowDC *result = 0 ;
21594 void *argp1 = 0 ;
21595 int res1 = 0 ;
21596 PyObject * obj0 = 0 ;
21597 char * kwnames[] = {
21598 (char *) "win", NULL
21599 };
21600
21601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
21602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21603 if (!SWIG_IsOK(res1)) {
21604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
21605 }
21606 arg1 = reinterpret_cast< wxWindow * >(argp1);
21607 {
21608 if (!wxPyCheckForApp()) SWIG_fail;
21609 PyThreadState* __tstate = wxPyBeginAllowThreads();
21610 result = (wxWindowDC *)new wxWindowDC(arg1);
21611 wxPyEndAllowThreads(__tstate);
21612 if (PyErr_Occurred()) SWIG_fail;
21613 }
21614 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
21615 return resultobj;
21616fail:
21617 return NULL;
21618}
21619
21620
21621SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21622 PyObject *obj;
21623 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21624 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
21625 return SWIG_Py_Void();
21626}
21627
21628SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21629 return SWIG_Python_InitShadowInstance(args);
21630}
21631
21632SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21633 PyObject *resultobj = 0;
21634 wxDC *arg1 = 0 ;
21635 bool arg2 ;
21636 wxMirrorDC *result = 0 ;
21637 void *argp1 = 0 ;
21638 int res1 = 0 ;
21639 bool val2 ;
21640 int ecode2 = 0 ;
21641 PyObject * obj0 = 0 ;
21642 PyObject * obj1 = 0 ;
21643 char * kwnames[] = {
21644 (char *) "dc",(char *) "mirror", NULL
21645 };
21646
21647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
21648 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
21649 if (!SWIG_IsOK(res1)) {
21650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
21651 }
21652 if (!argp1) {
21653 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
21654 }
21655 arg1 = reinterpret_cast< wxDC * >(argp1);
21656 ecode2 = SWIG_AsVal_bool(obj1, &val2);
21657 if (!SWIG_IsOK(ecode2)) {
21658 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
21659 }
21660 arg2 = static_cast< bool >(val2);
21661 {
21662 if (!wxPyCheckForApp()) SWIG_fail;
21663 PyThreadState* __tstate = wxPyBeginAllowThreads();
21664 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
21665 wxPyEndAllowThreads(__tstate);
21666 if (PyErr_Occurred()) SWIG_fail;
21667 }
21668 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
21669 return resultobj;
21670fail:
21671 return NULL;
21672}
21673
21674
21675SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21676 PyObject *obj;
21677 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21678 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
21679 return SWIG_Py_Void();
21680}
21681
21682SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21683 return SWIG_Python_InitShadowInstance(args);
21684}
21685
21686SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21687 PyObject *resultobj = 0;
21688 wxPrintData *arg1 = 0 ;
21689 wxPostScriptDC *result = 0 ;
21690 void *argp1 = 0 ;
21691 int res1 = 0 ;
21692 PyObject * obj0 = 0 ;
21693 char * kwnames[] = {
21694 (char *) "printData", NULL
21695 };
21696
21697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
21698 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
21699 if (!SWIG_IsOK(res1)) {
21700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
21701 }
21702 if (!argp1) {
21703 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
21704 }
21705 arg1 = reinterpret_cast< wxPrintData * >(argp1);
21706 {
21707 if (!wxPyCheckForApp()) SWIG_fail;
21708 PyThreadState* __tstate = wxPyBeginAllowThreads();
21709 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
21710 wxPyEndAllowThreads(__tstate);
21711 if (PyErr_Occurred()) SWIG_fail;
21712 }
21713 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
21714 return resultobj;
21715fail:
21716 return NULL;
21717}
21718
21719
21720SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21721 PyObject *resultobj = 0;
21722 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
21723 wxPrintData *result = 0 ;
21724 void *argp1 = 0 ;
21725 int res1 = 0 ;
21726 PyObject *swig_obj[1] ;
21727
21728 if (!args) SWIG_fail;
21729 swig_obj[0] = args;
21730 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
21731 if (!SWIG_IsOK(res1)) {
21732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
21733 }
21734 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
21735 {
21736 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 21737 {
554f62e9
RD
21738 wxPrintData &_result_ref = (arg1)->GetPrintData();
21739 result = (wxPrintData *) &_result_ref;
093d3ff1 21740 }
554f62e9
RD
21741 wxPyEndAllowThreads(__tstate);
21742 if (PyErr_Occurred()) SWIG_fail;
21743 }
21744 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
21745 return resultobj;
21746fail:
21747 return NULL;
21748}
21749
21750
21751SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21752 PyObject *resultobj = 0;
21753 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
21754 wxPrintData *arg2 = 0 ;
21755 void *argp1 = 0 ;
21756 int res1 = 0 ;
21757 void *argp2 = 0 ;
21758 int res2 = 0 ;
21759 PyObject * obj0 = 0 ;
21760 PyObject * obj1 = 0 ;
21761 char * kwnames[] = {
21762 (char *) "self",(char *) "data", NULL
21763 };
21764
21765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
21766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
21767 if (!SWIG_IsOK(res1)) {
21768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
21769 }
21770 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
21771 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
21772 if (!SWIG_IsOK(res2)) {
21773 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
21774 }
21775 if (!argp2) {
21776 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
21777 }
21778 arg2 = reinterpret_cast< wxPrintData * >(argp2);
21779 {
21780 PyThreadState* __tstate = wxPyBeginAllowThreads();
21781 (arg1)->SetPrintData((wxPrintData const &)*arg2);
21782 wxPyEndAllowThreads(__tstate);
21783 if (PyErr_Occurred()) SWIG_fail;
21784 }
21785 resultobj = SWIG_Py_Void();
21786 return resultobj;
21787fail:
21788 return NULL;
21789}
21790
21791
21792SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21793 PyObject *resultobj = 0;
21794 int arg1 ;
21795 int val1 ;
21796 int ecode1 = 0 ;
21797 PyObject * obj0 = 0 ;
21798 char * kwnames[] = {
21799 (char *) "ppi", NULL
21800 };
21801
21802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
21803 ecode1 = SWIG_AsVal_int(obj0, &val1);
21804 if (!SWIG_IsOK(ecode1)) {
21805 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
21806 }
21807 arg1 = static_cast< int >(val1);
21808 {
21809 PyThreadState* __tstate = wxPyBeginAllowThreads();
21810 wxPostScriptDC::SetResolution(arg1);
21811 wxPyEndAllowThreads(__tstate);
21812 if (PyErr_Occurred()) SWIG_fail;
21813 }
21814 resultobj = SWIG_Py_Void();
21815 return resultobj;
21816fail:
21817 return NULL;
21818}
21819
21820
21821SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21822 PyObject *resultobj = 0;
21823 int result;
21824
21825 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
21826 {
21827 PyThreadState* __tstate = wxPyBeginAllowThreads();
21828 result = (int)wxPostScriptDC::GetResolution();
21829 wxPyEndAllowThreads(__tstate);
21830 if (PyErr_Occurred()) SWIG_fail;
21831 }
21832 resultobj = SWIG_From_int(static_cast< int >(result));
21833 return resultobj;
21834fail:
21835 return NULL;
21836}
21837
21838
21839SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21840 PyObject *obj;
21841 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21842 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
21843 return SWIG_Py_Void();
21844}
21845
21846SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21847 return SWIG_Python_InitShadowInstance(args);
21848}
21849
21850SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21851 PyObject *resultobj = 0;
21852 wxString const &arg1_defvalue = wxPyEmptyString ;
21853 wxString *arg1 = (wxString *) &arg1_defvalue ;
21854 wxMetaFile *result = 0 ;
21855 bool temp1 = false ;
21856 PyObject * obj0 = 0 ;
21857 char * kwnames[] = {
21858 (char *) "filename", NULL
21859 };
21860
21861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
21862 if (obj0) {
093d3ff1 21863 {
554f62e9
RD
21864 arg1 = wxString_in_helper(obj0);
21865 if (arg1 == NULL) SWIG_fail;
21866 temp1 = true;
093d3ff1 21867 }
554f62e9
RD
21868 }
21869 {
21870 if (!wxPyCheckForApp()) SWIG_fail;
21871 PyThreadState* __tstate = wxPyBeginAllowThreads();
21872 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
21873 wxPyEndAllowThreads(__tstate);
21874 if (PyErr_Occurred()) SWIG_fail;
21875 }
21876 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
21877 {
21878 if (temp1)
21879 delete arg1;
21880 }
21881 return resultobj;
21882fail:
21883 {
21884 if (temp1)
21885 delete arg1;
21886 }
21887 return NULL;
21888}
21889
21890
21891SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21892 PyObject *resultobj = 0;
21893 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21894 void *argp1 = 0 ;
21895 int res1 = 0 ;
21896 PyObject *swig_obj[1] ;
21897
21898 if (!args) SWIG_fail;
21899 swig_obj[0] = args;
21900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
21901 if (!SWIG_IsOK(res1)) {
21902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21903 }
21904 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21905 {
21906 PyThreadState* __tstate = wxPyBeginAllowThreads();
21907 delete arg1;
21908
21909 wxPyEndAllowThreads(__tstate);
21910 if (PyErr_Occurred()) SWIG_fail;
21911 }
21912 resultobj = SWIG_Py_Void();
21913 return resultobj;
21914fail:
21915 return NULL;
21916}
21917
21918
21919SWIGINTERN PyObject *_wrap_MetaFile_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21920 PyObject *resultobj = 0;
21921 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21922 bool result;
21923 void *argp1 = 0 ;
21924 int res1 = 0 ;
21925 PyObject *swig_obj[1] ;
21926
21927 if (!args) SWIG_fail;
21928 swig_obj[0] = args;
21929 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
21930 if (!SWIG_IsOK(res1)) {
21931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_Ok" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21932 }
21933 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21934 {
21935 PyThreadState* __tstate = wxPyBeginAllowThreads();
21936 result = (bool)(arg1)->Ok();
21937 wxPyEndAllowThreads(__tstate);
21938 if (PyErr_Occurred()) SWIG_fail;
21939 }
21940 {
21941 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21942 }
21943 return resultobj;
21944fail:
21945 return NULL;
21946}
21947
21948
21949SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21950 PyObject *resultobj = 0;
21951 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21952 int arg2 = (int) 0 ;
21953 int arg3 = (int) 0 ;
21954 bool result;
21955 void *argp1 = 0 ;
21956 int res1 = 0 ;
21957 int val2 ;
21958 int ecode2 = 0 ;
21959 int val3 ;
21960 int ecode3 = 0 ;
21961 PyObject * obj0 = 0 ;
21962 PyObject * obj1 = 0 ;
21963 PyObject * obj2 = 0 ;
21964 char * kwnames[] = {
21965 (char *) "self",(char *) "width",(char *) "height", NULL
21966 };
21967
21968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
21970 if (!SWIG_IsOK(res1)) {
21971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21972 }
21973 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21974 if (obj1) {
21975 ecode2 = SWIG_AsVal_int(obj1, &val2);
21976 if (!SWIG_IsOK(ecode2)) {
21977 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
21978 }
21979 arg2 = static_cast< int >(val2);
21980 }
21981 if (obj2) {
21982 ecode3 = SWIG_AsVal_int(obj2, &val3);
21983 if (!SWIG_IsOK(ecode3)) {
21984 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
21985 }
21986 arg3 = static_cast< int >(val3);
21987 }
21988 {
21989 PyThreadState* __tstate = wxPyBeginAllowThreads();
21990 result = (bool)(arg1)->SetClipboard(arg2,arg3);
21991 wxPyEndAllowThreads(__tstate);
21992 if (PyErr_Occurred()) SWIG_fail;
21993 }
21994 {
21995 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21996 }
21997 return resultobj;
21998fail:
21999 return NULL;
22000}
22001
22002
22003SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22004 PyObject *resultobj = 0;
22005 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
22006 wxSize result;
22007 void *argp1 = 0 ;
22008 int res1 = 0 ;
22009 PyObject *swig_obj[1] ;
22010
22011 if (!args) SWIG_fail;
22012 swig_obj[0] = args;
22013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
22014 if (!SWIG_IsOK(res1)) {
22015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
22016 }
22017 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
22018 {
22019 PyThreadState* __tstate = wxPyBeginAllowThreads();
22020 result = (arg1)->GetSize();
22021 wxPyEndAllowThreads(__tstate);
22022 if (PyErr_Occurred()) SWIG_fail;
22023 }
22024 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
22025 return resultobj;
22026fail:
22027 return NULL;
22028}
22029
22030
22031SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22032 PyObject *resultobj = 0;
22033 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
22034 int result;
22035 void *argp1 = 0 ;
22036 int res1 = 0 ;
22037 PyObject *swig_obj[1] ;
22038
22039 if (!args) SWIG_fail;
22040 swig_obj[0] = args;
22041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
22042 if (!SWIG_IsOK(res1)) {
22043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
22044 }
22045 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
22046 {
22047 PyThreadState* __tstate = wxPyBeginAllowThreads();
22048 result = (int)(arg1)->GetWidth();
22049 wxPyEndAllowThreads(__tstate);
22050 if (PyErr_Occurred()) SWIG_fail;
22051 }
22052 resultobj = SWIG_From_int(static_cast< int >(result));
22053 return resultobj;
22054fail:
22055 return NULL;
22056}
22057
22058
22059SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22060 PyObject *resultobj = 0;
22061 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
22062 int result;
22063 void *argp1 = 0 ;
22064 int res1 = 0 ;
22065 PyObject *swig_obj[1] ;
22066
22067 if (!args) SWIG_fail;
22068 swig_obj[0] = args;
22069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
22070 if (!SWIG_IsOK(res1)) {
22071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
22072 }
22073 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
22074 {
22075 PyThreadState* __tstate = wxPyBeginAllowThreads();
22076 result = (int)(arg1)->GetHeight();
22077 wxPyEndAllowThreads(__tstate);
22078 if (PyErr_Occurred()) SWIG_fail;
22079 }
22080 resultobj = SWIG_From_int(static_cast< int >(result));
22081 return resultobj;
22082fail:
22083 return NULL;
22084}
22085
22086
22087SWIGINTERN PyObject *_wrap_MetaFile_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22088 PyObject *resultobj = 0;
22089 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
22090 wxString *result = 0 ;
22091 void *argp1 = 0 ;
22092 int res1 = 0 ;
22093 PyObject *swig_obj[1] ;
22094
22095 if (!args) SWIG_fail;
22096 swig_obj[0] = args;
22097 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
22098 if (!SWIG_IsOK(res1)) {
22099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetFileName" "', expected argument " "1"" of type '" "wxMetaFile const *""'");
22100 }
22101 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
22102 {
22103 PyThreadState* __tstate = wxPyBeginAllowThreads();
e2950dbb 22104 {
554f62e9
RD
22105 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
22106 result = (wxString *) &_result_ref;
e2950dbb 22107 }
554f62e9
RD
22108 wxPyEndAllowThreads(__tstate);
22109 if (PyErr_Occurred()) SWIG_fail;
22110 }
22111 {
22112#if wxUSE_UNICODE
22113 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
22114#else
22115 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
22116#endif
22117 }
22118 return resultobj;
22119fail:
22120 return NULL;
22121}
22122
22123
22124SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22125 PyObject *obj;
22126 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22127 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
22128 return SWIG_Py_Void();
22129}
22130
22131SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22132 return SWIG_Python_InitShadowInstance(args);
22133}
22134
22135SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22136 PyObject *resultobj = 0;
22137 wxString const &arg1_defvalue = wxPyEmptyString ;
22138 wxString *arg1 = (wxString *) &arg1_defvalue ;
22139 int arg2 = (int) 0 ;
22140 int arg3 = (int) 0 ;
22141 wxString const &arg4_defvalue = wxPyEmptyString ;
22142 wxString *arg4 = (wxString *) &arg4_defvalue ;
22143 wxMetaFileDC *result = 0 ;
22144 bool temp1 = false ;
22145 int val2 ;
22146 int ecode2 = 0 ;
22147 int val3 ;
22148 int ecode3 = 0 ;
22149 bool temp4 = false ;
22150 PyObject * obj0 = 0 ;
22151 PyObject * obj1 = 0 ;
22152 PyObject * obj2 = 0 ;
22153 PyObject * obj3 = 0 ;
22154 char * kwnames[] = {
22155 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
22156 };
22157
22158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22159 if (obj0) {
e2950dbb 22160 {
554f62e9
RD
22161 arg1 = wxString_in_helper(obj0);
22162 if (arg1 == NULL) SWIG_fail;
22163 temp1 = true;
e2950dbb 22164 }
554f62e9
RD
22165 }
22166 if (obj1) {
22167 ecode2 = SWIG_AsVal_int(obj1, &val2);
22168 if (!SWIG_IsOK(ecode2)) {
22169 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
22170 }
22171 arg2 = static_cast< int >(val2);
22172 }
22173 if (obj2) {
22174 ecode3 = SWIG_AsVal_int(obj2, &val3);
22175 if (!SWIG_IsOK(ecode3)) {
22176 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
22177 }
22178 arg3 = static_cast< int >(val3);
22179 }
22180 if (obj3) {
093d3ff1 22181 {
554f62e9
RD
22182 arg4 = wxString_in_helper(obj3);
22183 if (arg4 == NULL) SWIG_fail;
22184 temp4 = true;
093d3ff1 22185 }
554f62e9
RD
22186 }
22187 {
22188 if (!wxPyCheckForApp()) SWIG_fail;
22189 PyThreadState* __tstate = wxPyBeginAllowThreads();
22190 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
22191 wxPyEndAllowThreads(__tstate);
22192 if (PyErr_Occurred()) SWIG_fail;
22193 }
22194 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
22195 {
22196 if (temp1)
22197 delete arg1;
22198 }
22199 {
22200 if (temp4)
22201 delete arg4;
22202 }
22203 return resultobj;
22204fail:
22205 {
22206 if (temp1)
22207 delete arg1;
22208 }
22209 {
22210 if (temp4)
22211 delete arg4;
22212 }
22213 return NULL;
22214}
22215
22216
22217SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22218 PyObject *resultobj = 0;
22219 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
22220 wxMetaFile *result = 0 ;
22221 void *argp1 = 0 ;
22222 int res1 = 0 ;
22223 PyObject *swig_obj[1] ;
22224
22225 if (!args) SWIG_fail;
22226 swig_obj[0] = args;
22227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
22228 if (!SWIG_IsOK(res1)) {
22229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
22230 }
22231 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
22232 {
22233 PyThreadState* __tstate = wxPyBeginAllowThreads();
22234 result = (wxMetaFile *)(arg1)->Close();
22235 wxPyEndAllowThreads(__tstate);
22236 if (PyErr_Occurred()) SWIG_fail;
22237 }
22238 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
22239 return resultobj;
22240fail:
22241 return NULL;
22242}
22243
22244
22245SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22246 PyObject *obj;
22247 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22248 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
22249 return SWIG_Py_Void();
22250}
22251
22252SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22253 return SWIG_Python_InitShadowInstance(args);
22254}
22255
22256SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22257 PyObject *resultobj = 0;
22258 wxPrintData *arg1 = 0 ;
22259 wxPrinterDC *result = 0 ;
22260 void *argp1 = 0 ;
22261 int res1 = 0 ;
22262 PyObject * obj0 = 0 ;
22263 char * kwnames[] = {
22264 (char *) "printData", NULL
22265 };
22266
22267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
22268 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
22269 if (!SWIG_IsOK(res1)) {
22270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
22271 }
22272 if (!argp1) {
22273 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
22274 }
22275 arg1 = reinterpret_cast< wxPrintData * >(argp1);
22276 {
22277 if (!wxPyCheckForApp()) SWIG_fail;
22278 PyThreadState* __tstate = wxPyBeginAllowThreads();
22279 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
22280 wxPyEndAllowThreads(__tstate);
22281 if (PyErr_Occurred()) SWIG_fail;
22282 }
22283 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
22284 return resultobj;
22285fail:
22286 return NULL;
22287}
22288
22289
22290SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22291 PyObject *obj;
22292 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22293 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
22294 return SWIG_Py_Void();
22295}
22296
22297SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22298 return SWIG_Python_InitShadowInstance(args);
22299}
22300
22301SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22302 PyObject *resultobj = 0;
22303 int arg1 ;
22304 int arg2 ;
22305 int arg3 = (int) true ;
22306 int arg4 = (int) 1 ;
22307 wxImageList *result = 0 ;
22308 int val1 ;
22309 int ecode1 = 0 ;
22310 int val2 ;
22311 int ecode2 = 0 ;
22312 int val3 ;
22313 int ecode3 = 0 ;
22314 int val4 ;
22315 int ecode4 = 0 ;
22316 PyObject * obj0 = 0 ;
22317 PyObject * obj1 = 0 ;
22318 PyObject * obj2 = 0 ;
22319 PyObject * obj3 = 0 ;
22320 char * kwnames[] = {
22321 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
22322 };
22323
22324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22325 ecode1 = SWIG_AsVal_int(obj0, &val1);
22326 if (!SWIG_IsOK(ecode1)) {
22327 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
22328 }
22329 arg1 = static_cast< int >(val1);
22330 ecode2 = SWIG_AsVal_int(obj1, &val2);
22331 if (!SWIG_IsOK(ecode2)) {
22332 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
22333 }
22334 arg2 = static_cast< int >(val2);
22335 if (obj2) {
22336 ecode3 = SWIG_AsVal_int(obj2, &val3);
22337 if (!SWIG_IsOK(ecode3)) {
22338 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
22339 }
22340 arg3 = static_cast< int >(val3);
22341 }
22342 if (obj3) {
22343 ecode4 = SWIG_AsVal_int(obj3, &val4);
22344 if (!SWIG_IsOK(ecode4)) {
22345 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
22346 }
22347 arg4 = static_cast< int >(val4);
22348 }
22349 {
22350 if (!wxPyCheckForApp()) SWIG_fail;
22351 PyThreadState* __tstate = wxPyBeginAllowThreads();
22352 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
22353 wxPyEndAllowThreads(__tstate);
22354 if (PyErr_Occurred()) SWIG_fail;
22355 }
22356 {
22357 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
22358 }
22359 return resultobj;
22360fail:
22361 return NULL;
22362}
22363
22364
22365SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22366 PyObject *resultobj = 0;
22367 wxImageList *arg1 = (wxImageList *) 0 ;
22368 void *argp1 = 0 ;
22369 int res1 = 0 ;
22370 PyObject *swig_obj[1] ;
22371
22372 if (!args) SWIG_fail;
22373 swig_obj[0] = args;
22374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
22375 if (!SWIG_IsOK(res1)) {
22376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
22377 }
22378 arg1 = reinterpret_cast< wxImageList * >(argp1);
22379 {
22380 PyThreadState* __tstate = wxPyBeginAllowThreads();
22381 delete arg1;
22382
22383 wxPyEndAllowThreads(__tstate);
22384 if (PyErr_Occurred()) SWIG_fail;
22385 }
22386 resultobj = SWIG_Py_Void();
22387 return resultobj;
22388fail:
22389 return NULL;
22390}
22391
22392
22393SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22394 PyObject *resultobj = 0;
22395 wxImageList *arg1 = (wxImageList *) 0 ;
22396 wxBitmap *arg2 = 0 ;
22397 wxBitmap const &arg3_defvalue = wxNullBitmap ;
22398 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
22399 int result;
22400 void *argp1 = 0 ;
22401 int res1 = 0 ;
22402 void *argp2 = 0 ;
22403 int res2 = 0 ;
22404 void *argp3 = 0 ;
22405 int res3 = 0 ;
22406 PyObject * obj0 = 0 ;
22407 PyObject * obj1 = 0 ;
22408 PyObject * obj2 = 0 ;
22409 char * kwnames[] = {
22410 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
22411 };
22412
22413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22415 if (!SWIG_IsOK(res1)) {
22416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
22417 }
22418 arg1 = reinterpret_cast< wxImageList * >(argp1);
22419 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
22420 if (!SWIG_IsOK(res2)) {
22421 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22422 }
22423 if (!argp2) {
22424 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22425 }
22426 arg2 = reinterpret_cast< wxBitmap * >(argp2);
22427 if (obj2) {
22428 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
22429 if (!SWIG_IsOK(res3)) {
22430 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
093d3ff1 22431 }
554f62e9
RD
22432 if (!argp3) {
22433 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
093d3ff1 22434 }
554f62e9
RD
22435 arg3 = reinterpret_cast< wxBitmap * >(argp3);
22436 }
22437 {
22438 PyThreadState* __tstate = wxPyBeginAllowThreads();
22439 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
22440 wxPyEndAllowThreads(__tstate);
22441 if (PyErr_Occurred()) SWIG_fail;
22442 }
22443 resultobj = SWIG_From_int(static_cast< int >(result));
22444 return resultobj;
22445fail:
22446 return NULL;
22447}
22448
22449
22450SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22451 PyObject *resultobj = 0;
22452 wxImageList *arg1 = (wxImageList *) 0 ;
22453 wxBitmap *arg2 = 0 ;
22454 wxColour *arg3 = 0 ;
22455 int result;
22456 void *argp1 = 0 ;
22457 int res1 = 0 ;
22458 void *argp2 = 0 ;
22459 int res2 = 0 ;
22460 wxColour temp3 ;
22461 PyObject * obj0 = 0 ;
22462 PyObject * obj1 = 0 ;
22463 PyObject * obj2 = 0 ;
22464 char * kwnames[] = {
22465 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
22466 };
22467
22468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22470 if (!SWIG_IsOK(res1)) {
22471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
22472 }
22473 arg1 = reinterpret_cast< wxImageList * >(argp1);
22474 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
22475 if (!SWIG_IsOK(res2)) {
22476 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22477 }
22478 if (!argp2) {
22479 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22480 }
22481 arg2 = reinterpret_cast< wxBitmap * >(argp2);
22482 {
22483 arg3 = &temp3;
22484 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
22485 }
22486 {
22487 PyThreadState* __tstate = wxPyBeginAllowThreads();
22488 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
22489 wxPyEndAllowThreads(__tstate);
22490 if (PyErr_Occurred()) SWIG_fail;
22491 }
22492 resultobj = SWIG_From_int(static_cast< int >(result));
22493 return resultobj;
22494fail:
22495 return NULL;
22496}
22497
22498
22499SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22500 PyObject *resultobj = 0;
22501 wxImageList *arg1 = (wxImageList *) 0 ;
22502 wxIcon *arg2 = 0 ;
22503 int result;
22504 void *argp1 = 0 ;
22505 int res1 = 0 ;
22506 void *argp2 = 0 ;
22507 int res2 = 0 ;
22508 PyObject * obj0 = 0 ;
22509 PyObject * obj1 = 0 ;
22510 char * kwnames[] = {
22511 (char *) "self",(char *) "icon", NULL
22512 };
22513
22514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
22515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22516 if (!SWIG_IsOK(res1)) {
22517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
22518 }
22519 arg1 = reinterpret_cast< wxImageList * >(argp1);
22520 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
22521 if (!SWIG_IsOK(res2)) {
22522 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
22523 }
22524 if (!argp2) {
22525 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
22526 }
22527 arg2 = reinterpret_cast< wxIcon * >(argp2);
22528 {
22529 PyThreadState* __tstate = wxPyBeginAllowThreads();
22530 result = (int)(arg1)->Add((wxIcon const &)*arg2);
22531 wxPyEndAllowThreads(__tstate);
22532 if (PyErr_Occurred()) SWIG_fail;
22533 }
22534 resultobj = SWIG_From_int(static_cast< int >(result));
22535 return resultobj;
22536fail:
22537 return NULL;
22538}
22539
22540
22541SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22542 PyObject *resultobj = 0;
22543 wxImageList *arg1 = (wxImageList *) 0 ;
22544 int arg2 ;
22545 SwigValueWrapper<wxBitmap > result;
22546 void *argp1 = 0 ;
22547 int res1 = 0 ;
22548 int val2 ;
22549 int ecode2 = 0 ;
22550 PyObject * obj0 = 0 ;
22551 PyObject * obj1 = 0 ;
22552 char * kwnames[] = {
22553 (char *) "self",(char *) "index", NULL
22554 };
22555
22556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
22557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22558 if (!SWIG_IsOK(res1)) {
22559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
22560 }
22561 arg1 = reinterpret_cast< wxImageList * >(argp1);
22562 ecode2 = SWIG_AsVal_int(obj1, &val2);
22563 if (!SWIG_IsOK(ecode2)) {
22564 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
22565 }
22566 arg2 = static_cast< int >(val2);
22567 {
22568 PyThreadState* __tstate = wxPyBeginAllowThreads();
22569 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
22570 wxPyEndAllowThreads(__tstate);
22571 if (PyErr_Occurred()) SWIG_fail;
22572 }
22573 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
22574 return resultobj;
22575fail:
22576 return NULL;
22577}
22578
22579
22580SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22581 PyObject *resultobj = 0;
22582 wxImageList *arg1 = (wxImageList *) 0 ;
22583 int arg2 ;
22584 wxIcon result;
22585 void *argp1 = 0 ;
22586 int res1 = 0 ;
22587 int val2 ;
22588 int ecode2 = 0 ;
22589 PyObject * obj0 = 0 ;
22590 PyObject * obj1 = 0 ;
22591 char * kwnames[] = {
22592 (char *) "self",(char *) "index", NULL
22593 };
22594
22595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
22596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22597 if (!SWIG_IsOK(res1)) {
22598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
22599 }
22600 arg1 = reinterpret_cast< wxImageList * >(argp1);
22601 ecode2 = SWIG_AsVal_int(obj1, &val2);
22602 if (!SWIG_IsOK(ecode2)) {
22603 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
22604 }
22605 arg2 = static_cast< int >(val2);
22606 {
22607 PyThreadState* __tstate = wxPyBeginAllowThreads();
22608 result = ((wxImageList const *)arg1)->GetIcon(arg2);
22609 wxPyEndAllowThreads(__tstate);
22610 if (PyErr_Occurred()) SWIG_fail;
22611 }
22612 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
22613 return resultobj;
22614fail:
22615 return NULL;
22616}
22617
22618
22619SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22620 PyObject *resultobj = 0;
22621 wxImageList *arg1 = (wxImageList *) 0 ;
22622 int arg2 ;
22623 wxBitmap *arg3 = 0 ;
22624 wxBitmap const &arg4_defvalue = wxNullBitmap ;
22625 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
22626 bool result;
22627 void *argp1 = 0 ;
22628 int res1 = 0 ;
22629 int val2 ;
22630 int ecode2 = 0 ;
22631 void *argp3 = 0 ;
22632 int res3 = 0 ;
22633 void *argp4 = 0 ;
22634 int res4 = 0 ;
22635 PyObject * obj0 = 0 ;
22636 PyObject * obj1 = 0 ;
22637 PyObject * obj2 = 0 ;
22638 PyObject * obj3 = 0 ;
22639 char * kwnames[] = {
22640 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
22641 };
22642
22643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22645 if (!SWIG_IsOK(res1)) {
22646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
22647 }
22648 arg1 = reinterpret_cast< wxImageList * >(argp1);
22649 ecode2 = SWIG_AsVal_int(obj1, &val2);
22650 if (!SWIG_IsOK(ecode2)) {
22651 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
22652 }
22653 arg2 = static_cast< int >(val2);
22654 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
22655 if (!SWIG_IsOK(res3)) {
22656 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
22657 }
22658 if (!argp3) {
22659 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
22660 }
22661 arg3 = reinterpret_cast< wxBitmap * >(argp3);
22662 if (obj3) {
22663 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
22664 if (!SWIG_IsOK(res4)) {
22665 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
093d3ff1 22666 }
554f62e9
RD
22667 if (!argp4) {
22668 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
093d3ff1 22669 }
554f62e9
RD
22670 arg4 = reinterpret_cast< wxBitmap * >(argp4);
22671 }
22672 {
22673 PyThreadState* __tstate = wxPyBeginAllowThreads();
22674 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
22675 wxPyEndAllowThreads(__tstate);
22676 if (PyErr_Occurred()) SWIG_fail;
22677 }
22678 {
22679 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22680 }
22681 return resultobj;
22682fail:
22683 return NULL;
22684}
22685
22686
22687SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22688 PyObject *resultobj = 0;
22689 wxImageList *arg1 = (wxImageList *) 0 ;
22690 int arg2 ;
22691 wxDC *arg3 = 0 ;
22692 int arg4 ;
22693 int arg5 ;
22694 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
22695 bool arg7 = (bool) (bool)false ;
22696 bool result;
22697 void *argp1 = 0 ;
22698 int res1 = 0 ;
22699 int val2 ;
22700 int ecode2 = 0 ;
22701 void *argp3 = 0 ;
22702 int res3 = 0 ;
22703 int val4 ;
22704 int ecode4 = 0 ;
22705 int val5 ;
22706 int ecode5 = 0 ;
22707 int val6 ;
22708 int ecode6 = 0 ;
22709 bool val7 ;
22710 int ecode7 = 0 ;
22711 PyObject * obj0 = 0 ;
22712 PyObject * obj1 = 0 ;
22713 PyObject * obj2 = 0 ;
22714 PyObject * obj3 = 0 ;
22715 PyObject * obj4 = 0 ;
22716 PyObject * obj5 = 0 ;
22717 PyObject * obj6 = 0 ;
22718 char * kwnames[] = {
22719 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
22720 };
22721
22722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22724 if (!SWIG_IsOK(res1)) {
22725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
22726 }
22727 arg1 = reinterpret_cast< wxImageList * >(argp1);
22728 ecode2 = SWIG_AsVal_int(obj1, &val2);
22729 if (!SWIG_IsOK(ecode2)) {
22730 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
22731 }
22732 arg2 = static_cast< int >(val2);
22733 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
22734 if (!SWIG_IsOK(res3)) {
22735 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
22736 }
22737 if (!argp3) {
22738 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
22739 }
22740 arg3 = reinterpret_cast< wxDC * >(argp3);
22741 ecode4 = SWIG_AsVal_int(obj3, &val4);
22742 if (!SWIG_IsOK(ecode4)) {
22743 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
22744 }
22745 arg4 = static_cast< int >(val4);
22746 ecode5 = SWIG_AsVal_int(obj4, &val5);
22747 if (!SWIG_IsOK(ecode5)) {
22748 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
22749 }
22750 arg5 = static_cast< int >(val5);
22751 if (obj5) {
22752 ecode6 = SWIG_AsVal_int(obj5, &val6);
22753 if (!SWIG_IsOK(ecode6)) {
22754 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
22755 }
22756 arg6 = static_cast< int >(val6);
22757 }
22758 if (obj6) {
22759 ecode7 = SWIG_AsVal_bool(obj6, &val7);
22760 if (!SWIG_IsOK(ecode7)) {
22761 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
22762 }
22763 arg7 = static_cast< bool >(val7);
22764 }
22765 {
22766 PyThreadState* __tstate = wxPyBeginAllowThreads();
22767 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
22768 wxPyEndAllowThreads(__tstate);
22769 if (PyErr_Occurred()) SWIG_fail;
22770 }
22771 {
22772 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22773 }
22774 return resultobj;
22775fail:
22776 return NULL;
22777}
22778
22779
22780SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22781 PyObject *resultobj = 0;
22782 wxImageList *arg1 = (wxImageList *) 0 ;
22783 int result;
22784 void *argp1 = 0 ;
22785 int res1 = 0 ;
22786 PyObject *swig_obj[1] ;
22787
22788 if (!args) SWIG_fail;
22789 swig_obj[0] = args;
22790 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22791 if (!SWIG_IsOK(res1)) {
22792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
22793 }
22794 arg1 = reinterpret_cast< wxImageList * >(argp1);
22795 {
22796 PyThreadState* __tstate = wxPyBeginAllowThreads();
22797 result = (int)(arg1)->GetImageCount();
22798 wxPyEndAllowThreads(__tstate);
22799 if (PyErr_Occurred()) SWIG_fail;
22800 }
22801 resultobj = SWIG_From_int(static_cast< int >(result));
22802 return resultobj;
22803fail:
22804 return NULL;
22805}
22806
22807
22808SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22809 PyObject *resultobj = 0;
22810 wxImageList *arg1 = (wxImageList *) 0 ;
22811 int arg2 ;
22812 bool result;
22813 void *argp1 = 0 ;
22814 int res1 = 0 ;
22815 int val2 ;
22816 int ecode2 = 0 ;
22817 PyObject * obj0 = 0 ;
22818 PyObject * obj1 = 0 ;
22819 char * kwnames[] = {
22820 (char *) "self",(char *) "index", NULL
22821 };
22822
22823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
22824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22825 if (!SWIG_IsOK(res1)) {
22826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
22827 }
22828 arg1 = reinterpret_cast< wxImageList * >(argp1);
22829 ecode2 = SWIG_AsVal_int(obj1, &val2);
22830 if (!SWIG_IsOK(ecode2)) {
22831 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
22832 }
22833 arg2 = static_cast< int >(val2);
22834 {
22835 PyThreadState* __tstate = wxPyBeginAllowThreads();
22836 result = (bool)(arg1)->Remove(arg2);
22837 wxPyEndAllowThreads(__tstate);
22838 if (PyErr_Occurred()) SWIG_fail;
22839 }
22840 {
22841 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22842 }
22843 return resultobj;
22844fail:
22845 return NULL;
22846}
22847
22848
22849SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22850 PyObject *resultobj = 0;
22851 wxImageList *arg1 = (wxImageList *) 0 ;
22852 bool result;
22853 void *argp1 = 0 ;
22854 int res1 = 0 ;
22855 PyObject *swig_obj[1] ;
22856
22857 if (!args) SWIG_fail;
22858 swig_obj[0] = args;
22859 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22860 if (!SWIG_IsOK(res1)) {
22861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
22862 }
22863 arg1 = reinterpret_cast< wxImageList * >(argp1);
22864 {
22865 PyThreadState* __tstate = wxPyBeginAllowThreads();
22866 result = (bool)(arg1)->RemoveAll();
22867 wxPyEndAllowThreads(__tstate);
22868 if (PyErr_Occurred()) SWIG_fail;
22869 }
22870 {
22871 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22872 }
22873 return resultobj;
22874fail:
22875 return NULL;
22876}
22877
22878
22879SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22880 PyObject *resultobj = 0;
22881 wxImageList *arg1 = (wxImageList *) 0 ;
22882 int arg2 ;
22883 int *arg3 = 0 ;
22884 int *arg4 = 0 ;
22885 void *argp1 = 0 ;
22886 int res1 = 0 ;
22887 int val2 ;
22888 int ecode2 = 0 ;
22889 int temp3 ;
22890 int res3 = SWIG_TMPOBJ ;
22891 int temp4 ;
22892 int res4 = SWIG_TMPOBJ ;
22893 PyObject * obj0 = 0 ;
22894 PyObject * obj1 = 0 ;
22895 char * kwnames[] = {
22896 (char *) "self",(char *) "index", NULL
22897 };
22898
22899 arg3 = &temp3;
22900 arg4 = &temp4;
22901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
22902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22903 if (!SWIG_IsOK(res1)) {
22904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
22905 }
22906 arg1 = reinterpret_cast< wxImageList * >(argp1);
22907 ecode2 = SWIG_AsVal_int(obj1, &val2);
22908 if (!SWIG_IsOK(ecode2)) {
22909 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
22910 }
22911 arg2 = static_cast< int >(val2);
22912 {
22913 PyThreadState* __tstate = wxPyBeginAllowThreads();
22914 (arg1)->GetSize(arg2,*arg3,*arg4);
22915 wxPyEndAllowThreads(__tstate);
22916 if (PyErr_Occurred()) SWIG_fail;
22917 }
22918 resultobj = SWIG_Py_Void();
22919 if (SWIG_IsTmpObj(res3)) {
22920 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22921 } else {
22922 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22923 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22924 }
22925 if (SWIG_IsTmpObj(res4)) {
22926 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
22927 } else {
22928 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22929 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
22930 }
22931 return resultobj;
22932fail:
22933 return NULL;
22934}
22935
22936
22937SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22938 PyObject *obj;
22939 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22940 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
22941 return SWIG_Py_Void();
22942}
22943
22944SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22945 return SWIG_Python_InitShadowInstance(args);
22946}
22947
50efceee
RD
22948SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22949 PyObject *resultobj = 0;
22950 wxStockGDI *result = 0 ;
554f62e9 22951
50efceee
RD
22952 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
22953 {
22954 PyThreadState* __tstate = wxPyBeginAllowThreads();
22955 result = (wxStockGDI *)new wxStockGDI();
22956 wxPyEndAllowThreads(__tstate);
22957 if (PyErr_Occurred()) SWIG_fail;
22958 }
22959 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
22960 return resultobj;
22961fail:
22962 return NULL;
554f62e9
RD
22963}
22964
22965
50efceee
RD
22966SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22967 PyObject *resultobj = 0;
22968 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
22969 void *argp1 = 0 ;
22970 int res1 = 0 ;
22971 PyObject *swig_obj[1] ;
554f62e9 22972
50efceee
RD
22973 if (!args) SWIG_fail;
22974 swig_obj[0] = args;
22975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
22976 if (!SWIG_IsOK(res1)) {
22977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
22978 }
22979 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
22980 {
22981 PyThreadState* __tstate = wxPyBeginAllowThreads();
22982 delete arg1;
22983
22984 wxPyEndAllowThreads(__tstate);
22985 if (PyErr_Occurred()) SWIG_fail;
22986 }
22987 resultobj = SWIG_Py_Void();
22988 return resultobj;
22989fail:
22990 return NULL;
554f62e9
RD
22991}
22992
22993
50efceee
RD
22994SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22995 PyObject *resultobj = 0;
554f62e9 22996
50efceee
RD
22997 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
22998 {
22999 PyThreadState* __tstate = wxPyBeginAllowThreads();
23000 wxStockGDI::DeleteAll();
23001 wxPyEndAllowThreads(__tstate);
23002 if (PyErr_Occurred()) SWIG_fail;
23003 }
23004 resultobj = SWIG_Py_Void();
23005 return resultobj;
23006fail:
23007 return NULL;
554f62e9
RD
23008}
23009
23010
50efceee
RD
23011SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23012 PyObject *resultobj = 0;
23013 wxStockGDI *result = 0 ;
554f62e9 23014
50efceee
RD
23015 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
23016 {
23017 PyThreadState* __tstate = wxPyBeginAllowThreads();
23018 {
23019 wxStockGDI &_result_ref = wxStockGDI::instance();
23020 result = (wxStockGDI *) &_result_ref;
23021 }
23022 wxPyEndAllowThreads(__tstate);
23023 if (PyErr_Occurred()) SWIG_fail;
23024 }
23025 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
23026 return resultobj;
23027fail:
23028 return NULL;
554f62e9
RD
23029}
23030
23031
50efceee
RD
23032SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23033 PyObject *resultobj = 0;
23034 wxStockGDI::Item arg1 ;
23035 wxBrush *result = 0 ;
23036 int val1 ;
23037 int ecode1 = 0 ;
23038 PyObject * obj0 = 0 ;
23039 char * kwnames[] = {
23040 (char *) "item", NULL
23041 };
23042
23043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
23044 ecode1 = SWIG_AsVal_int(obj0, &val1);
23045 if (!SWIG_IsOK(ecode1)) {
23046 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
23047 }
23048 arg1 = static_cast< wxStockGDI::Item >(val1);
23049 {
23050 PyThreadState* __tstate = wxPyBeginAllowThreads();
23051 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
23052 wxPyEndAllowThreads(__tstate);
23053 if (PyErr_Occurred()) SWIG_fail;
23054 }
23055 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
23056 return resultobj;
23057fail:
23058 return NULL;
554f62e9
RD
23059}
23060
23061
50efceee
RD
23062SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23063 PyObject *resultobj = 0;
23064 wxStockGDI::Item arg1 ;
23065 wxColour *result = 0 ;
23066 int val1 ;
23067 int ecode1 = 0 ;
23068 PyObject * obj0 = 0 ;
23069 char * kwnames[] = {
23070 (char *) "item", NULL
23071 };
554f62e9 23072
50efceee
RD
23073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
23074 ecode1 = SWIG_AsVal_int(obj0, &val1);
23075 if (!SWIG_IsOK(ecode1)) {
23076 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
23077 }
23078 arg1 = static_cast< wxStockGDI::Item >(val1);
23079 {
23080 PyThreadState* __tstate = wxPyBeginAllowThreads();
23081 result = (wxColour *)wxStockGDI::GetColour(arg1);
23082 wxPyEndAllowThreads(__tstate);
23083 if (PyErr_Occurred()) SWIG_fail;
23084 }
23085 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
23086 return resultobj;
23087fail:
23088 return NULL;
554f62e9
RD
23089}
23090
23091
50efceee
RD
23092SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23093 PyObject *resultobj = 0;
23094 wxStockGDI::Item arg1 ;
23095 wxCursor *result = 0 ;
23096 int val1 ;
23097 int ecode1 = 0 ;
23098 PyObject * obj0 = 0 ;
23099 char * kwnames[] = {
23100 (char *) "item", NULL
23101 };
23102
23103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
23104 ecode1 = SWIG_AsVal_int(obj0, &val1);
23105 if (!SWIG_IsOK(ecode1)) {
23106 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
23107 }
23108 arg1 = static_cast< wxStockGDI::Item >(val1);
23109 {
23110 PyThreadState* __tstate = wxPyBeginAllowThreads();
23111 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
23112 wxPyEndAllowThreads(__tstate);
23113 if (PyErr_Occurred()) SWIG_fail;
23114 }
23115 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
23116 return resultobj;
23117fail:
23118 return NULL;
554f62e9
RD
23119}
23120
23121
50efceee
RD
23122SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23123 PyObject *resultobj = 0;
23124 wxStockGDI::Item arg1 ;
23125 wxPen *result = 0 ;
23126 int val1 ;
23127 int ecode1 = 0 ;
23128 PyObject * obj0 = 0 ;
23129 char * kwnames[] = {
23130 (char *) "item", NULL
23131 };
23132
23133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
23134 ecode1 = SWIG_AsVal_int(obj0, &val1);
23135 if (!SWIG_IsOK(ecode1)) {
23136 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
23137 }
23138 arg1 = static_cast< wxStockGDI::Item >(val1);
23139 {
23140 PyThreadState* __tstate = wxPyBeginAllowThreads();
23141 result = (wxPen *)wxStockGDI::GetPen(arg1);
23142 wxPyEndAllowThreads(__tstate);
23143 if (PyErr_Occurred()) SWIG_fail;
23144 }
23145 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
23146 return resultobj;
23147fail:
23148 return NULL;
554f62e9
RD
23149}
23150
23151
50efceee
RD
23152SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23153 PyObject *resultobj = 0;
23154 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
23155 wxStockGDI::Item arg2 ;
23156 wxFont *result = 0 ;
23157 void *argp1 = 0 ;
23158 int res1 = 0 ;
23159 int val2 ;
23160 int ecode2 = 0 ;
23161 PyObject * obj0 = 0 ;
23162 PyObject * obj1 = 0 ;
23163 char * kwnames[] = {
23164 (char *) "self",(char *) "item", NULL
23165 };
554f62e9 23166
50efceee
RD
23167 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
23168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
23169 if (!SWIG_IsOK(res1)) {
23170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
23171 }
23172 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
23173 ecode2 = SWIG_AsVal_int(obj1, &val2);
23174 if (!SWIG_IsOK(ecode2)) {
23175 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
23176 }
23177 arg2 = static_cast< wxStockGDI::Item >(val2);
23178 {
23179 PyThreadState* __tstate = wxPyBeginAllowThreads();
23180 result = (wxFont *)(arg1)->GetFont(arg2);
23181 wxPyEndAllowThreads(__tstate);
23182 if (PyErr_Occurred()) SWIG_fail;
23183 }
23184 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
23185 return resultobj;
23186fail:
23187 return NULL;
554f62e9
RD
23188}
23189
23190
50efceee
RD
23191SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23192 PyObject *obj;
23193 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23194 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
23195 return SWIG_Py_Void();
554f62e9
RD
23196}
23197
50efceee
RD
23198SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23199 return SWIG_Python_InitShadowInstance(args);
554f62e9
RD
23200}
23201
554f62e9
RD
23202SWIGINTERN int NullBitmap_set(PyObject *) {
23203 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
23204 return 1;
23205}
23206
23207
23208SWIGINTERN PyObject *NullBitmap_get(void) {
23209 PyObject *pyobj = 0;
23210
23211 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
23212 return pyobj;
23213}
23214
23215
23216SWIGINTERN int NullIcon_set(PyObject *) {
23217 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
23218 return 1;
23219}
23220
23221
23222SWIGINTERN PyObject *NullIcon_get(void) {
23223 PyObject *pyobj = 0;
23224
23225 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
23226 return pyobj;
23227}
23228
23229
23230SWIGINTERN int NullCursor_set(PyObject *) {
23231 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
23232 return 1;
23233}
23234
23235
23236SWIGINTERN PyObject *NullCursor_get(void) {
23237 PyObject *pyobj = 0;
23238
23239 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
23240 return pyobj;
23241}
23242
23243
23244SWIGINTERN int NullPen_set(PyObject *) {
23245 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
23246 return 1;
23247}
23248
23249
23250SWIGINTERN PyObject *NullPen_get(void) {
23251 PyObject *pyobj = 0;
23252
23253 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
23254 return pyobj;
23255}
23256
23257
23258SWIGINTERN int NullBrush_set(PyObject *) {
23259 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
23260 return 1;
23261}
23262
23263
23264SWIGINTERN PyObject *NullBrush_get(void) {
23265 PyObject *pyobj = 0;
23266
23267 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
23268 return pyobj;
23269}
23270
23271
23272SWIGINTERN int NullPalette_set(PyObject *) {
23273 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
23274 return 1;
23275}
23276
23277
23278SWIGINTERN PyObject *NullPalette_get(void) {
23279 PyObject *pyobj = 0;
23280
23281 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
23282 return pyobj;
23283}
23284
23285
23286SWIGINTERN int NullFont_set(PyObject *) {
23287 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
23288 return 1;
23289}
23290
23291
23292SWIGINTERN PyObject *NullFont_get(void) {
23293 PyObject *pyobj = 0;
23294
23295 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
23296 return pyobj;
23297}
23298
23299
23300SWIGINTERN int NullColour_set(PyObject *) {
23301 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
23302 return 1;
23303}
23304
23305
23306SWIGINTERN PyObject *NullColour_get(void) {
23307 PyObject *pyobj = 0;
23308
23309 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
23310 return pyobj;
23311}
23312
23313
50efceee 23314SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 23315 PyObject *resultobj = 0;
50efceee
RD
23316 wxGDIObjListBase *result = 0 ;
23317
23318 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
23319 {
23320 PyThreadState* __tstate = wxPyBeginAllowThreads();
23321 result = (wxGDIObjListBase *)new wxGDIObjListBase();
23322 wxPyEndAllowThreads(__tstate);
23323 if (PyErr_Occurred()) SWIG_fail;
23324 }
23325 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
23326 return resultobj;
23327fail:
23328 return NULL;
23329}
23330
23331
23332SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23333 PyObject *resultobj = 0;
23334 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
554f62e9
RD
23335 void *argp1 = 0 ;
23336 int res1 = 0 ;
50efceee 23337 PyObject *swig_obj[1] ;
554f62e9 23338
50efceee
RD
23339 if (!args) SWIG_fail;
23340 swig_obj[0] = args;
23341 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
554f62e9 23342 if (!SWIG_IsOK(res1)) {
50efceee 23343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
554f62e9 23344 }
50efceee 23345 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
554f62e9
RD
23346 {
23347 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee
RD
23348 delete arg1;
23349
554f62e9
RD
23350 wxPyEndAllowThreads(__tstate);
23351 if (PyErr_Occurred()) SWIG_fail;
23352 }
23353 resultobj = SWIG_Py_Void();
23354 return resultobj;
23355fail:
23356 return NULL;
23357}
23358
23359
50efceee
RD
23360SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23361 PyObject *obj;
23362 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23363 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
23364 return SWIG_Py_Void();
23365}
23366
23367SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23368 return SWIG_Python_InitShadowInstance(args);
23369}
23370
554f62e9
RD
23371SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23372 PyObject *resultobj = 0;
23373 wxPenList *arg1 = (wxPenList *) 0 ;
23374 wxColour *arg2 = 0 ;
23375 int arg3 ;
23376 int arg4 ;
23377 wxPen *result = 0 ;
23378 void *argp1 = 0 ;
23379 int res1 = 0 ;
23380 wxColour temp2 ;
23381 int val3 ;
23382 int ecode3 = 0 ;
23383 int val4 ;
23384 int ecode4 = 0 ;
23385 PyObject * obj0 = 0 ;
23386 PyObject * obj1 = 0 ;
23387 PyObject * obj2 = 0 ;
23388 PyObject * obj3 = 0 ;
23389 char * kwnames[] = {
23390 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
23391 };
23392
23393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
23395 if (!SWIG_IsOK(res1)) {
23396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
23397 }
23398 arg1 = reinterpret_cast< wxPenList * >(argp1);
23399 {
23400 arg2 = &temp2;
23401 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23402 }
23403 ecode3 = SWIG_AsVal_int(obj2, &val3);
23404 if (!SWIG_IsOK(ecode3)) {
23405 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
23406 }
23407 arg3 = static_cast< int >(val3);
23408 ecode4 = SWIG_AsVal_int(obj3, &val4);
23409 if (!SWIG_IsOK(ecode4)) {
23410 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
23411 }
23412 arg4 = static_cast< int >(val4);
23413 {
23414 PyThreadState* __tstate = wxPyBeginAllowThreads();
23415 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
23416 wxPyEndAllowThreads(__tstate);
23417 if (PyErr_Occurred()) SWIG_fail;
23418 }
23419 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
23420 return resultobj;
23421fail:
23422 return NULL;
23423}
23424
23425
50efceee 23426SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9
RD
23427 PyObject *resultobj = 0;
23428 wxPenList *arg1 = (wxPenList *) 0 ;
23429 wxPen *arg2 = (wxPen *) 0 ;
23430 void *argp1 = 0 ;
23431 int res1 = 0 ;
23432 void *argp2 = 0 ;
23433 int res2 = 0 ;
23434 PyObject * obj0 = 0 ;
23435 PyObject * obj1 = 0 ;
23436 char * kwnames[] = {
23437 (char *) "self",(char *) "pen", NULL
23438 };
23439
50efceee 23440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
554f62e9
RD
23441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
23442 if (!SWIG_IsOK(res1)) {
50efceee 23443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
554f62e9
RD
23444 }
23445 arg1 = reinterpret_cast< wxPenList * >(argp1);
23446 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
23447 if (!SWIG_IsOK(res2)) {
50efceee 23448 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
554f62e9
RD
23449 }
23450 arg2 = reinterpret_cast< wxPen * >(argp2);
23451 {
23452 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 23453 (arg1)->AddPen(arg2);
554f62e9
RD
23454 wxPyEndAllowThreads(__tstate);
23455 if (PyErr_Occurred()) SWIG_fail;
23456 }
23457 resultobj = SWIG_Py_Void();
23458 return resultobj;
23459fail:
23460 return NULL;
23461}
23462
23463
50efceee 23464SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9
RD
23465 PyObject *resultobj = 0;
23466 wxPenList *arg1 = (wxPenList *) 0 ;
50efceee 23467 wxPen *arg2 = (wxPen *) 0 ;
554f62e9
RD
23468 void *argp1 = 0 ;
23469 int res1 = 0 ;
50efceee
RD
23470 void *argp2 = 0 ;
23471 int res2 = 0 ;
23472 PyObject * obj0 = 0 ;
23473 PyObject * obj1 = 0 ;
23474 char * kwnames[] = {
23475 (char *) "self",(char *) "pen", NULL
23476 };
554f62e9 23477
50efceee
RD
23478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
23479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
554f62e9 23480 if (!SWIG_IsOK(res1)) {
50efceee 23481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
554f62e9
RD
23482 }
23483 arg1 = reinterpret_cast< wxPenList * >(argp1);
50efceee
RD
23484 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
23485 if (!SWIG_IsOK(res2)) {
23486 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
23487 }
23488 arg2 = reinterpret_cast< wxPen * >(argp2);
554f62e9
RD
23489 {
23490 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 23491 (arg1)->RemovePen(arg2);
554f62e9
RD
23492 wxPyEndAllowThreads(__tstate);
23493 if (PyErr_Occurred()) SWIG_fail;
23494 }
50efceee 23495 resultobj = SWIG_Py_Void();
554f62e9
RD
23496 return resultobj;
23497fail:
23498 return NULL;
23499}
23500
23501
23502SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23503 PyObject *obj;
23504 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23505 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
23506 return SWIG_Py_Void();
23507}
23508
50efceee
RD
23509SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23510 PyObject *resultobj = 0;
23511 wxBrushList *arg1 = (wxBrushList *) 0 ;
23512 wxColour *arg2 = 0 ;
23513 int arg3 = (int) wxSOLID ;
23514 wxBrush *result = 0 ;
23515 void *argp1 = 0 ;
23516 int res1 = 0 ;
23517 wxColour temp2 ;
23518 int val3 ;
23519 int ecode3 = 0 ;
23520 PyObject * obj0 = 0 ;
23521 PyObject * obj1 = 0 ;
23522 PyObject * obj2 = 0 ;
23523 char * kwnames[] = {
23524 (char *) "self",(char *) "colour",(char *) "style", NULL
23525 };
23526
23527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
23529 if (!SWIG_IsOK(res1)) {
23530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
23531 }
23532 arg1 = reinterpret_cast< wxBrushList * >(argp1);
23533 {
23534 arg2 = &temp2;
23535 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23536 }
23537 if (obj2) {
23538 ecode3 = SWIG_AsVal_int(obj2, &val3);
23539 if (!SWIG_IsOK(ecode3)) {
23540 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
23541 }
23542 arg3 = static_cast< int >(val3);
23543 }
23544 {
23545 PyThreadState* __tstate = wxPyBeginAllowThreads();
23546 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
23547 wxPyEndAllowThreads(__tstate);
23548 if (PyErr_Occurred()) SWIG_fail;
23549 }
23550 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
23551 return resultobj;
23552fail:
23553 return NULL;
23554}
23555
23556
554f62e9
RD
23557SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23558 PyObject *resultobj = 0;
23559 wxBrushList *arg1 = (wxBrushList *) 0 ;
23560 wxBrush *arg2 = (wxBrush *) 0 ;
23561 void *argp1 = 0 ;
23562 int res1 = 0 ;
23563 void *argp2 = 0 ;
23564 int res2 = 0 ;
23565 PyObject * obj0 = 0 ;
23566 PyObject * obj1 = 0 ;
23567 char * kwnames[] = {
23568 (char *) "self",(char *) "brush", NULL
23569 };
23570
23571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
23572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
23573 if (!SWIG_IsOK(res1)) {
23574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
23575 }
23576 arg1 = reinterpret_cast< wxBrushList * >(argp1);
23577 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
23578 if (!SWIG_IsOK(res2)) {
23579 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
23580 }
23581 arg2 = reinterpret_cast< wxBrush * >(argp2);
23582 {
23583 PyThreadState* __tstate = wxPyBeginAllowThreads();
23584 (arg1)->AddBrush(arg2);
23585 wxPyEndAllowThreads(__tstate);
23586 if (PyErr_Occurred()) SWIG_fail;
23587 }
23588 resultobj = SWIG_Py_Void();
23589 return resultobj;
23590fail:
23591 return NULL;
23592}
23593
23594
50efceee 23595SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9
RD
23596 PyObject *resultobj = 0;
23597 wxBrushList *arg1 = (wxBrushList *) 0 ;
50efceee 23598 wxBrush *arg2 = (wxBrush *) 0 ;
554f62e9
RD
23599 void *argp1 = 0 ;
23600 int res1 = 0 ;
50efceee
RD
23601 void *argp2 = 0 ;
23602 int res2 = 0 ;
23603 PyObject * obj0 = 0 ;
23604 PyObject * obj1 = 0 ;
23605 char * kwnames[] = {
23606 (char *) "self",(char *) "brush", NULL
23607 };
23608
23609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
23610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
23611 if (!SWIG_IsOK(res1)) {
23612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
23613 }
23614 arg1 = reinterpret_cast< wxBrushList * >(argp1);
23615 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
23616 if (!SWIG_IsOK(res2)) {
23617 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
23618 }
23619 arg2 = reinterpret_cast< wxBrush * >(argp2);
23620 {
23621 PyThreadState* __tstate = wxPyBeginAllowThreads();
23622 (arg1)->RemoveBrush(arg2);
23623 wxPyEndAllowThreads(__tstate);
23624 if (PyErr_Occurred()) SWIG_fail;
23625 }
23626 resultobj = SWIG_Py_Void();
23627 return resultobj;
23628fail:
23629 return NULL;
23630}
23631
23632
23633SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23634 PyObject *obj;
23635 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23636 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
23637 return SWIG_Py_Void();
23638}
23639
23640SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23641 PyObject *resultobj = 0;
23642 wxFontList *arg1 = (wxFontList *) 0 ;
23643 int arg2 ;
23644 int arg3 ;
23645 int arg4 ;
23646 int arg5 ;
23647 bool arg6 = (bool) false ;
23648 wxString const &arg7_defvalue = wxPyEmptyString ;
23649 wxString *arg7 = (wxString *) &arg7_defvalue ;
23650 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
23651 wxFont *result = 0 ;
23652 void *argp1 = 0 ;
23653 int res1 = 0 ;
23654 int val2 ;
23655 int ecode2 = 0 ;
554f62e9
RD
23656 int val3 ;
23657 int ecode3 = 0 ;
50efceee
RD
23658 int val4 ;
23659 int ecode4 = 0 ;
23660 int val5 ;
23661 int ecode5 = 0 ;
23662 bool val6 ;
23663 int ecode6 = 0 ;
23664 bool temp7 = false ;
23665 int val8 ;
23666 int ecode8 = 0 ;
554f62e9
RD
23667 PyObject * obj0 = 0 ;
23668 PyObject * obj1 = 0 ;
23669 PyObject * obj2 = 0 ;
50efceee
RD
23670 PyObject * obj3 = 0 ;
23671 PyObject * obj4 = 0 ;
23672 PyObject * obj5 = 0 ;
23673 PyObject * obj6 = 0 ;
23674 PyObject * obj7 = 0 ;
554f62e9 23675 char * kwnames[] = {
50efceee 23676 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
554f62e9
RD
23677 };
23678
50efceee
RD
23679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
23680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
554f62e9 23681 if (!SWIG_IsOK(res1)) {
50efceee 23682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
554f62e9 23683 }
50efceee
RD
23684 arg1 = reinterpret_cast< wxFontList * >(argp1);
23685 ecode2 = SWIG_AsVal_int(obj1, &val2);
23686 if (!SWIG_IsOK(ecode2)) {
23687 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
23688 }
23689 arg2 = static_cast< int >(val2);
23690 ecode3 = SWIG_AsVal_int(obj2, &val3);
23691 if (!SWIG_IsOK(ecode3)) {
23692 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
23693 }
23694 arg3 = static_cast< int >(val3);
23695 ecode4 = SWIG_AsVal_int(obj3, &val4);
23696 if (!SWIG_IsOK(ecode4)) {
23697 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
23698 }
23699 arg4 = static_cast< int >(val4);
23700 ecode5 = SWIG_AsVal_int(obj4, &val5);
23701 if (!SWIG_IsOK(ecode5)) {
23702 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
23703 }
23704 arg5 = static_cast< int >(val5);
23705 if (obj5) {
23706 ecode6 = SWIG_AsVal_bool(obj5, &val6);
23707 if (!SWIG_IsOK(ecode6)) {
23708 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
23709 }
23710 arg6 = static_cast< bool >(val6);
554f62e9 23711 }
50efceee
RD
23712 if (obj6) {
23713 {
23714 arg7 = wxString_in_helper(obj6);
23715 if (arg7 == NULL) SWIG_fail;
23716 temp7 = true;
23717 }
23718 }
23719 if (obj7) {
23720 ecode8 = SWIG_AsVal_int(obj7, &val8);
23721 if (!SWIG_IsOK(ecode8)) {
23722 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
554f62e9 23723 }
50efceee 23724 arg8 = static_cast< wxFontEncoding >(val8);
554f62e9
RD
23725 }
23726 {
23727 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 23728 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
554f62e9
RD
23729 wxPyEndAllowThreads(__tstate);
23730 if (PyErr_Occurred()) SWIG_fail;
23731 }
50efceee
RD
23732 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
23733 {
23734 if (temp7)
23735 delete arg7;
23736 }
554f62e9
RD
23737 return resultobj;
23738fail:
50efceee
RD
23739 {
23740 if (temp7)
23741 delete arg7;
23742 }
554f62e9
RD
23743 return NULL;
23744}
23745
23746
50efceee 23747SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 23748 PyObject *resultobj = 0;
50efceee
RD
23749 wxFontList *arg1 = (wxFontList *) 0 ;
23750 wxFont *arg2 = (wxFont *) 0 ;
554f62e9
RD
23751 void *argp1 = 0 ;
23752 int res1 = 0 ;
23753 void *argp2 = 0 ;
23754 int res2 = 0 ;
23755 PyObject * obj0 = 0 ;
23756 PyObject * obj1 = 0 ;
23757 char * kwnames[] = {
50efceee 23758 (char *) "self",(char *) "font", NULL
554f62e9
RD
23759 };
23760
50efceee
RD
23761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
23762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
554f62e9 23763 if (!SWIG_IsOK(res1)) {
50efceee 23764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
554f62e9 23765 }
50efceee
RD
23766 arg1 = reinterpret_cast< wxFontList * >(argp1);
23767 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
554f62e9 23768 if (!SWIG_IsOK(res2)) {
50efceee 23769 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
554f62e9 23770 }
50efceee 23771 arg2 = reinterpret_cast< wxFont * >(argp2);
554f62e9
RD
23772 {
23773 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 23774 (arg1)->AddFont(arg2);
554f62e9
RD
23775 wxPyEndAllowThreads(__tstate);
23776 if (PyErr_Occurred()) SWIG_fail;
23777 }
23778 resultobj = SWIG_Py_Void();
23779 return resultobj;
23780fail:
23781 return NULL;
23782}
23783
23784
50efceee 23785SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
554f62e9 23786 PyObject *resultobj = 0;
50efceee
RD
23787 wxFontList *arg1 = (wxFontList *) 0 ;
23788 wxFont *arg2 = (wxFont *) 0 ;
554f62e9
RD
23789 void *argp1 = 0 ;
23790 int res1 = 0 ;
50efceee
RD
23791 void *argp2 = 0 ;
23792 int res2 = 0 ;
23793 PyObject * obj0 = 0 ;
23794 PyObject * obj1 = 0 ;
23795 char * kwnames[] = {
23796 (char *) "self",(char *) "font", NULL
23797 };
554f62e9 23798
50efceee
RD
23799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
23800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
554f62e9 23801 if (!SWIG_IsOK(res1)) {
50efceee 23802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
554f62e9 23803 }
50efceee
RD
23804 arg1 = reinterpret_cast< wxFontList * >(argp1);
23805 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
23806 if (!SWIG_IsOK(res2)) {
23807 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
23808 }
23809 arg2 = reinterpret_cast< wxFont * >(argp2);
554f62e9
RD
23810 {
23811 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 23812 (arg1)->RemoveFont(arg2);
554f62e9
RD
23813 wxPyEndAllowThreads(__tstate);
23814 if (PyErr_Occurred()) SWIG_fail;
23815 }
50efceee 23816 resultobj = SWIG_Py_Void();
554f62e9
RD
23817 return resultobj;
23818fail:
23819 return NULL;
23820}
23821
23822
50efceee 23823SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9
RD
23824 PyObject *obj;
23825 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
50efceee 23826 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
554f62e9
RD
23827 return SWIG_Py_Void();
23828}
23829
23830SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23831 PyObject *resultobj = 0;
23832 wxColourDatabase *result = 0 ;
23833
23834 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
23835 {
23836 if (!wxPyCheckForApp()) SWIG_fail;
23837 PyThreadState* __tstate = wxPyBeginAllowThreads();
23838 result = (wxColourDatabase *)new wxColourDatabase();
23839 wxPyEndAllowThreads(__tstate);
23840 if (PyErr_Occurred()) SWIG_fail;
23841 }
23842 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
23843 return resultobj;
23844fail:
23845 return NULL;
23846}
23847
23848
23849SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23850 PyObject *resultobj = 0;
23851 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23852 void *argp1 = 0 ;
23853 int res1 = 0 ;
23854 PyObject *swig_obj[1] ;
23855
23856 if (!args) SWIG_fail;
23857 swig_obj[0] = args;
23858 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
23859 if (!SWIG_IsOK(res1)) {
23860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
23861 }
23862 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23863 {
23864 PyThreadState* __tstate = wxPyBeginAllowThreads();
23865 delete arg1;
23866
23867 wxPyEndAllowThreads(__tstate);
23868 if (PyErr_Occurred()) SWIG_fail;
23869 }
23870 resultobj = SWIG_Py_Void();
23871 return resultobj;
23872fail:
23873 return NULL;
23874}
23875
23876
23877SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23878 PyObject *resultobj = 0;
23879 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23880 wxString *arg2 = 0 ;
23881 wxColour result;
23882 void *argp1 = 0 ;
23883 int res1 = 0 ;
23884 bool temp2 = false ;
23885 PyObject * obj0 = 0 ;
23886 PyObject * obj1 = 0 ;
23887 char * kwnames[] = {
23888 (char *) "self",(char *) "name", NULL
23889 };
23890
23891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
23892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23893 if (!SWIG_IsOK(res1)) {
23894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
23895 }
23896 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23897 {
23898 arg2 = wxString_in_helper(obj1);
23899 if (arg2 == NULL) SWIG_fail;
23900 temp2 = true;
23901 }
23902 {
23903 PyThreadState* __tstate = wxPyBeginAllowThreads();
23904 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
23905 wxPyEndAllowThreads(__tstate);
23906 if (PyErr_Occurred()) SWIG_fail;
23907 }
23908 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23909 {
23910 if (temp2)
23911 delete arg2;
23912 }
23913 return resultobj;
23914fail:
23915 {
23916 if (temp2)
23917 delete arg2;
23918 }
23919 return NULL;
23920}
23921
23922
23923SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23924 PyObject *resultobj = 0;
23925 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23926 wxColour *arg2 = 0 ;
23927 wxString result;
23928 void *argp1 = 0 ;
23929 int res1 = 0 ;
23930 wxColour temp2 ;
23931 PyObject * obj0 = 0 ;
23932 PyObject * obj1 = 0 ;
23933 char * kwnames[] = {
23934 (char *) "self",(char *) "colour", NULL
23935 };
23936
23937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
23938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23939 if (!SWIG_IsOK(res1)) {
23940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
23941 }
23942 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23943 {
23944 arg2 = &temp2;
23945 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23946 }
23947 {
23948 PyThreadState* __tstate = wxPyBeginAllowThreads();
23949 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
23950 wxPyEndAllowThreads(__tstate);
23951 if (PyErr_Occurred()) SWIG_fail;
23952 }
23953 {
23954#if wxUSE_UNICODE
23955 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23956#else
23957 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23958#endif
23959 }
23960 return resultobj;
23961fail:
23962 return NULL;
23963}
23964
23965
23966SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23967 PyObject *resultobj = 0;
23968 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23969 wxString *arg2 = 0 ;
23970 wxColour *arg3 = 0 ;
23971 void *argp1 = 0 ;
23972 int res1 = 0 ;
23973 bool temp2 = false ;
23974 wxColour temp3 ;
23975 PyObject * obj0 = 0 ;
23976 PyObject * obj1 = 0 ;
23977 PyObject * obj2 = 0 ;
23978 char * kwnames[] = {
23979 (char *) "self",(char *) "name",(char *) "colour", NULL
23980 };
23981
23982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23984 if (!SWIG_IsOK(res1)) {
23985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
23986 }
23987 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23988 {
23989 arg2 = wxString_in_helper(obj1);
23990 if (arg2 == NULL) SWIG_fail;
23991 temp2 = true;
23992 }
23993 {
23994 arg3 = &temp3;
23995 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23996 }
23997 {
23998 PyThreadState* __tstate = wxPyBeginAllowThreads();
23999 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
24000 wxPyEndAllowThreads(__tstate);
24001 if (PyErr_Occurred()) SWIG_fail;
24002 }
24003 resultobj = SWIG_Py_Void();
24004 {
24005 if (temp2)
24006 delete arg2;
24007 }
24008 return resultobj;
24009fail:
24010 {
24011 if (temp2)
24012 delete arg2;
24013 }
24014 return NULL;
24015}
24016
24017
24018SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24019 PyObject *resultobj = 0;
24020 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
24021 wxString *arg2 = 0 ;
24022 int arg3 ;
24023 int arg4 ;
24024 int arg5 ;
24025 void *argp1 = 0 ;
24026 int res1 = 0 ;
24027 bool temp2 = false ;
24028 int val3 ;
24029 int ecode3 = 0 ;
24030 int val4 ;
24031 int ecode4 = 0 ;
50efceee
RD
24032 int val5 ;
24033 int ecode5 = 0 ;
554f62e9
RD
24034 PyObject * obj0 = 0 ;
24035 PyObject * obj1 = 0 ;
24036 PyObject * obj2 = 0 ;
24037 PyObject * obj3 = 0 ;
24038 PyObject * obj4 = 0 ;
554f62e9 24039 char * kwnames[] = {
50efceee 24040 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
554f62e9
RD
24041 };
24042
50efceee
RD
24043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
554f62e9 24045 if (!SWIG_IsOK(res1)) {
50efceee
RD
24046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
24047 }
24048 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
24049 {
24050 arg2 = wxString_in_helper(obj1);
24051 if (arg2 == NULL) SWIG_fail;
24052 temp2 = true;
554f62e9 24053 }
554f62e9
RD
24054 ecode3 = SWIG_AsVal_int(obj2, &val3);
24055 if (!SWIG_IsOK(ecode3)) {
50efceee 24056 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
554f62e9
RD
24057 }
24058 arg3 = static_cast< int >(val3);
24059 ecode4 = SWIG_AsVal_int(obj3, &val4);
24060 if (!SWIG_IsOK(ecode4)) {
50efceee 24061 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
554f62e9
RD
24062 }
24063 arg4 = static_cast< int >(val4);
24064 ecode5 = SWIG_AsVal_int(obj4, &val5);
24065 if (!SWIG_IsOK(ecode5)) {
50efceee 24066 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
554f62e9
RD
24067 }
24068 arg5 = static_cast< int >(val5);
554f62e9
RD
24069 {
24070 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 24071 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
554f62e9
RD
24072 wxPyEndAllowThreads(__tstate);
24073 if (PyErr_Occurred()) SWIG_fail;
24074 }
50efceee 24075 resultobj = SWIG_Py_Void();
554f62e9 24076 {
50efceee
RD
24077 if (temp2)
24078 delete arg2;
554f62e9
RD
24079 }
24080 return resultobj;
24081fail:
24082 {
50efceee
RD
24083 if (temp2)
24084 delete arg2;
554f62e9
RD
24085 }
24086 return NULL;
24087}
24088
24089
50efceee
RD
24090SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24091 PyObject *obj;
24092 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24093 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
24094 return SWIG_Py_Void();
24095}
24096
24097SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24098 return SWIG_Python_InitShadowInstance(args);
24099}
24100
24101SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 24102 PyObject *resultobj = 0;
50efceee 24103 wxFontList *result = 0 ;
554f62e9 24104
50efceee 24105 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
554f62e9
RD
24106 {
24107 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 24108 result = (wxFontList *)_wxPyInitTheFontList();
554f62e9
RD
24109 wxPyEndAllowThreads(__tstate);
24110 if (PyErr_Occurred()) SWIG_fail;
24111 }
50efceee 24112 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
554f62e9
RD
24113 return resultobj;
24114fail:
24115 return NULL;
24116}
24117
24118
50efceee 24119SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
554f62e9 24120 PyObject *resultobj = 0;
50efceee 24121 wxPenList *result = 0 ;
554f62e9 24122
50efceee 24123 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
554f62e9
RD
24124 {
24125 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 24126 result = (wxPenList *)_wxPyInitThePenList();
554f62e9
RD
24127 wxPyEndAllowThreads(__tstate);
24128 if (PyErr_Occurred()) SWIG_fail;
24129 }
50efceee 24130 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
554f62e9
RD
24131 return resultobj;
24132fail:
24133 return NULL;
24134}
24135
24136
50efceee
RD
24137SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24138 PyObject *resultobj = 0;
24139 wxBrushList *result = 0 ;
554f62e9 24140
50efceee
RD
24141 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
24142 {
24143 PyThreadState* __tstate = wxPyBeginAllowThreads();
24144 result = (wxBrushList *)_wxPyInitTheBrushList();
24145 wxPyEndAllowThreads(__tstate);
24146 if (PyErr_Occurred()) SWIG_fail;
24147 }
24148 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
24149 return resultobj;
24150fail:
24151 return NULL;
554f62e9
RD
24152}
24153
24154
50efceee
RD
24155SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24156 PyObject *resultobj = 0;
24157 wxColourDatabase *result = 0 ;
554f62e9 24158
50efceee
RD
24159 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
24160 {
24161 PyThreadState* __tstate = wxPyBeginAllowThreads();
24162 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
24163 wxPyEndAllowThreads(__tstate);
24164 if (PyErr_Occurred()) SWIG_fail;
24165 }
24166 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
24167 return resultobj;
24168fail:
24169 return NULL;
554f62e9
RD
24170}
24171
24172
24173SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24174 PyObject *resultobj = 0;
24175 wxEffects *result = 0 ;
24176
24177 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
24178 {
24179 PyThreadState* __tstate = wxPyBeginAllowThreads();
24180 result = (wxEffects *)new wxEffects();
24181 wxPyEndAllowThreads(__tstate);
24182 if (PyErr_Occurred()) SWIG_fail;
24183 }
24184 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
24185 return resultobj;
24186fail:
24187 return NULL;
24188}
24189
24190
24191SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24192 PyObject *resultobj = 0;
24193 wxEffects *arg1 = (wxEffects *) 0 ;
24194 wxColour result;
24195 void *argp1 = 0 ;
24196 int res1 = 0 ;
24197 PyObject *swig_obj[1] ;
24198
24199 if (!args) SWIG_fail;
24200 swig_obj[0] = args;
24201 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24202 if (!SWIG_IsOK(res1)) {
24203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
24204 }
24205 arg1 = reinterpret_cast< wxEffects * >(argp1);
24206 {
24207 PyThreadState* __tstate = wxPyBeginAllowThreads();
24208 result = ((wxEffects const *)arg1)->GetHighlightColour();
24209 wxPyEndAllowThreads(__tstate);
24210 if (PyErr_Occurred()) SWIG_fail;
24211 }
24212 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
24213 return resultobj;
24214fail:
24215 return NULL;
24216}
24217
24218
24219SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24220 PyObject *resultobj = 0;
24221 wxEffects *arg1 = (wxEffects *) 0 ;
24222 wxColour result;
24223 void *argp1 = 0 ;
24224 int res1 = 0 ;
24225 PyObject *swig_obj[1] ;
24226
24227 if (!args) SWIG_fail;
24228 swig_obj[0] = args;
24229 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24230 if (!SWIG_IsOK(res1)) {
24231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
24232 }
24233 arg1 = reinterpret_cast< wxEffects * >(argp1);
24234 {
24235 PyThreadState* __tstate = wxPyBeginAllowThreads();
24236 result = ((wxEffects const *)arg1)->GetLightShadow();
24237 wxPyEndAllowThreads(__tstate);
24238 if (PyErr_Occurred()) SWIG_fail;
24239 }
24240 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
24241 return resultobj;
24242fail:
24243 return NULL;
24244}
24245
24246
24247SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24248 PyObject *resultobj = 0;
24249 wxEffects *arg1 = (wxEffects *) 0 ;
24250 wxColour result;
24251 void *argp1 = 0 ;
24252 int res1 = 0 ;
24253 PyObject *swig_obj[1] ;
24254
24255 if (!args) SWIG_fail;
24256 swig_obj[0] = args;
24257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24258 if (!SWIG_IsOK(res1)) {
24259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
24260 }
24261 arg1 = reinterpret_cast< wxEffects * >(argp1);
24262 {
24263 PyThreadState* __tstate = wxPyBeginAllowThreads();
24264 result = ((wxEffects const *)arg1)->GetFaceColour();
24265 wxPyEndAllowThreads(__tstate);
24266 if (PyErr_Occurred()) SWIG_fail;
24267 }
24268 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
24269 return resultobj;
24270fail:
24271 return NULL;
24272}
24273
24274
24275SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24276 PyObject *resultobj = 0;
24277 wxEffects *arg1 = (wxEffects *) 0 ;
24278 wxColour result;
24279 void *argp1 = 0 ;
24280 int res1 = 0 ;
24281 PyObject *swig_obj[1] ;
24282
24283 if (!args) SWIG_fail;
24284 swig_obj[0] = args;
24285 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24286 if (!SWIG_IsOK(res1)) {
24287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
24288 }
24289 arg1 = reinterpret_cast< wxEffects * >(argp1);
24290 {
24291 PyThreadState* __tstate = wxPyBeginAllowThreads();
24292 result = ((wxEffects const *)arg1)->GetMediumShadow();
24293 wxPyEndAllowThreads(__tstate);
24294 if (PyErr_Occurred()) SWIG_fail;
24295 }
24296 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
24297 return resultobj;
24298fail:
24299 return NULL;
24300}
24301
24302
24303SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24304 PyObject *resultobj = 0;
24305 wxEffects *arg1 = (wxEffects *) 0 ;
24306 wxColour result;
24307 void *argp1 = 0 ;
24308 int res1 = 0 ;
24309 PyObject *swig_obj[1] ;
24310
24311 if (!args) SWIG_fail;
24312 swig_obj[0] = args;
24313 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24314 if (!SWIG_IsOK(res1)) {
24315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
24316 }
24317 arg1 = reinterpret_cast< wxEffects * >(argp1);
24318 {
24319 PyThreadState* __tstate = wxPyBeginAllowThreads();
24320 result = ((wxEffects const *)arg1)->GetDarkShadow();
24321 wxPyEndAllowThreads(__tstate);
24322 if (PyErr_Occurred()) SWIG_fail;
24323 }
24324 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
24325 return resultobj;
24326fail:
24327 return NULL;
24328}
24329
24330
24331SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24332 PyObject *resultobj = 0;
24333 wxEffects *arg1 = (wxEffects *) 0 ;
24334 wxColour *arg2 = 0 ;
24335 void *argp1 = 0 ;
24336 int res1 = 0 ;
24337 wxColour temp2 ;
24338 PyObject * obj0 = 0 ;
24339 PyObject * obj1 = 0 ;
24340 char * kwnames[] = {
24341 (char *) "self",(char *) "c", NULL
24342 };
24343
24344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
24345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24346 if (!SWIG_IsOK(res1)) {
24347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
24348 }
24349 arg1 = reinterpret_cast< wxEffects * >(argp1);
24350 {
24351 arg2 = &temp2;
24352 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24353 }
24354 {
24355 PyThreadState* __tstate = wxPyBeginAllowThreads();
24356 (arg1)->SetHighlightColour((wxColour const &)*arg2);
24357 wxPyEndAllowThreads(__tstate);
24358 if (PyErr_Occurred()) SWIG_fail;
24359 }
24360 resultobj = SWIG_Py_Void();
24361 return resultobj;
24362fail:
24363 return NULL;
24364}
24365
24366
24367SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24368 PyObject *resultobj = 0;
24369 wxEffects *arg1 = (wxEffects *) 0 ;
24370 wxColour *arg2 = 0 ;
24371 void *argp1 = 0 ;
24372 int res1 = 0 ;
24373 wxColour temp2 ;
24374 PyObject * obj0 = 0 ;
24375 PyObject * obj1 = 0 ;
24376 char * kwnames[] = {
24377 (char *) "self",(char *) "c", NULL
24378 };
24379
24380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
24381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24382 if (!SWIG_IsOK(res1)) {
24383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
24384 }
24385 arg1 = reinterpret_cast< wxEffects * >(argp1);
24386 {
24387 arg2 = &temp2;
24388 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24389 }
24390 {
24391 PyThreadState* __tstate = wxPyBeginAllowThreads();
24392 (arg1)->SetLightShadow((wxColour const &)*arg2);
24393 wxPyEndAllowThreads(__tstate);
24394 if (PyErr_Occurred()) SWIG_fail;
24395 }
24396 resultobj = SWIG_Py_Void();
24397 return resultobj;
24398fail:
24399 return NULL;
24400}
24401
24402
24403SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24404 PyObject *resultobj = 0;
24405 wxEffects *arg1 = (wxEffects *) 0 ;
24406 wxColour *arg2 = 0 ;
24407 void *argp1 = 0 ;
24408 int res1 = 0 ;
24409 wxColour temp2 ;
24410 PyObject * obj0 = 0 ;
24411 PyObject * obj1 = 0 ;
24412 char * kwnames[] = {
24413 (char *) "self",(char *) "c", NULL
24414 };
24415
24416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
24417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24418 if (!SWIG_IsOK(res1)) {
24419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
24420 }
24421 arg1 = reinterpret_cast< wxEffects * >(argp1);
24422 {
24423 arg2 = &temp2;
24424 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24425 }
24426 {
24427 PyThreadState* __tstate = wxPyBeginAllowThreads();
24428 (arg1)->SetFaceColour((wxColour const &)*arg2);
24429 wxPyEndAllowThreads(__tstate);
24430 if (PyErr_Occurred()) SWIG_fail;
24431 }
24432 resultobj = SWIG_Py_Void();
24433 return resultobj;
24434fail:
24435 return NULL;
24436}
24437
24438
24439SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24440 PyObject *resultobj = 0;
24441 wxEffects *arg1 = (wxEffects *) 0 ;
24442 wxColour *arg2 = 0 ;
24443 void *argp1 = 0 ;
24444 int res1 = 0 ;
24445 wxColour temp2 ;
24446 PyObject * obj0 = 0 ;
24447 PyObject * obj1 = 0 ;
24448 char * kwnames[] = {
24449 (char *) "self",(char *) "c", NULL
24450 };
24451
24452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
24453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24454 if (!SWIG_IsOK(res1)) {
24455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
24456 }
24457 arg1 = reinterpret_cast< wxEffects * >(argp1);
24458 {
24459 arg2 = &temp2;
24460 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24461 }
24462 {
24463 PyThreadState* __tstate = wxPyBeginAllowThreads();
24464 (arg1)->SetMediumShadow((wxColour const &)*arg2);
24465 wxPyEndAllowThreads(__tstate);
24466 if (PyErr_Occurred()) SWIG_fail;
24467 }
24468 resultobj = SWIG_Py_Void();
24469 return resultobj;
24470fail:
24471 return NULL;
24472}
24473
24474
24475SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24476 PyObject *resultobj = 0;
24477 wxEffects *arg1 = (wxEffects *) 0 ;
24478 wxColour *arg2 = 0 ;
24479 void *argp1 = 0 ;
24480 int res1 = 0 ;
24481 wxColour temp2 ;
24482 PyObject * obj0 = 0 ;
24483 PyObject * obj1 = 0 ;
24484 char * kwnames[] = {
24485 (char *) "self",(char *) "c", NULL
24486 };
24487
24488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
24489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24490 if (!SWIG_IsOK(res1)) {
24491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
24492 }
24493 arg1 = reinterpret_cast< wxEffects * >(argp1);
24494 {
24495 arg2 = &temp2;
24496 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24497 }
24498 {
24499 PyThreadState* __tstate = wxPyBeginAllowThreads();
24500 (arg1)->SetDarkShadow((wxColour const &)*arg2);
24501 wxPyEndAllowThreads(__tstate);
24502 if (PyErr_Occurred()) SWIG_fail;
24503 }
24504 resultobj = SWIG_Py_Void();
24505 return resultobj;
24506fail:
24507 return NULL;
24508}
24509
24510
24511SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24512 PyObject *resultobj = 0;
24513 wxEffects *arg1 = (wxEffects *) 0 ;
24514 wxColour *arg2 = 0 ;
24515 wxColour *arg3 = 0 ;
24516 wxColour *arg4 = 0 ;
24517 wxColour *arg5 = 0 ;
24518 wxColour *arg6 = 0 ;
24519 void *argp1 = 0 ;
24520 int res1 = 0 ;
24521 wxColour temp2 ;
24522 wxColour temp3 ;
24523 wxColour temp4 ;
24524 wxColour temp5 ;
24525 wxColour temp6 ;
24526 PyObject * obj0 = 0 ;
24527 PyObject * obj1 = 0 ;
24528 PyObject * obj2 = 0 ;
24529 PyObject * obj3 = 0 ;
24530 PyObject * obj4 = 0 ;
24531 PyObject * obj5 = 0 ;
24532 char * kwnames[] = {
24533 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
24534 };
24535
24536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
24537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24538 if (!SWIG_IsOK(res1)) {
24539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
24540 }
24541 arg1 = reinterpret_cast< wxEffects * >(argp1);
24542 {
24543 arg2 = &temp2;
24544 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24545 }
24546 {
24547 arg3 = &temp3;
24548 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
24549 }
24550 {
24551 arg4 = &temp4;
24552 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
24553 }
24554 {
24555 arg5 = &temp5;
24556 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
24557 }
24558 {
24559 arg6 = &temp6;
24560 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
24561 }
24562 {
24563 PyThreadState* __tstate = wxPyBeginAllowThreads();
24564 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
24565 wxPyEndAllowThreads(__tstate);
24566 if (PyErr_Occurred()) SWIG_fail;
24567 }
24568 resultobj = SWIG_Py_Void();
24569 return resultobj;
24570fail:
24571 return NULL;
24572}
24573
24574
24575SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24576 PyObject *resultobj = 0;
24577 wxEffects *arg1 = (wxEffects *) 0 ;
24578 wxDC *arg2 = 0 ;
24579 wxRect *arg3 = 0 ;
24580 int arg4 = (int) 1 ;
24581 void *argp1 = 0 ;
24582 int res1 = 0 ;
24583 void *argp2 = 0 ;
24584 int res2 = 0 ;
24585 wxRect temp3 ;
24586 int val4 ;
24587 int ecode4 = 0 ;
24588 PyObject * obj0 = 0 ;
24589 PyObject * obj1 = 0 ;
24590 PyObject * obj2 = 0 ;
24591 PyObject * obj3 = 0 ;
24592 char * kwnames[] = {
24593 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
24594 };
24595
24596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24598 if (!SWIG_IsOK(res1)) {
24599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
24600 }
24601 arg1 = reinterpret_cast< wxEffects * >(argp1);
24602 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
24603 if (!SWIG_IsOK(res2)) {
24604 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
24605 }
24606 if (!argp2) {
24607 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
24608 }
24609 arg2 = reinterpret_cast< wxDC * >(argp2);
24610 {
24611 arg3 = &temp3;
24612 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
24613 }
24614 if (obj3) {
24615 ecode4 = SWIG_AsVal_int(obj3, &val4);
24616 if (!SWIG_IsOK(ecode4)) {
24617 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
24618 }
24619 arg4 = static_cast< int >(val4);
24620 }
24621 {
24622 PyThreadState* __tstate = wxPyBeginAllowThreads();
24623 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
24624 wxPyEndAllowThreads(__tstate);
24625 if (PyErr_Occurred()) SWIG_fail;
24626 }
24627 resultobj = SWIG_Py_Void();
24628 return resultobj;
24629fail:
24630 return NULL;
24631}
24632
24633
24634SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24635 PyObject *resultobj = 0;
24636 wxEffects *arg1 = (wxEffects *) 0 ;
24637 wxRect *arg2 = 0 ;
24638 wxDC *arg3 = 0 ;
24639 wxBitmap *arg4 = 0 ;
24640 bool result;
24641 void *argp1 = 0 ;
24642 int res1 = 0 ;
24643 wxRect temp2 ;
24644 void *argp3 = 0 ;
24645 int res3 = 0 ;
24646 void *argp4 = 0 ;
24647 int res4 = 0 ;
24648 PyObject * obj0 = 0 ;
24649 PyObject * obj1 = 0 ;
24650 PyObject * obj2 = 0 ;
24651 PyObject * obj3 = 0 ;
24652 char * kwnames[] = {
24653 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
24654 };
24655
24656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24658 if (!SWIG_IsOK(res1)) {
24659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
24660 }
24661 arg1 = reinterpret_cast< wxEffects * >(argp1);
24662 {
24663 arg2 = &temp2;
24664 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
24665 }
24666 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24667 if (!SWIG_IsOK(res3)) {
24668 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
24669 }
24670 if (!argp3) {
24671 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
24672 }
24673 arg3 = reinterpret_cast< wxDC * >(argp3);
24674 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
24675 if (!SWIG_IsOK(res4)) {
24676 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
24677 }
24678 if (!argp4) {
24679 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
24680 }
24681 arg4 = reinterpret_cast< wxBitmap * >(argp4);
24682 {
24683 PyThreadState* __tstate = wxPyBeginAllowThreads();
24684 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
24685 wxPyEndAllowThreads(__tstate);
24686 if (PyErr_Occurred()) SWIG_fail;
24687 }
24688 {
24689 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24690 }
24691 return resultobj;
24692fail:
24693 return NULL;
24694}
24695
24696
24697SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24698 PyObject *obj;
24699 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24700 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
24701 return SWIG_Py_Void();
24702}
24703
24704SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24705 return SWIG_Python_InitShadowInstance(args);
24706}
24707
24708SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24709 PyObject *resultobj = 0;
24710 int arg1 ;
24711 int arg2 ;
24712 bool arg3 ;
24713 wxSplitterRenderParams *result = 0 ;
24714 int val1 ;
24715 int ecode1 = 0 ;
24716 int val2 ;
24717 int ecode2 = 0 ;
24718 bool val3 ;
24719 int ecode3 = 0 ;
24720 PyObject * obj0 = 0 ;
24721 PyObject * obj1 = 0 ;
24722 PyObject * obj2 = 0 ;
24723 char * kwnames[] = {
24724 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
24725 };
24726
24727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24728 ecode1 = SWIG_AsVal_int(obj0, &val1);
24729 if (!SWIG_IsOK(ecode1)) {
24730 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
24731 }
24732 arg1 = static_cast< int >(val1);
24733 ecode2 = SWIG_AsVal_int(obj1, &val2);
24734 if (!SWIG_IsOK(ecode2)) {
24735 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
24736 }
24737 arg2 = static_cast< int >(val2);
24738 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24739 if (!SWIG_IsOK(ecode3)) {
24740 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
24741 }
24742 arg3 = static_cast< bool >(val3);
24743 {
24744 PyThreadState* __tstate = wxPyBeginAllowThreads();
24745 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
24746 wxPyEndAllowThreads(__tstate);
24747 if (PyErr_Occurred()) SWIG_fail;
24748 }
24749 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
24750 return resultobj;
24751fail:
24752 return NULL;
24753}
24754
24755
24756SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24757 PyObject *resultobj = 0;
24758 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
24759 void *argp1 = 0 ;
24760 int res1 = 0 ;
24761 PyObject *swig_obj[1] ;
24762
24763 if (!args) SWIG_fail;
24764 swig_obj[0] = args;
24765 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
24766 if (!SWIG_IsOK(res1)) {
24767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24768 }
24769 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24770 {
24771 PyThreadState* __tstate = wxPyBeginAllowThreads();
24772 delete arg1;
24773
24774 wxPyEndAllowThreads(__tstate);
24775 if (PyErr_Occurred()) SWIG_fail;
24776 }
24777 resultobj = SWIG_Py_Void();
24778 return resultobj;
24779fail:
24780 return NULL;
24781}
24782
24783
24784SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24785 PyObject *resultobj = 0;
24786 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
24787 int result;
24788 void *argp1 = 0 ;
24789 int res1 = 0 ;
24790 PyObject *swig_obj[1] ;
24791
24792 if (!args) SWIG_fail;
24793 swig_obj[0] = args;
24794 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
24795 if (!SWIG_IsOK(res1)) {
24796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24797 }
24798 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24799 result = (int)(int) ((arg1)->widthSash);
24800 resultobj = SWIG_From_int(static_cast< int >(result));
24801 return resultobj;
24802fail:
24803 return NULL;
24804}
24805
24806
24807SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24808 PyObject *resultobj = 0;
24809 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
24810 int result;
24811 void *argp1 = 0 ;
24812 int res1 = 0 ;
24813 PyObject *swig_obj[1] ;
24814
24815 if (!args) SWIG_fail;
24816 swig_obj[0] = args;
24817 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
24818 if (!SWIG_IsOK(res1)) {
24819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24820 }
24821 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24822 result = (int)(int) ((arg1)->border);
24823 resultobj = SWIG_From_int(static_cast< int >(result));
24824 return resultobj;
24825fail:
24826 return NULL;
24827}
24828
24829
24830SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24831 PyObject *resultobj = 0;
24832 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
24833 bool result;
24834 void *argp1 = 0 ;
24835 int res1 = 0 ;
24836 PyObject *swig_obj[1] ;
24837
24838 if (!args) SWIG_fail;
24839 swig_obj[0] = args;
24840 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
24841 if (!SWIG_IsOK(res1)) {
24842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24843 }
24844 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24845 result = (bool)(bool) ((arg1)->isHotSensitive);
24846 resultobj = SWIG_From_bool(static_cast< bool >(result));
24847 return resultobj;
24848fail:
24849 return NULL;
24850}
24851
24852
24853SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24854 PyObject *obj;
24855 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24856 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
24857 return SWIG_Py_Void();
24858}
24859
24860SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24861 return SWIG_Python_InitShadowInstance(args);
24862}
24863
24864SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24865 PyObject *resultobj = 0;
24866 int arg1 ;
24867 int arg2 ;
24868 wxRendererVersion *result = 0 ;
24869 int val1 ;
24870 int ecode1 = 0 ;
24871 int val2 ;
24872 int ecode2 = 0 ;
24873 PyObject * obj0 = 0 ;
24874 PyObject * obj1 = 0 ;
24875 char * kwnames[] = {
24876 (char *) "version_",(char *) "age_", NULL
24877 };
24878
24879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
24880 ecode1 = SWIG_AsVal_int(obj0, &val1);
24881 if (!SWIG_IsOK(ecode1)) {
24882 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
24883 }
24884 arg1 = static_cast< int >(val1);
24885 ecode2 = SWIG_AsVal_int(obj1, &val2);
24886 if (!SWIG_IsOK(ecode2)) {
24887 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
24888 }
24889 arg2 = static_cast< int >(val2);
24890 {
24891 PyThreadState* __tstate = wxPyBeginAllowThreads();
24892 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
24893 wxPyEndAllowThreads(__tstate);
24894 if (PyErr_Occurred()) SWIG_fail;
24895 }
24896 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
24897 return resultobj;
24898fail:
24899 return NULL;
24900}
24901
24902
24903SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24904 PyObject *resultobj = 0;
24905 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
24906 void *argp1 = 0 ;
24907 int res1 = 0 ;
24908 PyObject *swig_obj[1] ;
24909
24910 if (!args) SWIG_fail;
24911 swig_obj[0] = args;
24912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
24913 if (!SWIG_IsOK(res1)) {
24914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
24915 }
24916 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24917 {
24918 PyThreadState* __tstate = wxPyBeginAllowThreads();
24919 delete arg1;
24920
24921 wxPyEndAllowThreads(__tstate);
24922 if (PyErr_Occurred()) SWIG_fail;
24923 }
24924 resultobj = SWIG_Py_Void();
24925 return resultobj;
24926fail:
24927 return NULL;
24928}
24929
24930
24931SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24932 PyObject *resultobj = 0;
24933 wxRendererVersion *arg1 = 0 ;
24934 bool result;
24935 void *argp1 = 0 ;
24936 int res1 = 0 ;
24937 PyObject * obj0 = 0 ;
24938 char * kwnames[] = {
24939 (char *) "ver", NULL
24940 };
24941
24942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
24943 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
24944 if (!SWIG_IsOK(res1)) {
24945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
24946 }
24947 if (!argp1) {
24948 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
24949 }
24950 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24951 {
24952 PyThreadState* __tstate = wxPyBeginAllowThreads();
24953 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
24954 wxPyEndAllowThreads(__tstate);
24955 if (PyErr_Occurred()) SWIG_fail;
24956 }
24957 {
24958 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24959 }
24960 return resultobj;
24961fail:
24962 return NULL;
24963}
24964
24965
24966SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24967 PyObject *resultobj = 0;
24968 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
24969 int result;
24970 void *argp1 = 0 ;
24971 int res1 = 0 ;
24972 PyObject *swig_obj[1] ;
24973
24974 if (!args) SWIG_fail;
24975 swig_obj[0] = args;
24976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
24977 if (!SWIG_IsOK(res1)) {
24978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
24979 }
24980 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24981 result = (int)(int) ((arg1)->version);
24982 resultobj = SWIG_From_int(static_cast< int >(result));
24983 return resultobj;
24984fail:
24985 return NULL;
24986}
24987
24988
24989SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24990 PyObject *resultobj = 0;
24991 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
24992 int result;
24993 void *argp1 = 0 ;
24994 int res1 = 0 ;
24995 PyObject *swig_obj[1] ;
24996
24997 if (!args) SWIG_fail;
24998 swig_obj[0] = args;
24999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
25000 if (!SWIG_IsOK(res1)) {
25001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
25002 }
25003 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
25004 result = (int)(int) ((arg1)->age);
25005 resultobj = SWIG_From_int(static_cast< int >(result));
25006 return resultobj;
25007fail:
25008 return NULL;
25009}
25010
25011
25012SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25013 PyObject *obj;
25014 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25015 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
25016 return SWIG_Py_Void();
25017}
25018
25019SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25020 return SWIG_Python_InitShadowInstance(args);
25021}
25022
25023SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25024 PyObject *resultobj = 0;
25025 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25026 wxWindow *arg2 = (wxWindow *) 0 ;
25027 wxDC *arg3 = 0 ;
25028 wxRect *arg4 = 0 ;
25029 int arg5 = (int) 0 ;
25030 void *argp1 = 0 ;
25031 int res1 = 0 ;
25032 void *argp2 = 0 ;
25033 int res2 = 0 ;
25034 void *argp3 = 0 ;
25035 int res3 = 0 ;
25036 wxRect temp4 ;
25037 int val5 ;
25038 int ecode5 = 0 ;
25039 PyObject * obj0 = 0 ;
25040 PyObject * obj1 = 0 ;
25041 PyObject * obj2 = 0 ;
25042 PyObject * obj3 = 0 ;
25043 PyObject * obj4 = 0 ;
25044 char * kwnames[] = {
25045 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25046 };
25047
25048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25050 if (!SWIG_IsOK(res1)) {
25051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25052 }
25053 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25054 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25055 if (!SWIG_IsOK(res2)) {
25056 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
25057 }
25058 arg2 = reinterpret_cast< wxWindow * >(argp2);
25059 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25060 if (!SWIG_IsOK(res3)) {
25061 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
25062 }
25063 if (!argp3) {
25064 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
25065 }
25066 arg3 = reinterpret_cast< wxDC * >(argp3);
25067 {
25068 arg4 = &temp4;
25069 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25070 }
25071 if (obj4) {
25072 ecode5 = SWIG_AsVal_int(obj4, &val5);
25073 if (!SWIG_IsOK(ecode5)) {
25074 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
25075 }
25076 arg5 = static_cast< int >(val5);
25077 }
25078 {
25079 PyThreadState* __tstate = wxPyBeginAllowThreads();
25080 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
25081 wxPyEndAllowThreads(__tstate);
25082 if (PyErr_Occurred()) SWIG_fail;
25083 }
25084 resultobj = SWIG_Py_Void();
25085 return resultobj;
25086fail:
25087 return NULL;
25088}
25089
25090
25091SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25092 PyObject *resultobj = 0;
25093 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25094 wxWindow *arg2 = (wxWindow *) 0 ;
25095 wxDC *arg3 = 0 ;
25096 wxRect *arg4 = 0 ;
25097 int arg5 = (int) 0 ;
25098 void *argp1 = 0 ;
25099 int res1 = 0 ;
25100 void *argp2 = 0 ;
25101 int res2 = 0 ;
25102 void *argp3 = 0 ;
25103 int res3 = 0 ;
25104 wxRect temp4 ;
25105 int val5 ;
25106 int ecode5 = 0 ;
25107 PyObject * obj0 = 0 ;
25108 PyObject * obj1 = 0 ;
25109 PyObject * obj2 = 0 ;
25110 PyObject * obj3 = 0 ;
25111 PyObject * obj4 = 0 ;
25112 char * kwnames[] = {
25113 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25114 };
25115
25116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25118 if (!SWIG_IsOK(res1)) {
25119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25120 }
25121 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25122 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25123 if (!SWIG_IsOK(res2)) {
25124 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
25125 }
25126 arg2 = reinterpret_cast< wxWindow * >(argp2);
25127 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25128 if (!SWIG_IsOK(res3)) {
25129 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
25130 }
25131 if (!argp3) {
25132 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
25133 }
25134 arg3 = reinterpret_cast< wxDC * >(argp3);
25135 {
25136 arg4 = &temp4;
25137 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25138 }
25139 if (obj4) {
25140 ecode5 = SWIG_AsVal_int(obj4, &val5);
25141 if (!SWIG_IsOK(ecode5)) {
25142 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
25143 }
25144 arg5 = static_cast< int >(val5);
25145 }
25146 {
25147 PyThreadState* __tstate = wxPyBeginAllowThreads();
25148 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
25149 wxPyEndAllowThreads(__tstate);
25150 if (PyErr_Occurred()) SWIG_fail;
25151 }
25152 resultobj = SWIG_Py_Void();
25153 return resultobj;
25154fail:
25155 return NULL;
25156}
25157
25158
25159SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25160 PyObject *resultobj = 0;
25161 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25162 wxWindow *arg2 = (wxWindow *) 0 ;
25163 wxDC *arg3 = 0 ;
25164 wxRect *arg4 = 0 ;
25165 int arg5 = (int) 0 ;
25166 void *argp1 = 0 ;
25167 int res1 = 0 ;
25168 void *argp2 = 0 ;
25169 int res2 = 0 ;
25170 void *argp3 = 0 ;
25171 int res3 = 0 ;
25172 wxRect temp4 ;
25173 int val5 ;
25174 int ecode5 = 0 ;
25175 PyObject * obj0 = 0 ;
25176 PyObject * obj1 = 0 ;
25177 PyObject * obj2 = 0 ;
25178 PyObject * obj3 = 0 ;
25179 PyObject * obj4 = 0 ;
25180 char * kwnames[] = {
25181 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25182 };
25183
25184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25186 if (!SWIG_IsOK(res1)) {
25187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25188 }
25189 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25190 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25191 if (!SWIG_IsOK(res2)) {
25192 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
25193 }
25194 arg2 = reinterpret_cast< wxWindow * >(argp2);
25195 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25196 if (!SWIG_IsOK(res3)) {
25197 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
25198 }
25199 if (!argp3) {
25200 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
25201 }
25202 arg3 = reinterpret_cast< wxDC * >(argp3);
25203 {
25204 arg4 = &temp4;
25205 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25206 }
25207 if (obj4) {
25208 ecode5 = SWIG_AsVal_int(obj4, &val5);
25209 if (!SWIG_IsOK(ecode5)) {
25210 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
25211 }
25212 arg5 = static_cast< int >(val5);
25213 }
25214 {
25215 PyThreadState* __tstate = wxPyBeginAllowThreads();
25216 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
25217 wxPyEndAllowThreads(__tstate);
25218 if (PyErr_Occurred()) SWIG_fail;
25219 }
25220 resultobj = SWIG_Py_Void();
25221 return resultobj;
25222fail:
25223 return NULL;
25224}
25225
25226
25227SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25228 PyObject *resultobj = 0;
25229 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25230 wxWindow *arg2 = (wxWindow *) 0 ;
25231 wxDC *arg3 = 0 ;
25232 wxSize *arg4 = 0 ;
25233 int arg5 ;
25234 wxOrientation arg6 ;
25235 int arg7 = (int) 0 ;
25236 void *argp1 = 0 ;
25237 int res1 = 0 ;
25238 void *argp2 = 0 ;
25239 int res2 = 0 ;
25240 void *argp3 = 0 ;
25241 int res3 = 0 ;
25242 wxSize temp4 ;
25243 int val5 ;
25244 int ecode5 = 0 ;
25245 int val6 ;
25246 int ecode6 = 0 ;
25247 int val7 ;
25248 int ecode7 = 0 ;
25249 PyObject * obj0 = 0 ;
25250 PyObject * obj1 = 0 ;
25251 PyObject * obj2 = 0 ;
25252 PyObject * obj3 = 0 ;
25253 PyObject * obj4 = 0 ;
25254 PyObject * obj5 = 0 ;
25255 PyObject * obj6 = 0 ;
25256 char * kwnames[] = {
25257 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
25258 };
25259
25260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25262 if (!SWIG_IsOK(res1)) {
25263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25264 }
25265 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25266 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25267 if (!SWIG_IsOK(res2)) {
25268 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
25269 }
25270 arg2 = reinterpret_cast< wxWindow * >(argp2);
25271 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25272 if (!SWIG_IsOK(res3)) {
25273 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
25274 }
25275 if (!argp3) {
25276 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
25277 }
25278 arg3 = reinterpret_cast< wxDC * >(argp3);
25279 {
25280 arg4 = &temp4;
25281 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
25282 }
25283 ecode5 = SWIG_AsVal_int(obj4, &val5);
25284 if (!SWIG_IsOK(ecode5)) {
25285 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
25286 }
25287 arg5 = static_cast< int >(val5);
25288 ecode6 = SWIG_AsVal_int(obj5, &val6);
25289 if (!SWIG_IsOK(ecode6)) {
25290 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
25291 }
25292 arg6 = static_cast< wxOrientation >(val6);
25293 if (obj6) {
25294 ecode7 = SWIG_AsVal_int(obj6, &val7);
25295 if (!SWIG_IsOK(ecode7)) {
25296 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
25297 }
25298 arg7 = static_cast< int >(val7);
25299 }
25300 {
25301 PyThreadState* __tstate = wxPyBeginAllowThreads();
25302 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
25303 wxPyEndAllowThreads(__tstate);
25304 if (PyErr_Occurred()) SWIG_fail;
25305 }
25306 resultobj = SWIG_Py_Void();
25307 return resultobj;
25308fail:
25309 return NULL;
25310}
25311
25312
25313SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25314 PyObject *resultobj = 0;
25315 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25316 wxWindow *arg2 = (wxWindow *) 0 ;
25317 wxDC *arg3 = 0 ;
25318 wxRect *arg4 = 0 ;
25319 int arg5 = (int) 0 ;
25320 void *argp1 = 0 ;
25321 int res1 = 0 ;
25322 void *argp2 = 0 ;
25323 int res2 = 0 ;
25324 void *argp3 = 0 ;
25325 int res3 = 0 ;
25326 wxRect temp4 ;
25327 int val5 ;
25328 int ecode5 = 0 ;
25329 PyObject * obj0 = 0 ;
25330 PyObject * obj1 = 0 ;
25331 PyObject * obj2 = 0 ;
25332 PyObject * obj3 = 0 ;
25333 PyObject * obj4 = 0 ;
25334 char * kwnames[] = {
25335 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25336 };
25337
25338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25340 if (!SWIG_IsOK(res1)) {
25341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25342 }
25343 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25344 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25345 if (!SWIG_IsOK(res2)) {
25346 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
25347 }
25348 arg2 = reinterpret_cast< wxWindow * >(argp2);
25349 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25350 if (!SWIG_IsOK(res3)) {
25351 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
25352 }
25353 if (!argp3) {
25354 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
25355 }
25356 arg3 = reinterpret_cast< wxDC * >(argp3);
25357 {
25358 arg4 = &temp4;
25359 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25360 }
25361 if (obj4) {
25362 ecode5 = SWIG_AsVal_int(obj4, &val5);
25363 if (!SWIG_IsOK(ecode5)) {
25364 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
25365 }
25366 arg5 = static_cast< int >(val5);
25367 }
25368 {
25369 PyThreadState* __tstate = wxPyBeginAllowThreads();
25370 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
25371 wxPyEndAllowThreads(__tstate);
25372 if (PyErr_Occurred()) SWIG_fail;
25373 }
25374 resultobj = SWIG_Py_Void();
25375 return resultobj;
25376fail:
25377 return NULL;
25378}
25379
25380
25381SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25382 PyObject *resultobj = 0;
25383 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25384 wxWindow *arg2 = (wxWindow *) 0 ;
25385 wxDC *arg3 = 0 ;
25386 wxRect *arg4 = 0 ;
25387 int arg5 = (int) 0 ;
25388 void *argp1 = 0 ;
25389 int res1 = 0 ;
25390 void *argp2 = 0 ;
25391 int res2 = 0 ;
25392 void *argp3 = 0 ;
25393 int res3 = 0 ;
25394 wxRect temp4 ;
25395 int val5 ;
25396 int ecode5 = 0 ;
25397 PyObject * obj0 = 0 ;
25398 PyObject * obj1 = 0 ;
25399 PyObject * obj2 = 0 ;
25400 PyObject * obj3 = 0 ;
25401 PyObject * obj4 = 0 ;
25402 char * kwnames[] = {
25403 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25404 };
25405
25406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25408 if (!SWIG_IsOK(res1)) {
25409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25410 }
25411 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25412 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25413 if (!SWIG_IsOK(res2)) {
25414 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
25415 }
25416 arg2 = reinterpret_cast< wxWindow * >(argp2);
25417 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25418 if (!SWIG_IsOK(res3)) {
25419 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
25420 }
25421 if (!argp3) {
25422 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
25423 }
25424 arg3 = reinterpret_cast< wxDC * >(argp3);
25425 {
25426 arg4 = &temp4;
25427 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25428 }
25429 if (obj4) {
25430 ecode5 = SWIG_AsVal_int(obj4, &val5);
25431 if (!SWIG_IsOK(ecode5)) {
25432 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
25433 }
25434 arg5 = static_cast< int >(val5);
25435 }
25436 {
25437 PyThreadState* __tstate = wxPyBeginAllowThreads();
25438 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
25439 wxPyEndAllowThreads(__tstate);
25440 if (PyErr_Occurred()) SWIG_fail;
25441 }
25442 resultobj = SWIG_Py_Void();
25443 return resultobj;
25444fail:
25445 return NULL;
25446}
25447
25448
f460c29d
RD
25449SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25450 PyObject *resultobj = 0;
25451 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25452 wxWindow *arg2 = (wxWindow *) 0 ;
25453 wxDC *arg3 = 0 ;
25454 wxRect *arg4 = 0 ;
25455 int arg5 = (int) 0 ;
25456 void *argp1 = 0 ;
25457 int res1 = 0 ;
25458 void *argp2 = 0 ;
25459 int res2 = 0 ;
25460 void *argp3 = 0 ;
25461 int res3 = 0 ;
25462 wxRect temp4 ;
25463 int val5 ;
25464 int ecode5 = 0 ;
25465 PyObject * obj0 = 0 ;
25466 PyObject * obj1 = 0 ;
25467 PyObject * obj2 = 0 ;
25468 PyObject * obj3 = 0 ;
25469 PyObject * obj4 = 0 ;
25470 char * kwnames[] = {
25471 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25472 };
25473
25474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25476 if (!SWIG_IsOK(res1)) {
25477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25478 }
25479 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25480 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25481 if (!SWIG_IsOK(res2)) {
25482 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
25483 }
25484 arg2 = reinterpret_cast< wxWindow * >(argp2);
25485 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25486 if (!SWIG_IsOK(res3)) {
25487 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
25488 }
25489 if (!argp3) {
25490 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
25491 }
25492 arg3 = reinterpret_cast< wxDC * >(argp3);
25493 {
25494 arg4 = &temp4;
25495 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25496 }
25497 if (obj4) {
25498 ecode5 = SWIG_AsVal_int(obj4, &val5);
25499 if (!SWIG_IsOK(ecode5)) {
25500 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
25501 }
25502 arg5 = static_cast< int >(val5);
25503 }
25504 {
25505 PyThreadState* __tstate = wxPyBeginAllowThreads();
25506 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
25507 wxPyEndAllowThreads(__tstate);
25508 if (PyErr_Occurred()) SWIG_fail;
25509 }
25510 resultobj = SWIG_Py_Void();
25511 return resultobj;
25512fail:
25513 return NULL;
25514}
25515
25516
25517SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25518 PyObject *resultobj = 0;
25519 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25520 wxWindow *arg2 = (wxWindow *) 0 ;
25521 wxDC *arg3 = 0 ;
25522 wxRect *arg4 = 0 ;
25523 int arg5 = (int) 0 ;
25524 void *argp1 = 0 ;
25525 int res1 = 0 ;
25526 void *argp2 = 0 ;
25527 int res2 = 0 ;
25528 void *argp3 = 0 ;
25529 int res3 = 0 ;
25530 wxRect temp4 ;
25531 int val5 ;
25532 int ecode5 = 0 ;
25533 PyObject * obj0 = 0 ;
25534 PyObject * obj1 = 0 ;
25535 PyObject * obj2 = 0 ;
25536 PyObject * obj3 = 0 ;
25537 PyObject * obj4 = 0 ;
25538 char * kwnames[] = {
25539 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25540 };
25541
25542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25544 if (!SWIG_IsOK(res1)) {
25545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25546 }
25547 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25548 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25549 if (!SWIG_IsOK(res2)) {
25550 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
25551 }
25552 arg2 = reinterpret_cast< wxWindow * >(argp2);
25553 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25554 if (!SWIG_IsOK(res3)) {
25555 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
25556 }
25557 if (!argp3) {
25558 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
25559 }
25560 arg3 = reinterpret_cast< wxDC * >(argp3);
25561 {
25562 arg4 = &temp4;
25563 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25564 }
25565 if (obj4) {
25566 ecode5 = SWIG_AsVal_int(obj4, &val5);
25567 if (!SWIG_IsOK(ecode5)) {
25568 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
25569 }
25570 arg5 = static_cast< int >(val5);
25571 }
25572 {
25573 PyThreadState* __tstate = wxPyBeginAllowThreads();
25574 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
25575 wxPyEndAllowThreads(__tstate);
25576 if (PyErr_Occurred()) SWIG_fail;
25577 }
25578 resultobj = SWIG_Py_Void();
25579 return resultobj;
25580fail:
25581 return NULL;
25582}
25583
25584
25585SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50efceee
RD
25586 PyObject *resultobj = 0;
25587 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25588 wxWindow *arg2 = (wxWindow *) 0 ;
25589 wxDC *arg3 = 0 ;
25590 wxRect *arg4 = 0 ;
25591 int arg5 = (int) 0 ;
25592 void *argp1 = 0 ;
25593 int res1 = 0 ;
25594 void *argp2 = 0 ;
25595 int res2 = 0 ;
25596 void *argp3 = 0 ;
25597 int res3 = 0 ;
25598 wxRect temp4 ;
25599 int val5 ;
25600 int ecode5 = 0 ;
25601 PyObject * obj0 = 0 ;
25602 PyObject * obj1 = 0 ;
25603 PyObject * obj2 = 0 ;
25604 PyObject * obj3 = 0 ;
25605 PyObject * obj4 = 0 ;
25606 char * kwnames[] = {
25607 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25608 };
25609
f460c29d 25610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
50efceee
RD
25611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25612 if (!SWIG_IsOK(res1)) {
f460c29d 25613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
50efceee
RD
25614 }
25615 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25616 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25617 if (!SWIG_IsOK(res2)) {
f460c29d 25618 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
50efceee
RD
25619 }
25620 arg2 = reinterpret_cast< wxWindow * >(argp2);
25621 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25622 if (!SWIG_IsOK(res3)) {
f460c29d 25623 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
50efceee
RD
25624 }
25625 if (!argp3) {
f460c29d 25626 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
50efceee
RD
25627 }
25628 arg3 = reinterpret_cast< wxDC * >(argp3);
25629 {
25630 arg4 = &temp4;
25631 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25632 }
25633 if (obj4) {
25634 ecode5 = SWIG_AsVal_int(obj4, &val5);
25635 if (!SWIG_IsOK(ecode5)) {
f460c29d 25636 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
50efceee
RD
25637 }
25638 arg5 = static_cast< int >(val5);
25639 }
25640 {
25641 PyThreadState* __tstate = wxPyBeginAllowThreads();
f460c29d 25642 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
50efceee
RD
25643 wxPyEndAllowThreads(__tstate);
25644 if (PyErr_Occurred()) SWIG_fail;
25645 }
25646 resultobj = SWIG_Py_Void();
25647 return resultobj;
25648fail:
25649 return NULL;
25650}
25651
25652
554f62e9
RD
25653SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25654 PyObject *resultobj = 0;
25655 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25656 wxWindow *arg2 = (wxWindow *) 0 ;
25657 SwigValueWrapper<wxSplitterRenderParams > result;
25658 void *argp1 = 0 ;
25659 int res1 = 0 ;
25660 void *argp2 = 0 ;
25661 int res2 = 0 ;
25662 PyObject * obj0 = 0 ;
25663 PyObject * obj1 = 0 ;
25664 char * kwnames[] = {
25665 (char *) "self",(char *) "win", NULL
25666 };
25667
25668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
25669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25670 if (!SWIG_IsOK(res1)) {
25671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25672 }
25673 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25674 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25675 if (!SWIG_IsOK(res2)) {
25676 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
25677 }
25678 arg2 = reinterpret_cast< wxWindow * >(argp2);
25679 {
25680 PyThreadState* __tstate = wxPyBeginAllowThreads();
25681 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
25682 wxPyEndAllowThreads(__tstate);
25683 if (PyErr_Occurred()) SWIG_fail;
25684 }
25685 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
25686 return resultobj;
25687fail:
25688 return NULL;
25689}
25690
25691
25692SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25693 PyObject *resultobj = 0;
25694 wxRendererNative *result = 0 ;
25695
25696 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
25697 {
704eda0c 25698 if (!wxPyCheckForApp()) SWIG_fail;
554f62e9 25699 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 25700 {
554f62e9
RD
25701 wxRendererNative &_result_ref = wxRendererNative::Get();
25702 result = (wxRendererNative *) &_result_ref;
093d3ff1 25703 }
554f62e9
RD
25704 wxPyEndAllowThreads(__tstate);
25705 if (PyErr_Occurred()) SWIG_fail;
25706 }
25707 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
25708 return resultobj;
25709fail:
25710 return NULL;
25711}
25712
25713
25714SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25715 PyObject *resultobj = 0;
25716 wxRendererNative *result = 0 ;
25717
25718 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
25719 {
704eda0c 25720 if (!wxPyCheckForApp()) SWIG_fail;
554f62e9 25721 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 25722 {
554f62e9
RD
25723 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
25724 result = (wxRendererNative *) &_result_ref;
be9b1dca 25725 }
554f62e9
RD
25726 wxPyEndAllowThreads(__tstate);
25727 if (PyErr_Occurred()) SWIG_fail;
25728 }
25729 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
25730 return resultobj;
25731fail:
25732 return NULL;
25733}
25734
25735
25736SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25737 PyObject *resultobj = 0;
25738 wxRendererNative *result = 0 ;
25739
25740 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
25741 {
704eda0c 25742 if (!wxPyCheckForApp()) SWIG_fail;
554f62e9 25743 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 25744 {
554f62e9
RD
25745 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
25746 result = (wxRendererNative *) &_result_ref;
be9b1dca 25747 }
554f62e9
RD
25748 wxPyEndAllowThreads(__tstate);
25749 if (PyErr_Occurred()) SWIG_fail;
25750 }
25751 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
25752 return resultobj;
25753fail:
25754 return NULL;
25755}
25756
25757
25758SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25759 PyObject *resultobj = 0;
25760 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25761 wxRendererNative *result = 0 ;
25762 void *argp1 = 0 ;
25763 int res1 = 0 ;
25764 PyObject * obj0 = 0 ;
25765 char * kwnames[] = {
25766 (char *) "renderer", NULL
25767 };
25768
25769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
25770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25771 if (!SWIG_IsOK(res1)) {
25772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25773 }
25774 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25775 {
704eda0c 25776 if (!wxPyCheckForApp()) SWIG_fail;
554f62e9
RD
25777 PyThreadState* __tstate = wxPyBeginAllowThreads();
25778 result = (wxRendererNative *)wxRendererNative::Set(arg1);
25779 wxPyEndAllowThreads(__tstate);
25780 if (PyErr_Occurred()) SWIG_fail;
25781 }
25782 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
25783 return resultobj;
25784fail:
25785 return NULL;
25786}
25787
25788
25789SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25790 PyObject *resultobj = 0;
25791 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25792 SwigValueWrapper<wxRendererVersion > result;
25793 void *argp1 = 0 ;
25794 int res1 = 0 ;
25795 PyObject *swig_obj[1] ;
25796
25797 if (!args) SWIG_fail;
25798 swig_obj[0] = args;
25799 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25800 if (!SWIG_IsOK(res1)) {
25801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
25802 }
25803 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25804 {
25805 PyThreadState* __tstate = wxPyBeginAllowThreads();
25806 result = ((wxRendererNative const *)arg1)->GetVersion();
25807 wxPyEndAllowThreads(__tstate);
25808 if (PyErr_Occurred()) SWIG_fail;
25809 }
25810 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
25811 return resultobj;
25812fail:
25813 return NULL;
25814}
25815
25816
25817SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25818 PyObject *obj;
25819 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25820 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
25821 return SWIG_Py_Void();
25822}
25823
25824static PyMethodDef SwigMethods[] = {
25825 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
25826 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
554f62e9
RD
25827 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
25828 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
25829 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
25830 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
25831 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
25832 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
25833 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
25834 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
25835 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
25836 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
25837 { (char *)"Colour_Ok", (PyCFunction)_wrap_Colour_Ok, METH_O, NULL},
25838 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
25839 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
25840 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
f460c29d 25841 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
25842 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
25843 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
25844 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
25845 { (char *)"Colour_Get", (PyCFunction)_wrap_Colour_Get, METH_O, NULL},
25846 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
25847 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
25848 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
25849 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
25850 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
25851 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
25852 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
25853 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
25854 { (char *)"Palette_Ok", (PyCFunction)_wrap_Palette_Ok, METH_O, NULL},
25855 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
25856 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
25857 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
25858 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
25859 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
25860 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
25861 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
25862 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
25863 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
25864 { (char *)"Pen_Ok", (PyCFunction)_wrap_Pen_Ok, METH_O, NULL},
25865 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
25866 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
25867 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
25868 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
25869 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
25870 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
25871 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
25872 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
25873 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
25874 { (char *)"Pen_GetStipple", (PyCFunction)_wrap_Pen_GetStipple, METH_O, NULL},
25875 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
25876 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
25877 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
25878 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
25879 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
25880 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
25881 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25882 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
25883 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
25884 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
25885 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
25886 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
25887 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
25888 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
25889 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
25890 { (char *)"Brush_Ok", (PyCFunction)_wrap_Brush_Ok, METH_O, NULL},
25891 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
25892 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
25893 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25894 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
25895 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25896 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25897 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
25898 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
25899 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
25900 { (char *)"Bitmap_GetHandle", (PyCFunction)_wrap_Bitmap_GetHandle, METH_O, NULL},
25901 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
25902 { (char *)"Bitmap_Ok", (PyCFunction)_wrap_Bitmap_Ok, METH_O, NULL},
25903 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
25904 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
25905 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
25906 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
25907 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
25908 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
25909 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
25910 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
25911 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25912 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
25913 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
25914 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
25915 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
25916 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25917 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
25918 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
25919 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
25920 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
25921 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS, NULL},
25922 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
25923 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
25924 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
25925 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
25926 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
25927 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
25928 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
25929 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
25930 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
25931 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
25932 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
25933 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
25934 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25935 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
25936 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
25937 { (char *)"Icon_GetHandle", (PyCFunction)_wrap_Icon_GetHandle, METH_O, NULL},
25938 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
25939 { (char *)"Icon_Ok", (PyCFunction)_wrap_Icon_Ok, METH_O, NULL},
25940 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
25941 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
25942 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
25943 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
25944 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
25945 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
25946 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
25947 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25948 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
25949 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
25950 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
25951 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
25952 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
25953 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
25954 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
25955 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
25956 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
25957 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
25958 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
25959 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
25960 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
25961 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25962 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
25963 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25964 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
25965 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25966 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
25967 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
25968 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
25969 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
25970 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
25971 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
25972 { (char *)"Cursor_GetHandle", (PyCFunction)_wrap_Cursor_GetHandle, METH_O, NULL},
25973 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
25974 { (char *)"Cursor_Ok", (PyCFunction)_wrap_Cursor_Ok, METH_O, NULL},
25975 { (char *)"Cursor_GetWidth", (PyCFunction)_wrap_Cursor_GetWidth, METH_O, NULL},
25976 { (char *)"Cursor_GetHeight", (PyCFunction)_wrap_Cursor_GetHeight, METH_O, NULL},
25977 { (char *)"Cursor_GetDepth", (PyCFunction)_wrap_Cursor_GetDepth, METH_O, NULL},
25978 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
25979 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
25980 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
25981 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
25982 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
25983 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
25984 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
25985 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25986 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
25987 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
25988 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
25989 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
25990 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
25991 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
25992 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25993 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
25994 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
25995 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
25996 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
25997 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
25998 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25999 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
26000 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
26001 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
26002 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
26003 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
26004 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
26005 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
26006 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
26007 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
26008 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
26009 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
26010 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
26011 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
26012 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
26013 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
26014 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
26015 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
26016 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
26017 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
26018 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
26019 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
26020 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
26021 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
26022 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
26023 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
26024 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
26025 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
26026 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
26027 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
26028 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
26029 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
26030 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
26031 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
26032 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
26033 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
26034 { (char *)"NativeFontInfo_GetPixelSize", (PyCFunction)_wrap_NativeFontInfo_GetPixelSize, METH_O, NULL},
26035 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
26036 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
26037 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
26038 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
26039 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
26040 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
26041 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
26042 { (char *)"NativeFontInfo_SetPixelSize", (PyCFunction) _wrap_NativeFontInfo_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
26043 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
26044 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
26045 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
26046 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
26047 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
26048 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
26049 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
26050 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
26051 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
26052 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
26053 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
26054 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
26055 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
26056 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
26057 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
26058 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
26059 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
26060 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
26061 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
26062 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
26063 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
26064 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
26065 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
26066 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
26067 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
26068 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
26069 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
26070 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
26071 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
26072 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
26073 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
26074 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
26075 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
26076 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
26077 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
26078 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
26079 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
26080 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
26081 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
26082 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
26083 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
26084 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
26085 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
26086 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
26087 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
26088 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
26089 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
26090 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
26091 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
26092 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
26093 { (char *)"Font_Ok", (PyCFunction)_wrap_Font_Ok, METH_O, NULL},
26094 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
26095 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
26096 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
26097 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
26098 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
26099 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
26100 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
26101 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
26102 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
26103 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
26104 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
26105 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
26106 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
26107 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
26108 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
26109 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
26110 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
26111 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
26112 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
26113 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
26114 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
26115 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
26116 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
26117 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
26118 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
26119 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
26120 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
26121 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
26122 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
26123 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
26124 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
26125 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
26126 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
26127 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
26128 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
26129 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
26130 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
26131 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
26132 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
26133 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
26134 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
26135 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
26136 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
26137 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
26138 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
26139 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
26140 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
26141 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
26142 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
26143 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
26144 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
26145 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
26146 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
26147 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
26148 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
26149 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
26150 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
26151 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
26152 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
26153 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
26154 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
26155 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
26156 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
26157 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
26158 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
26159 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
26160 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
26161 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
26162 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
26163 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
26164 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
26165 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
26166 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
26167 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
26168 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
26169 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
26170 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
26171 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
26172 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
26173 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
26174 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
26175 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
26176 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
26177 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
26178 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
26179 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
26180 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
26181 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
26182 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26183 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
26184 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
26185 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
26186 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26187 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
26188 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
26189 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
26190 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26191 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
26192 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26193 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
26194 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
26195 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
26196 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
26197 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26198 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26199 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
26200 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
26201 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
26202 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
26203 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
26204 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
26205 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
26206 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
26207 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
26208 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
26209 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
26210 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
26211 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26212 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
26213 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26214 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
26215 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26216 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
26217 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26218 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
26219 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
26220 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
26221 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
26222 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
26223 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
26224 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
26225 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
26226 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
26227 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
26228 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
26229 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
26230 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
26231 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
26232 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
26233 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
26234 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
26235 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
26236 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
26237 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
26238 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
26239 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
26240 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
26241 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
26242 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
26243 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
26244 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
26245 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
26246 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
26247 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
26248 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
26249 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
26250 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
26251 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
26252 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
26253 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
26254 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
26255 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
26256 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
26257 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
26258 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
26259 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
26260 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
26261 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
26262 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
26263 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
26264 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
26265 { (char *)"DC_Ok", (PyCFunction)_wrap_DC_Ok, METH_O, NULL},
26266 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
26267 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
26268 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
26269 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
26270 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
26271 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
26272 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
26273 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
26274 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
26275 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
26276 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
26277 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
26278 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
26279 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
26280 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
26281 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
26282 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
26283 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
26284 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26285 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
26286 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
26287 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
26288 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26289 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
26290 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
26291 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
26292 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
26293 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
26294 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26295 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
26296 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
26297 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
26298 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
26299 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
26300 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
26301 { (char *)"DC_GetHDC", (PyCFunction)_wrap_DC_GetHDC, METH_O, NULL},
26302 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
26303 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
26304 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
26305 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
26306 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
26307 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
26308 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
26309 { (char *)"new_MemoryDC", (PyCFunction)_wrap_new_MemoryDC, METH_NOARGS, NULL},
26310 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
26311 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
26312 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
26313 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
26314 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
26315 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
26316 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
26317 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
26318 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
26319 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
26320 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
26321 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
26322 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
26323 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
26324 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
26325 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
26326 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
26327 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
26328 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
26329 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
26330 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
26331 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
26332 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
26333 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
26334 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
26335 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
26336 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
26337 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
26338 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
26339 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
26340 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
26341 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
26342 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
26343 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
26344 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
26345 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
26346 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
26347 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
26348 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
26349 { (char *)"MetaFile_Ok", (PyCFunction)_wrap_MetaFile_Ok, METH_O, NULL},
26350 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
26351 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
26352 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
26353 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
26354 { (char *)"MetaFile_GetFileName", (PyCFunction)_wrap_MetaFile_GetFileName, METH_O, NULL},
26355 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
26356 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
26357 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
26358 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
26359 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
26360 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
26361 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
26362 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
26363 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
26364 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
26365 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
26366 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
26367 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
26368 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
26369 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
26370 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
26371 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
26372 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
26373 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
26374 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
26375 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
26376 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
26377 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
26378 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
50efceee
RD
26379 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
26380 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
26381 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
26382 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
26383 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
26384 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
26385 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
26386 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
26387 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
26388 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
26389 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
26390 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
26391 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
26392 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
26393 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
554f62e9 26394 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
50efceee 26395 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9 26396 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9 26397 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
554f62e9 26398 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
50efceee 26399 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9 26400 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9 26401 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
50efceee
RD
26402 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
26403 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
26404 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
26405 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
554f62e9
RD
26406 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
26407 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
26408 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
26409 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
26410 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
26411 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
26412 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
26413 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
50efceee
RD
26414 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
26415 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
26416 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
26417 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
554f62e9
RD
26418 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
26419 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
26420 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
26421 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
26422 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
26423 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
26424 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
26425 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
26426 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
26427 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
26428 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
26429 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
26430 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
26431 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
26432 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
26433 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
26434 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
26435 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
26436 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
26437 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
26438 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
26439 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
26440 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
26441 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
26442 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
26443 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
26444 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
26445 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
26446 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
26447 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
26448 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
26449 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
26450 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
26451 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
26452 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
26453 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
f460c29d
RD
26454 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
26455 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
26456 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
554f62e9
RD
26457 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
26458 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
26459 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
26460 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
26461 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
26462 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
26463 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
26464 { NULL, NULL, 0, NULL }
26465};
26466
26467
26468/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
26469
26470static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
26471 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
26472}
26473static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
26474 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
26475}
26476static void *_p_wxIconTo_p_wxGDIObject(void *x) {
26477 return (void *)((wxGDIObject *) ((wxIcon *) x));
26478}
26479static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
26480 return (void *)((wxGDIObject *) ((wxPalette *) x));
26481}
26482static void *_p_wxPenTo_p_wxGDIObject(void *x) {
26483 return (void *)((wxGDIObject *) ((wxPen *) x));
26484}
26485static void *_p_wxFontTo_p_wxGDIObject(void *x) {
26486 return (void *)((wxGDIObject *) ((wxFont *) x));
26487}
26488static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
26489 return (void *)((wxGDIObject *) ((wxCursor *) x));
26490}
26491static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
26492 return (void *)((wxGDIObject *) ((wxBitmap *) x));
26493}
26494static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
26495 return (void *)((wxGDIObject *) ((wxRegion *) x));
26496}
26497static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
26498 return (void *)((wxGDIObject *) ((wxBrush *) x));
26499}
26500static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
26501 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
26502}
26503static void *_p_wxScreenDCTo_p_wxDC(void *x) {
26504 return (void *)((wxDC *) ((wxScreenDC *) x));
26505}
26506static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
26507 return (void *)((wxDC *) ((wxMirrorDC *) x));
26508}
26509static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
26510 return (void *)((wxDC *) ((wxMemoryDC *) x));
26511}
26512static void *_p_wxWindowDCTo_p_wxDC(void *x) {
26513 return (void *)((wxDC *) ((wxWindowDC *) x));
26514}
26515static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
26516 return (void *)((wxDC *) ((wxMetaFileDC *) x));
26517}
26518static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
26519 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
26520}
26521static void *_p_wxClientDCTo_p_wxDC(void *x) {
26522 return (void *)((wxDC *) ((wxClientDC *) x));
26523}
26524static void *_p_wxPaintDCTo_p_wxDC(void *x) {
26525 return (void *)((wxDC *) ((wxPaintDC *) x));
26526}
26527static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
26528 return (void *)((wxDC *) ((wxPostScriptDC *) x));
26529}
26530static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
26531 return (void *)((wxDC *) ((wxPrinterDC *) x));
26532}
50efceee
RD
26533static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
26534 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
26535}
26536static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
26537 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
26538}
26539static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
26540 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
26541}
554f62e9
RD
26542static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
26543 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
26544}
26545static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
26546 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
26547}
26548static void *_p_wxPenTo_p_wxObject(void *x) {
26549 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
26550}
26551static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
26552 return (void *)((wxObject *) ((wxRegionIterator *) x));
26553}
26554static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
26555 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
26556}
26557static void *_p_wxSizerItemTo_p_wxObject(void *x) {
26558 return (void *)((wxObject *) ((wxSizerItem *) x));
26559}
554f62e9
RD
26560static void *_p_wxScrollEventTo_p_wxObject(void *x) {
26561 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
26562}
26563static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
26564 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
26565}
26566static void *_p_wxIconTo_p_wxObject(void *x) {
26567 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
26568}
26569static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
26570 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
26571}
26572static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
26573 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
26574}
26575static void *_p_wxSizerTo_p_wxObject(void *x) {
26576 return (void *)((wxObject *) ((wxSizer *) x));
26577}
26578static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
26579 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
26580}
26581static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
26582 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
26583}
554f62e9
RD
26584static void *_p_wxEventTo_p_wxObject(void *x) {
26585 return (void *)((wxObject *) ((wxEvent *) x));
26586}
26587static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
26588 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
26589}
26590static void *_p_wxGridSizerTo_p_wxObject(void *x) {
26591 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
26592}
26593static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
26594 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
26595}
2131d850
RD
26596static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
26597 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
26598}
554f62e9
RD
26599static void *_p_wxPaintEventTo_p_wxObject(void *x) {
26600 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
26601}
26602static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
26603 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
26604}
26605static void *_p_wxDCTo_p_wxObject(void *x) {
26606 return (void *)((wxObject *) ((wxDC *) x));
26607}
26608static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
26609 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
26610}
26611static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
26612 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
26613}
26614static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
26615 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
26616}
26617static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
26618 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
26619}
26620static void *_p_wxControlTo_p_wxObject(void *x) {
26621 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
26622}
26623static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
26624 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
26625}
26626static void *_p_wxClientDCTo_p_wxObject(void *x) {
26627 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
26628}
26629static void *_p_wxFSFileTo_p_wxObject(void *x) {
26630 return (void *)((wxObject *) ((wxFSFile *) x));
26631}
26632static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
26633 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
26634}
26635static void *_p_wxRegionTo_p_wxObject(void *x) {
26636 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
26637}
26638static void *_p_wxPySizerTo_p_wxObject(void *x) {
26639 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
26640}
26641static void *_p_wxWindowDCTo_p_wxObject(void *x) {
26642 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
26643}
26644static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
26645 return (void *)((wxObject *) ((wxGDIObject *) x));
26646}
26647static void *_p_wxEffectsTo_p_wxObject(void *x) {
26648 return (void *)((wxObject *) ((wxEffects *) x));
26649}
26650static void *_p_wxPyEventTo_p_wxObject(void *x) {
26651 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
26652}
26653static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
26654 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
26655}
26656static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
26657 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
26658}
26659static void *_p_wxShowEventTo_p_wxObject(void *x) {
26660 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
26661}
26662static void *_p_wxMenuItemTo_p_wxObject(void *x) {
26663 return (void *)((wxObject *) ((wxMenuItem *) x));
26664}
26665static void *_p_wxDateEventTo_p_wxObject(void *x) {
26666 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
26667}
26668static void *_p_wxIdleEventTo_p_wxObject(void *x) {
26669 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
26670}
26671static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
26672 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
26673}
26674static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
26675 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
26676}
26677static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
26678 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
26679}
26680static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
26681 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
26682}
26683static void *_p_wxSizeEventTo_p_wxObject(void *x) {
26684 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
26685}
26686static void *_p_wxMoveEventTo_p_wxObject(void *x) {
26687 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
26688}
26689static void *_p_wxActivateEventTo_p_wxObject(void *x) {
26690 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
26691}
26692static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
26693 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
26694}
26695static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
26696 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
26697}
26698static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
26699 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
26700}
26701static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
26702 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
26703}
26704static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
26705 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
26706}
26707static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
26708 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
26709}
26710static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
26711 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
26712}
26713static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
26714 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
26715}
26716static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
26717 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
26718}
26719static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
26720 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
26721}
26722static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
26723 return (void *)((wxObject *) ((wxImageHandler *) x));
26724}
26725static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
26726 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
26727}
26728static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
26729 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
26730}
26731static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
26732 return (void *)((wxObject *) ((wxEvtHandler *) x));
26733}
26734static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
26735 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
26736}
26737static void *_p_wxPaintDCTo_p_wxObject(void *x) {
26738 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
26739}
26740static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
26741 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
26742}
26743static void *_p_wxScreenDCTo_p_wxObject(void *x) {
26744 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
26745}
26746static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
26747 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
26748}
26749static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
26750 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
26751}
26752static void *_p_wxImageTo_p_wxObject(void *x) {
26753 return (void *)((wxObject *) ((wxImage *) x));
26754}
26755static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
26756 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
26757}
26758static void *_p_wxPaletteTo_p_wxObject(void *x) {
26759 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
26760}
26761static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
26762 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
26763}
26764static void *_p_wxImageListTo_p_wxObject(void *x) {
26765 return (void *)((wxObject *) ((wxImageList *) x));
26766}
26767static void *_p_wxCursorTo_p_wxObject(void *x) {
26768 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
26769}
26770static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
26771 return (void *)((wxObject *) ((wxEncodingConverter *) x));
26772}
26773static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
26774 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
26775}
26776static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
26777 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
26778}
26779static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
26780 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
26781}
26782static void *_p_wxKeyEventTo_p_wxObject(void *x) {
26783 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
26784}
26785static void *_p_wxWindowTo_p_wxObject(void *x) {
26786 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
26787}
26788static void *_p_wxMenuTo_p_wxObject(void *x) {
26789 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
26790}
26791static void *_p_wxMenuBarTo_p_wxObject(void *x) {
26792 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
26793}
26794static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
26795 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
26796}
554f62e9
RD
26797static void *_p_wxFileSystemTo_p_wxObject(void *x) {
26798 return (void *)((wxObject *) ((wxFileSystem *) x));
26799}
26800static void *_p_wxBitmapTo_p_wxObject(void *x) {
26801 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
26802}
26803static void *_p_wxMaskTo_p_wxObject(void *x) {
26804 return (void *)((wxObject *) ((wxMask *) x));
26805}
26806static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
26807 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
26808}
26809static void *_p_wxMenuEventTo_p_wxObject(void *x) {
26810 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
26811}
26812static void *_p_wxPyAppTo_p_wxObject(void *x) {
26813 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
26814}
26815static void *_p_wxCloseEventTo_p_wxObject(void *x) {
26816 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
26817}
26818static void *_p_wxMouseEventTo_p_wxObject(void *x) {
26819 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
26820}
26821static void *_p_wxEraseEventTo_p_wxObject(void *x) {
26822 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
26823}
26824static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
26825 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
26826}
26827static void *_p_wxCommandEventTo_p_wxObject(void *x) {
26828 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
26829}
26830static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
26831 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
26832}
26833static void *_p_wxFocusEventTo_p_wxObject(void *x) {
26834 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
26835}
26836static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
26837 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
26838}
26839static void *_p_wxFontTo_p_wxObject(void *x) {
26840 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
26841}
26842static void *_p_wxBrushTo_p_wxObject(void *x) {
26843 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
26844}
26845static void *_p_wxMetaFileTo_p_wxObject(void *x) {
26846 return (void *)((wxObject *) ((wxMetaFile *) x));
26847}
26848static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
26849 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
26850}
26851static void *_p_wxColourTo_p_wxObject(void *x) {
26852 return (void *)((wxObject *) ((wxColour *) x));
26853}
554f62e9
RD
26854static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
26855 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
26856}
26857static void *_p_wxValidatorTo_p_wxObject(void *x) {
26858 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
26859}
26860static void *_p_wxControlTo_p_wxWindow(void *x) {
26861 return (void *)((wxWindow *) ((wxControl *) x));
26862}
26863static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
26864 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
26865}
26866static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
26867 return (void *)((wxWindow *) ((wxMenuBar *) x));
26868}
26869static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
26870static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
26871static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
26872static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
26873static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
26874static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
26875static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
26876static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
26877static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
26878static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
26879static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
26880static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
26881static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
26882static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
26883static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
26884static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
26885static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
26886static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
26887static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
26888static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
26889static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
26890static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
26891static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
26892static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
50efceee 26893static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
554f62e9
RD
26894static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
26895static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
26896static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
26897static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
26898static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
26899static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
26900static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
26901static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
26902static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
26903static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
26904static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
26905static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
26906static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
26907static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
26908static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
26909static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
26910static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
26911static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
26912static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
26913static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
26914static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
26915static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
26916static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
26917static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
26918static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
26919static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
26920static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
26921static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
26922static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
26923static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
26924static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
2131d850 26925static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
554f62e9
RD
26926static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
26927static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
26928static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
26929static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
26930static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
26931static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
26932static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
26933static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
26934static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
26935static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
26936static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
26937static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
26938static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
26939static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
26940static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
26941static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
26942static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
26943static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
26944static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
26945static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
26946static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
26947static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
26948static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
50efceee 26949static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
554f62e9
RD
26950static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
26951static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
26952static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
26953static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
26954static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
26955static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
26956static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
26957static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
26958static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
2131d850 26959static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
554f62e9
RD
26960static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
26961static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
26962static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
26963static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
26964static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
26965static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
26966static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
26967static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
26968static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
26969static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
26970static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
26971static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
26972static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
26973static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
26974static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
26975static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
26976static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
26977static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
26978static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
26979static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
26980static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
26981static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
26982static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
26983static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
26984static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
26985static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
26986static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
26987static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
26988static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
26989static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
26990static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
26991static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
26992static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
26993static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
26994static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
26995static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
26996static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
26997static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
26998static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
26999static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
27000static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
27001static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
27002static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
50efceee 27003static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
554f62e9
RD
27004static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
27005static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
27006static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
27007
27008static swig_type_info *swig_type_initial[] = {
27009 &_swigt__p_char,
27010 &_swigt__p_double,
27011 &_swigt__p_form_ops_t,
27012 &_swigt__p_int,
27013 &_swigt__p_unsigned_char,
27014 &_swigt__p_unsigned_int,
27015 &_swigt__p_unsigned_long,
27016 &_swigt__p_wxANIHandler,
27017 &_swigt__p_wxAcceleratorTable,
27018 &_swigt__p_wxActivateEvent,
27019 &_swigt__p_wxBMPHandler,
27020 &_swigt__p_wxBitmap,
27021 &_swigt__p_wxBoxSizer,
27022 &_swigt__p_wxBrush,
27023 &_swigt__p_wxBrushList,
27024 &_swigt__p_wxBufferedDC,
27025 &_swigt__p_wxBufferedPaintDC,
27026 &_swigt__p_wxCURHandler,
27027 &_swigt__p_wxChildFocusEvent,
27028 &_swigt__p_wxClientDC,
2131d850 27029 &_swigt__p_wxClipboardTextEvent,
554f62e9
RD
27030 &_swigt__p_wxCloseEvent,
27031 &_swigt__p_wxColour,
27032 &_swigt__p_wxColourDatabase,
27033 &_swigt__p_wxCommandEvent,
27034 &_swigt__p_wxContextMenuEvent,
27035 &_swigt__p_wxControl,
27036 &_swigt__p_wxControlWithItems,
27037 &_swigt__p_wxCursor,
27038 &_swigt__p_wxDC,
27039 &_swigt__p_wxDash,
27040 &_swigt__p_wxDateEvent,
27041 &_swigt__p_wxDisplayChangedEvent,
27042 &_swigt__p_wxDropFilesEvent,
27043 &_swigt__p_wxDuplexMode,
27044 &_swigt__p_wxEffects,
27045 &_swigt__p_wxEncodingConverter,
27046 &_swigt__p_wxEraseEvent,
27047 &_swigt__p_wxEvent,
27048 &_swigt__p_wxEvtHandler,
27049 &_swigt__p_wxFSFile,
27050 &_swigt__p_wxFileSystem,
27051 &_swigt__p_wxFlexGridSizer,
27052 &_swigt__p_wxFocusEvent,
27053 &_swigt__p_wxFont,
27054 &_swigt__p_wxFontList,
27055 &_swigt__p_wxFontMapper,
27056 &_swigt__p_wxGBSizerItem,
50efceee 27057 &_swigt__p_wxGDIObjListBase,
554f62e9
RD
27058 &_swigt__p_wxGDIObject,
27059 &_swigt__p_wxGIFHandler,
27060 &_swigt__p_wxGridBagSizer,
27061 &_swigt__p_wxGridSizer,
27062 &_swigt__p_wxICOHandler,
27063 &_swigt__p_wxIcon,
27064 &_swigt__p_wxIconBundle,
27065 &_swigt__p_wxIconLocation,
27066 &_swigt__p_wxIconizeEvent,
27067 &_swigt__p_wxIdleEvent,
27068 &_swigt__p_wxImage,
27069 &_swigt__p_wxImageHandler,
27070 &_swigt__p_wxImageList,
27071 &_swigt__p_wxIndividualLayoutConstraint,
27072 &_swigt__p_wxInitDialogEvent,
27073 &_swigt__p_wxJPEGHandler,
27074 &_swigt__p_wxKeyEvent,
27075 &_swigt__p_wxLanguageInfo,
27076 &_swigt__p_wxLayoutConstraints,
27077 &_swigt__p_wxLocale,
27078 &_swigt__p_wxMask,
27079 &_swigt__p_wxMaximizeEvent,
27080 &_swigt__p_wxMemoryDC,
27081 &_swigt__p_wxMenu,
27082 &_swigt__p_wxMenuBar,
27083 &_swigt__p_wxMenuEvent,
27084 &_swigt__p_wxMenuItem,
27085 &_swigt__p_wxMetaFile,
27086 &_swigt__p_wxMetaFileDC,
27087 &_swigt__p_wxMirrorDC,
27088 &_swigt__p_wxMouseCaptureChangedEvent,
27089 &_swigt__p_wxMouseEvent,
27090 &_swigt__p_wxMoveEvent,
27091 &_swigt__p_wxNativeEncodingInfo,
27092 &_swigt__p_wxNativeFontInfo,
27093 &_swigt__p_wxNavigationKeyEvent,
27094 &_swigt__p_wxNcPaintEvent,
27095 &_swigt__p_wxNotifyEvent,
27096 &_swigt__p_wxObject,
27097 &_swigt__p_wxPCXHandler,
27098 &_swigt__p_wxPNGHandler,
27099 &_swigt__p_wxPNMHandler,
27100 &_swigt__p_wxPaintDC,
27101 &_swigt__p_wxPaintEvent,
27102 &_swigt__p_wxPalette,
27103 &_swigt__p_wxPaletteChangedEvent,
27104 &_swigt__p_wxPaperSize,
27105 &_swigt__p_wxPen,
27106 &_swigt__p_wxPenList,
27107 &_swigt__p_wxPoint,
27108 &_swigt__p_wxPostScriptDC,
27109 &_swigt__p_wxPrintData,
27110 &_swigt__p_wxPrinterDC,
27111 &_swigt__p_wxPyApp,
27112 &_swigt__p_wxPyCommandEvent,
27113 &_swigt__p_wxPyEvent,
27114 &_swigt__p_wxPyFontEnumerator,
27115 &_swigt__p_wxPyImageHandler,
27116 &_swigt__p_wxPySizer,
27117 &_swigt__p_wxPyValidator,
27118 &_swigt__p_wxQueryNewPaletteEvent,
27119 &_swigt__p_wxRect,
27120 &_swigt__p_wxRegion,
27121 &_swigt__p_wxRegionIterator,
27122 &_swigt__p_wxRendererNative,
27123 &_swigt__p_wxRendererVersion,
27124 &_swigt__p_wxScreenDC,
27125 &_swigt__p_wxScrollEvent,
27126 &_swigt__p_wxScrollWinEvent,
27127 &_swigt__p_wxSetCursorEvent,
27128 &_swigt__p_wxShowEvent,
27129 &_swigt__p_wxSize,
27130 &_swigt__p_wxSizeEvent,
27131 &_swigt__p_wxSizer,
27132 &_swigt__p_wxSizerItem,
27133 &_swigt__p_wxSplitterRenderParams,
27134 &_swigt__p_wxStaticBoxSizer,
27135 &_swigt__p_wxStdDialogButtonSizer,
50efceee 27136 &_swigt__p_wxStockGDI,
554f62e9
RD
27137 &_swigt__p_wxString,
27138 &_swigt__p_wxSysColourChangedEvent,
27139 &_swigt__p_wxTIFFHandler,
27140 &_swigt__p_wxUpdateUIEvent,
27141 &_swigt__p_wxValidator,
27142 &_swigt__p_wxWindow,
27143 &_swigt__p_wxWindowCreateEvent,
27144 &_swigt__p_wxWindowDC,
27145 &_swigt__p_wxWindowDestroyEvent,
27146 &_swigt__p_wxXPMHandler,
27147};
27148
27149static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
27150static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
27151static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
27152static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
27153static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
27154static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
27155static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
27156static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
27157static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
27158static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
27159static 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}};
27160static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
27161static swig_cast_info _swigc__p_wxClientDC[] = { {&_swigt__p_wxClientDC, 0, 0, 0},{0, 0, 0, 0}};
27162static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
27163static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
27164static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
27165static 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}};
27166static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
27167static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
27168static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
27169static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
27170static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
27171static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
27172static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
50efceee 27173static swig_cast_info _swigc__p_wxGDIObjListBase[] = { {&_swigt__p_wxGDIObjListBase, 0, 0, 0}, {&_swigt__p_wxBrushList, _p_wxBrushListTo_p_wxGDIObjListBase, 0, 0}, {&_swigt__p_wxFontList, _p_wxFontListTo_p_wxGDIObjListBase, 0, 0}, {&_swigt__p_wxPenList, _p_wxPenListTo_p_wxGDIObjListBase, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
27174static 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}};
27175static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
27176static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
27177static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
27178static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
27179static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
27180static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
27181static swig_cast_info _swigc__p_wxLocale[] = { {&_swigt__p_wxLocale, 0, 0, 0},{0, 0, 0, 0}};
27182static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
27183static 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}};
27184static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
27185static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
27186static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
27187static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
27188static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
27189static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
27190static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
27191static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
27192static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
27193static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
27194static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
27195static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
27196static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
27197static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
27198static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
27199static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
27200static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
27201static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
27202static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
27203static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 27204static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
27205static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
27206static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
27207static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
27208static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
27209static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
27210static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
27211static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
27212static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
27213static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
27214static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
27215static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
27216static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
27217static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
27218static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
27219static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
27220static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
27221static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
27222static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
27223static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
27224static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
27225static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
27226static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
27227static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
50efceee 27228static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
27229static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
27230static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
27231static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
27232static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
27233static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
27234static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
27235static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
27236static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
27237static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 27238static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
27239static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
27240static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
27241static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
27242static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
27243static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
27244static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
27245static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
27246static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
27247static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
27248static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
27249static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
27250static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
27251static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
27252static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
27253static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
27254static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
27255static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
27256static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
27257static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
27258static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
27259static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
27260static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
27261static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
27262static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
27263static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
2131d850 27264static 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_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_wxPNGHandler, _p_wxPNGHandlerTo_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_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}};
554f62e9
RD
27265static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
27266static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
27267static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
27268static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
27269static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
27270static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
27271static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
27272static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
27273static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
27274static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
27275static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
27276static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
27277static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
27278static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
27279static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
27280static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
27281static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
27282static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
50efceee 27283static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
554f62e9
RD
27284static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
27285static 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}};
27286static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0},{0, 0, 0, 0}};
27287
27288static swig_cast_info *swig_cast_initial[] = {
27289 _swigc__p_char,
27290 _swigc__p_double,
27291 _swigc__p_form_ops_t,
27292 _swigc__p_int,
27293 _swigc__p_unsigned_char,
27294 _swigc__p_unsigned_int,
27295 _swigc__p_unsigned_long,
27296 _swigc__p_wxANIHandler,
27297 _swigc__p_wxAcceleratorTable,
27298 _swigc__p_wxActivateEvent,
27299 _swigc__p_wxBMPHandler,
27300 _swigc__p_wxBitmap,
27301 _swigc__p_wxBoxSizer,
27302 _swigc__p_wxBrush,
27303 _swigc__p_wxBrushList,
27304 _swigc__p_wxBufferedDC,
27305 _swigc__p_wxBufferedPaintDC,
27306 _swigc__p_wxCURHandler,
27307 _swigc__p_wxChildFocusEvent,
27308 _swigc__p_wxClientDC,
2131d850 27309 _swigc__p_wxClipboardTextEvent,
554f62e9
RD
27310 _swigc__p_wxCloseEvent,
27311 _swigc__p_wxColour,
27312 _swigc__p_wxColourDatabase,
27313 _swigc__p_wxCommandEvent,
27314 _swigc__p_wxContextMenuEvent,
27315 _swigc__p_wxControl,
27316 _swigc__p_wxControlWithItems,
27317 _swigc__p_wxCursor,
27318 _swigc__p_wxDC,
27319 _swigc__p_wxDash,
27320 _swigc__p_wxDateEvent,
27321 _swigc__p_wxDisplayChangedEvent,
27322 _swigc__p_wxDropFilesEvent,
27323 _swigc__p_wxDuplexMode,
27324 _swigc__p_wxEffects,
27325 _swigc__p_wxEncodingConverter,
27326 _swigc__p_wxEraseEvent,
27327 _swigc__p_wxEvent,
27328 _swigc__p_wxEvtHandler,
27329 _swigc__p_wxFSFile,
27330 _swigc__p_wxFileSystem,
27331 _swigc__p_wxFlexGridSizer,
27332 _swigc__p_wxFocusEvent,
27333 _swigc__p_wxFont,
27334 _swigc__p_wxFontList,
27335 _swigc__p_wxFontMapper,
27336 _swigc__p_wxGBSizerItem,
50efceee 27337 _swigc__p_wxGDIObjListBase,
554f62e9
RD
27338 _swigc__p_wxGDIObject,
27339 _swigc__p_wxGIFHandler,
27340 _swigc__p_wxGridBagSizer,
27341 _swigc__p_wxGridSizer,
27342 _swigc__p_wxICOHandler,
27343 _swigc__p_wxIcon,
27344 _swigc__p_wxIconBundle,
27345 _swigc__p_wxIconLocation,
27346 _swigc__p_wxIconizeEvent,
27347 _swigc__p_wxIdleEvent,
27348 _swigc__p_wxImage,
27349 _swigc__p_wxImageHandler,
27350 _swigc__p_wxImageList,
27351 _swigc__p_wxIndividualLayoutConstraint,
27352 _swigc__p_wxInitDialogEvent,
27353 _swigc__p_wxJPEGHandler,
27354 _swigc__p_wxKeyEvent,
27355 _swigc__p_wxLanguageInfo,
27356 _swigc__p_wxLayoutConstraints,
27357 _swigc__p_wxLocale,
27358 _swigc__p_wxMask,
27359 _swigc__p_wxMaximizeEvent,
27360 _swigc__p_wxMemoryDC,
27361 _swigc__p_wxMenu,
27362 _swigc__p_wxMenuBar,
27363 _swigc__p_wxMenuEvent,
27364 _swigc__p_wxMenuItem,
27365 _swigc__p_wxMetaFile,
27366 _swigc__p_wxMetaFileDC,
27367 _swigc__p_wxMirrorDC,
27368 _swigc__p_wxMouseCaptureChangedEvent,
27369 _swigc__p_wxMouseEvent,
27370 _swigc__p_wxMoveEvent,
27371 _swigc__p_wxNativeEncodingInfo,
27372 _swigc__p_wxNativeFontInfo,
27373 _swigc__p_wxNavigationKeyEvent,
27374 _swigc__p_wxNcPaintEvent,
27375 _swigc__p_wxNotifyEvent,
27376 _swigc__p_wxObject,
27377 _swigc__p_wxPCXHandler,
27378 _swigc__p_wxPNGHandler,
27379 _swigc__p_wxPNMHandler,
27380 _swigc__p_wxPaintDC,
27381 _swigc__p_wxPaintEvent,
27382 _swigc__p_wxPalette,
27383 _swigc__p_wxPaletteChangedEvent,
27384 _swigc__p_wxPaperSize,
27385 _swigc__p_wxPen,
27386 _swigc__p_wxPenList,
27387 _swigc__p_wxPoint,
27388 _swigc__p_wxPostScriptDC,
27389 _swigc__p_wxPrintData,
27390 _swigc__p_wxPrinterDC,
27391 _swigc__p_wxPyApp,
27392 _swigc__p_wxPyCommandEvent,
27393 _swigc__p_wxPyEvent,
27394 _swigc__p_wxPyFontEnumerator,
27395 _swigc__p_wxPyImageHandler,
27396 _swigc__p_wxPySizer,
27397 _swigc__p_wxPyValidator,
27398 _swigc__p_wxQueryNewPaletteEvent,
27399 _swigc__p_wxRect,
27400 _swigc__p_wxRegion,
27401 _swigc__p_wxRegionIterator,
27402 _swigc__p_wxRendererNative,
27403 _swigc__p_wxRendererVersion,
27404 _swigc__p_wxScreenDC,
27405 _swigc__p_wxScrollEvent,
27406 _swigc__p_wxScrollWinEvent,
27407 _swigc__p_wxSetCursorEvent,
27408 _swigc__p_wxShowEvent,
27409 _swigc__p_wxSize,
27410 _swigc__p_wxSizeEvent,
27411 _swigc__p_wxSizer,
27412 _swigc__p_wxSizerItem,
27413 _swigc__p_wxSplitterRenderParams,
27414 _swigc__p_wxStaticBoxSizer,
27415 _swigc__p_wxStdDialogButtonSizer,
50efceee 27416 _swigc__p_wxStockGDI,
554f62e9
RD
27417 _swigc__p_wxString,
27418 _swigc__p_wxSysColourChangedEvent,
27419 _swigc__p_wxTIFFHandler,
27420 _swigc__p_wxUpdateUIEvent,
27421 _swigc__p_wxValidator,
27422 _swigc__p_wxWindow,
27423 _swigc__p_wxWindowCreateEvent,
27424 _swigc__p_wxWindowDC,
27425 _swigc__p_wxWindowDestroyEvent,
27426 _swigc__p_wxXPMHandler,
27427};
27428
27429
27430/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
27431
27432static swig_const_info swig_const_table[] = {
27433{0, 0, 0, 0.0, 0, 0}};
27434
27435#ifdef __cplusplus
27436}
27437#endif
27438/* -----------------------------------------------------------------------------
27439 * Type initialization:
27440 * This problem is tough by the requirement that no dynamic
27441 * memory is used. Also, since swig_type_info structures store pointers to
27442 * swig_cast_info structures and swig_cast_info structures store pointers back
27443 * to swig_type_info structures, we need some lookup code at initialization.
27444 * The idea is that swig generates all the structures that are needed.
27445 * The runtime then collects these partially filled structures.
27446 * The SWIG_InitializeModule function takes these initial arrays out of
27447 * swig_module, and does all the lookup, filling in the swig_module.types
27448 * array with the correct data and linking the correct swig_cast_info
27449 * structures together.
27450 *
27451 * The generated swig_type_info structures are assigned staticly to an initial
27452 * array. We just loop though that array, and handle each type individually.
27453 * First we lookup if this type has been already loaded, and if so, use the
27454 * loaded structure instead of the generated one. Then we have to fill in the
27455 * cast linked list. The cast data is initially stored in something like a
27456 * two-dimensional array. Each row corresponds to a type (there are the same
27457 * number of rows as there are in the swig_type_initial array). Each entry in
27458 * a column is one of the swig_cast_info structures for that type.
27459 * The cast_initial array is actually an array of arrays, because each row has
27460 * a variable number of columns. So to actually build the cast linked list,
27461 * we find the array of casts associated with the type, and loop through it
27462 * adding the casts to the list. The one last trick we need to do is making
27463 * sure the type pointer in the swig_cast_info struct is correct.
27464 *
27465 * First off, we lookup the cast->type name to see if it is already loaded.
27466 * There are three cases to handle:
27467 * 1) If the cast->type has already been loaded AND the type we are adding
27468 * casting info to has not been loaded (it is in this module), THEN we
27469 * replace the cast->type pointer with the type pointer that has already
27470 * been loaded.
27471 * 2) If BOTH types (the one we are adding casting info to, and the
27472 * cast->type) are loaded, THEN the cast info has already been loaded by
27473 * the previous module so we just ignore it.
27474 * 3) Finally, if cast->type has not already been loaded, then we add that
27475 * swig_cast_info to the linked list (because the cast->type) pointer will
27476 * be correct.
27477 * ----------------------------------------------------------------------------- */
27478
27479#ifdef __cplusplus
27480extern "C" {
27481#if 0
27482} /* c-mode */
27483#endif
27484#endif
27485
27486#if 0
27487#define SWIGRUNTIME_DEBUG
27488#endif
27489
27490SWIGRUNTIME void
27491SWIG_InitializeModule(void *clientdata) {
27492 size_t i;
27493 swig_module_info *module_head;
27494 static int init_run = 0;
27495
27496 clientdata = clientdata;
27497
27498 if (init_run) return;
27499 init_run = 1;
27500
27501 /* Initialize the swig_module */
27502 swig_module.type_initial = swig_type_initial;
27503 swig_module.cast_initial = swig_cast_initial;
27504
27505 /* Try and load any already created modules */
27506 module_head = SWIG_GetModule(clientdata);
27507 if (module_head) {
27508 swig_module.next = module_head->next;
27509 module_head->next = &swig_module;
27510 } else {
27511 /* This is the first module loaded */
27512 swig_module.next = &swig_module;
27513 SWIG_SetModule(clientdata, &swig_module);
27514 }
27515
27516 /* Now work on filling in swig_module.types */
27517#ifdef SWIGRUNTIME_DEBUG
27518 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
27519#endif
27520 for (i = 0; i < swig_module.size; ++i) {
27521 swig_type_info *type = 0;
27522 swig_type_info *ret;
27523 swig_cast_info *cast;
27524
27525#ifdef SWIGRUNTIME_DEBUG
27526 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
27527#endif
27528
27529 /* if there is another module already loaded */
27530 if (swig_module.next != &swig_module) {
27531 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
be9b1dca 27532 }
554f62e9
RD
27533 if (type) {
27534 /* Overwrite clientdata field */
27535#ifdef SWIGRUNTIME_DEBUG
27536 printf("SWIG_InitializeModule: found type %s\n", type->name);
27537#endif
27538 if (swig_module.type_initial[i]->clientdata) {
27539 type->clientdata = swig_module.type_initial[i]->clientdata;
27540#ifdef SWIGRUNTIME_DEBUG
27541 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
27542#endif
27543 }
27544 } else {
27545 type = swig_module.type_initial[i];
be9b1dca 27546 }
554f62e9
RD
27547
27548 /* Insert casting types */
27549 cast = swig_module.cast_initial[i];
27550 while (cast->type) {
27551 /* Don't need to add information already in the list */
27552 ret = 0;
27553#ifdef SWIGRUNTIME_DEBUG
27554 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
27555#endif
27556 if (swig_module.next != &swig_module) {
27557 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
27558#ifdef SWIGRUNTIME_DEBUG
27559 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
27560#endif
27561 }
27562 if (ret) {
27563 if (type == swig_module.type_initial[i]) {
27564#ifdef SWIGRUNTIME_DEBUG
27565 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
27566#endif
27567 cast->type = ret;
27568 ret = 0;
27569 } else {
27570 /* Check for casting already in the list */
27571 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
27572#ifdef SWIGRUNTIME_DEBUG
27573 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
27574#endif
27575 if (!ocast) ret = 0;
27576 }
27577 }
27578
27579 if (!ret) {
27580#ifdef SWIGRUNTIME_DEBUG
27581 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
27582#endif
27583 if (type->cast) {
27584 type->cast->prev = cast;
27585 cast->next = type->cast;
27586 }
27587 type->cast = cast;
27588 }
27589 cast++;
be9b1dca 27590 }
554f62e9
RD
27591 /* Set entry in modules->types array equal to the type */
27592 swig_module.types[i] = type;
27593 }
27594 swig_module.types[i] = 0;
27595
27596#ifdef SWIGRUNTIME_DEBUG
27597 printf("**** SWIG_InitializeModule: Cast List ******\n");
27598 for (i = 0; i < swig_module.size; ++i) {
27599 int j = 0;
27600 swig_cast_info *cast = swig_module.cast_initial[i];
27601 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
27602 while (cast->type) {
27603 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
27604 cast++;
27605 ++j;
27606 }
27607 printf("---- Total casts: %d\n",j);
27608 }
27609 printf("**** SWIG_InitializeModule: Cast List ******\n");
27610#endif
27611}
27612
27613/* This function will propagate the clientdata field of type to
27614* any new swig_type_info structures that have been added into the list
27615* of equivalent types. It is like calling
27616* SWIG_TypeClientData(type, clientdata) a second time.
27617*/
27618SWIGRUNTIME void
27619SWIG_PropagateClientData(void) {
27620 size_t i;
27621 swig_cast_info *equiv;
27622 static int init_run = 0;
27623
27624 if (init_run) return;
27625 init_run = 1;
27626
27627 for (i = 0; i < swig_module.size; i++) {
27628 if (swig_module.types[i]->clientdata) {
27629 equiv = swig_module.types[i]->cast;
27630 while (equiv) {
27631 if (!equiv->converter) {
27632 if (equiv->type && !equiv->type->clientdata)
27633 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
27634 }
27635 equiv = equiv->next;
27636 }
be9b1dca 27637 }
554f62e9
RD
27638 }
27639}
27640
27641#ifdef __cplusplus
27642#if 0
27643{
27644 /* c-mode */
27645#endif
27646}
27647#endif
27648
27649
27650
27651#ifdef __cplusplus
27652extern "C" {
27653#endif
27654
27655 /* Python-specific SWIG API */
27656#define SWIG_newvarlink() SWIG_Python_newvarlink()
27657#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
27658#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
27659
27660 /* -----------------------------------------------------------------------------
27661 * global variable support code.
27662 * ----------------------------------------------------------------------------- */
27663
27664 typedef struct swig_globalvar {
27665 char *name; /* Name of global variable */
27666 PyObject *(*get_attr)(void); /* Return the current value */
27667 int (*set_attr)(PyObject *); /* Set the value */
27668 struct swig_globalvar *next;
27669 } swig_globalvar;
27670
27671 typedef struct swig_varlinkobject {
27672 PyObject_HEAD
27673 swig_globalvar *vars;
27674 } swig_varlinkobject;
27675
27676 SWIGINTERN PyObject *
27677 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
27678 return PyString_FromString("<Swig global variables>");
27679 }
27680
27681 SWIGINTERN PyObject *
27682 swig_varlink_str(swig_varlinkobject *v) {
27683 PyObject *str = PyString_FromString("(");
27684 swig_globalvar *var;
27685 for (var = v->vars; var; var=var->next) {
27686 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
27687 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
27688 }
27689 PyString_ConcatAndDel(&str,PyString_FromString(")"));
27690 return str;
27691 }
27692
27693 SWIGINTERN int
27694 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
27695 PyObject *str = swig_varlink_str(v);
27696 fprintf(fp,"Swig global variables ");
27697 fprintf(fp,"%s\n", PyString_AsString(str));
27698 Py_DECREF(str);
27699 return 0;
27700 }
27701
27702 SWIGINTERN void
27703 swig_varlink_dealloc(swig_varlinkobject *v) {
27704 swig_globalvar *var = v->vars;
27705 while (var) {
27706 swig_globalvar *n = var->next;
27707 free(var->name);
27708 free(var);
27709 var = n;
be9b1dca 27710 }
554f62e9
RD
27711 }
27712
27713 SWIGINTERN PyObject *
27714 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
27715 PyObject *res = NULL;
27716 swig_globalvar *var = v->vars;
27717 while (var) {
27718 if (strcmp(var->name,n) == 0) {
27719 res = (*var->get_attr)();
27720 break;
27721 }
27722 var = var->next;
be9b1dca 27723 }
554f62e9
RD
27724 if (res == NULL && !PyErr_Occurred()) {
27725 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 27726 }
554f62e9
RD
27727 return res;
27728 }
27729
27730 SWIGINTERN int
27731 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
27732 int res = 1;
27733 swig_globalvar *var = v->vars;
27734 while (var) {
27735 if (strcmp(var->name,n) == 0) {
27736 res = (*var->set_attr)(p);
27737 break;
27738 }
27739 var = var->next;
be9b1dca 27740 }
554f62e9
RD
27741 if (res == 1 && !PyErr_Occurred()) {
27742 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 27743 }
554f62e9
RD
27744 return res;
27745 }
27746
27747 SWIGINTERN PyTypeObject*
27748 swig_varlink_type(void) {
27749 static char varlink__doc__[] = "Swig var link object";
27750 static PyTypeObject varlink_type;
27751 static int type_init = 0;
27752 if (!type_init) {
27753 const PyTypeObject tmp
27754 = {
27755 PyObject_HEAD_INIT(NULL)
27756 0, /* Number of items in variable part (ob_size) */
27757 (char *)"swigvarlink", /* Type name (tp_name) */
27758 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
27759 0, /* Itemsize (tp_itemsize) */
27760 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
27761 (printfunc) swig_varlink_print, /* Print (tp_print) */
27762 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
27763 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
27764 0, /* tp_compare */
27765 (reprfunc) swig_varlink_repr, /* tp_repr */
27766 0, /* tp_as_number */
27767 0, /* tp_as_sequence */
27768 0, /* tp_as_mapping */
27769 0, /* tp_hash */
27770 0, /* tp_call */
27771 (reprfunc)swig_varlink_str, /* tp_str */
27772 0, /* tp_getattro */
27773 0, /* tp_setattro */
27774 0, /* tp_as_buffer */
27775 0, /* tp_flags */
27776 varlink__doc__, /* tp_doc */
27777 0, /* tp_traverse */
27778 0, /* tp_clear */
27779 0, /* tp_richcompare */
27780 0, /* tp_weaklistoffset */
27781#if PY_VERSION_HEX >= 0x02020000
27782 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
27783#endif
27784#if PY_VERSION_HEX >= 0x02030000
27785 0, /* tp_del */
27786#endif
27787#ifdef COUNT_ALLOCS
27788 0,0,0,0 /* tp_alloc -> tp_next */
27789#endif
27790 };
27791 varlink_type = tmp;
27792 varlink_type.ob_type = &PyType_Type;
27793 type_init = 1;
be9b1dca 27794 }
554f62e9
RD
27795 return &varlink_type;
27796 }
27797
27798 /* Create a variable linking object for use later */
27799 SWIGINTERN PyObject *
27800 SWIG_Python_newvarlink(void) {
27801 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
27802 if (result) {
27803 result->vars = 0;
27804 }
27805 return ((PyObject*) result);
27806 }
27807
27808 SWIGINTERN void
27809 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
27810 swig_varlinkobject *v = (swig_varlinkobject *) p;
27811 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
27812 if (gv) {
27813 size_t size = strlen(name)+1;
27814 gv->name = (char *)malloc(size);
27815 if (gv->name) {
27816 strncpy(gv->name,name,size);
27817 gv->get_attr = get_attr;
27818 gv->set_attr = set_attr;
27819 gv->next = v->vars;
27820 }
be9b1dca 27821 }
554f62e9
RD
27822 v->vars = gv;
27823 }
27824
27825 SWIGINTERN PyObject *
27826 SWIG_globals() {
27827 static PyObject *_SWIG_globals = 0;
27828 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
27829 return _SWIG_globals;
27830 }
27831
27832 /* -----------------------------------------------------------------------------
27833 * constants/methods manipulation
27834 * ----------------------------------------------------------------------------- */
27835
27836 /* Install Constants */
27837 SWIGINTERN void
27838 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
27839 PyObject *obj = 0;
27840 size_t i;
27841 for (i = 0; constants[i].type; ++i) {
27842 switch(constants[i].type) {
27843 case SWIG_PY_POINTER:
27844 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
27845 break;
27846 case SWIG_PY_BINARY:
27847 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
27848 break;
27849 default:
27850 obj = 0;
27851 break;
27852 }
27853 if (obj) {
27854 PyDict_SetItemString(d, constants[i].name, obj);
27855 Py_DECREF(obj);
27856 }
be9b1dca 27857 }
554f62e9
RD
27858 }
27859
27860 /* -----------------------------------------------------------------------------*/
27861 /* Fix SwigMethods to carry the callback ptrs when needed */
27862 /* -----------------------------------------------------------------------------*/
27863
27864 SWIGINTERN void
27865 SWIG_Python_FixMethods(PyMethodDef *methods,
27866 swig_const_info *const_table,
27867 swig_type_info **types,
27868 swig_type_info **types_initial) {
27869 size_t i;
27870 for (i = 0; methods[i].ml_name; ++i) {
27871 char *c = methods[i].ml_doc;
27872 if (c && (c = strstr(c, "swig_ptr: "))) {
27873 int j;
27874 swig_const_info *ci = 0;
27875 char *name = c + 10;
27876 for (j = 0; const_table[j].type; ++j) {
27877 if (strncmp(const_table[j].name, name,
27878 strlen(const_table[j].name)) == 0) {
27879 ci = &(const_table[j]);
27880 break;
27881 }
27882 }
27883 if (ci) {
27884 size_t shift = (ci->ptype) - types;
27885 swig_type_info *ty = types_initial[shift];
27886 size_t ldoc = (c - methods[i].ml_doc);
27887 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
27888 char *ndoc = (char*)malloc(ldoc + lptr + 10);
27889 if (ndoc) {
27890 char *buff = ndoc;
27891 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
27892 if (ptr) {
27893 strncpy(buff, methods[i].ml_doc, ldoc);
27894 buff += ldoc;
27895 strncpy(buff, "swig_ptr: ", 10);
27896 buff += 10;
27897 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
27898 methods[i].ml_doc = ndoc;
27899 }
27900 }
27901 }
27902 }
be9b1dca 27903 }
554f62e9
RD
27904 }
27905
27906#ifdef __cplusplus
27907}
27908#endif
27909
27910/* -----------------------------------------------------------------------------*
27911 * Partial Init method
27912 * -----------------------------------------------------------------------------*/
27913
27914#ifdef __cplusplus
27915extern "C"
27916#endif
27917SWIGEXPORT void SWIG_init(void) {
27918 PyObject *m, *d;
27919
27920 /* Fix SwigMethods to carry the callback ptrs when needed */
27921 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
27922
27923 m = Py_InitModule((char *) SWIG_name, SwigMethods);
27924 d = PyModule_GetDict(m);
27925
27926 SWIG_InitializeModule(0);
27927 SWIG_InstallConstants(d,swig_const_table);
27928
27929
f460c29d
RD
27930 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
27931 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
27932 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
554f62e9
RD
27933 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
27934 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
27935 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
27936 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
27937 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
27938 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
27939 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
27940 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
27941 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
27942 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
27943 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
27944 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
27945 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
27946 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
27947 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
27948 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
27949 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
27950 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
27951 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
27952 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
27953 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
27954 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
27955 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
27956 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
27957 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
27958 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
27959 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
27960 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
27961 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
27962 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
27963 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
27964 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
27965 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
27966 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
27967 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
27968 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
27969 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
27970 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
27971 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
27972 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
27973 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
27974 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
27975 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
27976 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
27977 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
27978 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
27979 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
27980 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
27981 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
27982 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
27983 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
27984 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
27985 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
27986 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
27987 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
27988 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
27989 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
27990 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
27991 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
27992 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
27993 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
27994 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
27995 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
27996 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
27997 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
27998 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
27999 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
28000 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
28001 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
28002 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
28003 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
28004 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
28005 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
28006 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
28007 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
28008 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
28009 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
28010 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
28011 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
28012 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
28013 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
28014 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
28015 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
28016 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
28017 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
28018 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
28019 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
28020 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
28021 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
28022 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
28023 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
28024 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
28025 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
28026 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
28027 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
28028 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
28029 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
28030 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
28031 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
28032 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
28033 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
28034 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
28035 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
28036 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
28037 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
28038 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
28039 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
28040 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
28041 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
28042 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
28043 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
28044 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
28045 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
28046 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
28047 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
28048 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
28049 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
28050 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
28051 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
28052 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
28053 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
28054 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
28055 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
28056 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
28057 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
28058 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
28059 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
28060
28061 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
28062
28063 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
28064 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
28065 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
28066 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
28067 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
28068 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
28069 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
28070 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
28071 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
28072 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
28073 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
28074 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
28075 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
28076 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
28077 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
28078 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
28079 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
28080 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
28081 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
28082 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
28083 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
28084 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
28085 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
28086 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
28087 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
28088 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
28089 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
28090 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
28091 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
28092 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
28093 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
28094 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
28095 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
28096 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
28097 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
28098 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
28099 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
28100 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
28101 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
28102 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
28103 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
28104 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
28105 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
28106 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
28107 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
28108 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
28109 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
28110 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
28111 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
28112 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
28113 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
28114 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
28115 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
28116 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
28117 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
28118 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
28119 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
28120 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
28121 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
28122 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
28123 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
28124 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
28125 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
28126 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
28127 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
28128 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
28129 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
28130 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
28131 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
28132 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
28133 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
28134 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
28135 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
28136 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
28137 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
28138 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
28139 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
28140 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
28141 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
28142 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
28143 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
28144 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
28145 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
28146 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
28147 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
28148 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
28149 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
28150 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
28151 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
28152 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
28153 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
28154 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
28155 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
28156 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
28157 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
28158 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
28159 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
28160 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
28161 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
28162 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
28163 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
28164 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
28165 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
28166 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
28167 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
28168 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
28169 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
28170 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
28171 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
28172 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
28173 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
28174 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
28175 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
28176 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
28177 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
28178 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
28179 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
28180 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
28181 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
28182 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
28183 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
28184 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
28185 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
28186 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
28187 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
28188 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
28189 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
28190 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
28191 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
28192 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
28193 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
28194 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
28195 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
28196 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
28197 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
28198 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
28199 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
28200 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
28201 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
28202 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
28203 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
28204 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
28205 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
28206 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
28207 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
28208 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
28209 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
28210 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
28211 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
28212 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
28213 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
28214 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
28215 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
28216 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
28217 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
28218 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
28219 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
28220 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
28221 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
28222 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
28223 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
28224 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
28225 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
28226 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
28227 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
28228 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
28229 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
28230 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
28231 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
28232 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
28233 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
28234 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
28235 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
28236 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
28237 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
28238 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
28239 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
28240 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
28241 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
28242 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
28243 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
28244 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
28245 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
28246 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
28247 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
28248 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
28249 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
28250 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
28251 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
28252 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
28253 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
28254 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
28255 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
28256 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
28257 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
28258 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
28259 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
28260 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
28261 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
28262 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
28263 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
28264 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
28265 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
28266 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
28267 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
28268 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
28269 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
28270 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
28271 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
28272 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
28273 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
28274 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
28275 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
28276 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
28277 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
28278 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
28279 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
28280 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
28281 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
28282 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
28283 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
28284 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
28285 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
28286 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
28287 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
28288 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
28289 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
28290 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
28291 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
28292 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
28293 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
28294 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
28295 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
28296 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
28297 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
28298 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
28299 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
28300 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
28301 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
28302 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
28303 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
28304 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
28305 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
28306 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
28307 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
28308 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
28309 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
28310 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
28311 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
28312 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
28313 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
28314 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
28315 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
28316 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
28317 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
50efceee
RD
28318 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
28319 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
28320 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
28321 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
28322 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
28323 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
28324 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
28325 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
28326 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
28327 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
28328 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
28329 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
28330 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
28331 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
28332 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
28333 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
28334 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
28335 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
28336 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
28337 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
28338 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
28339 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
28340 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
28341 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
28342 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
28343 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
28344 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
28345 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
28346 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
28347 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
28348 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
28349 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
28350 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
28351 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
28352 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
554f62e9 28353 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
554f62e9
RD
28354 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
28355 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
28356 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
28357 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
28358 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
28359 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
28360 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
28361 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
554f62e9
RD
28362 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
28363 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
28364 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
28365 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
28366 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
28367 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
28368 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
28369 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
28370 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
28371 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
28372 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
28373 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
28374 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
28375 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
28376 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
28377
28378 // Work around a chicken/egg problem in drawlist.cpp
28379 wxPyDrawList_SetAPIPtr();
28380
d55e5bfc
RD
28381}
28382