]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/_gdi_wrap.cpp
Undeprecate wxGetNumberFromUser, add wxNumberEntryDialog
[wxWidgets.git] / wxPython / src / gtk / _gdi_wrap.cpp
CommitLineData
d14a1e28
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
0085ce49 3 * Version 1.3.29
d14a1e28
RD
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11#define SWIGPYTHON
0085ce49 12#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
d14a1e28
RD
13
14#ifdef __cplusplus
15template<class T> class SwigValueWrapper {
16 T *tt;
17public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
093d3ff1 27};
d14a1e28
RD
28#endif
29
0085ce49 30/* -----------------------------------------------------------------------------
32fe5131
RD
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
0085ce49 33 * ----------------------------------------------------------------------------- */
d14a1e28 34
32fe5131
RD
35/* template workaround for compilers that cannot correctly implement the C++ standard */
36#ifndef SWIGTEMPLATEDISAMBIGUATOR
0085ce49
RD
37# if defined(__SUNPRO_CC)
38# if (__SUNPRO_CC <= 0x560)
39# define SWIGTEMPLATEDISAMBIGUATOR template
40# else
41# define SWIGTEMPLATEDISAMBIGUATOR
42# endif
43# else
44# define SWIGTEMPLATEDISAMBIGUATOR
45# endif
093d3ff1 46#endif
d14a1e28 47
32fe5131
RD
48/* inline attribute */
49#ifndef SWIGINLINE
50# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51# define SWIGINLINE inline
52# else
53# define SWIGINLINE
54# endif
55#endif
56
57/* attribute recognised by some compilers to avoid 'unused' warnings */
58#ifndef SWIGUNUSED
0085ce49
RD
59# if defined(__GNUC__)
60# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61# define SWIGUNUSED __attribute__ ((__unused__))
62# else
63# define SWIGUNUSED
64# endif
65# elif defined(__ICC)
66# define SWIGUNUSED __attribute__ ((__unused__))
32fe5131
RD
67# else
68# define SWIGUNUSED
69# endif
70#endif
71
0085ce49
RD
72#ifndef SWIGUNUSEDPARM
73# ifdef __cplusplus
74# define SWIGUNUSEDPARM(p)
75# else
76# define SWIGUNUSEDPARM(p) p SWIGUNUSED
77# endif
78#endif
79
32fe5131
RD
80/* internal SWIG method */
81#ifndef SWIGINTERN
82# define SWIGINTERN static SWIGUNUSED
83#endif
84
85/* internal inline SWIG method */
86#ifndef SWIGINTERNINLINE
87# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88#endif
89
0085ce49
RD
90/* exporting methods */
91#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92# ifndef GCC_HASCLASSVISIBILITY
93# define GCC_HASCLASSVISIBILITY
94# endif
95#endif
96
32fe5131
RD
97#ifndef SWIGEXPORT
98# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99# if defined(STATIC_LINKED)
100# define SWIGEXPORT
101# else
102# define SWIGEXPORT __declspec(dllexport)
103# endif
104# else
0085ce49
RD
105# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106# define SWIGEXPORT __attribute__ ((visibility("default")))
107# else
108# define SWIGEXPORT
109# endif
32fe5131
RD
110# endif
111#endif
112
113/* calling conventions for Windows */
114#ifndef SWIGSTDCALL
115# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116# define SWIGSTDCALL __stdcall
117# else
118# define SWIGSTDCALL
119# endif
120#endif
121
0085ce49
RD
122/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124# define _CRT_SECURE_NO_DEPRECATE
125#endif
32fe5131 126
c9c7117a 127
0085ce49 128/* Python.h has to appear first */
093d3ff1 129#include <Python.h>
d14a1e28 130
0085ce49 131/* -----------------------------------------------------------------------------
093d3ff1 132 * swigrun.swg
d14a1e28 133 *
0085ce49
RD
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
d14a1e28 137
093d3ff1
RD
138/* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
32fe5131 140#define SWIG_RUNTIME_VERSION "2"
d14a1e28 141
093d3ff1
RD
142/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143#ifdef SWIG_TYPE_TABLE
32fe5131
RD
144# define SWIG_QUOTE_STRING(x) #x
145# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
d14a1e28 147#else
32fe5131 148# define SWIG_TYPE_TABLE_NAME
093d3ff1
RD
149#endif
150
151/*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158*/
32fe5131 159
093d3ff1 160#ifndef SWIGRUNTIME
32fe5131 161# define SWIGRUNTIME SWIGINTERN
093d3ff1 162#endif
32fe5131 163
093d3ff1 164#ifndef SWIGRUNTIMEINLINE
32fe5131 165# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
d14a1e28
RD
166#endif
167
0085ce49
RD
168/* Generic buffer size */
169#ifndef SWIG_BUFFER_SIZE
170# define SWIG_BUFFER_SIZE 1024
171#endif
172
173/* Flags for pointer conversions */
174#define SWIG_POINTER_DISOWN 0x1
175
176/* Flags for new pointer objects */
177#define SWIG_POINTER_OWN 0x1
178
179
180/*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260#define SWIG_OK (0)
261#define SWIG_ERROR (-1)
262#define SWIG_IsOK(r) (r >= 0)
263#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265/* The CastRankLimit says how many bits are used for the cast rank */
266#define SWIG_CASTRANKLIMIT (1 << 8)
267/* The NewMask denotes the object was created (using new/malloc) */
268#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269/* The TmpMask is for in/out typemaps that use temporal objects */
270#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271/* Simple returning values */
272#define SWIG_BADOBJ (SWIG_ERROR)
273#define SWIG_OLDOBJ (SWIG_OK)
274#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276/* Check, add and del mask methods */
277#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285/* Cast-Rank Mode */
286#if defined(SWIG_CASTRANK_MODE)
287# ifndef SWIG_TypeRank
288# define SWIG_TypeRank unsigned long
289# endif
290# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291# define SWIG_MAXCASTRANK (2)
292# endif
293# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297}
298SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300}
301#else /* no cast-rank mode */
302# define SWIG_AddCast
303# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304#endif
305
306
307
308
32fe5131
RD
309#include <string.h>
310
d14a1e28
RD
311#ifdef __cplusplus
312extern "C" {
313#endif
314
315typedef void *(*swig_converter_func)(void *);
316typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
32fe5131 318/* Structure to store inforomation on one type */
d14a1e28 319typedef struct swig_type_info {
32fe5131
RD
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
0085ce49 325 int owndata; /* flag if the structure owns the clientdata */
d14a1e28
RD
326} swig_type_info;
327
32fe5131
RD
328/* Structure to store a type and conversion function used for casting */
329typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334} swig_cast_info;
335
336/* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346} swig_module_info;
347
093d3ff1
RD
348/*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354*/
355SWIGRUNTIME int
356SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
0085ce49 361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
093d3ff1
RD
362 }
363 return (l1 - f1) - (l2 - f2);
364}
365
366/*
367 Check type equivalence in a name list like <name1>|<name2>|...
32fe5131 368 Return 0 if not equal, 1 if equal
093d3ff1
RD
369*/
370SWIGRUNTIME int
371SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
32fe5131 379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
093d3ff1
RD
380 if (*ne) ++ne;
381 }
382 return equiv;
383}
384
385/*
32fe5131
RD
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
093d3ff1 388*/
32fe5131
RD
389SWIGRUNTIME int
390SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
093d3ff1 397 }
32fe5131
RD
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
093d3ff1 400 }
32fe5131 401 return equiv;
093d3ff1
RD
402}
403
32fe5131
RD
404
405/* think of this as a c++ template<> or a scheme macro */
406#define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
093d3ff1
RD
427/*
428 Check the typename
429*/
32fe5131 430SWIGRUNTIME swig_cast_info *
093d3ff1 431SWIG_TypeCheck(const char *c, swig_type_info *ty) {
32fe5131
RD
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433}
434
435/* Same as previous function, except strcmp is replaced with a pointer comparison */
436SWIGRUNTIME swig_cast_info *
437SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
093d3ff1
RD
439}
440
441/*
442 Cast a pointer up an inheritance hierarchy
443*/
444SWIGRUNTIMEINLINE void *
32fe5131 445SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
093d3ff1
RD
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447}
448
449/*
450 Dynamic pointer casting. Down an inheritance hierarchy
451*/
452SWIGRUNTIME swig_type_info *
453SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461}
462
463/*
464 Return the name associated with this type
465*/
466SWIGRUNTIMEINLINE const char *
467SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469}
470
471/*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474*/
475SWIGRUNTIME const char *
476SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
0085ce49 481 if (!type) return NULL;
093d3ff1
RD
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491}
492
093d3ff1
RD
493/*
494 Set the clientdata field for a type
495*/
496SWIGRUNTIME void
32fe5131
RD
497SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
093d3ff1
RD
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
32fe5131
RD
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
093d3ff1 507 }
32fe5131
RD
508 }
509 cast = cast->next;
510 }
511}
0085ce49
RD
512SWIGRUNTIME void
513SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516}
517
32fe5131
RD
518/*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525*/
526SWIGRUNTIME swig_type_info *
527SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
093d3ff1 556 }
32fe5131
RD
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560}
561
562/*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570*/
571SWIGRUNTIME swig_type_info *
572SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
093d3ff1 591 }
32fe5131
RD
592
593 /* neither found a match */
594 return 0;
093d3ff1
RD
595}
596
597/*
598 Pack binary data into a string
599*/
600SWIGRUNTIME char *
601SWIG_PackData(char *c, void *ptr, size_t sz) {
32fe5131
RD
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
093d3ff1 605 for (; u != eu; ++u) {
32fe5131 606 register unsigned char uu = *u;
093d3ff1
RD
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611}
612
613/*
614 Unpack binary data from a string
615*/
616SWIGRUNTIME const char *
617SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
32fe5131 619 register const unsigned char *eu = u + sz;
093d3ff1 620 for (; u != eu; ++u) {
32fe5131 621 register char d = *(c++);
0085ce49 622 register unsigned char uu;
093d3ff1
RD
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639}
640
093d3ff1
RD
641/*
642 Pack 'void *' into a string buffer.
643*/
644SWIGRUNTIME char *
645SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653}
654
655SWIGRUNTIME const char *
656SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666}
667
668SWIGRUNTIME char *
669SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681}
d14a1e28 682
093d3ff1
RD
683SWIGRUNTIME const char *
684SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694}
d14a1e28
RD
695
696#ifdef __cplusplus
697}
698#endif
699
0085ce49
RD
700/* Errors in SWIG */
701#define SWIG_UnknownError -1
702#define SWIG_IOError -2
703#define SWIG_RuntimeError -3
704#define SWIG_IndexError -4
705#define SWIG_TypeError -5
706#define SWIG_DivisionByZero -6
707#define SWIG_OverflowError -7
708#define SWIG_SyntaxError -8
709#define SWIG_ValueError -9
710#define SWIG_SystemError -10
711#define SWIG_AttributeError -11
712#define SWIG_MemoryError -12
713#define SWIG_NullReferenceError -13
d14a1e28 714
0085ce49
RD
715
716
717/* Python.h has to appear first */
718#include <Python.h>
719
720/* Add PyOS_snprintf for old Pythons */
721#if PY_VERSION_HEX < 0x02020000
722# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723# define PyOS_snprintf _snprintf
724# else
725# define PyOS_snprintf snprintf
726# endif
727#endif
728
729/* A crude PyString_FromFormat implementation for old Pythons */
730#if PY_VERSION_HEX < 0x02020000
731
732#ifndef SWIG_PYBUFFER_SIZE
733# define SWIG_PYBUFFER_SIZE 1024
734#endif
735
736static PyObject *
737PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745}
746#endif
747
748/* Add PyObject_Del for old Pythons */
749#if PY_VERSION_HEX < 0x01060000
750# define PyObject_Del(op) PyMem_DEL((op))
751#endif
752#ifndef PyObject_DEL
753# define PyObject_DEL PyObject_Del
754#endif
755
756/* A crude PyExc_StopIteration exception for old Pythons */
757#if PY_VERSION_HEX < 0x02020000
758# ifndef PyExc_StopIteration
759# define PyExc_StopIteration PyExc_RuntimeError
760# endif
761# ifndef PyObject_GenericGetAttr
762# define PyObject_GenericGetAttr 0
763# endif
093d3ff1 764#endif
0085ce49
RD
765/* Py_NotImplemented is defined in 2.1 and up. */
766#if PY_VERSION_HEX < 0x02010000
767# ifndef Py_NotImplemented
768# define Py_NotImplemented PyExc_RuntimeError
769# endif
770#endif
771
772
773/* A crude PyString_AsStringAndSize implementation for old Pythons */
774#if PY_VERSION_HEX < 0x02010000
775# ifndef PyString_AsStringAndSize
776# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777# endif
778#endif
779
780/* PySequence_Size for old Pythons */
781#if PY_VERSION_HEX < 0x02000000
782# ifndef PySequence_Size
783# define PySequence_Size PySequence_Length
784# endif
785#endif
786
787
788/* PyBool_FromLong for old Pythons */
789#if PY_VERSION_HEX < 0x02030000
790static
791PyObject *PyBool_FromLong(long ok)
792{
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796}
797#endif
798
c32bde28 799
093d3ff1 800/* -----------------------------------------------------------------------------
0085ce49 801 * error manipulation
093d3ff1 802 * ----------------------------------------------------------------------------- */
d14a1e28 803
0085ce49
RD
804SWIGRUNTIME PyObject*
805SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845}
d14a1e28 846
0085ce49
RD
847
848SWIGRUNTIME void
849SWIG_Python_AddErrorMsg(const char* mesg)
850{
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866}
867
868
869
870#if defined(SWIG_PYTHON_NO_THREADS)
871# if defined(SWIG_PYTHON_THREADS)
872# undef SWIG_PYTHON_THREADS
873# endif
874#endif
875#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877# if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878# define SWIG_PYTHON_USE_GIL
879# endif
880# endif
881# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882# ifndef SWIG_PYTHON_INITIALIZE_THREADS
883# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884# endif
885# ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906# else /* C code */
907# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911# endif
912# else /* Old thread way, not implemented, user must provide it */
913# if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914# define SWIG_PYTHON_INITIALIZE_THREADS
915# endif
916# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918# endif
919# if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920# define SWIG_PYTHON_THREAD_END_BLOCK
921# endif
922# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924# endif
925# if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926# define SWIG_PYTHON_THREAD_END_ALLOW
927# endif
928# endif
929#else /* No thread support */
930# define SWIG_PYTHON_INITIALIZE_THREADS
931# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932# define SWIG_PYTHON_THREAD_END_BLOCK
933# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934# define SWIG_PYTHON_THREAD_END_ALLOW
093d3ff1 935#endif
d14a1e28 936
0085ce49
RD
937/* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
093d3ff1 940
0085ce49
RD
941#ifdef __cplusplus
942extern "C" {
943#if 0
944} /* cc-mode */
945#endif
946#endif
093d3ff1
RD
947
948/* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
d14a1e28 951
093d3ff1 952/* Constant Types */
093d3ff1
RD
953#define SWIG_PY_POINTER 4
954#define SWIG_PY_BINARY 5
955
956/* Constant information structure */
957typedef struct swig_const_info {
0085ce49
RD
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
093d3ff1 964} swig_const_info;
d14a1e28 965
994141e6 966#ifdef __cplusplus
0085ce49
RD
967#if 0
968{ /* cc-mode */
969#endif
093d3ff1
RD
970}
971#endif
994141e6 972
15afbcd0 973
0085ce49
RD
974/* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
093d3ff1
RD
978 * pyrun.swg
979 *
0085ce49
RD
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
093d3ff1 983 *
0085ce49 984 * ----------------------------------------------------------------------------- */
15afbcd0 985
093d3ff1 986/* Common SWIG API */
994141e6 987
d1a49b78
RD
988#if PY_VERSION_HEX < 0x02050000
989typedef int Py_ssize_t;
990#endif
991
0085ce49
RD
992/* for raw pointers */
993#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999#define swig_owntype int
994141e6 1000
0085ce49
RD
1001/* for raw packed data */
1002#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
994141e6 1004
0085ce49
RD
1005/* for class or struct pointers */
1006#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
d14a1e28 1008
0085ce49
RD
1009/* for C or C++ function pointers */
1010#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
994141e6 1012
0085ce49
RD
1013/* for C++ member pointers, ie, member methods */
1014#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
32fe5131 1016
c32bde28 1017
0085ce49 1018/* Runtime API */
994141e6 1019
0085ce49
RD
1020#define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022#define SWIG_NewClientData(obj) PySwigClientData_New(obj)
32fe5131 1023
0085ce49
RD
1024#define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026#define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027#define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028#define SWIG_fail goto fail
32fe5131 1029
994141e6 1030
0085ce49 1031/* Runtime API implementation */
c32bde28 1032
0085ce49 1033/* Error manipulation */
c32bde28 1034
0085ce49
RD
1035SWIGINTERN void
1036SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
c32bde28 1041}
15afbcd0 1042
0085ce49
RD
1043SWIGINTERN void
1044SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
c32bde28 1048}
15afbcd0 1049
0085ce49 1050#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
32fe5131 1051
0085ce49 1052/* Set a constant value */
c32bde28 1053
0085ce49
RD
1054SWIGINTERN void
1055SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
15afbcd0
RD
1058}
1059
0085ce49 1060/* Append a value to the result obj */
69223c70 1061
0085ce49
RD
1062SWIGINTERN PyObject*
1063SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064#if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080#else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
093d3ff1 1088 } else {
0085ce49
RD
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
15afbcd0 1100 }
0085ce49
RD
1101 return result;
1102#endif
093d3ff1 1103}
15afbcd0 1104
0085ce49 1105/* Unpack the argument tuple */
15afbcd0 1106
0085ce49
RD
1107SWIGINTERN int
1108SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109{
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143}
1144
1145/* A functor is a function object with one single object argument */
1146#if PY_VERSION_HEX >= 0x02020000
1147#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148#else
1149#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150#endif
1151
1152/*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155*/
1156#ifdef __cplusplus
1157#define SWIG_STATIC_POINTER(var) var
1158#else
1159#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160#endif
1161
1162/* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166/* Flags for new pointer objects */
1167#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172#ifdef __cplusplus
1173extern "C" {
1174#if 0
1175} /* cc-mode */
1176#endif
1177#endif
1178
1179/* How to access Py_None */
1180#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181# ifndef SWIG_PYTHON_NO_BUILD_NONE
1182# ifndef SWIG_PYTHON_BUILD_NONE
1183# define SWIG_PYTHON_BUILD_NONE
1184# endif
1185# endif
1186#endif
1187
1188#ifdef SWIG_PYTHON_BUILD_NONE
1189# ifdef Py_None
1190# undef Py_None
1191# define Py_None SWIG_Py_None()
1192# endif
1193SWIGRUNTIMEINLINE PyObject *
1194_SWIG_Py_None(void)
1195{
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199}
1200SWIGRUNTIME PyObject *
1201SWIG_Py_None(void)
1202{
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205}
1206#endif
1207
1208/* The python void return value */
1209
1210SWIGRUNTIMEINLINE PyObject *
1211SWIG_Py_Void(void)
1212{
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216}
1217
1218/* PySwigClientData */
1219
1220typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227} PySwigClientData;
1228
1229SWIGRUNTIMEINLINE int
1230SWIG_Python_CheckImplicit(swig_type_info *ty)
1231{
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234}
1235
1236SWIGRUNTIMEINLINE PyObject *
1237SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241}
1242
1243
1244SWIGRUNTIME PySwigClientData *
1245PySwigClientData_New(PyObject* obj)
1246{
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260#if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262#else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264#endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284#ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286#else
1287 data->delargs = 0;
1288#endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295}
1296
1297SWIGRUNTIME void
1298PySwigClientData_Del(PySwigClientData* data)
1299{
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303}
1304
1305/* =============== PySwigObject =====================*/
1306
1307typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313} PySwigObject;
1314
1315SWIGRUNTIME PyObject *
1316PySwigObject_long(PySwigObject *v)
1317{
1318 return PyLong_FromVoidPtr(v->ptr);
1319}
1320
1321SWIGRUNTIME PyObject *
1322PySwigObject_format(const char* fmt, PySwigObject *v)
1323{
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337}
1338
1339SWIGRUNTIME PyObject *
1340PySwigObject_oct(PySwigObject *v)
1341{
1342 return PySwigObject_format("%o",v);
1343}
1344
1345SWIGRUNTIME PyObject *
1346PySwigObject_hex(PySwigObject *v)
1347{
1348 return PySwigObject_format("%x",v);
1349}
1350
1351SWIGRUNTIME PyObject *
1352#ifdef METH_NOARGS
1353PySwigObject_repr(PySwigObject *v)
1354#else
1355PySwigObject_repr(PySwigObject *v, PyObject *args)
1356#endif
1357{
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363#ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365#else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367#endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371}
1372
1373SWIGRUNTIME int
1374PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375{
1376#ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378#else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380#endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388}
1389
1390SWIGRUNTIME PyObject *
1391PySwigObject_str(PySwigObject *v)
1392{
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396}
1397
1398SWIGRUNTIME int
1399PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400{
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404}
1405
1406SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408SWIGRUNTIME PyTypeObject*
1409PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412}
1413
1414SWIGRUNTIMEINLINE int
1415PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418}
1419
1420SWIGRUNTIME PyObject *
1421PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423SWIGRUNTIME void
1424PySwigObject_dealloc(PyObject *v)
1425{
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450#endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455}
1456
1457SWIGRUNTIME PyObject*
1458PySwigObject_append(PyObject* v, PyObject* next)
1459{
1460 PySwigObject *sobj = (PySwigObject *) v;
1461#ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465#endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472}
1473
1474SWIGRUNTIME PyObject*
1475#ifdef METH_NOARGS
1476PySwigObject_next(PyObject* v)
1477#else
1478PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479#endif
1480{
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488}
1489
1490SWIGINTERN PyObject*
1491#ifdef METH_NOARGS
1492PySwigObject_disown(PyObject *v)
1493#else
1494PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495#endif
1496{
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500}
1501
1502SWIGINTERN PyObject*
1503#ifdef METH_NOARGS
1504PySwigObject_acquire(PyObject *v)
1505#else
1506PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507#endif
1508{
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512}
1513
1514SWIGINTERN PyObject*
1515PySwigObject_own(PyObject *v, PyObject *args)
1516{
1517 PyObject *val = 0;
1518#if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520#else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522#endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531#ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537#else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543#endif
1544 }
1545 return obj;
1546 }
1547}
1548
1549#ifdef METH_O
1550static PyMethodDef
1551swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559};
1560#else
1561static PyMethodDef
1562swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570};
1571#endif
1572
1573#if PY_VERSION_HEX < 0x02020000
1574SWIGINTERN PyObject *
1575PySwigObject_getattr(PySwigObject *sobj,char *name)
1576{
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578}
1579#endif
1580
1581SWIGRUNTIME PyTypeObject*
1582_PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
093d3ff1
RD
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
32fe5131 1609#if PY_VERSION_HEX >= 0x02020000
093d3ff1 1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
32fe5131
RD
1611#elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
093d3ff1
RD
1613#endif
1614 };
1615
0085ce49 1616 static PyTypeObject pyswigobject_type;
32fe5131 1617 static int type_init = 0;
093d3ff1 1618 if (!type_init) {
0085ce49
RD
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628#if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630#else
1631 (getattrfunc)0, /* tp_getattr */
093d3ff1 1632#endif
0085ce49
RD
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
093d3ff1 1651#if PY_VERSION_HEX >= 0x02020000
0085ce49
RD
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
093d3ff1
RD
1672#endif
1673#if PY_VERSION_HEX >= 0x02030000
0085ce49 1674 0, /* tp_del */
093d3ff1
RD
1675#endif
1676#ifdef COUNT_ALLOCS
0085ce49 1677 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 1678#endif
0085ce49 1679 };
32fe5131 1680 pyswigobject_type = tmp;
0085ce49 1681 pyswigobject_type.ob_type = &PyType_Type;
093d3ff1 1682 type_init = 1;
c32bde28 1683 }
32fe5131 1684 return &pyswigobject_type;
15afbcd0
RD
1685}
1686
093d3ff1 1687SWIGRUNTIME PyObject *
0085ce49 1688PySwigObject_New(void *ptr, swig_type_info *ty, int own)
093d3ff1 1689{
0085ce49
RD
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
32fe5131 1696 }
0085ce49 1697 return (PyObject *)sobj;
15afbcd0
RD
1698}
1699
093d3ff1
RD
1700/* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704typedef struct {
1705 PyObject_HEAD
1706 void *pack;
0085ce49 1707 swig_type_info *ty;
093d3ff1
RD
1708 size_t size;
1709} PySwigPacked;
1710
1711SWIGRUNTIME int
0085ce49 1712PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
093d3ff1
RD
1713{
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
0085ce49 1720 fputs(v->ty->name,fp);
093d3ff1
RD
1721 fputs(">", fp);
1722 return 0;
1723}
c32bde28 1724
093d3ff1
RD
1725SWIGRUNTIME PyObject *
1726PySwigPacked_repr(PySwigPacked *v)
15afbcd0 1727{
093d3ff1
RD
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
0085ce49 1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
093d3ff1 1731 } else {
0085ce49 1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
093d3ff1 1733 }
c32bde28
RD
1734}
1735
093d3ff1
RD
1736SWIGRUNTIME PyObject *
1737PySwigPacked_str(PySwigPacked *v)
1738{
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
0085ce49 1741 return PyString_FromFormat("%s%s", result, v->ty->name);
093d3ff1 1742 } else {
0085ce49 1743 return PyString_FromString(v->ty->name);
093d3ff1
RD
1744 }
1745}
c32bde28 1746
093d3ff1
RD
1747SWIGRUNTIME int
1748PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
c32bde28 1749{
0085ce49
RD
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
c32bde28
RD
1754}
1755
0085ce49 1756SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
093d3ff1
RD
1757
1758SWIGRUNTIME PyTypeObject*
32fe5131 1759PySwigPacked_type(void) {
0085ce49
RD
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762}
1763
1764SWIGRUNTIMEINLINE int
1765PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768}
1769
1770SWIGRUNTIME void
1771PySwigPacked_dealloc(PyObject *v)
1772{
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778}
1779
1780SWIGRUNTIME PyTypeObject*
1781_PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814#if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
093d3ff1
RD
1835#endif
1836#if PY_VERSION_HEX >= 0x02030000
0085ce49 1837 0, /* tp_del */
093d3ff1
RD
1838#endif
1839#ifdef COUNT_ALLOCS
0085ce49 1840 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 1841#endif
0085ce49 1842 };
32fe5131 1843 pyswigpacked_type = tmp;
0085ce49 1844 pyswigpacked_type.ob_type = &PyType_Type;
093d3ff1
RD
1845 type_init = 1;
1846 }
32fe5131 1847 return &pyswigpacked_type;
093d3ff1
RD
1848}
1849
1850SWIGRUNTIME PyObject *
0085ce49 1851PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
c32bde28 1852{
0085ce49
RD
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
093d3ff1 1855 void *pack = malloc(size);
32fe5131
RD
1856 if (pack) {
1857 memcpy(pack, ptr, size);
0085ce49
RD
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
32fe5131 1864 }
093d3ff1 1865 }
0085ce49 1866 return (PyObject *) sobj;
994141e6
RD
1867}
1868
0085ce49 1869SWIGRUNTIME swig_type_info *
093d3ff1
RD
1870PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871{
0085ce49
RD
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
093d3ff1 1880}
15afbcd0 1881
093d3ff1 1882/* -----------------------------------------------------------------------------
0085ce49 1883 * pointers/data manipulation
093d3ff1
RD
1884 * ----------------------------------------------------------------------------- */
1885
0085ce49
RD
1886SWIGRUNTIMEINLINE PyObject *
1887_SWIG_This(void)
1888{
1889 return PyString_FromString("this");
1890}
093d3ff1 1891
0085ce49
RD
1892SWIGRUNTIME PyObject *
1893SWIG_This(void)
1894{
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897}
093d3ff1 1898
0085ce49 1899/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
093d3ff1 1900
0085ce49
RD
1901SWIGRUNTIME PySwigObject *
1902SWIG_Python_GetSwigThis(PyObject *pyobj)
15afbcd0 1903{
0085ce49
RD
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917#ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922#endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
093d3ff1 1926 } else {
0085ce49
RD
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
093d3ff1 1929 }
093d3ff1 1930 }
0085ce49
RD
1931 }
1932#else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940#endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
15afbcd0 1947 }
15afbcd0
RD
1948}
1949
0085ce49
RD
1950/* Acquire a pointer value */
1951
1952SWIGRUNTIME int
1953SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
093d3ff1 1961 }
0085ce49 1962 return 0;
994141e6
RD
1963}
1964
0085ce49
RD
1965/* Convert a pointer value */
1966
093d3ff1 1967SWIGRUNTIME int
0085ce49
RD
1968SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
093d3ff1 1992 } else {
0085ce49
RD
1993 if (ptr) *ptr = vptr;
1994 break;
093d3ff1 1995 }
093d3ff1 1996 }
0085ce49
RD
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
093d3ff1
RD
2042 }
2043}
994141e6 2044
0085ce49
RD
2045/* Convert a function ptr value */
2046
093d3ff1 2047SWIGRUNTIME int
0085ce49
RD
2048SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
093d3ff1 2051 } else {
0085ce49
RD
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
d1a49b78 2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
0085ce49
RD
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
093d3ff1
RD
2069 }
2070}
d14a1e28 2071
0085ce49 2072/* Convert a packed value value */
093d3ff1 2073
093d3ff1 2074SWIGRUNTIME int
0085ce49
RD
2075SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
7e63a440 2084 }
0085ce49
RD
2085 return SWIG_OK;
2086}
d14a1e28 2087
0085ce49
RD
2088/* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
c32bde28 2091
0085ce49
RD
2092/*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095*/
d14a1e28 2096
0085ce49
RD
2097SWIGRUNTIME PyObject*
2098SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099{
2100#if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
093d3ff1 2115 }
0085ce49
RD
2116#else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119#endif
093d3ff1 2120 }
0085ce49
RD
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
093d3ff1 2126 }
0085ce49
RD
2127 return inst;
2128#else
2129#if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136#else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
093d3ff1 2140 }
0085ce49
RD
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
093d3ff1 2147 }
0085ce49
RD
2148#ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150#endif
2151#ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153#endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156#endif
2157#endif
093d3ff1 2158}
d14a1e28 2159
0085ce49
RD
2160SWIGRUNTIME void
2161SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162{
2163 PyObject *dict;
2164#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
093d3ff1 2175#endif
0085ce49
RD
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179}
d14a1e28 2180
0085ce49
RD
2181
2182SWIGINTERN PyObject *
2183SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
093d3ff1 2191 } else {
0085ce49 2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
093d3ff1 2193 }
0085ce49 2194 return SWIG_Py_Void();
15afbcd0 2195 }
0085ce49
RD
2196}
2197
2198/* Create a new pointer object */
093d3ff1 2199
093d3ff1 2200SWIGRUNTIME PyObject *
0085ce49 2201SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
093d3ff1 2202 if (!ptr) {
0085ce49
RD
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
093d3ff1 2213 }
093d3ff1 2214 }
0085ce49 2215 return robj;
093d3ff1 2216 }
c32bde28
RD
2217}
2218
0085ce49
RD
2219/* Create a new packed object */
2220
2221SWIGRUNTIMEINLINE PyObject *
093d3ff1 2222SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
0085ce49 2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
994141e6
RD
2224}
2225
093d3ff1
RD
2226/* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230#ifdef SWIG_LINK_RUNTIME
2231void *SWIG_ReturnGlobalTypeList(void *);
2232#endif
2233
32fe5131
RD
2234SWIGRUNTIME swig_module_info *
2235SWIG_Python_GetModule(void) {
093d3ff1
RD
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239#ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
15afbcd0 2241#else
093d3ff1
RD
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
15afbcd0 2248#endif
32fe5131
RD
2249 }
2250 return (swig_module_info *) type_pointer;
093d3ff1 2251}
d14a1e28 2252
32fe5131
RD
2253#if PY_MAJOR_VERSION < 2
2254/* PyModule_AddObject function was introduced in Python 2.0. The following function
0085ce49 2255 is copied out of Python/modsupport.c in python version 2.3.4 */
32fe5131
RD
2256SWIGINTERN int
2257PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258{
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
0085ce49 2263 return SWIG_ERROR;
32fe5131
RD
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
0085ce49 2268 return SWIG_ERROR;
32fe5131
RD
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
0085ce49 2276 return SWIG_ERROR;
32fe5131
RD
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
0085ce49 2279 return SWIG_ERROR;
32fe5131 2280 Py_DECREF(o);
0085ce49 2281 return SWIG_OK;
093d3ff1 2282}
32fe5131 2283#endif
d14a1e28 2284
0085ce49
RD
2285SWIGRUNTIME void
2286SWIG_Python_DestroyModule(void *vptr)
2287{
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299}
2300
32fe5131
RD
2301SWIGRUNTIME void
2302SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
0085ce49 2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
32fe5131
RD
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
0085ce49
RD
2310 } else {
2311 Py_XDECREF(pointer);
32fe5131
RD
2312 }
2313}
d14a1e28 2314
0085ce49
RD
2315/* The python cached type query */
2316SWIGRUNTIME PyObject *
2317SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
093d3ff1 2320}
d14a1e28 2321
0085ce49
RD
2322SWIGRUNTIME swig_type_info *
2323SWIG_Python_TypeQuery(const char *type)
2324{
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342}
2343
2344/*
2345 For backward compatibility only
2346*/
2347#define SWIG_POINTER_EXCEPTION 0
2348#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351SWIGRUNTIME int
2352SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353{
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374}
2375
2376SWIGRUNTIME int
2377SWIG_Python_ArgFail(int argnum)
2378{
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387}
2388
2389SWIGRUNTIMEINLINE const char *
2390PySwigObject_GetDesc(PyObject *self)
2391{
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395}
2396
2397SWIGRUNTIME void
2398SWIG_Python_TypeError(const char *type, PyObject *obj)
2399{
2400 if (type) {
2401#if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410#endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431}
2432
2433
2434/* Convert a pointer value, signal an exception on a type mismatch */
2435SWIGRUNTIME void *
2436SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446}
2447
2448
2449#ifdef __cplusplus
2450#if 0
2451{ /* cc-mode */
2452#endif
2453}
2454#endif
2455
2456
2457
2458#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464/* -------- TYPES TABLE (BEGIN) -------- */
2465
2466#define SWIGTYPE_p_char swig_types[0]
2467#define SWIGTYPE_p_double swig_types[1]
32fe5131
RD
2468#define SWIGTYPE_p_form_ops_t swig_types[2]
2469#define SWIGTYPE_p_int swig_types[3]
2470#define SWIGTYPE_p_unsigned_char swig_types[4]
2471#define SWIGTYPE_p_unsigned_int swig_types[5]
2472#define SWIGTYPE_p_unsigned_long swig_types[6]
2473#define SWIGTYPE_p_wxANIHandler swig_types[7]
2474#define SWIGTYPE_p_wxAcceleratorTable swig_types[8]
2475#define SWIGTYPE_p_wxActivateEvent swig_types[9]
2476#define SWIGTYPE_p_wxBMPHandler swig_types[10]
2477#define SWIGTYPE_p_wxBitmap swig_types[11]
2478#define SWIGTYPE_p_wxBoxSizer swig_types[12]
2479#define SWIGTYPE_p_wxBrush swig_types[13]
2480#define SWIGTYPE_p_wxBrushList swig_types[14]
2481#define SWIGTYPE_p_wxBufferedDC swig_types[15]
2482#define SWIGTYPE_p_wxBufferedPaintDC swig_types[16]
2483#define SWIGTYPE_p_wxCURHandler swig_types[17]
2484#define SWIGTYPE_p_wxChildFocusEvent swig_types[18]
2485#define SWIGTYPE_p_wxClientDC swig_types[19]
2131d850
RD
2486#define SWIGTYPE_p_wxClipboardTextEvent swig_types[20]
2487#define SWIGTYPE_p_wxCloseEvent swig_types[21]
2488#define SWIGTYPE_p_wxColour swig_types[22]
2489#define SWIGTYPE_p_wxColourDatabase swig_types[23]
2490#define SWIGTYPE_p_wxCommandEvent swig_types[24]
2491#define SWIGTYPE_p_wxContextMenuEvent swig_types[25]
2492#define SWIGTYPE_p_wxControl swig_types[26]
2493#define SWIGTYPE_p_wxControlWithItems swig_types[27]
2494#define SWIGTYPE_p_wxCursor swig_types[28]
2495#define SWIGTYPE_p_wxDC swig_types[29]
2496#define SWIGTYPE_p_wxDash swig_types[30]
2497#define SWIGTYPE_p_wxDateEvent swig_types[31]
2498#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[32]
2499#define SWIGTYPE_p_wxDropFilesEvent swig_types[33]
2500#define SWIGTYPE_p_wxDuplexMode swig_types[34]
2501#define SWIGTYPE_p_wxEffects swig_types[35]
2502#define SWIGTYPE_p_wxEncodingConverter swig_types[36]
2503#define SWIGTYPE_p_wxEraseEvent swig_types[37]
2504#define SWIGTYPE_p_wxEvent swig_types[38]
2505#define SWIGTYPE_p_wxEvtHandler swig_types[39]
2506#define SWIGTYPE_p_wxFSFile swig_types[40]
2507#define SWIGTYPE_p_wxFileSystem swig_types[41]
2508#define SWIGTYPE_p_wxFlexGridSizer swig_types[42]
2509#define SWIGTYPE_p_wxFocusEvent swig_types[43]
2510#define SWIGTYPE_p_wxFont swig_types[44]
2511#define SWIGTYPE_p_wxFontList swig_types[45]
2512#define SWIGTYPE_p_wxFontMapper swig_types[46]
2513#define SWIGTYPE_p_wxGBSizerItem swig_types[47]
2514#define SWIGTYPE_p_wxGDIObjListBase swig_types[48]
2515#define SWIGTYPE_p_wxGDIObject swig_types[49]
2516#define SWIGTYPE_p_wxGIFHandler swig_types[50]
2517#define SWIGTYPE_p_wxGridBagSizer swig_types[51]
2518#define SWIGTYPE_p_wxGridSizer swig_types[52]
2519#define SWIGTYPE_p_wxICOHandler swig_types[53]
2520#define SWIGTYPE_p_wxIcon swig_types[54]
2521#define SWIGTYPE_p_wxIconBundle swig_types[55]
2522#define SWIGTYPE_p_wxIconLocation swig_types[56]
2523#define SWIGTYPE_p_wxIconizeEvent swig_types[57]
2524#define SWIGTYPE_p_wxIdleEvent swig_types[58]
2525#define SWIGTYPE_p_wxImage swig_types[59]
2526#define SWIGTYPE_p_wxImageHandler swig_types[60]
2527#define SWIGTYPE_p_wxImageList swig_types[61]
2528#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[62]
2529#define SWIGTYPE_p_wxInitDialogEvent swig_types[63]
2530#define SWIGTYPE_p_wxJPEGHandler swig_types[64]
2531#define SWIGTYPE_p_wxKeyEvent swig_types[65]
2532#define SWIGTYPE_p_wxLanguageInfo swig_types[66]
2533#define SWIGTYPE_p_wxLayoutConstraints swig_types[67]
2534#define SWIGTYPE_p_wxLocale swig_types[68]
2535#define SWIGTYPE_p_wxMask swig_types[69]
2536#define SWIGTYPE_p_wxMaximizeEvent swig_types[70]
2537#define SWIGTYPE_p_wxMemoryDC swig_types[71]
2538#define SWIGTYPE_p_wxMenu swig_types[72]
2539#define SWIGTYPE_p_wxMenuBar swig_types[73]
2540#define SWIGTYPE_p_wxMenuEvent swig_types[74]
2541#define SWIGTYPE_p_wxMenuItem swig_types[75]
2542#define SWIGTYPE_p_wxMetaFile swig_types[76]
2543#define SWIGTYPE_p_wxMetaFileDC swig_types[77]
2544#define SWIGTYPE_p_wxMirrorDC swig_types[78]
2545#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[79]
2546#define SWIGTYPE_p_wxMouseEvent swig_types[80]
2547#define SWIGTYPE_p_wxMoveEvent swig_types[81]
2548#define SWIGTYPE_p_wxNativeEncodingInfo swig_types[82]
2549#define SWIGTYPE_p_wxNativeFontInfo swig_types[83]
2550#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[84]
2551#define SWIGTYPE_p_wxNcPaintEvent swig_types[85]
2552#define SWIGTYPE_p_wxNotifyEvent swig_types[86]
2553#define SWIGTYPE_p_wxObject swig_types[87]
2554#define SWIGTYPE_p_wxPCXHandler swig_types[88]
2555#define SWIGTYPE_p_wxPNGHandler swig_types[89]
2556#define SWIGTYPE_p_wxPNMHandler swig_types[90]
2557#define SWIGTYPE_p_wxPaintDC swig_types[91]
2558#define SWIGTYPE_p_wxPaintEvent swig_types[92]
2559#define SWIGTYPE_p_wxPalette swig_types[93]
2560#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[94]
2561#define SWIGTYPE_p_wxPaperSize swig_types[95]
2562#define SWIGTYPE_p_wxPen swig_types[96]
2563#define SWIGTYPE_p_wxPenList swig_types[97]
2564#define SWIGTYPE_p_wxPoint swig_types[98]
2565#define SWIGTYPE_p_wxPostScriptDC swig_types[99]
2566#define SWIGTYPE_p_wxPrintData swig_types[100]
2567#define SWIGTYPE_p_wxPrinterDC swig_types[101]
2568#define SWIGTYPE_p_wxPyApp swig_types[102]
2569#define SWIGTYPE_p_wxPyCommandEvent swig_types[103]
2570#define SWIGTYPE_p_wxPyEvent swig_types[104]
2571#define SWIGTYPE_p_wxPyFontEnumerator swig_types[105]
2572#define SWIGTYPE_p_wxPyImageHandler swig_types[106]
2573#define SWIGTYPE_p_wxPySizer swig_types[107]
2574#define SWIGTYPE_p_wxPyValidator swig_types[108]
2575#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[109]
2576#define SWIGTYPE_p_wxRect swig_types[110]
2577#define SWIGTYPE_p_wxRegion swig_types[111]
2578#define SWIGTYPE_p_wxRegionIterator swig_types[112]
2579#define SWIGTYPE_p_wxRendererNative swig_types[113]
2580#define SWIGTYPE_p_wxRendererVersion swig_types[114]
2581#define SWIGTYPE_p_wxScreenDC swig_types[115]
2582#define SWIGTYPE_p_wxScrollEvent swig_types[116]
2583#define SWIGTYPE_p_wxScrollWinEvent swig_types[117]
2584#define SWIGTYPE_p_wxSetCursorEvent swig_types[118]
2585#define SWIGTYPE_p_wxShowEvent swig_types[119]
2586#define SWIGTYPE_p_wxSize swig_types[120]
2587#define SWIGTYPE_p_wxSizeEvent swig_types[121]
2588#define SWIGTYPE_p_wxSizer swig_types[122]
2589#define SWIGTYPE_p_wxSizerItem swig_types[123]
2590#define SWIGTYPE_p_wxSplitterRenderParams swig_types[124]
2591#define SWIGTYPE_p_wxStaticBoxSizer swig_types[125]
2592#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[126]
2593#define SWIGTYPE_p_wxStockGDI swig_types[127]
2594#define SWIGTYPE_p_wxString swig_types[128]
2595#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[129]
2596#define SWIGTYPE_p_wxTIFFHandler swig_types[130]
2597#define SWIGTYPE_p_wxUpdateUIEvent swig_types[131]
2598#define SWIGTYPE_p_wxValidator swig_types[132]
2599#define SWIGTYPE_p_wxWindow swig_types[133]
2600#define SWIGTYPE_p_wxWindowCreateEvent swig_types[134]
2601#define SWIGTYPE_p_wxWindowDC swig_types[135]
2602#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[136]
2603#define SWIGTYPE_p_wxXPMHandler swig_types[137]
2604static swig_type_info *swig_types[139];
2605static swig_module_info swig_module = {swig_types, 138, 0, 0, 0, 0};
32fe5131
RD
2606#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2607#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
d14a1e28 2608
093d3ff1 2609/* -------- TYPES TABLE (END) -------- */
d14a1e28 2610
0085ce49
RD
2611#if (PY_VERSION_HEX <= 0x02000000)
2612# if !defined(SWIG_PYTHON_CLASSIC)
2613# error "This python version requires to use swig with the '-classic' option"
2614# endif
2615#endif
2616#if (PY_VERSION_HEX <= 0x02020000)
2617# error "This python version requires to use swig with the '-nomodern' option"
2618#endif
2619#if (PY_VERSION_HEX <= 0x02020000)
2620# error "This python version requires to use swig with the '-nomodernargs' option"
2621#endif
2622#ifndef METH_O
2623# error "This python version requires to use swig with the '-nofastunpack' option"
2624#endif
d14a1e28 2625
093d3ff1
RD
2626/*-----------------------------------------------
2627 @(target):= _gdi_.so
2628 ------------------------------------------------*/
2629#define SWIG_init init_gdi_
d14a1e28 2630
093d3ff1 2631#define SWIG_name "_gdi_"
d14a1e28 2632
0085ce49 2633#define SWIGVERSION 0x010329
d14a1e28 2634
d14a1e28 2635
0085ce49
RD
2636#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2637#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
d14a1e28
RD
2638
2639
0085ce49
RD
2640#include <stdexcept>
2641
2642
2643namespace swig {
2644 class PyObject_ptr {
2645 protected:
2646 PyObject *_obj;
2647
2648 public:
2649 PyObject_ptr() :_obj(0)
2650 {
093d3ff1 2651 }
0085ce49
RD
2652
2653 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2654 {
2655 Py_XINCREF(_obj);
093d3ff1 2656 }
0085ce49
RD
2657
2658 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2659 {
2660 if (initial_ref) Py_XINCREF(_obj);
2661 }
2662
2663 PyObject_ptr & operator=(const PyObject_ptr& item)
2664 {
2665 Py_XINCREF(item._obj);
2666 Py_XDECREF(_obj);
2667 _obj = item._obj;
2668 return *this;
2669 }
2670
2671 ~PyObject_ptr()
2672 {
2673 Py_XDECREF(_obj);
2674 }
2675
2676 operator PyObject *() const
2677 {
2678 return _obj;
2679 }
2680
2681 PyObject *operator->() const
2682 {
2683 return _obj;
2684 }
2685 };
093d3ff1 2686}
d14a1e28 2687
994141e6 2688
0085ce49
RD
2689namespace swig {
2690 struct PyObject_var : PyObject_ptr {
2691 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2692
2693 PyObject_var & operator = (PyObject* obj)
2694 {
2695 Py_XDECREF(_obj);
2696 _obj = obj;
2697 return *this;
69223c70 2698 }
0085ce49 2699 };
15afbcd0
RD
2700}
2701
2702
0085ce49
RD
2703#include "wx/wxPython/wxPython.h"
2704#include "wx/wxPython/pyclasses.h"
2705
2706
2707 static const wxString wxPyEmptyString(wxEmptyString);
2708
01f6b6d3
RD
2709 #define SWIG_From_long PyInt_FromLong
2710
2711
2712SWIGINTERNINLINE PyObject *
2713SWIG_From_int (int value)
2714{
2715 return SWIG_From_long (value);
2716}
2717
2718
0085ce49
RD
2719#include <limits.h>
2720#ifndef LLONG_MIN
2721# define LLONG_MIN LONG_LONG_MIN
2722#endif
2723#ifndef LLONG_MAX
2724# define LLONG_MAX LONG_LONG_MAX
2725#endif
2726#ifndef ULLONG_MAX
2727# define ULLONG_MAX ULONG_LONG_MAX
2728#endif
b88bce5f 2729
b88bce5f 2730
50efceee
RD
2731SWIGINTERN int
2732SWIG_AsVal_long (PyObject* obj, long* val)
2733{
2734 if (PyNumber_Check(obj)) {
2735 if (val) *val = PyInt_AsLong(obj);
2736 return SWIG_OK;
2737 }
2738 return SWIG_TypeError;
2739}
2740
2741
093d3ff1 2742SWIGINTERN int
0085ce49 2743SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
093d3ff1
RD
2744{
2745 long v = 0;
2746 if (SWIG_AsVal_long(obj, &v) && v < 0) {
0085ce49 2747 return SWIG_TypeError;
093d3ff1
RD
2748 }
2749 else if (val)
2750 *val = (unsigned long)v;
0085ce49 2751 return SWIG_OK;
093d3ff1 2752}
d14a1e28
RD
2753
2754
093d3ff1 2755SWIGINTERN int
0085ce49
RD
2756SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2757{
093d3ff1 2758 unsigned long v;
0085ce49
RD
2759 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2760 if (SWIG_IsOK(res)) {
2761 if ((v > UCHAR_MAX)) {
2762 return SWIG_OverflowError;
093d3ff1 2763 } else {
0085ce49 2764 if (val) *val = static_cast< unsigned char >(v);
093d3ff1 2765 }
0085ce49
RD
2766 }
2767 return res;
093d3ff1 2768}
33b885b9 2769
d14a1e28 2770
0085ce49
RD
2771SWIGINTERNINLINE PyObject*
2772SWIG_From_unsigned_SS_long (unsigned long value)
093d3ff1 2773{
0085ce49
RD
2774 return (value > LONG_MAX) ?
2775 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
093d3ff1 2776}
d14a1e28 2777
d14a1e28 2778
0085ce49
RD
2779SWIGINTERNINLINE PyObject *
2780SWIG_From_unsigned_SS_char (unsigned char value)
2781{
2782 return SWIG_From_unsigned_SS_long (value);
2783}
d14a1e28 2784
e9d6f3a4
RD
2785SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2786 wxColour temp, *obj = &temp;
2787 if ( other == Py_None ) return false;
2788 if ( ! wxColour_helper(other, &obj) ) {
2789 PyErr_Clear();
2790 return false;
2791 }
2792 return self->operator==(*obj);
2793 }
2794SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2795 wxColour temp, *obj = &temp;
2796 if ( other == Py_None ) return true;
2797 if ( ! wxColour_helper(other, &obj)) {
2798 PyErr_Clear();
2799 return true;
2800 }
2801 return self->operator!=(*obj);
2802 }
0085ce49 2803SWIGINTERN PyObject *wxColour_Get(wxColour *self){
093d3ff1
RD
2804 PyObject* rv = PyTuple_New(3);
2805 int red = -1;
2806 int green = -1;
2807 int blue = -1;
2808 if (self->Ok()) {
2809 red = self->Red();
2810 green = self->Green();
2811 blue = self->Blue();
2812 }
2813 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2814 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2815 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2816 return rv;
2817 }
0085ce49 2818SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
093d3ff1
RD
2819 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2820 }
d14a1e28 2821
0085ce49
RD
2822SWIGINTERN int
2823SWIG_AsVal_int (PyObject * obj, int *val)
093d3ff1 2824{
0085ce49
RD
2825 long v;
2826 int res = SWIG_AsVal_long (obj, &v);
2827 if (SWIG_IsOK(res)) {
2828 if ((v < INT_MIN || v > INT_MAX)) {
2829 return SWIG_OverflowError;
2830 } else {
2831 if (val) *val = static_cast< int >(v);
2832 }
2833 }
2834 return res;
d14a1e28
RD
2835}
2836
0085ce49 2837SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
093d3ff1
RD
2838 wxDash* dashes;
2839 int count = self->GetDashes(&dashes);
5a446332 2840 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
2841 PyObject* retval = PyList_New(0);
2842 for (int x=0; x<count; x++) {
2843 PyObject* pyint = PyInt_FromLong(dashes[x]);
2844 PyList_Append(retval, pyint);
2845 Py_DECREF(pyint);
2846 }
2847 wxPyEndBlockThreads(blocked);
2848 return retval;
2849 }
0085ce49 2850SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
5a446332 2851 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
2852 int size = PyList_Size(pyDashes);
2853 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
d14a1e28 2854
093d3ff1
RD
2855 // black magic warning! The array of wxDashes needs to exist as
2856 // long as the pen does because wxPen does not copy the array. So
2857 // stick a copy in a Python string object and attach it to _self,
2858 // and then call SetDashes with a pointer to that array. Then
2859 // when the Python pen object is destroyed the array will be
2860 // cleaned up too.
2861 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2862 PyObject_SetAttrString(_self, "_dashes", strDashes);
2863
2864 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2865 delete [] dashes;
2866 Py_DECREF(strDashes);
2867 wxPyEndBlockThreads(blocked);
2868 }
0085ce49
RD
2869SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2870SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
d14a1e28 2871
093d3ff1 2872#include <wx/image.h>
b88bce5f 2873
093d3ff1
RD
2874 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2875 char** cArray = NULL;
2876 int count;
2877
2878 if (!PyList_Check(listOfStrings)) {
2879 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2880 return NULL;
2881 }
2882 count = PyList_Size(listOfStrings);
2883 cArray = new char*[count];
2884
2885 for(int x=0; x<count; x++) {
2886 // TODO: Need some validation and error checking here
2887 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2888 }
2889 return cArray;
b88bce5f 2890 }
b88bce5f
RD
2891
2892
0085ce49 2893SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
093d3ff1
RD
2894 char** cArray = NULL;
2895 wxBitmap* bmp;
d14a1e28 2896
093d3ff1
RD
2897 cArray = ConvertListOfStrings(listOfStrings);
2898 if (! cArray)
2899 return NULL;
2900 bmp = new wxBitmap(cArray);
2901 delete [] cArray;
2902 return bmp;
2903 }
0085ce49 2904SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
d1a49b78
RD
2905 char* buf;
2906 Py_ssize_t length;
093d3ff1
RD
2907 PyString_AsStringAndSize(bits, &buf, &length);
2908 return new wxBitmap(buf, width, height, depth);
2909 }
0085ce49 2910SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
093d3ff1
RD
2911 wxSize size(self->GetWidth(), self->GetHeight());
2912 return size;
2913 }
0085ce49 2914SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
093d3ff1
RD
2915 wxMask *mask = new wxMask(*self, colour);
2916 self->SetMask(mask);
2917 }
0085ce49 2918SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
093d3ff1
RD
2919 self->SetWidth(size.x);
2920 self->SetHeight(size.y);
2921 }
0085ce49
RD
2922SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2923SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
2924SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
093d3ff1
RD
2925 if ( !colour.Ok() )
2926 return new wxMask(bitmap, *wxBLACK);
2927 else
2928 return new wxMask(bitmap, colour);
2929 }
d14a1e28 2930
093d3ff1 2931#include <wx/iconbndl.h>
d14a1e28 2932
0085ce49 2933SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
093d3ff1
RD
2934 wxIcon* icon = new wxIcon();
2935 icon->CopyFromBitmap(bmp);
2936 return icon;
2937 }
0085ce49 2938SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
093d3ff1
RD
2939 char** cArray = NULL;
2940 wxIcon* icon;
d14a1e28 2941
093d3ff1
RD
2942 cArray = ConvertListOfStrings(listOfStrings);
2943 if (! cArray)
2944 return NULL;
2945 icon = new wxIcon(cArray);
2946 delete [] cArray;
2947 return icon;
2948 }
0085ce49 2949SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
d14a1e28
RD
2950
2951
d14a1e28 2952
093d3ff1 2953 return new wxIconLocation(*filename);
d14a1e28 2954
093d3ff1 2955 }
0085ce49 2956SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
d14a1e28
RD
2957
2958
d14a1e28 2959
093d3ff1 2960 // do nothing
d14a1e28 2961
093d3ff1 2962 }
0085ce49 2963SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
b88bce5f
RD
2964
2965
093d3ff1
RD
2966
2967 return -1;
2968
2969 }
0085ce49 2970SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
093d3ff1 2971#ifdef __WXGTK__
7557b9b5
RD
2972 wxImage img(cursorName, type);
2973 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
2974 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
2975 return new wxCursor(img);
093d3ff1 2976#else
7557b9b5 2977 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
093d3ff1
RD
2978#endif
2979 }
2980
2981
0085ce49 2982SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
093d3ff1
RD
2983 (*self) ++;
2984 }
0085ce49 2985SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
093d3ff1
RD
2986 return self->operator bool();
2987 }
2988
2989#include <wx/fontutil.h>
2990#include <wx/fontmap.h>
2991#include <wx/fontenum.h>
2992
50efceee
RD
2993
2994SWIGINTERN int
2995SWIG_AsVal_bool (PyObject *obj, bool *val)
2996{
2997 if (obj == Py_True) {
2998 if (val) *val = true;
2999 return SWIG_OK;
3000 } else if (obj == Py_False) {
3001 if (val) *val = false;
3002 return SWIG_OK;
3003 } else {
3004 long v = 0;
3005 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
3006 if (SWIG_IsOK(res) && val) *val = v ? true : false;
3007 return res;
3008 }
3009}
3010
0085ce49 3011SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
093d3ff1
RD
3012 return self->ToString();
3013 }
3014
3015 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3016 static wxNativeEncodingInfo info;
3017 if ( wxGetNativeFontEncoding(encoding, &info) )
3018 return &info;
3019 else
3020 return NULL;
3021 }
3022
0085ce49
RD
3023
3024SWIGINTERNINLINE PyObject *
3025SWIG_From_size_t (size_t value)
3026{
3027 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3028}
3029
3030
3031SWIGINTERNINLINE int
3032SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3033{
3034 unsigned long v;
3035 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3036 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3037 return res;
3038}
3039
3040SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
093d3ff1
RD
3041 wxFontEncoding alt_enc;
3042 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3043 return PyInt_FromLong(alt_enc);
3044 else {
3045 Py_INCREF(Py_None);
3046 return Py_None;
3047 }
3048 }
0085ce49 3049SWIGINTERN wxFont *new_wxFont(wxString const &info){
a97cefba
RD
3050 wxNativeFontInfo nfi;
3051 nfi.FromString(info);
3052 return new wxFont(nfi);
3053 }
0085ce49 3054SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3055 return wxFont::New(pointSize, family, flags, face, encoding);
3056 }
0085ce49 3057SWIGINTERN 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
3058 return wxFontBase::New(pixelSize, family,
3059 style, weight, underlined,
3060 face, encoding);
3061 }
0085ce49 3062SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3063 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3064 }
0085ce49
RD
3065SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3066SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
093d3ff1
RD
3067
3068class wxPyFontEnumerator : public wxFontEnumerator {
3069public:
3070 wxPyFontEnumerator() {}
3071 ~wxPyFontEnumerator() {}
3072
3073 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3074 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3075
3076 PYPRIVATE;
3077};
3078
3079IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3080IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3081
3082
704eda0c 3083SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
e9d6f3a4 3084 PyObject* ret;
704eda0c 3085 wxArrayString arr = wxFontEnumerator::GetEncodings();
e9d6f3a4 3086 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3087 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3088 wxPyEndBlockThreads(blocked);
3089 return ret;
093d3ff1 3090 }
704eda0c 3091SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
e9d6f3a4 3092 PyObject* ret;
704eda0c 3093 wxArrayString arr = wxFontEnumerator::GetFacenames();
e9d6f3a4 3094 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3095 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3096 wxPyEndBlockThreads(blocked);
3097 return ret;
093d3ff1
RD
3098 }
3099
3100#include <locale.h>
3101
0085ce49 3102SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
093d3ff1
RD
3103 wxLocale* loc;
3104 if (language == -1)
3105 loc = new wxLocale();
3106 else
3107 loc = new wxLocale(language, flags);
3108 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3109 // for the floating point conversions and such to work right.
3110#if PY_VERSION_HEX < 0x02040000
3111 setlocale(LC_NUMERIC, "C");
3112#endif
3113 return loc;
3114 }
0085ce49 3115SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
093d3ff1
RD
3116 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3117 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3118 // for the floating point conversions and such to work right.
3119#if PY_VERSION_HEX < 0x02040000
3120 setlocale(LC_NUMERIC, "C");
3121#endif
3122 return rc;
3123 }
0085ce49 3124SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
093d3ff1
RD
3125 bool rc = self->Init(language, flags);
3126 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3127 // for the floating point conversions and such to work right.
3128#if PY_VERSION_HEX < 0x02040000
3129 setlocale(LC_NUMERIC, "C");
3130#endif
3131 return rc;
3132 }
3133
3134#include "wx/wxPython/pydrawxxx.h"
3135
0085ce49 3136SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
093d3ff1
RD
3137 wxColour col;
3138 self->GetPixel(x, y, &col);
3139 return col;
3140 }
0085ce49 3141SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
093d3ff1
RD
3142 wxColour col;
3143 self->GetPixel(pt, &col);
3144 return col;
3145 }
3146
3147SWIGINTERN int
0085ce49 3148SWIG_AsVal_double (PyObject *obj, double* val)
093d3ff1
RD
3149{
3150 if (PyNumber_Check(obj)) {
3151 if (val) *val = PyFloat_AsDouble(obj);
0085ce49 3152 return SWIG_OK;
093d3ff1 3153 }
0085ce49 3154 return SWIG_TypeError;
093d3ff1
RD
3155}
3156
0085ce49 3157SWIGINTERN 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
3158 wxRect rv;
3159 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3160 return rv;
3161 }
0085ce49 3162SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
093d3ff1
RD
3163 wxRect rect;
3164 self->GetClippingBox(rect);
3165 return rect;
3166 }
0085ce49 3167SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
093d3ff1
RD
3168 wxArrayInt widths;
3169 self->GetPartialTextExtents(text, widths);
3170 return widths;
3171 }
3172
0085ce49 3173 #define SWIG_From_double PyFloat_FromDouble
093d3ff1 3174
0085ce49 3175SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3176 self->SetLogicalOrigin(point.x, point.y);
3177 }
0085ce49 3178SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3179 self->SetDeviceOrigin(point.x, point.y);
3180 }
0085ce49 3181SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3182 self->CalcBoundingBox(point.x, point.y);
3183 }
0085ce49 3184SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3185 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3186 }
0085ce49 3187SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3188 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3189 }
0085ce49 3190SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3191 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3192 }
0085ce49 3193SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3194 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3195 }
0085ce49 3196SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3197 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3198 }
0085ce49 3199SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
093d3ff1
RD
3200 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3201 }
3202
3203static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3204 *x1 = dc->MinX();
3205 *y1 = dc->MinY();
3206 *x2 = dc->MaxX();
3207 *y2 = dc->MaxY();
3208}
3209
3210
3211#include <wx/dcbuffer.h>
3212
3213
3214#include <wx/dcps.h>
3215
3216
3217class wxMetaFile : public wxObject {
3218public:
3219 wxMetaFile(const wxString&)
3220 { wxPyRaiseNotImplemented(); }
3221};
3222
3223class wxMetaFileDC : public wxClientDC {
3224public:
3225 wxMetaFileDC(const wxString&, int, int, const wxString&)
3226 { wxPyRaiseNotImplemented(); }
3227};
3228
3229
3230
3231class wxPrinterDC : public wxClientDC {
3232public:
3233 wxPrinterDC(const wxPrintData&)
3234 { wxPyRaiseNotImplemented(); }
3235
3236};
3237
3238
3239
0085ce49 3240SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
093d3ff1
RD
3241 self->AddColour(name, wxColour(red, green, blue));
3242 }
3243
50efceee
RD
3244 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3245 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3246 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3247 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3248
3249
093d3ff1
RD
3250#include <wx/effects.h>
3251
8d38bd1d
RD
3252
3253#include "wx/renderer.h"
3254
3255
32fe5131 3256SWIGINTERNINLINE PyObject*
0085ce49 3257 SWIG_From_bool (bool value)
8d38bd1d 3258{
0085ce49 3259 return PyBool_FromLong(value ? 1 : 0);
8d38bd1d
RD
3260}
3261
093d3ff1
RD
3262#ifdef __cplusplus
3263extern "C" {
3264#endif
0085ce49
RD
3265SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3266 PyObject *resultobj = 0;
3267 wxGDIObject *result = 0 ;
3268
3269 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3270 {
3271 if (!wxPyCheckForApp()) SWIG_fail;
3272 PyThreadState* __tstate = wxPyBeginAllowThreads();
3273 result = (wxGDIObject *)new wxGDIObject();
3274 wxPyEndAllowThreads(__tstate);
3275 if (PyErr_Occurred()) SWIG_fail;
3276 }
3277 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3278 return resultobj;
3279fail:
3280 return NULL;
093d3ff1
RD
3281}
3282
3283
0085ce49
RD
3284SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3285 PyObject *resultobj = 0;
3286 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3287 void *argp1 = 0 ;
3288 int res1 = 0 ;
3289 PyObject *swig_obj[1] ;
3290
3291 if (!args) SWIG_fail;
3292 swig_obj[0] = args;
3293 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3294 if (!SWIG_IsOK(res1)) {
3295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3296 }
3297 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3298 {
3299 PyThreadState* __tstate = wxPyBeginAllowThreads();
3300 delete arg1;
093d3ff1 3301
0085ce49
RD
3302 wxPyEndAllowThreads(__tstate);
3303 if (PyErr_Occurred()) SWIG_fail;
3304 }
3305 resultobj = SWIG_Py_Void();
3306 return resultobj;
3307fail:
3308 return NULL;
d14a1e28
RD
3309}
3310
3311
0085ce49
RD
3312SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3313 PyObject *resultobj = 0;
3314 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3315 bool result;
3316 void *argp1 = 0 ;
3317 int res1 = 0 ;
3318 PyObject *swig_obj[1] ;
3319
3320 if (!args) SWIG_fail;
3321 swig_obj[0] = args;
3322 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3323 if (!SWIG_IsOK(res1)) {
3324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3325 }
3326 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3327 {
3328 PyThreadState* __tstate = wxPyBeginAllowThreads();
3329 result = (bool)(arg1)->IsNull();
3330 wxPyEndAllowThreads(__tstate);
3331 if (PyErr_Occurred()) SWIG_fail;
3332 }
3333 {
3334 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3335 }
3336 return resultobj;
3337fail:
3338 return NULL;
3339}
3340
3341
3342SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3343 PyObject *obj;
3344 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3345 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3346 return SWIG_Py_Void();
3347}
3348
3349SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3350 return SWIG_Python_InitShadowInstance(args);
3351}
3352
3353SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3354 PyObject *resultobj = 0;
3355 byte arg1 = (byte) 0 ;
3356 byte arg2 = (byte) 0 ;
3357 byte arg3 = (byte) 0 ;
3358 wxColour *result = 0 ;
3359 unsigned char val1 ;
3360 int ecode1 = 0 ;
3361 unsigned char val2 ;
3362 int ecode2 = 0 ;
3363 unsigned char val3 ;
3364 int ecode3 = 0 ;
3365 PyObject * obj0 = 0 ;
3366 PyObject * obj1 = 0 ;
3367 PyObject * obj2 = 0 ;
3368 char * kwnames[] = {
3369 (char *) "red",(char *) "green",(char *) "blue", NULL
3370 };
3371
3372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
3373 if (obj0) {
3374 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3375 if (!SWIG_IsOK(ecode1)) {
3376 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3377 }
3378 arg1 = static_cast< byte >(val1);
3379 }
3380 if (obj1) {
3381 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3382 if (!SWIG_IsOK(ecode2)) {
3383 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3384 }
3385 arg2 = static_cast< byte >(val2);
3386 }
3387 if (obj2) {
3388 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3389 if (!SWIG_IsOK(ecode3)) {
3390 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3391 }
3392 arg3 = static_cast< byte >(val3);
3393 }
3394 {
3395 PyThreadState* __tstate = wxPyBeginAllowThreads();
3396 result = (wxColour *)new wxColour(arg1,arg2,arg3);
3397 wxPyEndAllowThreads(__tstate);
3398 if (PyErr_Occurred()) SWIG_fail;
3399 }
3400 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3401 return resultobj;
3402fail:
3403 return NULL;
d14a1e28
RD
3404}
3405
3406
0085ce49
RD
3407SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3408 PyObject *resultobj = 0;
3409 wxString *arg1 = 0 ;
3410 wxColour *result = 0 ;
3411 bool temp1 = false ;
3412 PyObject * obj0 = 0 ;
3413 char * kwnames[] = {
3414 (char *) "colorName", NULL
3415 };
3416
3417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3418 {
3419 arg1 = wxString_in_helper(obj0);
3420 if (arg1 == NULL) SWIG_fail;
3421 temp1 = true;
3422 }
3423 {
3424 if (!wxPyCheckForApp()) SWIG_fail;
3425 PyThreadState* __tstate = wxPyBeginAllowThreads();
3426 result = (wxColour *)new wxColour((wxString const &)*arg1);
3427 wxPyEndAllowThreads(__tstate);
3428 if (PyErr_Occurred()) SWIG_fail;
3429 }
3430 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3431 {
3432 if (temp1)
3433 delete arg1;
3434 }
3435 return resultobj;
3436fail:
3437 {
3438 if (temp1)
3439 delete arg1;
3440 }
3441 return NULL;
d14a1e28
RD
3442}
3443
3444
0085ce49
RD
3445SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3446 PyObject *resultobj = 0;
3447 unsigned long arg1 ;
3448 wxColour *result = 0 ;
3449 unsigned long val1 ;
3450 int ecode1 = 0 ;
3451 PyObject * obj0 = 0 ;
3452 char * kwnames[] = {
3453 (char *) "colRGB", NULL
3454 };
3455
3456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3457 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3458 if (!SWIG_IsOK(ecode1)) {
3459 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3460 }
3461 arg1 = static_cast< unsigned long >(val1);
3462 {
3463 PyThreadState* __tstate = wxPyBeginAllowThreads();
3464 result = (wxColour *)new wxColour(arg1);
3465 wxPyEndAllowThreads(__tstate);
3466 if (PyErr_Occurred()) SWIG_fail;
3467 }
3468 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3469 return resultobj;
3470fail:
3471 return NULL;
d14a1e28
RD
3472}
3473
3474
0085ce49
RD
3475SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3476 PyObject *resultobj = 0;
3477 wxColour *arg1 = (wxColour *) 0 ;
3478 void *argp1 = 0 ;
3479 int res1 = 0 ;
3480 PyObject *swig_obj[1] ;
3481
3482 if (!args) SWIG_fail;
3483 swig_obj[0] = args;
3484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3485 if (!SWIG_IsOK(res1)) {
3486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3487 }
3488 arg1 = reinterpret_cast< wxColour * >(argp1);
3489 {
3490 PyThreadState* __tstate = wxPyBeginAllowThreads();
3491 delete arg1;
d14a1e28 3492
0085ce49
RD
3493 wxPyEndAllowThreads(__tstate);
3494 if (PyErr_Occurred()) SWIG_fail;
3495 }
3496 resultobj = SWIG_Py_Void();
3497 return resultobj;
3498fail:
3499 return NULL;
d14a1e28
RD
3500}
3501
3502
0085ce49
RD
3503SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3504 PyObject *resultobj = 0;
3505 wxColour *arg1 = (wxColour *) 0 ;
3506 byte result;
3507 void *argp1 = 0 ;
3508 int res1 = 0 ;
3509 PyObject *swig_obj[1] ;
3510
3511 if (!args) SWIG_fail;
3512 swig_obj[0] = args;
3513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3514 if (!SWIG_IsOK(res1)) {
3515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
3516 }
3517 arg1 = reinterpret_cast< wxColour * >(argp1);
3518 {
3519 PyThreadState* __tstate = wxPyBeginAllowThreads();
3520 result = (byte)(arg1)->Red();
3521 wxPyEndAllowThreads(__tstate);
3522 if (PyErr_Occurred()) SWIG_fail;
3523 }
3524 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3525 return resultobj;
3526fail:
3527 return NULL;
d14a1e28
RD
3528}
3529
3530
0085ce49
RD
3531SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3532 PyObject *resultobj = 0;
3533 wxColour *arg1 = (wxColour *) 0 ;
3534 byte result;
3535 void *argp1 = 0 ;
3536 int res1 = 0 ;
3537 PyObject *swig_obj[1] ;
3538
3539 if (!args) SWIG_fail;
3540 swig_obj[0] = args;
3541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3542 if (!SWIG_IsOK(res1)) {
3543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
3544 }
3545 arg1 = reinterpret_cast< wxColour * >(argp1);
3546 {
3547 PyThreadState* __tstate = wxPyBeginAllowThreads();
3548 result = (byte)(arg1)->Green();
3549 wxPyEndAllowThreads(__tstate);
3550 if (PyErr_Occurred()) SWIG_fail;
3551 }
3552 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3553 return resultobj;
3554fail:
3555 return NULL;
5cbf236d
RD
3556}
3557
3558
0085ce49
RD
3559SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3560 PyObject *resultobj = 0;
3561 wxColour *arg1 = (wxColour *) 0 ;
3562 byte result;
3563 void *argp1 = 0 ;
3564 int res1 = 0 ;
3565 PyObject *swig_obj[1] ;
3566
3567 if (!args) SWIG_fail;
3568 swig_obj[0] = args;
3569 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3570 if (!SWIG_IsOK(res1)) {
3571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
3572 }
3573 arg1 = reinterpret_cast< wxColour * >(argp1);
3574 {
3575 PyThreadState* __tstate = wxPyBeginAllowThreads();
3576 result = (byte)(arg1)->Blue();
3577 wxPyEndAllowThreads(__tstate);
3578 if (PyErr_Occurred()) SWIG_fail;
3579 }
3580 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3581 return resultobj;
3582fail:
3583 return NULL;
d14a1e28
RD
3584}
3585
3586
0085ce49
RD
3587SWIGINTERN PyObject *_wrap_Colour_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3588 PyObject *resultobj = 0;
3589 wxColour *arg1 = (wxColour *) 0 ;
3590 bool result;
3591 void *argp1 = 0 ;
3592 int res1 = 0 ;
3593 PyObject *swig_obj[1] ;
3594
3595 if (!args) SWIG_fail;
3596 swig_obj[0] = args;
3597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3598 if (!SWIG_IsOK(res1)) {
3599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Ok" "', expected argument " "1"" of type '" "wxColour *""'");
3600 }
3601 arg1 = reinterpret_cast< wxColour * >(argp1);
3602 {
3603 PyThreadState* __tstate = wxPyBeginAllowThreads();
3604 result = (bool)(arg1)->Ok();
3605 wxPyEndAllowThreads(__tstate);
3606 if (PyErr_Occurred()) SWIG_fail;
3607 }
3608 {
3609 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3610 }
3611 return resultobj;
3612fail:
3613 return NULL;
3614}
3615
3616
3617SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3618 PyObject *resultobj = 0;
3619 wxColour *arg1 = (wxColour *) 0 ;
3620 byte arg2 ;
3621 byte arg3 ;
3622 byte arg4 ;
3623 void *argp1 = 0 ;
3624 int res1 = 0 ;
3625 unsigned char val2 ;
3626 int ecode2 = 0 ;
3627 unsigned char val3 ;
3628 int ecode3 = 0 ;
3629 unsigned char val4 ;
3630 int ecode4 = 0 ;
3631 PyObject * obj0 = 0 ;
3632 PyObject * obj1 = 0 ;
3633 PyObject * obj2 = 0 ;
3634 PyObject * obj3 = 0 ;
3635 char * kwnames[] = {
3636 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
3637 };
3638
3639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3641 if (!SWIG_IsOK(res1)) {
3642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
3643 }
3644 arg1 = reinterpret_cast< wxColour * >(argp1);
3645 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3646 if (!SWIG_IsOK(ecode2)) {
3647 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
3648 }
3649 arg2 = static_cast< byte >(val2);
3650 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3651 if (!SWIG_IsOK(ecode3)) {
3652 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
3653 }
3654 arg3 = static_cast< byte >(val3);
3655 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3656 if (!SWIG_IsOK(ecode4)) {
3657 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
3658 }
3659 arg4 = static_cast< byte >(val4);
3660 {
3661 PyThreadState* __tstate = wxPyBeginAllowThreads();
3662 (arg1)->Set(arg2,arg3,arg4);
3663 wxPyEndAllowThreads(__tstate);
3664 if (PyErr_Occurred()) SWIG_fail;
3665 }
3666 resultobj = SWIG_Py_Void();
3667 return resultobj;
3668fail:
3669 return NULL;
3670}
3671
3672
3673SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3674 PyObject *resultobj = 0;
3675 wxColour *arg1 = (wxColour *) 0 ;
3676 unsigned long arg2 ;
3677 void *argp1 = 0 ;
3678 int res1 = 0 ;
3679 unsigned long val2 ;
3680 int ecode2 = 0 ;
3681 PyObject * obj0 = 0 ;
3682 PyObject * obj1 = 0 ;
3683 char * kwnames[] = {
3684 (char *) "self",(char *) "colRGB", NULL
3685 };
3686
3687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
3688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3689 if (!SWIG_IsOK(res1)) {
3690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
3691 }
3692 arg1 = reinterpret_cast< wxColour * >(argp1);
3693 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
3694 if (!SWIG_IsOK(ecode2)) {
3695 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
3696 }
3697 arg2 = static_cast< unsigned long >(val2);
3698 {
3699 PyThreadState* __tstate = wxPyBeginAllowThreads();
3700 (arg1)->Set(arg2);
3701 wxPyEndAllowThreads(__tstate);
3702 if (PyErr_Occurred()) SWIG_fail;
3703 }
3704 resultobj = SWIG_Py_Void();
3705 return resultobj;
3706fail:
3707 return NULL;
3708}
3709
3710
3711SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3712 PyObject *resultobj = 0;
3713 wxColour *arg1 = (wxColour *) 0 ;
3714 wxString *arg2 = 0 ;
3715 void *argp1 = 0 ;
3716 int res1 = 0 ;
3717 bool temp2 = false ;
3718 PyObject * obj0 = 0 ;
3719 PyObject * obj1 = 0 ;
3720 char * kwnames[] = {
3721 (char *) "self",(char *) "colourName", NULL
3722 };
3723
3724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
3725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3726 if (!SWIG_IsOK(res1)) {
3727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
3728 }
3729 arg1 = reinterpret_cast< wxColour * >(argp1);
3730 {
3731 arg2 = wxString_in_helper(obj1);
3732 if (arg2 == NULL) SWIG_fail;
3733 temp2 = true;
3734 }
3735 {
3736 PyThreadState* __tstate = wxPyBeginAllowThreads();
3737 (arg1)->InitFromName((wxString const &)*arg2);
3738 wxPyEndAllowThreads(__tstate);
3739 if (PyErr_Occurred()) SWIG_fail;
3740 }
3741 resultobj = SWIG_Py_Void();
3742 {
3743 if (temp2)
3744 delete arg2;
3745 }
3746 return resultobj;
3747fail:
3748 {
3749 if (temp2)
3750 delete arg2;
3751 }
3752 return NULL;
d14a1e28
RD
3753}
3754
3755
01f6b6d3
RD
3756SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3757 PyObject *resultobj = 0;
3758 wxColour *arg1 = (wxColour *) 0 ;
3759 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
3760 wxString result;
3761 void *argp1 = 0 ;
3762 int res1 = 0 ;
3763 long val2 ;
3764 int ecode2 = 0 ;
3765 PyObject * obj0 = 0 ;
3766 PyObject * obj1 = 0 ;
3767 char * kwnames[] = {
3768 (char *) "self",(char *) "flags", NULL
3769 };
3770
3771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
3772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3773 if (!SWIG_IsOK(res1)) {
3774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
3775 }
3776 arg1 = reinterpret_cast< wxColour * >(argp1);
3777 if (obj1) {
3778 ecode2 = SWIG_AsVal_long(obj1, &val2);
3779 if (!SWIG_IsOK(ecode2)) {
3780 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
3781 }
3782 arg2 = static_cast< long >(val2);
3783 }
3784 {
3785 PyThreadState* __tstate = wxPyBeginAllowThreads();
3786 result = ((wxColour const *)arg1)->GetAsString(arg2);
3787 wxPyEndAllowThreads(__tstate);
3788 if (PyErr_Occurred()) SWIG_fail;
3789 }
3790 {
3791#if wxUSE_UNICODE
3792 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3793#else
3794 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3795#endif
3796 }
3797 return resultobj;
3798fail:
3799 return NULL;
3800}
3801
3802
0085ce49
RD
3803SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3804 PyObject *resultobj = 0;
3805 wxColour *arg1 = (wxColour *) 0 ;
3806 long result;
3807 void *argp1 = 0 ;
3808 int res1 = 0 ;
3809 PyObject *swig_obj[1] ;
3810
3811 if (!args) SWIG_fail;
3812 swig_obj[0] = args;
3813 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3814 if (!SWIG_IsOK(res1)) {
3815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
3816 }
3817 arg1 = reinterpret_cast< wxColour * >(argp1);
3818 {
3819 PyThreadState* __tstate = wxPyBeginAllowThreads();
3820 result = (long)((wxColour const *)arg1)->GetPixel();
3821 wxPyEndAllowThreads(__tstate);
3822 if (PyErr_Occurred()) SWIG_fail;
3823 }
3824 resultobj = SWIG_From_long(static_cast< long >(result));
3825 return resultobj;
3826fail:
3827 return NULL;
3828}
3829
3830
3831SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3832 PyObject *resultobj = 0;
3833 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 3834 PyObject *arg2 = (PyObject *) 0 ;
0085ce49
RD
3835 bool result;
3836 void *argp1 = 0 ;
3837 int res1 = 0 ;
0085ce49
RD
3838 PyObject * obj0 = 0 ;
3839 PyObject * obj1 = 0 ;
3840 char * kwnames[] = {
e9d6f3a4 3841 (char *) "self",(char *) "other", NULL
0085ce49
RD
3842 };
3843
3844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
3845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3846 if (!SWIG_IsOK(res1)) {
e9d6f3a4 3847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
0085ce49
RD
3848 }
3849 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 3850 arg2 = obj1;
0085ce49 3851 {
e9d6f3a4 3852 result = (bool)wxColour___eq__(arg1,arg2);
0085ce49
RD
3853 if (PyErr_Occurred()) SWIG_fail;
3854 }
3855 {
3856 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3857 }
3858 return resultobj;
3859fail:
3860 return NULL;
3861}
3862
3863
3864SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3865 PyObject *resultobj = 0;
3866 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 3867 PyObject *arg2 = (PyObject *) 0 ;
0085ce49
RD
3868 bool result;
3869 void *argp1 = 0 ;
3870 int res1 = 0 ;
0085ce49
RD
3871 PyObject * obj0 = 0 ;
3872 PyObject * obj1 = 0 ;
3873 char * kwnames[] = {
e9d6f3a4 3874 (char *) "self",(char *) "other", NULL
0085ce49
RD
3875 };
3876
3877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
3878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3879 if (!SWIG_IsOK(res1)) {
e9d6f3a4 3880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
0085ce49
RD
3881 }
3882 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 3883 arg2 = obj1;
0085ce49 3884 {
e9d6f3a4 3885 result = (bool)wxColour___ne__(arg1,arg2);
0085ce49
RD
3886 if (PyErr_Occurred()) SWIG_fail;
3887 }
3888 {
3889 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3890 }
3891 return resultobj;
3892fail:
3893 return NULL;
d14a1e28
RD
3894}
3895
3896
0085ce49
RD
3897SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3898 PyObject *resultobj = 0;
3899 wxColour *arg1 = (wxColour *) 0 ;
3900 PyObject *result = 0 ;
3901 void *argp1 = 0 ;
3902 int res1 = 0 ;
3903 PyObject *swig_obj[1] ;
3904
3905 if (!args) SWIG_fail;
3906 swig_obj[0] = args;
3907 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3908 if (!SWIG_IsOK(res1)) {
3909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
3910 }
3911 arg1 = reinterpret_cast< wxColour * >(argp1);
3912 {
3913 PyThreadState* __tstate = wxPyBeginAllowThreads();
3914 result = (PyObject *)wxColour_Get(arg1);
3915 wxPyEndAllowThreads(__tstate);
3916 if (PyErr_Occurred()) SWIG_fail;
3917 }
3918 resultobj = result;
3919 return resultobj;
3920fail:
3921 return NULL;
d14a1e28
RD
3922}
3923
3924
0085ce49
RD
3925SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3926 PyObject *resultobj = 0;
3927 wxColour *arg1 = (wxColour *) 0 ;
3928 unsigned long result;
3929 void *argp1 = 0 ;
3930 int res1 = 0 ;
3931 PyObject *swig_obj[1] ;
3932
3933 if (!args) SWIG_fail;
3934 swig_obj[0] = args;
3935 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3936 if (!SWIG_IsOK(res1)) {
3937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
3938 }
3939 arg1 = reinterpret_cast< wxColour * >(argp1);
3940 {
3941 PyThreadState* __tstate = wxPyBeginAllowThreads();
3942 result = (unsigned long)wxColour_GetRGB(arg1);
3943 wxPyEndAllowThreads(__tstate);
3944 if (PyErr_Occurred()) SWIG_fail;
3945 }
3946 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
3947 return resultobj;
3948fail:
3949 return NULL;
3950}
3951
3952
3953SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3954 PyObject *obj;
3955 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3956 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
3957 return SWIG_Py_Void();
3958}
3959
3960SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3961 return SWIG_Python_InitShadowInstance(args);
3962}
3963
3964SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3965 PyObject *resultobj = 0;
3966 int arg1 ;
3967 unsigned char *arg2 = (unsigned char *) 0 ;
3968 unsigned char *arg3 = (unsigned char *) 0 ;
3969 unsigned char *arg4 = (unsigned char *) 0 ;
3970 wxPalette *result = 0 ;
3971 int val1 ;
3972 int ecode1 = 0 ;
3973 void *argp2 = 0 ;
3974 int res2 = 0 ;
3975 void *argp3 = 0 ;
3976 int res3 = 0 ;
3977 void *argp4 = 0 ;
3978 int res4 = 0 ;
3979 PyObject * obj0 = 0 ;
3980 PyObject * obj1 = 0 ;
3981 PyObject * obj2 = 0 ;
3982 PyObject * obj3 = 0 ;
3983 char * kwnames[] = {
3984 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
3985 };
3986
3987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3988 ecode1 = SWIG_AsVal_int(obj0, &val1);
3989 if (!SWIG_IsOK(ecode1)) {
3990 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
3991 }
3992 arg1 = static_cast< int >(val1);
3993 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
3994 if (!SWIG_IsOK(res2)) {
3995 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
3996 }
3997 arg2 = reinterpret_cast< unsigned char * >(argp2);
3998 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
3999 if (!SWIG_IsOK(res3)) {
4000 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4001 }
4002 arg3 = reinterpret_cast< unsigned char * >(argp3);
4003 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4004 if (!SWIG_IsOK(res4)) {
4005 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4006 }
4007 arg4 = reinterpret_cast< unsigned char * >(argp4);
4008 {
4009 if (!wxPyCheckForApp()) SWIG_fail;
4010 PyThreadState* __tstate = wxPyBeginAllowThreads();
4011 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4012 wxPyEndAllowThreads(__tstate);
4013 if (PyErr_Occurred()) SWIG_fail;
4014 }
4015 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4016 return resultobj;
4017fail:
4018 return NULL;
d14a1e28
RD
4019}
4020
4021
0085ce49
RD
4022SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4023 PyObject *resultobj = 0;
4024 wxPalette *arg1 = (wxPalette *) 0 ;
4025 void *argp1 = 0 ;
4026 int res1 = 0 ;
4027 PyObject *swig_obj[1] ;
4028
4029 if (!args) SWIG_fail;
4030 swig_obj[0] = args;
4031 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4032 if (!SWIG_IsOK(res1)) {
4033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4034 }
4035 arg1 = reinterpret_cast< wxPalette * >(argp1);
4036 {
4037 PyThreadState* __tstate = wxPyBeginAllowThreads();
4038 delete arg1;
d14a1e28 4039
0085ce49
RD
4040 wxPyEndAllowThreads(__tstate);
4041 if (PyErr_Occurred()) SWIG_fail;
4042 }
4043 resultobj = SWIG_Py_Void();
4044 return resultobj;
4045fail:
4046 return NULL;
4047}
4048
4049
4050SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4051 PyObject *resultobj = 0;
4052 wxPalette *arg1 = (wxPalette *) 0 ;
4053 byte arg2 ;
4054 byte arg3 ;
4055 byte arg4 ;
4056 int result;
4057 void *argp1 = 0 ;
4058 int res1 = 0 ;
4059 unsigned char val2 ;
4060 int ecode2 = 0 ;
4061 unsigned char val3 ;
4062 int ecode3 = 0 ;
4063 unsigned char val4 ;
4064 int ecode4 = 0 ;
4065 PyObject * obj0 = 0 ;
4066 PyObject * obj1 = 0 ;
4067 PyObject * obj2 = 0 ;
4068 PyObject * obj3 = 0 ;
4069 char * kwnames[] = {
4070 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4071 };
4072
4073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4075 if (!SWIG_IsOK(res1)) {
4076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4077 }
4078 arg1 = reinterpret_cast< wxPalette * >(argp1);
4079 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4080 if (!SWIG_IsOK(ecode2)) {
4081 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4082 }
4083 arg2 = static_cast< byte >(val2);
4084 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4085 if (!SWIG_IsOK(ecode3)) {
4086 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4087 }
4088 arg3 = static_cast< byte >(val3);
4089 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4090 if (!SWIG_IsOK(ecode4)) {
4091 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4092 }
4093 arg4 = static_cast< byte >(val4);
4094 {
4095 PyThreadState* __tstate = wxPyBeginAllowThreads();
4096 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4097 wxPyEndAllowThreads(__tstate);
4098 if (PyErr_Occurred()) SWIG_fail;
4099 }
4100 resultobj = SWIG_From_int(static_cast< int >(result));
4101 return resultobj;
4102fail:
4103 return NULL;
4104}
4105
4106
4107SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4108 PyObject *resultobj = 0;
4109 wxPalette *arg1 = (wxPalette *) 0 ;
4110 int arg2 ;
4111 byte *arg3 = (byte *) 0 ;
4112 byte *arg4 = (byte *) 0 ;
4113 byte *arg5 = (byte *) 0 ;
4114 bool result;
4115 void *argp1 = 0 ;
4116 int res1 = 0 ;
4117 int val2 ;
4118 int ecode2 = 0 ;
4119 byte temp3 ;
4120 int res3 = SWIG_TMPOBJ ;
4121 byte temp4 ;
4122 int res4 = SWIG_TMPOBJ ;
4123 byte temp5 ;
4124 int res5 = SWIG_TMPOBJ ;
4125 PyObject * obj0 = 0 ;
4126 PyObject * obj1 = 0 ;
4127 char * kwnames[] = {
4128 (char *) "self",(char *) "pixel", NULL
4129 };
4130
4131 arg3 = &temp3;
4132 arg4 = &temp4;
4133 arg5 = &temp5;
4134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4136 if (!SWIG_IsOK(res1)) {
4137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4138 }
4139 arg1 = reinterpret_cast< wxPalette * >(argp1);
4140 ecode2 = SWIG_AsVal_int(obj1, &val2);
4141 if (!SWIG_IsOK(ecode2)) {
4142 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4143 }
4144 arg2 = static_cast< int >(val2);
4145 {
4146 PyThreadState* __tstate = wxPyBeginAllowThreads();
4147 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4148 wxPyEndAllowThreads(__tstate);
4149 if (PyErr_Occurred()) SWIG_fail;
4150 }
4151 {
4152 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4153 }
4154 if (SWIG_IsTmpObj(res3)) {
4155 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4156 } else {
4157 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4158 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4159 }
4160 if (SWIG_IsTmpObj(res4)) {
4161 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4162 } else {
4163 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4164 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4165 }
4166 if (SWIG_IsTmpObj(res5)) {
4167 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4168 } else {
4169 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4170 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4171 }
4172 return resultobj;
4173fail:
4174 return NULL;
d14a1e28
RD
4175}
4176
4177
0085ce49
RD
4178SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4179 PyObject *resultobj = 0;
4180 wxPalette *arg1 = (wxPalette *) 0 ;
4181 int result;
4182 void *argp1 = 0 ;
4183 int res1 = 0 ;
4184 PyObject *swig_obj[1] ;
4185
4186 if (!args) SWIG_fail;
4187 swig_obj[0] = args;
4188 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4189 if (!SWIG_IsOK(res1)) {
4190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4191 }
4192 arg1 = reinterpret_cast< wxPalette * >(argp1);
4193 {
4194 PyThreadState* __tstate = wxPyBeginAllowThreads();
4195 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4196 wxPyEndAllowThreads(__tstate);
4197 if (PyErr_Occurred()) SWIG_fail;
4198 }
4199 resultobj = SWIG_From_int(static_cast< int >(result));
4200 return resultobj;
4201fail:
4202 return NULL;
d14a1e28
RD
4203}
4204
4205
0085ce49
RD
4206SWIGINTERN PyObject *_wrap_Palette_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4207 PyObject *resultobj = 0;
4208 wxPalette *arg1 = (wxPalette *) 0 ;
4209 bool result;
4210 void *argp1 = 0 ;
4211 int res1 = 0 ;
4212 PyObject *swig_obj[1] ;
4213
4214 if (!args) SWIG_fail;
4215 swig_obj[0] = args;
4216 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4217 if (!SWIG_IsOK(res1)) {
4218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_Ok" "', expected argument " "1"" of type '" "wxPalette *""'");
4219 }
4220 arg1 = reinterpret_cast< wxPalette * >(argp1);
4221 {
4222 PyThreadState* __tstate = wxPyBeginAllowThreads();
4223 result = (bool)(arg1)->Ok();
4224 wxPyEndAllowThreads(__tstate);
4225 if (PyErr_Occurred()) SWIG_fail;
4226 }
4227 {
4228 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4229 }
4230 return resultobj;
4231fail:
4232 return NULL;
4233}
4234
4235
4236SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4237 PyObject *obj;
4238 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4239 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4240 return SWIG_Py_Void();
4241}
4242
4243SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4244 return SWIG_Python_InitShadowInstance(args);
4245}
4246
4247SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4248 PyObject *resultobj = 0;
4249 wxColour *arg1 = 0 ;
4250 int arg2 = (int) 1 ;
4251 int arg3 = (int) wxSOLID ;
4252 wxPen *result = 0 ;
4253 wxColour temp1 ;
4254 int val2 ;
4255 int ecode2 = 0 ;
4256 int val3 ;
4257 int ecode3 = 0 ;
4258 PyObject * obj0 = 0 ;
4259 PyObject * obj1 = 0 ;
4260 PyObject * obj2 = 0 ;
4261 char * kwnames[] = {
4262 (char *) "colour",(char *) "width",(char *) "style", NULL
4263 };
4264
4265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4266 {
4267 arg1 = &temp1;
4268 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4269 }
4270 if (obj1) {
4271 ecode2 = SWIG_AsVal_int(obj1, &val2);
4272 if (!SWIG_IsOK(ecode2)) {
4273 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4274 }
4275 arg2 = static_cast< int >(val2);
4276 }
4277 if (obj2) {
4278 ecode3 = SWIG_AsVal_int(obj2, &val3);
4279 if (!SWIG_IsOK(ecode3)) {
4280 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4281 }
4282 arg3 = static_cast< int >(val3);
4283 }
4284 {
4285 if (!wxPyCheckForApp()) SWIG_fail;
4286 PyThreadState* __tstate = wxPyBeginAllowThreads();
4287 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4288 wxPyEndAllowThreads(__tstate);
4289 if (PyErr_Occurred()) SWIG_fail;
4290 }
4291 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4292 return resultobj;
4293fail:
4294 return NULL;
d14a1e28
RD
4295}
4296
4297
0085ce49
RD
4298SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4299 PyObject *resultobj = 0;
4300 wxPen *arg1 = (wxPen *) 0 ;
4301 void *argp1 = 0 ;
4302 int res1 = 0 ;
4303 PyObject *swig_obj[1] ;
4304
4305 if (!args) SWIG_fail;
4306 swig_obj[0] = args;
4307 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4308 if (!SWIG_IsOK(res1)) {
4309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4310 }
4311 arg1 = reinterpret_cast< wxPen * >(argp1);
4312 {
4313 PyThreadState* __tstate = wxPyBeginAllowThreads();
4314 delete arg1;
d14a1e28 4315
0085ce49
RD
4316 wxPyEndAllowThreads(__tstate);
4317 if (PyErr_Occurred()) SWIG_fail;
4318 }
4319 resultobj = SWIG_Py_Void();
4320 return resultobj;
4321fail:
4322 return NULL;
d14a1e28
RD
4323}
4324
4325
0085ce49
RD
4326SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4327 PyObject *resultobj = 0;
4328 wxPen *arg1 = (wxPen *) 0 ;
4329 int result;
4330 void *argp1 = 0 ;
4331 int res1 = 0 ;
4332 PyObject *swig_obj[1] ;
4333
4334 if (!args) SWIG_fail;
4335 swig_obj[0] = args;
4336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4337 if (!SWIG_IsOK(res1)) {
4338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4339 }
4340 arg1 = reinterpret_cast< wxPen * >(argp1);
4341 {
4342 PyThreadState* __tstate = wxPyBeginAllowThreads();
4343 result = (int)(arg1)->GetCap();
4344 wxPyEndAllowThreads(__tstate);
4345 if (PyErr_Occurred()) SWIG_fail;
4346 }
4347 resultobj = SWIG_From_int(static_cast< int >(result));
4348 return resultobj;
4349fail:
4350 return NULL;
d14a1e28
RD
4351}
4352
4353
0085ce49
RD
4354SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4355 PyObject *resultobj = 0;
4356 wxPen *arg1 = (wxPen *) 0 ;
4357 wxColour result;
4358 void *argp1 = 0 ;
4359 int res1 = 0 ;
4360 PyObject *swig_obj[1] ;
4361
4362 if (!args) SWIG_fail;
4363 swig_obj[0] = args;
4364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4365 if (!SWIG_IsOK(res1)) {
4366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4367 }
4368 arg1 = reinterpret_cast< wxPen * >(argp1);
4369 {
4370 PyThreadState* __tstate = wxPyBeginAllowThreads();
4371 result = (arg1)->GetColour();
4372 wxPyEndAllowThreads(__tstate);
4373 if (PyErr_Occurred()) SWIG_fail;
4374 }
4375 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4376 return resultobj;
4377fail:
4378 return NULL;
d14a1e28
RD
4379}
4380
4381
0085ce49
RD
4382SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4383 PyObject *resultobj = 0;
4384 wxPen *arg1 = (wxPen *) 0 ;
4385 int result;
4386 void *argp1 = 0 ;
4387 int res1 = 0 ;
4388 PyObject *swig_obj[1] ;
4389
4390 if (!args) SWIG_fail;
4391 swig_obj[0] = args;
4392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4393 if (!SWIG_IsOK(res1)) {
4394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4395 }
4396 arg1 = reinterpret_cast< wxPen * >(argp1);
4397 {
4398 PyThreadState* __tstate = wxPyBeginAllowThreads();
4399 result = (int)(arg1)->GetJoin();
4400 wxPyEndAllowThreads(__tstate);
4401 if (PyErr_Occurred()) SWIG_fail;
4402 }
4403 resultobj = SWIG_From_int(static_cast< int >(result));
4404 return resultobj;
4405fail:
4406 return NULL;
d14a1e28
RD
4407}
4408
4409
0085ce49
RD
4410SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4411 PyObject *resultobj = 0;
4412 wxPen *arg1 = (wxPen *) 0 ;
4413 int result;
4414 void *argp1 = 0 ;
4415 int res1 = 0 ;
4416 PyObject *swig_obj[1] ;
4417
4418 if (!args) SWIG_fail;
4419 swig_obj[0] = args;
4420 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4421 if (!SWIG_IsOK(res1)) {
4422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4423 }
4424 arg1 = reinterpret_cast< wxPen * >(argp1);
4425 {
4426 PyThreadState* __tstate = wxPyBeginAllowThreads();
4427 result = (int)(arg1)->GetStyle();
4428 wxPyEndAllowThreads(__tstate);
4429 if (PyErr_Occurred()) SWIG_fail;
4430 }
4431 resultobj = SWIG_From_int(static_cast< int >(result));
4432 return resultobj;
4433fail:
4434 return NULL;
3adfb63b
RD
4435}
4436
4437
0085ce49
RD
4438SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4439 PyObject *resultobj = 0;
4440 wxPen *arg1 = (wxPen *) 0 ;
4441 int result;
4442 void *argp1 = 0 ;
4443 int res1 = 0 ;
4444 PyObject *swig_obj[1] ;
4445
4446 if (!args) SWIG_fail;
4447 swig_obj[0] = args;
4448 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4449 if (!SWIG_IsOK(res1)) {
4450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4451 }
4452 arg1 = reinterpret_cast< wxPen * >(argp1);
4453 {
4454 PyThreadState* __tstate = wxPyBeginAllowThreads();
4455 result = (int)(arg1)->GetWidth();
4456 wxPyEndAllowThreads(__tstate);
4457 if (PyErr_Occurred()) SWIG_fail;
4458 }
4459 resultobj = SWIG_From_int(static_cast< int >(result));
4460 return resultobj;
4461fail:
4462 return NULL;
d14a1e28
RD
4463}
4464
4465
0085ce49
RD
4466SWIGINTERN PyObject *_wrap_Pen_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4467 PyObject *resultobj = 0;
4468 wxPen *arg1 = (wxPen *) 0 ;
4469 bool result;
4470 void *argp1 = 0 ;
4471 int res1 = 0 ;
4472 PyObject *swig_obj[1] ;
4473
4474 if (!args) SWIG_fail;
4475 swig_obj[0] = args;
4476 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4477 if (!SWIG_IsOK(res1)) {
4478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_Ok" "', expected argument " "1"" of type '" "wxPen *""'");
4479 }
4480 arg1 = reinterpret_cast< wxPen * >(argp1);
4481 {
4482 PyThreadState* __tstate = wxPyBeginAllowThreads();
4483 result = (bool)(arg1)->Ok();
4484 wxPyEndAllowThreads(__tstate);
4485 if (PyErr_Occurred()) SWIG_fail;
4486 }
4487 {
4488 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4489 }
4490 return resultobj;
4491fail:
4492 return NULL;
4493}
4494
4495
4496SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4497 PyObject *resultobj = 0;
4498 wxPen *arg1 = (wxPen *) 0 ;
4499 int arg2 ;
4500 void *argp1 = 0 ;
4501 int res1 = 0 ;
4502 int val2 ;
4503 int ecode2 = 0 ;
4504 PyObject * obj0 = 0 ;
4505 PyObject * obj1 = 0 ;
4506 char * kwnames[] = {
4507 (char *) "self",(char *) "cap_style", NULL
4508 };
4509
4510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
4511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4512 if (!SWIG_IsOK(res1)) {
4513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4514 }
4515 arg1 = reinterpret_cast< wxPen * >(argp1);
4516 ecode2 = SWIG_AsVal_int(obj1, &val2);
4517 if (!SWIG_IsOK(ecode2)) {
4518 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
4519 }
4520 arg2 = static_cast< int >(val2);
4521 {
4522 PyThreadState* __tstate = wxPyBeginAllowThreads();
4523 (arg1)->SetCap(arg2);
4524 wxPyEndAllowThreads(__tstate);
4525 if (PyErr_Occurred()) SWIG_fail;
4526 }
4527 resultobj = SWIG_Py_Void();
4528 return resultobj;
4529fail:
4530 return NULL;
4531}
4532
4533
4534SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4535 PyObject *resultobj = 0;
4536 wxPen *arg1 = (wxPen *) 0 ;
4537 wxColour *arg2 = 0 ;
4538 void *argp1 = 0 ;
4539 int res1 = 0 ;
4540 wxColour temp2 ;
4541 PyObject * obj0 = 0 ;
4542 PyObject * obj1 = 0 ;
4543 char * kwnames[] = {
4544 (char *) "self",(char *) "colour", NULL
4545 };
4546
4547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
4548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4549 if (!SWIG_IsOK(res1)) {
4550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4551 }
4552 arg1 = reinterpret_cast< wxPen * >(argp1);
4553 {
4554 arg2 = &temp2;
4555 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4556 }
4557 {
4558 PyThreadState* __tstate = wxPyBeginAllowThreads();
4559 (arg1)->SetColour(*arg2);
4560 wxPyEndAllowThreads(__tstate);
4561 if (PyErr_Occurred()) SWIG_fail;
4562 }
4563 resultobj = SWIG_Py_Void();
4564 return resultobj;
4565fail:
4566 return NULL;
4567}
4568
4569
4570SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4571 PyObject *resultobj = 0;
4572 wxPen *arg1 = (wxPen *) 0 ;
4573 int arg2 ;
4574 void *argp1 = 0 ;
4575 int res1 = 0 ;
4576 int val2 ;
4577 int ecode2 = 0 ;
4578 PyObject * obj0 = 0 ;
4579 PyObject * obj1 = 0 ;
4580 char * kwnames[] = {
4581 (char *) "self",(char *) "join_style", NULL
4582 };
4583
4584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
4585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4586 if (!SWIG_IsOK(res1)) {
4587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4588 }
4589 arg1 = reinterpret_cast< wxPen * >(argp1);
4590 ecode2 = SWIG_AsVal_int(obj1, &val2);
4591 if (!SWIG_IsOK(ecode2)) {
4592 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
4593 }
4594 arg2 = static_cast< int >(val2);
4595 {
4596 PyThreadState* __tstate = wxPyBeginAllowThreads();
4597 (arg1)->SetJoin(arg2);
4598 wxPyEndAllowThreads(__tstate);
4599 if (PyErr_Occurred()) SWIG_fail;
4600 }
4601 resultobj = SWIG_Py_Void();
4602 return resultobj;
4603fail:
4604 return NULL;
4605}
4606
4607
4608SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4609 PyObject *resultobj = 0;
4610 wxPen *arg1 = (wxPen *) 0 ;
4611 int arg2 ;
4612 void *argp1 = 0 ;
4613 int res1 = 0 ;
4614 int val2 ;
4615 int ecode2 = 0 ;
4616 PyObject * obj0 = 0 ;
4617 PyObject * obj1 = 0 ;
4618 char * kwnames[] = {
4619 (char *) "self",(char *) "style", NULL
4620 };
4621
4622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
4623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4624 if (!SWIG_IsOK(res1)) {
4625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4626 }
4627 arg1 = reinterpret_cast< wxPen * >(argp1);
4628 ecode2 = SWIG_AsVal_int(obj1, &val2);
4629 if (!SWIG_IsOK(ecode2)) {
4630 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
4631 }
4632 arg2 = static_cast< int >(val2);
4633 {
4634 PyThreadState* __tstate = wxPyBeginAllowThreads();
4635 (arg1)->SetStyle(arg2);
4636 wxPyEndAllowThreads(__tstate);
4637 if (PyErr_Occurred()) SWIG_fail;
4638 }
4639 resultobj = SWIG_Py_Void();
4640 return resultobj;
4641fail:
4642 return NULL;
4643}
4644
4645
4646SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4647 PyObject *resultobj = 0;
4648 wxPen *arg1 = (wxPen *) 0 ;
4649 int arg2 ;
4650 void *argp1 = 0 ;
4651 int res1 = 0 ;
4652 int val2 ;
4653 int ecode2 = 0 ;
4654 PyObject * obj0 = 0 ;
4655 PyObject * obj1 = 0 ;
4656 char * kwnames[] = {
4657 (char *) "self",(char *) "width", NULL
4658 };
4659
4660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
4661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4662 if (!SWIG_IsOK(res1)) {
4663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4664 }
4665 arg1 = reinterpret_cast< wxPen * >(argp1);
4666 ecode2 = SWIG_AsVal_int(obj1, &val2);
4667 if (!SWIG_IsOK(ecode2)) {
4668 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
4669 }
4670 arg2 = static_cast< int >(val2);
4671 {
4672 PyThreadState* __tstate = wxPyBeginAllowThreads();
4673 (arg1)->SetWidth(arg2);
4674 wxPyEndAllowThreads(__tstate);
4675 if (PyErr_Occurred()) SWIG_fail;
4676 }
4677 resultobj = SWIG_Py_Void();
4678 return resultobj;
4679fail:
4680 return NULL;
4681}
4682
4683
4684SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4685 PyObject *resultobj = 0;
4686 wxPen *arg1 = (wxPen *) 0 ;
4687 int arg2 ;
4688 wxDash *arg3 = (wxDash *) 0 ;
4689 void *argp1 = 0 ;
4690 int res1 = 0 ;
4691 PyObject * obj0 = 0 ;
4692 PyObject * obj1 = 0 ;
4693 char * kwnames[] = {
4694 (char *) "self",(char *) "dashes", NULL
4695 };
4696
4697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
4698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4699 if (!SWIG_IsOK(res1)) {
4700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4701 }
4702 arg1 = reinterpret_cast< wxPen * >(argp1);
4703 {
4704 arg2 = PyList_Size(obj1);
4705 arg3 = (wxDash*)byte_LIST_helper(obj1);
4706 if (arg3 == NULL) SWIG_fail;
4707 }
4708 {
4709 PyThreadState* __tstate = wxPyBeginAllowThreads();
4710 (arg1)->SetDashes(arg2,arg3);
4711 wxPyEndAllowThreads(__tstate);
4712 if (PyErr_Occurred()) SWIG_fail;
4713 }
4714 resultobj = SWIG_Py_Void();
4715 {
4716 if (arg3) delete [] arg3;
4717 }
4718 return resultobj;
4719fail:
4720 {
4721 if (arg3) delete [] arg3;
4722 }
4723 return NULL;
d14a1e28
RD
4724}
4725
4726
0085ce49
RD
4727SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4728 PyObject *resultobj = 0;
4729 wxPen *arg1 = (wxPen *) 0 ;
4730 PyObject *result = 0 ;
4731 void *argp1 = 0 ;
4732 int res1 = 0 ;
4733 PyObject *swig_obj[1] ;
4734
4735 if (!args) SWIG_fail;
4736 swig_obj[0] = args;
4737 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4738 if (!SWIG_IsOK(res1)) {
4739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4740 }
4741 arg1 = reinterpret_cast< wxPen * >(argp1);
4742 {
4743 PyThreadState* __tstate = wxPyBeginAllowThreads();
4744 result = (PyObject *)wxPen_GetDashes(arg1);
4745 wxPyEndAllowThreads(__tstate);
4746 if (PyErr_Occurred()) SWIG_fail;
4747 }
4748 resultobj = result;
4749 return resultobj;
4750fail:
4751 return NULL;
4752}
4753
4754
4755SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4756 PyObject *resultobj = 0;
4757 wxPen *arg1 = (wxPen *) 0 ;
4758 PyObject *arg2 = (PyObject *) 0 ;
4759 PyObject *arg3 = (PyObject *) 0 ;
4760 void *argp1 = 0 ;
4761 int res1 = 0 ;
4762 PyObject * obj0 = 0 ;
4763 PyObject * obj1 = 0 ;
4764 PyObject * obj2 = 0 ;
4765 char * kwnames[] = {
4766 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
4767 };
4768
4769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4771 if (!SWIG_IsOK(res1)) {
4772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4773 }
4774 arg1 = reinterpret_cast< wxPen * >(argp1);
4775 arg2 = obj1;
4776 arg3 = obj2;
4777 {
4778 PyThreadState* __tstate = wxPyBeginAllowThreads();
4779 wxPen__SetDashes(arg1,arg2,arg3);
4780 wxPyEndAllowThreads(__tstate);
4781 if (PyErr_Occurred()) SWIG_fail;
4782 }
4783 resultobj = SWIG_Py_Void();
4784 return resultobj;
4785fail:
4786 return NULL;
d14a1e28
RD
4787}
4788
4789
0085ce49
RD
4790SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4791 PyObject *resultobj = 0;
4792 wxPen *arg1 = (wxPen *) 0 ;
4793 int result;
4794 void *argp1 = 0 ;
4795 int res1 = 0 ;
4796 PyObject *swig_obj[1] ;
4797
4798 if (!args) SWIG_fail;
4799 swig_obj[0] = args;
4800 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4801 if (!SWIG_IsOK(res1)) {
4802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
4803 }
4804 arg1 = reinterpret_cast< wxPen * >(argp1);
4805 {
4806 PyThreadState* __tstate = wxPyBeginAllowThreads();
4807 result = (int)((wxPen const *)arg1)->GetDashCount();
4808 wxPyEndAllowThreads(__tstate);
4809 if (PyErr_Occurred()) SWIG_fail;
4810 }
4811 resultobj = SWIG_From_int(static_cast< int >(result));
4812 return resultobj;
4813fail:
4814 return NULL;
4815}
4816
4817
4818SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4819 PyObject *resultobj = 0;
4820 wxPen *arg1 = (wxPen *) 0 ;
4821 wxPen *arg2 = (wxPen *) 0 ;
4822 bool result;
4823 void *argp1 = 0 ;
4824 int res1 = 0 ;
4825 void *argp2 = 0 ;
4826 int res2 = 0 ;
4827 PyObject * obj0 = 0 ;
4828 PyObject * obj1 = 0 ;
4829 char * kwnames[] = {
4830 (char *) "self",(char *) "other", NULL
4831 };
4832
4833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4835 if (!SWIG_IsOK(res1)) {
4836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
4837 }
4838 arg1 = reinterpret_cast< wxPen * >(argp1);
4839 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
4840 if (!SWIG_IsOK(res2)) {
4841 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
4842 }
4843 arg2 = reinterpret_cast< wxPen * >(argp2);
4844 {
4845 PyThreadState* __tstate = wxPyBeginAllowThreads();
4846 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
4847 wxPyEndAllowThreads(__tstate);
4848 if (PyErr_Occurred()) SWIG_fail;
4849 }
4850 {
4851 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4852 }
4853 return resultobj;
4854fail:
4855 return NULL;
4856}
4857
4858
4859SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4860 PyObject *resultobj = 0;
4861 wxPen *arg1 = (wxPen *) 0 ;
4862 wxPen *arg2 = (wxPen *) 0 ;
4863 bool result;
4864 void *argp1 = 0 ;
4865 int res1 = 0 ;
4866 void *argp2 = 0 ;
4867 int res2 = 0 ;
4868 PyObject * obj0 = 0 ;
4869 PyObject * obj1 = 0 ;
4870 char * kwnames[] = {
4871 (char *) "self",(char *) "other", NULL
4872 };
4873
4874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4876 if (!SWIG_IsOK(res1)) {
4877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
4878 }
4879 arg1 = reinterpret_cast< wxPen * >(argp1);
4880 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
4881 if (!SWIG_IsOK(res2)) {
4882 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
4883 }
4884 arg2 = reinterpret_cast< wxPen * >(argp2);
4885 {
4886 PyThreadState* __tstate = wxPyBeginAllowThreads();
4887 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
4888 wxPyEndAllowThreads(__tstate);
4889 if (PyErr_Occurred()) SWIG_fail;
4890 }
4891 {
4892 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4893 }
4894 return resultobj;
4895fail:
4896 return NULL;
d14a1e28
RD
4897}
4898
4899
0085ce49
RD
4900SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4901 PyObject *obj;
4902 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4903 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
4904 return SWIG_Py_Void();
d14a1e28
RD
4905}
4906
0085ce49
RD
4907SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4908 return SWIG_Python_InitShadowInstance(args);
4909}
d14a1e28 4910
0085ce49
RD
4911SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4912 PyObject *resultobj = 0;
4913 wxColour *arg1 = 0 ;
4914 int arg2 = (int) wxSOLID ;
4915 wxBrush *result = 0 ;
4916 wxColour temp1 ;
4917 int val2 ;
4918 int ecode2 = 0 ;
4919 PyObject * obj0 = 0 ;
4920 PyObject * obj1 = 0 ;
4921 char * kwnames[] = {
4922 (char *) "colour",(char *) "style", NULL
4923 };
4924
4925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
4926 {
4927 arg1 = &temp1;
4928 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4929 }
4930 if (obj1) {
4931 ecode2 = SWIG_AsVal_int(obj1, &val2);
4932 if (!SWIG_IsOK(ecode2)) {
4933 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
4934 }
4935 arg2 = static_cast< int >(val2);
4936 }
4937 {
4938 if (!wxPyCheckForApp()) SWIG_fail;
4939 PyThreadState* __tstate = wxPyBeginAllowThreads();
4940 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
4941 wxPyEndAllowThreads(__tstate);
4942 if (PyErr_Occurred()) SWIG_fail;
4943 }
4944 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
4945 return resultobj;
4946fail:
4947 return NULL;
4948}
4949
4950
4951SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4952 PyObject *resultobj = 0;
4953 wxBitmap *arg1 = 0 ;
4954 wxBrush *result = 0 ;
4955 void *argp1 = 0 ;
4956 int res1 = 0 ;
4957 PyObject * obj0 = 0 ;
4958 char * kwnames[] = {
4959 (char *) "stippleBitmap", NULL
4960 };
4961
4962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
4963 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
4964 if (!SWIG_IsOK(res1)) {
4965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
4966 }
4967 if (!argp1) {
4968 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
4969 }
4970 arg1 = reinterpret_cast< wxBitmap * >(argp1);
4971 {
4972 if (!wxPyCheckForApp()) SWIG_fail;
4973 PyThreadState* __tstate = wxPyBeginAllowThreads();
4974 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
4975 wxPyEndAllowThreads(__tstate);
4976 if (PyErr_Occurred()) SWIG_fail;
4977 }
4978 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
4979 return resultobj;
4980fail:
4981 return NULL;
d14a1e28
RD
4982}
4983
4984
0085ce49
RD
4985SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4986 PyObject *resultobj = 0;
4987 wxBrush *arg1 = (wxBrush *) 0 ;
4988 void *argp1 = 0 ;
4989 int res1 = 0 ;
4990 PyObject *swig_obj[1] ;
4991
4992 if (!args) SWIG_fail;
4993 swig_obj[0] = args;
4994 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
4995 if (!SWIG_IsOK(res1)) {
4996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
4997 }
4998 arg1 = reinterpret_cast< wxBrush * >(argp1);
4999 {
5000 PyThreadState* __tstate = wxPyBeginAllowThreads();
5001 delete arg1;
d14a1e28 5002
0085ce49
RD
5003 wxPyEndAllowThreads(__tstate);
5004 if (PyErr_Occurred()) SWIG_fail;
5005 }
5006 resultobj = SWIG_Py_Void();
5007 return resultobj;
5008fail:
5009 return NULL;
5010}
5011
5012
5013SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5014 PyObject *resultobj = 0;
5015 wxBrush *arg1 = (wxBrush *) 0 ;
5016 wxColour *arg2 = 0 ;
5017 void *argp1 = 0 ;
5018 int res1 = 0 ;
5019 wxColour temp2 ;
5020 PyObject * obj0 = 0 ;
5021 PyObject * obj1 = 0 ;
5022 char * kwnames[] = {
5023 (char *) "self",(char *) "col", NULL
5024 };
5025
5026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5028 if (!SWIG_IsOK(res1)) {
5029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5030 }
5031 arg1 = reinterpret_cast< wxBrush * >(argp1);
5032 {
5033 arg2 = &temp2;
5034 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5035 }
5036 {
5037 PyThreadState* __tstate = wxPyBeginAllowThreads();
5038 (arg1)->SetColour((wxColour const &)*arg2);
5039 wxPyEndAllowThreads(__tstate);
5040 if (PyErr_Occurred()) SWIG_fail;
5041 }
5042 resultobj = SWIG_Py_Void();
5043 return resultobj;
5044fail:
5045 return NULL;
5046}
5047
5048
5049SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5050 PyObject *resultobj = 0;
5051 wxBrush *arg1 = (wxBrush *) 0 ;
5052 int arg2 ;
5053 void *argp1 = 0 ;
5054 int res1 = 0 ;
5055 int val2 ;
5056 int ecode2 = 0 ;
5057 PyObject * obj0 = 0 ;
5058 PyObject * obj1 = 0 ;
5059 char * kwnames[] = {
5060 (char *) "self",(char *) "style", NULL
5061 };
5062
5063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5065 if (!SWIG_IsOK(res1)) {
5066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5067 }
5068 arg1 = reinterpret_cast< wxBrush * >(argp1);
5069 ecode2 = SWIG_AsVal_int(obj1, &val2);
5070 if (!SWIG_IsOK(ecode2)) {
5071 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5072 }
5073 arg2 = static_cast< int >(val2);
5074 {
5075 PyThreadState* __tstate = wxPyBeginAllowThreads();
5076 (arg1)->SetStyle(arg2);
5077 wxPyEndAllowThreads(__tstate);
5078 if (PyErr_Occurred()) SWIG_fail;
5079 }
5080 resultobj = SWIG_Py_Void();
5081 return resultobj;
5082fail:
5083 return NULL;
5084}
5085
5086
5087SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5088 PyObject *resultobj = 0;
5089 wxBrush *arg1 = (wxBrush *) 0 ;
5090 wxBitmap *arg2 = 0 ;
5091 void *argp1 = 0 ;
5092 int res1 = 0 ;
5093 void *argp2 = 0 ;
5094 int res2 = 0 ;
5095 PyObject * obj0 = 0 ;
5096 PyObject * obj1 = 0 ;
5097 char * kwnames[] = {
5098 (char *) "self",(char *) "stipple", NULL
5099 };
5100
5101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5103 if (!SWIG_IsOK(res1)) {
5104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5105 }
5106 arg1 = reinterpret_cast< wxBrush * >(argp1);
5107 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5108 if (!SWIG_IsOK(res2)) {
5109 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5110 }
5111 if (!argp2) {
5112 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5113 }
5114 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5115 {
5116 PyThreadState* __tstate = wxPyBeginAllowThreads();
5117 (arg1)->SetStipple((wxBitmap const &)*arg2);
5118 wxPyEndAllowThreads(__tstate);
5119 if (PyErr_Occurred()) SWIG_fail;
5120 }
5121 resultobj = SWIG_Py_Void();
5122 return resultobj;
5123fail:
5124 return NULL;
d14a1e28
RD
5125}
5126
5127
0085ce49
RD
5128SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5129 PyObject *resultobj = 0;
5130 wxBrush *arg1 = (wxBrush *) 0 ;
5131 wxColour result;
5132 void *argp1 = 0 ;
5133 int res1 = 0 ;
5134 PyObject *swig_obj[1] ;
5135
5136 if (!args) SWIG_fail;
5137 swig_obj[0] = args;
5138 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5139 if (!SWIG_IsOK(res1)) {
5140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5141 }
5142 arg1 = reinterpret_cast< wxBrush * >(argp1);
5143 {
5144 PyThreadState* __tstate = wxPyBeginAllowThreads();
5145 result = ((wxBrush const *)arg1)->GetColour();
5146 wxPyEndAllowThreads(__tstate);
5147 if (PyErr_Occurred()) SWIG_fail;
5148 }
5149 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5150 return resultobj;
5151fail:
5152 return NULL;
d14a1e28
RD
5153}
5154
5155
0085ce49
RD
5156SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5157 PyObject *resultobj = 0;
5158 wxBrush *arg1 = (wxBrush *) 0 ;
5159 int result;
5160 void *argp1 = 0 ;
5161 int res1 = 0 ;
5162 PyObject *swig_obj[1] ;
5163
5164 if (!args) SWIG_fail;
5165 swig_obj[0] = args;
5166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5167 if (!SWIG_IsOK(res1)) {
5168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5169 }
5170 arg1 = reinterpret_cast< wxBrush * >(argp1);
5171 {
5172 PyThreadState* __tstate = wxPyBeginAllowThreads();
5173 result = (int)((wxBrush const *)arg1)->GetStyle();
5174 wxPyEndAllowThreads(__tstate);
5175 if (PyErr_Occurred()) SWIG_fail;
5176 }
5177 resultobj = SWIG_From_int(static_cast< int >(result));
5178 return resultobj;
5179fail:
5180 return NULL;
d14a1e28
RD
5181}
5182
5183
0085ce49
RD
5184SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5185 PyObject *resultobj = 0;
5186 wxBrush *arg1 = (wxBrush *) 0 ;
5187 wxBitmap *result = 0 ;
5188 void *argp1 = 0 ;
5189 int res1 = 0 ;
5190 PyObject *swig_obj[1] ;
5191
5192 if (!args) SWIG_fail;
5193 swig_obj[0] = args;
5194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5195 if (!SWIG_IsOK(res1)) {
5196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5197 }
5198 arg1 = reinterpret_cast< wxBrush * >(argp1);
5199 {
5200 PyThreadState* __tstate = wxPyBeginAllowThreads();
5201 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5202 wxPyEndAllowThreads(__tstate);
5203 if (PyErr_Occurred()) SWIG_fail;
5204 }
5205 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5206 return resultobj;
5207fail:
5208 return NULL;
d14a1e28
RD
5209}
5210
5211
0085ce49
RD
5212SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5213 PyObject *resultobj = 0;
5214 wxBrush *arg1 = (wxBrush *) 0 ;
5215 bool result;
5216 void *argp1 = 0 ;
5217 int res1 = 0 ;
5218 PyObject *swig_obj[1] ;
5219
5220 if (!args) SWIG_fail;
5221 swig_obj[0] = args;
5222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5223 if (!SWIG_IsOK(res1)) {
5224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5225 }
5226 arg1 = reinterpret_cast< wxBrush * >(argp1);
5227 {
5228 PyThreadState* __tstate = wxPyBeginAllowThreads();
5229 result = (bool)((wxBrush const *)arg1)->IsHatch();
5230 wxPyEndAllowThreads(__tstate);
5231 if (PyErr_Occurred()) SWIG_fail;
5232 }
5233 {
5234 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5235 }
5236 return resultobj;
5237fail:
5238 return NULL;
f78cc896
RD
5239}
5240
5241
0085ce49
RD
5242SWIGINTERN PyObject *_wrap_Brush_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5243 PyObject *resultobj = 0;
5244 wxBrush *arg1 = (wxBrush *) 0 ;
5245 bool result;
5246 void *argp1 = 0 ;
5247 int res1 = 0 ;
5248 PyObject *swig_obj[1] ;
5249
5250 if (!args) SWIG_fail;
5251 swig_obj[0] = args;
5252 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5253 if (!SWIG_IsOK(res1)) {
5254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_Ok" "', expected argument " "1"" of type '" "wxBrush *""'");
5255 }
5256 arg1 = reinterpret_cast< wxBrush * >(argp1);
5257 {
5258 PyThreadState* __tstate = wxPyBeginAllowThreads();
5259 result = (bool)(arg1)->Ok();
5260 wxPyEndAllowThreads(__tstate);
5261 if (PyErr_Occurred()) SWIG_fail;
5262 }
5263 {
5264 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5265 }
5266 return resultobj;
5267fail:
5268 return NULL;
d14a1e28
RD
5269}
5270
5271
0085ce49
RD
5272SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5273 PyObject *obj;
5274 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5275 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5276 return SWIG_Py_Void();
d14a1e28
RD
5277}
5278
0085ce49
RD
5279SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5280 return SWIG_Python_InitShadowInstance(args);
5281}
d14a1e28 5282
0085ce49
RD
5283SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5284 PyObject *resultobj = 0;
5285 wxString *arg1 = 0 ;
5286 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5287 wxBitmap *result = 0 ;
5288 bool temp1 = false ;
5289 int val2 ;
5290 int ecode2 = 0 ;
5291 PyObject * obj0 = 0 ;
5292 PyObject * obj1 = 0 ;
5293 char * kwnames[] = {
5294 (char *) "name",(char *) "type", NULL
5295 };
5296
5297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5298 {
5299 arg1 = wxString_in_helper(obj0);
5300 if (arg1 == NULL) SWIG_fail;
5301 temp1 = true;
5302 }
5303 if (obj1) {
5304 ecode2 = SWIG_AsVal_int(obj1, &val2);
5305 if (!SWIG_IsOK(ecode2)) {
5306 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5307 }
5308 arg2 = static_cast< wxBitmapType >(val2);
5309 }
5310 {
5311 if (!wxPyCheckForApp()) SWIG_fail;
5312 PyThreadState* __tstate = wxPyBeginAllowThreads();
5313 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5314 wxPyEndAllowThreads(__tstate);
5315 if (PyErr_Occurred()) SWIG_fail;
5316 }
5317 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5318 {
5319 if (temp1)
5320 delete arg1;
5321 }
5322 return resultobj;
5323fail:
5324 {
5325 if (temp1)
5326 delete arg1;
5327 }
5328 return NULL;
d14a1e28
RD
5329}
5330
5331
0085ce49
RD
5332SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5333 PyObject *resultobj = 0;
5334 wxBitmap *arg1 = (wxBitmap *) 0 ;
5335 void *argp1 = 0 ;
5336 int res1 = 0 ;
5337 PyObject *swig_obj[1] ;
5338
5339 if (!args) SWIG_fail;
5340 swig_obj[0] = args;
5341 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5342 if (!SWIG_IsOK(res1)) {
5343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5344 }
5345 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5346 {
5347 PyThreadState* __tstate = wxPyBeginAllowThreads();
5348 delete arg1;
66c033b4 5349
0085ce49
RD
5350 wxPyEndAllowThreads(__tstate);
5351 if (PyErr_Occurred()) SWIG_fail;
5352 }
5353 resultobj = SWIG_Py_Void();
5354 return resultobj;
5355fail:
5356 return NULL;
5357}
5358
5359
5360SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5361 PyObject *resultobj = 0;
5362 int arg1 ;
5363 int arg2 ;
5364 int arg3 = (int) -1 ;
5365 wxBitmap *result = 0 ;
5366 int val1 ;
5367 int ecode1 = 0 ;
5368 int val2 ;
5369 int ecode2 = 0 ;
5370 int val3 ;
5371 int ecode3 = 0 ;
5372 PyObject * obj0 = 0 ;
5373 PyObject * obj1 = 0 ;
5374 PyObject * obj2 = 0 ;
5375 char * kwnames[] = {
5376 (char *) "width",(char *) "height",(char *) "depth", NULL
5377 };
5378
5379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5380 ecode1 = SWIG_AsVal_int(obj0, &val1);
5381 if (!SWIG_IsOK(ecode1)) {
5382 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5383 }
5384 arg1 = static_cast< int >(val1);
5385 ecode2 = SWIG_AsVal_int(obj1, &val2);
5386 if (!SWIG_IsOK(ecode2)) {
5387 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5388 }
5389 arg2 = static_cast< int >(val2);
5390 if (obj2) {
5391 ecode3 = SWIG_AsVal_int(obj2, &val3);
5392 if (!SWIG_IsOK(ecode3)) {
5393 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5394 }
5395 arg3 = static_cast< int >(val3);
5396 }
5397 {
5398 if (!wxPyCheckForApp()) SWIG_fail;
5399 PyThreadState* __tstate = wxPyBeginAllowThreads();
5400 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5401 wxPyEndAllowThreads(__tstate);
5402 if (PyErr_Occurred()) SWIG_fail;
5403 }
5404 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5405 return resultobj;
5406fail:
5407 return NULL;
5408}
5409
5410
5411SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5412 PyObject *resultobj = 0;
5413 wxIcon *arg1 = 0 ;
5414 wxBitmap *result = 0 ;
5415 void *argp1 = 0 ;
5416 int res1 = 0 ;
5417 PyObject * obj0 = 0 ;
5418 char * kwnames[] = {
5419 (char *) "icon", NULL
5420 };
5421
5422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
5423 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
5424 if (!SWIG_IsOK(res1)) {
5425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5426 }
5427 if (!argp1) {
5428 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5429 }
5430 arg1 = reinterpret_cast< wxIcon * >(argp1);
5431 {
5432 if (!wxPyCheckForApp()) SWIG_fail;
5433 PyThreadState* __tstate = wxPyBeginAllowThreads();
5434 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
5435 wxPyEndAllowThreads(__tstate);
5436 if (PyErr_Occurred()) SWIG_fail;
5437 }
5438 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5439 return resultobj;
5440fail:
5441 return NULL;
5442}
5443
5444
5445SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5446 PyObject *resultobj = 0;
5447 wxImage *arg1 = 0 ;
5448 int arg2 = (int) -1 ;
5449 wxBitmap *result = 0 ;
5450 void *argp1 = 0 ;
5451 int res1 = 0 ;
5452 int val2 ;
5453 int ecode2 = 0 ;
5454 PyObject * obj0 = 0 ;
5455 PyObject * obj1 = 0 ;
5456 char * kwnames[] = {
5457 (char *) "image",(char *) "depth", NULL
5458 };
5459
5460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
5461 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
5462 if (!SWIG_IsOK(res1)) {
5463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5464 }
5465 if (!argp1) {
5466 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5467 }
5468 arg1 = reinterpret_cast< wxImage * >(argp1);
5469 if (obj1) {
5470 ecode2 = SWIG_AsVal_int(obj1, &val2);
5471 if (!SWIG_IsOK(ecode2)) {
5472 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
5473 }
5474 arg2 = static_cast< int >(val2);
5475 }
5476 {
5477 if (!wxPyCheckForApp()) SWIG_fail;
5478 PyThreadState* __tstate = wxPyBeginAllowThreads();
5479 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
5480 wxPyEndAllowThreads(__tstate);
5481 if (PyErr_Occurred()) SWIG_fail;
5482 }
5483 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5484 return resultobj;
5485fail:
5486 return NULL;
66c033b4
RD
5487}
5488
5489
0085ce49
RD
5490SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5491 PyObject *resultobj = 0;
5492 PyObject *arg1 = (PyObject *) 0 ;
5493 wxBitmap *result = 0 ;
5494 PyObject * obj0 = 0 ;
5495 char * kwnames[] = {
5496 (char *) "listOfStrings", NULL
5497 };
5498
5499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
5500 arg1 = obj0;
5501 {
5502 if (!wxPyCheckForApp()) SWIG_fail;
5503 PyThreadState* __tstate = wxPyBeginAllowThreads();
5504 result = (wxBitmap *)new_wxBitmap(arg1);
5505 wxPyEndAllowThreads(__tstate);
5506 if (PyErr_Occurred()) SWIG_fail;
5507 }
5508 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5509 return resultobj;
5510fail:
5511 return NULL;
5512}
5513
5514
5515SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5516 PyObject *resultobj = 0;
5517 PyObject *arg1 = (PyObject *) 0 ;
5518 int arg2 ;
5519 int arg3 ;
5520 int arg4 = (int) 1 ;
5521 wxBitmap *result = 0 ;
5522 int val2 ;
5523 int ecode2 = 0 ;
5524 int val3 ;
5525 int ecode3 = 0 ;
5526 int val4 ;
5527 int ecode4 = 0 ;
5528 PyObject * obj0 = 0 ;
5529 PyObject * obj1 = 0 ;
5530 PyObject * obj2 = 0 ;
5531 PyObject * obj3 = 0 ;
5532 char * kwnames[] = {
5533 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
5534 };
5535
5536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
5537 arg1 = obj0;
5538 ecode2 = SWIG_AsVal_int(obj1, &val2);
5539 if (!SWIG_IsOK(ecode2)) {
5540 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
5541 }
5542 arg2 = static_cast< int >(val2);
5543 ecode3 = SWIG_AsVal_int(obj2, &val3);
5544 if (!SWIG_IsOK(ecode3)) {
5545 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
5546 }
5547 arg3 = static_cast< int >(val3);
5548 if (obj3) {
5549 ecode4 = SWIG_AsVal_int(obj3, &val4);
5550 if (!SWIG_IsOK(ecode4)) {
5551 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
5552 }
5553 arg4 = static_cast< int >(val4);
5554 }
5555 {
5556 if (!wxPyCheckForApp()) SWIG_fail;
5557 PyThreadState* __tstate = wxPyBeginAllowThreads();
5558 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
5559 wxPyEndAllowThreads(__tstate);
5560 if (PyErr_Occurred()) SWIG_fail;
5561 }
5562 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5563 return resultobj;
5564fail:
5565 return NULL;
d14a1e28
RD
5566}
5567
5568
0085ce49
RD
5569SWIGINTERN PyObject *_wrap_Bitmap_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5570 PyObject *resultobj = 0;
5571 wxBitmap *arg1 = (wxBitmap *) 0 ;
5572 bool result;
5573 void *argp1 = 0 ;
5574 int res1 = 0 ;
5575 PyObject *swig_obj[1] ;
5576
5577 if (!args) SWIG_fail;
5578 swig_obj[0] = args;
5579 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5580 if (!SWIG_IsOK(res1)) {
5581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_Ok" "', expected argument " "1"" of type '" "wxBitmap *""'");
5582 }
5583 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5584 {
5585 PyThreadState* __tstate = wxPyBeginAllowThreads();
5586 result = (bool)(arg1)->Ok();
5587 wxPyEndAllowThreads(__tstate);
5588 if (PyErr_Occurred()) SWIG_fail;
5589 }
5590 {
5591 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5592 }
5593 return resultobj;
5594fail:
5595 return NULL;
d14a1e28
RD
5596}
5597
5598
0085ce49
RD
5599SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5600 PyObject *resultobj = 0;
5601 wxBitmap *arg1 = (wxBitmap *) 0 ;
5602 int result;
5603 void *argp1 = 0 ;
5604 int res1 = 0 ;
5605 PyObject *swig_obj[1] ;
5606
5607 if (!args) SWIG_fail;
5608 swig_obj[0] = args;
5609 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5610 if (!SWIG_IsOK(res1)) {
5611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
5612 }
5613 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5614 {
5615 PyThreadState* __tstate = wxPyBeginAllowThreads();
5616 result = (int)(arg1)->GetWidth();
5617 wxPyEndAllowThreads(__tstate);
5618 if (PyErr_Occurred()) SWIG_fail;
5619 }
5620 resultobj = SWIG_From_int(static_cast< int >(result));
5621 return resultobj;
5622fail:
5623 return NULL;
d14a1e28
RD
5624}
5625
5626
0085ce49
RD
5627SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5628 PyObject *resultobj = 0;
5629 wxBitmap *arg1 = (wxBitmap *) 0 ;
5630 int result;
5631 void *argp1 = 0 ;
5632 int res1 = 0 ;
5633 PyObject *swig_obj[1] ;
5634
5635 if (!args) SWIG_fail;
5636 swig_obj[0] = args;
5637 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5638 if (!SWIG_IsOK(res1)) {
5639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
5640 }
5641 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5642 {
5643 PyThreadState* __tstate = wxPyBeginAllowThreads();
5644 result = (int)(arg1)->GetHeight();
5645 wxPyEndAllowThreads(__tstate);
5646 if (PyErr_Occurred()) SWIG_fail;
5647 }
5648 resultobj = SWIG_From_int(static_cast< int >(result));
5649 return resultobj;
5650fail:
5651 return NULL;
d14a1e28
RD
5652}
5653
5654
0085ce49
RD
5655SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5656 PyObject *resultobj = 0;
5657 wxBitmap *arg1 = (wxBitmap *) 0 ;
5658 int result;
5659 void *argp1 = 0 ;
5660 int res1 = 0 ;
5661 PyObject *swig_obj[1] ;
5662
5663 if (!args) SWIG_fail;
5664 swig_obj[0] = args;
5665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5666 if (!SWIG_IsOK(res1)) {
5667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
5668 }
5669 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5670 {
5671 PyThreadState* __tstate = wxPyBeginAllowThreads();
5672 result = (int)(arg1)->GetDepth();
5673 wxPyEndAllowThreads(__tstate);
5674 if (PyErr_Occurred()) SWIG_fail;
5675 }
5676 resultobj = SWIG_From_int(static_cast< int >(result));
5677 return resultobj;
5678fail:
5679 return NULL;
d14a1e28
RD
5680}
5681
5682
0085ce49
RD
5683SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5684 PyObject *resultobj = 0;
5685 wxBitmap *arg1 = (wxBitmap *) 0 ;
5686 wxSize result;
5687 void *argp1 = 0 ;
5688 int res1 = 0 ;
5689 PyObject *swig_obj[1] ;
5690
5691 if (!args) SWIG_fail;
5692 swig_obj[0] = args;
5693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5694 if (!SWIG_IsOK(res1)) {
5695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
5696 }
5697 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5698 {
5699 PyThreadState* __tstate = wxPyBeginAllowThreads();
5700 result = wxBitmap_GetSize(arg1);
5701 wxPyEndAllowThreads(__tstate);
5702 if (PyErr_Occurred()) SWIG_fail;
5703 }
5704 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
5705 return resultobj;
5706fail:
5707 return NULL;
d14a1e28
RD
5708}
5709
5710
0085ce49
RD
5711SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5712 PyObject *resultobj = 0;
5713 wxBitmap *arg1 = (wxBitmap *) 0 ;
5714 SwigValueWrapper<wxImage > result;
5715 void *argp1 = 0 ;
5716 int res1 = 0 ;
5717 PyObject *swig_obj[1] ;
5718
5719 if (!args) SWIG_fail;
5720 swig_obj[0] = args;
5721 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5722 if (!SWIG_IsOK(res1)) {
5723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5724 }
5725 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5726 {
5727 PyThreadState* __tstate = wxPyBeginAllowThreads();
5728 result = ((wxBitmap const *)arg1)->ConvertToImage();
5729 wxPyEndAllowThreads(__tstate);
5730 if (PyErr_Occurred()) SWIG_fail;
5731 }
5732 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
5733 return resultobj;
5734fail:
5735 return NULL;
d14a1e28
RD
5736}
5737
5738
0085ce49
RD
5739SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5740 PyObject *resultobj = 0;
5741 wxBitmap *arg1 = (wxBitmap *) 0 ;
5742 wxMask *result = 0 ;
5743 void *argp1 = 0 ;
5744 int res1 = 0 ;
5745 PyObject *swig_obj[1] ;
5746
5747 if (!args) SWIG_fail;
5748 swig_obj[0] = args;
5749 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5750 if (!SWIG_IsOK(res1)) {
5751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5752 }
5753 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5754 {
5755 PyThreadState* __tstate = wxPyBeginAllowThreads();
5756 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
5757 wxPyEndAllowThreads(__tstate);
5758 if (PyErr_Occurred()) SWIG_fail;
5759 }
5760 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
5761 return resultobj;
5762fail:
5763 return NULL;
5764}
5765
5766
5767SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5768 PyObject *resultobj = 0;
5769 wxBitmap *arg1 = (wxBitmap *) 0 ;
5770 wxMask *arg2 = (wxMask *) 0 ;
5771 void *argp1 = 0 ;
5772 int res1 = 0 ;
5773 int res2 = 0 ;
5774 PyObject * obj0 = 0 ;
5775 PyObject * obj1 = 0 ;
5776 char * kwnames[] = {
5777 (char *) "self",(char *) "mask", NULL
5778 };
5779
5780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
5781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5782 if (!SWIG_IsOK(res1)) {
5783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
5784 }
5785 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5786 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
5787 if (!SWIG_IsOK(res2)) {
5788 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
5789 }
5790 {
5791 PyThreadState* __tstate = wxPyBeginAllowThreads();
5792 (arg1)->SetMask(arg2);
5793 wxPyEndAllowThreads(__tstate);
5794 if (PyErr_Occurred()) SWIG_fail;
5795 }
5796 resultobj = SWIG_Py_Void();
5797 return resultobj;
5798fail:
5799 return NULL;
5800}
5801
5802
5803SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5804 PyObject *resultobj = 0;
5805 wxBitmap *arg1 = (wxBitmap *) 0 ;
5806 wxColour *arg2 = 0 ;
5807 void *argp1 = 0 ;
5808 int res1 = 0 ;
5809 wxColour temp2 ;
5810 PyObject * obj0 = 0 ;
5811 PyObject * obj1 = 0 ;
5812 char * kwnames[] = {
5813 (char *) "self",(char *) "colour", NULL
5814 };
5815
5816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
5817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5818 if (!SWIG_IsOK(res1)) {
5819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
5820 }
5821 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5822 {
5823 arg2 = &temp2;
5824 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5825 }
5826 {
5827 PyThreadState* __tstate = wxPyBeginAllowThreads();
5828 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
5829 wxPyEndAllowThreads(__tstate);
5830 if (PyErr_Occurred()) SWIG_fail;
5831 }
5832 resultobj = SWIG_Py_Void();
5833 return resultobj;
5834fail:
5835 return NULL;
5836}
5837
5838
5839SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5840 PyObject *resultobj = 0;
5841 wxBitmap *arg1 = (wxBitmap *) 0 ;
5842 wxRect *arg2 = 0 ;
5843 SwigValueWrapper<wxBitmap > result;
5844 void *argp1 = 0 ;
5845 int res1 = 0 ;
5846 wxRect temp2 ;
5847 PyObject * obj0 = 0 ;
5848 PyObject * obj1 = 0 ;
5849 char * kwnames[] = {
5850 (char *) "self",(char *) "rect", NULL
5851 };
5852
5853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5855 if (!SWIG_IsOK(res1)) {
5856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5857 }
5858 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5859 {
5860 arg2 = &temp2;
5861 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5862 }
5863 {
5864 PyThreadState* __tstate = wxPyBeginAllowThreads();
5865 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
5866 wxPyEndAllowThreads(__tstate);
5867 if (PyErr_Occurred()) SWIG_fail;
5868 }
5869 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5870 return resultobj;
5871fail:
5872 return NULL;
5873}
5874
5875
5876SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5877 PyObject *resultobj = 0;
5878 wxBitmap *arg1 = (wxBitmap *) 0 ;
5879 wxString *arg2 = 0 ;
5880 wxBitmapType arg3 ;
5881 wxPalette *arg4 = (wxPalette *) NULL ;
5882 bool result;
5883 void *argp1 = 0 ;
5884 int res1 = 0 ;
5885 bool temp2 = false ;
5886 int val3 ;
5887 int ecode3 = 0 ;
5888 void *argp4 = 0 ;
5889 int res4 = 0 ;
5890 PyObject * obj0 = 0 ;
5891 PyObject * obj1 = 0 ;
5892 PyObject * obj2 = 0 ;
5893 PyObject * obj3 = 0 ;
5894 char * kwnames[] = {
5895 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
5896 };
5897
5898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
5899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5900 if (!SWIG_IsOK(res1)) {
5901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
5902 }
5903 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5904 {
5905 arg2 = wxString_in_helper(obj1);
5906 if (arg2 == NULL) SWIG_fail;
5907 temp2 = true;
5908 }
5909 ecode3 = SWIG_AsVal_int(obj2, &val3);
5910 if (!SWIG_IsOK(ecode3)) {
5911 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
5912 }
5913 arg3 = static_cast< wxBitmapType >(val3);
5914 if (obj3) {
5915 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
5916 if (!SWIG_IsOK(res4)) {
5917 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
d04418a7 5918 }
0085ce49
RD
5919 arg4 = reinterpret_cast< wxPalette * >(argp4);
5920 }
5921 {
5922 PyThreadState* __tstate = wxPyBeginAllowThreads();
5923 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
5924 wxPyEndAllowThreads(__tstate);
5925 if (PyErr_Occurred()) SWIG_fail;
5926 }
5927 {
5928 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5929 }
5930 {
5931 if (temp2)
5932 delete arg2;
5933 }
5934 return resultobj;
5935fail:
5936 {
5937 if (temp2)
5938 delete arg2;
5939 }
5940 return NULL;
5941}
5942
5943
5944SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5945 PyObject *resultobj = 0;
5946 wxBitmap *arg1 = (wxBitmap *) 0 ;
5947 wxString *arg2 = 0 ;
5948 wxBitmapType arg3 ;
5949 bool result;
5950 void *argp1 = 0 ;
5951 int res1 = 0 ;
5952 bool temp2 = false ;
5953 int val3 ;
5954 int ecode3 = 0 ;
5955 PyObject * obj0 = 0 ;
5956 PyObject * obj1 = 0 ;
5957 PyObject * obj2 = 0 ;
5958 char * kwnames[] = {
5959 (char *) "self",(char *) "name",(char *) "type", NULL
5960 };
5961
5962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5964 if (!SWIG_IsOK(res1)) {
5965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
5966 }
5967 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5968 {
5969 arg2 = wxString_in_helper(obj1);
5970 if (arg2 == NULL) SWIG_fail;
5971 temp2 = true;
5972 }
5973 ecode3 = SWIG_AsVal_int(obj2, &val3);
5974 if (!SWIG_IsOK(ecode3)) {
5975 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
5976 }
5977 arg3 = static_cast< wxBitmapType >(val3);
5978 {
5979 PyThreadState* __tstate = wxPyBeginAllowThreads();
5980 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
5981 wxPyEndAllowThreads(__tstate);
5982 if (PyErr_Occurred()) SWIG_fail;
5983 }
5984 {
5985 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5986 }
5987 {
5988 if (temp2)
5989 delete arg2;
5990 }
5991 return resultobj;
5992fail:
5993 {
5994 if (temp2)
5995 delete arg2;
5996 }
5997 return NULL;
d04418a7
RD
5998}
5999
6000
0085ce49
RD
6001SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6002 PyObject *resultobj = 0;
6003 wxBitmap *arg1 = (wxBitmap *) 0 ;
6004 wxPalette *result = 0 ;
6005 void *argp1 = 0 ;
6006 int res1 = 0 ;
6007 PyObject *swig_obj[1] ;
6008
6009 if (!args) SWIG_fail;
6010 swig_obj[0] = args;
6011 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6012 if (!SWIG_IsOK(res1)) {
6013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6014 }
6015 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6016 {
6017 PyThreadState* __tstate = wxPyBeginAllowThreads();
6018 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6019 wxPyEndAllowThreads(__tstate);
6020 if (PyErr_Occurred()) SWIG_fail;
6021 }
6022 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6023 return resultobj;
6024fail:
6025 return NULL;
6026}
6027
6028
6029SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6030 PyObject *resultobj = 0;
6031 wxBitmap *arg1 = (wxBitmap *) 0 ;
6032 wxIcon *arg2 = 0 ;
6033 bool result;
6034 void *argp1 = 0 ;
6035 int res1 = 0 ;
6036 void *argp2 = 0 ;
6037 int res2 = 0 ;
6038 PyObject * obj0 = 0 ;
6039 PyObject * obj1 = 0 ;
6040 char * kwnames[] = {
6041 (char *) "self",(char *) "icon", NULL
6042 };
6043
6044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6046 if (!SWIG_IsOK(res1)) {
6047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6048 }
6049 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6050 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6051 if (!SWIG_IsOK(res2)) {
6052 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6053 }
6054 if (!argp2) {
6055 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6056 }
6057 arg2 = reinterpret_cast< wxIcon * >(argp2);
6058 {
6059 PyThreadState* __tstate = wxPyBeginAllowThreads();
6060 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6061 wxPyEndAllowThreads(__tstate);
6062 if (PyErr_Occurred()) SWIG_fail;
6063 }
6064 {
6065 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6066 }
6067 return resultobj;
6068fail:
6069 return NULL;
6070}
6071
6072
6073SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6074 PyObject *resultobj = 0;
6075 wxBitmap *arg1 = (wxBitmap *) 0 ;
6076 int arg2 ;
6077 void *argp1 = 0 ;
6078 int res1 = 0 ;
6079 int val2 ;
6080 int ecode2 = 0 ;
6081 PyObject * obj0 = 0 ;
6082 PyObject * obj1 = 0 ;
6083 char * kwnames[] = {
6084 (char *) "self",(char *) "height", NULL
6085 };
6086
6087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6089 if (!SWIG_IsOK(res1)) {
6090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6091 }
6092 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6093 ecode2 = SWIG_AsVal_int(obj1, &val2);
6094 if (!SWIG_IsOK(ecode2)) {
6095 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6096 }
6097 arg2 = static_cast< int >(val2);
6098 {
6099 PyThreadState* __tstate = wxPyBeginAllowThreads();
6100 (arg1)->SetHeight(arg2);
6101 wxPyEndAllowThreads(__tstate);
6102 if (PyErr_Occurred()) SWIG_fail;
6103 }
6104 resultobj = SWIG_Py_Void();
6105 return resultobj;
6106fail:
6107 return NULL;
6108}
6109
6110
6111SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6112 PyObject *resultobj = 0;
6113 wxBitmap *arg1 = (wxBitmap *) 0 ;
6114 int arg2 ;
6115 void *argp1 = 0 ;
6116 int res1 = 0 ;
6117 int val2 ;
6118 int ecode2 = 0 ;
6119 PyObject * obj0 = 0 ;
6120 PyObject * obj1 = 0 ;
6121 char * kwnames[] = {
6122 (char *) "self",(char *) "width", NULL
6123 };
6124
6125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6127 if (!SWIG_IsOK(res1)) {
6128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6129 }
6130 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6131 ecode2 = SWIG_AsVal_int(obj1, &val2);
6132 if (!SWIG_IsOK(ecode2)) {
6133 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6134 }
6135 arg2 = static_cast< int >(val2);
6136 {
6137 PyThreadState* __tstate = wxPyBeginAllowThreads();
6138 (arg1)->SetWidth(arg2);
6139 wxPyEndAllowThreads(__tstate);
6140 if (PyErr_Occurred()) SWIG_fail;
6141 }
6142 resultobj = SWIG_Py_Void();
6143 return resultobj;
6144fail:
6145 return NULL;
6146}
6147
6148
6149SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6150 PyObject *resultobj = 0;
6151 wxBitmap *arg1 = (wxBitmap *) 0 ;
6152 int arg2 ;
6153 void *argp1 = 0 ;
6154 int res1 = 0 ;
6155 int val2 ;
6156 int ecode2 = 0 ;
6157 PyObject * obj0 = 0 ;
6158 PyObject * obj1 = 0 ;
6159 char * kwnames[] = {
6160 (char *) "self",(char *) "depth", NULL
6161 };
6162
6163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6165 if (!SWIG_IsOK(res1)) {
6166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6167 }
6168 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6169 ecode2 = SWIG_AsVal_int(obj1, &val2);
6170 if (!SWIG_IsOK(ecode2)) {
6171 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6172 }
6173 arg2 = static_cast< int >(val2);
6174 {
6175 PyThreadState* __tstate = wxPyBeginAllowThreads();
6176 (arg1)->SetDepth(arg2);
6177 wxPyEndAllowThreads(__tstate);
6178 if (PyErr_Occurred()) SWIG_fail;
6179 }
6180 resultobj = SWIG_Py_Void();
6181 return resultobj;
6182fail:
6183 return NULL;
6184}
6185
6186
6187SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6188 PyObject *resultobj = 0;
6189 wxBitmap *arg1 = (wxBitmap *) 0 ;
6190 wxSize *arg2 = 0 ;
6191 void *argp1 = 0 ;
6192 int res1 = 0 ;
6193 wxSize temp2 ;
6194 PyObject * obj0 = 0 ;
6195 PyObject * obj1 = 0 ;
6196 char * kwnames[] = {
6197 (char *) "self",(char *) "size", NULL
6198 };
6199
6200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6202 if (!SWIG_IsOK(res1)) {
6203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6204 }
6205 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6206 {
6207 arg2 = &temp2;
6208 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6209 }
6210 {
6211 PyThreadState* __tstate = wxPyBeginAllowThreads();
6212 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
6213 wxPyEndAllowThreads(__tstate);
6214 if (PyErr_Occurred()) SWIG_fail;
6215 }
6216 resultobj = SWIG_Py_Void();
6217 return resultobj;
6218fail:
6219 return NULL;
6220}
6221
6222
6223SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6224 PyObject *resultobj = 0;
6225 wxBitmap *arg1 = (wxBitmap *) 0 ;
6226 wxBitmap *arg2 = (wxBitmap *) 0 ;
6227 bool result;
6228 void *argp1 = 0 ;
6229 int res1 = 0 ;
6230 void *argp2 = 0 ;
6231 int res2 = 0 ;
6232 PyObject * obj0 = 0 ;
6233 PyObject * obj1 = 0 ;
6234 char * kwnames[] = {
6235 (char *) "self",(char *) "other", NULL
6236 };
6237
6238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6240 if (!SWIG_IsOK(res1)) {
6241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6242 }
6243 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6244 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6245 if (!SWIG_IsOK(res2)) {
6246 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6247 }
6248 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6249 {
6250 PyThreadState* __tstate = wxPyBeginAllowThreads();
6251 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
6252 wxPyEndAllowThreads(__tstate);
6253 if (PyErr_Occurred()) SWIG_fail;
6254 }
6255 {
6256 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6257 }
6258 return resultobj;
6259fail:
6260 return NULL;
6261}
6262
6263
6264SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6265 PyObject *resultobj = 0;
6266 wxBitmap *arg1 = (wxBitmap *) 0 ;
6267 wxBitmap *arg2 = (wxBitmap *) 0 ;
6268 bool result;
6269 void *argp1 = 0 ;
6270 int res1 = 0 ;
6271 void *argp2 = 0 ;
6272 int res2 = 0 ;
6273 PyObject * obj0 = 0 ;
6274 PyObject * obj1 = 0 ;
6275 char * kwnames[] = {
6276 (char *) "self",(char *) "other", NULL
6277 };
6278
6279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",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___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6283 }
6284 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6285 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6286 if (!SWIG_IsOK(res2)) {
6287 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6288 }
6289 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6290 {
6291 PyThreadState* __tstate = wxPyBeginAllowThreads();
6292 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6293 wxPyEndAllowThreads(__tstate);
6294 if (PyErr_Occurred()) SWIG_fail;
6295 }
6296 {
6297 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6298 }
6299 return resultobj;
6300fail:
6301 return NULL;
d14a1e28
RD
6302}
6303
6304
0085ce49
RD
6305SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6306 PyObject *obj;
6307 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6308 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6309 return SWIG_Py_Void();
b2df227b
RD
6310}
6311
0085ce49
RD
6312SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6313 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
6314}
6315
0085ce49
RD
6316SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6317 PyObject *resultobj = 0;
6318 wxBitmap *arg1 = 0 ;
6319 wxColour const &arg2_defvalue = wxNullColour ;
6320 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
6321 wxMask *result = 0 ;
6322 void *argp1 = 0 ;
6323 int res1 = 0 ;
6324 wxColour temp2 ;
6325 PyObject * obj0 = 0 ;
6326 PyObject * obj1 = 0 ;
6327 char * kwnames[] = {
6328 (char *) "bitmap",(char *) "colour", NULL
6329 };
6330
6331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
6332 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
6333 if (!SWIG_IsOK(res1)) {
6334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6335 }
6336 if (!argp1) {
6337 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6338 }
6339 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6340 if (obj1) {
d14a1e28 6341 {
0085ce49
RD
6342 arg2 = &temp2;
6343 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d14a1e28 6344 }
0085ce49
RD
6345 }
6346 {
6347 if (!wxPyCheckForApp()) SWIG_fail;
6348 PyThreadState* __tstate = wxPyBeginAllowThreads();
6349 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
6350 wxPyEndAllowThreads(__tstate);
6351 if (PyErr_Occurred()) SWIG_fail;
6352 }
6353 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
6354 return resultobj;
6355fail:
6356 return NULL;
d14a1e28
RD
6357}
6358
6359
0085ce49
RD
6360SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6361 PyObject *resultobj = 0;
6362 wxMask *arg1 = (wxMask *) 0 ;
6363 void *argp1 = 0 ;
6364 int res1 = 0 ;
6365 PyObject *swig_obj[1] ;
6366
6367 if (!args) SWIG_fail;
6368 swig_obj[0] = args;
6369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6370 if (!SWIG_IsOK(res1)) {
6371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
6372 }
6373 arg1 = reinterpret_cast< wxMask * >(argp1);
6374 {
6375 PyThreadState* __tstate = wxPyBeginAllowThreads();
6376 delete arg1;
d14a1e28 6377
0085ce49
RD
6378 wxPyEndAllowThreads(__tstate);
6379 if (PyErr_Occurred()) SWIG_fail;
6380 }
6381 resultobj = SWIG_Py_Void();
6382 return resultobj;
6383fail:
6384 return NULL;
6385}
6386
6387
6388SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6389 PyObject *obj;
6390 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6391 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
6392 return SWIG_Py_Void();
6393}
6394
6395SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6396 return SWIG_Python_InitShadowInstance(args);
6397}
6398
6399SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6400 PyObject *resultobj = 0;
6401 wxString *arg1 = 0 ;
6402 wxBitmapType arg2 ;
6403 int arg3 = (int) -1 ;
6404 int arg4 = (int) -1 ;
6405 wxIcon *result = 0 ;
6406 bool temp1 = false ;
6407 int val2 ;
6408 int ecode2 = 0 ;
6409 int val3 ;
6410 int ecode3 = 0 ;
6411 int val4 ;
6412 int ecode4 = 0 ;
6413 PyObject * obj0 = 0 ;
6414 PyObject * obj1 = 0 ;
6415 PyObject * obj2 = 0 ;
6416 PyObject * obj3 = 0 ;
6417 char * kwnames[] = {
6418 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
6419 };
6420
6421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6422 {
6423 arg1 = wxString_in_helper(obj0);
6424 if (arg1 == NULL) SWIG_fail;
6425 temp1 = true;
6426 }
6427 ecode2 = SWIG_AsVal_int(obj1, &val2);
6428 if (!SWIG_IsOK(ecode2)) {
6429 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
6430 }
6431 arg2 = static_cast< wxBitmapType >(val2);
6432 if (obj2) {
6433 ecode3 = SWIG_AsVal_int(obj2, &val3);
6434 if (!SWIG_IsOK(ecode3)) {
6435 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
6436 }
6437 arg3 = static_cast< int >(val3);
6438 }
6439 if (obj3) {
6440 ecode4 = SWIG_AsVal_int(obj3, &val4);
6441 if (!SWIG_IsOK(ecode4)) {
6442 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
6443 }
6444 arg4 = static_cast< int >(val4);
6445 }
6446 {
6447 if (!wxPyCheckForApp()) SWIG_fail;
6448 PyThreadState* __tstate = wxPyBeginAllowThreads();
6449 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
6450 wxPyEndAllowThreads(__tstate);
6451 if (PyErr_Occurred()) SWIG_fail;
6452 }
6453 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
6454 {
6455 if (temp1)
6456 delete arg1;
6457 }
6458 return resultobj;
6459fail:
6460 {
6461 if (temp1)
6462 delete arg1;
6463 }
6464 return NULL;
d14a1e28
RD
6465}
6466
6467
0085ce49
RD
6468SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6469 PyObject *resultobj = 0;
6470 wxIcon *arg1 = (wxIcon *) 0 ;
6471 void *argp1 = 0 ;
6472 int res1 = 0 ;
6473 PyObject *swig_obj[1] ;
6474
6475 if (!args) SWIG_fail;
6476 swig_obj[0] = args;
6477 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
6478 if (!SWIG_IsOK(res1)) {
6479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
6480 }
6481 arg1 = reinterpret_cast< wxIcon * >(argp1);
6482 {
6483 PyThreadState* __tstate = wxPyBeginAllowThreads();
6484 delete arg1;
d14a1e28 6485
0085ce49
RD
6486 wxPyEndAllowThreads(__tstate);
6487 if (PyErr_Occurred()) SWIG_fail;
6488 }
6489 resultobj = SWIG_Py_Void();
6490 return resultobj;
6491fail:
6492 return NULL;
d14a1e28
RD
6493}
6494
6495
0085ce49
RD
6496SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6497 PyObject *resultobj = 0;
6498 wxIcon *result = 0 ;
6499
6500 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
6501 {
6502 if (!wxPyCheckForApp()) SWIG_fail;
6503 PyThreadState* __tstate = wxPyBeginAllowThreads();
6504 result = (wxIcon *)new wxIcon();
6505 wxPyEndAllowThreads(__tstate);
6506 if (PyErr_Occurred()) SWIG_fail;
6507 }
6508 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6509 return resultobj;
6510fail:
6511 return NULL;
6512}
6513
6514
6515SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6516 PyObject *resultobj = 0;
6517 wxIconLocation *arg1 = 0 ;
6518 wxIcon *result = 0 ;
6519 void *argp1 = 0 ;
6520 int res1 = 0 ;
6521 PyObject * obj0 = 0 ;
6522 char * kwnames[] = {
6523 (char *) "loc", NULL
6524 };
6525
6526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
6527 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
6528 if (!SWIG_IsOK(res1)) {
6529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
6530 }
6531 if (!argp1) {
6532 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
6533 }
6534 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
6535 {
6536 if (!wxPyCheckForApp()) SWIG_fail;
6537 PyThreadState* __tstate = wxPyBeginAllowThreads();
6538 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
6539 wxPyEndAllowThreads(__tstate);
6540 if (PyErr_Occurred()) SWIG_fail;
6541 }
6542 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6543 return resultobj;
6544fail:
6545 return NULL;
6546}
6547
6548
6549SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6550 PyObject *resultobj = 0;
6551 wxBitmap *arg1 = 0 ;
6552 wxIcon *result = 0 ;
6553 void *argp1 = 0 ;
6554 int res1 = 0 ;
6555 PyObject * obj0 = 0 ;
6556 char * kwnames[] = {
6557 (char *) "bmp", NULL
6558 };
6559
6560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
6561 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
6562 if (!SWIG_IsOK(res1)) {
6563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6564 }
6565 if (!argp1) {
6566 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6567 }
6568 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6569 {
6570 if (!wxPyCheckForApp()) SWIG_fail;
6571 PyThreadState* __tstate = wxPyBeginAllowThreads();
6572 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
6573 wxPyEndAllowThreads(__tstate);
6574 if (PyErr_Occurred()) SWIG_fail;
6575 }
6576 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6577 return resultobj;
6578fail:
6579 return NULL;
d14a1e28
RD
6580}
6581
6582
0085ce49
RD
6583SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6584 PyObject *resultobj = 0;
6585 PyObject *arg1 = (PyObject *) 0 ;
6586 wxIcon *result = 0 ;
6587 PyObject * obj0 = 0 ;
6588 char * kwnames[] = {
6589 (char *) "listOfStrings", NULL
6590 };
6591
6592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
6593 arg1 = obj0;
6594 {
6595 if (!wxPyCheckForApp()) SWIG_fail;
6596 PyThreadState* __tstate = wxPyBeginAllowThreads();
6597 result = (wxIcon *)new_wxIcon(arg1);
6598 wxPyEndAllowThreads(__tstate);
6599 if (PyErr_Occurred()) SWIG_fail;
6600 }
6601 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6602 return resultobj;
6603fail:
6604 return NULL;
6605}
6606
6607
6608SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6609 PyObject *resultobj = 0;
6610 wxIcon *arg1 = (wxIcon *) 0 ;
6611 wxString *arg2 = 0 ;
6612 wxBitmapType arg3 ;
6613 bool result;
6614 void *argp1 = 0 ;
6615 int res1 = 0 ;
6616 bool temp2 = false ;
6617 int val3 ;
6618 int ecode3 = 0 ;
6619 PyObject * obj0 = 0 ;
6620 PyObject * obj1 = 0 ;
6621 PyObject * obj2 = 0 ;
6622 char * kwnames[] = {
6623 (char *) "self",(char *) "name",(char *) "type", NULL
6624 };
6625
6626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6628 if (!SWIG_IsOK(res1)) {
6629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
6630 }
6631 arg1 = reinterpret_cast< wxIcon * >(argp1);
6632 {
6633 arg2 = wxString_in_helper(obj1);
6634 if (arg2 == NULL) SWIG_fail;
6635 temp2 = true;
6636 }
6637 ecode3 = SWIG_AsVal_int(obj2, &val3);
6638 if (!SWIG_IsOK(ecode3)) {
6639 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6640 }
6641 arg3 = static_cast< wxBitmapType >(val3);
6642 {
6643 PyThreadState* __tstate = wxPyBeginAllowThreads();
6644 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6645 wxPyEndAllowThreads(__tstate);
6646 if (PyErr_Occurred()) SWIG_fail;
6647 }
6648 {
6649 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6650 }
6651 {
6652 if (temp2)
6653 delete arg2;
6654 }
6655 return resultobj;
6656fail:
6657 {
6658 if (temp2)
6659 delete arg2;
6660 }
6661 return NULL;
d14a1e28
RD
6662}
6663
6664
0085ce49
RD
6665SWIGINTERN PyObject *_wrap_Icon_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6666 PyObject *resultobj = 0;
6667 wxIcon *arg1 = (wxIcon *) 0 ;
6668 bool result;
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, 0 | 0 );
6676 if (!SWIG_IsOK(res1)) {
6677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_Ok" "', expected argument " "1"" of type '" "wxIcon *""'");
6678 }
6679 arg1 = reinterpret_cast< wxIcon * >(argp1);
6680 {
6681 PyThreadState* __tstate = wxPyBeginAllowThreads();
6682 result = (bool)(arg1)->Ok();
6683 wxPyEndAllowThreads(__tstate);
6684 if (PyErr_Occurred()) SWIG_fail;
6685 }
6686 {
6687 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6688 }
6689 return resultobj;
6690fail:
6691 return NULL;
d14a1e28
RD
6692}
6693
6694
0085ce49
RD
6695SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6696 PyObject *resultobj = 0;
6697 wxIcon *arg1 = (wxIcon *) 0 ;
6698 int result;
6699 void *argp1 = 0 ;
6700 int res1 = 0 ;
6701 PyObject *swig_obj[1] ;
6702
6703 if (!args) SWIG_fail;
6704 swig_obj[0] = args;
6705 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6706 if (!SWIG_IsOK(res1)) {
6707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
6708 }
6709 arg1 = reinterpret_cast< wxIcon * >(argp1);
6710 {
6711 PyThreadState* __tstate = wxPyBeginAllowThreads();
6712 result = (int)(arg1)->GetWidth();
6713 wxPyEndAllowThreads(__tstate);
6714 if (PyErr_Occurred()) SWIG_fail;
6715 }
6716 resultobj = SWIG_From_int(static_cast< int >(result));
6717 return resultobj;
6718fail:
6719 return NULL;
d3b6e4ff
RD
6720}
6721
6722
0085ce49
RD
6723SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6724 PyObject *resultobj = 0;
6725 wxIcon *arg1 = (wxIcon *) 0 ;
6726 int result;
6727 void *argp1 = 0 ;
6728 int res1 = 0 ;
6729 PyObject *swig_obj[1] ;
6730
6731 if (!args) SWIG_fail;
6732 swig_obj[0] = args;
6733 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6734 if (!SWIG_IsOK(res1)) {
6735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
6736 }
6737 arg1 = reinterpret_cast< wxIcon * >(argp1);
6738 {
6739 PyThreadState* __tstate = wxPyBeginAllowThreads();
6740 result = (int)(arg1)->GetHeight();
6741 wxPyEndAllowThreads(__tstate);
6742 if (PyErr_Occurred()) SWIG_fail;
6743 }
6744 resultobj = SWIG_From_int(static_cast< int >(result));
6745 return resultobj;
6746fail:
6747 return NULL;
d14a1e28
RD
6748}
6749
6750
0085ce49
RD
6751SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6752 PyObject *resultobj = 0;
6753 wxIcon *arg1 = (wxIcon *) 0 ;
6754 int result;
6755 void *argp1 = 0 ;
6756 int res1 = 0 ;
6757 PyObject *swig_obj[1] ;
6758
6759 if (!args) SWIG_fail;
6760 swig_obj[0] = args;
6761 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6762 if (!SWIG_IsOK(res1)) {
6763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
6764 }
6765 arg1 = reinterpret_cast< wxIcon * >(argp1);
6766 {
6767 PyThreadState* __tstate = wxPyBeginAllowThreads();
6768 result = (int)(arg1)->GetDepth();
6769 wxPyEndAllowThreads(__tstate);
6770 if (PyErr_Occurred()) SWIG_fail;
6771 }
6772 resultobj = SWIG_From_int(static_cast< int >(result));
6773 return resultobj;
6774fail:
6775 return NULL;
6776}
6777
6778
6779SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6780 PyObject *resultobj = 0;
6781 wxIcon *arg1 = (wxIcon *) 0 ;
6782 int arg2 ;
6783 void *argp1 = 0 ;
6784 int res1 = 0 ;
6785 int val2 ;
6786 int ecode2 = 0 ;
6787 PyObject * obj0 = 0 ;
6788 PyObject * obj1 = 0 ;
6789 char * kwnames[] = {
6790 (char *) "self",(char *) "w", NULL
6791 };
6792
6793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6795 if (!SWIG_IsOK(res1)) {
6796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
6797 }
6798 arg1 = reinterpret_cast< wxIcon * >(argp1);
6799 ecode2 = SWIG_AsVal_int(obj1, &val2);
6800 if (!SWIG_IsOK(ecode2)) {
6801 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
6802 }
6803 arg2 = static_cast< int >(val2);
6804 {
6805 PyThreadState* __tstate = wxPyBeginAllowThreads();
6806 (arg1)->SetWidth(arg2);
6807 wxPyEndAllowThreads(__tstate);
6808 if (PyErr_Occurred()) SWIG_fail;
6809 }
6810 resultobj = SWIG_Py_Void();
6811 return resultobj;
6812fail:
6813 return NULL;
6814}
6815
6816
6817SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6818 PyObject *resultobj = 0;
6819 wxIcon *arg1 = (wxIcon *) 0 ;
6820 int arg2 ;
6821 void *argp1 = 0 ;
6822 int res1 = 0 ;
6823 int val2 ;
6824 int ecode2 = 0 ;
6825 PyObject * obj0 = 0 ;
6826 PyObject * obj1 = 0 ;
6827 char * kwnames[] = {
6828 (char *) "self",(char *) "h", NULL
6829 };
6830
6831 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6832 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6833 if (!SWIG_IsOK(res1)) {
6834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
6835 }
6836 arg1 = reinterpret_cast< wxIcon * >(argp1);
6837 ecode2 = SWIG_AsVal_int(obj1, &val2);
6838 if (!SWIG_IsOK(ecode2)) {
6839 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
6840 }
6841 arg2 = static_cast< int >(val2);
6842 {
6843 PyThreadState* __tstate = wxPyBeginAllowThreads();
6844 (arg1)->SetHeight(arg2);
6845 wxPyEndAllowThreads(__tstate);
6846 if (PyErr_Occurred()) SWIG_fail;
6847 }
6848 resultobj = SWIG_Py_Void();
6849 return resultobj;
6850fail:
6851 return NULL;
6852}
6853
6854
6855SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6856 PyObject *resultobj = 0;
6857 wxIcon *arg1 = (wxIcon *) 0 ;
6858 int arg2 ;
6859 void *argp1 = 0 ;
6860 int res1 = 0 ;
6861 int val2 ;
6862 int ecode2 = 0 ;
6863 PyObject * obj0 = 0 ;
6864 PyObject * obj1 = 0 ;
6865 char * kwnames[] = {
6866 (char *) "self",(char *) "d", NULL
6867 };
6868
6869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6871 if (!SWIG_IsOK(res1)) {
6872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
6873 }
6874 arg1 = reinterpret_cast< wxIcon * >(argp1);
6875 ecode2 = SWIG_AsVal_int(obj1, &val2);
6876 if (!SWIG_IsOK(ecode2)) {
6877 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
6878 }
6879 arg2 = static_cast< int >(val2);
6880 {
6881 PyThreadState* __tstate = wxPyBeginAllowThreads();
6882 (arg1)->SetDepth(arg2);
6883 wxPyEndAllowThreads(__tstate);
6884 if (PyErr_Occurred()) SWIG_fail;
6885 }
6886 resultobj = SWIG_Py_Void();
6887 return resultobj;
6888fail:
6889 return NULL;
6890}
6891
6892
6893SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6894 PyObject *resultobj = 0;
6895 wxIcon *arg1 = (wxIcon *) 0 ;
6896 wxBitmap *arg2 = 0 ;
6897 void *argp1 = 0 ;
6898 int res1 = 0 ;
6899 void *argp2 = 0 ;
6900 int res2 = 0 ;
6901 PyObject * obj0 = 0 ;
6902 PyObject * obj1 = 0 ;
6903 char * kwnames[] = {
6904 (char *) "self",(char *) "bmp", NULL
6905 };
6906
6907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6909 if (!SWIG_IsOK(res1)) {
6910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
6911 }
6912 arg1 = reinterpret_cast< wxIcon * >(argp1);
6913 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
6914 if (!SWIG_IsOK(res2)) {
6915 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
6916 }
6917 if (!argp2) {
6918 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
6919 }
6920 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6921 {
6922 PyThreadState* __tstate = wxPyBeginAllowThreads();
6923 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
6924 wxPyEndAllowThreads(__tstate);
6925 if (PyErr_Occurred()) SWIG_fail;
6926 }
6927 resultobj = SWIG_Py_Void();
6928 return resultobj;
6929fail:
6930 return NULL;
d14a1e28
RD
6931}
6932
6933
0085ce49
RD
6934SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6935 PyObject *obj;
6936 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6937 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
6938 return SWIG_Py_Void();
d14a1e28
RD
6939}
6940
0085ce49
RD
6941SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6942 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
6943}
6944
0085ce49
RD
6945SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6946 PyObject *resultobj = 0;
6947 wxString *arg1 = (wxString *) &wxPyEmptyString ;
6948 int arg2 = (int) 0 ;
6949 wxIconLocation *result = 0 ;
6950 bool temp1 = false ;
6951 int val2 ;
6952 int ecode2 = 0 ;
6953 PyObject * obj0 = 0 ;
6954 PyObject * obj1 = 0 ;
6955 char * kwnames[] = {
6956 (char *) "filename",(char *) "num", NULL
6957 };
6958
6959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
6960 if (obj0) {
b2df227b 6961 {
0085ce49
RD
6962 arg1 = wxString_in_helper(obj0);
6963 if (arg1 == NULL) SWIG_fail;
6964 temp1 = true;
b2df227b 6965 }
0085ce49
RD
6966 }
6967 if (obj1) {
6968 ecode2 = SWIG_AsVal_int(obj1, &val2);
6969 if (!SWIG_IsOK(ecode2)) {
6970 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
6971 }
6972 arg2 = static_cast< int >(val2);
6973 }
6974 {
6975 PyThreadState* __tstate = wxPyBeginAllowThreads();
6976 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
6977 wxPyEndAllowThreads(__tstate);
6978 if (PyErr_Occurred()) SWIG_fail;
6979 }
6980 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
6981 {
6982 if (temp1)
6983 delete arg1;
6984 }
6985 return resultobj;
6986fail:
6987 {
6988 if (temp1)
6989 delete arg1;
6990 }
6991 return NULL;
b2df227b
RD
6992}
6993
6994
0085ce49
RD
6995SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6996 PyObject *resultobj = 0;
6997 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
6998 void *argp1 = 0 ;
6999 int res1 = 0 ;
7000 PyObject *swig_obj[1] ;
7001
7002 if (!args) SWIG_fail;
7003 swig_obj[0] = args;
7004 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
7005 if (!SWIG_IsOK(res1)) {
7006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7007 }
7008 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7009 {
7010 PyThreadState* __tstate = wxPyBeginAllowThreads();
7011 delete arg1;
4276dc52 7012
0085ce49
RD
7013 wxPyEndAllowThreads(__tstate);
7014 if (PyErr_Occurred()) SWIG_fail;
7015 }
7016 resultobj = SWIG_Py_Void();
7017 return resultobj;
7018fail:
7019 return NULL;
4276dc52
RD
7020}
7021
7022
0085ce49
RD
7023SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7024 PyObject *resultobj = 0;
7025 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7026 bool result;
7027 void *argp1 = 0 ;
7028 int res1 = 0 ;
7029 PyObject *swig_obj[1] ;
7030
7031 if (!args) SWIG_fail;
7032 swig_obj[0] = args;
7033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7034 if (!SWIG_IsOK(res1)) {
7035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
7036 }
7037 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7038 {
7039 PyThreadState* __tstate = wxPyBeginAllowThreads();
7040 result = (bool)((wxIconLocation const *)arg1)->IsOk();
7041 wxPyEndAllowThreads(__tstate);
7042 if (PyErr_Occurred()) SWIG_fail;
7043 }
7044 {
7045 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7046 }
7047 return resultobj;
7048fail:
7049 return NULL;
7050}
7051
7052
7053SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7054 PyObject *resultobj = 0;
7055 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7056 wxString *arg2 = 0 ;
7057 void *argp1 = 0 ;
7058 int res1 = 0 ;
7059 bool temp2 = false ;
7060 PyObject * obj0 = 0 ;
7061 PyObject * obj1 = 0 ;
7062 char * kwnames[] = {
7063 (char *) "self",(char *) "filename", NULL
7064 };
7065
7066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
7067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7068 if (!SWIG_IsOK(res1)) {
7069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7070 }
7071 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7072 {
7073 arg2 = wxString_in_helper(obj1);
7074 if (arg2 == NULL) SWIG_fail;
7075 temp2 = true;
7076 }
7077 {
7078 PyThreadState* __tstate = wxPyBeginAllowThreads();
7079 (arg1)->SetFileName((wxString const &)*arg2);
7080 wxPyEndAllowThreads(__tstate);
7081 if (PyErr_Occurred()) SWIG_fail;
7082 }
7083 resultobj = SWIG_Py_Void();
7084 {
7085 if (temp2)
7086 delete arg2;
7087 }
7088 return resultobj;
7089fail:
7090 {
7091 if (temp2)
7092 delete arg2;
7093 }
7094 return NULL;
4276dc52
RD
7095}
7096
7097
0085ce49
RD
7098SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7099 PyObject *resultobj = 0;
7100 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7101 wxString *result = 0 ;
7102 void *argp1 = 0 ;
7103 int res1 = 0 ;
7104 PyObject *swig_obj[1] ;
7105
7106 if (!args) SWIG_fail;
7107 swig_obj[0] = args;
7108 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7109 if (!SWIG_IsOK(res1)) {
7110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
7111 }
7112 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7113 {
7114 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 7115 {
0085ce49
RD
7116 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
7117 result = (wxString *) &_result_ref;
093d3ff1 7118 }
0085ce49
RD
7119 wxPyEndAllowThreads(__tstate);
7120 if (PyErr_Occurred()) SWIG_fail;
7121 }
7122 {
7123#if wxUSE_UNICODE
7124 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
7125#else
7126 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
7127#endif
7128 }
7129 return resultobj;
7130fail:
7131 return NULL;
7132}
7133
7134
7135SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7136 PyObject *resultobj = 0;
7137 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7138 int arg2 ;
7139 void *argp1 = 0 ;
7140 int res1 = 0 ;
7141 int val2 ;
7142 int ecode2 = 0 ;
7143 PyObject * obj0 = 0 ;
7144 PyObject * obj1 = 0 ;
7145 char * kwnames[] = {
7146 (char *) "self",(char *) "num", NULL
7147 };
7148
7149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
7150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7151 if (!SWIG_IsOK(res1)) {
7152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7153 }
7154 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7155 ecode2 = SWIG_AsVal_int(obj1, &val2);
7156 if (!SWIG_IsOK(ecode2)) {
7157 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
7158 }
7159 arg2 = static_cast< int >(val2);
7160 {
7161 PyThreadState* __tstate = wxPyBeginAllowThreads();
7162 wxIconLocation_SetIndex(arg1,arg2);
7163 wxPyEndAllowThreads(__tstate);
7164 if (PyErr_Occurred()) SWIG_fail;
7165 }
7166 resultobj = SWIG_Py_Void();
7167 return resultobj;
7168fail:
7169 return NULL;
d14a1e28
RD
7170}
7171
7172
0085ce49
RD
7173SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7174 PyObject *resultobj = 0;
7175 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7176 int result;
7177 void *argp1 = 0 ;
7178 int res1 = 0 ;
7179 PyObject *swig_obj[1] ;
7180
7181 if (!args) SWIG_fail;
7182 swig_obj[0] = args;
7183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7184 if (!SWIG_IsOK(res1)) {
7185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7186 }
7187 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7188 {
7189 PyThreadState* __tstate = wxPyBeginAllowThreads();
7190 result = (int)wxIconLocation_GetIndex(arg1);
7191 wxPyEndAllowThreads(__tstate);
7192 if (PyErr_Occurred()) SWIG_fail;
7193 }
7194 resultobj = SWIG_From_int(static_cast< int >(result));
7195 return resultobj;
7196fail:
7197 return NULL;
d14a1e28
RD
7198}
7199
7200
0085ce49
RD
7201SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7202 PyObject *obj;
7203 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7204 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
7205 return SWIG_Py_Void();
d14a1e28
RD
7206}
7207
0085ce49
RD
7208SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7209 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
7210}
7211
0085ce49
RD
7212SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7213 PyObject *resultobj = 0;
7214 wxIconBundle *result = 0 ;
7215
7216 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
7217 {
7218 PyThreadState* __tstate = wxPyBeginAllowThreads();
7219 result = (wxIconBundle *)new wxIconBundle();
7220 wxPyEndAllowThreads(__tstate);
7221 if (PyErr_Occurred()) SWIG_fail;
7222 }
7223 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
7224 return resultobj;
7225fail:
7226 return NULL;
7227}
7228
7229
7230SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7231 PyObject *resultobj = 0;
7232 wxString *arg1 = 0 ;
7233 long arg2 ;
7234 wxIconBundle *result = 0 ;
7235 bool temp1 = false ;
7236 long val2 ;
7237 int ecode2 = 0 ;
7238 PyObject * obj0 = 0 ;
7239 PyObject * obj1 = 0 ;
7240 char * kwnames[] = {
7241 (char *) "file",(char *) "type", NULL
7242 };
7243
7244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
7245 {
7246 arg1 = wxString_in_helper(obj0);
7247 if (arg1 == NULL) SWIG_fail;
7248 temp1 = true;
7249 }
7250 ecode2 = SWIG_AsVal_long(obj1, &val2);
7251 if (!SWIG_IsOK(ecode2)) {
7252 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
7253 }
7254 arg2 = static_cast< long >(val2);
7255 {
7256 PyThreadState* __tstate = wxPyBeginAllowThreads();
7257 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
7258 wxPyEndAllowThreads(__tstate);
7259 if (PyErr_Occurred()) SWIG_fail;
7260 }
7261 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
7262 {
7263 if (temp1)
7264 delete arg1;
7265 }
7266 return resultobj;
7267fail:
7268 {
7269 if (temp1)
7270 delete arg1;
7271 }
7272 return NULL;
d14a1e28
RD
7273}
7274
7275
0085ce49
RD
7276SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7277 PyObject *resultobj = 0;
7278 wxIcon *arg1 = 0 ;
7279 wxIconBundle *result = 0 ;
7280 void *argp1 = 0 ;
7281 int res1 = 0 ;
7282 PyObject * obj0 = 0 ;
7283 char * kwnames[] = {
7284 (char *) "icon", NULL
7285 };
7286
7287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
7288 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
7289 if (!SWIG_IsOK(res1)) {
7290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
7291 }
7292 if (!argp1) {
7293 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
7294 }
7295 arg1 = reinterpret_cast< wxIcon * >(argp1);
7296 {
7297 PyThreadState* __tstate = wxPyBeginAllowThreads();
7298 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
7299 wxPyEndAllowThreads(__tstate);
7300 if (PyErr_Occurred()) SWIG_fail;
7301 }
7302 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
7303 return resultobj;
7304fail:
7305 return NULL;
d14a1e28
RD
7306}
7307
7308
0085ce49
RD
7309SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7310 PyObject *resultobj = 0;
7311 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7312 void *argp1 = 0 ;
7313 int res1 = 0 ;
7314 PyObject *swig_obj[1] ;
7315
7316 if (!args) SWIG_fail;
7317 swig_obj[0] = args;
7318 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
7319 if (!SWIG_IsOK(res1)) {
7320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7321 }
7322 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7323 {
7324 PyThreadState* __tstate = wxPyBeginAllowThreads();
7325 delete arg1;
d14a1e28 7326
0085ce49
RD
7327 wxPyEndAllowThreads(__tstate);
7328 if (PyErr_Occurred()) SWIG_fail;
7329 }
7330 resultobj = SWIG_Py_Void();
7331 return resultobj;
7332fail:
7333 return NULL;
7334}
7335
7336
7337SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7338 PyObject *resultobj = 0;
7339 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7340 wxIcon *arg2 = 0 ;
7341 void *argp1 = 0 ;
7342 int res1 = 0 ;
7343 void *argp2 = 0 ;
7344 int res2 = 0 ;
7345 PyObject * obj0 = 0 ;
7346 PyObject * obj1 = 0 ;
7347 char * kwnames[] = {
7348 (char *) "self",(char *) "icon", NULL
7349 };
7350
7351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
7352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7353 if (!SWIG_IsOK(res1)) {
7354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7355 }
7356 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7357 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
7358 if (!SWIG_IsOK(res2)) {
7359 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
7360 }
7361 if (!argp2) {
7362 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
7363 }
7364 arg2 = reinterpret_cast< wxIcon * >(argp2);
7365 {
7366 PyThreadState* __tstate = wxPyBeginAllowThreads();
7367 (arg1)->AddIcon((wxIcon const &)*arg2);
7368 wxPyEndAllowThreads(__tstate);
7369 if (PyErr_Occurred()) SWIG_fail;
7370 }
7371 resultobj = SWIG_Py_Void();
7372 return resultobj;
7373fail:
7374 return NULL;
7375}
7376
7377
7378SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7379 PyObject *resultobj = 0;
7380 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7381 wxString *arg2 = 0 ;
7382 long arg3 ;
7383 void *argp1 = 0 ;
7384 int res1 = 0 ;
7385 bool temp2 = false ;
7386 long val3 ;
7387 int ecode3 = 0 ;
7388 PyObject * obj0 = 0 ;
7389 PyObject * obj1 = 0 ;
7390 PyObject * obj2 = 0 ;
7391 char * kwnames[] = {
7392 (char *) "self",(char *) "file",(char *) "type", NULL
7393 };
7394
7395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7397 if (!SWIG_IsOK(res1)) {
7398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7399 }
7400 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7401 {
7402 arg2 = wxString_in_helper(obj1);
7403 if (arg2 == NULL) SWIG_fail;
7404 temp2 = true;
7405 }
7406 ecode3 = SWIG_AsVal_long(obj2, &val3);
7407 if (!SWIG_IsOK(ecode3)) {
7408 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
7409 }
7410 arg3 = static_cast< long >(val3);
7411 {
7412 PyThreadState* __tstate = wxPyBeginAllowThreads();
7413 (arg1)->AddIcon((wxString const &)*arg2,arg3);
7414 wxPyEndAllowThreads(__tstate);
7415 if (PyErr_Occurred()) SWIG_fail;
7416 }
7417 resultobj = SWIG_Py_Void();
7418 {
7419 if (temp2)
7420 delete arg2;
7421 }
7422 return resultobj;
7423fail:
7424 {
7425 if (temp2)
7426 delete arg2;
7427 }
7428 return NULL;
7429}
7430
7431
7432SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7433 PyObject *resultobj = 0;
7434 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7435 wxSize *arg2 = 0 ;
7436 wxIcon *result = 0 ;
7437 void *argp1 = 0 ;
7438 int res1 = 0 ;
7439 wxSize temp2 ;
7440 PyObject * obj0 = 0 ;
7441 PyObject * obj1 = 0 ;
7442 char * kwnames[] = {
7443 (char *) "self",(char *) "size", NULL
7444 };
7445
7446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
7447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7448 if (!SWIG_IsOK(res1)) {
7449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
7450 }
7451 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7452 {
7453 arg2 = &temp2;
7454 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7455 }
7456 {
7457 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 7458 {
0085ce49
RD
7459 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
7460 result = (wxIcon *) &_result_ref;
d14a1e28 7461 }
0085ce49
RD
7462 wxPyEndAllowThreads(__tstate);
7463 if (PyErr_Occurred()) SWIG_fail;
7464 }
7465 {
7466 wxIcon* resultptr = new wxIcon(*result);
7467 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
7468 }
7469 return resultobj;
7470fail:
7471 return NULL;
7472}
7473
7474
7475SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7476 PyObject *obj;
7477 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7478 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
7479 return SWIG_Py_Void();
7480}
7481
7482SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7483 return SWIG_Python_InitShadowInstance(args);
7484}
7485
7486SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7487 PyObject *resultobj = 0;
7488 wxString *arg1 = 0 ;
7489 long arg2 ;
7490 int arg3 = (int) 0 ;
7491 int arg4 = (int) 0 ;
7492 wxCursor *result = 0 ;
7493 bool temp1 = false ;
7494 long val2 ;
7495 int ecode2 = 0 ;
7496 int val3 ;
7497 int ecode3 = 0 ;
7498 int val4 ;
7499 int ecode4 = 0 ;
7500 PyObject * obj0 = 0 ;
7501 PyObject * obj1 = 0 ;
7502 PyObject * obj2 = 0 ;
7503 PyObject * obj3 = 0 ;
7504 char * kwnames[] = {
7505 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
7506 };
7507
7508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7509 {
7510 arg1 = wxString_in_helper(obj0);
7511 if (arg1 == NULL) SWIG_fail;
7512 temp1 = true;
7513 }
7514 ecode2 = SWIG_AsVal_long(obj1, &val2);
7515 if (!SWIG_IsOK(ecode2)) {
7516 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
7517 }
7518 arg2 = static_cast< long >(val2);
7519 if (obj2) {
7520 ecode3 = SWIG_AsVal_int(obj2, &val3);
7521 if (!SWIG_IsOK(ecode3)) {
7522 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
7523 }
7524 arg3 = static_cast< int >(val3);
7525 }
7526 if (obj3) {
7527 ecode4 = SWIG_AsVal_int(obj3, &val4);
7528 if (!SWIG_IsOK(ecode4)) {
7529 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
7530 }
7531 arg4 = static_cast< int >(val4);
7532 }
7533 {
7534 if (!wxPyCheckForApp()) SWIG_fail;
7535 PyThreadState* __tstate = wxPyBeginAllowThreads();
7536 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
7537 wxPyEndAllowThreads(__tstate);
7538 if (PyErr_Occurred()) SWIG_fail;
7539 }
7540 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
7541 {
7542 if (temp1)
7543 delete arg1;
7544 }
7545 return resultobj;
7546fail:
7547 {
7548 if (temp1)
7549 delete arg1;
7550 }
7551 return NULL;
d14a1e28
RD
7552}
7553
7554
0085ce49
RD
7555SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7556 PyObject *resultobj = 0;
7557 wxCursor *arg1 = (wxCursor *) 0 ;
7558 void *argp1 = 0 ;
7559 int res1 = 0 ;
7560 PyObject *swig_obj[1] ;
7561
7562 if (!args) SWIG_fail;
7563 swig_obj[0] = args;
7564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
7565 if (!SWIG_IsOK(res1)) {
7566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
7567 }
7568 arg1 = reinterpret_cast< wxCursor * >(argp1);
7569 {
7570 PyThreadState* __tstate = wxPyBeginAllowThreads();
7571 delete arg1;
093d3ff1 7572
0085ce49
RD
7573 wxPyEndAllowThreads(__tstate);
7574 if (PyErr_Occurred()) SWIG_fail;
7575 }
7576 resultobj = SWIG_Py_Void();
7577 return resultobj;
7578fail:
7579 return NULL;
7580}
7581
7582
7583SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7584 PyObject *resultobj = 0;
7585 int arg1 ;
7586 wxCursor *result = 0 ;
7587 int val1 ;
7588 int ecode1 = 0 ;
7589 PyObject * obj0 = 0 ;
7590 char * kwnames[] = {
7591 (char *) "id", NULL
7592 };
7593
7594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
7595 ecode1 = SWIG_AsVal_int(obj0, &val1);
7596 if (!SWIG_IsOK(ecode1)) {
7597 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
7598 }
7599 arg1 = static_cast< int >(val1);
7600 {
7601 if (!wxPyCheckForApp()) SWIG_fail;
7602 PyThreadState* __tstate = wxPyBeginAllowThreads();
7603 result = (wxCursor *)new wxCursor(arg1);
7604 wxPyEndAllowThreads(__tstate);
7605 if (PyErr_Occurred()) SWIG_fail;
7606 }
7607 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
7608 return resultobj;
7609fail:
7610 return NULL;
7611}
7612
7613
7614SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7615 PyObject *resultobj = 0;
7616 wxImage *arg1 = 0 ;
7617 wxCursor *result = 0 ;
7618 void *argp1 = 0 ;
7619 int res1 = 0 ;
7620 PyObject * obj0 = 0 ;
7621 char * kwnames[] = {
7622 (char *) "image", NULL
7623 };
7624
7625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
7626 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
7627 if (!SWIG_IsOK(res1)) {
7628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
7629 }
7630 if (!argp1) {
7631 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
7632 }
7633 arg1 = reinterpret_cast< wxImage * >(argp1);
7634 {
7635 if (!wxPyCheckForApp()) SWIG_fail;
7636 PyThreadState* __tstate = wxPyBeginAllowThreads();
7637 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
7638 wxPyEndAllowThreads(__tstate);
7639 if (PyErr_Occurred()) SWIG_fail;
7640 }
7641 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
7642 return resultobj;
7643fail:
7644 return NULL;
093d3ff1
RD
7645}
7646
7647
0085ce49
RD
7648SWIGINTERN PyObject *_wrap_Cursor_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7649 PyObject *resultobj = 0;
7650 wxCursor *arg1 = (wxCursor *) 0 ;
7651 bool result;
7652 void *argp1 = 0 ;
7653 int res1 = 0 ;
7654 PyObject *swig_obj[1] ;
7655
7656 if (!args) SWIG_fail;
7657 swig_obj[0] = args;
7658 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
7659 if (!SWIG_IsOK(res1)) {
7660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_Ok" "', expected argument " "1"" of type '" "wxCursor *""'");
7661 }
7662 arg1 = reinterpret_cast< wxCursor * >(argp1);
7663 {
7664 PyThreadState* __tstate = wxPyBeginAllowThreads();
7665 result = (bool)(arg1)->Ok();
7666 wxPyEndAllowThreads(__tstate);
7667 if (PyErr_Occurred()) SWIG_fail;
7668 }
7669 {
7670 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7671 }
7672 return resultobj;
7673fail:
7674 return NULL;
7675}
7676
7677
7678SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7679 PyObject *obj;
7680 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7681 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
7682 return SWIG_Py_Void();
7683}
7684
7685SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7686 return SWIG_Python_InitShadowInstance(args);
7687}
7688
7689SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7690 PyObject *resultobj = 0;
7691 int arg1 = (int) 0 ;
7692 int arg2 = (int) 0 ;
7693 int arg3 = (int) 0 ;
7694 int arg4 = (int) 0 ;
7695 wxRegion *result = 0 ;
7696 int val1 ;
7697 int ecode1 = 0 ;
7698 int val2 ;
7699 int ecode2 = 0 ;
7700 int val3 ;
7701 int ecode3 = 0 ;
7702 int val4 ;
7703 int ecode4 = 0 ;
7704 PyObject * obj0 = 0 ;
7705 PyObject * obj1 = 0 ;
7706 PyObject * obj2 = 0 ;
7707 PyObject * obj3 = 0 ;
7708 char * kwnames[] = {
7709 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
7710 };
7711
7712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7713 if (obj0) {
7714 ecode1 = SWIG_AsVal_int(obj0, &val1);
7715 if (!SWIG_IsOK(ecode1)) {
7716 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
7717 }
7718 arg1 = static_cast< int >(val1);
7719 }
7720 if (obj1) {
7721 ecode2 = SWIG_AsVal_int(obj1, &val2);
7722 if (!SWIG_IsOK(ecode2)) {
7723 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
7724 }
7725 arg2 = static_cast< int >(val2);
7726 }
7727 if (obj2) {
7728 ecode3 = SWIG_AsVal_int(obj2, &val3);
7729 if (!SWIG_IsOK(ecode3)) {
7730 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
7731 }
7732 arg3 = static_cast< int >(val3);
7733 }
7734 if (obj3) {
7735 ecode4 = SWIG_AsVal_int(obj3, &val4);
7736 if (!SWIG_IsOK(ecode4)) {
7737 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
7738 }
7739 arg4 = static_cast< int >(val4);
7740 }
7741 {
7742 if (!wxPyCheckForApp()) SWIG_fail;
7743 PyThreadState* __tstate = wxPyBeginAllowThreads();
7744 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
7745 wxPyEndAllowThreads(__tstate);
7746 if (PyErr_Occurred()) SWIG_fail;
7747 }
7748 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
7749 return resultobj;
7750fail:
7751 return NULL;
7752}
7753
7754
7755SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7756 PyObject *resultobj = 0;
7757 wxBitmap *arg1 = 0 ;
7758 wxRegion *result = 0 ;
7759 void *argp1 = 0 ;
7760 int res1 = 0 ;
7761 PyObject * obj0 = 0 ;
7762 char * kwnames[] = {
7763 (char *) "bmp", NULL
7764 };
7765
7766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
7767 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
7768 if (!SWIG_IsOK(res1)) {
7769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
7770 }
7771 if (!argp1) {
7772 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
7773 }
7774 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7775 {
7776 if (!wxPyCheckForApp()) SWIG_fail;
7777 PyThreadState* __tstate = wxPyBeginAllowThreads();
7778 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
7779 wxPyEndAllowThreads(__tstate);
7780 if (PyErr_Occurred()) SWIG_fail;
7781 }
7782 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
7783 return resultobj;
7784fail:
7785 return NULL;
7786}
7787
7788
7789SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7790 PyObject *resultobj = 0;
7791 wxBitmap *arg1 = 0 ;
7792 wxColour *arg2 = 0 ;
7793 int arg3 = (int) 0 ;
7794 wxRegion *result = 0 ;
7795 void *argp1 = 0 ;
7796 int res1 = 0 ;
7797 wxColour temp2 ;
7798 int val3 ;
7799 int ecode3 = 0 ;
7800 PyObject * obj0 = 0 ;
7801 PyObject * obj1 = 0 ;
7802 PyObject * obj2 = 0 ;
7803 char * kwnames[] = {
7804 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
7805 };
7806
7807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7808 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
7809 if (!SWIG_IsOK(res1)) {
7810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
7811 }
7812 if (!argp1) {
7813 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
7814 }
7815 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7816 {
7817 arg2 = &temp2;
7818 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7819 }
7820 if (obj2) {
7821 ecode3 = SWIG_AsVal_int(obj2, &val3);
7822 if (!SWIG_IsOK(ecode3)) {
7823 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
7824 }
7825 arg3 = static_cast< int >(val3);
7826 }
7827 {
7828 if (!wxPyCheckForApp()) SWIG_fail;
7829 PyThreadState* __tstate = wxPyBeginAllowThreads();
7830 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
7831 wxPyEndAllowThreads(__tstate);
7832 if (PyErr_Occurred()) SWIG_fail;
7833 }
7834 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
7835 return resultobj;
7836fail:
7837 return NULL;
7838}
7839
7840
7841SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7842 PyObject *resultobj = 0;
7843 int arg1 ;
7844 wxPoint *arg2 = (wxPoint *) 0 ;
7845 int arg3 = (int) wxWINDING_RULE ;
7846 wxRegion *result = 0 ;
7847 int val3 ;
7848 int ecode3 = 0 ;
7849 PyObject * obj0 = 0 ;
7850 PyObject * obj1 = 0 ;
7851 char * kwnames[] = {
7852 (char *) "points",(char *) "fillStyle", NULL
7853 };
7854
7855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
7856 {
7857 arg2 = wxPoint_LIST_helper(obj0, &arg1);
7858 if (arg2 == NULL) SWIG_fail;
7859 }
7860 if (obj1) {
7861 ecode3 = SWIG_AsVal_int(obj1, &val3);
7862 if (!SWIG_IsOK(ecode3)) {
7863 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
7864 }
7865 arg3 = static_cast< int >(val3);
7866 }
7867 {
7868 if (!wxPyCheckForApp()) SWIG_fail;
7869 PyThreadState* __tstate = wxPyBeginAllowThreads();
7870 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
7871 wxPyEndAllowThreads(__tstate);
7872 if (PyErr_Occurred()) SWIG_fail;
7873 }
7874 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
7875 {
7876 if (arg2) delete [] arg2;
7877 }
7878 return resultobj;
7879fail:
7880 {
7881 if (arg2) delete [] arg2;
7882 }
7883 return NULL;
d14a1e28
RD
7884}
7885
7886
0085ce49
RD
7887SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7888 PyObject *resultobj = 0;
7889 wxRegion *arg1 = (wxRegion *) 0 ;
7890 void *argp1 = 0 ;
7891 int res1 = 0 ;
7892 PyObject *swig_obj[1] ;
7893
7894 if (!args) SWIG_fail;
7895 swig_obj[0] = args;
7896 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
7897 if (!SWIG_IsOK(res1)) {
7898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
7899 }
7900 arg1 = reinterpret_cast< wxRegion * >(argp1);
7901 {
7902 PyThreadState* __tstate = wxPyBeginAllowThreads();
7903 delete arg1;
d14a1e28 7904
0085ce49
RD
7905 wxPyEndAllowThreads(__tstate);
7906 if (PyErr_Occurred()) SWIG_fail;
7907 }
7908 resultobj = SWIG_Py_Void();
7909 return resultobj;
7910fail:
7911 return NULL;
d14a1e28
RD
7912}
7913
7914
0085ce49
RD
7915SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7916 PyObject *resultobj = 0;
7917 wxRegion *arg1 = (wxRegion *) 0 ;
7918 void *argp1 = 0 ;
7919 int res1 = 0 ;
7920 PyObject *swig_obj[1] ;
7921
7922 if (!args) SWIG_fail;
7923 swig_obj[0] = args;
7924 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
7925 if (!SWIG_IsOK(res1)) {
7926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
7927 }
7928 arg1 = reinterpret_cast< wxRegion * >(argp1);
7929 {
7930 PyThreadState* __tstate = wxPyBeginAllowThreads();
7931 (arg1)->Clear();
7932 wxPyEndAllowThreads(__tstate);
7933 if (PyErr_Occurred()) SWIG_fail;
7934 }
7935 resultobj = SWIG_Py_Void();
7936 return resultobj;
7937fail:
7938 return NULL;
7939}
7940
7941
7942SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7943 PyObject *resultobj = 0;
7944 wxRegion *arg1 = (wxRegion *) 0 ;
7945 int arg2 ;
7946 int arg3 ;
7947 bool result;
7948 void *argp1 = 0 ;
7949 int res1 = 0 ;
7950 int val2 ;
7951 int ecode2 = 0 ;
7952 int val3 ;
7953 int ecode3 = 0 ;
7954 PyObject * obj0 = 0 ;
7955 PyObject * obj1 = 0 ;
7956 PyObject * obj2 = 0 ;
7957 char * kwnames[] = {
7958 (char *) "self",(char *) "x",(char *) "y", NULL
7959 };
7960
7961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
7963 if (!SWIG_IsOK(res1)) {
7964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
7965 }
7966 arg1 = reinterpret_cast< wxRegion * >(argp1);
7967 ecode2 = SWIG_AsVal_int(obj1, &val2);
7968 if (!SWIG_IsOK(ecode2)) {
7969 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
7970 }
7971 arg2 = static_cast< int >(val2);
7972 ecode3 = SWIG_AsVal_int(obj2, &val3);
7973 if (!SWIG_IsOK(ecode3)) {
7974 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
7975 }
7976 arg3 = static_cast< int >(val3);
7977 {
7978 PyThreadState* __tstate = wxPyBeginAllowThreads();
7979 result = (bool)(arg1)->Offset(arg2,arg3);
7980 wxPyEndAllowThreads(__tstate);
7981 if (PyErr_Occurred()) SWIG_fail;
7982 }
7983 {
7984 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7985 }
7986 return resultobj;
7987fail:
7988 return NULL;
7989}
7990
7991
7992SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7993 PyObject *resultobj = 0;
7994 wxRegion *arg1 = (wxRegion *) 0 ;
7995 int arg2 ;
7996 int arg3 ;
7997 wxRegionContain result;
7998 void *argp1 = 0 ;
7999 int res1 = 0 ;
8000 int val2 ;
8001 int ecode2 = 0 ;
8002 int val3 ;
8003 int ecode3 = 0 ;
8004 PyObject * obj0 = 0 ;
8005 PyObject * obj1 = 0 ;
8006 PyObject * obj2 = 0 ;
8007 char * kwnames[] = {
8008 (char *) "self",(char *) "x",(char *) "y", NULL
8009 };
8010
8011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8013 if (!SWIG_IsOK(res1)) {
8014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
8015 }
8016 arg1 = reinterpret_cast< wxRegion * >(argp1);
8017 ecode2 = SWIG_AsVal_int(obj1, &val2);
8018 if (!SWIG_IsOK(ecode2)) {
8019 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
8020 }
8021 arg2 = static_cast< int >(val2);
8022 ecode3 = SWIG_AsVal_int(obj2, &val3);
8023 if (!SWIG_IsOK(ecode3)) {
8024 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
8025 }
8026 arg3 = static_cast< int >(val3);
8027 {
8028 PyThreadState* __tstate = wxPyBeginAllowThreads();
8029 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
8030 wxPyEndAllowThreads(__tstate);
8031 if (PyErr_Occurred()) SWIG_fail;
8032 }
8033 resultobj = SWIG_From_int(static_cast< int >(result));
8034 return resultobj;
8035fail:
8036 return NULL;
8037}
8038
8039
8040SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8041 PyObject *resultobj = 0;
8042 wxRegion *arg1 = (wxRegion *) 0 ;
8043 wxPoint *arg2 = 0 ;
8044 wxRegionContain result;
8045 void *argp1 = 0 ;
8046 int res1 = 0 ;
8047 wxPoint temp2 ;
8048 PyObject * obj0 = 0 ;
8049 PyObject * obj1 = 0 ;
8050 char * kwnames[] = {
8051 (char *) "self",(char *) "pt", NULL
8052 };
8053
8054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
8055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8056 if (!SWIG_IsOK(res1)) {
8057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
8058 }
8059 arg1 = reinterpret_cast< wxRegion * >(argp1);
8060 {
8061 arg2 = &temp2;
8062 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
8063 }
8064 {
8065 PyThreadState* __tstate = wxPyBeginAllowThreads();
8066 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
8067 wxPyEndAllowThreads(__tstate);
8068 if (PyErr_Occurred()) SWIG_fail;
8069 }
8070 resultobj = SWIG_From_int(static_cast< int >(result));
8071 return resultobj;
8072fail:
8073 return NULL;
8074}
8075
8076
8077SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8078 PyObject *resultobj = 0;
8079 wxRegion *arg1 = (wxRegion *) 0 ;
8080 wxRect *arg2 = 0 ;
8081 wxRegionContain result;
8082 void *argp1 = 0 ;
8083 int res1 = 0 ;
8084 wxRect temp2 ;
8085 PyObject * obj0 = 0 ;
8086 PyObject * obj1 = 0 ;
8087 char * kwnames[] = {
8088 (char *) "self",(char *) "rect", NULL
8089 };
8090
8091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
8092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8093 if (!SWIG_IsOK(res1)) {
8094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8095 }
8096 arg1 = reinterpret_cast< wxRegion * >(argp1);
8097 {
8098 arg2 = &temp2;
8099 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8100 }
8101 {
8102 PyThreadState* __tstate = wxPyBeginAllowThreads();
8103 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
8104 wxPyEndAllowThreads(__tstate);
8105 if (PyErr_Occurred()) SWIG_fail;
8106 }
8107 resultobj = SWIG_From_int(static_cast< int >(result));
8108 return resultobj;
8109fail:
8110 return NULL;
8111}
8112
8113
8114SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8115 PyObject *resultobj = 0;
8116 wxRegion *arg1 = (wxRegion *) 0 ;
8117 int arg2 ;
8118 int arg3 ;
8119 int arg4 ;
8120 int arg5 ;
8121 wxRegionContain result;
8122 void *argp1 = 0 ;
8123 int res1 = 0 ;
8124 int val2 ;
8125 int ecode2 = 0 ;
8126 int val3 ;
8127 int ecode3 = 0 ;
8128 int val4 ;
8129 int ecode4 = 0 ;
8130 int val5 ;
8131 int ecode5 = 0 ;
8132 PyObject * obj0 = 0 ;
8133 PyObject * obj1 = 0 ;
8134 PyObject * obj2 = 0 ;
8135 PyObject * obj3 = 0 ;
8136 PyObject * obj4 = 0 ;
8137 char * kwnames[] = {
8138 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
8139 };
8140
8141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8143 if (!SWIG_IsOK(res1)) {
8144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
8145 }
8146 arg1 = reinterpret_cast< wxRegion * >(argp1);
8147 ecode2 = SWIG_AsVal_int(obj1, &val2);
8148 if (!SWIG_IsOK(ecode2)) {
8149 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
8150 }
8151 arg2 = static_cast< int >(val2);
8152 ecode3 = SWIG_AsVal_int(obj2, &val3);
8153 if (!SWIG_IsOK(ecode3)) {
8154 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
8155 }
8156 arg3 = static_cast< int >(val3);
8157 ecode4 = SWIG_AsVal_int(obj3, &val4);
8158 if (!SWIG_IsOK(ecode4)) {
8159 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
8160 }
8161 arg4 = static_cast< int >(val4);
8162 ecode5 = SWIG_AsVal_int(obj4, &val5);
8163 if (!SWIG_IsOK(ecode5)) {
8164 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
8165 }
8166 arg5 = static_cast< int >(val5);
8167 {
8168 PyThreadState* __tstate = wxPyBeginAllowThreads();
8169 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
8170 wxPyEndAllowThreads(__tstate);
8171 if (PyErr_Occurred()) SWIG_fail;
8172 }
8173 resultobj = SWIG_From_int(static_cast< int >(result));
8174 return resultobj;
8175fail:
8176 return NULL;
d14a1e28
RD
8177}
8178
8179
0085ce49
RD
8180SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8181 PyObject *resultobj = 0;
8182 wxRegion *arg1 = (wxRegion *) 0 ;
8183 wxRect result;
8184 void *argp1 = 0 ;
8185 int res1 = 0 ;
8186 PyObject *swig_obj[1] ;
8187
8188 if (!args) SWIG_fail;
8189 swig_obj[0] = args;
8190 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8191 if (!SWIG_IsOK(res1)) {
8192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
8193 }
8194 arg1 = reinterpret_cast< wxRegion * >(argp1);
8195 {
8196 PyThreadState* __tstate = wxPyBeginAllowThreads();
8197 result = (arg1)->GetBox();
8198 wxPyEndAllowThreads(__tstate);
8199 if (PyErr_Occurred()) SWIG_fail;
8200 }
8201 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
8202 return resultobj;
8203fail:
8204 return NULL;
8205}
8206
8207
8208SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8209 PyObject *resultobj = 0;
8210 wxRegion *arg1 = (wxRegion *) 0 ;
8211 int arg2 ;
8212 int arg3 ;
8213 int arg4 ;
8214 int arg5 ;
8215 bool result;
8216 void *argp1 = 0 ;
8217 int res1 = 0 ;
8218 int val2 ;
8219 int ecode2 = 0 ;
8220 int val3 ;
8221 int ecode3 = 0 ;
8222 int val4 ;
8223 int ecode4 = 0 ;
8224 int val5 ;
8225 int ecode5 = 0 ;
8226 PyObject * obj0 = 0 ;
8227 PyObject * obj1 = 0 ;
8228 PyObject * obj2 = 0 ;
8229 PyObject * obj3 = 0 ;
8230 PyObject * obj4 = 0 ;
8231 char * kwnames[] = {
8232 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8233 };
8234
8235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8237 if (!SWIG_IsOK(res1)) {
8238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
8239 }
8240 arg1 = reinterpret_cast< wxRegion * >(argp1);
8241 ecode2 = SWIG_AsVal_int(obj1, &val2);
8242 if (!SWIG_IsOK(ecode2)) {
8243 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
8244 }
8245 arg2 = static_cast< int >(val2);
8246 ecode3 = SWIG_AsVal_int(obj2, &val3);
8247 if (!SWIG_IsOK(ecode3)) {
8248 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
8249 }
8250 arg3 = static_cast< int >(val3);
8251 ecode4 = SWIG_AsVal_int(obj3, &val4);
8252 if (!SWIG_IsOK(ecode4)) {
8253 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
8254 }
8255 arg4 = static_cast< int >(val4);
8256 ecode5 = SWIG_AsVal_int(obj4, &val5);
8257 if (!SWIG_IsOK(ecode5)) {
8258 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
8259 }
8260 arg5 = static_cast< int >(val5);
8261 {
8262 PyThreadState* __tstate = wxPyBeginAllowThreads();
8263 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
8264 wxPyEndAllowThreads(__tstate);
8265 if (PyErr_Occurred()) SWIG_fail;
8266 }
8267 {
8268 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8269 }
8270 return resultobj;
8271fail:
8272 return NULL;
8273}
8274
8275
8276SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8277 PyObject *resultobj = 0;
8278 wxRegion *arg1 = (wxRegion *) 0 ;
8279 wxRect *arg2 = 0 ;
8280 bool result;
8281 void *argp1 = 0 ;
8282 int res1 = 0 ;
8283 wxRect temp2 ;
8284 PyObject * obj0 = 0 ;
8285 PyObject * obj1 = 0 ;
8286 char * kwnames[] = {
8287 (char *) "self",(char *) "rect", NULL
8288 };
8289
8290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
8291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8292 if (!SWIG_IsOK(res1)) {
8293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8294 }
8295 arg1 = reinterpret_cast< wxRegion * >(argp1);
8296 {
8297 arg2 = &temp2;
8298 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8299 }
8300 {
8301 PyThreadState* __tstate = wxPyBeginAllowThreads();
8302 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
8303 wxPyEndAllowThreads(__tstate);
8304 if (PyErr_Occurred()) SWIG_fail;
8305 }
8306 {
8307 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8308 }
8309 return resultobj;
8310fail:
8311 return NULL;
8312}
8313
8314
8315SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8316 PyObject *resultobj = 0;
8317 wxRegion *arg1 = (wxRegion *) 0 ;
8318 wxRegion *arg2 = 0 ;
8319 bool result;
8320 void *argp1 = 0 ;
8321 int res1 = 0 ;
8322 void *argp2 = 0 ;
8323 int res2 = 0 ;
8324 PyObject * obj0 = 0 ;
8325 PyObject * obj1 = 0 ;
8326 char * kwnames[] = {
8327 (char *) "self",(char *) "region", NULL
8328 };
8329
8330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
8331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8332 if (!SWIG_IsOK(res1)) {
8333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8334 }
8335 arg1 = reinterpret_cast< wxRegion * >(argp1);
8336 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8337 if (!SWIG_IsOK(res2)) {
8338 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8339 }
8340 if (!argp2) {
8341 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8342 }
8343 arg2 = reinterpret_cast< wxRegion * >(argp2);
8344 {
8345 PyThreadState* __tstate = wxPyBeginAllowThreads();
8346 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
8347 wxPyEndAllowThreads(__tstate);
8348 if (PyErr_Occurred()) SWIG_fail;
8349 }
8350 {
8351 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8352 }
8353 return resultobj;
8354fail:
8355 return NULL;
d14a1e28
RD
8356}
8357
8358
0085ce49
RD
8359SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8360 PyObject *resultobj = 0;
8361 wxRegion *arg1 = (wxRegion *) 0 ;
8362 bool result;
8363 void *argp1 = 0 ;
8364 int res1 = 0 ;
8365 PyObject *swig_obj[1] ;
8366
8367 if (!args) SWIG_fail;
8368 swig_obj[0] = args;
8369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8370 if (!SWIG_IsOK(res1)) {
8371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
8372 }
8373 arg1 = reinterpret_cast< wxRegion * >(argp1);
8374 {
8375 PyThreadState* __tstate = wxPyBeginAllowThreads();
8376 result = (bool)(arg1)->IsEmpty();
8377 wxPyEndAllowThreads(__tstate);
8378 if (PyErr_Occurred()) SWIG_fail;
8379 }
8380 {
8381 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8382 }
8383 return resultobj;
8384fail:
8385 return NULL;
8386}
8387
8388
8389SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8390 PyObject *resultobj = 0;
8391 wxRegion *arg1 = (wxRegion *) 0 ;
8392 int arg2 ;
8393 int arg3 ;
8394 int arg4 ;
8395 int arg5 ;
8396 bool result;
8397 void *argp1 = 0 ;
8398 int res1 = 0 ;
8399 int val2 ;
8400 int ecode2 = 0 ;
8401 int val3 ;
8402 int ecode3 = 0 ;
8403 int val4 ;
8404 int ecode4 = 0 ;
8405 int val5 ;
8406 int ecode5 = 0 ;
8407 PyObject * obj0 = 0 ;
8408 PyObject * obj1 = 0 ;
8409 PyObject * obj2 = 0 ;
8410 PyObject * obj3 = 0 ;
8411 PyObject * obj4 = 0 ;
8412 char * kwnames[] = {
8413 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8414 };
8415
8416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8418 if (!SWIG_IsOK(res1)) {
8419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
8420 }
8421 arg1 = reinterpret_cast< wxRegion * >(argp1);
8422 ecode2 = SWIG_AsVal_int(obj1, &val2);
8423 if (!SWIG_IsOK(ecode2)) {
8424 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
8425 }
8426 arg2 = static_cast< int >(val2);
8427 ecode3 = SWIG_AsVal_int(obj2, &val3);
8428 if (!SWIG_IsOK(ecode3)) {
8429 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
8430 }
8431 arg3 = static_cast< int >(val3);
8432 ecode4 = SWIG_AsVal_int(obj3, &val4);
8433 if (!SWIG_IsOK(ecode4)) {
8434 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
8435 }
8436 arg4 = static_cast< int >(val4);
8437 ecode5 = SWIG_AsVal_int(obj4, &val5);
8438 if (!SWIG_IsOK(ecode5)) {
8439 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
8440 }
8441 arg5 = static_cast< int >(val5);
8442 {
8443 PyThreadState* __tstate = wxPyBeginAllowThreads();
8444 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
8445 wxPyEndAllowThreads(__tstate);
8446 if (PyErr_Occurred()) SWIG_fail;
8447 }
8448 {
8449 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8450 }
8451 return resultobj;
8452fail:
8453 return NULL;
8454}
8455
8456
8457SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8458 PyObject *resultobj = 0;
8459 wxRegion *arg1 = (wxRegion *) 0 ;
8460 wxRect *arg2 = 0 ;
8461 bool result;
8462 void *argp1 = 0 ;
8463 int res1 = 0 ;
8464 wxRect temp2 ;
8465 PyObject * obj0 = 0 ;
8466 PyObject * obj1 = 0 ;
8467 char * kwnames[] = {
8468 (char *) "self",(char *) "rect", NULL
8469 };
8470
8471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
8472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8473 if (!SWIG_IsOK(res1)) {
8474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8475 }
8476 arg1 = reinterpret_cast< wxRegion * >(argp1);
8477 {
8478 arg2 = &temp2;
8479 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8480 }
8481 {
8482 PyThreadState* __tstate = wxPyBeginAllowThreads();
8483 result = (bool)(arg1)->Union((wxRect const &)*arg2);
8484 wxPyEndAllowThreads(__tstate);
8485 if (PyErr_Occurred()) SWIG_fail;
8486 }
8487 {
8488 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8489 }
8490 return resultobj;
8491fail:
8492 return NULL;
8493}
8494
8495
8496SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8497 PyObject *resultobj = 0;
8498 wxRegion *arg1 = (wxRegion *) 0 ;
8499 wxRegion *arg2 = 0 ;
8500 bool result;
8501 void *argp1 = 0 ;
8502 int res1 = 0 ;
8503 void *argp2 = 0 ;
8504 int res2 = 0 ;
8505 PyObject * obj0 = 0 ;
8506 PyObject * obj1 = 0 ;
8507 char * kwnames[] = {
8508 (char *) "self",(char *) "region", NULL
8509 };
8510
8511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
8512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8513 if (!SWIG_IsOK(res1)) {
8514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8515 }
8516 arg1 = reinterpret_cast< wxRegion * >(argp1);
8517 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8518 if (!SWIG_IsOK(res2)) {
8519 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8520 }
8521 if (!argp2) {
8522 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8523 }
8524 arg2 = reinterpret_cast< wxRegion * >(argp2);
8525 {
8526 PyThreadState* __tstate = wxPyBeginAllowThreads();
8527 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
8528 wxPyEndAllowThreads(__tstate);
8529 if (PyErr_Occurred()) SWIG_fail;
8530 }
8531 {
8532 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8533 }
8534 return resultobj;
8535fail:
8536 return NULL;
8537}
8538
8539
8540SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8541 PyObject *resultobj = 0;
8542 wxRegion *arg1 = (wxRegion *) 0 ;
8543 int arg2 ;
8544 int arg3 ;
8545 int arg4 ;
8546 int arg5 ;
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 int val4 ;
8555 int ecode4 = 0 ;
8556 int val5 ;
8557 int ecode5 = 0 ;
8558 PyObject * obj0 = 0 ;
8559 PyObject * obj1 = 0 ;
8560 PyObject * obj2 = 0 ;
8561 PyObject * obj3 = 0 ;
8562 PyObject * obj4 = 0 ;
8563 char * kwnames[] = {
8564 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8565 };
8566
8567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8569 if (!SWIG_IsOK(res1)) {
8570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
8571 }
8572 arg1 = reinterpret_cast< wxRegion * >(argp1);
8573 ecode2 = SWIG_AsVal_int(obj1, &val2);
8574 if (!SWIG_IsOK(ecode2)) {
8575 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
8576 }
8577 arg2 = static_cast< int >(val2);
8578 ecode3 = SWIG_AsVal_int(obj2, &val3);
8579 if (!SWIG_IsOK(ecode3)) {
8580 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
8581 }
8582 arg3 = static_cast< int >(val3);
8583 ecode4 = SWIG_AsVal_int(obj3, &val4);
8584 if (!SWIG_IsOK(ecode4)) {
8585 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
8586 }
8587 arg4 = static_cast< int >(val4);
8588 ecode5 = SWIG_AsVal_int(obj4, &val5);
8589 if (!SWIG_IsOK(ecode5)) {
8590 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
8591 }
8592 arg5 = static_cast< int >(val5);
8593 {
8594 PyThreadState* __tstate = wxPyBeginAllowThreads();
8595 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
8596 wxPyEndAllowThreads(__tstate);
8597 if (PyErr_Occurred()) SWIG_fail;
8598 }
8599 {
8600 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8601 }
8602 return resultobj;
8603fail:
8604 return NULL;
8605}
8606
8607
8608SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8609 PyObject *resultobj = 0;
8610 wxRegion *arg1 = (wxRegion *) 0 ;
8611 wxRect *arg2 = 0 ;
8612 bool result;
8613 void *argp1 = 0 ;
8614 int res1 = 0 ;
8615 wxRect temp2 ;
8616 PyObject * obj0 = 0 ;
8617 PyObject * obj1 = 0 ;
8618 char * kwnames[] = {
8619 (char *) "self",(char *) "rect", NULL
8620 };
8621
8622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
8623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8624 if (!SWIG_IsOK(res1)) {
8625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8626 }
8627 arg1 = reinterpret_cast< wxRegion * >(argp1);
8628 {
8629 arg2 = &temp2;
8630 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8631 }
8632 {
8633 PyThreadState* __tstate = wxPyBeginAllowThreads();
8634 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
8635 wxPyEndAllowThreads(__tstate);
8636 if (PyErr_Occurred()) SWIG_fail;
8637 }
8638 {
8639 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8640 }
8641 return resultobj;
8642fail:
8643 return NULL;
8644}
8645
8646
8647SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8648 PyObject *resultobj = 0;
8649 wxRegion *arg1 = (wxRegion *) 0 ;
8650 wxRegion *arg2 = 0 ;
8651 bool result;
8652 void *argp1 = 0 ;
8653 int res1 = 0 ;
8654 void *argp2 = 0 ;
8655 int res2 = 0 ;
8656 PyObject * obj0 = 0 ;
8657 PyObject * obj1 = 0 ;
8658 char * kwnames[] = {
8659 (char *) "self",(char *) "region", NULL
8660 };
8661
8662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
8663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8664 if (!SWIG_IsOK(res1)) {
8665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8666 }
8667 arg1 = reinterpret_cast< wxRegion * >(argp1);
8668 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8669 if (!SWIG_IsOK(res2)) {
8670 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8671 }
8672 if (!argp2) {
8673 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8674 }
8675 arg2 = reinterpret_cast< wxRegion * >(argp2);
8676 {
8677 PyThreadState* __tstate = wxPyBeginAllowThreads();
8678 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
8679 wxPyEndAllowThreads(__tstate);
8680 if (PyErr_Occurred()) SWIG_fail;
8681 }
8682 {
8683 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8684 }
8685 return resultobj;
8686fail:
8687 return NULL;
8688}
8689
8690
8691SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8692 PyObject *resultobj = 0;
8693 wxRegion *arg1 = (wxRegion *) 0 ;
8694 int arg2 ;
8695 int arg3 ;
8696 int arg4 ;
8697 int arg5 ;
8698 bool result;
8699 void *argp1 = 0 ;
8700 int res1 = 0 ;
8701 int val2 ;
8702 int ecode2 = 0 ;
8703 int val3 ;
8704 int ecode3 = 0 ;
8705 int val4 ;
8706 int ecode4 = 0 ;
8707 int val5 ;
8708 int ecode5 = 0 ;
8709 PyObject * obj0 = 0 ;
8710 PyObject * obj1 = 0 ;
8711 PyObject * obj2 = 0 ;
8712 PyObject * obj3 = 0 ;
8713 PyObject * obj4 = 0 ;
8714 char * kwnames[] = {
8715 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8716 };
8717
8718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8720 if (!SWIG_IsOK(res1)) {
8721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
8722 }
8723 arg1 = reinterpret_cast< wxRegion * >(argp1);
8724 ecode2 = SWIG_AsVal_int(obj1, &val2);
8725 if (!SWIG_IsOK(ecode2)) {
8726 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
8727 }
8728 arg2 = static_cast< int >(val2);
8729 ecode3 = SWIG_AsVal_int(obj2, &val3);
8730 if (!SWIG_IsOK(ecode3)) {
8731 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
8732 }
8733 arg3 = static_cast< int >(val3);
8734 ecode4 = SWIG_AsVal_int(obj3, &val4);
8735 if (!SWIG_IsOK(ecode4)) {
8736 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
8737 }
8738 arg4 = static_cast< int >(val4);
8739 ecode5 = SWIG_AsVal_int(obj4, &val5);
8740 if (!SWIG_IsOK(ecode5)) {
8741 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
8742 }
8743 arg5 = static_cast< int >(val5);
8744 {
8745 PyThreadState* __tstate = wxPyBeginAllowThreads();
8746 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
8747 wxPyEndAllowThreads(__tstate);
8748 if (PyErr_Occurred()) SWIG_fail;
8749 }
8750 {
8751 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8752 }
8753 return resultobj;
8754fail:
8755 return NULL;
8756}
8757
8758
8759SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8760 PyObject *resultobj = 0;
8761 wxRegion *arg1 = (wxRegion *) 0 ;
8762 wxRect *arg2 = 0 ;
8763 bool result;
8764 void *argp1 = 0 ;
8765 int res1 = 0 ;
8766 wxRect temp2 ;
8767 PyObject * obj0 = 0 ;
8768 PyObject * obj1 = 0 ;
8769 char * kwnames[] = {
8770 (char *) "self",(char *) "rect", NULL
8771 };
8772
8773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
8774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8775 if (!SWIG_IsOK(res1)) {
8776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8777 }
8778 arg1 = reinterpret_cast< wxRegion * >(argp1);
8779 {
8780 arg2 = &temp2;
8781 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8782 }
8783 {
8784 PyThreadState* __tstate = wxPyBeginAllowThreads();
8785 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
8786 wxPyEndAllowThreads(__tstate);
8787 if (PyErr_Occurred()) SWIG_fail;
8788 }
8789 {
8790 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8791 }
8792 return resultobj;
8793fail:
8794 return NULL;
8795}
8796
8797
8798SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8799 PyObject *resultobj = 0;
8800 wxRegion *arg1 = (wxRegion *) 0 ;
8801 wxRegion *arg2 = 0 ;
8802 bool result;
8803 void *argp1 = 0 ;
8804 int res1 = 0 ;
8805 void *argp2 = 0 ;
8806 int res2 = 0 ;
8807 PyObject * obj0 = 0 ;
8808 PyObject * obj1 = 0 ;
8809 char * kwnames[] = {
8810 (char *) "self",(char *) "region", NULL
8811 };
8812
8813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
8814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8815 if (!SWIG_IsOK(res1)) {
8816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8817 }
8818 arg1 = reinterpret_cast< wxRegion * >(argp1);
8819 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8820 if (!SWIG_IsOK(res2)) {
8821 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8822 }
8823 if (!argp2) {
8824 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8825 }
8826 arg2 = reinterpret_cast< wxRegion * >(argp2);
8827 {
8828 PyThreadState* __tstate = wxPyBeginAllowThreads();
8829 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
8830 wxPyEndAllowThreads(__tstate);
8831 if (PyErr_Occurred()) SWIG_fail;
8832 }
8833 {
8834 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8835 }
8836 return resultobj;
8837fail:
8838 return NULL;
d14a1e28
RD
8839}
8840
8841
0085ce49
RD
8842SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8843 PyObject *resultobj = 0;
8844 wxRegion *arg1 = (wxRegion *) 0 ;
8845 SwigValueWrapper<wxBitmap > result;
8846 void *argp1 = 0 ;
8847 int res1 = 0 ;
8848 PyObject *swig_obj[1] ;
8849
8850 if (!args) SWIG_fail;
8851 swig_obj[0] = args;
8852 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8853 if (!SWIG_IsOK(res1)) {
8854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
8855 }
8856 arg1 = reinterpret_cast< wxRegion * >(argp1);
8857 {
8858 PyThreadState* __tstate = wxPyBeginAllowThreads();
8859 result = (arg1)->ConvertToBitmap();
8860 wxPyEndAllowThreads(__tstate);
8861 if (PyErr_Occurred()) SWIG_fail;
8862 }
8863 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8864 return resultobj;
8865fail:
8866 return NULL;
8867}
8868
8869
8870SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8871 PyObject *resultobj = 0;
8872 wxRegion *arg1 = (wxRegion *) 0 ;
8873 wxBitmap *arg2 = 0 ;
8874 bool result;
8875 void *argp1 = 0 ;
8876 int res1 = 0 ;
8877 void *argp2 = 0 ;
8878 int res2 = 0 ;
8879 PyObject * obj0 = 0 ;
8880 PyObject * obj1 = 0 ;
8881 char * kwnames[] = {
8882 (char *) "self",(char *) "bmp", NULL
8883 };
8884
8885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8887 if (!SWIG_IsOK(res1)) {
8888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
8889 }
8890 arg1 = reinterpret_cast< wxRegion * >(argp1);
8891 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8892 if (!SWIG_IsOK(res2)) {
8893 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8894 }
8895 if (!argp2) {
8896 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8897 }
8898 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8899 {
8900 PyThreadState* __tstate = wxPyBeginAllowThreads();
8901 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
8902 wxPyEndAllowThreads(__tstate);
8903 if (PyErr_Occurred()) SWIG_fail;
8904 }
8905 {
8906 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8907 }
8908 return resultobj;
8909fail:
8910 return NULL;
8911}
8912
8913
8914SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8915 PyObject *resultobj = 0;
8916 wxRegion *arg1 = (wxRegion *) 0 ;
8917 wxBitmap *arg2 = 0 ;
8918 wxColour *arg3 = 0 ;
8919 int arg4 = (int) 0 ;
8920 bool result;
8921 void *argp1 = 0 ;
8922 int res1 = 0 ;
8923 void *argp2 = 0 ;
8924 int res2 = 0 ;
8925 wxColour temp3 ;
8926 int val4 ;
8927 int ecode4 = 0 ;
8928 PyObject * obj0 = 0 ;
8929 PyObject * obj1 = 0 ;
8930 PyObject * obj2 = 0 ;
8931 PyObject * obj3 = 0 ;
8932 char * kwnames[] = {
8933 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
8934 };
8935
8936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8938 if (!SWIG_IsOK(res1)) {
8939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
8940 }
8941 arg1 = reinterpret_cast< wxRegion * >(argp1);
8942 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8943 if (!SWIG_IsOK(res2)) {
8944 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8945 }
8946 if (!argp2) {
8947 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8948 }
8949 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8950 {
8951 arg3 = &temp3;
8952 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
8953 }
8954 if (obj3) {
8955 ecode4 = SWIG_AsVal_int(obj3, &val4);
8956 if (!SWIG_IsOK(ecode4)) {
8957 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
8958 }
8959 arg4 = static_cast< int >(val4);
8960 }
8961 {
8962 PyThreadState* __tstate = wxPyBeginAllowThreads();
8963 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
8964 wxPyEndAllowThreads(__tstate);
8965 if (PyErr_Occurred()) SWIG_fail;
8966 }
8967 {
8968 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8969 }
8970 return resultobj;
8971fail:
8972 return NULL;
d14a1e28
RD
8973}
8974
8975
0085ce49
RD
8976SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8977 PyObject *obj;
8978 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8979 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
8980 return SWIG_Py_Void();
d14a1e28
RD
8981}
8982
0085ce49
RD
8983SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8984 return SWIG_Python_InitShadowInstance(args);
8985}
d14a1e28 8986
0085ce49
RD
8987SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8988 PyObject *resultobj = 0;
8989 wxRegion *arg1 = 0 ;
8990 wxRegionIterator *result = 0 ;
8991 void *argp1 = 0 ;
8992 int res1 = 0 ;
8993 PyObject * obj0 = 0 ;
8994 char * kwnames[] = {
8995 (char *) "region", NULL
8996 };
8997
8998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
8999 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
9000 if (!SWIG_IsOK(res1)) {
9001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
9002 }
9003 if (!argp1) {
9004 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
9005 }
9006 arg1 = reinterpret_cast< wxRegion * >(argp1);
9007 {
9008 if (!wxPyCheckForApp()) SWIG_fail;
9009 PyThreadState* __tstate = wxPyBeginAllowThreads();
9010 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
9011 wxPyEndAllowThreads(__tstate);
9012 if (PyErr_Occurred()) SWIG_fail;
9013 }
9014 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
9015 return resultobj;
9016fail:
9017 return NULL;
d14a1e28
RD
9018}
9019
9020
0085ce49
RD
9021SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9022 PyObject *resultobj = 0;
9023 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9024 void *argp1 = 0 ;
9025 int res1 = 0 ;
9026 PyObject *swig_obj[1] ;
9027
9028 if (!args) SWIG_fail;
9029 swig_obj[0] = args;
9030 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
9031 if (!SWIG_IsOK(res1)) {
9032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9033 }
9034 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9035 {
9036 PyThreadState* __tstate = wxPyBeginAllowThreads();
9037 delete arg1;
d14a1e28 9038
0085ce49
RD
9039 wxPyEndAllowThreads(__tstate);
9040 if (PyErr_Occurred()) SWIG_fail;
9041 }
9042 resultobj = SWIG_Py_Void();
9043 return resultobj;
9044fail:
9045 return NULL;
d14a1e28
RD
9046}
9047
9048
0085ce49
RD
9049SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9050 PyObject *resultobj = 0;
9051 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9052 int result;
9053 void *argp1 = 0 ;
9054 int res1 = 0 ;
9055 PyObject *swig_obj[1] ;
9056
9057 if (!args) SWIG_fail;
9058 swig_obj[0] = args;
9059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9060 if (!SWIG_IsOK(res1)) {
9061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9062 }
9063 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9064 {
9065 PyThreadState* __tstate = wxPyBeginAllowThreads();
9066 result = (int)(arg1)->GetX();
9067 wxPyEndAllowThreads(__tstate);
9068 if (PyErr_Occurred()) SWIG_fail;
9069 }
9070 resultobj = SWIG_From_int(static_cast< int >(result));
9071 return resultobj;
9072fail:
9073 return NULL;
d14a1e28
RD
9074}
9075
9076
0085ce49
RD
9077SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9078 PyObject *resultobj = 0;
9079 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9080 int result;
9081 void *argp1 = 0 ;
9082 int res1 = 0 ;
9083 PyObject *swig_obj[1] ;
9084
9085 if (!args) SWIG_fail;
9086 swig_obj[0] = args;
9087 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9088 if (!SWIG_IsOK(res1)) {
9089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9090 }
9091 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9092 {
9093 PyThreadState* __tstate = wxPyBeginAllowThreads();
9094 result = (int)(arg1)->GetY();
9095 wxPyEndAllowThreads(__tstate);
9096 if (PyErr_Occurred()) SWIG_fail;
9097 }
9098 resultobj = SWIG_From_int(static_cast< int >(result));
9099 return resultobj;
9100fail:
9101 return NULL;
d14a1e28
RD
9102}
9103
9104
0085ce49
RD
9105SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9106 PyObject *resultobj = 0;
9107 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9108 int result;
9109 void *argp1 = 0 ;
9110 int res1 = 0 ;
9111 PyObject *swig_obj[1] ;
9112
9113 if (!args) SWIG_fail;
9114 swig_obj[0] = args;
9115 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9116 if (!SWIG_IsOK(res1)) {
9117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9118 }
9119 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9120 {
9121 PyThreadState* __tstate = wxPyBeginAllowThreads();
9122 result = (int)(arg1)->GetW();
9123 wxPyEndAllowThreads(__tstate);
9124 if (PyErr_Occurred()) SWIG_fail;
9125 }
9126 resultobj = SWIG_From_int(static_cast< int >(result));
9127 return resultobj;
9128fail:
9129 return NULL;
d14a1e28
RD
9130}
9131
9132
0085ce49
RD
9133SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9134 PyObject *resultobj = 0;
9135 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9136 int result;
9137 void *argp1 = 0 ;
9138 int res1 = 0 ;
9139 PyObject *swig_obj[1] ;
9140
9141 if (!args) SWIG_fail;
9142 swig_obj[0] = args;
9143 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9144 if (!SWIG_IsOK(res1)) {
9145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9146 }
9147 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9148 {
9149 PyThreadState* __tstate = wxPyBeginAllowThreads();
9150 result = (int)(arg1)->GetWidth();
9151 wxPyEndAllowThreads(__tstate);
9152 if (PyErr_Occurred()) SWIG_fail;
9153 }
9154 resultobj = SWIG_From_int(static_cast< int >(result));
9155 return resultobj;
9156fail:
9157 return NULL;
093d3ff1
RD
9158}
9159
9160
0085ce49
RD
9161SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9162 PyObject *resultobj = 0;
9163 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9164 int result;
9165 void *argp1 = 0 ;
9166 int res1 = 0 ;
9167 PyObject *swig_obj[1] ;
9168
9169 if (!args) SWIG_fail;
9170 swig_obj[0] = args;
9171 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9172 if (!SWIG_IsOK(res1)) {
9173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9174 }
9175 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9176 {
9177 PyThreadState* __tstate = wxPyBeginAllowThreads();
9178 result = (int)(arg1)->GetH();
9179 wxPyEndAllowThreads(__tstate);
9180 if (PyErr_Occurred()) SWIG_fail;
9181 }
9182 resultobj = SWIG_From_int(static_cast< int >(result));
9183 return resultobj;
9184fail:
9185 return NULL;
d14a1e28
RD
9186}
9187
9188
0085ce49
RD
9189SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9190 PyObject *resultobj = 0;
9191 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9192 int result;
9193 void *argp1 = 0 ;
9194 int res1 = 0 ;
9195 PyObject *swig_obj[1] ;
9196
9197 if (!args) SWIG_fail;
9198 swig_obj[0] = args;
9199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9200 if (!SWIG_IsOK(res1)) {
9201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9202 }
9203 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9204 {
9205 PyThreadState* __tstate = wxPyBeginAllowThreads();
9206 result = (int)(arg1)->GetHeight();
9207 wxPyEndAllowThreads(__tstate);
9208 if (PyErr_Occurred()) SWIG_fail;
9209 }
9210 resultobj = SWIG_From_int(static_cast< int >(result));
9211 return resultobj;
9212fail:
9213 return NULL;
093d3ff1
RD
9214}
9215
9216
0085ce49
RD
9217SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9218 PyObject *resultobj = 0;
9219 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9220 wxRect result;
9221 void *argp1 = 0 ;
9222 int res1 = 0 ;
9223 PyObject *swig_obj[1] ;
9224
9225 if (!args) SWIG_fail;
9226 swig_obj[0] = args;
9227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9228 if (!SWIG_IsOK(res1)) {
9229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9230 }
9231 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9232 {
9233 PyThreadState* __tstate = wxPyBeginAllowThreads();
9234 result = (arg1)->GetRect();
9235 wxPyEndAllowThreads(__tstate);
9236 if (PyErr_Occurred()) SWIG_fail;
9237 }
9238 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
9239 return resultobj;
9240fail:
9241 return NULL;
d14a1e28
RD
9242}
9243
9244
0085ce49
RD
9245SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9246 PyObject *resultobj = 0;
9247 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9248 bool result;
9249 void *argp1 = 0 ;
9250 int res1 = 0 ;
9251 PyObject *swig_obj[1] ;
9252
9253 if (!args) SWIG_fail;
9254 swig_obj[0] = args;
9255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9256 if (!SWIG_IsOK(res1)) {
9257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9258 }
9259 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9260 {
9261 PyThreadState* __tstate = wxPyBeginAllowThreads();
9262 result = (bool)(arg1)->HaveRects();
9263 wxPyEndAllowThreads(__tstate);
9264 if (PyErr_Occurred()) SWIG_fail;
9265 }
9266 {
9267 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9268 }
9269 return resultobj;
9270fail:
9271 return NULL;
093d3ff1
RD
9272}
9273
9274
0085ce49
RD
9275SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9276 PyObject *resultobj = 0;
9277 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9278 void *argp1 = 0 ;
9279 int res1 = 0 ;
9280 PyObject *swig_obj[1] ;
9281
9282 if (!args) SWIG_fail;
9283 swig_obj[0] = args;
9284 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9285 if (!SWIG_IsOK(res1)) {
9286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9287 }
9288 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9289 {
9290 PyThreadState* __tstate = wxPyBeginAllowThreads();
9291 (arg1)->Reset();
9292 wxPyEndAllowThreads(__tstate);
9293 if (PyErr_Occurred()) SWIG_fail;
9294 }
9295 resultobj = SWIG_Py_Void();
9296 return resultobj;
9297fail:
9298 return NULL;
d14a1e28
RD
9299}
9300
9301
0085ce49
RD
9302SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9303 PyObject *resultobj = 0;
9304 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9305 void *argp1 = 0 ;
9306 int res1 = 0 ;
9307 PyObject *swig_obj[1] ;
9308
9309 if (!args) SWIG_fail;
9310 swig_obj[0] = args;
9311 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9312 if (!SWIG_IsOK(res1)) {
9313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9314 }
9315 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9316 {
9317 PyThreadState* __tstate = wxPyBeginAllowThreads();
9318 wxRegionIterator_Next(arg1);
9319 wxPyEndAllowThreads(__tstate);
9320 if (PyErr_Occurred()) SWIG_fail;
9321 }
9322 resultobj = SWIG_Py_Void();
9323 return resultobj;
9324fail:
9325 return NULL;
d14a1e28
RD
9326}
9327
9328
0085ce49
RD
9329SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9330 PyObject *resultobj = 0;
9331 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9332 bool result;
9333 void *argp1 = 0 ;
9334 int res1 = 0 ;
9335 PyObject *swig_obj[1] ;
9336
9337 if (!args) SWIG_fail;
9338 swig_obj[0] = args;
9339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9340 if (!SWIG_IsOK(res1)) {
9341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9342 }
9343 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9344 {
9345 PyThreadState* __tstate = wxPyBeginAllowThreads();
9346 result = (bool)wxRegionIterator___nonzero__(arg1);
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;
d14a1e28
RD
9356}
9357
9358
0085ce49
RD
9359SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9360 PyObject *obj;
9361 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9362 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
9363 return SWIG_Py_Void();
d14a1e28
RD
9364}
9365
0085ce49
RD
9366SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9367 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
9368}
9369
0085ce49
RD
9370SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9371 PyObject *resultobj = 0;
9372 wxNativeFontInfo *result = 0 ;
9373
9374 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
9375 {
9376 PyThreadState* __tstate = wxPyBeginAllowThreads();
9377 result = (wxNativeFontInfo *)new wxNativeFontInfo();
9378 wxPyEndAllowThreads(__tstate);
9379 if (PyErr_Occurred()) SWIG_fail;
9380 }
9381 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
9382 return resultobj;
9383fail:
9384 return NULL;
d14a1e28
RD
9385}
9386
9387
0085ce49
RD
9388SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9389 PyObject *resultobj = 0;
9390 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9391 void *argp1 = 0 ;
9392 int res1 = 0 ;
9393 PyObject *swig_obj[1] ;
9394
9395 if (!args) SWIG_fail;
9396 swig_obj[0] = args;
9397 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
9398 if (!SWIG_IsOK(res1)) {
9399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9400 }
9401 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9402 {
9403 PyThreadState* __tstate = wxPyBeginAllowThreads();
9404 delete arg1;
d14a1e28 9405
0085ce49
RD
9406 wxPyEndAllowThreads(__tstate);
9407 if (PyErr_Occurred()) SWIG_fail;
9408 }
9409 resultobj = SWIG_Py_Void();
9410 return resultobj;
9411fail:
9412 return NULL;
d14a1e28
RD
9413}
9414
9415
0085ce49
RD
9416SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9417 PyObject *resultobj = 0;
9418 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9419 void *argp1 = 0 ;
9420 int res1 = 0 ;
9421 PyObject *swig_obj[1] ;
9422
9423 if (!args) SWIG_fail;
9424 swig_obj[0] = args;
9425 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9426 if (!SWIG_IsOK(res1)) {
9427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9428 }
9429 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9430 {
9431 PyThreadState* __tstate = wxPyBeginAllowThreads();
9432 (arg1)->Init();
9433 wxPyEndAllowThreads(__tstate);
9434 if (PyErr_Occurred()) SWIG_fail;
9435 }
9436 resultobj = SWIG_Py_Void();
9437 return resultobj;
9438fail:
9439 return NULL;
9440}
9441
9442
9443SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9444 PyObject *resultobj = 0;
9445 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9446 wxFont *arg2 = 0 ;
9447 void *argp1 = 0 ;
9448 int res1 = 0 ;
9449 void *argp2 = 0 ;
9450 int res2 = 0 ;
9451 PyObject * obj0 = 0 ;
9452 PyObject * obj1 = 0 ;
9453 char * kwnames[] = {
9454 (char *) "self",(char *) "font", NULL
9455 };
9456
9457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
9458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9459 if (!SWIG_IsOK(res1)) {
9460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9461 }
9462 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9463 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
9464 if (!SWIG_IsOK(res2)) {
9465 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
9466 }
9467 if (!argp2) {
9468 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
9469 }
9470 arg2 = reinterpret_cast< wxFont * >(argp2);
9471 {
9472 PyThreadState* __tstate = wxPyBeginAllowThreads();
9473 (arg1)->InitFromFont((wxFont const &)*arg2);
9474 wxPyEndAllowThreads(__tstate);
9475 if (PyErr_Occurred()) SWIG_fail;
9476 }
9477 resultobj = SWIG_Py_Void();
9478 return resultobj;
9479fail:
9480 return NULL;
e6ffcedd
RD
9481}
9482
9483
0085ce49
RD
9484SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9485 PyObject *resultobj = 0;
9486 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9487 int result;
9488 void *argp1 = 0 ;
9489 int res1 = 0 ;
9490 PyObject *swig_obj[1] ;
9491
9492 if (!args) SWIG_fail;
9493 swig_obj[0] = args;
9494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9495 if (!SWIG_IsOK(res1)) {
9496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9497 }
9498 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9499 {
9500 PyThreadState* __tstate = wxPyBeginAllowThreads();
9501 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
9502 wxPyEndAllowThreads(__tstate);
9503 if (PyErr_Occurred()) SWIG_fail;
9504 }
9505 resultobj = SWIG_From_int(static_cast< int >(result));
9506 return resultobj;
9507fail:
9508 return NULL;
d14a1e28
RD
9509}
9510
9511
0085ce49
RD
9512SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9513 PyObject *resultobj = 0;
9514 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9515 wxFontStyle result;
9516 void *argp1 = 0 ;
9517 int res1 = 0 ;
9518 PyObject *swig_obj[1] ;
9519
9520 if (!args) SWIG_fail;
9521 swig_obj[0] = args;
9522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9523 if (!SWIG_IsOK(res1)) {
9524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9525 }
9526 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9527 {
9528 PyThreadState* __tstate = wxPyBeginAllowThreads();
9529 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
9530 wxPyEndAllowThreads(__tstate);
9531 if (PyErr_Occurred()) SWIG_fail;
9532 }
9533 resultobj = SWIG_From_int(static_cast< int >(result));
9534 return resultobj;
9535fail:
9536 return NULL;
d14a1e28
RD
9537}
9538
9539
0085ce49
RD
9540SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9541 PyObject *resultobj = 0;
9542 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9543 wxFontWeight result;
9544 void *argp1 = 0 ;
9545 int res1 = 0 ;
9546 PyObject *swig_obj[1] ;
9547
9548 if (!args) SWIG_fail;
9549 swig_obj[0] = args;
9550 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9551 if (!SWIG_IsOK(res1)) {
9552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9553 }
9554 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9555 {
9556 PyThreadState* __tstate = wxPyBeginAllowThreads();
9557 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
9558 wxPyEndAllowThreads(__tstate);
9559 if (PyErr_Occurred()) SWIG_fail;
9560 }
9561 resultobj = SWIG_From_int(static_cast< int >(result));
9562 return resultobj;
9563fail:
9564 return NULL;
d14a1e28
RD
9565}
9566
9567
0085ce49
RD
9568SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9569 PyObject *resultobj = 0;
9570 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9571 bool result;
9572 void *argp1 = 0 ;
9573 int res1 = 0 ;
9574 PyObject *swig_obj[1] ;
9575
9576 if (!args) SWIG_fail;
9577 swig_obj[0] = args;
9578 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9579 if (!SWIG_IsOK(res1)) {
9580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9581 }
9582 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9583 {
9584 PyThreadState* __tstate = wxPyBeginAllowThreads();
9585 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
9586 wxPyEndAllowThreads(__tstate);
9587 if (PyErr_Occurred()) SWIG_fail;
9588 }
9589 {
9590 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9591 }
9592 return resultobj;
9593fail:
9594 return NULL;
d14a1e28
RD
9595}
9596
9597
0085ce49
RD
9598SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9599 PyObject *resultobj = 0;
9600 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9601 wxString result;
9602 void *argp1 = 0 ;
9603 int res1 = 0 ;
9604 PyObject *swig_obj[1] ;
9605
9606 if (!args) SWIG_fail;
9607 swig_obj[0] = args;
9608 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9609 if (!SWIG_IsOK(res1)) {
9610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9611 }
9612 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9613 {
9614 PyThreadState* __tstate = wxPyBeginAllowThreads();
9615 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
9616 wxPyEndAllowThreads(__tstate);
9617 if (PyErr_Occurred()) SWIG_fail;
9618 }
9619 {
9620#if wxUSE_UNICODE
9621 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9622#else
9623 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9624#endif
9625 }
9626 return resultobj;
9627fail:
9628 return NULL;
d14a1e28
RD
9629}
9630
9631
0085ce49
RD
9632SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9633 PyObject *resultobj = 0;
9634 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9635 wxFontFamily result;
9636 void *argp1 = 0 ;
9637 int res1 = 0 ;
9638 PyObject *swig_obj[1] ;
9639
9640 if (!args) SWIG_fail;
9641 swig_obj[0] = args;
9642 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9643 if (!SWIG_IsOK(res1)) {
9644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9645 }
9646 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9647 {
9648 PyThreadState* __tstate = wxPyBeginAllowThreads();
9649 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
9650 wxPyEndAllowThreads(__tstate);
9651 if (PyErr_Occurred()) SWIG_fail;
9652 }
9653 resultobj = SWIG_From_int(static_cast< int >(result));
9654 return resultobj;
9655fail:
9656 return NULL;
d14a1e28
RD
9657}
9658
9659
0085ce49
RD
9660SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9661 PyObject *resultobj = 0;
9662 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9663 wxFontEncoding result;
9664 void *argp1 = 0 ;
9665 int res1 = 0 ;
9666 PyObject *swig_obj[1] ;
9667
9668 if (!args) SWIG_fail;
9669 swig_obj[0] = args;
9670 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9671 if (!SWIG_IsOK(res1)) {
9672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9673 }
9674 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9675 {
9676 PyThreadState* __tstate = wxPyBeginAllowThreads();
9677 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
9678 wxPyEndAllowThreads(__tstate);
9679 if (PyErr_Occurred()) SWIG_fail;
9680 }
9681 resultobj = SWIG_From_int(static_cast< int >(result));
9682 return resultobj;
9683fail:
9684 return NULL;
9685}
9686
9687
9688SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9689 PyObject *resultobj = 0;
9690 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9691 int arg2 ;
9692 void *argp1 = 0 ;
9693 int res1 = 0 ;
9694 int val2 ;
9695 int ecode2 = 0 ;
9696 PyObject * obj0 = 0 ;
9697 PyObject * obj1 = 0 ;
9698 char * kwnames[] = {
9699 (char *) "self",(char *) "pointsize", NULL
9700 };
9701
9702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
9703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9704 if (!SWIG_IsOK(res1)) {
9705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9706 }
9707 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9708 ecode2 = SWIG_AsVal_int(obj1, &val2);
9709 if (!SWIG_IsOK(ecode2)) {
9710 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
9711 }
9712 arg2 = static_cast< int >(val2);
9713 {
9714 PyThreadState* __tstate = wxPyBeginAllowThreads();
9715 (arg1)->SetPointSize(arg2);
9716 wxPyEndAllowThreads(__tstate);
9717 if (PyErr_Occurred()) SWIG_fail;
9718 }
9719 resultobj = SWIG_Py_Void();
9720 return resultobj;
9721fail:
9722 return NULL;
9723}
9724
9725
9726SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9727 PyObject *resultobj = 0;
9728 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9729 wxFontStyle arg2 ;
9730 void *argp1 = 0 ;
9731 int res1 = 0 ;
9732 int val2 ;
9733 int ecode2 = 0 ;
9734 PyObject * obj0 = 0 ;
9735 PyObject * obj1 = 0 ;
9736 char * kwnames[] = {
9737 (char *) "self",(char *) "style", NULL
9738 };
9739
9740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
9741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9742 if (!SWIG_IsOK(res1)) {
9743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9744 }
9745 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9746 ecode2 = SWIG_AsVal_int(obj1, &val2);
9747 if (!SWIG_IsOK(ecode2)) {
9748 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
9749 }
9750 arg2 = static_cast< wxFontStyle >(val2);
9751 {
9752 PyThreadState* __tstate = wxPyBeginAllowThreads();
9753 (arg1)->SetStyle(arg2);
9754 wxPyEndAllowThreads(__tstate);
9755 if (PyErr_Occurred()) SWIG_fail;
9756 }
9757 resultobj = SWIG_Py_Void();
9758 return resultobj;
9759fail:
9760 return NULL;
9761}
9762
9763
9764SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9765 PyObject *resultobj = 0;
9766 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9767 wxFontWeight arg2 ;
9768 void *argp1 = 0 ;
9769 int res1 = 0 ;
9770 int val2 ;
9771 int ecode2 = 0 ;
9772 PyObject * obj0 = 0 ;
9773 PyObject * obj1 = 0 ;
9774 char * kwnames[] = {
9775 (char *) "self",(char *) "weight", NULL
9776 };
9777
9778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
9779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9780 if (!SWIG_IsOK(res1)) {
9781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9782 }
9783 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9784 ecode2 = SWIG_AsVal_int(obj1, &val2);
9785 if (!SWIG_IsOK(ecode2)) {
9786 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
9787 }
9788 arg2 = static_cast< wxFontWeight >(val2);
9789 {
9790 PyThreadState* __tstate = wxPyBeginAllowThreads();
9791 (arg1)->SetWeight(arg2);
9792 wxPyEndAllowThreads(__tstate);
9793 if (PyErr_Occurred()) SWIG_fail;
9794 }
9795 resultobj = SWIG_Py_Void();
9796 return resultobj;
9797fail:
9798 return NULL;
9799}
9800
9801
9802SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9803 PyObject *resultobj = 0;
9804 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9805 bool arg2 ;
9806 void *argp1 = 0 ;
9807 int res1 = 0 ;
9808 bool val2 ;
9809 int ecode2 = 0 ;
9810 PyObject * obj0 = 0 ;
9811 PyObject * obj1 = 0 ;
9812 char * kwnames[] = {
9813 (char *) "self",(char *) "underlined", NULL
9814 };
9815
9816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
9817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9818 if (!SWIG_IsOK(res1)) {
9819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9820 }
9821 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9822 ecode2 = SWIG_AsVal_bool(obj1, &val2);
9823 if (!SWIG_IsOK(ecode2)) {
9824 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
9825 }
9826 arg2 = static_cast< bool >(val2);
9827 {
9828 PyThreadState* __tstate = wxPyBeginAllowThreads();
9829 (arg1)->SetUnderlined(arg2);
9830 wxPyEndAllowThreads(__tstate);
9831 if (PyErr_Occurred()) SWIG_fail;
9832 }
9833 resultobj = SWIG_Py_Void();
9834 return resultobj;
9835fail:
9836 return NULL;
9837}
9838
9839
9840SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9841 PyObject *resultobj = 0;
9842 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9843 wxString arg2 ;
704eda0c 9844 bool result;
0085ce49
RD
9845 void *argp1 = 0 ;
9846 int res1 = 0 ;
9847 PyObject * obj0 = 0 ;
9848 PyObject * obj1 = 0 ;
9849 char * kwnames[] = {
9850 (char *) "self",(char *) "facename", NULL
9851 };
9852
9853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
9854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9855 if (!SWIG_IsOK(res1)) {
9856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9857 }
9858 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9859 {
9860 wxString* sptr = wxString_in_helper(obj1);
9861 if (sptr == NULL) SWIG_fail;
9862 arg2 = *sptr;
9863 delete sptr;
9864 }
9865 {
9866 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 9867 result = (bool)(arg1)->SetFaceName(arg2);
0085ce49
RD
9868 wxPyEndAllowThreads(__tstate);
9869 if (PyErr_Occurred()) SWIG_fail;
9870 }
704eda0c
RD
9871 {
9872 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9873 }
0085ce49
RD
9874 return resultobj;
9875fail:
9876 return NULL;
9877}
9878
9879
9880SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9881 PyObject *resultobj = 0;
9882 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9883 wxFontFamily arg2 ;
9884 void *argp1 = 0 ;
9885 int res1 = 0 ;
9886 int val2 ;
9887 int ecode2 = 0 ;
9888 PyObject * obj0 = 0 ;
9889 PyObject * obj1 = 0 ;
9890 char * kwnames[] = {
9891 (char *) "self",(char *) "family", NULL
9892 };
9893
9894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
9895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9896 if (!SWIG_IsOK(res1)) {
9897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9898 }
9899 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9900 ecode2 = SWIG_AsVal_int(obj1, &val2);
9901 if (!SWIG_IsOK(ecode2)) {
9902 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
9903 }
9904 arg2 = static_cast< wxFontFamily >(val2);
9905 {
9906 PyThreadState* __tstate = wxPyBeginAllowThreads();
9907 (arg1)->SetFamily(arg2);
9908 wxPyEndAllowThreads(__tstate);
9909 if (PyErr_Occurred()) SWIG_fail;
9910 }
9911 resultobj = SWIG_Py_Void();
9912 return resultobj;
9913fail:
9914 return NULL;
9915}
9916
9917
9918SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9919 PyObject *resultobj = 0;
9920 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9921 wxFontEncoding arg2 ;
9922 void *argp1 = 0 ;
9923 int res1 = 0 ;
9924 int val2 ;
9925 int ecode2 = 0 ;
9926 PyObject * obj0 = 0 ;
9927 PyObject * obj1 = 0 ;
9928 char * kwnames[] = {
9929 (char *) "self",(char *) "encoding", NULL
9930 };
9931
9932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
9933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9934 if (!SWIG_IsOK(res1)) {
9935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9936 }
9937 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9938 ecode2 = SWIG_AsVal_int(obj1, &val2);
9939 if (!SWIG_IsOK(ecode2)) {
9940 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
9941 }
9942 arg2 = static_cast< wxFontEncoding >(val2);
9943 {
9944 PyThreadState* __tstate = wxPyBeginAllowThreads();
9945 (arg1)->SetEncoding(arg2);
9946 wxPyEndAllowThreads(__tstate);
9947 if (PyErr_Occurred()) SWIG_fail;
9948 }
9949 resultobj = SWIG_Py_Void();
9950 return resultobj;
9951fail:
9952 return NULL;
9953}
9954
9955
9956SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9957 PyObject *resultobj = 0;
9958 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9959 wxString *arg2 = 0 ;
9960 bool result;
9961 void *argp1 = 0 ;
9962 int res1 = 0 ;
9963 bool temp2 = false ;
9964 PyObject * obj0 = 0 ;
9965 PyObject * obj1 = 0 ;
9966 char * kwnames[] = {
9967 (char *) "self",(char *) "s", NULL
9968 };
9969
9970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
9971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9972 if (!SWIG_IsOK(res1)) {
9973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9974 }
9975 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9976 {
9977 arg2 = wxString_in_helper(obj1);
9978 if (arg2 == NULL) SWIG_fail;
9979 temp2 = true;
9980 }
9981 {
9982 PyThreadState* __tstate = wxPyBeginAllowThreads();
9983 result = (bool)(arg1)->FromString((wxString const &)*arg2);
9984 wxPyEndAllowThreads(__tstate);
9985 if (PyErr_Occurred()) SWIG_fail;
9986 }
9987 {
9988 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9989 }
9990 {
9991 if (temp2)
9992 delete arg2;
9993 }
9994 return resultobj;
9995fail:
9996 {
9997 if (temp2)
9998 delete arg2;
9999 }
10000 return NULL;
d14a1e28
RD
10001}
10002
10003
0085ce49
RD
10004SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10005 PyObject *resultobj = 0;
10006 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10007 wxString result;
10008 void *argp1 = 0 ;
10009 int res1 = 0 ;
10010 PyObject *swig_obj[1] ;
10011
10012 if (!args) SWIG_fail;
10013 swig_obj[0] = args;
10014 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10015 if (!SWIG_IsOK(res1)) {
10016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10017 }
10018 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10019 {
10020 PyThreadState* __tstate = wxPyBeginAllowThreads();
10021 result = ((wxNativeFontInfo const *)arg1)->ToString();
10022 wxPyEndAllowThreads(__tstate);
10023 if (PyErr_Occurred()) SWIG_fail;
10024 }
10025 {
10026#if wxUSE_UNICODE
10027 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10028#else
10029 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10030#endif
10031 }
10032 return resultobj;
10033fail:
10034 return NULL;
d14a1e28
RD
10035}
10036
10037
0085ce49
RD
10038SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10039 PyObject *resultobj = 0;
10040 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10041 wxString result;
10042 void *argp1 = 0 ;
10043 int res1 = 0 ;
10044 PyObject *swig_obj[1] ;
10045
10046 if (!args) SWIG_fail;
10047 swig_obj[0] = args;
10048 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10049 if (!SWIG_IsOK(res1)) {
10050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10051 }
10052 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10053 {
10054 PyThreadState* __tstate = wxPyBeginAllowThreads();
10055 result = wxNativeFontInfo___str__(arg1);
10056 wxPyEndAllowThreads(__tstate);
10057 if (PyErr_Occurred()) SWIG_fail;
10058 }
10059 {
10060#if wxUSE_UNICODE
10061 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10062#else
10063 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10064#endif
10065 }
10066 return resultobj;
10067fail:
10068 return NULL;
10069}
10070
10071
10072SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10073 PyObject *resultobj = 0;
10074 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10075 wxString *arg2 = 0 ;
10076 bool result;
10077 void *argp1 = 0 ;
10078 int res1 = 0 ;
10079 bool temp2 = false ;
10080 PyObject * obj0 = 0 ;
10081 PyObject * obj1 = 0 ;
10082 char * kwnames[] = {
10083 (char *) "self",(char *) "s", NULL
10084 };
10085
10086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
10087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10088 if (!SWIG_IsOK(res1)) {
10089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10090 }
10091 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10092 {
10093 arg2 = wxString_in_helper(obj1);
10094 if (arg2 == NULL) SWIG_fail;
10095 temp2 = true;
10096 }
10097 {
10098 PyThreadState* __tstate = wxPyBeginAllowThreads();
10099 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
10100 wxPyEndAllowThreads(__tstate);
10101 if (PyErr_Occurred()) SWIG_fail;
10102 }
10103 {
10104 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10105 }
10106 {
10107 if (temp2)
10108 delete arg2;
10109 }
10110 return resultobj;
10111fail:
10112 {
10113 if (temp2)
10114 delete arg2;
10115 }
10116 return NULL;
d14a1e28
RD
10117}
10118
10119
0085ce49
RD
10120SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10121 PyObject *resultobj = 0;
10122 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10123 wxString result;
10124 void *argp1 = 0 ;
10125 int res1 = 0 ;
10126 PyObject *swig_obj[1] ;
10127
10128 if (!args) SWIG_fail;
10129 swig_obj[0] = args;
10130 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10131 if (!SWIG_IsOK(res1)) {
10132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10133 }
10134 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10135 {
10136 PyThreadState* __tstate = wxPyBeginAllowThreads();
10137 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
10138 wxPyEndAllowThreads(__tstate);
10139 if (PyErr_Occurred()) SWIG_fail;
10140 }
10141 {
10142#if wxUSE_UNICODE
10143 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10144#else
10145 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10146#endif
10147 }
10148 return resultobj;
10149fail:
10150 return NULL;
d14a1e28
RD
10151}
10152
10153
0085ce49
RD
10154SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10155 PyObject *obj;
10156 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10157 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
10158 return SWIG_Py_Void();
d14a1e28
RD
10159}
10160
0085ce49
RD
10161SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10162 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
10163}
10164
0085ce49
RD
10165SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10166 PyObject *resultobj = 0;
10167 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10168 wxString *arg2 = (wxString *) 0 ;
10169 void *argp1 = 0 ;
10170 int res1 = 0 ;
10171 bool temp2 = false ;
10172 PyObject *swig_obj[2] ;
10173
10174 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
10175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10176 if (!SWIG_IsOK(res1)) {
10177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10178 }
10179 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10180 {
10181 arg2 = wxString_in_helper(swig_obj[1]);
10182 if (arg2 == NULL) SWIG_fail;
10183 temp2 = true;
10184 }
10185 if (arg1) (arg1)->facename = *arg2;
10186
10187 resultobj = SWIG_Py_Void();
10188 {
10189 if (temp2)
10190 delete arg2;
10191 }
10192 return resultobj;
10193fail:
10194 {
10195 if (temp2)
10196 delete arg2;
10197 }
10198 return NULL;
d14a1e28
RD
10199}
10200
10201
0085ce49
RD
10202SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10203 PyObject *resultobj = 0;
10204 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10205 wxString *result = 0 ;
10206 void *argp1 = 0 ;
10207 int res1 = 0 ;
10208 PyObject *swig_obj[1] ;
10209
10210 if (!args) SWIG_fail;
10211 swig_obj[0] = args;
10212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10213 if (!SWIG_IsOK(res1)) {
10214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10215 }
10216 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10217 result = (wxString *)& ((arg1)->facename);
10218 {
10219#if wxUSE_UNICODE
10220 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10221#else
10222 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10223#endif
10224 }
10225 return resultobj;
10226fail:
10227 return NULL;
d14a1e28
RD
10228}
10229
10230
0085ce49
RD
10231SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10232 PyObject *resultobj = 0;
10233 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10234 wxFontEncoding arg2 ;
10235 void *argp1 = 0 ;
10236 int res1 = 0 ;
10237 int val2 ;
10238 int ecode2 = 0 ;
10239 PyObject *swig_obj[2] ;
10240
10241 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
10242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10243 if (!SWIG_IsOK(res1)) {
10244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10245 }
10246 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10247 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
10248 if (!SWIG_IsOK(ecode2)) {
10249 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10250 }
10251 arg2 = static_cast< wxFontEncoding >(val2);
10252 if (arg1) (arg1)->encoding = arg2;
10253
10254 resultobj = SWIG_Py_Void();
10255 return resultobj;
10256fail:
10257 return NULL;
d14a1e28
RD
10258}
10259
10260
0085ce49
RD
10261SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10262 PyObject *resultobj = 0;
10263 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10264 wxFontEncoding result;
10265 void *argp1 = 0 ;
10266 int res1 = 0 ;
10267 PyObject *swig_obj[1] ;
10268
10269 if (!args) SWIG_fail;
10270 swig_obj[0] = args;
10271 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10272 if (!SWIG_IsOK(res1)) {
10273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10274 }
10275 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10276 result = (wxFontEncoding) ((arg1)->encoding);
10277 resultobj = SWIG_From_int(static_cast< int >(result));
10278 return resultobj;
10279fail:
10280 return NULL;
d14a1e28
RD
10281}
10282
10283
0085ce49
RD
10284SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10285 PyObject *resultobj = 0;
10286 wxNativeEncodingInfo *result = 0 ;
10287
10288 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
10289 {
10290 PyThreadState* __tstate = wxPyBeginAllowThreads();
10291 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
10292 wxPyEndAllowThreads(__tstate);
10293 if (PyErr_Occurred()) SWIG_fail;
10294 }
10295 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
10296 return resultobj;
10297fail:
10298 return NULL;
d14a1e28
RD
10299}
10300
10301
0085ce49
RD
10302SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10303 PyObject *resultobj = 0;
10304 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10305 void *argp1 = 0 ;
10306 int res1 = 0 ;
10307 PyObject *swig_obj[1] ;
10308
10309 if (!args) SWIG_fail;
10310 swig_obj[0] = args;
10311 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
10312 if (!SWIG_IsOK(res1)) {
10313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10314 }
10315 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10316 {
10317 PyThreadState* __tstate = wxPyBeginAllowThreads();
10318 delete arg1;
d14a1e28 10319
0085ce49
RD
10320 wxPyEndAllowThreads(__tstate);
10321 if (PyErr_Occurred()) SWIG_fail;
10322 }
10323 resultobj = SWIG_Py_Void();
10324 return resultobj;
10325fail:
10326 return NULL;
10327}
10328
10329
10330SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10331 PyObject *resultobj = 0;
10332 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10333 wxString *arg2 = 0 ;
10334 bool result;
10335 void *argp1 = 0 ;
10336 int res1 = 0 ;
10337 bool temp2 = false ;
10338 PyObject * obj0 = 0 ;
10339 PyObject * obj1 = 0 ;
10340 char * kwnames[] = {
10341 (char *) "self",(char *) "s", NULL
10342 };
10343
10344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
10345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10346 if (!SWIG_IsOK(res1)) {
10347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10348 }
10349 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10350 {
10351 arg2 = wxString_in_helper(obj1);
10352 if (arg2 == NULL) SWIG_fail;
10353 temp2 = true;
10354 }
10355 {
10356 PyThreadState* __tstate = wxPyBeginAllowThreads();
10357 result = (bool)(arg1)->FromString((wxString const &)*arg2);
10358 wxPyEndAllowThreads(__tstate);
10359 if (PyErr_Occurred()) SWIG_fail;
10360 }
10361 {
10362 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10363 }
10364 {
10365 if (temp2)
10366 delete arg2;
10367 }
10368 return resultobj;
10369fail:
10370 {
10371 if (temp2)
10372 delete arg2;
10373 }
10374 return NULL;
d14a1e28
RD
10375}
10376
10377
0085ce49
RD
10378SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10379 PyObject *resultobj = 0;
10380 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10381 wxString result;
10382 void *argp1 = 0 ;
10383 int res1 = 0 ;
10384 PyObject *swig_obj[1] ;
10385
10386 if (!args) SWIG_fail;
10387 swig_obj[0] = args;
10388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10389 if (!SWIG_IsOK(res1)) {
10390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
10391 }
10392 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10393 {
10394 PyThreadState* __tstate = wxPyBeginAllowThreads();
10395 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
10396 wxPyEndAllowThreads(__tstate);
10397 if (PyErr_Occurred()) SWIG_fail;
10398 }
10399 {
10400#if wxUSE_UNICODE
10401 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10402#else
10403 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10404#endif
10405 }
10406 return resultobj;
10407fail:
10408 return NULL;
d14a1e28
RD
10409}
10410
10411
0085ce49
RD
10412SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10413 PyObject *obj;
10414 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10415 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
10416 return SWIG_Py_Void();
d14a1e28
RD
10417}
10418
0085ce49
RD
10419SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10420 return SWIG_Python_InitShadowInstance(args);
10421}
d14a1e28 10422
0085ce49
RD
10423SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10424 PyObject *resultobj = 0;
10425 wxFontEncoding arg1 ;
10426 wxNativeEncodingInfo *result = 0 ;
10427 int val1 ;
10428 int ecode1 = 0 ;
10429 PyObject * obj0 = 0 ;
10430 char * kwnames[] = {
10431 (char *) "encoding", NULL
10432 };
10433
10434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
10435 ecode1 = SWIG_AsVal_int(obj0, &val1);
10436 if (!SWIG_IsOK(ecode1)) {
10437 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
10438 }
10439 arg1 = static_cast< wxFontEncoding >(val1);
10440 {
10441 PyThreadState* __tstate = wxPyBeginAllowThreads();
10442 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
10443 wxPyEndAllowThreads(__tstate);
10444 if (PyErr_Occurred()) SWIG_fail;
10445 }
10446 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10447 return resultobj;
10448fail:
10449 return NULL;
10450}
10451
10452
10453SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10454 PyObject *resultobj = 0;
10455 wxNativeEncodingInfo *arg1 = 0 ;
10456 bool result;
10457 void *argp1 = 0 ;
10458 int res1 = 0 ;
10459 PyObject * obj0 = 0 ;
10460 char * kwnames[] = {
10461 (char *) "info", NULL
10462 };
10463
10464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
10465 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
10466 if (!SWIG_IsOK(res1)) {
10467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
10468 }
10469 if (!argp1) {
10470 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
10471 }
10472 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10473 {
10474 PyThreadState* __tstate = wxPyBeginAllowThreads();
10475 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
10476 wxPyEndAllowThreads(__tstate);
10477 if (PyErr_Occurred()) SWIG_fail;
10478 }
10479 {
10480 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10481 }
10482 return resultobj;
10483fail:
10484 return NULL;
d14a1e28
RD
10485}
10486
10487
0085ce49
RD
10488SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10489 PyObject *resultobj = 0;
10490 wxFontMapper *result = 0 ;
10491
10492 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
10493 {
10494 PyThreadState* __tstate = wxPyBeginAllowThreads();
10495 result = (wxFontMapper *)new wxFontMapper();
10496 wxPyEndAllowThreads(__tstate);
10497 if (PyErr_Occurred()) SWIG_fail;
10498 }
10499 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
10500 return resultobj;
10501fail:
10502 return NULL;
d14a1e28
RD
10503}
10504
10505
0085ce49
RD
10506SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10507 PyObject *resultobj = 0;
10508 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10509 void *argp1 = 0 ;
10510 int res1 = 0 ;
10511 PyObject *swig_obj[1] ;
10512
10513 if (!args) SWIG_fail;
10514 swig_obj[0] = args;
10515 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
10516 if (!SWIG_IsOK(res1)) {
10517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10518 }
10519 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10520 {
10521 PyThreadState* __tstate = wxPyBeginAllowThreads();
10522 delete arg1;
d14a1e28 10523
0085ce49
RD
10524 wxPyEndAllowThreads(__tstate);
10525 if (PyErr_Occurred()) SWIG_fail;
10526 }
10527 resultobj = SWIG_Py_Void();
10528 return resultobj;
10529fail:
10530 return NULL;
d14a1e28
RD
10531}
10532
10533
0085ce49
RD
10534SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10535 PyObject *resultobj = 0;
10536 wxFontMapper *result = 0 ;
10537
10538 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
10539 {
10540 PyThreadState* __tstate = wxPyBeginAllowThreads();
10541 result = (wxFontMapper *)wxFontMapper::Get();
10542 wxPyEndAllowThreads(__tstate);
10543 if (PyErr_Occurred()) SWIG_fail;
10544 }
10545 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
10546 return resultobj;
10547fail:
10548 return NULL;
10549}
10550
10551
10552SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10553 PyObject *resultobj = 0;
10554 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10555 wxFontMapper *result = 0 ;
10556 void *argp1 = 0 ;
10557 int res1 = 0 ;
10558 PyObject * obj0 = 0 ;
10559 char * kwnames[] = {
10560 (char *) "mapper", NULL
10561 };
10562
10563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
10564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10565 if (!SWIG_IsOK(res1)) {
10566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10567 }
10568 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10569 {
10570 PyThreadState* __tstate = wxPyBeginAllowThreads();
10571 result = (wxFontMapper *)wxFontMapper::Set(arg1);
10572 wxPyEndAllowThreads(__tstate);
10573 if (PyErr_Occurred()) SWIG_fail;
10574 }
10575 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
10576 return resultobj;
10577fail:
10578 return NULL;
10579}
10580
10581
10582SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10583 PyObject *resultobj = 0;
10584 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10585 wxString *arg2 = 0 ;
10586 bool arg3 = (bool) true ;
10587 wxFontEncoding result;
10588 void *argp1 = 0 ;
10589 int res1 = 0 ;
10590 bool temp2 = false ;
10591 bool val3 ;
10592 int ecode3 = 0 ;
10593 PyObject * obj0 = 0 ;
10594 PyObject * obj1 = 0 ;
10595 PyObject * obj2 = 0 ;
10596 char * kwnames[] = {
10597 (char *) "self",(char *) "charset",(char *) "interactive", NULL
10598 };
10599
10600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10602 if (!SWIG_IsOK(res1)) {
10603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10604 }
10605 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10606 {
10607 arg2 = wxString_in_helper(obj1);
10608 if (arg2 == NULL) SWIG_fail;
10609 temp2 = true;
10610 }
10611 if (obj2) {
10612 ecode3 = SWIG_AsVal_bool(obj2, &val3);
10613 if (!SWIG_IsOK(ecode3)) {
10614 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
10615 }
10616 arg3 = static_cast< bool >(val3);
10617 }
10618 {
10619 PyThreadState* __tstate = wxPyBeginAllowThreads();
10620 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
10621 wxPyEndAllowThreads(__tstate);
10622 if (PyErr_Occurred()) SWIG_fail;
10623 }
10624 resultobj = SWIG_From_int(static_cast< int >(result));
10625 {
10626 if (temp2)
10627 delete arg2;
10628 }
10629 return resultobj;
10630fail:
10631 {
10632 if (temp2)
10633 delete arg2;
10634 }
10635 return NULL;
e6ffcedd
RD
10636}
10637
10638
0085ce49
RD
10639SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10640 PyObject *resultobj = 0;
10641 size_t result;
10642
10643 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
10644 {
10645 PyThreadState* __tstate = wxPyBeginAllowThreads();
10646 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
10647 wxPyEndAllowThreads(__tstate);
10648 if (PyErr_Occurred()) SWIG_fail;
10649 }
10650 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
10651 return resultobj;
10652fail:
10653 return NULL;
10654}
10655
10656
10657SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10658 PyObject *resultobj = 0;
10659 size_t arg1 ;
10660 wxFontEncoding result;
10661 size_t val1 ;
10662 int ecode1 = 0 ;
10663 PyObject * obj0 = 0 ;
10664 char * kwnames[] = {
10665 (char *) "n", NULL
10666 };
10667
10668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
10669 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
10670 if (!SWIG_IsOK(ecode1)) {
10671 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
10672 }
10673 arg1 = static_cast< size_t >(val1);
10674 {
10675 PyThreadState* __tstate = wxPyBeginAllowThreads();
10676 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
10677 wxPyEndAllowThreads(__tstate);
10678 if (PyErr_Occurred()) SWIG_fail;
10679 }
10680 resultobj = SWIG_From_int(static_cast< int >(result));
10681 return resultobj;
10682fail:
10683 return NULL;
10684}
10685
10686
10687SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10688 PyObject *resultobj = 0;
10689 wxFontEncoding arg1 ;
10690 wxString result;
10691 int val1 ;
10692 int ecode1 = 0 ;
10693 PyObject * obj0 = 0 ;
10694 char * kwnames[] = {
10695 (char *) "encoding", NULL
10696 };
10697
10698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
10699 ecode1 = SWIG_AsVal_int(obj0, &val1);
10700 if (!SWIG_IsOK(ecode1)) {
10701 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
10702 }
10703 arg1 = static_cast< wxFontEncoding >(val1);
10704 {
10705 PyThreadState* __tstate = wxPyBeginAllowThreads();
10706 result = wxFontMapper::GetEncodingName(arg1);
10707 wxPyEndAllowThreads(__tstate);
10708 if (PyErr_Occurred()) SWIG_fail;
10709 }
10710 {
10711#if wxUSE_UNICODE
10712 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10713#else
10714 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10715#endif
10716 }
10717 return resultobj;
10718fail:
10719 return NULL;
d14a1e28
RD
10720}
10721
10722
0085ce49
RD
10723SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10724 PyObject *resultobj = 0;
10725 wxFontEncoding arg1 ;
10726 wxString result;
10727 int val1 ;
10728 int ecode1 = 0 ;
10729 PyObject * obj0 = 0 ;
10730 char * kwnames[] = {
10731 (char *) "encoding", NULL
10732 };
10733
10734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
10735 ecode1 = SWIG_AsVal_int(obj0, &val1);
10736 if (!SWIG_IsOK(ecode1)) {
10737 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
10738 }
10739 arg1 = static_cast< wxFontEncoding >(val1);
10740 {
10741 PyThreadState* __tstate = wxPyBeginAllowThreads();
10742 result = wxFontMapper::GetEncodingDescription(arg1);
10743 wxPyEndAllowThreads(__tstate);
10744 if (PyErr_Occurred()) SWIG_fail;
10745 }
10746 {
10747#if wxUSE_UNICODE
10748 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10749#else
10750 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10751#endif
10752 }
10753 return resultobj;
10754fail:
10755 return NULL;
d14a1e28
RD
10756}
10757
10758
0085ce49
RD
10759SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10760 PyObject *resultobj = 0;
10761 wxString *arg1 = 0 ;
10762 wxFontEncoding result;
10763 bool temp1 = false ;
10764 PyObject * obj0 = 0 ;
10765 char * kwnames[] = {
10766 (char *) "name", NULL
10767 };
10768
10769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
10770 {
10771 arg1 = wxString_in_helper(obj0);
10772 if (arg1 == NULL) SWIG_fail;
10773 temp1 = true;
10774 }
10775 {
10776 PyThreadState* __tstate = wxPyBeginAllowThreads();
10777 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
10778 wxPyEndAllowThreads(__tstate);
10779 if (PyErr_Occurred()) SWIG_fail;
10780 }
10781 resultobj = SWIG_From_int(static_cast< int >(result));
10782 {
10783 if (temp1)
10784 delete arg1;
10785 }
10786 return resultobj;
10787fail:
10788 {
10789 if (temp1)
10790 delete arg1;
10791 }
10792 return NULL;
d14a1e28
RD
10793}
10794
10795
0085ce49
RD
10796SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10797 PyObject *resultobj = 0;
10798 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10799 wxString *arg2 = 0 ;
10800 void *argp1 = 0 ;
10801 int res1 = 0 ;
10802 bool temp2 = false ;
10803 PyObject * obj0 = 0 ;
10804 PyObject * obj1 = 0 ;
10805 char * kwnames[] = {
10806 (char *) "self",(char *) "prefix", NULL
10807 };
10808
10809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
10810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10811 if (!SWIG_IsOK(res1)) {
10812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10813 }
10814 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10815 {
10816 arg2 = wxString_in_helper(obj1);
10817 if (arg2 == NULL) SWIG_fail;
10818 temp2 = true;
10819 }
10820 {
10821 PyThreadState* __tstate = wxPyBeginAllowThreads();
10822 (arg1)->SetConfigPath((wxString const &)*arg2);
10823 wxPyEndAllowThreads(__tstate);
10824 if (PyErr_Occurred()) SWIG_fail;
10825 }
10826 resultobj = SWIG_Py_Void();
10827 {
10828 if (temp2)
10829 delete arg2;
10830 }
10831 return resultobj;
10832fail:
10833 {
10834 if (temp2)
10835 delete arg2;
10836 }
10837 return NULL;
d14a1e28
RD
10838}
10839
10840
0085ce49
RD
10841SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10842 PyObject *resultobj = 0;
10843 wxString result;
10844
10845 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
10846 {
10847 PyThreadState* __tstate = wxPyBeginAllowThreads();
10848 result = wxFontMapper::GetDefaultConfigPath();
10849 wxPyEndAllowThreads(__tstate);
10850 if (PyErr_Occurred()) SWIG_fail;
10851 }
10852 {
10853#if wxUSE_UNICODE
10854 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10855#else
10856 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10857#endif
10858 }
10859 return resultobj;
10860fail:
10861 return NULL;
10862}
10863
10864
10865SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10866 PyObject *resultobj = 0;
10867 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10868 wxFontEncoding arg2 ;
10869 wxString const &arg3_defvalue = wxPyEmptyString ;
10870 wxString *arg3 = (wxString *) &arg3_defvalue ;
10871 bool arg4 = (bool) true ;
10872 PyObject *result = 0 ;
10873 void *argp1 = 0 ;
10874 int res1 = 0 ;
10875 int val2 ;
10876 int ecode2 = 0 ;
10877 bool temp3 = false ;
10878 bool val4 ;
10879 int ecode4 = 0 ;
10880 PyObject * obj0 = 0 ;
10881 PyObject * obj1 = 0 ;
10882 PyObject * obj2 = 0 ;
10883 PyObject * obj3 = 0 ;
10884 char * kwnames[] = {
10885 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
10886 };
10887
10888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10890 if (!SWIG_IsOK(res1)) {
10891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10892 }
10893 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10894 ecode2 = SWIG_AsVal_int(obj1, &val2);
10895 if (!SWIG_IsOK(ecode2)) {
10896 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10897 }
10898 arg2 = static_cast< wxFontEncoding >(val2);
10899 if (obj2) {
093d3ff1 10900 {
0085ce49
RD
10901 arg3 = wxString_in_helper(obj2);
10902 if (arg3 == NULL) SWIG_fail;
10903 temp3 = true;
093d3ff1 10904 }
0085ce49
RD
10905 }
10906 if (obj3) {
10907 ecode4 = SWIG_AsVal_bool(obj3, &val4);
10908 if (!SWIG_IsOK(ecode4)) {
10909 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
10910 }
10911 arg4 = static_cast< bool >(val4);
10912 }
10913 {
10914 PyThreadState* __tstate = wxPyBeginAllowThreads();
10915 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
10916 wxPyEndAllowThreads(__tstate);
10917 if (PyErr_Occurred()) SWIG_fail;
10918 }
10919 resultobj = result;
10920 {
10921 if (temp3)
10922 delete arg3;
10923 }
10924 return resultobj;
10925fail:
10926 {
10927 if (temp3)
10928 delete arg3;
10929 }
10930 return NULL;
10931}
10932
10933
10934SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10935 PyObject *resultobj = 0;
10936 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10937 wxFontEncoding arg2 ;
10938 wxString const &arg3_defvalue = wxPyEmptyString ;
10939 wxString *arg3 = (wxString *) &arg3_defvalue ;
10940 bool result;
10941 void *argp1 = 0 ;
10942 int res1 = 0 ;
10943 int val2 ;
10944 int ecode2 = 0 ;
10945 bool temp3 = false ;
10946 PyObject * obj0 = 0 ;
10947 PyObject * obj1 = 0 ;
10948 PyObject * obj2 = 0 ;
10949 char * kwnames[] = {
10950 (char *) "self",(char *) "encoding",(char *) "facename", NULL
10951 };
10952
10953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10955 if (!SWIG_IsOK(res1)) {
10956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10957 }
10958 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10959 ecode2 = SWIG_AsVal_int(obj1, &val2);
10960 if (!SWIG_IsOK(ecode2)) {
10961 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10962 }
10963 arg2 = static_cast< wxFontEncoding >(val2);
10964 if (obj2) {
d14a1e28 10965 {
0085ce49
RD
10966 arg3 = wxString_in_helper(obj2);
10967 if (arg3 == NULL) SWIG_fail;
10968 temp3 = true;
d14a1e28 10969 }
0085ce49
RD
10970 }
10971 {
10972 PyThreadState* __tstate = wxPyBeginAllowThreads();
10973 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
10974 wxPyEndAllowThreads(__tstate);
10975 if (PyErr_Occurred()) SWIG_fail;
10976 }
10977 {
10978 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10979 }
10980 {
10981 if (temp3)
10982 delete arg3;
10983 }
10984 return resultobj;
10985fail:
10986 {
10987 if (temp3)
10988 delete arg3;
10989 }
10990 return NULL;
10991}
10992
10993
10994SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10995 PyObject *resultobj = 0;
10996 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10997 wxWindow *arg2 = (wxWindow *) 0 ;
10998 void *argp1 = 0 ;
10999 int res1 = 0 ;
11000 void *argp2 = 0 ;
11001 int res2 = 0 ;
11002 PyObject * obj0 = 0 ;
11003 PyObject * obj1 = 0 ;
11004 char * kwnames[] = {
11005 (char *) "self",(char *) "parent", NULL
11006 };
11007
11008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
11009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11010 if (!SWIG_IsOK(res1)) {
11011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11012 }
11013 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11014 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11015 if (!SWIG_IsOK(res2)) {
11016 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
11017 }
11018 arg2 = reinterpret_cast< wxWindow * >(argp2);
11019 {
11020 PyThreadState* __tstate = wxPyBeginAllowThreads();
11021 (arg1)->SetDialogParent(arg2);
11022 wxPyEndAllowThreads(__tstate);
11023 if (PyErr_Occurred()) SWIG_fail;
11024 }
11025 resultobj = SWIG_Py_Void();
11026 return resultobj;
11027fail:
11028 return NULL;
11029}
11030
11031
11032SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11033 PyObject *resultobj = 0;
11034 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11035 wxString *arg2 = 0 ;
11036 void *argp1 = 0 ;
11037 int res1 = 0 ;
11038 bool temp2 = false ;
11039 PyObject * obj0 = 0 ;
11040 PyObject * obj1 = 0 ;
11041 char * kwnames[] = {
11042 (char *) "self",(char *) "title", NULL
11043 };
11044
11045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
11046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11047 if (!SWIG_IsOK(res1)) {
11048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11049 }
11050 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11051 {
11052 arg2 = wxString_in_helper(obj1);
11053 if (arg2 == NULL) SWIG_fail;
11054 temp2 = true;
11055 }
11056 {
11057 PyThreadState* __tstate = wxPyBeginAllowThreads();
11058 (arg1)->SetDialogTitle((wxString const &)*arg2);
11059 wxPyEndAllowThreads(__tstate);
11060 if (PyErr_Occurred()) SWIG_fail;
11061 }
11062 resultobj = SWIG_Py_Void();
11063 {
11064 if (temp2)
11065 delete arg2;
11066 }
11067 return resultobj;
11068fail:
11069 {
11070 if (temp2)
11071 delete arg2;
11072 }
11073 return NULL;
11074}
11075
11076
11077SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11078 PyObject *obj;
11079 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11080 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
11081 return SWIG_Py_Void();
11082}
11083
11084SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11085 return SWIG_Python_InitShadowInstance(args);
11086}
11087
11088SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11089 PyObject *resultobj = 0;
11090 int arg1 ;
11091 int arg2 ;
11092 int arg3 ;
11093 int arg4 ;
11094 bool arg5 = (bool) false ;
11095 wxString const &arg6_defvalue = wxPyEmptyString ;
11096 wxString *arg6 = (wxString *) &arg6_defvalue ;
11097 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11098 wxFont *result = 0 ;
11099 int val1 ;
11100 int ecode1 = 0 ;
11101 int val2 ;
11102 int ecode2 = 0 ;
11103 int val3 ;
11104 int ecode3 = 0 ;
11105 int val4 ;
11106 int ecode4 = 0 ;
11107 bool val5 ;
11108 int ecode5 = 0 ;
11109 bool temp6 = false ;
11110 int val7 ;
11111 int ecode7 = 0 ;
11112 PyObject * obj0 = 0 ;
11113 PyObject * obj1 = 0 ;
11114 PyObject * obj2 = 0 ;
11115 PyObject * obj3 = 0 ;
11116 PyObject * obj4 = 0 ;
11117 PyObject * obj5 = 0 ;
11118 PyObject * obj6 = 0 ;
11119 char * kwnames[] = {
11120 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
11121 };
11122
11123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
11124 ecode1 = SWIG_AsVal_int(obj0, &val1);
11125 if (!SWIG_IsOK(ecode1)) {
11126 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
11127 }
11128 arg1 = static_cast< int >(val1);
11129 ecode2 = SWIG_AsVal_int(obj1, &val2);
11130 if (!SWIG_IsOK(ecode2)) {
11131 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
11132 }
11133 arg2 = static_cast< int >(val2);
11134 ecode3 = SWIG_AsVal_int(obj2, &val3);
11135 if (!SWIG_IsOK(ecode3)) {
11136 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
11137 }
11138 arg3 = static_cast< int >(val3);
11139 ecode4 = SWIG_AsVal_int(obj3, &val4);
11140 if (!SWIG_IsOK(ecode4)) {
11141 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
11142 }
11143 arg4 = static_cast< int >(val4);
11144 if (obj4) {
11145 ecode5 = SWIG_AsVal_bool(obj4, &val5);
11146 if (!SWIG_IsOK(ecode5)) {
11147 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
11148 }
11149 arg5 = static_cast< bool >(val5);
11150 }
11151 if (obj5) {
093d3ff1 11152 {
0085ce49
RD
11153 arg6 = wxString_in_helper(obj5);
11154 if (arg6 == NULL) SWIG_fail;
11155 temp6 = true;
093d3ff1 11156 }
0085ce49
RD
11157 }
11158 if (obj6) {
11159 ecode7 = SWIG_AsVal_int(obj6, &val7);
11160 if (!SWIG_IsOK(ecode7)) {
11161 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
11162 }
11163 arg7 = static_cast< wxFontEncoding >(val7);
11164 }
11165 {
11166 if (!wxPyCheckForApp()) SWIG_fail;
11167 PyThreadState* __tstate = wxPyBeginAllowThreads();
11168 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
11169 wxPyEndAllowThreads(__tstate);
11170 if (PyErr_Occurred()) SWIG_fail;
11171 }
11172 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
11173 {
11174 if (temp6)
11175 delete arg6;
11176 }
11177 return resultobj;
11178fail:
11179 {
11180 if (temp6)
11181 delete arg6;
11182 }
11183 return NULL;
d14a1e28
RD
11184}
11185
11186
0085ce49
RD
11187SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11188 PyObject *resultobj = 0;
11189 wxFont *arg1 = (wxFont *) 0 ;
11190 void *argp1 = 0 ;
11191 int res1 = 0 ;
11192 PyObject *swig_obj[1] ;
11193
11194 if (!args) SWIG_fail;
11195 swig_obj[0] = args;
11196 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
11197 if (!SWIG_IsOK(res1)) {
11198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
11199 }
11200 arg1 = reinterpret_cast< wxFont * >(argp1);
11201 {
11202 PyThreadState* __tstate = wxPyBeginAllowThreads();
11203 delete arg1;
d14a1e28 11204
0085ce49
RD
11205 wxPyEndAllowThreads(__tstate);
11206 if (PyErr_Occurred()) SWIG_fail;
11207 }
11208 resultobj = SWIG_Py_Void();
11209 return resultobj;
11210fail:
11211 return NULL;
11212}
11213
11214
11215SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11216 PyObject *resultobj = 0;
11217 wxNativeFontInfo *arg1 = 0 ;
11218 wxFont *result = 0 ;
11219 void *argp1 = 0 ;
11220 int res1 = 0 ;
11221 PyObject * obj0 = 0 ;
11222 char * kwnames[] = {
11223 (char *) "info", NULL
11224 };
11225
11226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
11227 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
11228 if (!SWIG_IsOK(res1)) {
11229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
11230 }
11231 if (!argp1) {
11232 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
11233 }
11234 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11235 {
11236 if (!wxPyCheckForApp()) SWIG_fail;
11237 PyThreadState* __tstate = wxPyBeginAllowThreads();
11238 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
11239 wxPyEndAllowThreads(__tstate);
11240 if (PyErr_Occurred()) SWIG_fail;
11241 }
11242 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11243 return resultobj;
11244fail:
11245 return NULL;
d14a1e28
RD
11246}
11247
11248
0085ce49
RD
11249SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11250 PyObject *resultobj = 0;
11251 wxString *arg1 = 0 ;
11252 wxFont *result = 0 ;
11253 bool temp1 = false ;
11254 PyObject * obj0 = 0 ;
11255 char * kwnames[] = {
11256 (char *) "info", NULL
11257 };
11258
11259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
11260 {
11261 arg1 = wxString_in_helper(obj0);
11262 if (arg1 == NULL) SWIG_fail;
11263 temp1 = true;
11264 }
11265 {
11266 if (!wxPyCheckForApp()) SWIG_fail;
11267 PyThreadState* __tstate = wxPyBeginAllowThreads();
11268 result = (wxFont *)new_wxFont((wxString const &)*arg1);
11269 wxPyEndAllowThreads(__tstate);
11270 if (PyErr_Occurred()) SWIG_fail;
11271 }
11272 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11273 {
11274 if (temp1)
11275 delete arg1;
11276 }
11277 return resultobj;
11278fail:
11279 {
11280 if (temp1)
11281 delete arg1;
11282 }
11283 return NULL;
11284}
11285
11286
11287SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11288 PyObject *resultobj = 0;
11289 int arg1 ;
11290 wxFontFamily arg2 ;
11291 int arg3 = (int) wxFONTFLAG_DEFAULT ;
11292 wxString const &arg4_defvalue = wxPyEmptyString ;
11293 wxString *arg4 = (wxString *) &arg4_defvalue ;
11294 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11295 wxFont *result = 0 ;
11296 int val1 ;
11297 int ecode1 = 0 ;
11298 int val2 ;
11299 int ecode2 = 0 ;
11300 int val3 ;
11301 int ecode3 = 0 ;
11302 bool temp4 = false ;
11303 int val5 ;
11304 int ecode5 = 0 ;
11305 PyObject * obj0 = 0 ;
11306 PyObject * obj1 = 0 ;
11307 PyObject * obj2 = 0 ;
11308 PyObject * obj3 = 0 ;
11309 PyObject * obj4 = 0 ;
11310 char * kwnames[] = {
11311 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
11312 };
11313
11314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11315 ecode1 = SWIG_AsVal_int(obj0, &val1);
11316 if (!SWIG_IsOK(ecode1)) {
11317 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
11318 }
11319 arg1 = static_cast< int >(val1);
11320 ecode2 = SWIG_AsVal_int(obj1, &val2);
11321 if (!SWIG_IsOK(ecode2)) {
11322 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
11323 }
11324 arg2 = static_cast< wxFontFamily >(val2);
11325 if (obj2) {
11326 ecode3 = SWIG_AsVal_int(obj2, &val3);
11327 if (!SWIG_IsOK(ecode3)) {
11328 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
11329 }
11330 arg3 = static_cast< int >(val3);
11331 }
11332 if (obj3) {
093d3ff1 11333 {
0085ce49
RD
11334 arg4 = wxString_in_helper(obj3);
11335 if (arg4 == NULL) SWIG_fail;
11336 temp4 = true;
093d3ff1 11337 }
0085ce49
RD
11338 }
11339 if (obj4) {
11340 ecode5 = SWIG_AsVal_int(obj4, &val5);
11341 if (!SWIG_IsOK(ecode5)) {
11342 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
11343 }
11344 arg5 = static_cast< wxFontEncoding >(val5);
11345 }
11346 {
11347 if (!wxPyCheckForApp()) SWIG_fail;
11348 PyThreadState* __tstate = wxPyBeginAllowThreads();
11349 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
11350 wxPyEndAllowThreads(__tstate);
11351 if (PyErr_Occurred()) SWIG_fail;
11352 }
11353 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11354 {
11355 if (temp4)
11356 delete arg4;
11357 }
11358 return resultobj;
11359fail:
11360 {
11361 if (temp4)
11362 delete arg4;
11363 }
11364 return NULL;
11365}
11366
11367
11368SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11369 PyObject *resultobj = 0;
11370 wxSize *arg1 = 0 ;
11371 int arg2 ;
11372 int arg3 ;
11373 int arg4 ;
11374 bool arg5 = (bool) false ;
11375 wxString const &arg6_defvalue = wxEmptyString ;
11376 wxString *arg6 = (wxString *) &arg6_defvalue ;
11377 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11378 wxFont *result = 0 ;
11379 wxSize temp1 ;
11380 int val2 ;
11381 int ecode2 = 0 ;
11382 int val3 ;
11383 int ecode3 = 0 ;
11384 int val4 ;
11385 int ecode4 = 0 ;
11386 bool val5 ;
11387 int ecode5 = 0 ;
11388 bool temp6 = false ;
11389 int val7 ;
11390 int ecode7 = 0 ;
11391 PyObject * obj0 = 0 ;
11392 PyObject * obj1 = 0 ;
11393 PyObject * obj2 = 0 ;
11394 PyObject * obj3 = 0 ;
11395 PyObject * obj4 = 0 ;
11396 PyObject * obj5 = 0 ;
11397 PyObject * obj6 = 0 ;
11398 char * kwnames[] = {
11399 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
11400 };
11401
11402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
11403 {
11404 arg1 = &temp1;
11405 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
11406 }
11407 ecode2 = SWIG_AsVal_int(obj1, &val2);
11408 if (!SWIG_IsOK(ecode2)) {
11409 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
11410 }
11411 arg2 = static_cast< int >(val2);
11412 ecode3 = SWIG_AsVal_int(obj2, &val3);
11413 if (!SWIG_IsOK(ecode3)) {
11414 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
11415 }
11416 arg3 = static_cast< int >(val3);
11417 ecode4 = SWIG_AsVal_int(obj3, &val4);
11418 if (!SWIG_IsOK(ecode4)) {
11419 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
11420 }
11421 arg4 = static_cast< int >(val4);
11422 if (obj4) {
11423 ecode5 = SWIG_AsVal_bool(obj4, &val5);
11424 if (!SWIG_IsOK(ecode5)) {
11425 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
11426 }
11427 arg5 = static_cast< bool >(val5);
11428 }
11429 if (obj5) {
d14a1e28 11430 {
0085ce49
RD
11431 arg6 = wxString_in_helper(obj5);
11432 if (arg6 == NULL) SWIG_fail;
11433 temp6 = true;
d14a1e28 11434 }
0085ce49
RD
11435 }
11436 if (obj6) {
11437 ecode7 = SWIG_AsVal_int(obj6, &val7);
11438 if (!SWIG_IsOK(ecode7)) {
11439 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
11440 }
11441 arg7 = static_cast< wxFontEncoding >(val7);
11442 }
11443 {
11444 if (!wxPyCheckForApp()) SWIG_fail;
11445 PyThreadState* __tstate = wxPyBeginAllowThreads();
11446 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
11447 wxPyEndAllowThreads(__tstate);
11448 if (PyErr_Occurred()) SWIG_fail;
11449 }
11450 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11451 {
11452 if (temp6)
11453 delete arg6;
11454 }
11455 return resultobj;
11456fail:
11457 {
11458 if (temp6)
11459 delete arg6;
11460 }
11461 return NULL;
11462}
11463
11464
11465SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11466 PyObject *resultobj = 0;
11467 wxSize *arg1 = 0 ;
11468 wxFontFamily arg2 ;
11469 int arg3 = (int) wxFONTFLAG_DEFAULT ;
11470 wxString const &arg4_defvalue = wxEmptyString ;
11471 wxString *arg4 = (wxString *) &arg4_defvalue ;
11472 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11473 wxFont *result = 0 ;
11474 wxSize temp1 ;
11475 int val2 ;
11476 int ecode2 = 0 ;
11477 int val3 ;
11478 int ecode3 = 0 ;
11479 bool temp4 = false ;
11480 int val5 ;
11481 int ecode5 = 0 ;
11482 PyObject * obj0 = 0 ;
11483 PyObject * obj1 = 0 ;
11484 PyObject * obj2 = 0 ;
11485 PyObject * obj3 = 0 ;
11486 PyObject * obj4 = 0 ;
11487 char * kwnames[] = {
11488 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
11489 };
11490
11491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11492 {
11493 arg1 = &temp1;
11494 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
11495 }
11496 ecode2 = SWIG_AsVal_int(obj1, &val2);
11497 if (!SWIG_IsOK(ecode2)) {
11498 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
11499 }
11500 arg2 = static_cast< wxFontFamily >(val2);
11501 if (obj2) {
11502 ecode3 = SWIG_AsVal_int(obj2, &val3);
11503 if (!SWIG_IsOK(ecode3)) {
11504 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
11505 }
11506 arg3 = static_cast< int >(val3);
11507 }
11508 if (obj3) {
093d3ff1 11509 {
0085ce49
RD
11510 arg4 = wxString_in_helper(obj3);
11511 if (arg4 == NULL) SWIG_fail;
11512 temp4 = true;
093d3ff1 11513 }
0085ce49
RD
11514 }
11515 if (obj4) {
11516 ecode5 = SWIG_AsVal_int(obj4, &val5);
11517 if (!SWIG_IsOK(ecode5)) {
11518 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
11519 }
11520 arg5 = static_cast< wxFontEncoding >(val5);
11521 }
11522 {
11523 if (!wxPyCheckForApp()) SWIG_fail;
11524 PyThreadState* __tstate = wxPyBeginAllowThreads();
11525 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
11526 wxPyEndAllowThreads(__tstate);
11527 if (PyErr_Occurred()) SWIG_fail;
11528 }
11529 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11530 {
11531 if (temp4)
11532 delete arg4;
11533 }
11534 return resultobj;
11535fail:
11536 {
11537 if (temp4)
11538 delete arg4;
11539 }
11540 return NULL;
d14a1e28
RD
11541}
11542
11543
0085ce49
RD
11544SWIGINTERN PyObject *_wrap_Font_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11545 PyObject *resultobj = 0;
11546 wxFont *arg1 = (wxFont *) 0 ;
11547 bool result;
11548 void *argp1 = 0 ;
11549 int res1 = 0 ;
11550 PyObject *swig_obj[1] ;
11551
11552 if (!args) SWIG_fail;
11553 swig_obj[0] = args;
11554 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11555 if (!SWIG_IsOK(res1)) {
11556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_Ok" "', expected argument " "1"" of type '" "wxFont const *""'");
11557 }
11558 arg1 = reinterpret_cast< wxFont * >(argp1);
11559 {
11560 PyThreadState* __tstate = wxPyBeginAllowThreads();
11561 result = (bool)((wxFont const *)arg1)->Ok();
11562 wxPyEndAllowThreads(__tstate);
11563 if (PyErr_Occurred()) SWIG_fail;
11564 }
11565 {
11566 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11567 }
11568 return resultobj;
11569fail:
11570 return NULL;
11571}
11572
11573
11574SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11575 PyObject *resultobj = 0;
11576 wxFont *arg1 = (wxFont *) 0 ;
11577 wxFont *arg2 = (wxFont *) 0 ;
11578 bool result;
11579 void *argp1 = 0 ;
11580 int res1 = 0 ;
11581 void *argp2 = 0 ;
11582 int res2 = 0 ;
11583 PyObject * obj0 = 0 ;
11584 PyObject * obj1 = 0 ;
11585 char * kwnames[] = {
11586 (char *) "self",(char *) "other", NULL
11587 };
11588
11589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
11590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11591 if (!SWIG_IsOK(res1)) {
11592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
11593 }
11594 arg1 = reinterpret_cast< wxFont * >(argp1);
11595 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
11596 if (!SWIG_IsOK(res2)) {
11597 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
11598 }
11599 arg2 = reinterpret_cast< wxFont * >(argp2);
11600 {
11601 PyThreadState* __tstate = wxPyBeginAllowThreads();
11602 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
11603 wxPyEndAllowThreads(__tstate);
11604 if (PyErr_Occurred()) SWIG_fail;
11605 }
11606 {
11607 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11608 }
11609 return resultobj;
11610fail:
11611 return NULL;
11612}
11613
11614
11615SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11616 PyObject *resultobj = 0;
11617 wxFont *arg1 = (wxFont *) 0 ;
11618 wxFont *arg2 = (wxFont *) 0 ;
11619 bool result;
11620 void *argp1 = 0 ;
11621 int res1 = 0 ;
11622 void *argp2 = 0 ;
11623 int res2 = 0 ;
11624 PyObject * obj0 = 0 ;
11625 PyObject * obj1 = 0 ;
11626 char * kwnames[] = {
11627 (char *) "self",(char *) "other", NULL
11628 };
11629
11630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
11631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11632 if (!SWIG_IsOK(res1)) {
11633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
11634 }
11635 arg1 = reinterpret_cast< wxFont * >(argp1);
11636 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
11637 if (!SWIG_IsOK(res2)) {
11638 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
11639 }
11640 arg2 = reinterpret_cast< wxFont * >(argp2);
11641 {
11642 PyThreadState* __tstate = wxPyBeginAllowThreads();
11643 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
11644 wxPyEndAllowThreads(__tstate);
11645 if (PyErr_Occurred()) SWIG_fail;
11646 }
11647 {
11648 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11649 }
11650 return resultobj;
11651fail:
11652 return NULL;
d14a1e28
RD
11653}
11654
11655
0085ce49
RD
11656SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11657 PyObject *resultobj = 0;
11658 wxFont *arg1 = (wxFont *) 0 ;
11659 int result;
11660 void *argp1 = 0 ;
11661 int res1 = 0 ;
11662 PyObject *swig_obj[1] ;
11663
11664 if (!args) SWIG_fail;
11665 swig_obj[0] = args;
11666 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11667 if (!SWIG_IsOK(res1)) {
11668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
11669 }
11670 arg1 = reinterpret_cast< wxFont * >(argp1);
11671 {
11672 PyThreadState* __tstate = wxPyBeginAllowThreads();
11673 result = (int)((wxFont const *)arg1)->GetPointSize();
11674 wxPyEndAllowThreads(__tstate);
11675 if (PyErr_Occurred()) SWIG_fail;
11676 }
11677 resultobj = SWIG_From_int(static_cast< int >(result));
11678 return resultobj;
11679fail:
11680 return NULL;
d14a1e28
RD
11681}
11682
11683
0085ce49
RD
11684SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11685 PyObject *resultobj = 0;
11686 wxFont *arg1 = (wxFont *) 0 ;
11687 wxSize result;
11688 void *argp1 = 0 ;
11689 int res1 = 0 ;
11690 PyObject *swig_obj[1] ;
11691
11692 if (!args) SWIG_fail;
11693 swig_obj[0] = args;
11694 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11695 if (!SWIG_IsOK(res1)) {
11696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
11697 }
11698 arg1 = reinterpret_cast< wxFont * >(argp1);
11699 {
11700 PyThreadState* __tstate = wxPyBeginAllowThreads();
11701 result = ((wxFont const *)arg1)->GetPixelSize();
11702 wxPyEndAllowThreads(__tstate);
11703 if (PyErr_Occurred()) SWIG_fail;
11704 }
11705 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
11706 return resultobj;
11707fail:
11708 return NULL;
d14a1e28
RD
11709}
11710
11711
0085ce49
RD
11712SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11713 PyObject *resultobj = 0;
11714 wxFont *arg1 = (wxFont *) 0 ;
11715 bool result;
11716 void *argp1 = 0 ;
11717 int res1 = 0 ;
11718 PyObject *swig_obj[1] ;
11719
11720 if (!args) SWIG_fail;
11721 swig_obj[0] = args;
11722 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11723 if (!SWIG_IsOK(res1)) {
11724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
11725 }
11726 arg1 = reinterpret_cast< wxFont * >(argp1);
11727 {
11728 PyThreadState* __tstate = wxPyBeginAllowThreads();
11729 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
11730 wxPyEndAllowThreads(__tstate);
11731 if (PyErr_Occurred()) SWIG_fail;
11732 }
11733 {
11734 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11735 }
11736 return resultobj;
11737fail:
11738 return NULL;
d14a1e28
RD
11739}
11740
11741
0085ce49
RD
11742SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11743 PyObject *resultobj = 0;
11744 wxFont *arg1 = (wxFont *) 0 ;
11745 int result;
11746 void *argp1 = 0 ;
11747 int res1 = 0 ;
11748 PyObject *swig_obj[1] ;
11749
11750 if (!args) SWIG_fail;
11751 swig_obj[0] = args;
11752 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11753 if (!SWIG_IsOK(res1)) {
11754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
11755 }
11756 arg1 = reinterpret_cast< wxFont * >(argp1);
11757 {
11758 PyThreadState* __tstate = wxPyBeginAllowThreads();
11759 result = (int)((wxFont const *)arg1)->GetFamily();
11760 wxPyEndAllowThreads(__tstate);
11761 if (PyErr_Occurred()) SWIG_fail;
11762 }
11763 resultobj = SWIG_From_int(static_cast< int >(result));
11764 return resultobj;
11765fail:
11766 return NULL;
d14a1e28
RD
11767}
11768
11769
0085ce49
RD
11770SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11771 PyObject *resultobj = 0;
11772 wxFont *arg1 = (wxFont *) 0 ;
11773 int result;
11774 void *argp1 = 0 ;
11775 int res1 = 0 ;
11776 PyObject *swig_obj[1] ;
11777
11778 if (!args) SWIG_fail;
11779 swig_obj[0] = args;
11780 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11781 if (!SWIG_IsOK(res1)) {
11782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
11783 }
11784 arg1 = reinterpret_cast< wxFont * >(argp1);
11785 {
11786 PyThreadState* __tstate = wxPyBeginAllowThreads();
11787 result = (int)((wxFont const *)arg1)->GetStyle();
11788 wxPyEndAllowThreads(__tstate);
11789 if (PyErr_Occurred()) SWIG_fail;
11790 }
11791 resultobj = SWIG_From_int(static_cast< int >(result));
11792 return resultobj;
11793fail:
11794 return NULL;
d14a1e28
RD
11795}
11796
11797
0085ce49
RD
11798SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11799 PyObject *resultobj = 0;
11800 wxFont *arg1 = (wxFont *) 0 ;
11801 int result;
11802 void *argp1 = 0 ;
11803 int res1 = 0 ;
11804 PyObject *swig_obj[1] ;
11805
11806 if (!args) SWIG_fail;
11807 swig_obj[0] = args;
11808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11809 if (!SWIG_IsOK(res1)) {
11810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
11811 }
11812 arg1 = reinterpret_cast< wxFont * >(argp1);
11813 {
11814 PyThreadState* __tstate = wxPyBeginAllowThreads();
11815 result = (int)((wxFont const *)arg1)->GetWeight();
11816 wxPyEndAllowThreads(__tstate);
11817 if (PyErr_Occurred()) SWIG_fail;
11818 }
11819 resultobj = SWIG_From_int(static_cast< int >(result));
11820 return resultobj;
11821fail:
11822 return NULL;
d14a1e28
RD
11823}
11824
11825
0085ce49
RD
11826SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11827 PyObject *resultobj = 0;
11828 wxFont *arg1 = (wxFont *) 0 ;
11829 bool result;
11830 void *argp1 = 0 ;
11831 int res1 = 0 ;
11832 PyObject *swig_obj[1] ;
11833
11834 if (!args) SWIG_fail;
11835 swig_obj[0] = args;
11836 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11837 if (!SWIG_IsOK(res1)) {
11838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
11839 }
11840 arg1 = reinterpret_cast< wxFont * >(argp1);
11841 {
11842 PyThreadState* __tstate = wxPyBeginAllowThreads();
11843 result = (bool)((wxFont const *)arg1)->GetUnderlined();
11844 wxPyEndAllowThreads(__tstate);
11845 if (PyErr_Occurred()) SWIG_fail;
11846 }
11847 {
11848 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11849 }
11850 return resultobj;
11851fail:
11852 return NULL;
d14a1e28
RD
11853}
11854
11855
0085ce49
RD
11856SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11857 PyObject *resultobj = 0;
11858 wxFont *arg1 = (wxFont *) 0 ;
11859 wxString result;
11860 void *argp1 = 0 ;
11861 int res1 = 0 ;
11862 PyObject *swig_obj[1] ;
11863
11864 if (!args) SWIG_fail;
11865 swig_obj[0] = args;
11866 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11867 if (!SWIG_IsOK(res1)) {
11868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
11869 }
11870 arg1 = reinterpret_cast< wxFont * >(argp1);
11871 {
11872 PyThreadState* __tstate = wxPyBeginAllowThreads();
11873 result = ((wxFont const *)arg1)->GetFaceName();
11874 wxPyEndAllowThreads(__tstate);
11875 if (PyErr_Occurred()) SWIG_fail;
11876 }
11877 {
11878#if wxUSE_UNICODE
11879 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11880#else
11881 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11882#endif
11883 }
11884 return resultobj;
11885fail:
11886 return NULL;
d14a1e28
RD
11887}
11888
11889
0085ce49
RD
11890SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11891 PyObject *resultobj = 0;
11892 wxFont *arg1 = (wxFont *) 0 ;
11893 wxFontEncoding result;
11894 void *argp1 = 0 ;
11895 int res1 = 0 ;
11896 PyObject *swig_obj[1] ;
11897
11898 if (!args) SWIG_fail;
11899 swig_obj[0] = args;
11900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11901 if (!SWIG_IsOK(res1)) {
11902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
11903 }
11904 arg1 = reinterpret_cast< wxFont * >(argp1);
11905 {
11906 PyThreadState* __tstate = wxPyBeginAllowThreads();
11907 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
11908 wxPyEndAllowThreads(__tstate);
11909 if (PyErr_Occurred()) SWIG_fail;
11910 }
11911 resultobj = SWIG_From_int(static_cast< int >(result));
11912 return resultobj;
11913fail:
11914 return NULL;
d14a1e28
RD
11915}
11916
11917
0085ce49
RD
11918SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11919 PyObject *resultobj = 0;
11920 wxFont *arg1 = (wxFont *) 0 ;
11921 wxNativeFontInfo *result = 0 ;
11922 void *argp1 = 0 ;
11923 int res1 = 0 ;
11924 PyObject *swig_obj[1] ;
11925
11926 if (!args) SWIG_fail;
11927 swig_obj[0] = args;
11928 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11929 if (!SWIG_IsOK(res1)) {
11930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
11931 }
11932 arg1 = reinterpret_cast< wxFont * >(argp1);
11933 {
11934 PyThreadState* __tstate = wxPyBeginAllowThreads();
11935 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
11936 wxPyEndAllowThreads(__tstate);
11937 if (PyErr_Occurred()) SWIG_fail;
11938 }
11939 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11940 return resultobj;
11941fail:
11942 return NULL;
d14a1e28
RD
11943}
11944
11945
0085ce49
RD
11946SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11947 PyObject *resultobj = 0;
11948 wxFont *arg1 = (wxFont *) 0 ;
11949 bool result;
11950 void *argp1 = 0 ;
11951 int res1 = 0 ;
11952 PyObject *swig_obj[1] ;
11953
11954 if (!args) SWIG_fail;
11955 swig_obj[0] = args;
11956 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11957 if (!SWIG_IsOK(res1)) {
11958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
11959 }
11960 arg1 = reinterpret_cast< wxFont * >(argp1);
11961 {
11962 PyThreadState* __tstate = wxPyBeginAllowThreads();
11963 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
11964 wxPyEndAllowThreads(__tstate);
11965 if (PyErr_Occurred()) SWIG_fail;
11966 }
11967 {
11968 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11969 }
11970 return resultobj;
11971fail:
11972 return NULL;
d14a1e28
RD
11973}
11974
11975
0085ce49
RD
11976SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11977 PyObject *resultobj = 0;
11978 wxFont *arg1 = (wxFont *) 0 ;
11979 wxString result;
11980 void *argp1 = 0 ;
11981 int res1 = 0 ;
11982 PyObject *swig_obj[1] ;
11983
11984 if (!args) SWIG_fail;
11985 swig_obj[0] = args;
11986 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11987 if (!SWIG_IsOK(res1)) {
11988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
11989 }
11990 arg1 = reinterpret_cast< wxFont * >(argp1);
11991 {
11992 PyThreadState* __tstate = wxPyBeginAllowThreads();
11993 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
11994 wxPyEndAllowThreads(__tstate);
11995 if (PyErr_Occurred()) SWIG_fail;
11996 }
11997 {
11998#if wxUSE_UNICODE
11999 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12000#else
12001 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12002#endif
12003 }
12004 return resultobj;
12005fail:
12006 return NULL;
d14a1e28
RD
12007}
12008
12009
0085ce49
RD
12010SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12011 PyObject *resultobj = 0;
12012 wxFont *arg1 = (wxFont *) 0 ;
12013 wxString result;
12014 void *argp1 = 0 ;
12015 int res1 = 0 ;
12016 PyObject *swig_obj[1] ;
12017
12018 if (!args) SWIG_fail;
12019 swig_obj[0] = args;
12020 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12021 if (!SWIG_IsOK(res1)) {
12022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
12023 }
12024 arg1 = reinterpret_cast< wxFont * >(argp1);
12025 {
12026 PyThreadState* __tstate = wxPyBeginAllowThreads();
12027 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
12028 wxPyEndAllowThreads(__tstate);
12029 if (PyErr_Occurred()) SWIG_fail;
12030 }
12031 {
12032#if wxUSE_UNICODE
12033 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12034#else
12035 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12036#endif
12037 }
12038 return resultobj;
12039fail:
12040 return NULL;
12041}
12042
12043
12044SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12045 PyObject *resultobj = 0;
12046 wxFont *arg1 = (wxFont *) 0 ;
12047 int arg2 ;
12048 void *argp1 = 0 ;
12049 int res1 = 0 ;
12050 int val2 ;
12051 int ecode2 = 0 ;
12052 PyObject * obj0 = 0 ;
12053 PyObject * obj1 = 0 ;
12054 char * kwnames[] = {
12055 (char *) "self",(char *) "pointSize", NULL
12056 };
12057
12058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12060 if (!SWIG_IsOK(res1)) {
12061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
12062 }
12063 arg1 = reinterpret_cast< wxFont * >(argp1);
12064 ecode2 = SWIG_AsVal_int(obj1, &val2);
12065 if (!SWIG_IsOK(ecode2)) {
12066 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12067 }
12068 arg2 = static_cast< int >(val2);
12069 {
12070 PyThreadState* __tstate = wxPyBeginAllowThreads();
12071 (arg1)->SetPointSize(arg2);
12072 wxPyEndAllowThreads(__tstate);
12073 if (PyErr_Occurred()) SWIG_fail;
12074 }
12075 resultobj = SWIG_Py_Void();
12076 return resultobj;
12077fail:
12078 return NULL;
12079}
12080
12081
12082SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12083 PyObject *resultobj = 0;
12084 wxFont *arg1 = (wxFont *) 0 ;
12085 wxSize *arg2 = 0 ;
12086 void *argp1 = 0 ;
12087 int res1 = 0 ;
12088 wxSize temp2 ;
12089 PyObject * obj0 = 0 ;
12090 PyObject * obj1 = 0 ;
12091 char * kwnames[] = {
12092 (char *) "self",(char *) "pixelSize", NULL
12093 };
12094
12095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
12096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12097 if (!SWIG_IsOK(res1)) {
12098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
12099 }
12100 arg1 = reinterpret_cast< wxFont * >(argp1);
12101 {
12102 arg2 = &temp2;
12103 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
12104 }
12105 {
12106 PyThreadState* __tstate = wxPyBeginAllowThreads();
12107 (arg1)->SetPixelSize((wxSize const &)*arg2);
12108 wxPyEndAllowThreads(__tstate);
12109 if (PyErr_Occurred()) SWIG_fail;
12110 }
12111 resultobj = SWIG_Py_Void();
12112 return resultobj;
12113fail:
12114 return NULL;
12115}
12116
12117
12118SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12119 PyObject *resultobj = 0;
12120 wxFont *arg1 = (wxFont *) 0 ;
12121 int arg2 ;
12122 void *argp1 = 0 ;
12123 int res1 = 0 ;
12124 int val2 ;
12125 int ecode2 = 0 ;
12126 PyObject * obj0 = 0 ;
12127 PyObject * obj1 = 0 ;
12128 char * kwnames[] = {
12129 (char *) "self",(char *) "family", NULL
12130 };
12131
12132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12134 if (!SWIG_IsOK(res1)) {
12135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
12136 }
12137 arg1 = reinterpret_cast< wxFont * >(argp1);
12138 ecode2 = SWIG_AsVal_int(obj1, &val2);
12139 if (!SWIG_IsOK(ecode2)) {
12140 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
12141 }
12142 arg2 = static_cast< int >(val2);
12143 {
12144 PyThreadState* __tstate = wxPyBeginAllowThreads();
12145 (arg1)->SetFamily(arg2);
12146 wxPyEndAllowThreads(__tstate);
12147 if (PyErr_Occurred()) SWIG_fail;
12148 }
12149 resultobj = SWIG_Py_Void();
12150 return resultobj;
12151fail:
12152 return NULL;
12153}
12154
12155
12156SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12157 PyObject *resultobj = 0;
12158 wxFont *arg1 = (wxFont *) 0 ;
12159 int arg2 ;
12160 void *argp1 = 0 ;
12161 int res1 = 0 ;
12162 int val2 ;
12163 int ecode2 = 0 ;
12164 PyObject * obj0 = 0 ;
12165 PyObject * obj1 = 0 ;
12166 char * kwnames[] = {
12167 (char *) "self",(char *) "style", NULL
12168 };
12169
12170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12172 if (!SWIG_IsOK(res1)) {
12173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
12174 }
12175 arg1 = reinterpret_cast< wxFont * >(argp1);
12176 ecode2 = SWIG_AsVal_int(obj1, &val2);
12177 if (!SWIG_IsOK(ecode2)) {
12178 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
12179 }
12180 arg2 = static_cast< int >(val2);
12181 {
12182 PyThreadState* __tstate = wxPyBeginAllowThreads();
12183 (arg1)->SetStyle(arg2);
12184 wxPyEndAllowThreads(__tstate);
12185 if (PyErr_Occurred()) SWIG_fail;
12186 }
12187 resultobj = SWIG_Py_Void();
12188 return resultobj;
12189fail:
12190 return NULL;
12191}
12192
12193
12194SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12195 PyObject *resultobj = 0;
12196 wxFont *arg1 = (wxFont *) 0 ;
12197 int arg2 ;
12198 void *argp1 = 0 ;
12199 int res1 = 0 ;
12200 int val2 ;
12201 int ecode2 = 0 ;
12202 PyObject * obj0 = 0 ;
12203 PyObject * obj1 = 0 ;
12204 char * kwnames[] = {
12205 (char *) "self",(char *) "weight", NULL
12206 };
12207
12208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12210 if (!SWIG_IsOK(res1)) {
12211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
12212 }
12213 arg1 = reinterpret_cast< wxFont * >(argp1);
12214 ecode2 = SWIG_AsVal_int(obj1, &val2);
12215 if (!SWIG_IsOK(ecode2)) {
12216 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
12217 }
12218 arg2 = static_cast< int >(val2);
12219 {
12220 PyThreadState* __tstate = wxPyBeginAllowThreads();
12221 (arg1)->SetWeight(arg2);
12222 wxPyEndAllowThreads(__tstate);
12223 if (PyErr_Occurred()) SWIG_fail;
12224 }
12225 resultobj = SWIG_Py_Void();
12226 return resultobj;
12227fail:
12228 return NULL;
12229}
12230
12231
12232SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12233 PyObject *resultobj = 0;
12234 wxFont *arg1 = (wxFont *) 0 ;
12235 wxString *arg2 = 0 ;
704eda0c 12236 bool result;
0085ce49
RD
12237 void *argp1 = 0 ;
12238 int res1 = 0 ;
12239 bool temp2 = false ;
12240 PyObject * obj0 = 0 ;
12241 PyObject * obj1 = 0 ;
12242 char * kwnames[] = {
12243 (char *) "self",(char *) "faceName", NULL
12244 };
12245
12246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12248 if (!SWIG_IsOK(res1)) {
12249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
12250 }
12251 arg1 = reinterpret_cast< wxFont * >(argp1);
12252 {
12253 arg2 = wxString_in_helper(obj1);
12254 if (arg2 == NULL) SWIG_fail;
12255 temp2 = true;
12256 }
12257 {
12258 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 12259 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
0085ce49
RD
12260 wxPyEndAllowThreads(__tstate);
12261 if (PyErr_Occurred()) SWIG_fail;
12262 }
704eda0c
RD
12263 {
12264 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12265 }
0085ce49
RD
12266 {
12267 if (temp2)
12268 delete arg2;
12269 }
12270 return resultobj;
12271fail:
12272 {
12273 if (temp2)
12274 delete arg2;
12275 }
12276 return NULL;
12277}
12278
12279
12280SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12281 PyObject *resultobj = 0;
12282 wxFont *arg1 = (wxFont *) 0 ;
12283 bool arg2 ;
12284 void *argp1 = 0 ;
12285 int res1 = 0 ;
12286 bool val2 ;
12287 int ecode2 = 0 ;
12288 PyObject * obj0 = 0 ;
12289 PyObject * obj1 = 0 ;
12290 char * kwnames[] = {
12291 (char *) "self",(char *) "underlined", NULL
12292 };
12293
12294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",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_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
12298 }
12299 arg1 = reinterpret_cast< wxFont * >(argp1);
12300 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12301 if (!SWIG_IsOK(ecode2)) {
12302 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12303 }
12304 arg2 = static_cast< bool >(val2);
12305 {
12306 PyThreadState* __tstate = wxPyBeginAllowThreads();
12307 (arg1)->SetUnderlined(arg2);
12308 wxPyEndAllowThreads(__tstate);
12309 if (PyErr_Occurred()) SWIG_fail;
12310 }
12311 resultobj = SWIG_Py_Void();
12312 return resultobj;
12313fail:
12314 return NULL;
12315}
12316
12317
12318SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12319 PyObject *resultobj = 0;
12320 wxFont *arg1 = (wxFont *) 0 ;
12321 wxFontEncoding arg2 ;
12322 void *argp1 = 0 ;
12323 int res1 = 0 ;
12324 int val2 ;
12325 int ecode2 = 0 ;
12326 PyObject * obj0 = 0 ;
12327 PyObject * obj1 = 0 ;
12328 char * kwnames[] = {
12329 (char *) "self",(char *) "encoding", NULL
12330 };
12331
12332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12334 if (!SWIG_IsOK(res1)) {
12335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
12336 }
12337 arg1 = reinterpret_cast< wxFont * >(argp1);
12338 ecode2 = SWIG_AsVal_int(obj1, &val2);
12339 if (!SWIG_IsOK(ecode2)) {
12340 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12341 }
12342 arg2 = static_cast< wxFontEncoding >(val2);
12343 {
12344 PyThreadState* __tstate = wxPyBeginAllowThreads();
12345 (arg1)->SetEncoding(arg2);
12346 wxPyEndAllowThreads(__tstate);
12347 if (PyErr_Occurred()) SWIG_fail;
12348 }
12349 resultobj = SWIG_Py_Void();
12350 return resultobj;
12351fail:
12352 return NULL;
12353}
12354
12355
12356SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12357 PyObject *resultobj = 0;
12358 wxFont *arg1 = (wxFont *) 0 ;
12359 wxNativeFontInfo *arg2 = 0 ;
12360 void *argp1 = 0 ;
12361 int res1 = 0 ;
12362 void *argp2 = 0 ;
12363 int res2 = 0 ;
12364 PyObject * obj0 = 0 ;
12365 PyObject * obj1 = 0 ;
12366 char * kwnames[] = {
12367 (char *) "self",(char *) "info", NULL
12368 };
12369
12370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
12371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12372 if (!SWIG_IsOK(res1)) {
12373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
12374 }
12375 arg1 = reinterpret_cast< wxFont * >(argp1);
12376 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
12377 if (!SWIG_IsOK(res2)) {
12378 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
12379 }
12380 if (!argp2) {
12381 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
12382 }
12383 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
12384 {
12385 PyThreadState* __tstate = wxPyBeginAllowThreads();
12386 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
12387 wxPyEndAllowThreads(__tstate);
12388 if (PyErr_Occurred()) SWIG_fail;
12389 }
12390 resultobj = SWIG_Py_Void();
12391 return resultobj;
12392fail:
12393 return NULL;
12394}
12395
12396
12397SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12398 PyObject *resultobj = 0;
12399 wxFont *arg1 = (wxFont *) 0 ;
12400 wxString *arg2 = 0 ;
704eda0c 12401 bool result;
0085ce49
RD
12402 void *argp1 = 0 ;
12403 int res1 = 0 ;
12404 bool temp2 = false ;
12405 PyObject * obj0 = 0 ;
12406 PyObject * obj1 = 0 ;
12407 char * kwnames[] = {
12408 (char *) "self",(char *) "info", NULL
12409 };
12410
12411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
12412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12413 if (!SWIG_IsOK(res1)) {
12414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
12415 }
12416 arg1 = reinterpret_cast< wxFont * >(argp1);
12417 {
12418 arg2 = wxString_in_helper(obj1);
12419 if (arg2 == NULL) SWIG_fail;
12420 temp2 = true;
12421 }
12422 {
12423 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 12424 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
0085ce49
RD
12425 wxPyEndAllowThreads(__tstate);
12426 if (PyErr_Occurred()) SWIG_fail;
12427 }
704eda0c
RD
12428 {
12429 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12430 }
0085ce49
RD
12431 {
12432 if (temp2)
12433 delete arg2;
12434 }
12435 return resultobj;
12436fail:
12437 {
12438 if (temp2)
12439 delete arg2;
12440 }
12441 return NULL;
d14a1e28
RD
12442}
12443
12444
0085ce49
RD
12445SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12446 PyObject *resultobj = 0;
12447 wxFont *arg1 = (wxFont *) 0 ;
12448 wxString *arg2 = 0 ;
704eda0c 12449 bool result;
0085ce49
RD
12450 void *argp1 = 0 ;
12451 int res1 = 0 ;
12452 bool temp2 = false ;
12453 PyObject * obj0 = 0 ;
12454 PyObject * obj1 = 0 ;
12455 char * kwnames[] = {
12456 (char *) "self",(char *) "info", NULL
12457 };
12458
12459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
12460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12461 if (!SWIG_IsOK(res1)) {
12462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
12463 }
12464 arg1 = reinterpret_cast< wxFont * >(argp1);
12465 {
12466 arg2 = wxString_in_helper(obj1);
12467 if (arg2 == NULL) SWIG_fail;
12468 temp2 = true;
12469 }
12470 {
12471 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 12472 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
0085ce49
RD
12473 wxPyEndAllowThreads(__tstate);
12474 if (PyErr_Occurred()) SWIG_fail;
12475 }
704eda0c
RD
12476 {
12477 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12478 }
0085ce49
RD
12479 {
12480 if (temp2)
12481 delete arg2;
12482 }
12483 return resultobj;
12484fail:
12485 {
12486 if (temp2)
12487 delete arg2;
12488 }
12489 return NULL;
d14a1e28
RD
12490}
12491
12492
0085ce49
RD
12493SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12494 PyObject *resultobj = 0;
12495 wxFont *arg1 = (wxFont *) 0 ;
12496 wxString result;
12497 void *argp1 = 0 ;
12498 int res1 = 0 ;
12499 PyObject *swig_obj[1] ;
12500
12501 if (!args) SWIG_fail;
12502 swig_obj[0] = args;
12503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12504 if (!SWIG_IsOK(res1)) {
12505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
12506 }
12507 arg1 = reinterpret_cast< wxFont * >(argp1);
12508 {
12509 PyThreadState* __tstate = wxPyBeginAllowThreads();
12510 result = ((wxFont const *)arg1)->GetFamilyString();
12511 wxPyEndAllowThreads(__tstate);
12512 if (PyErr_Occurred()) SWIG_fail;
12513 }
12514 {
12515#if wxUSE_UNICODE
12516 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12517#else
12518 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12519#endif
12520 }
12521 return resultobj;
12522fail:
12523 return NULL;
d14a1e28
RD
12524}
12525
12526
0085ce49
RD
12527SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12528 PyObject *resultobj = 0;
12529 wxFont *arg1 = (wxFont *) 0 ;
12530 wxString result;
12531 void *argp1 = 0 ;
12532 int res1 = 0 ;
12533 PyObject *swig_obj[1] ;
12534
12535 if (!args) SWIG_fail;
12536 swig_obj[0] = args;
12537 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12538 if (!SWIG_IsOK(res1)) {
12539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
12540 }
12541 arg1 = reinterpret_cast< wxFont * >(argp1);
12542 {
12543 PyThreadState* __tstate = wxPyBeginAllowThreads();
12544 result = ((wxFont const *)arg1)->GetStyleString();
12545 wxPyEndAllowThreads(__tstate);
12546 if (PyErr_Occurred()) SWIG_fail;
12547 }
12548 {
12549#if wxUSE_UNICODE
12550 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12551#else
12552 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12553#endif
12554 }
12555 return resultobj;
12556fail:
12557 return NULL;
d14a1e28
RD
12558}
12559
12560
0085ce49
RD
12561SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12562 PyObject *resultobj = 0;
12563 wxFont *arg1 = (wxFont *) 0 ;
12564 wxString result;
12565 void *argp1 = 0 ;
12566 int res1 = 0 ;
12567 PyObject *swig_obj[1] ;
12568
12569 if (!args) SWIG_fail;
12570 swig_obj[0] = args;
12571 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12572 if (!SWIG_IsOK(res1)) {
12573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
12574 }
12575 arg1 = reinterpret_cast< wxFont * >(argp1);
12576 {
12577 PyThreadState* __tstate = wxPyBeginAllowThreads();
12578 result = ((wxFont const *)arg1)->GetWeightString();
12579 wxPyEndAllowThreads(__tstate);
12580 if (PyErr_Occurred()) SWIG_fail;
12581 }
12582 {
d14a1e28 12583#if wxUSE_UNICODE
0085ce49 12584 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d14a1e28 12585#else
0085ce49 12586 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d14a1e28 12587#endif
0085ce49
RD
12588 }
12589 return resultobj;
12590fail:
12591 return NULL;
12592}
12593
12594
12595SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12596 PyObject *resultobj = 0;
12597 wxFont *arg1 = (wxFont *) 0 ;
12598 bool arg2 = (bool) true ;
12599 void *argp1 = 0 ;
12600 int res1 = 0 ;
12601 bool val2 ;
12602 int ecode2 = 0 ;
12603 PyObject * obj0 = 0 ;
12604 PyObject * obj1 = 0 ;
12605 char * kwnames[] = {
12606 (char *) "self",(char *) "no", NULL
12607 };
12608
12609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
12610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12611 if (!SWIG_IsOK(res1)) {
12612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
12613 }
12614 arg1 = reinterpret_cast< wxFont * >(argp1);
12615 if (obj1) {
12616 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12617 if (!SWIG_IsOK(ecode2)) {
12618 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
12619 }
12620 arg2 = static_cast< bool >(val2);
12621 }
12622 {
12623 PyThreadState* __tstate = wxPyBeginAllowThreads();
12624 (arg1)->SetNoAntiAliasing(arg2);
12625 wxPyEndAllowThreads(__tstate);
12626 if (PyErr_Occurred()) SWIG_fail;
12627 }
12628 resultobj = SWIG_Py_Void();
12629 return resultobj;
12630fail:
12631 return NULL;
d14a1e28
RD
12632}
12633
12634
0085ce49
RD
12635SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12636 PyObject *resultobj = 0;
12637 wxFont *arg1 = (wxFont *) 0 ;
12638 bool result;
12639 void *argp1 = 0 ;
12640 int res1 = 0 ;
12641 PyObject *swig_obj[1] ;
12642
12643 if (!args) SWIG_fail;
12644 swig_obj[0] = args;
12645 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12646 if (!SWIG_IsOK(res1)) {
12647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
12648 }
12649 arg1 = reinterpret_cast< wxFont * >(argp1);
12650 {
12651 PyThreadState* __tstate = wxPyBeginAllowThreads();
12652 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
12653 wxPyEndAllowThreads(__tstate);
12654 if (PyErr_Occurred()) SWIG_fail;
12655 }
12656 {
12657 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12658 }
12659 return resultobj;
12660fail:
12661 return NULL;
d14a1e28
RD
12662}
12663
12664
0085ce49
RD
12665SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12666 PyObject *resultobj = 0;
12667 wxFontEncoding result;
12668
12669 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
12670 {
12671 if (!wxPyCheckForApp()) SWIG_fail;
12672 PyThreadState* __tstate = wxPyBeginAllowThreads();
12673 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
12674 wxPyEndAllowThreads(__tstate);
12675 if (PyErr_Occurred()) SWIG_fail;
12676 }
12677 resultobj = SWIG_From_int(static_cast< int >(result));
12678 return resultobj;
12679fail:
12680 return NULL;
d14a1e28
RD
12681}
12682
12683
0085ce49
RD
12684SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12685 PyObject *resultobj = 0;
12686 wxFontEncoding arg1 ;
12687 int val1 ;
12688 int ecode1 = 0 ;
12689 PyObject * obj0 = 0 ;
12690 char * kwnames[] = {
12691 (char *) "encoding", NULL
12692 };
12693
12694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
12695 ecode1 = SWIG_AsVal_int(obj0, &val1);
12696 if (!SWIG_IsOK(ecode1)) {
12697 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12698 }
12699 arg1 = static_cast< wxFontEncoding >(val1);
12700 {
12701 if (!wxPyCheckForApp()) SWIG_fail;
12702 PyThreadState* __tstate = wxPyBeginAllowThreads();
12703 wxFont::SetDefaultEncoding(arg1);
12704 wxPyEndAllowThreads(__tstate);
12705 if (PyErr_Occurred()) SWIG_fail;
12706 }
12707 resultobj = SWIG_Py_Void();
12708 return resultobj;
12709fail:
12710 return NULL;
d14a1e28
RD
12711}
12712
12713
0085ce49
RD
12714SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12715 PyObject *obj;
12716 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12717 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
12718 return SWIG_Py_Void();
d14a1e28
RD
12719}
12720
0085ce49
RD
12721SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12722 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
12723}
12724
0085ce49
RD
12725SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12726 PyObject *resultobj = 0;
12727 wxPyFontEnumerator *result = 0 ;
12728
12729 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
12730 {
12731 if (!wxPyCheckForApp()) SWIG_fail;
12732 PyThreadState* __tstate = wxPyBeginAllowThreads();
12733 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
12734 wxPyEndAllowThreads(__tstate);
12735 if (PyErr_Occurred()) SWIG_fail;
12736 }
12737 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
12738 return resultobj;
12739fail:
12740 return NULL;
d14a1e28
RD
12741}
12742
12743
0085ce49
RD
12744SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12745 PyObject *resultobj = 0;
12746 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12747 void *argp1 = 0 ;
12748 int res1 = 0 ;
12749 PyObject *swig_obj[1] ;
12750
12751 if (!args) SWIG_fail;
12752 swig_obj[0] = args;
12753 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
12754 if (!SWIG_IsOK(res1)) {
12755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12756 }
12757 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12758 {
12759 PyThreadState* __tstate = wxPyBeginAllowThreads();
12760 delete arg1;
d14a1e28 12761
0085ce49
RD
12762 wxPyEndAllowThreads(__tstate);
12763 if (PyErr_Occurred()) SWIG_fail;
12764 }
12765 resultobj = SWIG_Py_Void();
12766 return resultobj;
12767fail:
12768 return NULL;
12769}
12770
12771
12772SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12773 PyObject *resultobj = 0;
12774 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12775 PyObject *arg2 = (PyObject *) 0 ;
12776 PyObject *arg3 = (PyObject *) 0 ;
12777 bool arg4 ;
12778 void *argp1 = 0 ;
12779 int res1 = 0 ;
12780 bool val4 ;
12781 int ecode4 = 0 ;
12782 PyObject * obj0 = 0 ;
12783 PyObject * obj1 = 0 ;
12784 PyObject * obj2 = 0 ;
12785 PyObject * obj3 = 0 ;
12786 char * kwnames[] = {
12787 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
12788 };
12789
12790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
12792 if (!SWIG_IsOK(res1)) {
12793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12794 }
12795 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12796 arg2 = obj1;
12797 arg3 = obj2;
12798 ecode4 = SWIG_AsVal_bool(obj3, &val4);
12799 if (!SWIG_IsOK(ecode4)) {
12800 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
12801 }
12802 arg4 = static_cast< bool >(val4);
12803 {
12804 PyThreadState* __tstate = wxPyBeginAllowThreads();
12805 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
12806 wxPyEndAllowThreads(__tstate);
12807 if (PyErr_Occurred()) SWIG_fail;
12808 }
12809 resultobj = SWIG_Py_Void();
12810 return resultobj;
12811fail:
12812 return NULL;
12813}
12814
12815
12816SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12817 PyObject *resultobj = 0;
12818 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12819 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
12820 bool arg3 = (bool) false ;
12821 bool result;
12822 void *argp1 = 0 ;
12823 int res1 = 0 ;
12824 int val2 ;
12825 int ecode2 = 0 ;
12826 bool val3 ;
12827 int ecode3 = 0 ;
12828 PyObject * obj0 = 0 ;
12829 PyObject * obj1 = 0 ;
12830 PyObject * obj2 = 0 ;
12831 char * kwnames[] = {
12832 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
12833 };
12834
12835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
12837 if (!SWIG_IsOK(res1)) {
12838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12839 }
12840 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12841 if (obj1) {
12842 ecode2 = SWIG_AsVal_int(obj1, &val2);
12843 if (!SWIG_IsOK(ecode2)) {
12844 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12845 }
12846 arg2 = static_cast< wxFontEncoding >(val2);
12847 }
12848 if (obj2) {
12849 ecode3 = SWIG_AsVal_bool(obj2, &val3);
12850 if (!SWIG_IsOK(ecode3)) {
12851 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
12852 }
12853 arg3 = static_cast< bool >(val3);
12854 }
12855 {
12856 PyThreadState* __tstate = wxPyBeginAllowThreads();
12857 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
12858 wxPyEndAllowThreads(__tstate);
12859 if (PyErr_Occurred()) SWIG_fail;
12860 }
12861 {
12862 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12863 }
12864 return resultobj;
12865fail:
12866 return NULL;
12867}
12868
12869
12870SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12871 PyObject *resultobj = 0;
12872 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12873 wxString const &arg2_defvalue = wxPyEmptyString ;
12874 wxString *arg2 = (wxString *) &arg2_defvalue ;
12875 bool result;
12876 void *argp1 = 0 ;
12877 int res1 = 0 ;
12878 bool temp2 = false ;
12879 PyObject * obj0 = 0 ;
12880 PyObject * obj1 = 0 ;
12881 char * kwnames[] = {
12882 (char *) "self",(char *) "facename", NULL
12883 };
12884
12885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
12886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
12887 if (!SWIG_IsOK(res1)) {
12888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12889 }
12890 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12891 if (obj1) {
d14a1e28 12892 {
0085ce49
RD
12893 arg2 = wxString_in_helper(obj1);
12894 if (arg2 == NULL) SWIG_fail;
12895 temp2 = true;
d14a1e28 12896 }
0085ce49
RD
12897 }
12898 {
12899 PyThreadState* __tstate = wxPyBeginAllowThreads();
12900 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
12901 wxPyEndAllowThreads(__tstate);
12902 if (PyErr_Occurred()) SWIG_fail;
12903 }
12904 {
12905 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12906 }
12907 {
12908 if (temp2)
12909 delete arg2;
12910 }
12911 return resultobj;
12912fail:
12913 {
12914 if (temp2)
12915 delete arg2;
12916 }
12917 return NULL;
d14a1e28
RD
12918}
12919
12920
0085ce49
RD
12921SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12922 PyObject *resultobj = 0;
0085ce49 12923 PyObject *result = 0 ;
0085ce49 12924
704eda0c 12925 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
0085ce49
RD
12926 {
12927 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 12928 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
0085ce49
RD
12929 wxPyEndAllowThreads(__tstate);
12930 if (PyErr_Occurred()) SWIG_fail;
12931 }
12932 resultobj = result;
12933 return resultobj;
12934fail:
12935 return NULL;
d14a1e28
RD
12936}
12937
12938
0085ce49
RD
12939SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12940 PyObject *resultobj = 0;
0085ce49 12941 PyObject *result = 0 ;
0085ce49 12942
704eda0c 12943 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
0085ce49
RD
12944 {
12945 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 12946 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
0085ce49
RD
12947 wxPyEndAllowThreads(__tstate);
12948 if (PyErr_Occurred()) SWIG_fail;
12949 }
12950 resultobj = result;
12951 return resultobj;
12952fail:
12953 return NULL;
d14a1e28
RD
12954}
12955
12956
704eda0c
RD
12957SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12958 PyObject *resultobj = 0;
12959 wxString *arg1 = 0 ;
12960 bool result;
12961 bool temp1 = false ;
12962 PyObject * obj0 = 0 ;
12963 char * kwnames[] = {
12964 (char *) "str", NULL
12965 };
12966
12967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
12968 {
12969 arg1 = wxString_in_helper(obj0);
12970 if (arg1 == NULL) SWIG_fail;
12971 temp1 = true;
12972 }
12973 {
12974 PyThreadState* __tstate = wxPyBeginAllowThreads();
12975 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
12976 wxPyEndAllowThreads(__tstate);
12977 if (PyErr_Occurred()) SWIG_fail;
12978 }
12979 {
12980 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12981 }
12982 {
12983 if (temp1)
12984 delete arg1;
12985 }
12986 return resultobj;
12987fail:
12988 {
12989 if (temp1)
12990 delete arg1;
12991 }
12992 return NULL;
12993}
12994
12995
0085ce49
RD
12996SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12997 PyObject *obj;
12998 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12999 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
13000 return SWIG_Py_Void();
d14a1e28
RD
13001}
13002
0085ce49
RD
13003SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13004 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
13005}
13006
0085ce49
RD
13007SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13008 PyObject *resultobj = 0;
13009 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13010 int arg2 ;
13011 void *argp1 = 0 ;
13012 int res1 = 0 ;
13013 int val2 ;
13014 int ecode2 = 0 ;
13015 PyObject *swig_obj[2] ;
13016
13017 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
13018 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13019 if (!SWIG_IsOK(res1)) {
13020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13021 }
13022 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13023 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13024 if (!SWIG_IsOK(ecode2)) {
13025 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
13026 }
13027 arg2 = static_cast< int >(val2);
13028 if (arg1) (arg1)->Language = arg2;
13029
13030 resultobj = SWIG_Py_Void();
13031 return resultobj;
13032fail:
13033 return NULL;
d14a1e28
RD
13034}
13035
13036
0085ce49
RD
13037SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13038 PyObject *resultobj = 0;
13039 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13040 int result;
13041 void *argp1 = 0 ;
13042 int res1 = 0 ;
13043 PyObject *swig_obj[1] ;
13044
13045 if (!args) SWIG_fail;
13046 swig_obj[0] = args;
13047 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13048 if (!SWIG_IsOK(res1)) {
13049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13050 }
13051 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13052 result = (int) ((arg1)->Language);
13053 resultobj = SWIG_From_int(static_cast< int >(result));
13054 return resultobj;
13055fail:
13056 return NULL;
13057}
13058
13059
13060SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13061 PyObject *resultobj = 0;
13062 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13063 wxString *arg2 = (wxString *) 0 ;
13064 void *argp1 = 0 ;
13065 int res1 = 0 ;
13066 bool temp2 = false ;
13067 PyObject *swig_obj[2] ;
13068
13069 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
13070 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13071 if (!SWIG_IsOK(res1)) {
13072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13073 }
13074 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13075 {
13076 arg2 = wxString_in_helper(swig_obj[1]);
13077 if (arg2 == NULL) SWIG_fail;
13078 temp2 = true;
13079 }
13080 if (arg1) (arg1)->CanonicalName = *arg2;
13081
13082 resultobj = SWIG_Py_Void();
13083 {
13084 if (temp2)
13085 delete arg2;
13086 }
13087 return resultobj;
13088fail:
13089 {
13090 if (temp2)
13091 delete arg2;
13092 }
13093 return NULL;
d14a1e28
RD
13094}
13095
13096
0085ce49
RD
13097SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13098 PyObject *resultobj = 0;
13099 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13100 wxString *result = 0 ;
13101 void *argp1 = 0 ;
13102 int res1 = 0 ;
13103 PyObject *swig_obj[1] ;
13104
13105 if (!args) SWIG_fail;
13106 swig_obj[0] = args;
13107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13108 if (!SWIG_IsOK(res1)) {
13109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13110 }
13111 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13112 result = (wxString *)& ((arg1)->CanonicalName);
13113 {
093d3ff1 13114#if wxUSE_UNICODE
0085ce49 13115 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
093d3ff1 13116#else
0085ce49 13117 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
093d3ff1 13118#endif
0085ce49
RD
13119 }
13120 return resultobj;
13121fail:
13122 return NULL;
d14a1e28
RD
13123}
13124
13125
0085ce49
RD
13126SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13127 PyObject *resultobj = 0;
13128 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13129 wxString *arg2 = (wxString *) 0 ;
13130 void *argp1 = 0 ;
13131 int res1 = 0 ;
13132 bool temp2 = false ;
13133 PyObject *swig_obj[2] ;
13134
13135 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
13136 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13137 if (!SWIG_IsOK(res1)) {
13138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13139 }
13140 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13141 {
13142 arg2 = wxString_in_helper(swig_obj[1]);
13143 if (arg2 == NULL) SWIG_fail;
13144 temp2 = true;
13145 }
13146 if (arg1) (arg1)->Description = *arg2;
13147
13148 resultobj = SWIG_Py_Void();
13149 {
13150 if (temp2)
13151 delete arg2;
13152 }
13153 return resultobj;
13154fail:
13155 {
13156 if (temp2)
13157 delete arg2;
13158 }
13159 return NULL;
d14a1e28
RD
13160}
13161
13162
0085ce49
RD
13163SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13164 PyObject *resultobj = 0;
13165 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13166 wxString *result = 0 ;
13167 void *argp1 = 0 ;
13168 int res1 = 0 ;
13169 PyObject *swig_obj[1] ;
13170
13171 if (!args) SWIG_fail;
13172 swig_obj[0] = args;
13173 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13174 if (!SWIG_IsOK(res1)) {
13175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13176 }
13177 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13178 result = (wxString *)& ((arg1)->Description);
13179 {
d14a1e28 13180#if wxUSE_UNICODE
0085ce49 13181 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
d14a1e28 13182#else
0085ce49 13183 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
d14a1e28 13184#endif
0085ce49
RD
13185 }
13186 return resultobj;
13187fail:
13188 return NULL;
13189}
13190
13191
13192SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13193 PyObject *obj;
13194 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13195 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
13196 return SWIG_Py_Void();
13197}
13198
13199SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13200 PyObject *resultobj = 0;
13201 int arg1 = (int) -1 ;
13202 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
13203 wxLocale *result = 0 ;
13204 int val1 ;
13205 int ecode1 = 0 ;
13206 int val2 ;
13207 int ecode2 = 0 ;
13208 PyObject * obj0 = 0 ;
13209 PyObject * obj1 = 0 ;
13210 char * kwnames[] = {
13211 (char *) "language",(char *) "flags", NULL
13212 };
13213
13214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
13215 if (obj0) {
13216 ecode1 = SWIG_AsVal_int(obj0, &val1);
13217 if (!SWIG_IsOK(ecode1)) {
13218 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
13219 }
13220 arg1 = static_cast< int >(val1);
13221 }
13222 if (obj1) {
13223 ecode2 = SWIG_AsVal_int(obj1, &val2);
13224 if (!SWIG_IsOK(ecode2)) {
13225 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
13226 }
13227 arg2 = static_cast< int >(val2);
13228 }
13229 {
13230 PyThreadState* __tstate = wxPyBeginAllowThreads();
13231 result = (wxLocale *)new_wxLocale(arg1,arg2);
13232 wxPyEndAllowThreads(__tstate);
13233 if (PyErr_Occurred()) SWIG_fail;
13234 }
13235 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
13236 return resultobj;
13237fail:
13238 return NULL;
d14a1e28
RD
13239}
13240
13241
0085ce49
RD
13242SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13243 PyObject *resultobj = 0;
13244 wxLocale *arg1 = (wxLocale *) 0 ;
13245 void *argp1 = 0 ;
13246 int res1 = 0 ;
13247 PyObject *swig_obj[1] ;
13248
13249 if (!args) SWIG_fail;
13250 swig_obj[0] = args;
13251 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
13252 if (!SWIG_IsOK(res1)) {
13253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
13254 }
13255 arg1 = reinterpret_cast< wxLocale * >(argp1);
13256 {
13257 PyThreadState* __tstate = wxPyBeginAllowThreads();
13258 delete arg1;
d14a1e28 13259
0085ce49
RD
13260 wxPyEndAllowThreads(__tstate);
13261 if (PyErr_Occurred()) SWIG_fail;
13262 }
13263 resultobj = SWIG_Py_Void();
13264 return resultobj;
13265fail:
13266 return NULL;
13267}
13268
13269
13270SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13271 PyObject *resultobj = 0;
13272 wxLocale *arg1 = (wxLocale *) 0 ;
13273 wxString *arg2 = 0 ;
13274 wxString const &arg3_defvalue = wxPyEmptyString ;
13275 wxString *arg3 = (wxString *) &arg3_defvalue ;
13276 wxString const &arg4_defvalue = wxPyEmptyString ;
13277 wxString *arg4 = (wxString *) &arg4_defvalue ;
13278 bool arg5 = (bool) true ;
13279 bool arg6 = (bool) false ;
13280 bool result;
13281 void *argp1 = 0 ;
13282 int res1 = 0 ;
13283 bool temp2 = false ;
13284 bool temp3 = false ;
13285 bool temp4 = false ;
13286 bool val5 ;
13287 int ecode5 = 0 ;
13288 bool val6 ;
13289 int ecode6 = 0 ;
13290 PyObject * obj0 = 0 ;
13291 PyObject * obj1 = 0 ;
13292 PyObject * obj2 = 0 ;
13293 PyObject * obj3 = 0 ;
13294 PyObject * obj4 = 0 ;
13295 PyObject * obj5 = 0 ;
13296 char * kwnames[] = {
13297 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
13298 };
13299
13300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
13301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13302 if (!SWIG_IsOK(res1)) {
13303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
13304 }
13305 arg1 = reinterpret_cast< wxLocale * >(argp1);
13306 {
13307 arg2 = wxString_in_helper(obj1);
13308 if (arg2 == NULL) SWIG_fail;
13309 temp2 = true;
13310 }
13311 if (obj2) {
d14a1e28 13312 {
0085ce49
RD
13313 arg3 = wxString_in_helper(obj2);
13314 if (arg3 == NULL) SWIG_fail;
13315 temp3 = true;
d14a1e28 13316 }
0085ce49
RD
13317 }
13318 if (obj3) {
093d3ff1 13319 {
0085ce49
RD
13320 arg4 = wxString_in_helper(obj3);
13321 if (arg4 == NULL) SWIG_fail;
13322 temp4 = true;
093d3ff1 13323 }
0085ce49
RD
13324 }
13325 if (obj4) {
13326 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13327 if (!SWIG_IsOK(ecode5)) {
13328 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
13329 }
13330 arg5 = static_cast< bool >(val5);
13331 }
13332 if (obj5) {
13333 ecode6 = SWIG_AsVal_bool(obj5, &val6);
13334 if (!SWIG_IsOK(ecode6)) {
13335 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
13336 }
13337 arg6 = static_cast< bool >(val6);
13338 }
13339 {
13340 PyThreadState* __tstate = wxPyBeginAllowThreads();
13341 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
13342 wxPyEndAllowThreads(__tstate);
13343 if (PyErr_Occurred()) SWIG_fail;
13344 }
13345 {
13346 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13347 }
13348 {
13349 if (temp2)
13350 delete arg2;
13351 }
13352 {
13353 if (temp3)
13354 delete arg3;
13355 }
13356 {
13357 if (temp4)
13358 delete arg4;
13359 }
13360 return resultobj;
13361fail:
13362 {
13363 if (temp2)
13364 delete arg2;
13365 }
13366 {
13367 if (temp3)
13368 delete arg3;
13369 }
13370 {
13371 if (temp4)
13372 delete arg4;
13373 }
13374 return NULL;
13375}
13376
13377
13378SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13379 PyObject *resultobj = 0;
13380 wxLocale *arg1 = (wxLocale *) 0 ;
13381 int arg2 = (int) wxLANGUAGE_DEFAULT ;
13382 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
13383 bool result;
13384 void *argp1 = 0 ;
13385 int res1 = 0 ;
13386 int val2 ;
13387 int ecode2 = 0 ;
13388 int val3 ;
13389 int ecode3 = 0 ;
13390 PyObject * obj0 = 0 ;
13391 PyObject * obj1 = 0 ;
13392 PyObject * obj2 = 0 ;
13393 char * kwnames[] = {
13394 (char *) "self",(char *) "language",(char *) "flags", NULL
13395 };
13396
13397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13399 if (!SWIG_IsOK(res1)) {
13400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
13401 }
13402 arg1 = reinterpret_cast< wxLocale * >(argp1);
13403 if (obj1) {
13404 ecode2 = SWIG_AsVal_int(obj1, &val2);
13405 if (!SWIG_IsOK(ecode2)) {
13406 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
13407 }
13408 arg2 = static_cast< int >(val2);
13409 }
13410 if (obj2) {
13411 ecode3 = SWIG_AsVal_int(obj2, &val3);
13412 if (!SWIG_IsOK(ecode3)) {
13413 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
13414 }
13415 arg3 = static_cast< int >(val3);
13416 }
13417 {
13418 PyThreadState* __tstate = wxPyBeginAllowThreads();
13419 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
13420 wxPyEndAllowThreads(__tstate);
13421 if (PyErr_Occurred()) SWIG_fail;
13422 }
13423 {
13424 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13425 }
13426 return resultobj;
13427fail:
13428 return NULL;
093d3ff1
RD
13429}
13430
13431
0085ce49
RD
13432SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13433 PyObject *resultobj = 0;
13434 int result;
13435
13436 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
13437 {
13438 PyThreadState* __tstate = wxPyBeginAllowThreads();
13439 result = (int)wxLocale::GetSystemLanguage();
13440 wxPyEndAllowThreads(__tstate);
13441 if (PyErr_Occurred()) SWIG_fail;
13442 }
13443 resultobj = SWIG_From_int(static_cast< int >(result));
13444 return resultobj;
13445fail:
13446 return NULL;
d14a1e28
RD
13447}
13448
13449
0085ce49
RD
13450SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13451 PyObject *resultobj = 0;
13452 wxFontEncoding result;
13453
13454 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
13455 {
13456 PyThreadState* __tstate = wxPyBeginAllowThreads();
13457 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
13458 wxPyEndAllowThreads(__tstate);
13459 if (PyErr_Occurred()) SWIG_fail;
13460 }
13461 resultobj = SWIG_From_int(static_cast< int >(result));
13462 return resultobj;
13463fail:
13464 return NULL;
d14a1e28
RD
13465}
13466
13467
0085ce49
RD
13468SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13469 PyObject *resultobj = 0;
13470 wxString result;
13471
13472 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
13473 {
13474 PyThreadState* __tstate = wxPyBeginAllowThreads();
13475 result = wxLocale::GetSystemEncodingName();
13476 wxPyEndAllowThreads(__tstate);
13477 if (PyErr_Occurred()) SWIG_fail;
13478 }
13479 {
d14a1e28 13480#if wxUSE_UNICODE
0085ce49 13481 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d14a1e28 13482#else
0085ce49 13483 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d14a1e28 13484#endif
0085ce49
RD
13485 }
13486 return resultobj;
13487fail:
13488 return NULL;
d14a1e28
RD
13489}
13490
13491
0085ce49
RD
13492SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13493 PyObject *resultobj = 0;
13494 wxLocale *arg1 = (wxLocale *) 0 ;
13495 bool result;
13496 void *argp1 = 0 ;
13497 int res1 = 0 ;
13498 PyObject *swig_obj[1] ;
13499
13500 if (!args) SWIG_fail;
13501 swig_obj[0] = args;
13502 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13503 if (!SWIG_IsOK(res1)) {
13504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
13505 }
13506 arg1 = reinterpret_cast< wxLocale * >(argp1);
13507 {
13508 PyThreadState* __tstate = wxPyBeginAllowThreads();
13509 result = (bool)((wxLocale const *)arg1)->IsOk();
13510 wxPyEndAllowThreads(__tstate);
13511 if (PyErr_Occurred()) SWIG_fail;
13512 }
13513 {
13514 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13515 }
13516 return resultobj;
13517fail:
13518 return NULL;
093d3ff1 13519}
0085ce49
RD
13520
13521
13522SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13523 PyObject *resultobj = 0;
13524 wxLocale *arg1 = (wxLocale *) 0 ;
13525 wxString result;
13526 void *argp1 = 0 ;
13527 int res1 = 0 ;
13528 PyObject *swig_obj[1] ;
13529
13530 if (!args) SWIG_fail;
13531 swig_obj[0] = args;
13532 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13533 if (!SWIG_IsOK(res1)) {
13534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
13535 }
13536 arg1 = reinterpret_cast< wxLocale * >(argp1);
13537 {
13538 PyThreadState* __tstate = wxPyBeginAllowThreads();
13539 result = ((wxLocale const *)arg1)->GetLocale();
13540 wxPyEndAllowThreads(__tstate);
13541 if (PyErr_Occurred()) SWIG_fail;
13542 }
13543 {
13544#if wxUSE_UNICODE
13545 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13546#else
13547 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13548#endif
13549 }
13550 return resultobj;
13551fail:
13552 return NULL;
d14a1e28
RD
13553}
13554
13555
0085ce49
RD
13556SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13557 PyObject *resultobj = 0;
13558 wxLocale *arg1 = (wxLocale *) 0 ;
13559 int result;
13560 void *argp1 = 0 ;
13561 int res1 = 0 ;
13562 PyObject *swig_obj[1] ;
13563
13564 if (!args) SWIG_fail;
13565 swig_obj[0] = args;
13566 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13567 if (!SWIG_IsOK(res1)) {
13568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
13569 }
13570 arg1 = reinterpret_cast< wxLocale * >(argp1);
13571 {
13572 PyThreadState* __tstate = wxPyBeginAllowThreads();
13573 result = (int)((wxLocale const *)arg1)->GetLanguage();
13574 wxPyEndAllowThreads(__tstate);
13575 if (PyErr_Occurred()) SWIG_fail;
13576 }
13577 resultobj = SWIG_From_int(static_cast< int >(result));
13578 return resultobj;
13579fail:
13580 return NULL;
d14a1e28
RD
13581}
13582
13583
0085ce49
RD
13584SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13585 PyObject *resultobj = 0;
13586 wxLocale *arg1 = (wxLocale *) 0 ;
13587 wxString result;
13588 void *argp1 = 0 ;
13589 int res1 = 0 ;
13590 PyObject *swig_obj[1] ;
13591
13592 if (!args) SWIG_fail;
13593 swig_obj[0] = args;
13594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13595 if (!SWIG_IsOK(res1)) {
13596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
13597 }
13598 arg1 = reinterpret_cast< wxLocale * >(argp1);
13599 {
13600 PyThreadState* __tstate = wxPyBeginAllowThreads();
13601 result = ((wxLocale const *)arg1)->GetSysName();
13602 wxPyEndAllowThreads(__tstate);
13603 if (PyErr_Occurred()) SWIG_fail;
13604 }
13605 {
13606#if wxUSE_UNICODE
13607 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13608#else
13609 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13610#endif
13611 }
13612 return resultobj;
13613fail:
13614 return NULL;
d14a1e28
RD
13615}
13616
13617
0085ce49
RD
13618SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13619 PyObject *resultobj = 0;
13620 wxLocale *arg1 = (wxLocale *) 0 ;
13621 wxString result;
13622 void *argp1 = 0 ;
13623 int res1 = 0 ;
13624 PyObject *swig_obj[1] ;
13625
13626 if (!args) SWIG_fail;
13627 swig_obj[0] = args;
13628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13629 if (!SWIG_IsOK(res1)) {
13630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
13631 }
13632 arg1 = reinterpret_cast< wxLocale * >(argp1);
13633 {
13634 PyThreadState* __tstate = wxPyBeginAllowThreads();
13635 result = ((wxLocale const *)arg1)->GetCanonicalName();
13636 wxPyEndAllowThreads(__tstate);
13637 if (PyErr_Occurred()) SWIG_fail;
13638 }
13639 {
13640#if wxUSE_UNICODE
13641 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13642#else
13643 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13644#endif
13645 }
13646 return resultobj;
13647fail:
13648 return NULL;
d14a1e28
RD
13649}
13650
13651
0085ce49
RD
13652SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13653 PyObject *resultobj = 0;
13654 wxString *arg1 = 0 ;
13655 bool temp1 = false ;
13656 PyObject * obj0 = 0 ;
13657 char * kwnames[] = {
13658 (char *) "prefix", NULL
13659 };
13660
13661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
13662 {
13663 arg1 = wxString_in_helper(obj0);
13664 if (arg1 == NULL) SWIG_fail;
13665 temp1 = true;
13666 }
13667 {
13668 PyThreadState* __tstate = wxPyBeginAllowThreads();
13669 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
13670 wxPyEndAllowThreads(__tstate);
13671 if (PyErr_Occurred()) SWIG_fail;
13672 }
13673 resultobj = SWIG_Py_Void();
13674 {
13675 if (temp1)
13676 delete arg1;
13677 }
13678 return resultobj;
13679fail:
13680 {
13681 if (temp1)
13682 delete arg1;
13683 }
13684 return NULL;
13685}
13686
13687
13688SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13689 PyObject *resultobj = 0;
13690 wxLocale *arg1 = (wxLocale *) 0 ;
13691 wxString *arg2 = 0 ;
13692 bool result;
13693 void *argp1 = 0 ;
13694 int res1 = 0 ;
13695 bool temp2 = false ;
13696 PyObject * obj0 = 0 ;
13697 PyObject * obj1 = 0 ;
13698 char * kwnames[] = {
13699 (char *) "self",(char *) "szDomain", NULL
13700 };
13701
13702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
13703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13704 if (!SWIG_IsOK(res1)) {
13705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
13706 }
13707 arg1 = reinterpret_cast< wxLocale * >(argp1);
13708 {
13709 arg2 = wxString_in_helper(obj1);
13710 if (arg2 == NULL) SWIG_fail;
13711 temp2 = true;
13712 }
13713 {
13714 PyThreadState* __tstate = wxPyBeginAllowThreads();
13715 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
13716 wxPyEndAllowThreads(__tstate);
13717 if (PyErr_Occurred()) SWIG_fail;
13718 }
13719 {
13720 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13721 }
13722 {
13723 if (temp2)
13724 delete arg2;
13725 }
13726 return resultobj;
13727fail:
13728 {
13729 if (temp2)
13730 delete arg2;
13731 }
13732 return NULL;
13733}
13734
13735
13736SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13737 PyObject *resultobj = 0;
13738 wxLocale *arg1 = (wxLocale *) 0 ;
13739 wxString *arg2 = 0 ;
13740 bool result;
13741 void *argp1 = 0 ;
13742 int res1 = 0 ;
13743 bool temp2 = false ;
13744 PyObject * obj0 = 0 ;
13745 PyObject * obj1 = 0 ;
13746 char * kwnames[] = {
13747 (char *) "self",(char *) "szDomain", NULL
13748 };
13749
13750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
13751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13752 if (!SWIG_IsOK(res1)) {
13753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
13754 }
13755 arg1 = reinterpret_cast< wxLocale * >(argp1);
13756 {
13757 arg2 = wxString_in_helper(obj1);
13758 if (arg2 == NULL) SWIG_fail;
13759 temp2 = true;
13760 }
13761 {
13762 PyThreadState* __tstate = wxPyBeginAllowThreads();
13763 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
13764 wxPyEndAllowThreads(__tstate);
13765 if (PyErr_Occurred()) SWIG_fail;
13766 }
13767 {
13768 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13769 }
13770 {
13771 if (temp2)
13772 delete arg2;
13773 }
13774 return resultobj;
13775fail:
13776 {
13777 if (temp2)
13778 delete arg2;
13779 }
13780 return NULL;
d14a1e28
RD
13781}
13782
13783
0085ce49
RD
13784SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13785 PyObject *resultobj = 0;
13786 int arg1 ;
13787 wxLanguageInfo *result = 0 ;
13788 int val1 ;
13789 int ecode1 = 0 ;
13790 PyObject * obj0 = 0 ;
13791 char * kwnames[] = {
13792 (char *) "lang", NULL
13793 };
13794
13795 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
13796 ecode1 = SWIG_AsVal_int(obj0, &val1);
13797 if (!SWIG_IsOK(ecode1)) {
13798 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
13799 }
13800 arg1 = static_cast< int >(val1);
13801 {
13802 PyThreadState* __tstate = wxPyBeginAllowThreads();
13803 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
13804 wxPyEndAllowThreads(__tstate);
13805 if (PyErr_Occurred()) SWIG_fail;
13806 }
13807 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13808 return resultobj;
13809fail:
13810 return NULL;
13811}
13812
13813
13814SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13815 PyObject *resultobj = 0;
13816 int arg1 ;
13817 wxString result;
13818 int val1 ;
13819 int ecode1 = 0 ;
13820 PyObject * obj0 = 0 ;
13821 char * kwnames[] = {
13822 (char *) "lang", NULL
13823 };
13824
13825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
13826 ecode1 = SWIG_AsVal_int(obj0, &val1);
13827 if (!SWIG_IsOK(ecode1)) {
13828 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
13829 }
13830 arg1 = static_cast< int >(val1);
13831 {
13832 PyThreadState* __tstate = wxPyBeginAllowThreads();
13833 result = wxLocale::GetLanguageName(arg1);
13834 wxPyEndAllowThreads(__tstate);
13835 if (PyErr_Occurred()) SWIG_fail;
13836 }
13837 {
13838#if wxUSE_UNICODE
13839 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13840#else
13841 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13842#endif
13843 }
13844 return resultobj;
13845fail:
13846 return NULL;
d14a1e28
RD
13847}
13848
13849
0085ce49
RD
13850SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13851 PyObject *resultobj = 0;
13852 wxString *arg1 = 0 ;
13853 wxLanguageInfo *result = 0 ;
13854 bool temp1 = false ;
13855 PyObject * obj0 = 0 ;
13856 char * kwnames[] = {
13857 (char *) "locale", NULL
13858 };
13859
13860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
13861 {
13862 arg1 = wxString_in_helper(obj0);
13863 if (arg1 == NULL) SWIG_fail;
13864 temp1 = true;
13865 }
13866 {
13867 PyThreadState* __tstate = wxPyBeginAllowThreads();
13868 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
13869 wxPyEndAllowThreads(__tstate);
13870 if (PyErr_Occurred()) SWIG_fail;
13871 }
13872 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13873 {
13874 if (temp1)
13875 delete arg1;
13876 }
13877 return resultobj;
13878fail:
13879 {
13880 if (temp1)
13881 delete arg1;
13882 }
13883 return NULL;
d14a1e28
RD
13884}
13885
13886
0085ce49
RD
13887SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13888 PyObject *resultobj = 0;
13889 wxLanguageInfo *arg1 = 0 ;
13890 void *argp1 = 0 ;
13891 int res1 = 0 ;
13892 PyObject * obj0 = 0 ;
13893 char * kwnames[] = {
13894 (char *) "info", NULL
13895 };
13896
13897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
13898 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
13899 if (!SWIG_IsOK(res1)) {
13900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
13901 }
13902 if (!argp1) {
13903 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
13904 }
13905 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13906 {
13907 PyThreadState* __tstate = wxPyBeginAllowThreads();
13908 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
13909 wxPyEndAllowThreads(__tstate);
13910 if (PyErr_Occurred()) SWIG_fail;
13911 }
13912 resultobj = SWIG_Py_Void();
13913 return resultobj;
13914fail:
13915 return NULL;
13916}
13917
13918
13919SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13920 PyObject *resultobj = 0;
13921 wxLocale *arg1 = (wxLocale *) 0 ;
13922 wxString *arg2 = 0 ;
13923 wxString const &arg3_defvalue = wxPyEmptyString ;
13924 wxString *arg3 = (wxString *) &arg3_defvalue ;
13925 wxString result;
13926 void *argp1 = 0 ;
13927 int res1 = 0 ;
13928 bool temp2 = false ;
13929 bool temp3 = false ;
13930 PyObject * obj0 = 0 ;
13931 PyObject * obj1 = 0 ;
13932 PyObject * obj2 = 0 ;
13933 char * kwnames[] = {
13934 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
13935 };
13936
13937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13939 if (!SWIG_IsOK(res1)) {
13940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
13941 }
13942 arg1 = reinterpret_cast< wxLocale * >(argp1);
13943 {
13944 arg2 = wxString_in_helper(obj1);
13945 if (arg2 == NULL) SWIG_fail;
13946 temp2 = true;
13947 }
13948 if (obj2) {
b6294124 13949 {
0085ce49
RD
13950 arg3 = wxString_in_helper(obj2);
13951 if (arg3 == NULL) SWIG_fail;
13952 temp3 = true;
b6294124 13953 }
0085ce49
RD
13954 }
13955 {
13956 PyThreadState* __tstate = wxPyBeginAllowThreads();
13957 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
13958 wxPyEndAllowThreads(__tstate);
13959 if (PyErr_Occurred()) SWIG_fail;
13960 }
13961 {
093d3ff1 13962#if wxUSE_UNICODE
0085ce49 13963 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 13964#else
0085ce49 13965 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 13966#endif
0085ce49
RD
13967 }
13968 {
13969 if (temp2)
13970 delete arg2;
13971 }
13972 {
13973 if (temp3)
13974 delete arg3;
13975 }
13976 return resultobj;
13977fail:
13978 {
13979 if (temp2)
13980 delete arg2;
13981 }
13982 {
13983 if (temp3)
13984 delete arg3;
13985 }
13986 return NULL;
b6294124
RD
13987}
13988
13989
0085ce49
RD
13990SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13991 PyObject *resultobj = 0;
13992 wxLocale *arg1 = (wxLocale *) 0 ;
13993 wxString *result = 0 ;
13994 void *argp1 = 0 ;
13995 int res1 = 0 ;
13996 PyObject *swig_obj[1] ;
13997
13998 if (!args) SWIG_fail;
13999 swig_obj[0] = args;
14000 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14001 if (!SWIG_IsOK(res1)) {
14002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
14003 }
14004 arg1 = reinterpret_cast< wxLocale * >(argp1);
14005 {
14006 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 14007 {
0085ce49
RD
14008 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
14009 result = (wxString *) &_result_ref;
d14a1e28 14010 }
0085ce49
RD
14011 wxPyEndAllowThreads(__tstate);
14012 if (PyErr_Occurred()) SWIG_fail;
14013 }
14014 {
093d3ff1 14015#if wxUSE_UNICODE
0085ce49 14016 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
093d3ff1 14017#else
0085ce49 14018 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
093d3ff1 14019#endif
0085ce49
RD
14020 }
14021 return resultobj;
14022fail:
14023 return NULL;
d14a1e28
RD
14024}
14025
14026
0085ce49
RD
14027SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14028 PyObject *obj;
14029 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14030 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
14031 return SWIG_Py_Void();
d14a1e28
RD
14032}
14033
0085ce49
RD
14034SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14035 return SWIG_Python_InitShadowInstance(args);
14036}
d14a1e28 14037
0085ce49
RD
14038SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14039 PyObject *resultobj = 0;
14040 wxLocale *result = 0 ;
14041
14042 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
14043 {
14044 PyThreadState* __tstate = wxPyBeginAllowThreads();
14045 result = (wxLocale *)wxGetLocale();
14046 wxPyEndAllowThreads(__tstate);
14047 if (PyErr_Occurred()) SWIG_fail;
14048 }
14049 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
14050 return resultobj;
14051fail:
14052 return NULL;
d14a1e28
RD
14053}
14054
14055
0085ce49
RD
14056SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14057 PyObject *resultobj = 0;
14058 wxString *arg1 = 0 ;
14059 wxString result;
14060 bool temp1 = false ;
14061
14062 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
14063 {
14064 arg1 = wxString_in_helper(swig_obj[0]);
14065 if (arg1 == NULL) SWIG_fail;
14066 temp1 = true;
14067 }
14068 {
14069 PyThreadState* __tstate = wxPyBeginAllowThreads();
14070 result = wxGetTranslation((wxString const &)*arg1);
14071 wxPyEndAllowThreads(__tstate);
14072 if (PyErr_Occurred()) SWIG_fail;
14073 }
14074 {
093d3ff1 14075#if wxUSE_UNICODE
0085ce49 14076 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 14077#else
0085ce49 14078 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 14079#endif
0085ce49
RD
14080 }
14081 {
14082 if (temp1)
14083 delete arg1;
14084 }
14085 return resultobj;
14086fail:
14087 {
14088 if (temp1)
14089 delete arg1;
14090 }
14091 return NULL;
b6294124
RD
14092}
14093
14094
0085ce49
RD
14095SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14096 PyObject *resultobj = 0;
14097 wxString *arg1 = 0 ;
14098 wxString *arg2 = 0 ;
14099 size_t arg3 ;
14100 wxString result;
14101 bool temp1 = false ;
14102 bool temp2 = false ;
14103 size_t val3 ;
14104 int ecode3 = 0 ;
14105
14106 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
14107 {
14108 arg1 = wxString_in_helper(swig_obj[0]);
14109 if (arg1 == NULL) SWIG_fail;
14110 temp1 = true;
14111 }
14112 {
14113 arg2 = wxString_in_helper(swig_obj[1]);
14114 if (arg2 == NULL) SWIG_fail;
14115 temp2 = true;
14116 }
14117 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
14118 if (!SWIG_IsOK(ecode3)) {
14119 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
14120 }
14121 arg3 = static_cast< size_t >(val3);
14122 {
14123 PyThreadState* __tstate = wxPyBeginAllowThreads();
14124 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
14125 wxPyEndAllowThreads(__tstate);
14126 if (PyErr_Occurred()) SWIG_fail;
14127 }
14128 {
14129#if wxUSE_UNICODE
14130 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14131#else
14132 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14133#endif
14134 }
14135 {
14136 if (temp1)
14137 delete arg1;
14138 }
14139 {
14140 if (temp2)
14141 delete arg2;
14142 }
14143 return resultobj;
14144fail:
14145 {
14146 if (temp1)
14147 delete arg1;
14148 }
14149 {
14150 if (temp2)
14151 delete arg2;
14152 }
14153 return NULL;
d14a1e28
RD
14154}
14155
14156
0085ce49
RD
14157SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
14158 int argc;
14159 PyObject *argv[4];
14160
14161 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,3,argv))) SWIG_fail;
14162 --argc;
14163 if (argc == 1) {
14164 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
14165 }
14166 if (argc == 3) {
14167 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
14168 }
14169
14170fail:
14171 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
14172 return NULL;
d14a1e28
RD
14173}
14174
14175
0085ce49
RD
14176SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14177 PyObject *resultobj = 0;
14178 wxEncodingConverter *result = 0 ;
14179
14180 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
14181 {
14182 PyThreadState* __tstate = wxPyBeginAllowThreads();
14183 result = (wxEncodingConverter *)new wxEncodingConverter();
14184 wxPyEndAllowThreads(__tstate);
14185 if (PyErr_Occurred()) SWIG_fail;
14186 }
14187 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
14188 return resultobj;
14189fail:
14190 return NULL;
d14a1e28
RD
14191}
14192
14193
0085ce49
RD
14194SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14195 PyObject *resultobj = 0;
14196 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14197 void *argp1 = 0 ;
14198 int res1 = 0 ;
14199 PyObject *swig_obj[1] ;
14200
14201 if (!args) SWIG_fail;
14202 swig_obj[0] = args;
14203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
14204 if (!SWIG_IsOK(res1)) {
14205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14206 }
14207 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14208 {
14209 PyThreadState* __tstate = wxPyBeginAllowThreads();
14210 delete arg1;
d14a1e28 14211
0085ce49
RD
14212 wxPyEndAllowThreads(__tstate);
14213 if (PyErr_Occurred()) SWIG_fail;
14214 }
14215 resultobj = SWIG_Py_Void();
14216 return resultobj;
14217fail:
14218 return NULL;
14219}
14220
14221
14222SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14223 PyObject *resultobj = 0;
14224 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14225 wxFontEncoding arg2 ;
14226 wxFontEncoding arg3 ;
14227 int arg4 = (int) wxCONVERT_STRICT ;
14228 bool result;
14229 void *argp1 = 0 ;
14230 int res1 = 0 ;
14231 int val2 ;
14232 int ecode2 = 0 ;
14233 int val3 ;
14234 int ecode3 = 0 ;
14235 int val4 ;
14236 int ecode4 = 0 ;
14237 PyObject * obj0 = 0 ;
14238 PyObject * obj1 = 0 ;
14239 PyObject * obj2 = 0 ;
14240 PyObject * obj3 = 0 ;
14241 char * kwnames[] = {
14242 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
14243 };
14244
14245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
14247 if (!SWIG_IsOK(res1)) {
14248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14249 }
14250 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14251 ecode2 = SWIG_AsVal_int(obj1, &val2);
14252 if (!SWIG_IsOK(ecode2)) {
14253 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14254 }
14255 arg2 = static_cast< wxFontEncoding >(val2);
14256 ecode3 = SWIG_AsVal_int(obj2, &val3);
14257 if (!SWIG_IsOK(ecode3)) {
14258 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
14259 }
14260 arg3 = static_cast< wxFontEncoding >(val3);
14261 if (obj3) {
14262 ecode4 = SWIG_AsVal_int(obj3, &val4);
14263 if (!SWIG_IsOK(ecode4)) {
14264 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
14265 }
14266 arg4 = static_cast< int >(val4);
14267 }
14268 {
14269 PyThreadState* __tstate = wxPyBeginAllowThreads();
14270 result = (bool)(arg1)->Init(arg2,arg3,arg4);
14271 wxPyEndAllowThreads(__tstate);
14272 if (PyErr_Occurred()) SWIG_fail;
14273 }
14274 {
14275 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14276 }
14277 return resultobj;
14278fail:
14279 return NULL;
14280}
14281
14282
14283SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14284 PyObject *resultobj = 0;
14285 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14286 wxString *arg2 = 0 ;
14287 wxString result;
14288 void *argp1 = 0 ;
14289 int res1 = 0 ;
14290 bool temp2 = false ;
14291 PyObject * obj0 = 0 ;
14292 PyObject * obj1 = 0 ;
14293 char * kwnames[] = {
14294 (char *) "self",(char *) "input", NULL
14295 };
14296
14297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
14298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
14299 if (!SWIG_IsOK(res1)) {
14300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14301 }
14302 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14303 {
14304 arg2 = wxString_in_helper(obj1);
14305 if (arg2 == NULL) SWIG_fail;
14306 temp2 = true;
14307 }
14308 {
14309 PyThreadState* __tstate = wxPyBeginAllowThreads();
14310 result = (arg1)->Convert((wxString const &)*arg2);
14311 wxPyEndAllowThreads(__tstate);
14312 if (PyErr_Occurred()) SWIG_fail;
14313 }
14314 {
14315#if wxUSE_UNICODE
14316 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14317#else
14318 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14319#endif
14320 }
14321 {
14322 if (temp2)
14323 delete arg2;
14324 }
14325 return resultobj;
14326fail:
14327 {
14328 if (temp2)
14329 delete arg2;
14330 }
14331 return NULL;
14332}
14333
14334
14335SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14336 PyObject *resultobj = 0;
14337 wxFontEncoding arg1 ;
14338 int arg2 = (int) wxPLATFORM_CURRENT ;
14339 wxFontEncodingArray result;
14340 int val1 ;
14341 int ecode1 = 0 ;
14342 int val2 ;
14343 int ecode2 = 0 ;
14344 PyObject * obj0 = 0 ;
14345 PyObject * obj1 = 0 ;
14346 char * kwnames[] = {
14347 (char *) "enc",(char *) "platform", NULL
14348 };
14349
14350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
14351 ecode1 = SWIG_AsVal_int(obj0, &val1);
14352 if (!SWIG_IsOK(ecode1)) {
14353 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14354 }
14355 arg1 = static_cast< wxFontEncoding >(val1);
14356 if (obj1) {
14357 ecode2 = SWIG_AsVal_int(obj1, &val2);
14358 if (!SWIG_IsOK(ecode2)) {
14359 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
14360 }
14361 arg2 = static_cast< int >(val2);
14362 }
14363 {
14364 PyThreadState* __tstate = wxPyBeginAllowThreads();
14365 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
14366 wxPyEndAllowThreads(__tstate);
14367 if (PyErr_Occurred()) SWIG_fail;
14368 }
14369 {
14370 resultobj = PyList_New(0);
14371 for (size_t i=0; i < (&result)->GetCount(); i++) {
14372 PyObject* number = PyInt_FromLong((&result)->Item(i));
14373 PyList_Append(resultobj, number);
14374 Py_DECREF(number);
093d3ff1 14375 }
0085ce49
RD
14376 }
14377 return resultobj;
14378fail:
14379 return NULL;
d14a1e28
RD
14380}
14381
14382
0085ce49
RD
14383SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14384 PyObject *resultobj = 0;
14385 wxFontEncoding arg1 ;
14386 wxFontEncodingArray result;
14387 int val1 ;
14388 int ecode1 = 0 ;
14389 PyObject * obj0 = 0 ;
14390 char * kwnames[] = {
14391 (char *) "enc", NULL
14392 };
14393
14394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
14395 ecode1 = SWIG_AsVal_int(obj0, &val1);
14396 if (!SWIG_IsOK(ecode1)) {
14397 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14398 }
14399 arg1 = static_cast< wxFontEncoding >(val1);
14400 {
14401 PyThreadState* __tstate = wxPyBeginAllowThreads();
14402 result = wxEncodingConverter::GetAllEquivalents(arg1);
14403 wxPyEndAllowThreads(__tstate);
14404 if (PyErr_Occurred()) SWIG_fail;
14405 }
14406 {
14407 resultobj = PyList_New(0);
14408 for (size_t i=0; i < (&result)->GetCount(); i++) {
14409 PyObject* number = PyInt_FromLong((&result)->Item(i));
14410 PyList_Append(resultobj, number);
14411 Py_DECREF(number);
093d3ff1 14412 }
0085ce49
RD
14413 }
14414 return resultobj;
14415fail:
14416 return NULL;
14417}
14418
14419
14420SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14421 PyObject *resultobj = 0;
14422 wxFontEncoding arg1 ;
14423 wxFontEncoding arg2 ;
14424 bool result;
14425 int val1 ;
14426 int ecode1 = 0 ;
14427 int val2 ;
14428 int ecode2 = 0 ;
14429 PyObject * obj0 = 0 ;
14430 PyObject * obj1 = 0 ;
14431 char * kwnames[] = {
14432 (char *) "encIn",(char *) "encOut", NULL
14433 };
14434
14435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
14436 ecode1 = SWIG_AsVal_int(obj0, &val1);
14437 if (!SWIG_IsOK(ecode1)) {
14438 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14439 }
14440 arg1 = static_cast< wxFontEncoding >(val1);
14441 ecode2 = SWIG_AsVal_int(obj1, &val2);
14442 if (!SWIG_IsOK(ecode2)) {
14443 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14444 }
14445 arg2 = static_cast< wxFontEncoding >(val2);
14446 {
14447 PyThreadState* __tstate = wxPyBeginAllowThreads();
14448 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
14449 wxPyEndAllowThreads(__tstate);
14450 if (PyErr_Occurred()) SWIG_fail;
14451 }
14452 {
14453 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14454 }
14455 return resultobj;
14456fail:
14457 return NULL;
d14a1e28
RD
14458}
14459
14460
0085ce49
RD
14461SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14462 PyObject *obj;
14463 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14464 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
14465 return SWIG_Py_Void();
d14a1e28
RD
14466}
14467
0085ce49
RD
14468SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14469 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
14470}
14471
0085ce49
RD
14472SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14473 PyObject *resultobj = 0;
14474 wxDC *arg1 = (wxDC *) 0 ;
14475 void *argp1 = 0 ;
14476 int res1 = 0 ;
14477 PyObject *swig_obj[1] ;
14478
14479 if (!args) SWIG_fail;
14480 swig_obj[0] = args;
14481 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
14482 if (!SWIG_IsOK(res1)) {
14483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
14484 }
14485 arg1 = reinterpret_cast< wxDC * >(argp1);
14486 {
14487 PyThreadState* __tstate = wxPyBeginAllowThreads();
14488 delete arg1;
d14a1e28 14489
0085ce49
RD
14490 wxPyEndAllowThreads(__tstate);
14491 if (PyErr_Occurred()) SWIG_fail;
14492 }
14493 resultobj = SWIG_Py_Void();
14494 return resultobj;
14495fail:
14496 return NULL;
14497}
14498
14499
14500SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14501 PyObject *resultobj = 0;
14502 wxDC *arg1 = (wxDC *) 0 ;
14503 int arg2 ;
14504 int arg3 ;
14505 wxColour *arg4 = 0 ;
14506 int arg5 = (int) wxFLOOD_SURFACE ;
14507 bool result;
14508 void *argp1 = 0 ;
14509 int res1 = 0 ;
14510 int val2 ;
14511 int ecode2 = 0 ;
14512 int val3 ;
14513 int ecode3 = 0 ;
14514 wxColour temp4 ;
14515 int val5 ;
14516 int ecode5 = 0 ;
14517 PyObject * obj0 = 0 ;
14518 PyObject * obj1 = 0 ;
14519 PyObject * obj2 = 0 ;
14520 PyObject * obj3 = 0 ;
14521 PyObject * obj4 = 0 ;
14522 char * kwnames[] = {
14523 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
14524 };
14525
14526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14528 if (!SWIG_IsOK(res1)) {
14529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
14530 }
14531 arg1 = reinterpret_cast< wxDC * >(argp1);
14532 ecode2 = SWIG_AsVal_int(obj1, &val2);
14533 if (!SWIG_IsOK(ecode2)) {
14534 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
14535 }
14536 arg2 = static_cast< int >(val2);
14537 ecode3 = SWIG_AsVal_int(obj2, &val3);
14538 if (!SWIG_IsOK(ecode3)) {
14539 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
14540 }
14541 arg3 = static_cast< int >(val3);
14542 {
14543 arg4 = &temp4;
14544 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
14545 }
14546 if (obj4) {
14547 ecode5 = SWIG_AsVal_int(obj4, &val5);
14548 if (!SWIG_IsOK(ecode5)) {
14549 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
14550 }
14551 arg5 = static_cast< int >(val5);
14552 }
14553 {
14554 PyThreadState* __tstate = wxPyBeginAllowThreads();
14555 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
14556 wxPyEndAllowThreads(__tstate);
14557 if (PyErr_Occurred()) SWIG_fail;
14558 }
14559 {
14560 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14561 }
14562 return resultobj;
14563fail:
14564 return NULL;
14565}
14566
14567
14568SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14569 PyObject *resultobj = 0;
14570 wxDC *arg1 = (wxDC *) 0 ;
14571 wxPoint *arg2 = 0 ;
14572 wxColour *arg3 = 0 ;
14573 int arg4 = (int) wxFLOOD_SURFACE ;
14574 bool result;
14575 void *argp1 = 0 ;
14576 int res1 = 0 ;
14577 wxPoint temp2 ;
14578 wxColour temp3 ;
14579 int val4 ;
14580 int ecode4 = 0 ;
14581 PyObject * obj0 = 0 ;
14582 PyObject * obj1 = 0 ;
14583 PyObject * obj2 = 0 ;
14584 PyObject * obj3 = 0 ;
14585 char * kwnames[] = {
14586 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
14587 };
14588
14589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14591 if (!SWIG_IsOK(res1)) {
14592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
14593 }
14594 arg1 = reinterpret_cast< wxDC * >(argp1);
14595 {
14596 arg2 = &temp2;
14597 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14598 }
14599 {
14600 arg3 = &temp3;
14601 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14602 }
14603 if (obj3) {
14604 ecode4 = SWIG_AsVal_int(obj3, &val4);
14605 if (!SWIG_IsOK(ecode4)) {
14606 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
14607 }
14608 arg4 = static_cast< int >(val4);
14609 }
14610 {
14611 PyThreadState* __tstate = wxPyBeginAllowThreads();
14612 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
14613 wxPyEndAllowThreads(__tstate);
14614 if (PyErr_Occurred()) SWIG_fail;
14615 }
14616 {
14617 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14618 }
14619 return resultobj;
14620fail:
14621 return NULL;
14622}
14623
14624
14625SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14626 PyObject *resultobj = 0;
14627 wxDC *arg1 = (wxDC *) 0 ;
14628 wxRect *arg2 = 0 ;
14629 wxColour *arg3 = 0 ;
14630 wxColour *arg4 = 0 ;
14631 wxPoint *arg5 = 0 ;
14632 void *argp1 = 0 ;
14633 int res1 = 0 ;
14634 wxRect temp2 ;
14635 wxColour temp3 ;
14636 wxColour temp4 ;
14637 wxPoint temp5 ;
14638 PyObject * obj0 = 0 ;
14639 PyObject * obj1 = 0 ;
14640 PyObject * obj2 = 0 ;
14641 PyObject * obj3 = 0 ;
14642 PyObject * obj4 = 0 ;
14643 char * kwnames[] = {
14644 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
14645 };
14646
14647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14649 if (!SWIG_IsOK(res1)) {
14650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
14651 }
14652 arg1 = reinterpret_cast< wxDC * >(argp1);
14653 {
14654 arg2 = &temp2;
14655 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
14656 }
14657 {
14658 arg3 = &temp3;
14659 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14660 }
14661 {
14662 arg4 = &temp4;
14663 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
14664 }
14665 {
14666 arg5 = &temp5;
14667 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
14668 }
14669 {
14670 PyThreadState* __tstate = wxPyBeginAllowThreads();
14671 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
14672 wxPyEndAllowThreads(__tstate);
14673 if (PyErr_Occurred()) SWIG_fail;
14674 }
14675 resultobj = SWIG_Py_Void();
14676 return resultobj;
14677fail:
14678 return NULL;
14679}
14680
14681
14682SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14683 PyObject *resultobj = 0;
14684 wxDC *arg1 = (wxDC *) 0 ;
14685 wxRect *arg2 = 0 ;
14686 wxColour *arg3 = 0 ;
14687 wxColour *arg4 = 0 ;
14688 wxDirection arg5 = (wxDirection) wxEAST ;
14689 void *argp1 = 0 ;
14690 int res1 = 0 ;
14691 wxRect temp2 ;
14692 wxColour temp3 ;
14693 wxColour temp4 ;
14694 int val5 ;
14695 int ecode5 = 0 ;
14696 PyObject * obj0 = 0 ;
14697 PyObject * obj1 = 0 ;
14698 PyObject * obj2 = 0 ;
14699 PyObject * obj3 = 0 ;
14700 PyObject * obj4 = 0 ;
14701 char * kwnames[] = {
14702 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
14703 };
14704
14705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14707 if (!SWIG_IsOK(res1)) {
14708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
14709 }
14710 arg1 = reinterpret_cast< wxDC * >(argp1);
14711 {
14712 arg2 = &temp2;
14713 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
14714 }
14715 {
14716 arg3 = &temp3;
14717 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14718 }
14719 {
14720 arg4 = &temp4;
14721 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
14722 }
14723 if (obj4) {
14724 ecode5 = SWIG_AsVal_int(obj4, &val5);
14725 if (!SWIG_IsOK(ecode5)) {
14726 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
14727 }
14728 arg5 = static_cast< wxDirection >(val5);
14729 }
14730 {
14731 PyThreadState* __tstate = wxPyBeginAllowThreads();
14732 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
14733 wxPyEndAllowThreads(__tstate);
14734 if (PyErr_Occurred()) SWIG_fail;
14735 }
14736 resultobj = SWIG_Py_Void();
14737 return resultobj;
14738fail:
14739 return NULL;
14740}
14741
14742
14743SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14744 PyObject *resultobj = 0;
14745 wxDC *arg1 = (wxDC *) 0 ;
14746 int arg2 ;
14747 int arg3 ;
14748 wxColour result;
14749 void *argp1 = 0 ;
14750 int res1 = 0 ;
14751 int val2 ;
14752 int ecode2 = 0 ;
14753 int val3 ;
14754 int ecode3 = 0 ;
14755 PyObject * obj0 = 0 ;
14756 PyObject * obj1 = 0 ;
14757 PyObject * obj2 = 0 ;
14758 char * kwnames[] = {
14759 (char *) "self",(char *) "x",(char *) "y", NULL
14760 };
14761
14762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14764 if (!SWIG_IsOK(res1)) {
14765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
14766 }
14767 arg1 = reinterpret_cast< wxDC * >(argp1);
14768 ecode2 = SWIG_AsVal_int(obj1, &val2);
14769 if (!SWIG_IsOK(ecode2)) {
14770 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
14771 }
14772 arg2 = static_cast< int >(val2);
14773 ecode3 = SWIG_AsVal_int(obj2, &val3);
14774 if (!SWIG_IsOK(ecode3)) {
14775 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
14776 }
14777 arg3 = static_cast< int >(val3);
14778 {
14779 PyThreadState* __tstate = wxPyBeginAllowThreads();
14780 result = wxDC_GetPixel(arg1,arg2,arg3);
14781 wxPyEndAllowThreads(__tstate);
14782 if (PyErr_Occurred()) SWIG_fail;
14783 }
14784 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
14785 return resultobj;
14786fail:
14787 return NULL;
14788}
14789
14790
14791SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14792 PyObject *resultobj = 0;
14793 wxDC *arg1 = (wxDC *) 0 ;
14794 wxPoint *arg2 = 0 ;
14795 wxColour result;
14796 void *argp1 = 0 ;
14797 int res1 = 0 ;
14798 wxPoint temp2 ;
14799 PyObject * obj0 = 0 ;
14800 PyObject * obj1 = 0 ;
14801 char * kwnames[] = {
14802 (char *) "self",(char *) "pt", NULL
14803 };
14804
14805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
14806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14807 if (!SWIG_IsOK(res1)) {
14808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
14809 }
14810 arg1 = reinterpret_cast< wxDC * >(argp1);
14811 {
14812 arg2 = &temp2;
14813 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14814 }
14815 {
14816 PyThreadState* __tstate = wxPyBeginAllowThreads();
14817 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
14818 wxPyEndAllowThreads(__tstate);
14819 if (PyErr_Occurred()) SWIG_fail;
14820 }
14821 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
14822 return resultobj;
14823fail:
14824 return NULL;
14825}
14826
14827
14828SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14829 PyObject *resultobj = 0;
14830 wxDC *arg1 = (wxDC *) 0 ;
14831 int arg2 ;
14832 int arg3 ;
14833 int arg4 ;
14834 int arg5 ;
14835 void *argp1 = 0 ;
14836 int res1 = 0 ;
14837 int val2 ;
14838 int ecode2 = 0 ;
14839 int val3 ;
14840 int ecode3 = 0 ;
14841 int val4 ;
14842 int ecode4 = 0 ;
14843 int val5 ;
14844 int ecode5 = 0 ;
14845 PyObject * obj0 = 0 ;
14846 PyObject * obj1 = 0 ;
14847 PyObject * obj2 = 0 ;
14848 PyObject * obj3 = 0 ;
14849 PyObject * obj4 = 0 ;
14850 char * kwnames[] = {
14851 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
14852 };
14853
14854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14856 if (!SWIG_IsOK(res1)) {
14857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
14858 }
14859 arg1 = reinterpret_cast< wxDC * >(argp1);
14860 ecode2 = SWIG_AsVal_int(obj1, &val2);
14861 if (!SWIG_IsOK(ecode2)) {
14862 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
14863 }
14864 arg2 = static_cast< int >(val2);
14865 ecode3 = SWIG_AsVal_int(obj2, &val3);
14866 if (!SWIG_IsOK(ecode3)) {
14867 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
14868 }
14869 arg3 = static_cast< int >(val3);
14870 ecode4 = SWIG_AsVal_int(obj3, &val4);
14871 if (!SWIG_IsOK(ecode4)) {
14872 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
14873 }
14874 arg4 = static_cast< int >(val4);
14875 ecode5 = SWIG_AsVal_int(obj4, &val5);
14876 if (!SWIG_IsOK(ecode5)) {
14877 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
14878 }
14879 arg5 = static_cast< int >(val5);
14880 {
14881 PyThreadState* __tstate = wxPyBeginAllowThreads();
14882 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
14883 wxPyEndAllowThreads(__tstate);
14884 if (PyErr_Occurred()) SWIG_fail;
14885 }
14886 resultobj = SWIG_Py_Void();
14887 return resultobj;
14888fail:
14889 return NULL;
14890}
14891
14892
14893SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14894 PyObject *resultobj = 0;
14895 wxDC *arg1 = (wxDC *) 0 ;
14896 wxPoint *arg2 = 0 ;
14897 wxPoint *arg3 = 0 ;
14898 void *argp1 = 0 ;
14899 int res1 = 0 ;
14900 wxPoint temp2 ;
14901 wxPoint temp3 ;
14902 PyObject * obj0 = 0 ;
14903 PyObject * obj1 = 0 ;
14904 PyObject * obj2 = 0 ;
14905 char * kwnames[] = {
14906 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
14907 };
14908
14909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14911 if (!SWIG_IsOK(res1)) {
14912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
14913 }
14914 arg1 = reinterpret_cast< wxDC * >(argp1);
14915 {
14916 arg2 = &temp2;
14917 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14918 }
14919 {
14920 arg3 = &temp3;
14921 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14922 }
14923 {
14924 PyThreadState* __tstate = wxPyBeginAllowThreads();
14925 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
14926 wxPyEndAllowThreads(__tstate);
14927 if (PyErr_Occurred()) SWIG_fail;
14928 }
14929 resultobj = SWIG_Py_Void();
14930 return resultobj;
14931fail:
14932 return NULL;
14933}
14934
14935
14936SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14937 PyObject *resultobj = 0;
14938 wxDC *arg1 = (wxDC *) 0 ;
14939 int arg2 ;
14940 int arg3 ;
14941 void *argp1 = 0 ;
14942 int res1 = 0 ;
14943 int val2 ;
14944 int ecode2 = 0 ;
14945 int val3 ;
14946 int ecode3 = 0 ;
14947 PyObject * obj0 = 0 ;
14948 PyObject * obj1 = 0 ;
14949 PyObject * obj2 = 0 ;
14950 char * kwnames[] = {
14951 (char *) "self",(char *) "x",(char *) "y", NULL
14952 };
14953
14954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14956 if (!SWIG_IsOK(res1)) {
14957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
14958 }
14959 arg1 = reinterpret_cast< wxDC * >(argp1);
14960 ecode2 = SWIG_AsVal_int(obj1, &val2);
14961 if (!SWIG_IsOK(ecode2)) {
14962 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
14963 }
14964 arg2 = static_cast< int >(val2);
14965 ecode3 = SWIG_AsVal_int(obj2, &val3);
14966 if (!SWIG_IsOK(ecode3)) {
14967 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
14968 }
14969 arg3 = static_cast< int >(val3);
14970 {
14971 PyThreadState* __tstate = wxPyBeginAllowThreads();
14972 (arg1)->CrossHair(arg2,arg3);
14973 wxPyEndAllowThreads(__tstate);
14974 if (PyErr_Occurred()) SWIG_fail;
14975 }
14976 resultobj = SWIG_Py_Void();
14977 return resultobj;
14978fail:
14979 return NULL;
14980}
14981
14982
14983SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14984 PyObject *resultobj = 0;
14985 wxDC *arg1 = (wxDC *) 0 ;
14986 wxPoint *arg2 = 0 ;
14987 void *argp1 = 0 ;
14988 int res1 = 0 ;
14989 wxPoint temp2 ;
14990 PyObject * obj0 = 0 ;
14991 PyObject * obj1 = 0 ;
14992 char * kwnames[] = {
14993 (char *) "self",(char *) "pt", NULL
14994 };
14995
14996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
14997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14998 if (!SWIG_IsOK(res1)) {
14999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15000 }
15001 arg1 = reinterpret_cast< wxDC * >(argp1);
15002 {
15003 arg2 = &temp2;
15004 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15005 }
15006 {
15007 PyThreadState* __tstate = wxPyBeginAllowThreads();
15008 (arg1)->CrossHair((wxPoint const &)*arg2);
15009 wxPyEndAllowThreads(__tstate);
15010 if (PyErr_Occurred()) SWIG_fail;
15011 }
15012 resultobj = SWIG_Py_Void();
15013 return resultobj;
15014fail:
15015 return NULL;
15016}
15017
15018
15019SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15020 PyObject *resultobj = 0;
15021 wxDC *arg1 = (wxDC *) 0 ;
15022 int arg2 ;
15023 int arg3 ;
15024 int arg4 ;
15025 int arg5 ;
15026 int arg6 ;
15027 int arg7 ;
15028 void *argp1 = 0 ;
15029 int res1 = 0 ;
15030 int val2 ;
15031 int ecode2 = 0 ;
15032 int val3 ;
15033 int ecode3 = 0 ;
15034 int val4 ;
15035 int ecode4 = 0 ;
15036 int val5 ;
15037 int ecode5 = 0 ;
15038 int val6 ;
15039 int ecode6 = 0 ;
15040 int val7 ;
15041 int ecode7 = 0 ;
15042 PyObject * obj0 = 0 ;
15043 PyObject * obj1 = 0 ;
15044 PyObject * obj2 = 0 ;
15045 PyObject * obj3 = 0 ;
15046 PyObject * obj4 = 0 ;
15047 PyObject * obj5 = 0 ;
15048 PyObject * obj6 = 0 ;
15049 char * kwnames[] = {
15050 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
15051 };
15052
15053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
15054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15055 if (!SWIG_IsOK(res1)) {
15056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
15057 }
15058 arg1 = reinterpret_cast< wxDC * >(argp1);
15059 ecode2 = SWIG_AsVal_int(obj1, &val2);
15060 if (!SWIG_IsOK(ecode2)) {
15061 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
15062 }
15063 arg2 = static_cast< int >(val2);
15064 ecode3 = SWIG_AsVal_int(obj2, &val3);
15065 if (!SWIG_IsOK(ecode3)) {
15066 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
15067 }
15068 arg3 = static_cast< int >(val3);
15069 ecode4 = SWIG_AsVal_int(obj3, &val4);
15070 if (!SWIG_IsOK(ecode4)) {
15071 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
15072 }
15073 arg4 = static_cast< int >(val4);
15074 ecode5 = SWIG_AsVal_int(obj4, &val5);
15075 if (!SWIG_IsOK(ecode5)) {
15076 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
15077 }
15078 arg5 = static_cast< int >(val5);
15079 ecode6 = SWIG_AsVal_int(obj5, &val6);
15080 if (!SWIG_IsOK(ecode6)) {
15081 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
15082 }
15083 arg6 = static_cast< int >(val6);
15084 ecode7 = SWIG_AsVal_int(obj6, &val7);
15085 if (!SWIG_IsOK(ecode7)) {
15086 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
15087 }
15088 arg7 = static_cast< int >(val7);
15089 {
15090 PyThreadState* __tstate = wxPyBeginAllowThreads();
15091 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
15092 wxPyEndAllowThreads(__tstate);
15093 if (PyErr_Occurred()) SWIG_fail;
15094 }
15095 resultobj = SWIG_Py_Void();
15096 return resultobj;
15097fail:
15098 return NULL;
15099}
15100
15101
15102SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15103 PyObject *resultobj = 0;
15104 wxDC *arg1 = (wxDC *) 0 ;
15105 wxPoint *arg2 = 0 ;
15106 wxPoint *arg3 = 0 ;
15107 wxPoint *arg4 = 0 ;
15108 void *argp1 = 0 ;
15109 int res1 = 0 ;
15110 wxPoint temp2 ;
15111 wxPoint temp3 ;
15112 wxPoint temp4 ;
15113 PyObject * obj0 = 0 ;
15114 PyObject * obj1 = 0 ;
15115 PyObject * obj2 = 0 ;
15116 PyObject * obj3 = 0 ;
15117 char * kwnames[] = {
15118 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
15119 };
15120
15121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15123 if (!SWIG_IsOK(res1)) {
15124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15125 }
15126 arg1 = reinterpret_cast< wxDC * >(argp1);
15127 {
15128 arg2 = &temp2;
15129 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15130 }
15131 {
15132 arg3 = &temp3;
15133 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15134 }
15135 {
15136 arg4 = &temp4;
15137 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15138 }
15139 {
15140 PyThreadState* __tstate = wxPyBeginAllowThreads();
15141 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
15142 wxPyEndAllowThreads(__tstate);
15143 if (PyErr_Occurred()) SWIG_fail;
15144 }
15145 resultobj = SWIG_Py_Void();
15146 return resultobj;
15147fail:
15148 return NULL;
15149}
15150
15151
15152SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15153 PyObject *resultobj = 0;
15154 wxDC *arg1 = (wxDC *) 0 ;
15155 int arg2 ;
15156 int arg3 ;
15157 int arg4 ;
15158 int arg5 ;
15159 void *argp1 = 0 ;
15160 int res1 = 0 ;
15161 int val2 ;
15162 int ecode2 = 0 ;
15163 int val3 ;
15164 int ecode3 = 0 ;
15165 int val4 ;
15166 int ecode4 = 0 ;
15167 int val5 ;
15168 int ecode5 = 0 ;
15169 PyObject * obj0 = 0 ;
15170 PyObject * obj1 = 0 ;
15171 PyObject * obj2 = 0 ;
15172 PyObject * obj3 = 0 ;
15173 PyObject * obj4 = 0 ;
15174 char * kwnames[] = {
15175 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
15176 };
15177
15178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15180 if (!SWIG_IsOK(res1)) {
15181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
15182 }
15183 arg1 = reinterpret_cast< wxDC * >(argp1);
15184 ecode2 = SWIG_AsVal_int(obj1, &val2);
15185 if (!SWIG_IsOK(ecode2)) {
15186 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
15187 }
15188 arg2 = static_cast< int >(val2);
15189 ecode3 = SWIG_AsVal_int(obj2, &val3);
15190 if (!SWIG_IsOK(ecode3)) {
15191 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
15192 }
15193 arg3 = static_cast< int >(val3);
15194 ecode4 = SWIG_AsVal_int(obj3, &val4);
15195 if (!SWIG_IsOK(ecode4)) {
15196 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
15197 }
15198 arg4 = static_cast< int >(val4);
15199 ecode5 = SWIG_AsVal_int(obj4, &val5);
15200 if (!SWIG_IsOK(ecode5)) {
15201 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
15202 }
15203 arg5 = static_cast< int >(val5);
15204 {
15205 PyThreadState* __tstate = wxPyBeginAllowThreads();
15206 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
15207 wxPyEndAllowThreads(__tstate);
15208 if (PyErr_Occurred()) SWIG_fail;
15209 }
15210 resultobj = SWIG_Py_Void();
15211 return resultobj;
15212fail:
15213 return NULL;
15214}
15215
15216
15217SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15218 PyObject *resultobj = 0;
15219 wxDC *arg1 = (wxDC *) 0 ;
15220 wxRect *arg2 = 0 ;
15221 void *argp1 = 0 ;
15222 int res1 = 0 ;
15223 wxRect temp2 ;
15224 PyObject * obj0 = 0 ;
15225 PyObject * obj1 = 0 ;
15226 char * kwnames[] = {
15227 (char *) "self",(char *) "rect", NULL
15228 };
15229
15230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
15231 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15232 if (!SWIG_IsOK(res1)) {
15233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
15234 }
15235 arg1 = reinterpret_cast< wxDC * >(argp1);
15236 {
15237 arg2 = &temp2;
15238 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15239 }
15240 {
15241 PyThreadState* __tstate = wxPyBeginAllowThreads();
15242 (arg1)->DrawCheckMark((wxRect const &)*arg2);
15243 wxPyEndAllowThreads(__tstate);
15244 if (PyErr_Occurred()) SWIG_fail;
15245 }
15246 resultobj = SWIG_Py_Void();
15247 return resultobj;
15248fail:
15249 return NULL;
15250}
15251
15252
15253SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15254 PyObject *resultobj = 0;
15255 wxDC *arg1 = (wxDC *) 0 ;
15256 int arg2 ;
15257 int arg3 ;
15258 int arg4 ;
15259 int arg5 ;
15260 double arg6 ;
15261 double arg7 ;
15262 void *argp1 = 0 ;
15263 int res1 = 0 ;
15264 int val2 ;
15265 int ecode2 = 0 ;
15266 int val3 ;
15267 int ecode3 = 0 ;
15268 int val4 ;
15269 int ecode4 = 0 ;
15270 int val5 ;
15271 int ecode5 = 0 ;
15272 double val6 ;
15273 int ecode6 = 0 ;
15274 double val7 ;
15275 int ecode7 = 0 ;
15276 PyObject * obj0 = 0 ;
15277 PyObject * obj1 = 0 ;
15278 PyObject * obj2 = 0 ;
15279 PyObject * obj3 = 0 ;
15280 PyObject * obj4 = 0 ;
15281 PyObject * obj5 = 0 ;
15282 PyObject * obj6 = 0 ;
15283 char * kwnames[] = {
15284 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
15285 };
15286
15287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
15288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15289 if (!SWIG_IsOK(res1)) {
15290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
15291 }
15292 arg1 = reinterpret_cast< wxDC * >(argp1);
15293 ecode2 = SWIG_AsVal_int(obj1, &val2);
15294 if (!SWIG_IsOK(ecode2)) {
15295 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
15296 }
15297 arg2 = static_cast< int >(val2);
15298 ecode3 = SWIG_AsVal_int(obj2, &val3);
15299 if (!SWIG_IsOK(ecode3)) {
15300 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
15301 }
15302 arg3 = static_cast< int >(val3);
15303 ecode4 = SWIG_AsVal_int(obj3, &val4);
15304 if (!SWIG_IsOK(ecode4)) {
15305 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
15306 }
15307 arg4 = static_cast< int >(val4);
15308 ecode5 = SWIG_AsVal_int(obj4, &val5);
15309 if (!SWIG_IsOK(ecode5)) {
15310 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
15311 }
15312 arg5 = static_cast< int >(val5);
15313 ecode6 = SWIG_AsVal_double(obj5, &val6);
15314 if (!SWIG_IsOK(ecode6)) {
15315 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
15316 }
15317 arg6 = static_cast< double >(val6);
15318 ecode7 = SWIG_AsVal_double(obj6, &val7);
15319 if (!SWIG_IsOK(ecode7)) {
15320 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
15321 }
15322 arg7 = static_cast< double >(val7);
15323 {
15324 PyThreadState* __tstate = wxPyBeginAllowThreads();
15325 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
15326 wxPyEndAllowThreads(__tstate);
15327 if (PyErr_Occurred()) SWIG_fail;
15328 }
15329 resultobj = SWIG_Py_Void();
15330 return resultobj;
15331fail:
15332 return NULL;
15333}
15334
15335
15336SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15337 PyObject *resultobj = 0;
15338 wxDC *arg1 = (wxDC *) 0 ;
15339 wxPoint *arg2 = 0 ;
15340 wxSize *arg3 = 0 ;
15341 double arg4 ;
15342 double arg5 ;
15343 void *argp1 = 0 ;
15344 int res1 = 0 ;
15345 wxPoint temp2 ;
15346 wxSize temp3 ;
15347 double val4 ;
15348 int ecode4 = 0 ;
15349 double val5 ;
15350 int ecode5 = 0 ;
15351 PyObject * obj0 = 0 ;
15352 PyObject * obj1 = 0 ;
15353 PyObject * obj2 = 0 ;
15354 PyObject * obj3 = 0 ;
15355 PyObject * obj4 = 0 ;
15356 char * kwnames[] = {
15357 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
15358 };
15359
15360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15362 if (!SWIG_IsOK(res1)) {
15363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
15364 }
15365 arg1 = reinterpret_cast< wxDC * >(argp1);
15366 {
15367 arg2 = &temp2;
15368 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15369 }
15370 {
15371 arg3 = &temp3;
15372 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
15373 }
15374 ecode4 = SWIG_AsVal_double(obj3, &val4);
15375 if (!SWIG_IsOK(ecode4)) {
15376 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
15377 }
15378 arg4 = static_cast< double >(val4);
15379 ecode5 = SWIG_AsVal_double(obj4, &val5);
15380 if (!SWIG_IsOK(ecode5)) {
15381 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
15382 }
15383 arg5 = static_cast< double >(val5);
15384 {
15385 PyThreadState* __tstate = wxPyBeginAllowThreads();
15386 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
15387 wxPyEndAllowThreads(__tstate);
15388 if (PyErr_Occurred()) SWIG_fail;
15389 }
15390 resultobj = SWIG_Py_Void();
15391 return resultobj;
15392fail:
15393 return NULL;
15394}
15395
15396
15397SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15398 PyObject *resultobj = 0;
15399 wxDC *arg1 = (wxDC *) 0 ;
15400 int arg2 ;
15401 int arg3 ;
15402 void *argp1 = 0 ;
15403 int res1 = 0 ;
15404 int val2 ;
15405 int ecode2 = 0 ;
15406 int val3 ;
15407 int ecode3 = 0 ;
15408 PyObject * obj0 = 0 ;
15409 PyObject * obj1 = 0 ;
15410 PyObject * obj2 = 0 ;
15411 char * kwnames[] = {
15412 (char *) "self",(char *) "x",(char *) "y", NULL
15413 };
15414
15415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15417 if (!SWIG_IsOK(res1)) {
15418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15419 }
15420 arg1 = reinterpret_cast< wxDC * >(argp1);
15421 ecode2 = SWIG_AsVal_int(obj1, &val2);
15422 if (!SWIG_IsOK(ecode2)) {
15423 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
15424 }
15425 arg2 = static_cast< int >(val2);
15426 ecode3 = SWIG_AsVal_int(obj2, &val3);
15427 if (!SWIG_IsOK(ecode3)) {
15428 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
15429 }
15430 arg3 = static_cast< int >(val3);
15431 {
15432 PyThreadState* __tstate = wxPyBeginAllowThreads();
15433 (arg1)->DrawPoint(arg2,arg3);
15434 wxPyEndAllowThreads(__tstate);
15435 if (PyErr_Occurred()) SWIG_fail;
15436 }
15437 resultobj = SWIG_Py_Void();
15438 return resultobj;
15439fail:
15440 return NULL;
15441}
15442
15443
15444SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15445 PyObject *resultobj = 0;
15446 wxDC *arg1 = (wxDC *) 0 ;
15447 wxPoint *arg2 = 0 ;
15448 void *argp1 = 0 ;
15449 int res1 = 0 ;
15450 wxPoint temp2 ;
15451 PyObject * obj0 = 0 ;
15452 PyObject * obj1 = 0 ;
15453 char * kwnames[] = {
15454 (char *) "self",(char *) "pt", NULL
15455 };
15456
15457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
15458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15459 if (!SWIG_IsOK(res1)) {
15460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15461 }
15462 arg1 = reinterpret_cast< wxDC * >(argp1);
15463 {
15464 arg2 = &temp2;
15465 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15466 }
15467 {
15468 PyThreadState* __tstate = wxPyBeginAllowThreads();
15469 (arg1)->DrawPoint((wxPoint const &)*arg2);
15470 wxPyEndAllowThreads(__tstate);
15471 if (PyErr_Occurred()) SWIG_fail;
15472 }
15473 resultobj = SWIG_Py_Void();
15474 return resultobj;
15475fail:
15476 return NULL;
15477}
15478
15479
15480SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15481 PyObject *resultobj = 0;
15482 wxDC *arg1 = (wxDC *) 0 ;
15483 int arg2 ;
15484 int arg3 ;
15485 int arg4 ;
15486 int arg5 ;
15487 void *argp1 = 0 ;
15488 int res1 = 0 ;
15489 int val2 ;
15490 int ecode2 = 0 ;
15491 int val3 ;
15492 int ecode3 = 0 ;
15493 int val4 ;
15494 int ecode4 = 0 ;
15495 int val5 ;
15496 int ecode5 = 0 ;
15497 PyObject * obj0 = 0 ;
15498 PyObject * obj1 = 0 ;
15499 PyObject * obj2 = 0 ;
15500 PyObject * obj3 = 0 ;
15501 PyObject * obj4 = 0 ;
15502 char * kwnames[] = {
15503 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
15504 };
15505
15506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15508 if (!SWIG_IsOK(res1)) {
15509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
15510 }
15511 arg1 = reinterpret_cast< wxDC * >(argp1);
15512 ecode2 = SWIG_AsVal_int(obj1, &val2);
15513 if (!SWIG_IsOK(ecode2)) {
15514 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
15515 }
15516 arg2 = static_cast< int >(val2);
15517 ecode3 = SWIG_AsVal_int(obj2, &val3);
15518 if (!SWIG_IsOK(ecode3)) {
15519 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
15520 }
15521 arg3 = static_cast< int >(val3);
15522 ecode4 = SWIG_AsVal_int(obj3, &val4);
15523 if (!SWIG_IsOK(ecode4)) {
15524 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
15525 }
15526 arg4 = static_cast< int >(val4);
15527 ecode5 = SWIG_AsVal_int(obj4, &val5);
15528 if (!SWIG_IsOK(ecode5)) {
15529 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
15530 }
15531 arg5 = static_cast< int >(val5);
15532 {
15533 PyThreadState* __tstate = wxPyBeginAllowThreads();
15534 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
15535 wxPyEndAllowThreads(__tstate);
15536 if (PyErr_Occurred()) SWIG_fail;
15537 }
15538 resultobj = SWIG_Py_Void();
15539 return resultobj;
15540fail:
15541 return NULL;
15542}
15543
15544
15545SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15546 PyObject *resultobj = 0;
15547 wxDC *arg1 = (wxDC *) 0 ;
15548 wxRect *arg2 = 0 ;
15549 void *argp1 = 0 ;
15550 int res1 = 0 ;
15551 wxRect temp2 ;
15552 PyObject * obj0 = 0 ;
15553 PyObject * obj1 = 0 ;
15554 char * kwnames[] = {
15555 (char *) "self",(char *) "rect", NULL
15556 };
15557
15558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
15559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15560 if (!SWIG_IsOK(res1)) {
15561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
15562 }
15563 arg1 = reinterpret_cast< wxDC * >(argp1);
15564 {
15565 arg2 = &temp2;
15566 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15567 }
15568 {
15569 PyThreadState* __tstate = wxPyBeginAllowThreads();
15570 (arg1)->DrawRectangle((wxRect const &)*arg2);
15571 wxPyEndAllowThreads(__tstate);
15572 if (PyErr_Occurred()) SWIG_fail;
15573 }
15574 resultobj = SWIG_Py_Void();
15575 return resultobj;
15576fail:
15577 return NULL;
15578}
15579
15580
15581SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15582 PyObject *resultobj = 0;
15583 wxDC *arg1 = (wxDC *) 0 ;
15584 wxPoint *arg2 = 0 ;
15585 wxSize *arg3 = 0 ;
15586 void *argp1 = 0 ;
15587 int res1 = 0 ;
15588 wxPoint temp2 ;
15589 wxSize temp3 ;
15590 PyObject * obj0 = 0 ;
15591 PyObject * obj1 = 0 ;
15592 PyObject * obj2 = 0 ;
15593 char * kwnames[] = {
15594 (char *) "self",(char *) "pt",(char *) "sz", NULL
15595 };
15596
15597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15599 if (!SWIG_IsOK(res1)) {
15600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
15601 }
15602 arg1 = reinterpret_cast< wxDC * >(argp1);
15603 {
15604 arg2 = &temp2;
15605 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15606 }
15607 {
15608 arg3 = &temp3;
15609 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
15610 }
15611 {
15612 PyThreadState* __tstate = wxPyBeginAllowThreads();
15613 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
15614 wxPyEndAllowThreads(__tstate);
15615 if (PyErr_Occurred()) SWIG_fail;
15616 }
15617 resultobj = SWIG_Py_Void();
15618 return resultobj;
15619fail:
15620 return NULL;
15621}
15622
15623
15624SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15625 PyObject *resultobj = 0;
15626 wxDC *arg1 = (wxDC *) 0 ;
15627 int arg2 ;
15628 int arg3 ;
15629 int arg4 ;
15630 int arg5 ;
15631 double arg6 ;
15632 void *argp1 = 0 ;
15633 int res1 = 0 ;
15634 int val2 ;
15635 int ecode2 = 0 ;
15636 int val3 ;
15637 int ecode3 = 0 ;
15638 int val4 ;
15639 int ecode4 = 0 ;
15640 int val5 ;
15641 int ecode5 = 0 ;
15642 double val6 ;
15643 int ecode6 = 0 ;
15644 PyObject * obj0 = 0 ;
15645 PyObject * obj1 = 0 ;
15646 PyObject * obj2 = 0 ;
15647 PyObject * obj3 = 0 ;
15648 PyObject * obj4 = 0 ;
15649 PyObject * obj5 = 0 ;
15650 char * kwnames[] = {
15651 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
15652 };
15653
15654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15656 if (!SWIG_IsOK(res1)) {
15657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
15658 }
15659 arg1 = reinterpret_cast< wxDC * >(argp1);
15660 ecode2 = SWIG_AsVal_int(obj1, &val2);
15661 if (!SWIG_IsOK(ecode2)) {
15662 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
15663 }
15664 arg2 = static_cast< int >(val2);
15665 ecode3 = SWIG_AsVal_int(obj2, &val3);
15666 if (!SWIG_IsOK(ecode3)) {
15667 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
15668 }
15669 arg3 = static_cast< int >(val3);
15670 ecode4 = SWIG_AsVal_int(obj3, &val4);
15671 if (!SWIG_IsOK(ecode4)) {
15672 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
15673 }
15674 arg4 = static_cast< int >(val4);
15675 ecode5 = SWIG_AsVal_int(obj4, &val5);
15676 if (!SWIG_IsOK(ecode5)) {
15677 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
15678 }
15679 arg5 = static_cast< int >(val5);
15680 ecode6 = SWIG_AsVal_double(obj5, &val6);
15681 if (!SWIG_IsOK(ecode6)) {
15682 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
15683 }
15684 arg6 = static_cast< double >(val6);
15685 {
15686 PyThreadState* __tstate = wxPyBeginAllowThreads();
15687 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
15688 wxPyEndAllowThreads(__tstate);
15689 if (PyErr_Occurred()) SWIG_fail;
15690 }
15691 resultobj = SWIG_Py_Void();
15692 return resultobj;
15693fail:
15694 return NULL;
15695}
15696
15697
15698SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15699 PyObject *resultobj = 0;
15700 wxDC *arg1 = (wxDC *) 0 ;
15701 wxRect *arg2 = 0 ;
15702 double arg3 ;
15703 void *argp1 = 0 ;
15704 int res1 = 0 ;
15705 wxRect temp2 ;
15706 double val3 ;
15707 int ecode3 = 0 ;
15708 PyObject * obj0 = 0 ;
15709 PyObject * obj1 = 0 ;
15710 PyObject * obj2 = 0 ;
15711 char * kwnames[] = {
15712 (char *) "self",(char *) "r",(char *) "radius", NULL
15713 };
15714
15715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15717 if (!SWIG_IsOK(res1)) {
15718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
15719 }
15720 arg1 = reinterpret_cast< wxDC * >(argp1);
15721 {
15722 arg2 = &temp2;
15723 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15724 }
15725 ecode3 = SWIG_AsVal_double(obj2, &val3);
15726 if (!SWIG_IsOK(ecode3)) {
15727 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
15728 }
15729 arg3 = static_cast< double >(val3);
15730 {
15731 PyThreadState* __tstate = wxPyBeginAllowThreads();
15732 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
15733 wxPyEndAllowThreads(__tstate);
15734 if (PyErr_Occurred()) SWIG_fail;
15735 }
15736 resultobj = SWIG_Py_Void();
15737 return resultobj;
15738fail:
15739 return NULL;
15740}
15741
15742
15743SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15744 PyObject *resultobj = 0;
15745 wxDC *arg1 = (wxDC *) 0 ;
15746 wxPoint *arg2 = 0 ;
15747 wxSize *arg3 = 0 ;
15748 double arg4 ;
15749 void *argp1 = 0 ;
15750 int res1 = 0 ;
15751 wxPoint temp2 ;
15752 wxSize temp3 ;
15753 double val4 ;
15754 int ecode4 = 0 ;
15755 PyObject * obj0 = 0 ;
15756 PyObject * obj1 = 0 ;
15757 PyObject * obj2 = 0 ;
15758 PyObject * obj3 = 0 ;
15759 char * kwnames[] = {
15760 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
15761 };
15762
15763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15765 if (!SWIG_IsOK(res1)) {
15766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
15767 }
15768 arg1 = reinterpret_cast< wxDC * >(argp1);
15769 {
15770 arg2 = &temp2;
15771 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15772 }
15773 {
15774 arg3 = &temp3;
15775 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
15776 }
15777 ecode4 = SWIG_AsVal_double(obj3, &val4);
15778 if (!SWIG_IsOK(ecode4)) {
15779 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
15780 }
15781 arg4 = static_cast< double >(val4);
15782 {
15783 PyThreadState* __tstate = wxPyBeginAllowThreads();
15784 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
15785 wxPyEndAllowThreads(__tstate);
15786 if (PyErr_Occurred()) SWIG_fail;
15787 }
15788 resultobj = SWIG_Py_Void();
15789 return resultobj;
15790fail:
15791 return NULL;
15792}
15793
15794
15795SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15796 PyObject *resultobj = 0;
15797 wxDC *arg1 = (wxDC *) 0 ;
15798 int arg2 ;
15799 int arg3 ;
15800 int arg4 ;
15801 void *argp1 = 0 ;
15802 int res1 = 0 ;
15803 int val2 ;
15804 int ecode2 = 0 ;
15805 int val3 ;
15806 int ecode3 = 0 ;
15807 int val4 ;
15808 int ecode4 = 0 ;
15809 PyObject * obj0 = 0 ;
15810 PyObject * obj1 = 0 ;
15811 PyObject * obj2 = 0 ;
15812 PyObject * obj3 = 0 ;
15813 char * kwnames[] = {
15814 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
15815 };
15816
15817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15819 if (!SWIG_IsOK(res1)) {
15820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
15821 }
15822 arg1 = reinterpret_cast< wxDC * >(argp1);
15823 ecode2 = SWIG_AsVal_int(obj1, &val2);
15824 if (!SWIG_IsOK(ecode2)) {
15825 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
15826 }
15827 arg2 = static_cast< int >(val2);
15828 ecode3 = SWIG_AsVal_int(obj2, &val3);
15829 if (!SWIG_IsOK(ecode3)) {
15830 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
15831 }
15832 arg3 = static_cast< int >(val3);
15833 ecode4 = SWIG_AsVal_int(obj3, &val4);
15834 if (!SWIG_IsOK(ecode4)) {
15835 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
15836 }
15837 arg4 = static_cast< int >(val4);
15838 {
15839 PyThreadState* __tstate = wxPyBeginAllowThreads();
15840 (arg1)->DrawCircle(arg2,arg3,arg4);
15841 wxPyEndAllowThreads(__tstate);
15842 if (PyErr_Occurred()) SWIG_fail;
15843 }
15844 resultobj = SWIG_Py_Void();
15845 return resultobj;
15846fail:
15847 return NULL;
15848}
15849
15850
15851SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15852 PyObject *resultobj = 0;
15853 wxDC *arg1 = (wxDC *) 0 ;
15854 wxPoint *arg2 = 0 ;
15855 int arg3 ;
15856 void *argp1 = 0 ;
15857 int res1 = 0 ;
15858 wxPoint temp2 ;
15859 int val3 ;
15860 int ecode3 = 0 ;
15861 PyObject * obj0 = 0 ;
15862 PyObject * obj1 = 0 ;
15863 PyObject * obj2 = 0 ;
15864 char * kwnames[] = {
15865 (char *) "self",(char *) "pt",(char *) "radius", NULL
15866 };
15867
15868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15870 if (!SWIG_IsOK(res1)) {
15871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
15872 }
15873 arg1 = reinterpret_cast< wxDC * >(argp1);
15874 {
15875 arg2 = &temp2;
15876 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15877 }
15878 ecode3 = SWIG_AsVal_int(obj2, &val3);
15879 if (!SWIG_IsOK(ecode3)) {
15880 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
15881 }
15882 arg3 = static_cast< int >(val3);
15883 {
15884 PyThreadState* __tstate = wxPyBeginAllowThreads();
15885 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
15886 wxPyEndAllowThreads(__tstate);
15887 if (PyErr_Occurred()) SWIG_fail;
15888 }
15889 resultobj = SWIG_Py_Void();
15890 return resultobj;
15891fail:
15892 return NULL;
15893}
15894
15895
15896SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15897 PyObject *resultobj = 0;
15898 wxDC *arg1 = (wxDC *) 0 ;
15899 int arg2 ;
15900 int arg3 ;
15901 int arg4 ;
15902 int arg5 ;
15903 void *argp1 = 0 ;
15904 int res1 = 0 ;
15905 int val2 ;
15906 int ecode2 = 0 ;
15907 int val3 ;
15908 int ecode3 = 0 ;
15909 int val4 ;
15910 int ecode4 = 0 ;
15911 int val5 ;
15912 int ecode5 = 0 ;
15913 PyObject * obj0 = 0 ;
15914 PyObject * obj1 = 0 ;
15915 PyObject * obj2 = 0 ;
15916 PyObject * obj3 = 0 ;
15917 PyObject * obj4 = 0 ;
15918 char * kwnames[] = {
15919 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
15920 };
15921
15922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15924 if (!SWIG_IsOK(res1)) {
15925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
15926 }
15927 arg1 = reinterpret_cast< wxDC * >(argp1);
15928 ecode2 = SWIG_AsVal_int(obj1, &val2);
15929 if (!SWIG_IsOK(ecode2)) {
15930 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
15931 }
15932 arg2 = static_cast< int >(val2);
15933 ecode3 = SWIG_AsVal_int(obj2, &val3);
15934 if (!SWIG_IsOK(ecode3)) {
15935 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
15936 }
15937 arg3 = static_cast< int >(val3);
15938 ecode4 = SWIG_AsVal_int(obj3, &val4);
15939 if (!SWIG_IsOK(ecode4)) {
15940 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
15941 }
15942 arg4 = static_cast< int >(val4);
15943 ecode5 = SWIG_AsVal_int(obj4, &val5);
15944 if (!SWIG_IsOK(ecode5)) {
15945 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
15946 }
15947 arg5 = static_cast< int >(val5);
15948 {
15949 PyThreadState* __tstate = wxPyBeginAllowThreads();
15950 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
15951 wxPyEndAllowThreads(__tstate);
15952 if (PyErr_Occurred()) SWIG_fail;
15953 }
15954 resultobj = SWIG_Py_Void();
15955 return resultobj;
15956fail:
15957 return NULL;
15958}
15959
15960
15961SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15962 PyObject *resultobj = 0;
15963 wxDC *arg1 = (wxDC *) 0 ;
15964 wxRect *arg2 = 0 ;
15965 void *argp1 = 0 ;
15966 int res1 = 0 ;
15967 wxRect temp2 ;
15968 PyObject * obj0 = 0 ;
15969 PyObject * obj1 = 0 ;
15970 char * kwnames[] = {
15971 (char *) "self",(char *) "rect", NULL
15972 };
15973
15974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
15975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15976 if (!SWIG_IsOK(res1)) {
15977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
15978 }
15979 arg1 = reinterpret_cast< wxDC * >(argp1);
15980 {
15981 arg2 = &temp2;
15982 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15983 }
15984 {
15985 PyThreadState* __tstate = wxPyBeginAllowThreads();
15986 (arg1)->DrawEllipse((wxRect const &)*arg2);
15987 wxPyEndAllowThreads(__tstate);
15988 if (PyErr_Occurred()) SWIG_fail;
15989 }
15990 resultobj = SWIG_Py_Void();
15991 return resultobj;
15992fail:
15993 return NULL;
15994}
15995
15996
15997SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15998 PyObject *resultobj = 0;
15999 wxDC *arg1 = (wxDC *) 0 ;
16000 wxPoint *arg2 = 0 ;
16001 wxSize *arg3 = 0 ;
16002 void *argp1 = 0 ;
16003 int res1 = 0 ;
16004 wxPoint temp2 ;
16005 wxSize temp3 ;
16006 PyObject * obj0 = 0 ;
16007 PyObject * obj1 = 0 ;
16008 PyObject * obj2 = 0 ;
16009 char * kwnames[] = {
16010 (char *) "self",(char *) "pt",(char *) "sz", NULL
16011 };
16012
16013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16015 if (!SWIG_IsOK(res1)) {
16016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16017 }
16018 arg1 = reinterpret_cast< wxDC * >(argp1);
16019 {
16020 arg2 = &temp2;
16021 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16022 }
16023 {
16024 arg3 = &temp3;
16025 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16026 }
16027 {
16028 PyThreadState* __tstate = wxPyBeginAllowThreads();
16029 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
16030 wxPyEndAllowThreads(__tstate);
16031 if (PyErr_Occurred()) SWIG_fail;
16032 }
16033 resultobj = SWIG_Py_Void();
16034 return resultobj;
16035fail:
16036 return NULL;
16037}
16038
16039
16040SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16041 PyObject *resultobj = 0;
16042 wxDC *arg1 = (wxDC *) 0 ;
16043 wxIcon *arg2 = 0 ;
16044 int arg3 ;
16045 int arg4 ;
16046 void *argp1 = 0 ;
16047 int res1 = 0 ;
16048 void *argp2 = 0 ;
16049 int res2 = 0 ;
16050 int val3 ;
16051 int ecode3 = 0 ;
16052 int val4 ;
16053 int ecode4 = 0 ;
16054 PyObject * obj0 = 0 ;
16055 PyObject * obj1 = 0 ;
16056 PyObject * obj2 = 0 ;
16057 PyObject * obj3 = 0 ;
16058 char * kwnames[] = {
16059 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
16060 };
16061
16062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16064 if (!SWIG_IsOK(res1)) {
16065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
16066 }
16067 arg1 = reinterpret_cast< wxDC * >(argp1);
16068 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
16069 if (!SWIG_IsOK(res2)) {
16070 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
16071 }
16072 if (!argp2) {
16073 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
16074 }
16075 arg2 = reinterpret_cast< wxIcon * >(argp2);
16076 ecode3 = SWIG_AsVal_int(obj2, &val3);
16077 if (!SWIG_IsOK(ecode3)) {
16078 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
16079 }
16080 arg3 = static_cast< int >(val3);
16081 ecode4 = SWIG_AsVal_int(obj3, &val4);
16082 if (!SWIG_IsOK(ecode4)) {
16083 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
16084 }
16085 arg4 = static_cast< int >(val4);
16086 {
16087 PyThreadState* __tstate = wxPyBeginAllowThreads();
16088 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
16089 wxPyEndAllowThreads(__tstate);
16090 if (PyErr_Occurred()) SWIG_fail;
16091 }
16092 resultobj = SWIG_Py_Void();
16093 return resultobj;
16094fail:
16095 return NULL;
16096}
16097
16098
16099SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16100 PyObject *resultobj = 0;
16101 wxDC *arg1 = (wxDC *) 0 ;
16102 wxIcon *arg2 = 0 ;
16103 wxPoint *arg3 = 0 ;
16104 void *argp1 = 0 ;
16105 int res1 = 0 ;
16106 void *argp2 = 0 ;
16107 int res2 = 0 ;
16108 wxPoint temp3 ;
16109 PyObject * obj0 = 0 ;
16110 PyObject * obj1 = 0 ;
16111 PyObject * obj2 = 0 ;
16112 char * kwnames[] = {
16113 (char *) "self",(char *) "icon",(char *) "pt", NULL
16114 };
16115
16116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16118 if (!SWIG_IsOK(res1)) {
16119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16120 }
16121 arg1 = reinterpret_cast< wxDC * >(argp1);
16122 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
16123 if (!SWIG_IsOK(res2)) {
16124 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
16125 }
16126 if (!argp2) {
16127 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
16128 }
16129 arg2 = reinterpret_cast< wxIcon * >(argp2);
16130 {
16131 arg3 = &temp3;
16132 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16133 }
16134 {
16135 PyThreadState* __tstate = wxPyBeginAllowThreads();
16136 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
16137 wxPyEndAllowThreads(__tstate);
16138 if (PyErr_Occurred()) SWIG_fail;
16139 }
16140 resultobj = SWIG_Py_Void();
16141 return resultobj;
16142fail:
16143 return NULL;
16144}
16145
16146
16147SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16148 PyObject *resultobj = 0;
16149 wxDC *arg1 = (wxDC *) 0 ;
16150 wxBitmap *arg2 = 0 ;
16151 int arg3 ;
16152 int arg4 ;
16153 bool arg5 = (bool) false ;
16154 void *argp1 = 0 ;
16155 int res1 = 0 ;
16156 void *argp2 = 0 ;
16157 int res2 = 0 ;
16158 int val3 ;
16159 int ecode3 = 0 ;
16160 int val4 ;
16161 int ecode4 = 0 ;
16162 bool val5 ;
16163 int ecode5 = 0 ;
16164 PyObject * obj0 = 0 ;
16165 PyObject * obj1 = 0 ;
16166 PyObject * obj2 = 0 ;
16167 PyObject * obj3 = 0 ;
16168 PyObject * obj4 = 0 ;
16169 char * kwnames[] = {
16170 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
16171 };
16172
16173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16175 if (!SWIG_IsOK(res1)) {
16176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
16177 }
16178 arg1 = reinterpret_cast< wxDC * >(argp1);
16179 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
16180 if (!SWIG_IsOK(res2)) {
16181 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16182 }
16183 if (!argp2) {
16184 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16185 }
16186 arg2 = reinterpret_cast< wxBitmap * >(argp2);
16187 ecode3 = SWIG_AsVal_int(obj2, &val3);
16188 if (!SWIG_IsOK(ecode3)) {
16189 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
16190 }
16191 arg3 = static_cast< int >(val3);
16192 ecode4 = SWIG_AsVal_int(obj3, &val4);
16193 if (!SWIG_IsOK(ecode4)) {
16194 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
16195 }
16196 arg4 = static_cast< int >(val4);
16197 if (obj4) {
16198 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16199 if (!SWIG_IsOK(ecode5)) {
16200 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
16201 }
16202 arg5 = static_cast< bool >(val5);
16203 }
16204 {
16205 PyThreadState* __tstate = wxPyBeginAllowThreads();
16206 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
16207 wxPyEndAllowThreads(__tstate);
16208 if (PyErr_Occurred()) SWIG_fail;
16209 }
16210 resultobj = SWIG_Py_Void();
16211 return resultobj;
16212fail:
16213 return NULL;
16214}
16215
16216
16217SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16218 PyObject *resultobj = 0;
16219 wxDC *arg1 = (wxDC *) 0 ;
16220 wxBitmap *arg2 = 0 ;
16221 wxPoint *arg3 = 0 ;
16222 bool arg4 = (bool) false ;
16223 void *argp1 = 0 ;
16224 int res1 = 0 ;
16225 void *argp2 = 0 ;
16226 int res2 = 0 ;
16227 wxPoint temp3 ;
16228 bool val4 ;
16229 int ecode4 = 0 ;
16230 PyObject * obj0 = 0 ;
16231 PyObject * obj1 = 0 ;
16232 PyObject * obj2 = 0 ;
16233 PyObject * obj3 = 0 ;
16234 char * kwnames[] = {
16235 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
16236 };
16237
16238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16240 if (!SWIG_IsOK(res1)) {
16241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16242 }
16243 arg1 = reinterpret_cast< wxDC * >(argp1);
16244 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
16245 if (!SWIG_IsOK(res2)) {
16246 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16247 }
16248 if (!argp2) {
16249 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16250 }
16251 arg2 = reinterpret_cast< wxBitmap * >(argp2);
16252 {
16253 arg3 = &temp3;
16254 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16255 }
16256 if (obj3) {
16257 ecode4 = SWIG_AsVal_bool(obj3, &val4);
16258 if (!SWIG_IsOK(ecode4)) {
16259 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
16260 }
16261 arg4 = static_cast< bool >(val4);
16262 }
16263 {
16264 PyThreadState* __tstate = wxPyBeginAllowThreads();
16265 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
16266 wxPyEndAllowThreads(__tstate);
16267 if (PyErr_Occurred()) SWIG_fail;
16268 }
16269 resultobj = SWIG_Py_Void();
16270 return resultobj;
16271fail:
16272 return NULL;
16273}
16274
16275
16276SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16277 PyObject *resultobj = 0;
16278 wxDC *arg1 = (wxDC *) 0 ;
16279 wxString *arg2 = 0 ;
16280 int arg3 ;
16281 int arg4 ;
16282 void *argp1 = 0 ;
16283 int res1 = 0 ;
16284 bool temp2 = false ;
16285 int val3 ;
16286 int ecode3 = 0 ;
16287 int val4 ;
16288 int ecode4 = 0 ;
16289 PyObject * obj0 = 0 ;
16290 PyObject * obj1 = 0 ;
16291 PyObject * obj2 = 0 ;
16292 PyObject * obj3 = 0 ;
16293 char * kwnames[] = {
16294 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
16295 };
16296
16297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16299 if (!SWIG_IsOK(res1)) {
16300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
16301 }
16302 arg1 = reinterpret_cast< wxDC * >(argp1);
16303 {
16304 arg2 = wxString_in_helper(obj1);
16305 if (arg2 == NULL) SWIG_fail;
16306 temp2 = true;
16307 }
16308 ecode3 = SWIG_AsVal_int(obj2, &val3);
16309 if (!SWIG_IsOK(ecode3)) {
16310 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
16311 }
16312 arg3 = static_cast< int >(val3);
16313 ecode4 = SWIG_AsVal_int(obj3, &val4);
16314 if (!SWIG_IsOK(ecode4)) {
16315 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
16316 }
16317 arg4 = static_cast< int >(val4);
16318 {
16319 PyThreadState* __tstate = wxPyBeginAllowThreads();
16320 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
16321 wxPyEndAllowThreads(__tstate);
16322 if (PyErr_Occurred()) SWIG_fail;
16323 }
16324 resultobj = SWIG_Py_Void();
16325 {
16326 if (temp2)
16327 delete arg2;
16328 }
16329 return resultobj;
16330fail:
16331 {
16332 if (temp2)
16333 delete arg2;
16334 }
16335 return NULL;
16336}
16337
16338
16339SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16340 PyObject *resultobj = 0;
16341 wxDC *arg1 = (wxDC *) 0 ;
16342 wxString *arg2 = 0 ;
16343 wxPoint *arg3 = 0 ;
16344 void *argp1 = 0 ;
16345 int res1 = 0 ;
16346 bool temp2 = false ;
16347 wxPoint temp3 ;
16348 PyObject * obj0 = 0 ;
16349 PyObject * obj1 = 0 ;
16350 PyObject * obj2 = 0 ;
16351 char * kwnames[] = {
16352 (char *) "self",(char *) "text",(char *) "pt", NULL
16353 };
16354
16355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16357 if (!SWIG_IsOK(res1)) {
16358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16359 }
16360 arg1 = reinterpret_cast< wxDC * >(argp1);
16361 {
16362 arg2 = wxString_in_helper(obj1);
16363 if (arg2 == NULL) SWIG_fail;
16364 temp2 = true;
16365 }
16366 {
16367 arg3 = &temp3;
16368 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16369 }
16370 {
16371 PyThreadState* __tstate = wxPyBeginAllowThreads();
16372 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
16373 wxPyEndAllowThreads(__tstate);
16374 if (PyErr_Occurred()) SWIG_fail;
16375 }
16376 resultobj = SWIG_Py_Void();
16377 {
16378 if (temp2)
16379 delete arg2;
16380 }
16381 return resultobj;
16382fail:
16383 {
16384 if (temp2)
16385 delete arg2;
16386 }
16387 return NULL;
16388}
16389
16390
16391SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16392 PyObject *resultobj = 0;
16393 wxDC *arg1 = (wxDC *) 0 ;
16394 wxString *arg2 = 0 ;
16395 int arg3 ;
16396 int arg4 ;
16397 double arg5 ;
16398 void *argp1 = 0 ;
16399 int res1 = 0 ;
16400 bool temp2 = false ;
16401 int val3 ;
16402 int ecode3 = 0 ;
16403 int val4 ;
16404 int ecode4 = 0 ;
16405 double val5 ;
16406 int ecode5 = 0 ;
16407 PyObject * obj0 = 0 ;
16408 PyObject * obj1 = 0 ;
16409 PyObject * obj2 = 0 ;
16410 PyObject * obj3 = 0 ;
16411 PyObject * obj4 = 0 ;
16412 char * kwnames[] = {
16413 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
16414 };
16415
16416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16418 if (!SWIG_IsOK(res1)) {
16419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
16420 }
16421 arg1 = reinterpret_cast< wxDC * >(argp1);
16422 {
16423 arg2 = wxString_in_helper(obj1);
16424 if (arg2 == NULL) SWIG_fail;
16425 temp2 = true;
16426 }
16427 ecode3 = SWIG_AsVal_int(obj2, &val3);
16428 if (!SWIG_IsOK(ecode3)) {
16429 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
16430 }
16431 arg3 = static_cast< int >(val3);
16432 ecode4 = SWIG_AsVal_int(obj3, &val4);
16433 if (!SWIG_IsOK(ecode4)) {
16434 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
16435 }
16436 arg4 = static_cast< int >(val4);
16437 ecode5 = SWIG_AsVal_double(obj4, &val5);
16438 if (!SWIG_IsOK(ecode5)) {
16439 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
16440 }
16441 arg5 = static_cast< double >(val5);
16442 {
16443 PyThreadState* __tstate = wxPyBeginAllowThreads();
16444 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
16445 wxPyEndAllowThreads(__tstate);
16446 if (PyErr_Occurred()) SWIG_fail;
16447 }
16448 resultobj = SWIG_Py_Void();
16449 {
16450 if (temp2)
16451 delete arg2;
16452 }
16453 return resultobj;
16454fail:
16455 {
16456 if (temp2)
16457 delete arg2;
16458 }
16459 return NULL;
16460}
16461
16462
16463SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16464 PyObject *resultobj = 0;
16465 wxDC *arg1 = (wxDC *) 0 ;
16466 wxString *arg2 = 0 ;
16467 wxPoint *arg3 = 0 ;
16468 double arg4 ;
16469 void *argp1 = 0 ;
16470 int res1 = 0 ;
16471 bool temp2 = false ;
16472 wxPoint temp3 ;
16473 double val4 ;
16474 int ecode4 = 0 ;
16475 PyObject * obj0 = 0 ;
16476 PyObject * obj1 = 0 ;
16477 PyObject * obj2 = 0 ;
16478 PyObject * obj3 = 0 ;
16479 char * kwnames[] = {
16480 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
16481 };
16482
16483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16485 if (!SWIG_IsOK(res1)) {
16486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16487 }
16488 arg1 = reinterpret_cast< wxDC * >(argp1);
16489 {
16490 arg2 = wxString_in_helper(obj1);
16491 if (arg2 == NULL) SWIG_fail;
16492 temp2 = true;
16493 }
16494 {
16495 arg3 = &temp3;
16496 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16497 }
16498 ecode4 = SWIG_AsVal_double(obj3, &val4);
16499 if (!SWIG_IsOK(ecode4)) {
16500 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
16501 }
16502 arg4 = static_cast< double >(val4);
16503 {
16504 PyThreadState* __tstate = wxPyBeginAllowThreads();
16505 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
16506 wxPyEndAllowThreads(__tstate);
16507 if (PyErr_Occurred()) SWIG_fail;
16508 }
16509 resultobj = SWIG_Py_Void();
16510 {
16511 if (temp2)
16512 delete arg2;
16513 }
16514 return resultobj;
16515fail:
16516 {
16517 if (temp2)
16518 delete arg2;
16519 }
16520 return NULL;
16521}
16522
16523
16524SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16525 PyObject *resultobj = 0;
16526 wxDC *arg1 = (wxDC *) 0 ;
16527 int arg2 ;
16528 int arg3 ;
16529 int arg4 ;
16530 int arg5 ;
16531 wxDC *arg6 = (wxDC *) 0 ;
16532 int arg7 ;
16533 int arg8 ;
16534 int arg9 = (int) wxCOPY ;
16535 bool arg10 = (bool) false ;
16536 int arg11 = (int) -1 ;
16537 int arg12 = (int) -1 ;
16538 bool result;
16539 void *argp1 = 0 ;
16540 int res1 = 0 ;
16541 int val2 ;
16542 int ecode2 = 0 ;
16543 int val3 ;
16544 int ecode3 = 0 ;
16545 int val4 ;
16546 int ecode4 = 0 ;
16547 int val5 ;
16548 int ecode5 = 0 ;
16549 void *argp6 = 0 ;
16550 int res6 = 0 ;
16551 int val7 ;
16552 int ecode7 = 0 ;
16553 int val8 ;
16554 int ecode8 = 0 ;
16555 int val9 ;
16556 int ecode9 = 0 ;
16557 bool val10 ;
16558 int ecode10 = 0 ;
16559 int val11 ;
16560 int ecode11 = 0 ;
16561 int val12 ;
16562 int ecode12 = 0 ;
16563 PyObject * obj0 = 0 ;
16564 PyObject * obj1 = 0 ;
16565 PyObject * obj2 = 0 ;
16566 PyObject * obj3 = 0 ;
16567 PyObject * obj4 = 0 ;
16568 PyObject * obj5 = 0 ;
16569 PyObject * obj6 = 0 ;
16570 PyObject * obj7 = 0 ;
16571 PyObject * obj8 = 0 ;
16572 PyObject * obj9 = 0 ;
16573 PyObject * obj10 = 0 ;
16574 PyObject * obj11 = 0 ;
16575 char * kwnames[] = {
16576 (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
16577 };
16578
16579 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;
16580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16581 if (!SWIG_IsOK(res1)) {
16582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
16583 }
16584 arg1 = reinterpret_cast< wxDC * >(argp1);
16585 ecode2 = SWIG_AsVal_int(obj1, &val2);
16586 if (!SWIG_IsOK(ecode2)) {
16587 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
16588 }
16589 arg2 = static_cast< int >(val2);
16590 ecode3 = SWIG_AsVal_int(obj2, &val3);
16591 if (!SWIG_IsOK(ecode3)) {
16592 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
16593 }
16594 arg3 = static_cast< int >(val3);
16595 ecode4 = SWIG_AsVal_int(obj3, &val4);
16596 if (!SWIG_IsOK(ecode4)) {
16597 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
16598 }
16599 arg4 = static_cast< int >(val4);
16600 ecode5 = SWIG_AsVal_int(obj4, &val5);
16601 if (!SWIG_IsOK(ecode5)) {
16602 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
16603 }
16604 arg5 = static_cast< int >(val5);
16605 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
16606 if (!SWIG_IsOK(res6)) {
16607 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
16608 }
16609 arg6 = reinterpret_cast< wxDC * >(argp6);
16610 ecode7 = SWIG_AsVal_int(obj6, &val7);
16611 if (!SWIG_IsOK(ecode7)) {
16612 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
16613 }
16614 arg7 = static_cast< int >(val7);
16615 ecode8 = SWIG_AsVal_int(obj7, &val8);
16616 if (!SWIG_IsOK(ecode8)) {
16617 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
16618 }
16619 arg8 = static_cast< int >(val8);
16620 if (obj8) {
16621 ecode9 = SWIG_AsVal_int(obj8, &val9);
16622 if (!SWIG_IsOK(ecode9)) {
16623 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
16624 }
16625 arg9 = static_cast< int >(val9);
16626 }
16627 if (obj9) {
16628 ecode10 = SWIG_AsVal_bool(obj9, &val10);
16629 if (!SWIG_IsOK(ecode10)) {
16630 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
16631 }
16632 arg10 = static_cast< bool >(val10);
16633 }
16634 if (obj10) {
16635 ecode11 = SWIG_AsVal_int(obj10, &val11);
16636 if (!SWIG_IsOK(ecode11)) {
16637 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
16638 }
16639 arg11 = static_cast< int >(val11);
16640 }
16641 if (obj11) {
16642 ecode12 = SWIG_AsVal_int(obj11, &val12);
16643 if (!SWIG_IsOK(ecode12)) {
16644 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
16645 }
16646 arg12 = static_cast< int >(val12);
16647 }
16648 {
16649 PyThreadState* __tstate = wxPyBeginAllowThreads();
16650 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
16651 wxPyEndAllowThreads(__tstate);
16652 if (PyErr_Occurred()) SWIG_fail;
16653 }
16654 {
16655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16656 }
16657 return resultobj;
16658fail:
16659 return NULL;
16660}
16661
16662
16663SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16664 PyObject *resultobj = 0;
16665 wxDC *arg1 = (wxDC *) 0 ;
16666 wxPoint *arg2 = 0 ;
16667 wxSize *arg3 = 0 ;
16668 wxDC *arg4 = (wxDC *) 0 ;
16669 wxPoint *arg5 = 0 ;
16670 int arg6 = (int) wxCOPY ;
16671 bool arg7 = (bool) false ;
16672 wxPoint const &arg8_defvalue = wxDefaultPosition ;
16673 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
16674 bool result;
16675 void *argp1 = 0 ;
16676 int res1 = 0 ;
16677 wxPoint temp2 ;
16678 wxSize temp3 ;
16679 void *argp4 = 0 ;
16680 int res4 = 0 ;
16681 wxPoint temp5 ;
16682 int val6 ;
16683 int ecode6 = 0 ;
16684 bool val7 ;
16685 int ecode7 = 0 ;
16686 wxPoint temp8 ;
16687 PyObject * obj0 = 0 ;
16688 PyObject * obj1 = 0 ;
16689 PyObject * obj2 = 0 ;
16690 PyObject * obj3 = 0 ;
16691 PyObject * obj4 = 0 ;
16692 PyObject * obj5 = 0 ;
16693 PyObject * obj6 = 0 ;
16694 PyObject * obj7 = 0 ;
16695 char * kwnames[] = {
16696 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
16697 };
16698
16699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
16700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16701 if (!SWIG_IsOK(res1)) {
16702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16703 }
16704 arg1 = reinterpret_cast< wxDC * >(argp1);
16705 {
16706 arg2 = &temp2;
16707 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16708 }
16709 {
16710 arg3 = &temp3;
16711 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16712 }
16713 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
16714 if (!SWIG_IsOK(res4)) {
16715 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
16716 }
16717 arg4 = reinterpret_cast< wxDC * >(argp4);
16718 {
16719 arg5 = &temp5;
16720 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
16721 }
16722 if (obj5) {
16723 ecode6 = SWIG_AsVal_int(obj5, &val6);
16724 if (!SWIG_IsOK(ecode6)) {
16725 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
16726 }
16727 arg6 = static_cast< int >(val6);
16728 }
16729 if (obj6) {
16730 ecode7 = SWIG_AsVal_bool(obj6, &val7);
16731 if (!SWIG_IsOK(ecode7)) {
16732 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
16733 }
16734 arg7 = static_cast< bool >(val7);
16735 }
16736 if (obj7) {
093d3ff1 16737 {
0085ce49
RD
16738 arg8 = &temp8;
16739 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
093d3ff1 16740 }
0085ce49
RD
16741 }
16742 {
16743 PyThreadState* __tstate = wxPyBeginAllowThreads();
16744 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
16745 wxPyEndAllowThreads(__tstate);
16746 if (PyErr_Occurred()) SWIG_fail;
16747 }
16748 {
16749 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16750 }
16751 return resultobj;
16752fail:
16753 return NULL;
16754}
16755
16756
16757SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16758 PyObject *resultobj = 0;
16759 wxDC *arg1 = (wxDC *) 0 ;
16760 int arg2 ;
16761 int arg3 ;
16762 int arg4 ;
16763 int arg5 ;
16764 void *argp1 = 0 ;
16765 int res1 = 0 ;
16766 int val2 ;
16767 int ecode2 = 0 ;
16768 int val3 ;
16769 int ecode3 = 0 ;
16770 int val4 ;
16771 int ecode4 = 0 ;
16772 int val5 ;
16773 int ecode5 = 0 ;
16774 PyObject * obj0 = 0 ;
16775 PyObject * obj1 = 0 ;
16776 PyObject * obj2 = 0 ;
16777 PyObject * obj3 = 0 ;
16778 PyObject * obj4 = 0 ;
16779 char * kwnames[] = {
16780 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
16781 };
16782
16783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16785 if (!SWIG_IsOK(res1)) {
16786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
16787 }
16788 arg1 = reinterpret_cast< wxDC * >(argp1);
16789 ecode2 = SWIG_AsVal_int(obj1, &val2);
16790 if (!SWIG_IsOK(ecode2)) {
16791 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
16792 }
16793 arg2 = static_cast< int >(val2);
16794 ecode3 = SWIG_AsVal_int(obj2, &val3);
16795 if (!SWIG_IsOK(ecode3)) {
16796 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
16797 }
16798 arg3 = static_cast< int >(val3);
16799 ecode4 = SWIG_AsVal_int(obj3, &val4);
16800 if (!SWIG_IsOK(ecode4)) {
16801 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
16802 }
16803 arg4 = static_cast< int >(val4);
16804 ecode5 = SWIG_AsVal_int(obj4, &val5);
16805 if (!SWIG_IsOK(ecode5)) {
16806 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
16807 }
16808 arg5 = static_cast< int >(val5);
16809 {
16810 PyThreadState* __tstate = wxPyBeginAllowThreads();
16811 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
16812 wxPyEndAllowThreads(__tstate);
16813 if (PyErr_Occurred()) SWIG_fail;
16814 }
16815 resultobj = SWIG_Py_Void();
16816 return resultobj;
16817fail:
16818 return NULL;
16819}
16820
16821
16822SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16823 PyObject *resultobj = 0;
16824 wxDC *arg1 = (wxDC *) 0 ;
16825 wxPoint *arg2 = 0 ;
16826 wxSize *arg3 = 0 ;
16827 void *argp1 = 0 ;
16828 int res1 = 0 ;
16829 wxPoint temp2 ;
16830 wxSize temp3 ;
16831 PyObject * obj0 = 0 ;
16832 PyObject * obj1 = 0 ;
16833 PyObject * obj2 = 0 ;
16834 char * kwnames[] = {
16835 (char *) "self",(char *) "pt",(char *) "sz", NULL
16836 };
16837
16838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16840 if (!SWIG_IsOK(res1)) {
16841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16842 }
16843 arg1 = reinterpret_cast< wxDC * >(argp1);
16844 {
16845 arg2 = &temp2;
16846 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16847 }
16848 {
16849 arg3 = &temp3;
16850 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16851 }
16852 {
16853 PyThreadState* __tstate = wxPyBeginAllowThreads();
16854 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
16855 wxPyEndAllowThreads(__tstate);
16856 if (PyErr_Occurred()) SWIG_fail;
16857 }
16858 resultobj = SWIG_Py_Void();
16859 return resultobj;
16860fail:
16861 return NULL;
16862}
16863
16864
16865SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16866 PyObject *resultobj = 0;
16867 wxDC *arg1 = (wxDC *) 0 ;
16868 wxRegion *arg2 = 0 ;
16869 void *argp1 = 0 ;
16870 int res1 = 0 ;
16871 void *argp2 = 0 ;
16872 int res2 = 0 ;
16873 PyObject * obj0 = 0 ;
16874 PyObject * obj1 = 0 ;
16875 char * kwnames[] = {
16876 (char *) "self",(char *) "region", NULL
16877 };
16878
16879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
16880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16881 if (!SWIG_IsOK(res1)) {
16882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
16883 }
16884 arg1 = reinterpret_cast< wxDC * >(argp1);
16885 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
16886 if (!SWIG_IsOK(res2)) {
16887 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
16888 }
16889 if (!argp2) {
16890 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
16891 }
16892 arg2 = reinterpret_cast< wxRegion * >(argp2);
16893 {
16894 PyThreadState* __tstate = wxPyBeginAllowThreads();
16895 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
16896 wxPyEndAllowThreads(__tstate);
16897 if (PyErr_Occurred()) SWIG_fail;
16898 }
16899 resultobj = SWIG_Py_Void();
16900 return resultobj;
16901fail:
16902 return NULL;
16903}
16904
16905
16906SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16907 PyObject *resultobj = 0;
16908 wxDC *arg1 = (wxDC *) 0 ;
16909 wxRect *arg2 = 0 ;
16910 void *argp1 = 0 ;
16911 int res1 = 0 ;
16912 wxRect temp2 ;
16913 PyObject * obj0 = 0 ;
16914 PyObject * obj1 = 0 ;
16915 char * kwnames[] = {
16916 (char *) "self",(char *) "rect", NULL
16917 };
16918
16919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
16920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16921 if (!SWIG_IsOK(res1)) {
16922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
16923 }
16924 arg1 = reinterpret_cast< wxDC * >(argp1);
16925 {
16926 arg2 = &temp2;
16927 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
16928 }
16929 {
16930 PyThreadState* __tstate = wxPyBeginAllowThreads();
16931 (arg1)->SetClippingRegion((wxRect const &)*arg2);
16932 wxPyEndAllowThreads(__tstate);
16933 if (PyErr_Occurred()) SWIG_fail;
16934 }
16935 resultobj = SWIG_Py_Void();
16936 return resultobj;
16937fail:
16938 return NULL;
16939}
16940
16941
16942SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16943 PyObject *resultobj = 0;
16944 wxDC *arg1 = (wxDC *) 0 ;
16945 int arg2 ;
16946 wxPoint *arg3 = (wxPoint *) 0 ;
16947 int arg4 = (int) 0 ;
16948 int arg5 = (int) 0 ;
16949 void *argp1 = 0 ;
16950 int res1 = 0 ;
16951 int val4 ;
16952 int ecode4 = 0 ;
16953 int val5 ;
16954 int ecode5 = 0 ;
16955 PyObject * obj0 = 0 ;
16956 PyObject * obj1 = 0 ;
16957 PyObject * obj2 = 0 ;
16958 PyObject * obj3 = 0 ;
16959 char * kwnames[] = {
16960 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
16961 };
16962
16963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16965 if (!SWIG_IsOK(res1)) {
16966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
16967 }
16968 arg1 = reinterpret_cast< wxDC * >(argp1);
16969 {
16970 arg3 = wxPoint_LIST_helper(obj1, &arg2);
16971 if (arg3 == NULL) SWIG_fail;
16972 }
16973 if (obj2) {
16974 ecode4 = SWIG_AsVal_int(obj2, &val4);
16975 if (!SWIG_IsOK(ecode4)) {
16976 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
16977 }
16978 arg4 = static_cast< int >(val4);
16979 }
16980 if (obj3) {
16981 ecode5 = SWIG_AsVal_int(obj3, &val5);
16982 if (!SWIG_IsOK(ecode5)) {
16983 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
16984 }
16985 arg5 = static_cast< int >(val5);
16986 }
16987 {
16988 PyThreadState* __tstate = wxPyBeginAllowThreads();
16989 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
16990 wxPyEndAllowThreads(__tstate);
16991 if (PyErr_Occurred()) SWIG_fail;
16992 }
16993 resultobj = SWIG_Py_Void();
16994 {
16995 if (arg3) delete [] arg3;
16996 }
16997 return resultobj;
16998fail:
16999 {
17000 if (arg3) delete [] arg3;
17001 }
17002 return NULL;
17003}
17004
17005
17006SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17007 PyObject *resultobj = 0;
17008 wxDC *arg1 = (wxDC *) 0 ;
17009 int arg2 ;
17010 wxPoint *arg3 = (wxPoint *) 0 ;
17011 int arg4 = (int) 0 ;
17012 int arg5 = (int) 0 ;
17013 int arg6 = (int) wxODDEVEN_RULE ;
17014 void *argp1 = 0 ;
17015 int res1 = 0 ;
17016 int val4 ;
17017 int ecode4 = 0 ;
17018 int val5 ;
17019 int ecode5 = 0 ;
17020 int val6 ;
17021 int ecode6 = 0 ;
17022 PyObject * obj0 = 0 ;
17023 PyObject * obj1 = 0 ;
17024 PyObject * obj2 = 0 ;
17025 PyObject * obj3 = 0 ;
17026 PyObject * obj4 = 0 ;
17027 char * kwnames[] = {
17028 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
17029 };
17030
17031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17033 if (!SWIG_IsOK(res1)) {
17034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
17035 }
17036 arg1 = reinterpret_cast< wxDC * >(argp1);
17037 {
17038 arg3 = wxPoint_LIST_helper(obj1, &arg2);
17039 if (arg3 == NULL) SWIG_fail;
17040 }
17041 if (obj2) {
17042 ecode4 = SWIG_AsVal_int(obj2, &val4);
17043 if (!SWIG_IsOK(ecode4)) {
17044 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
17045 }
17046 arg4 = static_cast< int >(val4);
17047 }
17048 if (obj3) {
17049 ecode5 = SWIG_AsVal_int(obj3, &val5);
17050 if (!SWIG_IsOK(ecode5)) {
17051 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
17052 }
17053 arg5 = static_cast< int >(val5);
17054 }
17055 if (obj4) {
17056 ecode6 = SWIG_AsVal_int(obj4, &val6);
17057 if (!SWIG_IsOK(ecode6)) {
17058 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
17059 }
17060 arg6 = static_cast< int >(val6);
17061 }
17062 {
17063 PyThreadState* __tstate = wxPyBeginAllowThreads();
17064 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
17065 wxPyEndAllowThreads(__tstate);
17066 if (PyErr_Occurred()) SWIG_fail;
17067 }
17068 resultobj = SWIG_Py_Void();
17069 {
17070 if (arg3) delete [] arg3;
17071 }
17072 return resultobj;
17073fail:
17074 {
17075 if (arg3) delete [] arg3;
17076 }
17077 return NULL;
17078}
17079
17080
17081SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17082 PyObject *resultobj = 0;
17083 wxDC *arg1 = (wxDC *) 0 ;
17084 wxString *arg2 = 0 ;
17085 wxRect *arg3 = 0 ;
17086 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
17087 int arg5 = (int) -1 ;
17088 void *argp1 = 0 ;
17089 int res1 = 0 ;
17090 bool temp2 = false ;
17091 wxRect temp3 ;
17092 int val4 ;
17093 int ecode4 = 0 ;
17094 int val5 ;
17095 int ecode5 = 0 ;
17096 PyObject * obj0 = 0 ;
17097 PyObject * obj1 = 0 ;
17098 PyObject * obj2 = 0 ;
17099 PyObject * obj3 = 0 ;
17100 PyObject * obj4 = 0 ;
17101 char * kwnames[] = {
17102 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
17103 };
17104
17105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17107 if (!SWIG_IsOK(res1)) {
17108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
17109 }
17110 arg1 = reinterpret_cast< wxDC * >(argp1);
17111 {
17112 arg2 = wxString_in_helper(obj1);
17113 if (arg2 == NULL) SWIG_fail;
17114 temp2 = true;
17115 }
17116 {
17117 arg3 = &temp3;
17118 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
17119 }
17120 if (obj3) {
17121 ecode4 = SWIG_AsVal_int(obj3, &val4);
17122 if (!SWIG_IsOK(ecode4)) {
17123 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
17124 }
17125 arg4 = static_cast< int >(val4);
17126 }
17127 if (obj4) {
17128 ecode5 = SWIG_AsVal_int(obj4, &val5);
17129 if (!SWIG_IsOK(ecode5)) {
17130 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
17131 }
17132 arg5 = static_cast< int >(val5);
17133 }
17134 {
17135 PyThreadState* __tstate = wxPyBeginAllowThreads();
17136 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
17137 wxPyEndAllowThreads(__tstate);
17138 if (PyErr_Occurred()) SWIG_fail;
17139 }
17140 resultobj = SWIG_Py_Void();
17141 {
17142 if (temp2)
17143 delete arg2;
17144 }
17145 return resultobj;
17146fail:
17147 {
17148 if (temp2)
17149 delete arg2;
17150 }
17151 return NULL;
17152}
17153
17154
17155SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17156 PyObject *resultobj = 0;
17157 wxDC *arg1 = (wxDC *) 0 ;
17158 wxString *arg2 = 0 ;
17159 wxBitmap *arg3 = 0 ;
17160 wxRect *arg4 = 0 ;
17161 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
17162 int arg6 = (int) -1 ;
17163 wxRect result;
17164 void *argp1 = 0 ;
17165 int res1 = 0 ;
17166 bool temp2 = false ;
17167 void *argp3 = 0 ;
17168 int res3 = 0 ;
17169 wxRect temp4 ;
17170 int val5 ;
17171 int ecode5 = 0 ;
17172 int val6 ;
17173 int ecode6 = 0 ;
17174 PyObject * obj0 = 0 ;
17175 PyObject * obj1 = 0 ;
17176 PyObject * obj2 = 0 ;
17177 PyObject * obj3 = 0 ;
17178 PyObject * obj4 = 0 ;
17179 PyObject * obj5 = 0 ;
17180 char * kwnames[] = {
17181 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
17182 };
17183
17184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
17185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17186 if (!SWIG_IsOK(res1)) {
17187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
17188 }
17189 arg1 = reinterpret_cast< wxDC * >(argp1);
17190 {
17191 arg2 = wxString_in_helper(obj1);
17192 if (arg2 == NULL) SWIG_fail;
17193 temp2 = true;
17194 }
17195 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
17196 if (!SWIG_IsOK(res3)) {
17197 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
17198 }
17199 if (!argp3) {
17200 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
17201 }
17202 arg3 = reinterpret_cast< wxBitmap * >(argp3);
17203 {
17204 arg4 = &temp4;
17205 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
17206 }
17207 if (obj4) {
17208 ecode5 = SWIG_AsVal_int(obj4, &val5);
17209 if (!SWIG_IsOK(ecode5)) {
17210 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
17211 }
17212 arg5 = static_cast< int >(val5);
17213 }
17214 if (obj5) {
17215 ecode6 = SWIG_AsVal_int(obj5, &val6);
17216 if (!SWIG_IsOK(ecode6)) {
17217 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
17218 }
17219 arg6 = static_cast< int >(val6);
17220 }
17221 {
17222 PyThreadState* __tstate = wxPyBeginAllowThreads();
17223 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
17224 wxPyEndAllowThreads(__tstate);
17225 if (PyErr_Occurred()) SWIG_fail;
17226 }
17227 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
17228 {
17229 if (temp2)
17230 delete arg2;
17231 }
17232 return resultobj;
17233fail:
17234 {
17235 if (temp2)
17236 delete arg2;
17237 }
17238 return NULL;
17239}
17240
17241
17242SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17243 PyObject *resultobj = 0;
17244 wxDC *arg1 = (wxDC *) 0 ;
17245 int arg2 ;
17246 wxPoint *arg3 = (wxPoint *) 0 ;
17247 void *argp1 = 0 ;
17248 int res1 = 0 ;
17249 PyObject * obj0 = 0 ;
17250 PyObject * obj1 = 0 ;
17251 char * kwnames[] = {
17252 (char *) "self",(char *) "points", NULL
17253 };
17254
17255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
17256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17257 if (!SWIG_IsOK(res1)) {
17258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
17259 }
17260 arg1 = reinterpret_cast< wxDC * >(argp1);
17261 {
17262 arg3 = wxPoint_LIST_helper(obj1, &arg2);
17263 if (arg3 == NULL) SWIG_fail;
17264 }
17265 {
17266 PyThreadState* __tstate = wxPyBeginAllowThreads();
17267 (arg1)->DrawSpline(arg2,arg3);
17268 wxPyEndAllowThreads(__tstate);
17269 if (PyErr_Occurred()) SWIG_fail;
17270 }
17271 resultobj = SWIG_Py_Void();
17272 {
17273 if (arg3) delete [] arg3;
17274 }
17275 return resultobj;
17276fail:
17277 {
17278 if (arg3) delete [] arg3;
17279 }
17280 return NULL;
17281}
17282
17283
17284SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17285 PyObject *resultobj = 0;
17286 wxDC *arg1 = (wxDC *) 0 ;
17287 void *argp1 = 0 ;
17288 int res1 = 0 ;
17289 PyObject *swig_obj[1] ;
17290
17291 if (!args) SWIG_fail;
17292 swig_obj[0] = args;
17293 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17294 if (!SWIG_IsOK(res1)) {
17295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
17296 }
17297 arg1 = reinterpret_cast< wxDC * >(argp1);
17298 {
17299 PyThreadState* __tstate = wxPyBeginAllowThreads();
17300 (arg1)->Clear();
17301 wxPyEndAllowThreads(__tstate);
17302 if (PyErr_Occurred()) SWIG_fail;
17303 }
17304 resultobj = SWIG_Py_Void();
17305 return resultobj;
17306fail:
17307 return NULL;
17308}
17309
17310
17311SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17312 PyObject *resultobj = 0;
17313 wxDC *arg1 = (wxDC *) 0 ;
17314 wxString *arg2 = 0 ;
17315 bool result;
17316 void *argp1 = 0 ;
17317 int res1 = 0 ;
17318 bool temp2 = false ;
17319 PyObject * obj0 = 0 ;
17320 PyObject * obj1 = 0 ;
17321 char * kwnames[] = {
17322 (char *) "self",(char *) "message", NULL
17323 };
17324
17325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
17326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17327 if (!SWIG_IsOK(res1)) {
17328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
17329 }
17330 arg1 = reinterpret_cast< wxDC * >(argp1);
17331 {
17332 arg2 = wxString_in_helper(obj1);
17333 if (arg2 == NULL) SWIG_fail;
17334 temp2 = true;
17335 }
17336 {
17337 PyThreadState* __tstate = wxPyBeginAllowThreads();
17338 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
17339 wxPyEndAllowThreads(__tstate);
17340 if (PyErr_Occurred()) SWIG_fail;
17341 }
17342 {
17343 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17344 }
17345 {
17346 if (temp2)
17347 delete arg2;
17348 }
17349 return resultobj;
17350fail:
17351 {
17352 if (temp2)
17353 delete arg2;
17354 }
17355 return NULL;
17356}
17357
17358
17359SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17360 PyObject *resultobj = 0;
17361 wxDC *arg1 = (wxDC *) 0 ;
17362 void *argp1 = 0 ;
17363 int res1 = 0 ;
17364 PyObject *swig_obj[1] ;
17365
17366 if (!args) SWIG_fail;
17367 swig_obj[0] = args;
17368 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17369 if (!SWIG_IsOK(res1)) {
17370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
17371 }
17372 arg1 = reinterpret_cast< wxDC * >(argp1);
17373 {
17374 PyThreadState* __tstate = wxPyBeginAllowThreads();
17375 (arg1)->EndDoc();
17376 wxPyEndAllowThreads(__tstate);
17377 if (PyErr_Occurred()) SWIG_fail;
17378 }
17379 resultobj = SWIG_Py_Void();
17380 return resultobj;
17381fail:
17382 return NULL;
17383}
17384
17385
17386SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17387 PyObject *resultobj = 0;
17388 wxDC *arg1 = (wxDC *) 0 ;
17389 void *argp1 = 0 ;
17390 int res1 = 0 ;
17391 PyObject *swig_obj[1] ;
17392
17393 if (!args) SWIG_fail;
17394 swig_obj[0] = args;
17395 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17396 if (!SWIG_IsOK(res1)) {
17397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
17398 }
17399 arg1 = reinterpret_cast< wxDC * >(argp1);
17400 {
17401 PyThreadState* __tstate = wxPyBeginAllowThreads();
17402 (arg1)->StartPage();
17403 wxPyEndAllowThreads(__tstate);
17404 if (PyErr_Occurred()) SWIG_fail;
17405 }
17406 resultobj = SWIG_Py_Void();
17407 return resultobj;
17408fail:
17409 return NULL;
17410}
17411
17412
17413SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17414 PyObject *resultobj = 0;
17415 wxDC *arg1 = (wxDC *) 0 ;
17416 void *argp1 = 0 ;
17417 int res1 = 0 ;
17418 PyObject *swig_obj[1] ;
17419
17420 if (!args) SWIG_fail;
17421 swig_obj[0] = args;
17422 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17423 if (!SWIG_IsOK(res1)) {
17424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
17425 }
17426 arg1 = reinterpret_cast< wxDC * >(argp1);
17427 {
17428 PyThreadState* __tstate = wxPyBeginAllowThreads();
17429 (arg1)->EndPage();
17430 wxPyEndAllowThreads(__tstate);
17431 if (PyErr_Occurred()) SWIG_fail;
17432 }
17433 resultobj = SWIG_Py_Void();
17434 return resultobj;
17435fail:
17436 return NULL;
17437}
17438
17439
17440SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17441 PyObject *resultobj = 0;
17442 wxDC *arg1 = (wxDC *) 0 ;
17443 wxFont *arg2 = 0 ;
17444 void *argp1 = 0 ;
17445 int res1 = 0 ;
17446 void *argp2 = 0 ;
17447 int res2 = 0 ;
17448 PyObject * obj0 = 0 ;
17449 PyObject * obj1 = 0 ;
17450 char * kwnames[] = {
17451 (char *) "self",(char *) "font", NULL
17452 };
17453
17454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
17455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17456 if (!SWIG_IsOK(res1)) {
17457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
17458 }
17459 arg1 = reinterpret_cast< wxDC * >(argp1);
17460 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
17461 if (!SWIG_IsOK(res2)) {
17462 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
17463 }
17464 if (!argp2) {
17465 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
17466 }
17467 arg2 = reinterpret_cast< wxFont * >(argp2);
17468 {
17469 PyThreadState* __tstate = wxPyBeginAllowThreads();
17470 (arg1)->SetFont((wxFont const &)*arg2);
17471 wxPyEndAllowThreads(__tstate);
17472 if (PyErr_Occurred()) SWIG_fail;
17473 }
17474 resultobj = SWIG_Py_Void();
17475 return resultobj;
17476fail:
17477 return NULL;
17478}
17479
17480
17481SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17482 PyObject *resultobj = 0;
17483 wxDC *arg1 = (wxDC *) 0 ;
17484 wxPen *arg2 = 0 ;
17485 void *argp1 = 0 ;
17486 int res1 = 0 ;
17487 void *argp2 = 0 ;
17488 int res2 = 0 ;
17489 PyObject * obj0 = 0 ;
17490 PyObject * obj1 = 0 ;
17491 char * kwnames[] = {
17492 (char *) "self",(char *) "pen", NULL
17493 };
17494
17495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
17496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17497 if (!SWIG_IsOK(res1)) {
17498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
17499 }
17500 arg1 = reinterpret_cast< wxDC * >(argp1);
17501 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
17502 if (!SWIG_IsOK(res2)) {
17503 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
17504 }
17505 if (!argp2) {
17506 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
17507 }
17508 arg2 = reinterpret_cast< wxPen * >(argp2);
17509 {
17510 PyThreadState* __tstate = wxPyBeginAllowThreads();
17511 (arg1)->SetPen((wxPen const &)*arg2);
17512 wxPyEndAllowThreads(__tstate);
17513 if (PyErr_Occurred()) SWIG_fail;
17514 }
17515 resultobj = SWIG_Py_Void();
17516 return resultobj;
17517fail:
17518 return NULL;
17519}
17520
17521
17522SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17523 PyObject *resultobj = 0;
17524 wxDC *arg1 = (wxDC *) 0 ;
17525 wxBrush *arg2 = 0 ;
17526 void *argp1 = 0 ;
17527 int res1 = 0 ;
17528 void *argp2 = 0 ;
17529 int res2 = 0 ;
17530 PyObject * obj0 = 0 ;
17531 PyObject * obj1 = 0 ;
17532 char * kwnames[] = {
17533 (char *) "self",(char *) "brush", NULL
17534 };
17535
17536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
17537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17538 if (!SWIG_IsOK(res1)) {
17539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
17540 }
17541 arg1 = reinterpret_cast< wxDC * >(argp1);
17542 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
17543 if (!SWIG_IsOK(res2)) {
17544 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
17545 }
17546 if (!argp2) {
17547 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
17548 }
17549 arg2 = reinterpret_cast< wxBrush * >(argp2);
17550 {
17551 PyThreadState* __tstate = wxPyBeginAllowThreads();
17552 (arg1)->SetBrush((wxBrush const &)*arg2);
17553 wxPyEndAllowThreads(__tstate);
17554 if (PyErr_Occurred()) SWIG_fail;
17555 }
17556 resultobj = SWIG_Py_Void();
17557 return resultobj;
17558fail:
17559 return NULL;
17560}
17561
17562
17563SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17564 PyObject *resultobj = 0;
17565 wxDC *arg1 = (wxDC *) 0 ;
17566 wxBrush *arg2 = 0 ;
17567 void *argp1 = 0 ;
17568 int res1 = 0 ;
17569 void *argp2 = 0 ;
17570 int res2 = 0 ;
17571 PyObject * obj0 = 0 ;
17572 PyObject * obj1 = 0 ;
17573 char * kwnames[] = {
17574 (char *) "self",(char *) "brush", NULL
17575 };
17576
17577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
17578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17579 if (!SWIG_IsOK(res1)) {
17580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
17581 }
17582 arg1 = reinterpret_cast< wxDC * >(argp1);
17583 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
17584 if (!SWIG_IsOK(res2)) {
17585 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
17586 }
17587 if (!argp2) {
17588 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
17589 }
17590 arg2 = reinterpret_cast< wxBrush * >(argp2);
17591 {
17592 PyThreadState* __tstate = wxPyBeginAllowThreads();
17593 (arg1)->SetBackground((wxBrush const &)*arg2);
17594 wxPyEndAllowThreads(__tstate);
17595 if (PyErr_Occurred()) SWIG_fail;
17596 }
17597 resultobj = SWIG_Py_Void();
17598 return resultobj;
17599fail:
17600 return NULL;
17601}
17602
17603
17604SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17605 PyObject *resultobj = 0;
17606 wxDC *arg1 = (wxDC *) 0 ;
17607 int arg2 ;
17608 void *argp1 = 0 ;
17609 int res1 = 0 ;
17610 int val2 ;
17611 int ecode2 = 0 ;
17612 PyObject * obj0 = 0 ;
17613 PyObject * obj1 = 0 ;
17614 char * kwnames[] = {
17615 (char *) "self",(char *) "mode", NULL
17616 };
17617
17618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
17619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17620 if (!SWIG_IsOK(res1)) {
17621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
17622 }
17623 arg1 = reinterpret_cast< wxDC * >(argp1);
17624 ecode2 = SWIG_AsVal_int(obj1, &val2);
17625 if (!SWIG_IsOK(ecode2)) {
17626 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
17627 }
17628 arg2 = static_cast< int >(val2);
17629 {
17630 PyThreadState* __tstate = wxPyBeginAllowThreads();
17631 (arg1)->SetBackgroundMode(arg2);
17632 wxPyEndAllowThreads(__tstate);
17633 if (PyErr_Occurred()) SWIG_fail;
17634 }
17635 resultobj = SWIG_Py_Void();
17636 return resultobj;
17637fail:
17638 return NULL;
17639}
17640
17641
17642SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17643 PyObject *resultobj = 0;
17644 wxDC *arg1 = (wxDC *) 0 ;
17645 wxPalette *arg2 = 0 ;
17646 void *argp1 = 0 ;
17647 int res1 = 0 ;
17648 void *argp2 = 0 ;
17649 int res2 = 0 ;
17650 PyObject * obj0 = 0 ;
17651 PyObject * obj1 = 0 ;
17652 char * kwnames[] = {
17653 (char *) "self",(char *) "palette", NULL
17654 };
17655
17656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
17657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17658 if (!SWIG_IsOK(res1)) {
17659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
17660 }
17661 arg1 = reinterpret_cast< wxDC * >(argp1);
17662 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
17663 if (!SWIG_IsOK(res2)) {
17664 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
17665 }
17666 if (!argp2) {
17667 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
17668 }
17669 arg2 = reinterpret_cast< wxPalette * >(argp2);
17670 {
17671 PyThreadState* __tstate = wxPyBeginAllowThreads();
17672 (arg1)->SetPalette((wxPalette const &)*arg2);
17673 wxPyEndAllowThreads(__tstate);
17674 if (PyErr_Occurred()) SWIG_fail;
17675 }
17676 resultobj = SWIG_Py_Void();
17677 return resultobj;
17678fail:
17679 return NULL;
17680}
17681
17682
17683SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17684 PyObject *resultobj = 0;
17685 wxDC *arg1 = (wxDC *) 0 ;
17686 void *argp1 = 0 ;
17687 int res1 = 0 ;
17688 PyObject *swig_obj[1] ;
17689
17690 if (!args) SWIG_fail;
17691 swig_obj[0] = args;
17692 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17693 if (!SWIG_IsOK(res1)) {
17694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
17695 }
17696 arg1 = reinterpret_cast< wxDC * >(argp1);
17697 {
17698 PyThreadState* __tstate = wxPyBeginAllowThreads();
17699 (arg1)->DestroyClippingRegion();
17700 wxPyEndAllowThreads(__tstate);
17701 if (PyErr_Occurred()) SWIG_fail;
17702 }
17703 resultobj = SWIG_Py_Void();
17704 return resultobj;
17705fail:
17706 return NULL;
17707}
17708
17709
17710SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17711 PyObject *resultobj = 0;
17712 wxDC *arg1 = (wxDC *) 0 ;
17713 int *arg2 = (int *) 0 ;
17714 int *arg3 = (int *) 0 ;
17715 int *arg4 = (int *) 0 ;
17716 int *arg5 = (int *) 0 ;
17717 void *argp1 = 0 ;
17718 int res1 = 0 ;
17719 int temp2 ;
17720 int res2 = SWIG_TMPOBJ ;
17721 int temp3 ;
17722 int res3 = SWIG_TMPOBJ ;
17723 int temp4 ;
17724 int res4 = SWIG_TMPOBJ ;
17725 int temp5 ;
17726 int res5 = SWIG_TMPOBJ ;
17727 PyObject *swig_obj[1] ;
17728
17729 arg2 = &temp2;
17730 arg3 = &temp3;
17731 arg4 = &temp4;
17732 arg5 = &temp5;
17733 if (!args) SWIG_fail;
17734 swig_obj[0] = args;
17735 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17736 if (!SWIG_IsOK(res1)) {
17737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
17738 }
17739 arg1 = reinterpret_cast< wxDC * >(argp1);
17740 {
17741 PyThreadState* __tstate = wxPyBeginAllowThreads();
17742 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
17743 wxPyEndAllowThreads(__tstate);
17744 if (PyErr_Occurred()) SWIG_fail;
17745 }
17746 resultobj = SWIG_Py_Void();
17747 if (SWIG_IsTmpObj(res2)) {
17748 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
17749 } else {
17750 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17751 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
17752 }
17753 if (SWIG_IsTmpObj(res3)) {
17754 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
17755 } else {
17756 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17757 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
17758 }
17759 if (SWIG_IsTmpObj(res4)) {
17760 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
17761 } else {
17762 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17763 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
17764 }
17765 if (SWIG_IsTmpObj(res5)) {
17766 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
17767 } else {
17768 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17769 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
17770 }
17771 return resultobj;
17772fail:
17773 return NULL;
17774}
17775
17776
17777SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17778 PyObject *resultobj = 0;
17779 wxDC *arg1 = (wxDC *) 0 ;
17780 wxRect result;
17781 void *argp1 = 0 ;
17782 int res1 = 0 ;
17783 PyObject *swig_obj[1] ;
17784
17785 if (!args) SWIG_fail;
17786 swig_obj[0] = args;
17787 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17788 if (!SWIG_IsOK(res1)) {
17789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
17790 }
17791 arg1 = reinterpret_cast< wxDC * >(argp1);
17792 {
17793 PyThreadState* __tstate = wxPyBeginAllowThreads();
17794 result = wxDC_GetClippingRect(arg1);
17795 wxPyEndAllowThreads(__tstate);
17796 if (PyErr_Occurred()) SWIG_fail;
17797 }
17798 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
17799 return resultobj;
17800fail:
17801 return NULL;
17802}
17803
17804
17805SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17806 PyObject *resultobj = 0;
17807 wxDC *arg1 = (wxDC *) 0 ;
17808 int result;
17809 void *argp1 = 0 ;
17810 int res1 = 0 ;
17811 PyObject *swig_obj[1] ;
17812
17813 if (!args) SWIG_fail;
17814 swig_obj[0] = args;
17815 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17816 if (!SWIG_IsOK(res1)) {
17817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
17818 }
17819 arg1 = reinterpret_cast< wxDC * >(argp1);
17820 {
17821 PyThreadState* __tstate = wxPyBeginAllowThreads();
17822 result = (int)((wxDC const *)arg1)->GetCharHeight();
17823 wxPyEndAllowThreads(__tstate);
17824 if (PyErr_Occurred()) SWIG_fail;
17825 }
17826 resultobj = SWIG_From_int(static_cast< int >(result));
17827 return resultobj;
17828fail:
17829 return NULL;
17830}
17831
17832
17833SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17834 PyObject *resultobj = 0;
17835 wxDC *arg1 = (wxDC *) 0 ;
17836 int result;
17837 void *argp1 = 0 ;
17838 int res1 = 0 ;
17839 PyObject *swig_obj[1] ;
17840
17841 if (!args) SWIG_fail;
17842 swig_obj[0] = args;
17843 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17844 if (!SWIG_IsOK(res1)) {
17845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
17846 }
17847 arg1 = reinterpret_cast< wxDC * >(argp1);
17848 {
17849 PyThreadState* __tstate = wxPyBeginAllowThreads();
17850 result = (int)((wxDC const *)arg1)->GetCharWidth();
17851 wxPyEndAllowThreads(__tstate);
17852 if (PyErr_Occurred()) SWIG_fail;
17853 }
17854 resultobj = SWIG_From_int(static_cast< int >(result));
17855 return resultobj;
17856fail:
17857 return NULL;
17858}
17859
17860
17861SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17862 PyObject *resultobj = 0;
17863 wxDC *arg1 = (wxDC *) 0 ;
17864 wxString *arg2 = 0 ;
17865 int *arg3 = (int *) 0 ;
17866 int *arg4 = (int *) 0 ;
17867 void *argp1 = 0 ;
17868 int res1 = 0 ;
17869 bool temp2 = false ;
17870 int temp3 ;
17871 int res3 = SWIG_TMPOBJ ;
17872 int temp4 ;
17873 int res4 = SWIG_TMPOBJ ;
17874 PyObject * obj0 = 0 ;
17875 PyObject * obj1 = 0 ;
17876 char * kwnames[] = {
17877 (char *) "self",(char *) "string", NULL
17878 };
17879
17880 arg3 = &temp3;
17881 arg4 = &temp4;
17882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
17883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17884 if (!SWIG_IsOK(res1)) {
17885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
17886 }
17887 arg1 = reinterpret_cast< wxDC * >(argp1);
17888 {
17889 arg2 = wxString_in_helper(obj1);
17890 if (arg2 == NULL) SWIG_fail;
17891 temp2 = true;
17892 }
17893 {
17894 PyThreadState* __tstate = wxPyBeginAllowThreads();
17895 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
17896 wxPyEndAllowThreads(__tstate);
17897 if (PyErr_Occurred()) SWIG_fail;
17898 }
17899 resultobj = SWIG_Py_Void();
17900 if (SWIG_IsTmpObj(res3)) {
17901 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
17902 } else {
17903 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17904 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
17905 }
17906 if (SWIG_IsTmpObj(res4)) {
17907 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
17908 } else {
17909 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17910 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
17911 }
17912 {
17913 if (temp2)
17914 delete arg2;
17915 }
17916 return resultobj;
17917fail:
17918 {
17919 if (temp2)
17920 delete arg2;
17921 }
17922 return NULL;
17923}
17924
17925
17926SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17927 PyObject *resultobj = 0;
17928 wxDC *arg1 = (wxDC *) 0 ;
17929 wxString *arg2 = 0 ;
17930 int *arg3 = (int *) 0 ;
17931 int *arg4 = (int *) 0 ;
17932 int *arg5 = (int *) 0 ;
17933 int *arg6 = (int *) 0 ;
17934 wxFont *arg7 = (wxFont *) NULL ;
17935 void *argp1 = 0 ;
17936 int res1 = 0 ;
17937 bool temp2 = false ;
17938 int temp3 ;
17939 int res3 = SWIG_TMPOBJ ;
17940 int temp4 ;
17941 int res4 = SWIG_TMPOBJ ;
17942 int temp5 ;
17943 int res5 = SWIG_TMPOBJ ;
17944 int temp6 ;
17945 int res6 = SWIG_TMPOBJ ;
17946 void *argp7 = 0 ;
17947 int res7 = 0 ;
17948 PyObject * obj0 = 0 ;
17949 PyObject * obj1 = 0 ;
17950 PyObject * obj2 = 0 ;
17951 char * kwnames[] = {
17952 (char *) "self",(char *) "string",(char *) "font", NULL
17953 };
17954
17955 arg3 = &temp3;
17956 arg4 = &temp4;
17957 arg5 = &temp5;
17958 arg6 = &temp6;
17959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17961 if (!SWIG_IsOK(res1)) {
17962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
17963 }
17964 arg1 = reinterpret_cast< wxDC * >(argp1);
17965 {
17966 arg2 = wxString_in_helper(obj1);
17967 if (arg2 == NULL) SWIG_fail;
17968 temp2 = true;
17969 }
17970 if (obj2) {
17971 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
17972 if (!SWIG_IsOK(res7)) {
17973 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
093d3ff1 17974 }
0085ce49
RD
17975 arg7 = reinterpret_cast< wxFont * >(argp7);
17976 }
17977 {
17978 PyThreadState* __tstate = wxPyBeginAllowThreads();
17979 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
17980 wxPyEndAllowThreads(__tstate);
17981 if (PyErr_Occurred()) SWIG_fail;
17982 }
17983 resultobj = SWIG_Py_Void();
17984 if (SWIG_IsTmpObj(res3)) {
17985 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
17986 } else {
17987 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17988 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
17989 }
17990 if (SWIG_IsTmpObj(res4)) {
17991 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
17992 } else {
17993 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17994 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
17995 }
17996 if (SWIG_IsTmpObj(res5)) {
17997 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
17998 } else {
17999 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18000 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
18001 }
18002 if (SWIG_IsTmpObj(res6)) {
18003 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
18004 } else {
18005 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18006 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
18007 }
18008 {
18009 if (temp2)
18010 delete arg2;
18011 }
18012 return resultobj;
18013fail:
18014 {
18015 if (temp2)
18016 delete arg2;
18017 }
18018 return NULL;
18019}
18020
18021
18022SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18023 PyObject *resultobj = 0;
18024 wxDC *arg1 = (wxDC *) 0 ;
18025 wxString *arg2 = 0 ;
18026 int *arg3 = (int *) 0 ;
18027 int *arg4 = (int *) 0 ;
18028 int *arg5 = (int *) 0 ;
18029 wxFont *arg6 = (wxFont *) NULL ;
18030 void *argp1 = 0 ;
18031 int res1 = 0 ;
18032 bool temp2 = false ;
18033 int temp3 ;
18034 int res3 = SWIG_TMPOBJ ;
18035 int temp4 ;
18036 int res4 = SWIG_TMPOBJ ;
18037 int temp5 ;
18038 int res5 = SWIG_TMPOBJ ;
18039 void *argp6 = 0 ;
18040 int res6 = 0 ;
18041 PyObject * obj0 = 0 ;
18042 PyObject * obj1 = 0 ;
18043 PyObject * obj2 = 0 ;
18044 char * kwnames[] = {
18045 (char *) "self",(char *) "text",(char *) "font", NULL
18046 };
18047
18048 arg3 = &temp3;
18049 arg4 = &temp4;
18050 arg5 = &temp5;
18051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18053 if (!SWIG_IsOK(res1)) {
18054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
18055 }
18056 arg1 = reinterpret_cast< wxDC * >(argp1);
18057 {
18058 arg2 = wxString_in_helper(obj1);
18059 if (arg2 == NULL) SWIG_fail;
18060 temp2 = true;
18061 }
18062 if (obj2) {
18063 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
18064 if (!SWIG_IsOK(res6)) {
18065 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
093d3ff1 18066 }
0085ce49
RD
18067 arg6 = reinterpret_cast< wxFont * >(argp6);
18068 }
18069 {
18070 PyThreadState* __tstate = wxPyBeginAllowThreads();
18071 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
18072 wxPyEndAllowThreads(__tstate);
18073 if (PyErr_Occurred()) SWIG_fail;
18074 }
18075 resultobj = SWIG_Py_Void();
18076 if (SWIG_IsTmpObj(res3)) {
18077 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18078 } else {
18079 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18080 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18081 }
18082 if (SWIG_IsTmpObj(res4)) {
18083 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
18084 } else {
18085 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18086 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
18087 }
18088 if (SWIG_IsTmpObj(res5)) {
18089 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
18090 } else {
18091 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18092 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
18093 }
18094 {
18095 if (temp2)
18096 delete arg2;
18097 }
18098 return resultobj;
18099fail:
18100 {
18101 if (temp2)
18102 delete arg2;
18103 }
18104 return NULL;
18105}
18106
18107
18108SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18109 PyObject *resultobj = 0;
18110 wxDC *arg1 = (wxDC *) 0 ;
18111 wxString *arg2 = 0 ;
18112 wxArrayInt result;
18113 void *argp1 = 0 ;
18114 int res1 = 0 ;
18115 bool temp2 = false ;
18116 PyObject * obj0 = 0 ;
18117 PyObject * obj1 = 0 ;
18118 char * kwnames[] = {
18119 (char *) "self",(char *) "text", NULL
18120 };
18121
18122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
18123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18124 if (!SWIG_IsOK(res1)) {
18125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
18126 }
18127 arg1 = reinterpret_cast< wxDC * >(argp1);
18128 {
18129 arg2 = wxString_in_helper(obj1);
18130 if (arg2 == NULL) SWIG_fail;
18131 temp2 = true;
18132 }
18133 {
18134 PyThreadState* __tstate = wxPyBeginAllowThreads();
18135 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
18136 wxPyEndAllowThreads(__tstate);
18137 if (PyErr_Occurred()) SWIG_fail;
18138 }
18139 {
18140 resultobj = PyList_New(0);
18141 size_t idx;
18142 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
18143 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
18144 PyList_Append(resultobj, val);
18145 Py_DECREF(val);
093d3ff1 18146 }
0085ce49
RD
18147 }
18148 {
18149 if (temp2)
18150 delete arg2;
18151 }
18152 return resultobj;
18153fail:
18154 {
18155 if (temp2)
18156 delete arg2;
18157 }
18158 return NULL;
18159}
18160
18161
18162SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18163 PyObject *resultobj = 0;
18164 wxDC *arg1 = (wxDC *) 0 ;
18165 wxSize result;
18166 void *argp1 = 0 ;
18167 int res1 = 0 ;
18168 PyObject *swig_obj[1] ;
18169
18170 if (!args) SWIG_fail;
18171 swig_obj[0] = args;
18172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18173 if (!SWIG_IsOK(res1)) {
18174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
18175 }
18176 arg1 = reinterpret_cast< wxDC * >(argp1);
18177 {
18178 PyThreadState* __tstate = wxPyBeginAllowThreads();
18179 result = (arg1)->GetSize();
18180 wxPyEndAllowThreads(__tstate);
18181 if (PyErr_Occurred()) SWIG_fail;
18182 }
18183 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
18184 return resultobj;
18185fail:
18186 return NULL;
18187}
18188
18189
18190SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18191 PyObject *resultobj = 0;
18192 wxDC *arg1 = (wxDC *) 0 ;
18193 int *arg2 = (int *) 0 ;
18194 int *arg3 = (int *) 0 ;
18195 void *argp1 = 0 ;
18196 int res1 = 0 ;
18197 int temp2 ;
18198 int res2 = SWIG_TMPOBJ ;
18199 int temp3 ;
18200 int res3 = SWIG_TMPOBJ ;
18201 PyObject *swig_obj[1] ;
18202
18203 arg2 = &temp2;
18204 arg3 = &temp3;
18205 if (!args) SWIG_fail;
18206 swig_obj[0] = args;
18207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18208 if (!SWIG_IsOK(res1)) {
18209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
18210 }
18211 arg1 = reinterpret_cast< wxDC * >(argp1);
18212 {
18213 PyThreadState* __tstate = wxPyBeginAllowThreads();
18214 (arg1)->GetSize(arg2,arg3);
18215 wxPyEndAllowThreads(__tstate);
18216 if (PyErr_Occurred()) SWIG_fail;
18217 }
18218 resultobj = SWIG_Py_Void();
18219 if (SWIG_IsTmpObj(res2)) {
18220 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
18221 } else {
18222 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18223 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
18224 }
18225 if (SWIG_IsTmpObj(res3)) {
18226 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18227 } else {
18228 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18229 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18230 }
18231 return resultobj;
18232fail:
18233 return NULL;
18234}
18235
18236
18237SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18238 PyObject *resultobj = 0;
18239 wxDC *arg1 = (wxDC *) 0 ;
18240 wxSize result;
18241 void *argp1 = 0 ;
18242 int res1 = 0 ;
18243 PyObject *swig_obj[1] ;
18244
18245 if (!args) SWIG_fail;
18246 swig_obj[0] = args;
18247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18248 if (!SWIG_IsOK(res1)) {
18249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
18250 }
18251 arg1 = reinterpret_cast< wxDC * >(argp1);
18252 {
18253 PyThreadState* __tstate = wxPyBeginAllowThreads();
18254 result = ((wxDC const *)arg1)->GetSizeMM();
18255 wxPyEndAllowThreads(__tstate);
18256 if (PyErr_Occurred()) SWIG_fail;
18257 }
18258 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
18259 return resultobj;
18260fail:
18261 return NULL;
18262}
18263
18264
18265SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18266 PyObject *resultobj = 0;
18267 wxDC *arg1 = (wxDC *) 0 ;
18268 int *arg2 = (int *) 0 ;
18269 int *arg3 = (int *) 0 ;
18270 void *argp1 = 0 ;
18271 int res1 = 0 ;
18272 int temp2 ;
18273 int res2 = SWIG_TMPOBJ ;
18274 int temp3 ;
18275 int res3 = SWIG_TMPOBJ ;
18276 PyObject *swig_obj[1] ;
18277
18278 arg2 = &temp2;
18279 arg3 = &temp3;
18280 if (!args) SWIG_fail;
18281 swig_obj[0] = args;
18282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18283 if (!SWIG_IsOK(res1)) {
18284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
18285 }
18286 arg1 = reinterpret_cast< wxDC * >(argp1);
18287 {
18288 PyThreadState* __tstate = wxPyBeginAllowThreads();
18289 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
18290 wxPyEndAllowThreads(__tstate);
18291 if (PyErr_Occurred()) SWIG_fail;
18292 }
18293 resultobj = SWIG_Py_Void();
18294 if (SWIG_IsTmpObj(res2)) {
18295 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
18296 } else {
18297 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18298 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
18299 }
18300 if (SWIG_IsTmpObj(res3)) {
18301 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18302 } else {
18303 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18304 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18305 }
18306 return resultobj;
18307fail:
18308 return NULL;
18309}
18310
18311
18312SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18313 PyObject *resultobj = 0;
18314 wxDC *arg1 = (wxDC *) 0 ;
18315 int arg2 ;
18316 int result;
18317 void *argp1 = 0 ;
18318 int res1 = 0 ;
18319 int val2 ;
18320 int ecode2 = 0 ;
18321 PyObject * obj0 = 0 ;
18322 PyObject * obj1 = 0 ;
18323 char * kwnames[] = {
18324 (char *) "self",(char *) "x", NULL
18325 };
18326
18327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
18328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18329 if (!SWIG_IsOK(res1)) {
18330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
18331 }
18332 arg1 = reinterpret_cast< wxDC * >(argp1);
18333 ecode2 = SWIG_AsVal_int(obj1, &val2);
18334 if (!SWIG_IsOK(ecode2)) {
18335 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
18336 }
18337 arg2 = static_cast< int >(val2);
18338 {
18339 PyThreadState* __tstate = wxPyBeginAllowThreads();
18340 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
18341 wxPyEndAllowThreads(__tstate);
18342 if (PyErr_Occurred()) SWIG_fail;
18343 }
18344 resultobj = SWIG_From_int(static_cast< int >(result));
18345 return resultobj;
18346fail:
18347 return NULL;
18348}
18349
18350
18351SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18352 PyObject *resultobj = 0;
18353 wxDC *arg1 = (wxDC *) 0 ;
18354 int arg2 ;
18355 int result;
18356 void *argp1 = 0 ;
18357 int res1 = 0 ;
18358 int val2 ;
18359 int ecode2 = 0 ;
18360 PyObject * obj0 = 0 ;
18361 PyObject * obj1 = 0 ;
18362 char * kwnames[] = {
18363 (char *) "self",(char *) "y", NULL
18364 };
18365
18366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
18367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18368 if (!SWIG_IsOK(res1)) {
18369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
18370 }
18371 arg1 = reinterpret_cast< wxDC * >(argp1);
18372 ecode2 = SWIG_AsVal_int(obj1, &val2);
18373 if (!SWIG_IsOK(ecode2)) {
18374 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
18375 }
18376 arg2 = static_cast< int >(val2);
18377 {
18378 PyThreadState* __tstate = wxPyBeginAllowThreads();
18379 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
18380 wxPyEndAllowThreads(__tstate);
18381 if (PyErr_Occurred()) SWIG_fail;
18382 }
18383 resultobj = SWIG_From_int(static_cast< int >(result));
18384 return resultobj;
18385fail:
18386 return NULL;
18387}
18388
18389
18390SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18391 PyObject *resultobj = 0;
18392 wxDC *arg1 = (wxDC *) 0 ;
18393 int arg2 ;
18394 int result;
18395 void *argp1 = 0 ;
18396 int res1 = 0 ;
18397 int val2 ;
18398 int ecode2 = 0 ;
18399 PyObject * obj0 = 0 ;
18400 PyObject * obj1 = 0 ;
18401 char * kwnames[] = {
18402 (char *) "self",(char *) "x", NULL
18403 };
18404
18405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
18406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18407 if (!SWIG_IsOK(res1)) {
18408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
18409 }
18410 arg1 = reinterpret_cast< wxDC * >(argp1);
18411 ecode2 = SWIG_AsVal_int(obj1, &val2);
18412 if (!SWIG_IsOK(ecode2)) {
18413 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
18414 }
18415 arg2 = static_cast< int >(val2);
18416 {
18417 PyThreadState* __tstate = wxPyBeginAllowThreads();
18418 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
18419 wxPyEndAllowThreads(__tstate);
18420 if (PyErr_Occurred()) SWIG_fail;
18421 }
18422 resultobj = SWIG_From_int(static_cast< int >(result));
18423 return resultobj;
18424fail:
18425 return NULL;
18426}
18427
18428
18429SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18430 PyObject *resultobj = 0;
18431 wxDC *arg1 = (wxDC *) 0 ;
18432 int arg2 ;
18433 int result;
18434 void *argp1 = 0 ;
18435 int res1 = 0 ;
18436 int val2 ;
18437 int ecode2 = 0 ;
18438 PyObject * obj0 = 0 ;
18439 PyObject * obj1 = 0 ;
18440 char * kwnames[] = {
18441 (char *) "self",(char *) "y", NULL
18442 };
18443
18444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
18445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18446 if (!SWIG_IsOK(res1)) {
18447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
18448 }
18449 arg1 = reinterpret_cast< wxDC * >(argp1);
18450 ecode2 = SWIG_AsVal_int(obj1, &val2);
18451 if (!SWIG_IsOK(ecode2)) {
18452 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
18453 }
18454 arg2 = static_cast< int >(val2);
18455 {
18456 PyThreadState* __tstate = wxPyBeginAllowThreads();
18457 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
18458 wxPyEndAllowThreads(__tstate);
18459 if (PyErr_Occurred()) SWIG_fail;
18460 }
18461 resultobj = SWIG_From_int(static_cast< int >(result));
18462 return resultobj;
18463fail:
18464 return NULL;
18465}
18466
18467
18468SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18469 PyObject *resultobj = 0;
18470 wxDC *arg1 = (wxDC *) 0 ;
18471 int arg2 ;
18472 int result;
18473 void *argp1 = 0 ;
18474 int res1 = 0 ;
18475 int val2 ;
18476 int ecode2 = 0 ;
18477 PyObject * obj0 = 0 ;
18478 PyObject * obj1 = 0 ;
18479 char * kwnames[] = {
18480 (char *) "self",(char *) "x", NULL
18481 };
18482
18483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
18484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18485 if (!SWIG_IsOK(res1)) {
18486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
18487 }
18488 arg1 = reinterpret_cast< wxDC * >(argp1);
18489 ecode2 = SWIG_AsVal_int(obj1, &val2);
18490 if (!SWIG_IsOK(ecode2)) {
18491 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
18492 }
18493 arg2 = static_cast< int >(val2);
18494 {
18495 PyThreadState* __tstate = wxPyBeginAllowThreads();
18496 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
18497 wxPyEndAllowThreads(__tstate);
18498 if (PyErr_Occurred()) SWIG_fail;
18499 }
18500 resultobj = SWIG_From_int(static_cast< int >(result));
18501 return resultobj;
18502fail:
18503 return NULL;
18504}
18505
18506
18507SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18508 PyObject *resultobj = 0;
18509 wxDC *arg1 = (wxDC *) 0 ;
18510 int arg2 ;
18511 int result;
18512 void *argp1 = 0 ;
18513 int res1 = 0 ;
18514 int val2 ;
18515 int ecode2 = 0 ;
18516 PyObject * obj0 = 0 ;
18517 PyObject * obj1 = 0 ;
18518 char * kwnames[] = {
18519 (char *) "self",(char *) "y", NULL
18520 };
18521
18522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
18523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18524 if (!SWIG_IsOK(res1)) {
18525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
18526 }
18527 arg1 = reinterpret_cast< wxDC * >(argp1);
18528 ecode2 = SWIG_AsVal_int(obj1, &val2);
18529 if (!SWIG_IsOK(ecode2)) {
18530 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
18531 }
18532 arg2 = static_cast< int >(val2);
18533 {
18534 PyThreadState* __tstate = wxPyBeginAllowThreads();
18535 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
18536 wxPyEndAllowThreads(__tstate);
18537 if (PyErr_Occurred()) SWIG_fail;
18538 }
18539 resultobj = SWIG_From_int(static_cast< int >(result));
18540 return resultobj;
18541fail:
18542 return NULL;
18543}
18544
18545
18546SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18547 PyObject *resultobj = 0;
18548 wxDC *arg1 = (wxDC *) 0 ;
18549 int arg2 ;
18550 int result;
18551 void *argp1 = 0 ;
18552 int res1 = 0 ;
18553 int val2 ;
18554 int ecode2 = 0 ;
18555 PyObject * obj0 = 0 ;
18556 PyObject * obj1 = 0 ;
18557 char * kwnames[] = {
18558 (char *) "self",(char *) "x", NULL
18559 };
18560
18561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
18562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18563 if (!SWIG_IsOK(res1)) {
18564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
18565 }
18566 arg1 = reinterpret_cast< wxDC * >(argp1);
18567 ecode2 = SWIG_AsVal_int(obj1, &val2);
18568 if (!SWIG_IsOK(ecode2)) {
18569 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
18570 }
18571 arg2 = static_cast< int >(val2);
18572 {
18573 PyThreadState* __tstate = wxPyBeginAllowThreads();
18574 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
18575 wxPyEndAllowThreads(__tstate);
18576 if (PyErr_Occurred()) SWIG_fail;
18577 }
18578 resultobj = SWIG_From_int(static_cast< int >(result));
18579 return resultobj;
18580fail:
18581 return NULL;
18582}
18583
18584
18585SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18586 PyObject *resultobj = 0;
18587 wxDC *arg1 = (wxDC *) 0 ;
18588 int arg2 ;
18589 int result;
18590 void *argp1 = 0 ;
18591 int res1 = 0 ;
18592 int val2 ;
18593 int ecode2 = 0 ;
18594 PyObject * obj0 = 0 ;
18595 PyObject * obj1 = 0 ;
18596 char * kwnames[] = {
18597 (char *) "self",(char *) "y", NULL
18598 };
18599
18600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
18601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18602 if (!SWIG_IsOK(res1)) {
18603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
18604 }
18605 arg1 = reinterpret_cast< wxDC * >(argp1);
18606 ecode2 = SWIG_AsVal_int(obj1, &val2);
18607 if (!SWIG_IsOK(ecode2)) {
18608 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
18609 }
18610 arg2 = static_cast< int >(val2);
18611 {
18612 PyThreadState* __tstate = wxPyBeginAllowThreads();
18613 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
18614 wxPyEndAllowThreads(__tstate);
18615 if (PyErr_Occurred()) SWIG_fail;
18616 }
18617 resultobj = SWIG_From_int(static_cast< int >(result));
18618 return resultobj;
18619fail:
18620 return NULL;
18621}
18622
18623
18624SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18625 PyObject *resultobj = 0;
18626 wxDC *arg1 = (wxDC *) 0 ;
18627 bool result;
18628 void *argp1 = 0 ;
18629 int res1 = 0 ;
18630 PyObject *swig_obj[1] ;
18631
18632 if (!args) SWIG_fail;
18633 swig_obj[0] = args;
18634 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18635 if (!SWIG_IsOK(res1)) {
18636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
18637 }
18638 arg1 = reinterpret_cast< wxDC * >(argp1);
18639 {
18640 PyThreadState* __tstate = wxPyBeginAllowThreads();
18641 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
18642 wxPyEndAllowThreads(__tstate);
18643 if (PyErr_Occurred()) SWIG_fail;
18644 }
18645 {
18646 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18647 }
18648 return resultobj;
18649fail:
18650 return NULL;
18651}
18652
18653
18654SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18655 PyObject *resultobj = 0;
18656 wxDC *arg1 = (wxDC *) 0 ;
18657 bool result;
18658 void *argp1 = 0 ;
18659 int res1 = 0 ;
18660 PyObject *swig_obj[1] ;
18661
18662 if (!args) SWIG_fail;
18663 swig_obj[0] = args;
18664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18665 if (!SWIG_IsOK(res1)) {
18666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
18667 }
18668 arg1 = reinterpret_cast< wxDC * >(argp1);
18669 {
18670 PyThreadState* __tstate = wxPyBeginAllowThreads();
18671 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
18672 wxPyEndAllowThreads(__tstate);
18673 if (PyErr_Occurred()) SWIG_fail;
18674 }
18675 {
18676 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18677 }
18678 return resultobj;
18679fail:
18680 return NULL;
18681}
18682
18683
18684SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18685 PyObject *resultobj = 0;
18686 wxDC *arg1 = (wxDC *) 0 ;
18687 int result;
18688 void *argp1 = 0 ;
18689 int res1 = 0 ;
18690 PyObject *swig_obj[1] ;
18691
18692 if (!args) SWIG_fail;
18693 swig_obj[0] = args;
18694 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18695 if (!SWIG_IsOK(res1)) {
18696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
18697 }
18698 arg1 = reinterpret_cast< wxDC * >(argp1);
18699 {
18700 PyThreadState* __tstate = wxPyBeginAllowThreads();
18701 result = (int)((wxDC const *)arg1)->GetDepth();
18702 wxPyEndAllowThreads(__tstate);
18703 if (PyErr_Occurred()) SWIG_fail;
18704 }
18705 resultobj = SWIG_From_int(static_cast< int >(result));
18706 return resultobj;
18707fail:
18708 return NULL;
18709}
18710
18711
18712SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18713 PyObject *resultobj = 0;
18714 wxDC *arg1 = (wxDC *) 0 ;
18715 wxSize result;
18716 void *argp1 = 0 ;
18717 int res1 = 0 ;
18718 PyObject *swig_obj[1] ;
18719
18720 if (!args) SWIG_fail;
18721 swig_obj[0] = args;
18722 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18723 if (!SWIG_IsOK(res1)) {
18724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
18725 }
18726 arg1 = reinterpret_cast< wxDC * >(argp1);
18727 {
18728 PyThreadState* __tstate = wxPyBeginAllowThreads();
18729 result = ((wxDC const *)arg1)->GetPPI();
18730 wxPyEndAllowThreads(__tstate);
18731 if (PyErr_Occurred()) SWIG_fail;
18732 }
18733 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
18734 return resultobj;
18735fail:
18736 return NULL;
18737}
18738
18739
18740SWIGINTERN PyObject *_wrap_DC_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18741 PyObject *resultobj = 0;
18742 wxDC *arg1 = (wxDC *) 0 ;
18743 bool result;
18744 void *argp1 = 0 ;
18745 int res1 = 0 ;
18746 PyObject *swig_obj[1] ;
18747
18748 if (!args) SWIG_fail;
18749 swig_obj[0] = args;
18750 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18751 if (!SWIG_IsOK(res1)) {
18752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Ok" "', expected argument " "1"" of type '" "wxDC const *""'");
18753 }
18754 arg1 = reinterpret_cast< wxDC * >(argp1);
18755 {
18756 PyThreadState* __tstate = wxPyBeginAllowThreads();
18757 result = (bool)((wxDC const *)arg1)->Ok();
18758 wxPyEndAllowThreads(__tstate);
18759 if (PyErr_Occurred()) SWIG_fail;
18760 }
18761 {
18762 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18763 }
18764 return resultobj;
18765fail:
18766 return NULL;
18767}
18768
18769
18770SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18771 PyObject *resultobj = 0;
18772 wxDC *arg1 = (wxDC *) 0 ;
18773 int result;
18774 void *argp1 = 0 ;
18775 int res1 = 0 ;
18776 PyObject *swig_obj[1] ;
18777
18778 if (!args) SWIG_fail;
18779 swig_obj[0] = args;
18780 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18781 if (!SWIG_IsOK(res1)) {
18782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
18783 }
18784 arg1 = reinterpret_cast< wxDC * >(argp1);
18785 {
18786 PyThreadState* __tstate = wxPyBeginAllowThreads();
18787 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
18788 wxPyEndAllowThreads(__tstate);
18789 if (PyErr_Occurred()) SWIG_fail;
18790 }
18791 resultobj = SWIG_From_int(static_cast< int >(result));
18792 return resultobj;
18793fail:
18794 return NULL;
18795}
18796
18797
18798SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18799 PyObject *resultobj = 0;
18800 wxDC *arg1 = (wxDC *) 0 ;
18801 wxBrush *result = 0 ;
18802 void *argp1 = 0 ;
18803 int res1 = 0 ;
18804 PyObject *swig_obj[1] ;
18805
18806 if (!args) SWIG_fail;
18807 swig_obj[0] = args;
18808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18809 if (!SWIG_IsOK(res1)) {
18810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
18811 }
18812 arg1 = reinterpret_cast< wxDC * >(argp1);
18813 {
18814 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 18815 {
0085ce49
RD
18816 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
18817 result = (wxBrush *) &_result_ref;
093d3ff1 18818 }
0085ce49
RD
18819 wxPyEndAllowThreads(__tstate);
18820 if (PyErr_Occurred()) SWIG_fail;
18821 }
18822 {
18823 wxBrush* resultptr = new wxBrush(*result);
18824 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
18825 }
18826 return resultobj;
18827fail:
18828 return NULL;
18829}
18830
18831
18832SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18833 PyObject *resultobj = 0;
18834 wxDC *arg1 = (wxDC *) 0 ;
18835 wxBrush *result = 0 ;
18836 void *argp1 = 0 ;
18837 int res1 = 0 ;
18838 PyObject *swig_obj[1] ;
18839
18840 if (!args) SWIG_fail;
18841 swig_obj[0] = args;
18842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18843 if (!SWIG_IsOK(res1)) {
18844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
18845 }
18846 arg1 = reinterpret_cast< wxDC * >(argp1);
18847 {
18848 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 18849 {
0085ce49
RD
18850 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
18851 result = (wxBrush *) &_result_ref;
093d3ff1 18852 }
0085ce49
RD
18853 wxPyEndAllowThreads(__tstate);
18854 if (PyErr_Occurred()) SWIG_fail;
18855 }
18856 {
18857 wxBrush* resultptr = new wxBrush(*result);
18858 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
18859 }
18860 return resultobj;
18861fail:
18862 return NULL;
18863}
18864
18865
18866SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18867 PyObject *resultobj = 0;
18868 wxDC *arg1 = (wxDC *) 0 ;
18869 wxFont *result = 0 ;
18870 void *argp1 = 0 ;
18871 int res1 = 0 ;
18872 PyObject *swig_obj[1] ;
18873
18874 if (!args) SWIG_fail;
18875 swig_obj[0] = args;
18876 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18877 if (!SWIG_IsOK(res1)) {
18878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
18879 }
18880 arg1 = reinterpret_cast< wxDC * >(argp1);
18881 {
18882 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 18883 {
0085ce49
RD
18884 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
18885 result = (wxFont *) &_result_ref;
093d3ff1 18886 }
0085ce49
RD
18887 wxPyEndAllowThreads(__tstate);
18888 if (PyErr_Occurred()) SWIG_fail;
18889 }
18890 {
18891 wxFont* resultptr = new wxFont(*result);
18892 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
18893 }
18894 return resultobj;
18895fail:
18896 return NULL;
18897}
18898
18899
18900SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18901 PyObject *resultobj = 0;
18902 wxDC *arg1 = (wxDC *) 0 ;
18903 wxPen *result = 0 ;
18904 void *argp1 = 0 ;
18905 int res1 = 0 ;
18906 PyObject *swig_obj[1] ;
18907
18908 if (!args) SWIG_fail;
18909 swig_obj[0] = args;
18910 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18911 if (!SWIG_IsOK(res1)) {
18912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
18913 }
18914 arg1 = reinterpret_cast< wxDC * >(argp1);
18915 {
18916 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 18917 {
0085ce49
RD
18918 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
18919 result = (wxPen *) &_result_ref;
093d3ff1 18920 }
0085ce49
RD
18921 wxPyEndAllowThreads(__tstate);
18922 if (PyErr_Occurred()) SWIG_fail;
18923 }
18924 {
18925 wxPen* resultptr = new wxPen(*result);
18926 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
18927 }
18928 return resultobj;
18929fail:
18930 return NULL;
18931}
18932
18933
18934SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18935 PyObject *resultobj = 0;
18936 wxDC *arg1 = (wxDC *) 0 ;
18937 wxColour *result = 0 ;
18938 void *argp1 = 0 ;
18939 int res1 = 0 ;
18940 PyObject *swig_obj[1] ;
18941
18942 if (!args) SWIG_fail;
18943 swig_obj[0] = args;
18944 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18945 if (!SWIG_IsOK(res1)) {
18946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
18947 }
18948 arg1 = reinterpret_cast< wxDC * >(argp1);
18949 {
18950 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 18951 {
0085ce49
RD
18952 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
18953 result = (wxColour *) &_result_ref;
093d3ff1 18954 }
0085ce49
RD
18955 wxPyEndAllowThreads(__tstate);
18956 if (PyErr_Occurred()) SWIG_fail;
18957 }
18958 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
18959 return resultobj;
18960fail:
18961 return NULL;
18962}
18963
18964
18965SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18966 PyObject *resultobj = 0;
18967 wxDC *arg1 = (wxDC *) 0 ;
18968 wxColour *result = 0 ;
18969 void *argp1 = 0 ;
18970 int res1 = 0 ;
18971 PyObject *swig_obj[1] ;
18972
18973 if (!args) SWIG_fail;
18974 swig_obj[0] = args;
18975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18976 if (!SWIG_IsOK(res1)) {
18977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
18978 }
18979 arg1 = reinterpret_cast< wxDC * >(argp1);
18980 {
18981 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 18982 {
0085ce49
RD
18983 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
18984 result = (wxColour *) &_result_ref;
093d3ff1 18985 }
0085ce49
RD
18986 wxPyEndAllowThreads(__tstate);
18987 if (PyErr_Occurred()) SWIG_fail;
18988 }
18989 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
18990 return resultobj;
18991fail:
18992 return NULL;
18993}
18994
18995
18996SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18997 PyObject *resultobj = 0;
18998 wxDC *arg1 = (wxDC *) 0 ;
18999 wxColour *arg2 = 0 ;
19000 void *argp1 = 0 ;
19001 int res1 = 0 ;
19002 wxColour temp2 ;
19003 PyObject * obj0 = 0 ;
19004 PyObject * obj1 = 0 ;
19005 char * kwnames[] = {
19006 (char *) "self",(char *) "colour", NULL
19007 };
19008
19009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
19010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19011 if (!SWIG_IsOK(res1)) {
19012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
19013 }
19014 arg1 = reinterpret_cast< wxDC * >(argp1);
19015 {
19016 arg2 = &temp2;
19017 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19018 }
19019 {
19020 PyThreadState* __tstate = wxPyBeginAllowThreads();
19021 (arg1)->SetTextForeground((wxColour const &)*arg2);
19022 wxPyEndAllowThreads(__tstate);
19023 if (PyErr_Occurred()) SWIG_fail;
19024 }
19025 resultobj = SWIG_Py_Void();
19026 return resultobj;
19027fail:
19028 return NULL;
19029}
19030
19031
19032SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19033 PyObject *resultobj = 0;
19034 wxDC *arg1 = (wxDC *) 0 ;
19035 wxColour *arg2 = 0 ;
19036 void *argp1 = 0 ;
19037 int res1 = 0 ;
19038 wxColour temp2 ;
19039 PyObject * obj0 = 0 ;
19040 PyObject * obj1 = 0 ;
19041 char * kwnames[] = {
19042 (char *) "self",(char *) "colour", NULL
19043 };
19044
19045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
19046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19047 if (!SWIG_IsOK(res1)) {
19048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
19049 }
19050 arg1 = reinterpret_cast< wxDC * >(argp1);
19051 {
19052 arg2 = &temp2;
19053 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19054 }
19055 {
19056 PyThreadState* __tstate = wxPyBeginAllowThreads();
19057 (arg1)->SetTextBackground((wxColour const &)*arg2);
19058 wxPyEndAllowThreads(__tstate);
19059 if (PyErr_Occurred()) SWIG_fail;
19060 }
19061 resultobj = SWIG_Py_Void();
19062 return resultobj;
19063fail:
19064 return NULL;
19065}
19066
19067
19068SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19069 PyObject *resultobj = 0;
19070 wxDC *arg1 = (wxDC *) 0 ;
19071 int result;
19072 void *argp1 = 0 ;
19073 int res1 = 0 ;
19074 PyObject *swig_obj[1] ;
19075
19076 if (!args) SWIG_fail;
19077 swig_obj[0] = args;
19078 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19079 if (!SWIG_IsOK(res1)) {
19080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
19081 }
19082 arg1 = reinterpret_cast< wxDC * >(argp1);
19083 {
19084 PyThreadState* __tstate = wxPyBeginAllowThreads();
19085 result = (int)((wxDC const *)arg1)->GetMapMode();
19086 wxPyEndAllowThreads(__tstate);
19087 if (PyErr_Occurred()) SWIG_fail;
19088 }
19089 resultobj = SWIG_From_int(static_cast< int >(result));
19090 return resultobj;
19091fail:
19092 return NULL;
19093}
19094
19095
19096SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19097 PyObject *resultobj = 0;
19098 wxDC *arg1 = (wxDC *) 0 ;
19099 int arg2 ;
19100 void *argp1 = 0 ;
19101 int res1 = 0 ;
19102 int val2 ;
19103 int ecode2 = 0 ;
19104 PyObject * obj0 = 0 ;
19105 PyObject * obj1 = 0 ;
19106 char * kwnames[] = {
19107 (char *) "self",(char *) "mode", NULL
19108 };
19109
19110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
19111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19112 if (!SWIG_IsOK(res1)) {
19113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
19114 }
19115 arg1 = reinterpret_cast< wxDC * >(argp1);
19116 ecode2 = SWIG_AsVal_int(obj1, &val2);
19117 if (!SWIG_IsOK(ecode2)) {
19118 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
19119 }
19120 arg2 = static_cast< int >(val2);
19121 {
19122 PyThreadState* __tstate = wxPyBeginAllowThreads();
19123 (arg1)->SetMapMode(arg2);
19124 wxPyEndAllowThreads(__tstate);
19125 if (PyErr_Occurred()) SWIG_fail;
19126 }
19127 resultobj = SWIG_Py_Void();
19128 return resultobj;
19129fail:
19130 return NULL;
19131}
19132
19133
19134SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19135 PyObject *resultobj = 0;
19136 wxDC *arg1 = (wxDC *) 0 ;
19137 double *arg2 = (double *) 0 ;
19138 double *arg3 = (double *) 0 ;
19139 void *argp1 = 0 ;
19140 int res1 = 0 ;
19141 double temp2 ;
19142 int res2 = SWIG_TMPOBJ ;
19143 double temp3 ;
19144 int res3 = SWIG_TMPOBJ ;
19145 PyObject *swig_obj[1] ;
19146
19147 arg2 = &temp2;
19148 arg3 = &temp3;
19149 if (!args) SWIG_fail;
19150 swig_obj[0] = args;
19151 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19152 if (!SWIG_IsOK(res1)) {
19153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
19154 }
19155 arg1 = reinterpret_cast< wxDC * >(argp1);
19156 {
19157 PyThreadState* __tstate = wxPyBeginAllowThreads();
19158 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
19159 wxPyEndAllowThreads(__tstate);
19160 if (PyErr_Occurred()) SWIG_fail;
19161 }
19162 resultobj = SWIG_Py_Void();
19163 if (SWIG_IsTmpObj(res2)) {
19164 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
19165 } else {
19166 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19167 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
19168 }
19169 if (SWIG_IsTmpObj(res3)) {
19170 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
19171 } else {
19172 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19173 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
19174 }
19175 return resultobj;
19176fail:
19177 return NULL;
19178}
19179
19180
19181SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19182 PyObject *resultobj = 0;
19183 wxDC *arg1 = (wxDC *) 0 ;
19184 double arg2 ;
19185 double arg3 ;
19186 void *argp1 = 0 ;
19187 int res1 = 0 ;
19188 double val2 ;
19189 int ecode2 = 0 ;
19190 double val3 ;
19191 int ecode3 = 0 ;
19192 PyObject * obj0 = 0 ;
19193 PyObject * obj1 = 0 ;
19194 PyObject * obj2 = 0 ;
19195 char * kwnames[] = {
19196 (char *) "self",(char *) "x",(char *) "y", NULL
19197 };
19198
19199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19201 if (!SWIG_IsOK(res1)) {
19202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
19203 }
19204 arg1 = reinterpret_cast< wxDC * >(argp1);
19205 ecode2 = SWIG_AsVal_double(obj1, &val2);
19206 if (!SWIG_IsOK(ecode2)) {
19207 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
19208 }
19209 arg2 = static_cast< double >(val2);
19210 ecode3 = SWIG_AsVal_double(obj2, &val3);
19211 if (!SWIG_IsOK(ecode3)) {
19212 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
19213 }
19214 arg3 = static_cast< double >(val3);
19215 {
19216 PyThreadState* __tstate = wxPyBeginAllowThreads();
19217 (arg1)->SetUserScale(arg2,arg3);
19218 wxPyEndAllowThreads(__tstate);
19219 if (PyErr_Occurred()) SWIG_fail;
19220 }
19221 resultobj = SWIG_Py_Void();
19222 return resultobj;
19223fail:
19224 return NULL;
19225}
19226
19227
19228SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19229 PyObject *resultobj = 0;
19230 wxDC *arg1 = (wxDC *) 0 ;
19231 double *arg2 = (double *) 0 ;
19232 double *arg3 = (double *) 0 ;
19233 void *argp1 = 0 ;
19234 int res1 = 0 ;
19235 double temp2 ;
19236 int res2 = SWIG_TMPOBJ ;
19237 double temp3 ;
19238 int res3 = SWIG_TMPOBJ ;
19239 PyObject *swig_obj[1] ;
19240
19241 arg2 = &temp2;
19242 arg3 = &temp3;
19243 if (!args) SWIG_fail;
19244 swig_obj[0] = args;
19245 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19246 if (!SWIG_IsOK(res1)) {
19247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
19248 }
19249 arg1 = reinterpret_cast< wxDC * >(argp1);
19250 {
19251 PyThreadState* __tstate = wxPyBeginAllowThreads();
19252 (arg1)->GetLogicalScale(arg2,arg3);
19253 wxPyEndAllowThreads(__tstate);
19254 if (PyErr_Occurred()) SWIG_fail;
19255 }
19256 resultobj = SWIG_Py_Void();
19257 if (SWIG_IsTmpObj(res2)) {
19258 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
19259 } else {
19260 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19261 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
19262 }
19263 if (SWIG_IsTmpObj(res3)) {
19264 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
19265 } else {
19266 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19267 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
19268 }
19269 return resultobj;
19270fail:
19271 return NULL;
19272}
19273
19274
19275SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19276 PyObject *resultobj = 0;
19277 wxDC *arg1 = (wxDC *) 0 ;
19278 double arg2 ;
19279 double arg3 ;
19280 void *argp1 = 0 ;
19281 int res1 = 0 ;
19282 double val2 ;
19283 int ecode2 = 0 ;
19284 double val3 ;
19285 int ecode3 = 0 ;
19286 PyObject * obj0 = 0 ;
19287 PyObject * obj1 = 0 ;
19288 PyObject * obj2 = 0 ;
19289 char * kwnames[] = {
19290 (char *) "self",(char *) "x",(char *) "y", NULL
19291 };
19292
19293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19295 if (!SWIG_IsOK(res1)) {
19296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
19297 }
19298 arg1 = reinterpret_cast< wxDC * >(argp1);
19299 ecode2 = SWIG_AsVal_double(obj1, &val2);
19300 if (!SWIG_IsOK(ecode2)) {
19301 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
19302 }
19303 arg2 = static_cast< double >(val2);
19304 ecode3 = SWIG_AsVal_double(obj2, &val3);
19305 if (!SWIG_IsOK(ecode3)) {
19306 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
19307 }
19308 arg3 = static_cast< double >(val3);
19309 {
19310 PyThreadState* __tstate = wxPyBeginAllowThreads();
19311 (arg1)->SetLogicalScale(arg2,arg3);
19312 wxPyEndAllowThreads(__tstate);
19313 if (PyErr_Occurred()) SWIG_fail;
19314 }
19315 resultobj = SWIG_Py_Void();
19316 return resultobj;
19317fail:
19318 return NULL;
19319}
19320
19321
19322SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19323 PyObject *resultobj = 0;
19324 wxDC *arg1 = (wxDC *) 0 ;
19325 wxPoint result;
19326 void *argp1 = 0 ;
19327 int res1 = 0 ;
19328 PyObject *swig_obj[1] ;
19329
19330 if (!args) SWIG_fail;
19331 swig_obj[0] = args;
19332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19333 if (!SWIG_IsOK(res1)) {
19334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
19335 }
19336 arg1 = reinterpret_cast< wxDC * >(argp1);
19337 {
19338 PyThreadState* __tstate = wxPyBeginAllowThreads();
19339 result = ((wxDC const *)arg1)->GetLogicalOrigin();
19340 wxPyEndAllowThreads(__tstate);
19341 if (PyErr_Occurred()) SWIG_fail;
19342 }
19343 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
19344 return resultobj;
19345fail:
19346 return NULL;
19347}
19348
19349
19350SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19351 PyObject *resultobj = 0;
19352 wxDC *arg1 = (wxDC *) 0 ;
19353 int *arg2 = (int *) 0 ;
19354 int *arg3 = (int *) 0 ;
19355 void *argp1 = 0 ;
19356 int res1 = 0 ;
19357 int temp2 ;
19358 int res2 = SWIG_TMPOBJ ;
19359 int temp3 ;
19360 int res3 = SWIG_TMPOBJ ;
19361 PyObject *swig_obj[1] ;
19362
19363 arg2 = &temp2;
19364 arg3 = &temp3;
19365 if (!args) SWIG_fail;
19366 swig_obj[0] = args;
19367 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19368 if (!SWIG_IsOK(res1)) {
19369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
19370 }
19371 arg1 = reinterpret_cast< wxDC * >(argp1);
19372 {
19373 PyThreadState* __tstate = wxPyBeginAllowThreads();
19374 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
19375 wxPyEndAllowThreads(__tstate);
19376 if (PyErr_Occurred()) SWIG_fail;
19377 }
19378 resultobj = SWIG_Py_Void();
19379 if (SWIG_IsTmpObj(res2)) {
19380 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
19381 } else {
19382 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19383 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
19384 }
19385 if (SWIG_IsTmpObj(res3)) {
19386 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
19387 } else {
19388 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19389 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
19390 }
19391 return resultobj;
19392fail:
19393 return NULL;
19394}
19395
19396
19397SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19398 PyObject *resultobj = 0;
19399 wxDC *arg1 = (wxDC *) 0 ;
19400 int arg2 ;
19401 int arg3 ;
19402 void *argp1 = 0 ;
19403 int res1 = 0 ;
19404 int val2 ;
19405 int ecode2 = 0 ;
19406 int val3 ;
19407 int ecode3 = 0 ;
19408 PyObject * obj0 = 0 ;
19409 PyObject * obj1 = 0 ;
19410 PyObject * obj2 = 0 ;
19411 char * kwnames[] = {
19412 (char *) "self",(char *) "x",(char *) "y", NULL
19413 };
19414
19415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19417 if (!SWIG_IsOK(res1)) {
19418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
19419 }
19420 arg1 = reinterpret_cast< wxDC * >(argp1);
19421 ecode2 = SWIG_AsVal_int(obj1, &val2);
19422 if (!SWIG_IsOK(ecode2)) {
19423 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
19424 }
19425 arg2 = static_cast< int >(val2);
19426 ecode3 = SWIG_AsVal_int(obj2, &val3);
19427 if (!SWIG_IsOK(ecode3)) {
19428 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
19429 }
19430 arg3 = static_cast< int >(val3);
19431 {
19432 PyThreadState* __tstate = wxPyBeginAllowThreads();
19433 (arg1)->SetLogicalOrigin(arg2,arg3);
19434 wxPyEndAllowThreads(__tstate);
19435 if (PyErr_Occurred()) SWIG_fail;
19436 }
19437 resultobj = SWIG_Py_Void();
19438 return resultobj;
19439fail:
19440 return NULL;
19441}
19442
19443
19444SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19445 PyObject *resultobj = 0;
19446 wxDC *arg1 = (wxDC *) 0 ;
19447 wxPoint *arg2 = 0 ;
19448 void *argp1 = 0 ;
19449 int res1 = 0 ;
19450 wxPoint temp2 ;
19451 PyObject * obj0 = 0 ;
19452 PyObject * obj1 = 0 ;
19453 char * kwnames[] = {
19454 (char *) "self",(char *) "point", NULL
19455 };
19456
19457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
19458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19459 if (!SWIG_IsOK(res1)) {
19460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19461 }
19462 arg1 = reinterpret_cast< wxDC * >(argp1);
19463 {
19464 arg2 = &temp2;
19465 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19466 }
19467 {
19468 PyThreadState* __tstate = wxPyBeginAllowThreads();
19469 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
19470 wxPyEndAllowThreads(__tstate);
19471 if (PyErr_Occurred()) SWIG_fail;
19472 }
19473 resultobj = SWIG_Py_Void();
19474 return resultobj;
19475fail:
19476 return NULL;
19477}
19478
19479
19480SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19481 PyObject *resultobj = 0;
19482 wxDC *arg1 = (wxDC *) 0 ;
19483 wxPoint result;
19484 void *argp1 = 0 ;
19485 int res1 = 0 ;
19486 PyObject *swig_obj[1] ;
19487
19488 if (!args) SWIG_fail;
19489 swig_obj[0] = args;
19490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19491 if (!SWIG_IsOK(res1)) {
19492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
19493 }
19494 arg1 = reinterpret_cast< wxDC * >(argp1);
19495 {
19496 PyThreadState* __tstate = wxPyBeginAllowThreads();
19497 result = ((wxDC const *)arg1)->GetDeviceOrigin();
19498 wxPyEndAllowThreads(__tstate);
19499 if (PyErr_Occurred()) SWIG_fail;
19500 }
19501 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
19502 return resultobj;
19503fail:
19504 return NULL;
19505}
19506
19507
19508SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19509 PyObject *resultobj = 0;
19510 wxDC *arg1 = (wxDC *) 0 ;
19511 int *arg2 = (int *) 0 ;
19512 int *arg3 = (int *) 0 ;
19513 void *argp1 = 0 ;
19514 int res1 = 0 ;
19515 int temp2 ;
19516 int res2 = SWIG_TMPOBJ ;
19517 int temp3 ;
19518 int res3 = SWIG_TMPOBJ ;
19519 PyObject *swig_obj[1] ;
19520
19521 arg2 = &temp2;
19522 arg3 = &temp3;
19523 if (!args) SWIG_fail;
19524 swig_obj[0] = args;
19525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19526 if (!SWIG_IsOK(res1)) {
19527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
19528 }
19529 arg1 = reinterpret_cast< wxDC * >(argp1);
19530 {
19531 PyThreadState* __tstate = wxPyBeginAllowThreads();
19532 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
19533 wxPyEndAllowThreads(__tstate);
19534 if (PyErr_Occurred()) SWIG_fail;
19535 }
19536 resultobj = SWIG_Py_Void();
19537 if (SWIG_IsTmpObj(res2)) {
19538 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
19539 } else {
19540 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19541 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
19542 }
19543 if (SWIG_IsTmpObj(res3)) {
19544 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
19545 } else {
19546 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19547 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
19548 }
19549 return resultobj;
19550fail:
19551 return NULL;
19552}
19553
19554
19555SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19556 PyObject *resultobj = 0;
19557 wxDC *arg1 = (wxDC *) 0 ;
19558 int arg2 ;
19559 int arg3 ;
19560 void *argp1 = 0 ;
19561 int res1 = 0 ;
19562 int val2 ;
19563 int ecode2 = 0 ;
19564 int val3 ;
19565 int ecode3 = 0 ;
19566 PyObject * obj0 = 0 ;
19567 PyObject * obj1 = 0 ;
19568 PyObject * obj2 = 0 ;
19569 char * kwnames[] = {
19570 (char *) "self",(char *) "x",(char *) "y", NULL
19571 };
19572
19573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19575 if (!SWIG_IsOK(res1)) {
19576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
19577 }
19578 arg1 = reinterpret_cast< wxDC * >(argp1);
19579 ecode2 = SWIG_AsVal_int(obj1, &val2);
19580 if (!SWIG_IsOK(ecode2)) {
19581 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
19582 }
19583 arg2 = static_cast< int >(val2);
19584 ecode3 = SWIG_AsVal_int(obj2, &val3);
19585 if (!SWIG_IsOK(ecode3)) {
19586 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
19587 }
19588 arg3 = static_cast< int >(val3);
19589 {
19590 PyThreadState* __tstate = wxPyBeginAllowThreads();
19591 (arg1)->SetDeviceOrigin(arg2,arg3);
19592 wxPyEndAllowThreads(__tstate);
19593 if (PyErr_Occurred()) SWIG_fail;
19594 }
19595 resultobj = SWIG_Py_Void();
19596 return resultobj;
19597fail:
19598 return NULL;
19599}
19600
19601
19602SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19603 PyObject *resultobj = 0;
19604 wxDC *arg1 = (wxDC *) 0 ;
19605 wxPoint *arg2 = 0 ;
19606 void *argp1 = 0 ;
19607 int res1 = 0 ;
19608 wxPoint temp2 ;
19609 PyObject * obj0 = 0 ;
19610 PyObject * obj1 = 0 ;
19611 char * kwnames[] = {
19612 (char *) "self",(char *) "point", NULL
19613 };
19614
19615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
19616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19617 if (!SWIG_IsOK(res1)) {
19618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19619 }
19620 arg1 = reinterpret_cast< wxDC * >(argp1);
19621 {
19622 arg2 = &temp2;
19623 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19624 }
19625 {
19626 PyThreadState* __tstate = wxPyBeginAllowThreads();
19627 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
19628 wxPyEndAllowThreads(__tstate);
19629 if (PyErr_Occurred()) SWIG_fail;
19630 }
19631 resultobj = SWIG_Py_Void();
19632 return resultobj;
19633fail:
19634 return NULL;
19635}
19636
19637
19638SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19639 PyObject *resultobj = 0;
19640 wxDC *arg1 = (wxDC *) 0 ;
19641 bool arg2 ;
19642 bool arg3 ;
19643 void *argp1 = 0 ;
19644 int res1 = 0 ;
19645 bool val2 ;
19646 int ecode2 = 0 ;
19647 bool val3 ;
19648 int ecode3 = 0 ;
19649 PyObject * obj0 = 0 ;
19650 PyObject * obj1 = 0 ;
19651 PyObject * obj2 = 0 ;
19652 char * kwnames[] = {
19653 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
19654 };
19655
19656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19658 if (!SWIG_IsOK(res1)) {
19659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
19660 }
19661 arg1 = reinterpret_cast< wxDC * >(argp1);
19662 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19663 if (!SWIG_IsOK(ecode2)) {
19664 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
19665 }
19666 arg2 = static_cast< bool >(val2);
19667 ecode3 = SWIG_AsVal_bool(obj2, &val3);
19668 if (!SWIG_IsOK(ecode3)) {
19669 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
19670 }
19671 arg3 = static_cast< bool >(val3);
19672 {
19673 PyThreadState* __tstate = wxPyBeginAllowThreads();
19674 (arg1)->SetAxisOrientation(arg2,arg3);
19675 wxPyEndAllowThreads(__tstate);
19676 if (PyErr_Occurred()) SWIG_fail;
19677 }
19678 resultobj = SWIG_Py_Void();
19679 return resultobj;
19680fail:
19681 return NULL;
19682}
19683
19684
19685SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19686 PyObject *resultobj = 0;
19687 wxDC *arg1 = (wxDC *) 0 ;
19688 int result;
19689 void *argp1 = 0 ;
19690 int res1 = 0 ;
19691 PyObject *swig_obj[1] ;
19692
19693 if (!args) SWIG_fail;
19694 swig_obj[0] = args;
19695 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19696 if (!SWIG_IsOK(res1)) {
19697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
19698 }
19699 arg1 = reinterpret_cast< wxDC * >(argp1);
19700 {
19701 PyThreadState* __tstate = wxPyBeginAllowThreads();
19702 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
19703 wxPyEndAllowThreads(__tstate);
19704 if (PyErr_Occurred()) SWIG_fail;
19705 }
19706 resultobj = SWIG_From_int(static_cast< int >(result));
19707 return resultobj;
19708fail:
19709 return NULL;
19710}
19711
19712
19713SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19714 PyObject *resultobj = 0;
19715 wxDC *arg1 = (wxDC *) 0 ;
19716 int arg2 ;
19717 void *argp1 = 0 ;
19718 int res1 = 0 ;
19719 int val2 ;
19720 int ecode2 = 0 ;
19721 PyObject * obj0 = 0 ;
19722 PyObject * obj1 = 0 ;
19723 char * kwnames[] = {
19724 (char *) "self",(char *) "function", NULL
19725 };
19726
19727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
19728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19729 if (!SWIG_IsOK(res1)) {
19730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
19731 }
19732 arg1 = reinterpret_cast< wxDC * >(argp1);
19733 ecode2 = SWIG_AsVal_int(obj1, &val2);
19734 if (!SWIG_IsOK(ecode2)) {
19735 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
19736 }
19737 arg2 = static_cast< int >(val2);
19738 {
19739 PyThreadState* __tstate = wxPyBeginAllowThreads();
19740 (arg1)->SetLogicalFunction(arg2);
19741 wxPyEndAllowThreads(__tstate);
19742 if (PyErr_Occurred()) SWIG_fail;
19743 }
19744 resultobj = SWIG_Py_Void();
19745 return resultobj;
19746fail:
19747 return NULL;
19748}
19749
19750
19751SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19752 PyObject *resultobj = 0;
19753 wxDC *arg1 = (wxDC *) 0 ;
19754 void *argp1 = 0 ;
19755 int res1 = 0 ;
19756 PyObject *swig_obj[1] ;
19757
19758 if (!args) SWIG_fail;
19759 swig_obj[0] = args;
19760 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19761 if (!SWIG_IsOK(res1)) {
19762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
19763 }
19764 arg1 = reinterpret_cast< wxDC * >(argp1);
19765 {
19766 PyThreadState* __tstate = wxPyBeginAllowThreads();
19767 (arg1)->ComputeScaleAndOrigin();
19768 wxPyEndAllowThreads(__tstate);
19769 if (PyErr_Occurred()) SWIG_fail;
19770 }
19771 resultobj = SWIG_Py_Void();
19772 return resultobj;
19773fail:
19774 return NULL;
19775}
19776
19777
19778SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19779 PyObject *resultobj = 0;
19780 wxDC *arg1 = (wxDC *) 0 ;
19781 int arg2 ;
19782 int arg3 ;
19783 void *argp1 = 0 ;
19784 int res1 = 0 ;
19785 int val2 ;
19786 int ecode2 = 0 ;
19787 int val3 ;
19788 int ecode3 = 0 ;
19789 PyObject * obj0 = 0 ;
19790 PyObject * obj1 = 0 ;
19791 PyObject * obj2 = 0 ;
19792 char * kwnames[] = {
19793 (char *) "self",(char *) "x",(char *) "y", NULL
19794 };
19795
19796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19798 if (!SWIG_IsOK(res1)) {
19799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
19800 }
19801 arg1 = reinterpret_cast< wxDC * >(argp1);
19802 ecode2 = SWIG_AsVal_int(obj1, &val2);
19803 if (!SWIG_IsOK(ecode2)) {
19804 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
19805 }
19806 arg2 = static_cast< int >(val2);
19807 ecode3 = SWIG_AsVal_int(obj2, &val3);
19808 if (!SWIG_IsOK(ecode3)) {
19809 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
19810 }
19811 arg3 = static_cast< int >(val3);
19812 {
19813 PyThreadState* __tstate = wxPyBeginAllowThreads();
19814 (arg1)->CalcBoundingBox(arg2,arg3);
19815 wxPyEndAllowThreads(__tstate);
19816 if (PyErr_Occurred()) SWIG_fail;
19817 }
19818 resultobj = SWIG_Py_Void();
19819 return resultobj;
19820fail:
19821 return NULL;
19822}
19823
19824
19825SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19826 PyObject *resultobj = 0;
19827 wxDC *arg1 = (wxDC *) 0 ;
19828 wxPoint *arg2 = 0 ;
19829 void *argp1 = 0 ;
19830 int res1 = 0 ;
19831 wxPoint temp2 ;
19832 PyObject * obj0 = 0 ;
19833 PyObject * obj1 = 0 ;
19834 char * kwnames[] = {
19835 (char *) "self",(char *) "point", NULL
19836 };
19837
19838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
19839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19840 if (!SWIG_IsOK(res1)) {
19841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19842 }
19843 arg1 = reinterpret_cast< wxDC * >(argp1);
19844 {
19845 arg2 = &temp2;
19846 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19847 }
19848 {
19849 PyThreadState* __tstate = wxPyBeginAllowThreads();
19850 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
19851 wxPyEndAllowThreads(__tstate);
19852 if (PyErr_Occurred()) SWIG_fail;
19853 }
19854 resultobj = SWIG_Py_Void();
19855 return resultobj;
19856fail:
19857 return NULL;
19858}
19859
19860
19861SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19862 PyObject *resultobj = 0;
19863 wxDC *arg1 = (wxDC *) 0 ;
19864 void *argp1 = 0 ;
19865 int res1 = 0 ;
19866 PyObject *swig_obj[1] ;
19867
19868 if (!args) SWIG_fail;
19869 swig_obj[0] = args;
19870 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19871 if (!SWIG_IsOK(res1)) {
19872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
19873 }
19874 arg1 = reinterpret_cast< wxDC * >(argp1);
19875 {
19876 PyThreadState* __tstate = wxPyBeginAllowThreads();
19877 (arg1)->ResetBoundingBox();
19878 wxPyEndAllowThreads(__tstate);
19879 if (PyErr_Occurred()) SWIG_fail;
19880 }
19881 resultobj = SWIG_Py_Void();
19882 return resultobj;
19883fail:
19884 return NULL;
19885}
19886
19887
19888SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19889 PyObject *resultobj = 0;
19890 wxDC *arg1 = (wxDC *) 0 ;
19891 int result;
19892 void *argp1 = 0 ;
19893 int res1 = 0 ;
19894 PyObject *swig_obj[1] ;
19895
19896 if (!args) SWIG_fail;
19897 swig_obj[0] = args;
19898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19899 if (!SWIG_IsOK(res1)) {
19900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
19901 }
19902 arg1 = reinterpret_cast< wxDC * >(argp1);
19903 {
19904 PyThreadState* __tstate = wxPyBeginAllowThreads();
19905 result = (int)((wxDC const *)arg1)->MinX();
19906 wxPyEndAllowThreads(__tstate);
19907 if (PyErr_Occurred()) SWIG_fail;
19908 }
19909 resultobj = SWIG_From_int(static_cast< int >(result));
19910 return resultobj;
19911fail:
19912 return NULL;
19913}
19914
19915
19916SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19917 PyObject *resultobj = 0;
19918 wxDC *arg1 = (wxDC *) 0 ;
19919 int result;
19920 void *argp1 = 0 ;
19921 int res1 = 0 ;
19922 PyObject *swig_obj[1] ;
19923
19924 if (!args) SWIG_fail;
19925 swig_obj[0] = args;
19926 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19927 if (!SWIG_IsOK(res1)) {
19928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
19929 }
19930 arg1 = reinterpret_cast< wxDC * >(argp1);
19931 {
19932 PyThreadState* __tstate = wxPyBeginAllowThreads();
19933 result = (int)((wxDC const *)arg1)->MaxX();
19934 wxPyEndAllowThreads(__tstate);
19935 if (PyErr_Occurred()) SWIG_fail;
19936 }
19937 resultobj = SWIG_From_int(static_cast< int >(result));
19938 return resultobj;
19939fail:
19940 return NULL;
19941}
19942
19943
19944SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19945 PyObject *resultobj = 0;
19946 wxDC *arg1 = (wxDC *) 0 ;
19947 int result;
19948 void *argp1 = 0 ;
19949 int res1 = 0 ;
19950 PyObject *swig_obj[1] ;
19951
19952 if (!args) SWIG_fail;
19953 swig_obj[0] = args;
19954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19955 if (!SWIG_IsOK(res1)) {
19956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
19957 }
19958 arg1 = reinterpret_cast< wxDC * >(argp1);
19959 {
19960 PyThreadState* __tstate = wxPyBeginAllowThreads();
19961 result = (int)((wxDC const *)arg1)->MinY();
19962 wxPyEndAllowThreads(__tstate);
19963 if (PyErr_Occurred()) SWIG_fail;
19964 }
19965 resultobj = SWIG_From_int(static_cast< int >(result));
19966 return resultobj;
19967fail:
19968 return NULL;
19969}
19970
19971
19972SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19973 PyObject *resultobj = 0;
19974 wxDC *arg1 = (wxDC *) 0 ;
19975 int result;
19976 void *argp1 = 0 ;
19977 int res1 = 0 ;
19978 PyObject *swig_obj[1] ;
19979
19980 if (!args) SWIG_fail;
19981 swig_obj[0] = args;
19982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19983 if (!SWIG_IsOK(res1)) {
19984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
19985 }
19986 arg1 = reinterpret_cast< wxDC * >(argp1);
19987 {
19988 PyThreadState* __tstate = wxPyBeginAllowThreads();
19989 result = (int)((wxDC const *)arg1)->MaxY();
19990 wxPyEndAllowThreads(__tstate);
19991 if (PyErr_Occurred()) SWIG_fail;
19992 }
19993 resultobj = SWIG_From_int(static_cast< int >(result));
19994 return resultobj;
19995fail:
19996 return NULL;
19997}
19998
19999
20000SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20001 PyObject *resultobj = 0;
20002 wxDC *arg1 = (wxDC *) 0 ;
20003 int *arg2 = (int *) 0 ;
20004 int *arg3 = (int *) 0 ;
20005 int *arg4 = (int *) 0 ;
20006 int *arg5 = (int *) 0 ;
20007 void *argp1 = 0 ;
20008 int res1 = 0 ;
20009 int temp2 ;
20010 int res2 = SWIG_TMPOBJ ;
20011 int temp3 ;
20012 int res3 = SWIG_TMPOBJ ;
20013 int temp4 ;
20014 int res4 = SWIG_TMPOBJ ;
20015 int temp5 ;
20016 int res5 = SWIG_TMPOBJ ;
20017 PyObject *swig_obj[1] ;
20018
20019 arg2 = &temp2;
20020 arg3 = &temp3;
20021 arg4 = &temp4;
20022 arg5 = &temp5;
20023 if (!args) SWIG_fail;
20024 swig_obj[0] = args;
20025 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20026 if (!SWIG_IsOK(res1)) {
20027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
20028 }
20029 arg1 = reinterpret_cast< wxDC * >(argp1);
20030 {
20031 PyThreadState* __tstate = wxPyBeginAllowThreads();
20032 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
20033 wxPyEndAllowThreads(__tstate);
20034 if (PyErr_Occurred()) SWIG_fail;
20035 }
20036 resultobj = SWIG_Py_Void();
20037 if (SWIG_IsTmpObj(res2)) {
20038 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20039 } else {
20040 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20041 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20042 }
20043 if (SWIG_IsTmpObj(res3)) {
20044 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20045 } else {
20046 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20047 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20048 }
20049 if (SWIG_IsTmpObj(res4)) {
20050 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20051 } else {
20052 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20053 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20054 }
20055 if (SWIG_IsTmpObj(res5)) {
20056 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20057 } else {
20058 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20059 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20060 }
20061 return resultobj;
20062fail:
20063 return NULL;
20064}
20065
20066
20067SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20068 PyObject *resultobj = 0;
20069 wxDC *arg1 = (wxDC *) 0 ;
20070 PyObject *arg2 = (PyObject *) 0 ;
20071 PyObject *arg3 = (PyObject *) 0 ;
20072 PyObject *arg4 = (PyObject *) 0 ;
20073 PyObject *result = 0 ;
20074 void *argp1 = 0 ;
20075 int res1 = 0 ;
20076 PyObject * obj0 = 0 ;
20077 PyObject * obj1 = 0 ;
20078 PyObject * obj2 = 0 ;
20079 PyObject * obj3 = 0 ;
20080 char * kwnames[] = {
20081 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20082 };
20083
20084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20086 if (!SWIG_IsOK(res1)) {
20087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
20088 }
20089 arg1 = reinterpret_cast< wxDC * >(argp1);
20090 arg2 = obj1;
20091 arg3 = obj2;
20092 arg4 = obj3;
20093 {
20094 PyThreadState* __tstate = wxPyBeginAllowThreads();
20095 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
20096 wxPyEndAllowThreads(__tstate);
20097 if (PyErr_Occurred()) SWIG_fail;
20098 }
20099 resultobj = result;
20100 return resultobj;
20101fail:
20102 return NULL;
20103}
20104
20105
20106SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20107 PyObject *resultobj = 0;
20108 wxDC *arg1 = (wxDC *) 0 ;
20109 PyObject *arg2 = (PyObject *) 0 ;
20110 PyObject *arg3 = (PyObject *) 0 ;
20111 PyObject *arg4 = (PyObject *) 0 ;
20112 PyObject *result = 0 ;
20113 void *argp1 = 0 ;
20114 int res1 = 0 ;
20115 PyObject * obj0 = 0 ;
20116 PyObject * obj1 = 0 ;
20117 PyObject * obj2 = 0 ;
20118 PyObject * obj3 = 0 ;
20119 char * kwnames[] = {
20120 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20121 };
20122
20123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20125 if (!SWIG_IsOK(res1)) {
20126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
20127 }
20128 arg1 = reinterpret_cast< wxDC * >(argp1);
20129 arg2 = obj1;
20130 arg3 = obj2;
20131 arg4 = obj3;
20132 {
20133 PyThreadState* __tstate = wxPyBeginAllowThreads();
20134 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
20135 wxPyEndAllowThreads(__tstate);
20136 if (PyErr_Occurred()) SWIG_fail;
20137 }
20138 resultobj = result;
20139 return resultobj;
20140fail:
20141 return NULL;
20142}
20143
20144
20145SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20146 PyObject *resultobj = 0;
20147 wxDC *arg1 = (wxDC *) 0 ;
20148 PyObject *arg2 = (PyObject *) 0 ;
20149 PyObject *arg3 = (PyObject *) 0 ;
20150 PyObject *arg4 = (PyObject *) 0 ;
20151 PyObject *result = 0 ;
20152 void *argp1 = 0 ;
20153 int res1 = 0 ;
20154 PyObject * obj0 = 0 ;
20155 PyObject * obj1 = 0 ;
20156 PyObject * obj2 = 0 ;
20157 PyObject * obj3 = 0 ;
20158 char * kwnames[] = {
20159 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20160 };
20161
20162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20164 if (!SWIG_IsOK(res1)) {
20165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
20166 }
20167 arg1 = reinterpret_cast< wxDC * >(argp1);
20168 arg2 = obj1;
20169 arg3 = obj2;
20170 arg4 = obj3;
20171 {
20172 PyThreadState* __tstate = wxPyBeginAllowThreads();
20173 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
20174 wxPyEndAllowThreads(__tstate);
20175 if (PyErr_Occurred()) SWIG_fail;
20176 }
20177 resultobj = result;
20178 return resultobj;
20179fail:
20180 return NULL;
20181}
20182
20183
20184SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20185 PyObject *resultobj = 0;
20186 wxDC *arg1 = (wxDC *) 0 ;
20187 PyObject *arg2 = (PyObject *) 0 ;
20188 PyObject *arg3 = (PyObject *) 0 ;
20189 PyObject *arg4 = (PyObject *) 0 ;
20190 PyObject *result = 0 ;
20191 void *argp1 = 0 ;
20192 int res1 = 0 ;
20193 PyObject * obj0 = 0 ;
20194 PyObject * obj1 = 0 ;
20195 PyObject * obj2 = 0 ;
20196 PyObject * obj3 = 0 ;
20197 char * kwnames[] = {
20198 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20199 };
20200
20201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20203 if (!SWIG_IsOK(res1)) {
20204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
20205 }
20206 arg1 = reinterpret_cast< wxDC * >(argp1);
20207 arg2 = obj1;
20208 arg3 = obj2;
20209 arg4 = obj3;
20210 {
20211 PyThreadState* __tstate = wxPyBeginAllowThreads();
20212 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
20213 wxPyEndAllowThreads(__tstate);
20214 if (PyErr_Occurred()) SWIG_fail;
20215 }
20216 resultobj = result;
20217 return resultobj;
20218fail:
20219 return NULL;
20220}
20221
20222
20223SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20224 PyObject *resultobj = 0;
20225 wxDC *arg1 = (wxDC *) 0 ;
20226 PyObject *arg2 = (PyObject *) 0 ;
20227 PyObject *arg3 = (PyObject *) 0 ;
20228 PyObject *arg4 = (PyObject *) 0 ;
20229 PyObject *result = 0 ;
20230 void *argp1 = 0 ;
20231 int res1 = 0 ;
20232 PyObject * obj0 = 0 ;
20233 PyObject * obj1 = 0 ;
20234 PyObject * obj2 = 0 ;
20235 PyObject * obj3 = 0 ;
20236 char * kwnames[] = {
20237 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20238 };
20239
20240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20242 if (!SWIG_IsOK(res1)) {
20243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
20244 }
20245 arg1 = reinterpret_cast< wxDC * >(argp1);
20246 arg2 = obj1;
20247 arg3 = obj2;
20248 arg4 = obj3;
20249 {
20250 PyThreadState* __tstate = wxPyBeginAllowThreads();
20251 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
20252 wxPyEndAllowThreads(__tstate);
20253 if (PyErr_Occurred()) SWIG_fail;
20254 }
20255 resultobj = result;
20256 return resultobj;
20257fail:
20258 return NULL;
20259}
20260
20261
20262SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20263 PyObject *resultobj = 0;
20264 wxDC *arg1 = (wxDC *) 0 ;
20265 PyObject *arg2 = (PyObject *) 0 ;
20266 PyObject *arg3 = (PyObject *) 0 ;
20267 PyObject *arg4 = (PyObject *) 0 ;
20268 PyObject *arg5 = (PyObject *) 0 ;
20269 PyObject *result = 0 ;
20270 void *argp1 = 0 ;
20271 int res1 = 0 ;
20272 PyObject * obj0 = 0 ;
20273 PyObject * obj1 = 0 ;
20274 PyObject * obj2 = 0 ;
20275 PyObject * obj3 = 0 ;
20276 PyObject * obj4 = 0 ;
20277 char * kwnames[] = {
20278 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
20279 };
20280
20281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20283 if (!SWIG_IsOK(res1)) {
20284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
20285 }
20286 arg1 = reinterpret_cast< wxDC * >(argp1);
20287 arg2 = obj1;
20288 arg3 = obj2;
20289 arg4 = obj3;
20290 arg5 = obj4;
20291 {
20292 PyThreadState* __tstate = wxPyBeginAllowThreads();
20293 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
20294 wxPyEndAllowThreads(__tstate);
20295 if (PyErr_Occurred()) SWIG_fail;
20296 }
20297 resultobj = result;
20298 return resultobj;
20299fail:
20300 return NULL;
20301}
20302
20303
20304SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20305 PyObject *obj;
20306 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20307 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
20308 return SWIG_Py_Void();
20309}
20310
20311SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20312 PyObject *resultobj = 0;
20313 wxMemoryDC *result = 0 ;
20314
20315 if (!SWIG_Python_UnpackTuple(args,"new_MemoryDC",0,0,0)) SWIG_fail;
20316 {
20317 if (!wxPyCheckForApp()) SWIG_fail;
20318 PyThreadState* __tstate = wxPyBeginAllowThreads();
20319 result = (wxMemoryDC *)new wxMemoryDC();
20320 wxPyEndAllowThreads(__tstate);
20321 if (PyErr_Occurred()) SWIG_fail;
20322 }
20323 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
20324 return resultobj;
20325fail:
20326 return NULL;
20327}
20328
20329
20330SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20331 PyObject *resultobj = 0;
20332 wxDC *arg1 = (wxDC *) 0 ;
20333 wxMemoryDC *result = 0 ;
20334 void *argp1 = 0 ;
20335 int res1 = 0 ;
20336 PyObject * obj0 = 0 ;
20337 char * kwnames[] = {
20338 (char *) "oldDC", NULL
20339 };
20340
20341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
20342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20343 if (!SWIG_IsOK(res1)) {
20344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
20345 }
20346 arg1 = reinterpret_cast< wxDC * >(argp1);
20347 {
20348 if (!wxPyCheckForApp()) SWIG_fail;
20349 PyThreadState* __tstate = wxPyBeginAllowThreads();
20350 result = (wxMemoryDC *)new wxMemoryDC(arg1);
20351 wxPyEndAllowThreads(__tstate);
20352 if (PyErr_Occurred()) SWIG_fail;
20353 }
20354 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
20355 return resultobj;
20356fail:
20357 return NULL;
20358}
20359
20360
20361SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20362 PyObject *resultobj = 0;
20363 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
20364 wxBitmap *arg2 = 0 ;
20365 void *argp1 = 0 ;
20366 int res1 = 0 ;
20367 void *argp2 = 0 ;
20368 int res2 = 0 ;
20369 PyObject * obj0 = 0 ;
20370 PyObject * obj1 = 0 ;
20371 char * kwnames[] = {
20372 (char *) "self",(char *) "bitmap", NULL
20373 };
20374
20375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
20376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
20377 if (!SWIG_IsOK(res1)) {
20378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
20379 }
20380 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
20381 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
20382 if (!SWIG_IsOK(res2)) {
20383 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20384 }
20385 if (!argp2) {
20386 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20387 }
20388 arg2 = reinterpret_cast< wxBitmap * >(argp2);
20389 {
20390 PyThreadState* __tstate = wxPyBeginAllowThreads();
20391 (arg1)->SelectObject((wxBitmap const &)*arg2);
20392 wxPyEndAllowThreads(__tstate);
20393 if (PyErr_Occurred()) SWIG_fail;
20394 }
20395 resultobj = SWIG_Py_Void();
20396 return resultobj;
20397fail:
20398 return NULL;
20399}
20400
20401
20402SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20403 PyObject *obj;
20404 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20405 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
20406 return SWIG_Py_Void();
20407}
20408
20409SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20410 return SWIG_Python_InitShadowInstance(args);
20411}
20412
20413SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20414 PyObject *resultobj = 0;
20415 wxDC *arg1 = (wxDC *) 0 ;
20416 wxBitmap const &arg2_defvalue = wxNullBitmap ;
20417 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
20418 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
20419 wxBufferedDC *result = 0 ;
20420 void *argp1 = 0 ;
20421 int res1 = 0 ;
20422 void *argp2 = 0 ;
20423 int res2 = 0 ;
20424 int val3 ;
20425 int ecode3 = 0 ;
20426
20427 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
20428 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20429 if (!SWIG_IsOK(res1)) {
20430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
20431 }
20432 arg1 = reinterpret_cast< wxDC * >(argp1);
20433 if (swig_obj[1]) {
20434 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
20435 if (!SWIG_IsOK(res2)) {
20436 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
093d3ff1 20437 }
0085ce49
RD
20438 if (!argp2) {
20439 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
093d3ff1 20440 }
0085ce49
RD
20441 arg2 = reinterpret_cast< wxBitmap * >(argp2);
20442 }
20443 if (swig_obj[2]) {
20444 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
20445 if (!SWIG_IsOK(ecode3)) {
20446 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
20447 }
20448 arg3 = static_cast< int >(val3);
20449 }
20450 {
20451 if (!wxPyCheckForApp()) SWIG_fail;
20452 PyThreadState* __tstate = wxPyBeginAllowThreads();
20453 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
20454 wxPyEndAllowThreads(__tstate);
20455 if (PyErr_Occurred()) SWIG_fail;
20456 }
20457 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
20458 return resultobj;
20459fail:
20460 return NULL;
20461}
20462
20463
20464SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20465 PyObject *resultobj = 0;
20466 wxDC *arg1 = (wxDC *) 0 ;
20467 wxSize *arg2 = 0 ;
20468 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
20469 wxBufferedDC *result = 0 ;
20470 void *argp1 = 0 ;
20471 int res1 = 0 ;
20472 wxSize temp2 ;
20473 int val3 ;
20474 int ecode3 = 0 ;
20475
20476 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
20477 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20478 if (!SWIG_IsOK(res1)) {
20479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
20480 }
20481 arg1 = reinterpret_cast< wxDC * >(argp1);
20482 {
20483 arg2 = &temp2;
20484 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
20485 }
20486 if (swig_obj[2]) {
20487 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
20488 if (!SWIG_IsOK(ecode3)) {
20489 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
20490 }
20491 arg3 = static_cast< int >(val3);
20492 }
20493 {
20494 if (!wxPyCheckForApp()) SWIG_fail;
20495 PyThreadState* __tstate = wxPyBeginAllowThreads();
20496 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
20497 wxPyEndAllowThreads(__tstate);
20498 if (PyErr_Occurred()) SWIG_fail;
20499 }
20500 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
20501 return resultobj;
20502fail:
20503 return NULL;
20504}
20505
20506
20507SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
20508 int argc;
20509 PyObject *argv[4];
20510
20511 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
20512 --argc;
20513 if ((argc >= 1) && (argc <= 3)) {
20514 int _v = 0;
20515 if (argc > 1) {
20516 {
20517 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
20518 _v = SWIG_CheckState(res);
20519 }
20520 if (!_v) goto check_1;
093d3ff1 20521 }
0085ce49
RD
20522 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
20523 }
20524check_1:
20525
20526 if ((argc >= 2) && (argc <= 3)) {
20527 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
20528 }
20529
20530fail:
20531 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
20532 return NULL;
20533}
20534
20535
20536SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20537 PyObject *resultobj = 0;
20538 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
20539 void *argp1 = 0 ;
20540 int res1 = 0 ;
20541 PyObject *swig_obj[1] ;
20542
20543 if (!args) SWIG_fail;
20544 swig_obj[0] = args;
20545 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
20546 if (!SWIG_IsOK(res1)) {
20547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
20548 }
20549 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
20550 {
20551 PyThreadState* __tstate = wxPyBeginAllowThreads();
20552 delete arg1;
20553
20554 wxPyEndAllowThreads(__tstate);
20555 if (PyErr_Occurred()) SWIG_fail;
20556 }
20557 resultobj = SWIG_Py_Void();
20558 return resultobj;
20559fail:
20560 return NULL;
20561}
20562
20563
20564SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20565 PyObject *resultobj = 0;
20566 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
20567 void *argp1 = 0 ;
20568 int res1 = 0 ;
20569 PyObject *swig_obj[1] ;
20570
20571 if (!args) SWIG_fail;
20572 swig_obj[0] = args;
20573 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
20574 if (!SWIG_IsOK(res1)) {
20575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
20576 }
20577 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
20578 {
20579 PyThreadState* __tstate = wxPyBeginAllowThreads();
20580 (arg1)->UnMask();
20581 wxPyEndAllowThreads(__tstate);
20582 if (PyErr_Occurred()) SWIG_fail;
20583 }
20584 resultobj = SWIG_Py_Void();
20585 return resultobj;
20586fail:
20587 return NULL;
20588}
20589
20590
20591SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20592 PyObject *obj;
20593 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20594 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
20595 return SWIG_Py_Void();
20596}
20597
20598SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20599 return SWIG_Python_InitShadowInstance(args);
20600}
20601
20602SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20603 PyObject *resultobj = 0;
20604 wxWindow *arg1 = (wxWindow *) 0 ;
20605 wxBitmap const &arg2_defvalue = wxNullBitmap ;
20606 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
20607 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
20608 wxBufferedPaintDC *result = 0 ;
20609 void *argp1 = 0 ;
20610 int res1 = 0 ;
20611 void *argp2 = 0 ;
20612 int res2 = 0 ;
20613 int val3 ;
20614 int ecode3 = 0 ;
20615 PyObject * obj0 = 0 ;
20616 PyObject * obj1 = 0 ;
20617 PyObject * obj2 = 0 ;
20618 char * kwnames[] = {
20619 (char *) "window",(char *) "buffer",(char *) "style", NULL
20620 };
20621
20622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20624 if (!SWIG_IsOK(res1)) {
20625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
20626 }
20627 arg1 = reinterpret_cast< wxWindow * >(argp1);
20628 if (obj1) {
20629 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
20630 if (!SWIG_IsOK(res2)) {
20631 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
093d3ff1 20632 }
0085ce49
RD
20633 if (!argp2) {
20634 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
093d3ff1 20635 }
0085ce49
RD
20636 arg2 = reinterpret_cast< wxBitmap * >(argp2);
20637 }
20638 if (obj2) {
20639 ecode3 = SWIG_AsVal_int(obj2, &val3);
20640 if (!SWIG_IsOK(ecode3)) {
20641 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
20642 }
20643 arg3 = static_cast< int >(val3);
20644 }
20645 {
20646 if (!wxPyCheckForApp()) SWIG_fail;
20647 PyThreadState* __tstate = wxPyBeginAllowThreads();
20648 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
20649 wxPyEndAllowThreads(__tstate);
20650 if (PyErr_Occurred()) SWIG_fail;
20651 }
20652 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
20653 return resultobj;
20654fail:
20655 return NULL;
20656}
20657
20658
20659SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20660 PyObject *obj;
20661 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20662 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
20663 return SWIG_Py_Void();
20664}
20665
20666SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20667 return SWIG_Python_InitShadowInstance(args);
20668}
20669
20670SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20671 PyObject *resultobj = 0;
20672 wxScreenDC *result = 0 ;
20673
20674 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
20675 {
20676 if (!wxPyCheckForApp()) SWIG_fail;
20677 PyThreadState* __tstate = wxPyBeginAllowThreads();
20678 result = (wxScreenDC *)new wxScreenDC();
20679 wxPyEndAllowThreads(__tstate);
20680 if (PyErr_Occurred()) SWIG_fail;
20681 }
20682 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
20683 return resultobj;
20684fail:
20685 return NULL;
20686}
20687
20688
20689SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20690 PyObject *resultobj = 0;
20691 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
20692 wxWindow *arg2 = (wxWindow *) 0 ;
20693 bool result;
20694 void *argp1 = 0 ;
20695 int res1 = 0 ;
20696 void *argp2 = 0 ;
20697 int res2 = 0 ;
20698 PyObject * obj0 = 0 ;
20699 PyObject * obj1 = 0 ;
20700 char * kwnames[] = {
20701 (char *) "self",(char *) "window", NULL
20702 };
20703
20704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
20705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
20706 if (!SWIG_IsOK(res1)) {
20707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
20708 }
20709 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
20710 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20711 if (!SWIG_IsOK(res2)) {
20712 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
20713 }
20714 arg2 = reinterpret_cast< wxWindow * >(argp2);
20715 {
20716 PyThreadState* __tstate = wxPyBeginAllowThreads();
20717 result = (bool)(arg1)->StartDrawingOnTop(arg2);
20718 wxPyEndAllowThreads(__tstate);
20719 if (PyErr_Occurred()) SWIG_fail;
20720 }
20721 {
20722 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20723 }
20724 return resultobj;
20725fail:
20726 return NULL;
20727}
20728
20729
20730SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20731 PyObject *resultobj = 0;
20732 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
20733 wxRect *arg2 = (wxRect *) NULL ;
20734 bool result;
20735 void *argp1 = 0 ;
20736 int res1 = 0 ;
20737 void *argp2 = 0 ;
20738 int res2 = 0 ;
20739 PyObject * obj0 = 0 ;
20740 PyObject * obj1 = 0 ;
20741 char * kwnames[] = {
20742 (char *) "self",(char *) "rect", NULL
20743 };
20744
20745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
20746 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
20747 if (!SWIG_IsOK(res1)) {
20748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
20749 }
20750 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
20751 if (obj1) {
20752 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
20753 if (!SWIG_IsOK(res2)) {
20754 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
e2950dbb 20755 }
0085ce49
RD
20756 arg2 = reinterpret_cast< wxRect * >(argp2);
20757 }
20758 {
20759 PyThreadState* __tstate = wxPyBeginAllowThreads();
20760 result = (bool)(arg1)->StartDrawingOnTop(arg2);
20761 wxPyEndAllowThreads(__tstate);
20762 if (PyErr_Occurred()) SWIG_fail;
20763 }
20764 {
20765 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20766 }
20767 return resultobj;
20768fail:
20769 return NULL;
20770}
20771
20772
20773SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20774 PyObject *resultobj = 0;
20775 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
20776 bool result;
20777 void *argp1 = 0 ;
20778 int res1 = 0 ;
20779 PyObject *swig_obj[1] ;
20780
20781 if (!args) SWIG_fail;
20782 swig_obj[0] = args;
20783 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
20784 if (!SWIG_IsOK(res1)) {
20785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
20786 }
20787 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
20788 {
20789 PyThreadState* __tstate = wxPyBeginAllowThreads();
20790 result = (bool)(arg1)->EndDrawingOnTop();
20791 wxPyEndAllowThreads(__tstate);
20792 if (PyErr_Occurred()) SWIG_fail;
20793 }
20794 {
20795 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20796 }
20797 return resultobj;
20798fail:
20799 return NULL;
20800}
20801
20802
20803SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20804 PyObject *obj;
20805 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20806 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
20807 return SWIG_Py_Void();
20808}
20809
20810SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20811 return SWIG_Python_InitShadowInstance(args);
20812}
20813
20814SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20815 PyObject *resultobj = 0;
20816 wxWindow *arg1 = (wxWindow *) 0 ;
20817 wxClientDC *result = 0 ;
20818 void *argp1 = 0 ;
20819 int res1 = 0 ;
20820 PyObject * obj0 = 0 ;
20821 char * kwnames[] = {
20822 (char *) "win", NULL
20823 };
20824
20825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
20826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20827 if (!SWIG_IsOK(res1)) {
20828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
20829 }
20830 arg1 = reinterpret_cast< wxWindow * >(argp1);
20831 {
20832 if (!wxPyCheckForApp()) SWIG_fail;
20833 PyThreadState* __tstate = wxPyBeginAllowThreads();
20834 result = (wxClientDC *)new wxClientDC(arg1);
20835 wxPyEndAllowThreads(__tstate);
20836 if (PyErr_Occurred()) SWIG_fail;
20837 }
20838 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
20839 return resultobj;
20840fail:
20841 return NULL;
20842}
20843
20844
20845SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20846 PyObject *obj;
20847 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20848 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
20849 return SWIG_Py_Void();
20850}
20851
20852SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20853 return SWIG_Python_InitShadowInstance(args);
20854}
20855
20856SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20857 PyObject *resultobj = 0;
20858 wxWindow *arg1 = (wxWindow *) 0 ;
20859 wxPaintDC *result = 0 ;
20860 void *argp1 = 0 ;
20861 int res1 = 0 ;
20862 PyObject * obj0 = 0 ;
20863 char * kwnames[] = {
20864 (char *) "win", NULL
20865 };
20866
20867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
20868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20869 if (!SWIG_IsOK(res1)) {
20870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
20871 }
20872 arg1 = reinterpret_cast< wxWindow * >(argp1);
20873 {
20874 if (!wxPyCheckForApp()) SWIG_fail;
20875 PyThreadState* __tstate = wxPyBeginAllowThreads();
20876 result = (wxPaintDC *)new wxPaintDC(arg1);
20877 wxPyEndAllowThreads(__tstate);
20878 if (PyErr_Occurred()) SWIG_fail;
20879 }
20880 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
20881 return resultobj;
20882fail:
20883 return NULL;
20884}
20885
20886
20887SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20888 PyObject *obj;
20889 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20890 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
20891 return SWIG_Py_Void();
20892}
20893
20894SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20895 return SWIG_Python_InitShadowInstance(args);
20896}
20897
20898SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20899 PyObject *resultobj = 0;
20900 wxWindow *arg1 = (wxWindow *) 0 ;
20901 wxWindowDC *result = 0 ;
20902 void *argp1 = 0 ;
20903 int res1 = 0 ;
20904 PyObject * obj0 = 0 ;
20905 char * kwnames[] = {
20906 (char *) "win", NULL
20907 };
20908
20909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
20910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20911 if (!SWIG_IsOK(res1)) {
20912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
20913 }
20914 arg1 = reinterpret_cast< wxWindow * >(argp1);
20915 {
20916 if (!wxPyCheckForApp()) SWIG_fail;
20917 PyThreadState* __tstate = wxPyBeginAllowThreads();
20918 result = (wxWindowDC *)new wxWindowDC(arg1);
20919 wxPyEndAllowThreads(__tstate);
20920 if (PyErr_Occurred()) SWIG_fail;
20921 }
20922 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
20923 return resultobj;
20924fail:
20925 return NULL;
20926}
20927
20928
20929SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20930 PyObject *obj;
20931 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20932 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
20933 return SWIG_Py_Void();
20934}
20935
20936SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20937 return SWIG_Python_InitShadowInstance(args);
20938}
20939
20940SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20941 PyObject *resultobj = 0;
20942 wxDC *arg1 = 0 ;
20943 bool arg2 ;
20944 wxMirrorDC *result = 0 ;
20945 void *argp1 = 0 ;
20946 int res1 = 0 ;
20947 bool val2 ;
20948 int ecode2 = 0 ;
20949 PyObject * obj0 = 0 ;
20950 PyObject * obj1 = 0 ;
20951 char * kwnames[] = {
20952 (char *) "dc",(char *) "mirror", NULL
20953 };
20954
20955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
20956 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
20957 if (!SWIG_IsOK(res1)) {
20958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
20959 }
20960 if (!argp1) {
20961 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
20962 }
20963 arg1 = reinterpret_cast< wxDC * >(argp1);
20964 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20965 if (!SWIG_IsOK(ecode2)) {
20966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
20967 }
20968 arg2 = static_cast< bool >(val2);
20969 {
20970 if (!wxPyCheckForApp()) SWIG_fail;
20971 PyThreadState* __tstate = wxPyBeginAllowThreads();
20972 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
20973 wxPyEndAllowThreads(__tstate);
20974 if (PyErr_Occurred()) SWIG_fail;
20975 }
20976 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
20977 return resultobj;
20978fail:
20979 return NULL;
20980}
20981
20982
20983SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20984 PyObject *obj;
20985 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20986 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
20987 return SWIG_Py_Void();
20988}
20989
20990SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20991 return SWIG_Python_InitShadowInstance(args);
20992}
20993
20994SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20995 PyObject *resultobj = 0;
20996 wxPrintData *arg1 = 0 ;
20997 wxPostScriptDC *result = 0 ;
20998 void *argp1 = 0 ;
20999 int res1 = 0 ;
21000 PyObject * obj0 = 0 ;
21001 char * kwnames[] = {
21002 (char *) "printData", NULL
21003 };
21004
21005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
21006 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
21007 if (!SWIG_IsOK(res1)) {
21008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
21009 }
21010 if (!argp1) {
21011 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
21012 }
21013 arg1 = reinterpret_cast< wxPrintData * >(argp1);
21014 {
21015 if (!wxPyCheckForApp()) SWIG_fail;
21016 PyThreadState* __tstate = wxPyBeginAllowThreads();
21017 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
21018 wxPyEndAllowThreads(__tstate);
21019 if (PyErr_Occurred()) SWIG_fail;
21020 }
21021 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
21022 return resultobj;
21023fail:
21024 return NULL;
21025}
21026
21027
21028SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21029 PyObject *resultobj = 0;
21030 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
21031 wxPrintData *result = 0 ;
21032 void *argp1 = 0 ;
21033 int res1 = 0 ;
21034 PyObject *swig_obj[1] ;
21035
21036 if (!args) SWIG_fail;
21037 swig_obj[0] = args;
21038 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
21039 if (!SWIG_IsOK(res1)) {
21040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
21041 }
21042 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
21043 {
21044 PyThreadState* __tstate = wxPyBeginAllowThreads();
e2950dbb 21045 {
0085ce49
RD
21046 wxPrintData &_result_ref = (arg1)->GetPrintData();
21047 result = (wxPrintData *) &_result_ref;
e2950dbb 21048 }
0085ce49
RD
21049 wxPyEndAllowThreads(__tstate);
21050 if (PyErr_Occurred()) SWIG_fail;
21051 }
21052 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
21053 return resultobj;
21054fail:
21055 return NULL;
21056}
21057
21058
21059SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21060 PyObject *resultobj = 0;
21061 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
21062 wxPrintData *arg2 = 0 ;
21063 void *argp1 = 0 ;
21064 int res1 = 0 ;
21065 void *argp2 = 0 ;
21066 int res2 = 0 ;
21067 PyObject * obj0 = 0 ;
21068 PyObject * obj1 = 0 ;
21069 char * kwnames[] = {
21070 (char *) "self",(char *) "data", NULL
21071 };
21072
21073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
21074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
21075 if (!SWIG_IsOK(res1)) {
21076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
21077 }
21078 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
21079 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
21080 if (!SWIG_IsOK(res2)) {
21081 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
21082 }
21083 if (!argp2) {
21084 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
21085 }
21086 arg2 = reinterpret_cast< wxPrintData * >(argp2);
21087 {
21088 PyThreadState* __tstate = wxPyBeginAllowThreads();
21089 (arg1)->SetPrintData((wxPrintData const &)*arg2);
21090 wxPyEndAllowThreads(__tstate);
21091 if (PyErr_Occurred()) SWIG_fail;
21092 }
21093 resultobj = SWIG_Py_Void();
21094 return resultobj;
21095fail:
21096 return NULL;
21097}
21098
21099
21100SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21101 PyObject *resultobj = 0;
21102 int arg1 ;
21103 int val1 ;
21104 int ecode1 = 0 ;
21105 PyObject * obj0 = 0 ;
21106 char * kwnames[] = {
21107 (char *) "ppi", NULL
21108 };
21109
21110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
21111 ecode1 = SWIG_AsVal_int(obj0, &val1);
21112 if (!SWIG_IsOK(ecode1)) {
21113 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
21114 }
21115 arg1 = static_cast< int >(val1);
21116 {
21117 PyThreadState* __tstate = wxPyBeginAllowThreads();
21118 wxPostScriptDC::SetResolution(arg1);
21119 wxPyEndAllowThreads(__tstate);
21120 if (PyErr_Occurred()) SWIG_fail;
21121 }
21122 resultobj = SWIG_Py_Void();
21123 return resultobj;
21124fail:
21125 return NULL;
21126}
21127
21128
21129SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21130 PyObject *resultobj = 0;
21131 int result;
21132
21133 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
21134 {
21135 PyThreadState* __tstate = wxPyBeginAllowThreads();
21136 result = (int)wxPostScriptDC::GetResolution();
21137 wxPyEndAllowThreads(__tstate);
21138 if (PyErr_Occurred()) SWIG_fail;
21139 }
21140 resultobj = SWIG_From_int(static_cast< int >(result));
21141 return resultobj;
21142fail:
21143 return NULL;
21144}
21145
21146
21147SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21148 PyObject *obj;
21149 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21150 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
21151 return SWIG_Py_Void();
21152}
21153
21154SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21155 return SWIG_Python_InitShadowInstance(args);
21156}
21157
21158SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21159 PyObject *resultobj = 0;
21160 wxString const &arg1_defvalue = wxPyEmptyString ;
21161 wxString *arg1 = (wxString *) &arg1_defvalue ;
21162 wxMetaFile *result = 0 ;
21163 bool temp1 = false ;
21164 PyObject * obj0 = 0 ;
21165 char * kwnames[] = {
21166 (char *) "filename", NULL
21167 };
21168
21169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
21170 if (obj0) {
093d3ff1 21171 {
0085ce49
RD
21172 arg1 = wxString_in_helper(obj0);
21173 if (arg1 == NULL) SWIG_fail;
21174 temp1 = true;
093d3ff1 21175 }
0085ce49
RD
21176 }
21177 {
21178 if (!wxPyCheckForApp()) SWIG_fail;
21179 PyThreadState* __tstate = wxPyBeginAllowThreads();
21180 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
21181 wxPyEndAllowThreads(__tstate);
21182 if (PyErr_Occurred()) SWIG_fail;
21183 }
21184 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
21185 {
21186 if (temp1)
21187 delete arg1;
21188 }
21189 return resultobj;
21190fail:
21191 {
21192 if (temp1)
21193 delete arg1;
21194 }
21195 return NULL;
21196}
21197
21198
21199SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21200 PyObject *obj;
21201 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21202 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
21203 return SWIG_Py_Void();
21204}
21205
21206SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21207 return SWIG_Python_InitShadowInstance(args);
21208}
21209
21210SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21211 PyObject *resultobj = 0;
21212 wxString const &arg1_defvalue = wxPyEmptyString ;
21213 wxString *arg1 = (wxString *) &arg1_defvalue ;
21214 int arg2 = (int) 0 ;
21215 int arg3 = (int) 0 ;
21216 wxString const &arg4_defvalue = wxPyEmptyString ;
21217 wxString *arg4 = (wxString *) &arg4_defvalue ;
21218 wxMetaFileDC *result = 0 ;
21219 bool temp1 = false ;
21220 int val2 ;
21221 int ecode2 = 0 ;
21222 int val3 ;
21223 int ecode3 = 0 ;
21224 bool temp4 = false ;
21225 PyObject * obj0 = 0 ;
21226 PyObject * obj1 = 0 ;
21227 PyObject * obj2 = 0 ;
21228 PyObject * obj3 = 0 ;
21229 char * kwnames[] = {
21230 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
21231 };
21232
21233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21234 if (obj0) {
093d3ff1 21235 {
0085ce49
RD
21236 arg1 = wxString_in_helper(obj0);
21237 if (arg1 == NULL) SWIG_fail;
21238 temp1 = true;
093d3ff1 21239 }
0085ce49
RD
21240 }
21241 if (obj1) {
21242 ecode2 = SWIG_AsVal_int(obj1, &val2);
21243 if (!SWIG_IsOK(ecode2)) {
21244 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
21245 }
21246 arg2 = static_cast< int >(val2);
21247 }
21248 if (obj2) {
21249 ecode3 = SWIG_AsVal_int(obj2, &val3);
21250 if (!SWIG_IsOK(ecode3)) {
21251 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
21252 }
21253 arg3 = static_cast< int >(val3);
21254 }
21255 if (obj3) {
093d3ff1 21256 {
0085ce49
RD
21257 arg4 = wxString_in_helper(obj3);
21258 if (arg4 == NULL) SWIG_fail;
21259 temp4 = true;
093d3ff1 21260 }
0085ce49
RD
21261 }
21262 {
21263 if (!wxPyCheckForApp()) SWIG_fail;
21264 PyThreadState* __tstate = wxPyBeginAllowThreads();
21265 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
21266 wxPyEndAllowThreads(__tstate);
21267 if (PyErr_Occurred()) SWIG_fail;
21268 }
21269 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
21270 {
21271 if (temp1)
21272 delete arg1;
21273 }
21274 {
21275 if (temp4)
21276 delete arg4;
21277 }
21278 return resultobj;
21279fail:
21280 {
21281 if (temp1)
21282 delete arg1;
21283 }
21284 {
21285 if (temp4)
21286 delete arg4;
21287 }
21288 return NULL;
21289}
21290
21291
21292SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21293 PyObject *obj;
21294 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21295 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
21296 return SWIG_Py_Void();
21297}
21298
21299SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21300 return SWIG_Python_InitShadowInstance(args);
21301}
21302
21303SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21304 PyObject *resultobj = 0;
21305 wxPrintData *arg1 = 0 ;
21306 wxPrinterDC *result = 0 ;
21307 void *argp1 = 0 ;
21308 int res1 = 0 ;
21309 PyObject * obj0 = 0 ;
21310 char * kwnames[] = {
21311 (char *) "printData", NULL
21312 };
21313
21314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
21315 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
21316 if (!SWIG_IsOK(res1)) {
21317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
21318 }
21319 if (!argp1) {
21320 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
21321 }
21322 arg1 = reinterpret_cast< wxPrintData * >(argp1);
21323 {
21324 if (!wxPyCheckForApp()) SWIG_fail;
21325 PyThreadState* __tstate = wxPyBeginAllowThreads();
21326 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
21327 wxPyEndAllowThreads(__tstate);
21328 if (PyErr_Occurred()) SWIG_fail;
21329 }
21330 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
21331 return resultobj;
21332fail:
21333 return NULL;
21334}
21335
21336
21337SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21338 PyObject *obj;
21339 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21340 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
21341 return SWIG_Py_Void();
21342}
21343
21344SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21345 return SWIG_Python_InitShadowInstance(args);
21346}
21347
21348SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21349 PyObject *resultobj = 0;
21350 int arg1 ;
21351 int arg2 ;
21352 int arg3 = (int) true ;
21353 int arg4 = (int) 1 ;
21354 wxImageList *result = 0 ;
21355 int val1 ;
21356 int ecode1 = 0 ;
21357 int val2 ;
21358 int ecode2 = 0 ;
21359 int val3 ;
21360 int ecode3 = 0 ;
21361 int val4 ;
21362 int ecode4 = 0 ;
21363 PyObject * obj0 = 0 ;
21364 PyObject * obj1 = 0 ;
21365 PyObject * obj2 = 0 ;
21366 PyObject * obj3 = 0 ;
21367 char * kwnames[] = {
21368 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
21369 };
21370
21371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21372 ecode1 = SWIG_AsVal_int(obj0, &val1);
21373 if (!SWIG_IsOK(ecode1)) {
21374 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
21375 }
21376 arg1 = static_cast< int >(val1);
21377 ecode2 = SWIG_AsVal_int(obj1, &val2);
21378 if (!SWIG_IsOK(ecode2)) {
21379 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
21380 }
21381 arg2 = static_cast< int >(val2);
21382 if (obj2) {
21383 ecode3 = SWIG_AsVal_int(obj2, &val3);
21384 if (!SWIG_IsOK(ecode3)) {
21385 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
21386 }
21387 arg3 = static_cast< int >(val3);
21388 }
21389 if (obj3) {
21390 ecode4 = SWIG_AsVal_int(obj3, &val4);
21391 if (!SWIG_IsOK(ecode4)) {
21392 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
21393 }
21394 arg4 = static_cast< int >(val4);
21395 }
21396 {
21397 if (!wxPyCheckForApp()) SWIG_fail;
21398 PyThreadState* __tstate = wxPyBeginAllowThreads();
21399 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
21400 wxPyEndAllowThreads(__tstate);
21401 if (PyErr_Occurred()) SWIG_fail;
21402 }
21403 {
21404 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
21405 }
21406 return resultobj;
21407fail:
21408 return NULL;
21409}
21410
21411
21412SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21413 PyObject *resultobj = 0;
21414 wxImageList *arg1 = (wxImageList *) 0 ;
21415 void *argp1 = 0 ;
21416 int res1 = 0 ;
21417 PyObject *swig_obj[1] ;
21418
21419 if (!args) SWIG_fail;
21420 swig_obj[0] = args;
21421 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
21422 if (!SWIG_IsOK(res1)) {
21423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
21424 }
21425 arg1 = reinterpret_cast< wxImageList * >(argp1);
21426 {
21427 PyThreadState* __tstate = wxPyBeginAllowThreads();
21428 delete arg1;
21429
21430 wxPyEndAllowThreads(__tstate);
21431 if (PyErr_Occurred()) SWIG_fail;
21432 }
21433 resultobj = SWIG_Py_Void();
21434 return resultobj;
21435fail:
21436 return NULL;
21437}
21438
21439
21440SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21441 PyObject *resultobj = 0;
21442 wxImageList *arg1 = (wxImageList *) 0 ;
21443 wxBitmap *arg2 = 0 ;
21444 wxBitmap const &arg3_defvalue = wxNullBitmap ;
21445 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
21446 int result;
21447 void *argp1 = 0 ;
21448 int res1 = 0 ;
21449 void *argp2 = 0 ;
21450 int res2 = 0 ;
21451 void *argp3 = 0 ;
21452 int res3 = 0 ;
21453 PyObject * obj0 = 0 ;
21454 PyObject * obj1 = 0 ;
21455 PyObject * obj2 = 0 ;
21456 char * kwnames[] = {
21457 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
21458 };
21459
21460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21462 if (!SWIG_IsOK(res1)) {
21463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
21464 }
21465 arg1 = reinterpret_cast< wxImageList * >(argp1);
21466 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
21467 if (!SWIG_IsOK(res2)) {
21468 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21469 }
21470 if (!argp2) {
21471 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21472 }
21473 arg2 = reinterpret_cast< wxBitmap * >(argp2);
21474 if (obj2) {
21475 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
21476 if (!SWIG_IsOK(res3)) {
21477 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
093d3ff1 21478 }
0085ce49
RD
21479 if (!argp3) {
21480 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
093d3ff1 21481 }
0085ce49
RD
21482 arg3 = reinterpret_cast< wxBitmap * >(argp3);
21483 }
21484 {
21485 PyThreadState* __tstate = wxPyBeginAllowThreads();
21486 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
21487 wxPyEndAllowThreads(__tstate);
21488 if (PyErr_Occurred()) SWIG_fail;
21489 }
21490 resultobj = SWIG_From_int(static_cast< int >(result));
21491 return resultobj;
21492fail:
21493 return NULL;
21494}
21495
21496
21497SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21498 PyObject *resultobj = 0;
21499 wxImageList *arg1 = (wxImageList *) 0 ;
21500 wxBitmap *arg2 = 0 ;
21501 wxColour *arg3 = 0 ;
21502 int result;
21503 void *argp1 = 0 ;
21504 int res1 = 0 ;
21505 void *argp2 = 0 ;
21506 int res2 = 0 ;
21507 wxColour temp3 ;
21508 PyObject * obj0 = 0 ;
21509 PyObject * obj1 = 0 ;
21510 PyObject * obj2 = 0 ;
21511 char * kwnames[] = {
21512 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
21513 };
21514
21515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21517 if (!SWIG_IsOK(res1)) {
21518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
21519 }
21520 arg1 = reinterpret_cast< wxImageList * >(argp1);
21521 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
21522 if (!SWIG_IsOK(res2)) {
21523 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21524 }
21525 if (!argp2) {
21526 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21527 }
21528 arg2 = reinterpret_cast< wxBitmap * >(argp2);
21529 {
21530 arg3 = &temp3;
21531 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
21532 }
21533 {
21534 PyThreadState* __tstate = wxPyBeginAllowThreads();
21535 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
21536 wxPyEndAllowThreads(__tstate);
21537 if (PyErr_Occurred()) SWIG_fail;
21538 }
21539 resultobj = SWIG_From_int(static_cast< int >(result));
21540 return resultobj;
21541fail:
21542 return NULL;
21543}
21544
21545
21546SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21547 PyObject *resultobj = 0;
21548 wxImageList *arg1 = (wxImageList *) 0 ;
21549 wxIcon *arg2 = 0 ;
21550 int result;
21551 void *argp1 = 0 ;
21552 int res1 = 0 ;
21553 void *argp2 = 0 ;
21554 int res2 = 0 ;
21555 PyObject * obj0 = 0 ;
21556 PyObject * obj1 = 0 ;
21557 char * kwnames[] = {
21558 (char *) "self",(char *) "icon", NULL
21559 };
21560
21561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
21562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21563 if (!SWIG_IsOK(res1)) {
21564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
21565 }
21566 arg1 = reinterpret_cast< wxImageList * >(argp1);
21567 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
21568 if (!SWIG_IsOK(res2)) {
21569 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
21570 }
21571 if (!argp2) {
21572 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
21573 }
21574 arg2 = reinterpret_cast< wxIcon * >(argp2);
21575 {
21576 PyThreadState* __tstate = wxPyBeginAllowThreads();
21577 result = (int)(arg1)->Add((wxIcon const &)*arg2);
21578 wxPyEndAllowThreads(__tstate);
21579 if (PyErr_Occurred()) SWIG_fail;
21580 }
21581 resultobj = SWIG_From_int(static_cast< int >(result));
21582 return resultobj;
21583fail:
21584 return NULL;
21585}
21586
21587
21588SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21589 PyObject *resultobj = 0;
21590 wxImageList *arg1 = (wxImageList *) 0 ;
21591 int arg2 ;
21592 SwigValueWrapper<wxBitmap > result;
21593 void *argp1 = 0 ;
21594 int res1 = 0 ;
21595 int val2 ;
21596 int ecode2 = 0 ;
21597 PyObject * obj0 = 0 ;
21598 PyObject * obj1 = 0 ;
21599 char * kwnames[] = {
21600 (char *) "self",(char *) "index", NULL
21601 };
21602
21603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
21604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21605 if (!SWIG_IsOK(res1)) {
21606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
21607 }
21608 arg1 = reinterpret_cast< wxImageList * >(argp1);
21609 ecode2 = SWIG_AsVal_int(obj1, &val2);
21610 if (!SWIG_IsOK(ecode2)) {
21611 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
21612 }
21613 arg2 = static_cast< int >(val2);
21614 {
21615 PyThreadState* __tstate = wxPyBeginAllowThreads();
21616 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
21617 wxPyEndAllowThreads(__tstate);
21618 if (PyErr_Occurred()) SWIG_fail;
21619 }
21620 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
21621 return resultobj;
21622fail:
21623 return NULL;
21624}
21625
21626
21627SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21628 PyObject *resultobj = 0;
21629 wxImageList *arg1 = (wxImageList *) 0 ;
21630 int arg2 ;
21631 wxIcon result;
21632 void *argp1 = 0 ;
21633 int res1 = 0 ;
21634 int val2 ;
21635 int ecode2 = 0 ;
21636 PyObject * obj0 = 0 ;
21637 PyObject * obj1 = 0 ;
21638 char * kwnames[] = {
21639 (char *) "self",(char *) "index", NULL
21640 };
21641
21642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
21643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21644 if (!SWIG_IsOK(res1)) {
21645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
21646 }
21647 arg1 = reinterpret_cast< wxImageList * >(argp1);
21648 ecode2 = SWIG_AsVal_int(obj1, &val2);
21649 if (!SWIG_IsOK(ecode2)) {
21650 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
21651 }
21652 arg2 = static_cast< int >(val2);
21653 {
21654 PyThreadState* __tstate = wxPyBeginAllowThreads();
21655 result = ((wxImageList const *)arg1)->GetIcon(arg2);
21656 wxPyEndAllowThreads(__tstate);
21657 if (PyErr_Occurred()) SWIG_fail;
21658 }
21659 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
21660 return resultobj;
21661fail:
21662 return NULL;
21663}
21664
21665
21666SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21667 PyObject *resultobj = 0;
21668 wxImageList *arg1 = (wxImageList *) 0 ;
21669 int arg2 ;
21670 wxBitmap *arg3 = 0 ;
01f6b6d3
RD
21671 wxBitmap const &arg4_defvalue = wxNullBitmap ;
21672 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
0085ce49
RD
21673 bool result;
21674 void *argp1 = 0 ;
21675 int res1 = 0 ;
21676 int val2 ;
21677 int ecode2 = 0 ;
21678 void *argp3 = 0 ;
21679 int res3 = 0 ;
01f6b6d3
RD
21680 void *argp4 = 0 ;
21681 int res4 = 0 ;
0085ce49
RD
21682 PyObject * obj0 = 0 ;
21683 PyObject * obj1 = 0 ;
21684 PyObject * obj2 = 0 ;
01f6b6d3 21685 PyObject * obj3 = 0 ;
0085ce49 21686 char * kwnames[] = {
01f6b6d3 21687 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
0085ce49
RD
21688 };
21689
01f6b6d3 21690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
0085ce49
RD
21691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21692 if (!SWIG_IsOK(res1)) {
21693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
21694 }
21695 arg1 = reinterpret_cast< wxImageList * >(argp1);
21696 ecode2 = SWIG_AsVal_int(obj1, &val2);
21697 if (!SWIG_IsOK(ecode2)) {
21698 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
21699 }
21700 arg2 = static_cast< int >(val2);
21701 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
21702 if (!SWIG_IsOK(res3)) {
21703 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
21704 }
21705 if (!argp3) {
21706 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
21707 }
21708 arg3 = reinterpret_cast< wxBitmap * >(argp3);
01f6b6d3
RD
21709 if (obj3) {
21710 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
21711 if (!SWIG_IsOK(res4)) {
21712 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
21713 }
21714 if (!argp4) {
21715 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
21716 }
21717 arg4 = reinterpret_cast< wxBitmap * >(argp4);
21718 }
0085ce49
RD
21719 {
21720 PyThreadState* __tstate = wxPyBeginAllowThreads();
01f6b6d3 21721 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
0085ce49
RD
21722 wxPyEndAllowThreads(__tstate);
21723 if (PyErr_Occurred()) SWIG_fail;
21724 }
21725 {
21726 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21727 }
21728 return resultobj;
21729fail:
21730 return NULL;
21731}
21732
21733
21734SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21735 PyObject *resultobj = 0;
21736 wxImageList *arg1 = (wxImageList *) 0 ;
21737 int arg2 ;
21738 wxDC *arg3 = 0 ;
21739 int arg4 ;
21740 int arg5 ;
21741 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
21742 bool arg7 = (bool) (bool)false ;
21743 bool result;
21744 void *argp1 = 0 ;
21745 int res1 = 0 ;
21746 int val2 ;
21747 int ecode2 = 0 ;
21748 void *argp3 = 0 ;
21749 int res3 = 0 ;
21750 int val4 ;
21751 int ecode4 = 0 ;
21752 int val5 ;
21753 int ecode5 = 0 ;
21754 int val6 ;
21755 int ecode6 = 0 ;
21756 bool val7 ;
21757 int ecode7 = 0 ;
21758 PyObject * obj0 = 0 ;
21759 PyObject * obj1 = 0 ;
21760 PyObject * obj2 = 0 ;
21761 PyObject * obj3 = 0 ;
21762 PyObject * obj4 = 0 ;
21763 PyObject * obj5 = 0 ;
21764 PyObject * obj6 = 0 ;
21765 char * kwnames[] = {
21766 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
21767 };
21768
21769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21771 if (!SWIG_IsOK(res1)) {
21772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
21773 }
21774 arg1 = reinterpret_cast< wxImageList * >(argp1);
21775 ecode2 = SWIG_AsVal_int(obj1, &val2);
21776 if (!SWIG_IsOK(ecode2)) {
21777 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
21778 }
21779 arg2 = static_cast< int >(val2);
21780 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
21781 if (!SWIG_IsOK(res3)) {
21782 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
21783 }
21784 if (!argp3) {
21785 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
21786 }
21787 arg3 = reinterpret_cast< wxDC * >(argp3);
21788 ecode4 = SWIG_AsVal_int(obj3, &val4);
21789 if (!SWIG_IsOK(ecode4)) {
21790 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
21791 }
21792 arg4 = static_cast< int >(val4);
21793 ecode5 = SWIG_AsVal_int(obj4, &val5);
21794 if (!SWIG_IsOK(ecode5)) {
21795 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
21796 }
21797 arg5 = static_cast< int >(val5);
21798 if (obj5) {
21799 ecode6 = SWIG_AsVal_int(obj5, &val6);
21800 if (!SWIG_IsOK(ecode6)) {
21801 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
21802 }
21803 arg6 = static_cast< int >(val6);
21804 }
21805 if (obj6) {
21806 ecode7 = SWIG_AsVal_bool(obj6, &val7);
21807 if (!SWIG_IsOK(ecode7)) {
21808 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
21809 }
21810 arg7 = static_cast< bool >(val7);
21811 }
21812 {
21813 PyThreadState* __tstate = wxPyBeginAllowThreads();
21814 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
21815 wxPyEndAllowThreads(__tstate);
21816 if (PyErr_Occurred()) SWIG_fail;
21817 }
21818 {
21819 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21820 }
21821 return resultobj;
21822fail:
21823 return NULL;
21824}
21825
21826
21827SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21828 PyObject *resultobj = 0;
21829 wxImageList *arg1 = (wxImageList *) 0 ;
21830 int result;
21831 void *argp1 = 0 ;
21832 int res1 = 0 ;
21833 PyObject *swig_obj[1] ;
21834
21835 if (!args) SWIG_fail;
21836 swig_obj[0] = args;
21837 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21838 if (!SWIG_IsOK(res1)) {
21839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
21840 }
21841 arg1 = reinterpret_cast< wxImageList * >(argp1);
21842 {
21843 PyThreadState* __tstate = wxPyBeginAllowThreads();
21844 result = (int)(arg1)->GetImageCount();
21845 wxPyEndAllowThreads(__tstate);
21846 if (PyErr_Occurred()) SWIG_fail;
21847 }
21848 resultobj = SWIG_From_int(static_cast< int >(result));
21849 return resultobj;
21850fail:
21851 return NULL;
21852}
21853
21854
21855SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21856 PyObject *resultobj = 0;
21857 wxImageList *arg1 = (wxImageList *) 0 ;
21858 int arg2 ;
21859 bool result;
21860 void *argp1 = 0 ;
21861 int res1 = 0 ;
21862 int val2 ;
21863 int ecode2 = 0 ;
21864 PyObject * obj0 = 0 ;
21865 PyObject * obj1 = 0 ;
21866 char * kwnames[] = {
21867 (char *) "self",(char *) "index", NULL
21868 };
21869
21870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
21871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21872 if (!SWIG_IsOK(res1)) {
21873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
21874 }
21875 arg1 = reinterpret_cast< wxImageList * >(argp1);
21876 ecode2 = SWIG_AsVal_int(obj1, &val2);
21877 if (!SWIG_IsOK(ecode2)) {
21878 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
21879 }
21880 arg2 = static_cast< int >(val2);
21881 {
21882 PyThreadState* __tstate = wxPyBeginAllowThreads();
21883 result = (bool)(arg1)->Remove(arg2);
21884 wxPyEndAllowThreads(__tstate);
21885 if (PyErr_Occurred()) SWIG_fail;
21886 }
21887 {
21888 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21889 }
21890 return resultobj;
21891fail:
21892 return NULL;
21893}
21894
21895
21896SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21897 PyObject *resultobj = 0;
21898 wxImageList *arg1 = (wxImageList *) 0 ;
21899 bool result;
21900 void *argp1 = 0 ;
21901 int res1 = 0 ;
21902 PyObject *swig_obj[1] ;
21903
21904 if (!args) SWIG_fail;
21905 swig_obj[0] = args;
21906 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21907 if (!SWIG_IsOK(res1)) {
21908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
21909 }
21910 arg1 = reinterpret_cast< wxImageList * >(argp1);
21911 {
21912 PyThreadState* __tstate = wxPyBeginAllowThreads();
21913 result = (bool)(arg1)->RemoveAll();
21914 wxPyEndAllowThreads(__tstate);
21915 if (PyErr_Occurred()) SWIG_fail;
21916 }
21917 {
21918 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21919 }
21920 return resultobj;
21921fail:
21922 return NULL;
21923}
21924
21925
21926SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21927 PyObject *resultobj = 0;
21928 wxImageList *arg1 = (wxImageList *) 0 ;
21929 int arg2 ;
21930 int *arg3 = 0 ;
21931 int *arg4 = 0 ;
21932 void *argp1 = 0 ;
21933 int res1 = 0 ;
21934 int val2 ;
21935 int ecode2 = 0 ;
21936 int temp3 ;
21937 int res3 = SWIG_TMPOBJ ;
21938 int temp4 ;
21939 int res4 = SWIG_TMPOBJ ;
21940 PyObject * obj0 = 0 ;
21941 PyObject * obj1 = 0 ;
21942 char * kwnames[] = {
21943 (char *) "self",(char *) "index", NULL
21944 };
21945
21946 arg3 = &temp3;
21947 arg4 = &temp4;
21948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
21949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21950 if (!SWIG_IsOK(res1)) {
21951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
21952 }
21953 arg1 = reinterpret_cast< wxImageList * >(argp1);
21954 ecode2 = SWIG_AsVal_int(obj1, &val2);
21955 if (!SWIG_IsOK(ecode2)) {
21956 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
21957 }
21958 arg2 = static_cast< int >(val2);
21959 {
21960 PyThreadState* __tstate = wxPyBeginAllowThreads();
21961 (arg1)->GetSize(arg2,*arg3,*arg4);
21962 wxPyEndAllowThreads(__tstate);
21963 if (PyErr_Occurred()) SWIG_fail;
21964 }
21965 resultobj = SWIG_Py_Void();
21966 if (SWIG_IsTmpObj(res3)) {
21967 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21968 } else {
21969 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21970 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21971 }
21972 if (SWIG_IsTmpObj(res4)) {
21973 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21974 } else {
21975 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21976 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21977 }
21978 return resultobj;
21979fail:
21980 return NULL;
21981}
21982
21983
21984SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21985 PyObject *obj;
21986 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21987 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
21988 return SWIG_Py_Void();
21989}
21990
21991SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21992 return SWIG_Python_InitShadowInstance(args);
21993}
21994
50efceee
RD
21995SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21996 PyObject *resultobj = 0;
21997 wxStockGDI *result = 0 ;
0085ce49 21998
50efceee
RD
21999 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
22000 {
22001 PyThreadState* __tstate = wxPyBeginAllowThreads();
22002 result = (wxStockGDI *)new wxStockGDI();
22003 wxPyEndAllowThreads(__tstate);
22004 if (PyErr_Occurred()) SWIG_fail;
22005 }
22006 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
22007 return resultobj;
22008fail:
22009 return NULL;
0085ce49
RD
22010}
22011
22012
50efceee
RD
22013SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22014 PyObject *resultobj = 0;
22015 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
22016 void *argp1 = 0 ;
22017 int res1 = 0 ;
22018 PyObject *swig_obj[1] ;
0085ce49 22019
50efceee
RD
22020 if (!args) SWIG_fail;
22021 swig_obj[0] = args;
22022 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
22023 if (!SWIG_IsOK(res1)) {
22024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
22025 }
22026 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
22027 {
22028 PyThreadState* __tstate = wxPyBeginAllowThreads();
22029 delete arg1;
22030
22031 wxPyEndAllowThreads(__tstate);
22032 if (PyErr_Occurred()) SWIG_fail;
22033 }
22034 resultobj = SWIG_Py_Void();
22035 return resultobj;
22036fail:
22037 return NULL;
0085ce49
RD
22038}
22039
22040
50efceee
RD
22041SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22042 PyObject *resultobj = 0;
0085ce49 22043
50efceee
RD
22044 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
22045 {
22046 PyThreadState* __tstate = wxPyBeginAllowThreads();
22047 wxStockGDI::DeleteAll();
22048 wxPyEndAllowThreads(__tstate);
22049 if (PyErr_Occurred()) SWIG_fail;
22050 }
22051 resultobj = SWIG_Py_Void();
22052 return resultobj;
22053fail:
22054 return NULL;
0085ce49
RD
22055}
22056
22057
50efceee
RD
22058SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22059 PyObject *resultobj = 0;
22060 wxStockGDI *result = 0 ;
0085ce49 22061
50efceee
RD
22062 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
22063 {
22064 PyThreadState* __tstate = wxPyBeginAllowThreads();
22065 {
22066 wxStockGDI &_result_ref = wxStockGDI::instance();
22067 result = (wxStockGDI *) &_result_ref;
22068 }
22069 wxPyEndAllowThreads(__tstate);
22070 if (PyErr_Occurred()) SWIG_fail;
22071 }
22072 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
22073 return resultobj;
22074fail:
22075 return NULL;
0085ce49
RD
22076}
22077
22078
50efceee
RD
22079SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22080 PyObject *resultobj = 0;
22081 wxStockGDI::Item arg1 ;
22082 wxBrush *result = 0 ;
22083 int val1 ;
22084 int ecode1 = 0 ;
22085 PyObject * obj0 = 0 ;
22086 char * kwnames[] = {
22087 (char *) "item", NULL
22088 };
22089
22090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
22091 ecode1 = SWIG_AsVal_int(obj0, &val1);
22092 if (!SWIG_IsOK(ecode1)) {
22093 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
22094 }
22095 arg1 = static_cast< wxStockGDI::Item >(val1);
22096 {
22097 PyThreadState* __tstate = wxPyBeginAllowThreads();
22098 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
22099 wxPyEndAllowThreads(__tstate);
22100 if (PyErr_Occurred()) SWIG_fail;
22101 }
22102 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
22103 return resultobj;
22104fail:
22105 return NULL;
0085ce49
RD
22106}
22107
22108
50efceee
RD
22109SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22110 PyObject *resultobj = 0;
22111 wxStockGDI::Item arg1 ;
22112 wxColour *result = 0 ;
22113 int val1 ;
22114 int ecode1 = 0 ;
22115 PyObject * obj0 = 0 ;
22116 char * kwnames[] = {
22117 (char *) "item", NULL
22118 };
0085ce49 22119
50efceee
RD
22120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
22121 ecode1 = SWIG_AsVal_int(obj0, &val1);
22122 if (!SWIG_IsOK(ecode1)) {
22123 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
22124 }
22125 arg1 = static_cast< wxStockGDI::Item >(val1);
22126 {
22127 PyThreadState* __tstate = wxPyBeginAllowThreads();
22128 result = (wxColour *)wxStockGDI::GetColour(arg1);
22129 wxPyEndAllowThreads(__tstate);
22130 if (PyErr_Occurred()) SWIG_fail;
22131 }
22132 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22133 return resultobj;
22134fail:
22135 return NULL;
0085ce49
RD
22136}
22137
22138
50efceee
RD
22139SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22140 PyObject *resultobj = 0;
22141 wxStockGDI::Item arg1 ;
22142 wxCursor *result = 0 ;
22143 int val1 ;
22144 int ecode1 = 0 ;
22145 PyObject * obj0 = 0 ;
22146 char * kwnames[] = {
22147 (char *) "item", NULL
22148 };
22149
22150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
22151 ecode1 = SWIG_AsVal_int(obj0, &val1);
22152 if (!SWIG_IsOK(ecode1)) {
22153 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
22154 }
22155 arg1 = static_cast< wxStockGDI::Item >(val1);
22156 {
22157 PyThreadState* __tstate = wxPyBeginAllowThreads();
22158 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
22159 wxPyEndAllowThreads(__tstate);
22160 if (PyErr_Occurred()) SWIG_fail;
22161 }
22162 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
22163 return resultobj;
22164fail:
22165 return NULL;
0085ce49
RD
22166}
22167
22168
50efceee
RD
22169SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22170 PyObject *resultobj = 0;
22171 wxStockGDI::Item arg1 ;
22172 wxPen *result = 0 ;
22173 int val1 ;
22174 int ecode1 = 0 ;
22175 PyObject * obj0 = 0 ;
22176 char * kwnames[] = {
22177 (char *) "item", NULL
22178 };
22179
22180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
22181 ecode1 = SWIG_AsVal_int(obj0, &val1);
22182 if (!SWIG_IsOK(ecode1)) {
22183 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
22184 }
22185 arg1 = static_cast< wxStockGDI::Item >(val1);
22186 {
22187 PyThreadState* __tstate = wxPyBeginAllowThreads();
22188 result = (wxPen *)wxStockGDI::GetPen(arg1);
22189 wxPyEndAllowThreads(__tstate);
22190 if (PyErr_Occurred()) SWIG_fail;
22191 }
22192 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
22193 return resultobj;
22194fail:
22195 return NULL;
0085ce49
RD
22196}
22197
22198
50efceee
RD
22199SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22200 PyObject *resultobj = 0;
22201 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
22202 wxStockGDI::Item arg2 ;
22203 wxFont *result = 0 ;
22204 void *argp1 = 0 ;
22205 int res1 = 0 ;
22206 int val2 ;
22207 int ecode2 = 0 ;
22208 PyObject * obj0 = 0 ;
22209 PyObject * obj1 = 0 ;
22210 char * kwnames[] = {
22211 (char *) "self",(char *) "item", NULL
22212 };
0085ce49 22213
50efceee
RD
22214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
22215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
22216 if (!SWIG_IsOK(res1)) {
22217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
22218 }
22219 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
22220 ecode2 = SWIG_AsVal_int(obj1, &val2);
22221 if (!SWIG_IsOK(ecode2)) {
22222 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
22223 }
22224 arg2 = static_cast< wxStockGDI::Item >(val2);
22225 {
22226 PyThreadState* __tstate = wxPyBeginAllowThreads();
22227 result = (wxFont *)(arg1)->GetFont(arg2);
22228 wxPyEndAllowThreads(__tstate);
22229 if (PyErr_Occurred()) SWIG_fail;
22230 }
22231 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
22232 return resultobj;
22233fail:
22234 return NULL;
0085ce49
RD
22235}
22236
22237
50efceee
RD
22238SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22239 PyObject *obj;
22240 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22241 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
22242 return SWIG_Py_Void();
0085ce49
RD
22243}
22244
50efceee
RD
22245SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22246 return SWIG_Python_InitShadowInstance(args);
0085ce49
RD
22247}
22248
0085ce49
RD
22249SWIGINTERN int NullBitmap_set(PyObject *) {
22250 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
22251 return 1;
22252}
22253
22254
22255SWIGINTERN PyObject *NullBitmap_get(void) {
22256 PyObject *pyobj = 0;
22257
22258 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
22259 return pyobj;
22260}
22261
22262
22263SWIGINTERN int NullIcon_set(PyObject *) {
22264 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
22265 return 1;
22266}
22267
22268
22269SWIGINTERN PyObject *NullIcon_get(void) {
22270 PyObject *pyobj = 0;
22271
22272 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
22273 return pyobj;
22274}
22275
22276
22277SWIGINTERN int NullCursor_set(PyObject *) {
22278 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
22279 return 1;
22280}
22281
22282
22283SWIGINTERN PyObject *NullCursor_get(void) {
22284 PyObject *pyobj = 0;
22285
22286 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
22287 return pyobj;
22288}
22289
22290
22291SWIGINTERN int NullPen_set(PyObject *) {
22292 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
22293 return 1;
22294}
22295
22296
22297SWIGINTERN PyObject *NullPen_get(void) {
22298 PyObject *pyobj = 0;
22299
22300 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
22301 return pyobj;
22302}
22303
22304
22305SWIGINTERN int NullBrush_set(PyObject *) {
22306 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
22307 return 1;
22308}
22309
22310
22311SWIGINTERN PyObject *NullBrush_get(void) {
22312 PyObject *pyobj = 0;
22313
22314 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
22315 return pyobj;
22316}
22317
22318
22319SWIGINTERN int NullPalette_set(PyObject *) {
22320 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
22321 return 1;
22322}
22323
22324
22325SWIGINTERN PyObject *NullPalette_get(void) {
22326 PyObject *pyobj = 0;
22327
22328 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
22329 return pyobj;
22330}
22331
22332
22333SWIGINTERN int NullFont_set(PyObject *) {
22334 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
22335 return 1;
22336}
22337
22338
22339SWIGINTERN PyObject *NullFont_get(void) {
22340 PyObject *pyobj = 0;
22341
22342 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
22343 return pyobj;
22344}
22345
22346
22347SWIGINTERN int NullColour_set(PyObject *) {
22348 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
22349 return 1;
22350}
22351
22352
22353SWIGINTERN PyObject *NullColour_get(void) {
22354 PyObject *pyobj = 0;
22355
22356 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
22357 return pyobj;
22358}
22359
22360
50efceee 22361SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 22362 PyObject *resultobj = 0;
50efceee
RD
22363 wxGDIObjListBase *result = 0 ;
22364
22365 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
22366 {
22367 PyThreadState* __tstate = wxPyBeginAllowThreads();
22368 result = (wxGDIObjListBase *)new wxGDIObjListBase();
22369 wxPyEndAllowThreads(__tstate);
22370 if (PyErr_Occurred()) SWIG_fail;
22371 }
22372 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
22373 return resultobj;
22374fail:
22375 return NULL;
22376}
22377
22378
22379SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22380 PyObject *resultobj = 0;
22381 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
0085ce49
RD
22382 void *argp1 = 0 ;
22383 int res1 = 0 ;
50efceee 22384 PyObject *swig_obj[1] ;
0085ce49 22385
50efceee
RD
22386 if (!args) SWIG_fail;
22387 swig_obj[0] = args;
22388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
0085ce49 22389 if (!SWIG_IsOK(res1)) {
50efceee 22390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
0085ce49 22391 }
50efceee 22392 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
0085ce49
RD
22393 {
22394 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee
RD
22395 delete arg1;
22396
0085ce49
RD
22397 wxPyEndAllowThreads(__tstate);
22398 if (PyErr_Occurred()) SWIG_fail;
22399 }
22400 resultobj = SWIG_Py_Void();
22401 return resultobj;
22402fail:
22403 return NULL;
22404}
22405
22406
50efceee
RD
22407SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22408 PyObject *obj;
22409 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22410 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
22411 return SWIG_Py_Void();
22412}
22413
22414SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22415 return SWIG_Python_InitShadowInstance(args);
22416}
22417
0085ce49
RD
22418SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22419 PyObject *resultobj = 0;
22420 wxPenList *arg1 = (wxPenList *) 0 ;
22421 wxColour *arg2 = 0 ;
22422 int arg3 ;
22423 int arg4 ;
22424 wxPen *result = 0 ;
22425 void *argp1 = 0 ;
22426 int res1 = 0 ;
22427 wxColour temp2 ;
22428 int val3 ;
22429 int ecode3 = 0 ;
22430 int val4 ;
22431 int ecode4 = 0 ;
22432 PyObject * obj0 = 0 ;
22433 PyObject * obj1 = 0 ;
22434 PyObject * obj2 = 0 ;
22435 PyObject * obj3 = 0 ;
22436 char * kwnames[] = {
22437 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
22438 };
22439
22440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
22442 if (!SWIG_IsOK(res1)) {
22443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
22444 }
22445 arg1 = reinterpret_cast< wxPenList * >(argp1);
22446 {
22447 arg2 = &temp2;
22448 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22449 }
22450 ecode3 = SWIG_AsVal_int(obj2, &val3);
22451 if (!SWIG_IsOK(ecode3)) {
22452 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
22453 }
22454 arg3 = static_cast< int >(val3);
22455 ecode4 = SWIG_AsVal_int(obj3, &val4);
22456 if (!SWIG_IsOK(ecode4)) {
22457 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
22458 }
22459 arg4 = static_cast< int >(val4);
22460 {
22461 PyThreadState* __tstate = wxPyBeginAllowThreads();
22462 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
22463 wxPyEndAllowThreads(__tstate);
22464 if (PyErr_Occurred()) SWIG_fail;
22465 }
22466 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
22467 return resultobj;
22468fail:
22469 return NULL;
22470}
22471
22472
50efceee 22473SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
22474 PyObject *resultobj = 0;
22475 wxPenList *arg1 = (wxPenList *) 0 ;
22476 wxPen *arg2 = (wxPen *) 0 ;
22477 void *argp1 = 0 ;
22478 int res1 = 0 ;
22479 void *argp2 = 0 ;
22480 int res2 = 0 ;
22481 PyObject * obj0 = 0 ;
22482 PyObject * obj1 = 0 ;
22483 char * kwnames[] = {
22484 (char *) "self",(char *) "pen", NULL
22485 };
22486
50efceee 22487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
0085ce49
RD
22488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
22489 if (!SWIG_IsOK(res1)) {
50efceee 22490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
0085ce49
RD
22491 }
22492 arg1 = reinterpret_cast< wxPenList * >(argp1);
22493 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
22494 if (!SWIG_IsOK(res2)) {
50efceee 22495 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
0085ce49
RD
22496 }
22497 arg2 = reinterpret_cast< wxPen * >(argp2);
22498 {
22499 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 22500 (arg1)->AddPen(arg2);
0085ce49
RD
22501 wxPyEndAllowThreads(__tstate);
22502 if (PyErr_Occurred()) SWIG_fail;
22503 }
22504 resultobj = SWIG_Py_Void();
22505 return resultobj;
22506fail:
22507 return NULL;
22508}
22509
22510
50efceee 22511SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
22512 PyObject *resultobj = 0;
22513 wxPenList *arg1 = (wxPenList *) 0 ;
50efceee 22514 wxPen *arg2 = (wxPen *) 0 ;
0085ce49
RD
22515 void *argp1 = 0 ;
22516 int res1 = 0 ;
50efceee
RD
22517 void *argp2 = 0 ;
22518 int res2 = 0 ;
22519 PyObject * obj0 = 0 ;
22520 PyObject * obj1 = 0 ;
22521 char * kwnames[] = {
22522 (char *) "self",(char *) "pen", NULL
22523 };
0085ce49 22524
50efceee
RD
22525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
22526 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
0085ce49 22527 if (!SWIG_IsOK(res1)) {
50efceee 22528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
0085ce49
RD
22529 }
22530 arg1 = reinterpret_cast< wxPenList * >(argp1);
50efceee
RD
22531 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
22532 if (!SWIG_IsOK(res2)) {
22533 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
22534 }
22535 arg2 = reinterpret_cast< wxPen * >(argp2);
0085ce49
RD
22536 {
22537 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 22538 (arg1)->RemovePen(arg2);
0085ce49
RD
22539 wxPyEndAllowThreads(__tstate);
22540 if (PyErr_Occurred()) SWIG_fail;
22541 }
50efceee 22542 resultobj = SWIG_Py_Void();
0085ce49
RD
22543 return resultobj;
22544fail:
22545 return NULL;
22546}
22547
22548
22549SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22550 PyObject *obj;
22551 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22552 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
22553 return SWIG_Py_Void();
22554}
22555
50efceee
RD
22556SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22557 PyObject *resultobj = 0;
22558 wxBrushList *arg1 = (wxBrushList *) 0 ;
22559 wxColour *arg2 = 0 ;
22560 int arg3 = (int) wxSOLID ;
22561 wxBrush *result = 0 ;
22562 void *argp1 = 0 ;
22563 int res1 = 0 ;
22564 wxColour temp2 ;
22565 int val3 ;
22566 int ecode3 = 0 ;
22567 PyObject * obj0 = 0 ;
22568 PyObject * obj1 = 0 ;
22569 PyObject * obj2 = 0 ;
22570 char * kwnames[] = {
22571 (char *) "self",(char *) "colour",(char *) "style", NULL
22572 };
22573
22574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
22576 if (!SWIG_IsOK(res1)) {
22577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
22578 }
22579 arg1 = reinterpret_cast< wxBrushList * >(argp1);
22580 {
22581 arg2 = &temp2;
22582 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22583 }
22584 if (obj2) {
22585 ecode3 = SWIG_AsVal_int(obj2, &val3);
22586 if (!SWIG_IsOK(ecode3)) {
22587 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
22588 }
22589 arg3 = static_cast< int >(val3);
22590 }
22591 {
22592 PyThreadState* __tstate = wxPyBeginAllowThreads();
22593 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
22594 wxPyEndAllowThreads(__tstate);
22595 if (PyErr_Occurred()) SWIG_fail;
22596 }
22597 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
22598 return resultobj;
22599fail:
22600 return NULL;
22601}
22602
22603
0085ce49
RD
22604SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22605 PyObject *resultobj = 0;
22606 wxBrushList *arg1 = (wxBrushList *) 0 ;
22607 wxBrush *arg2 = (wxBrush *) 0 ;
22608 void *argp1 = 0 ;
22609 int res1 = 0 ;
22610 void *argp2 = 0 ;
22611 int res2 = 0 ;
22612 PyObject * obj0 = 0 ;
22613 PyObject * obj1 = 0 ;
22614 char * kwnames[] = {
22615 (char *) "self",(char *) "brush", NULL
22616 };
22617
22618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
22619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
22620 if (!SWIG_IsOK(res1)) {
22621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
22622 }
22623 arg1 = reinterpret_cast< wxBrushList * >(argp1);
22624 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
22625 if (!SWIG_IsOK(res2)) {
22626 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
22627 }
22628 arg2 = reinterpret_cast< wxBrush * >(argp2);
22629 {
22630 PyThreadState* __tstate = wxPyBeginAllowThreads();
22631 (arg1)->AddBrush(arg2);
22632 wxPyEndAllowThreads(__tstate);
22633 if (PyErr_Occurred()) SWIG_fail;
22634 }
22635 resultobj = SWIG_Py_Void();
22636 return resultobj;
22637fail:
22638 return NULL;
22639}
22640
22641
50efceee 22642SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
22643 PyObject *resultobj = 0;
22644 wxBrushList *arg1 = (wxBrushList *) 0 ;
50efceee 22645 wxBrush *arg2 = (wxBrush *) 0 ;
0085ce49
RD
22646 void *argp1 = 0 ;
22647 int res1 = 0 ;
50efceee
RD
22648 void *argp2 = 0 ;
22649 int res2 = 0 ;
22650 PyObject * obj0 = 0 ;
22651 PyObject * obj1 = 0 ;
22652 char * kwnames[] = {
22653 (char *) "self",(char *) "brush", NULL
22654 };
22655
22656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
22657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
22658 if (!SWIG_IsOK(res1)) {
22659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
22660 }
22661 arg1 = reinterpret_cast< wxBrushList * >(argp1);
22662 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
22663 if (!SWIG_IsOK(res2)) {
22664 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
22665 }
22666 arg2 = reinterpret_cast< wxBrush * >(argp2);
22667 {
22668 PyThreadState* __tstate = wxPyBeginAllowThreads();
22669 (arg1)->RemoveBrush(arg2);
22670 wxPyEndAllowThreads(__tstate);
22671 if (PyErr_Occurred()) SWIG_fail;
22672 }
22673 resultobj = SWIG_Py_Void();
22674 return resultobj;
22675fail:
22676 return NULL;
22677}
22678
22679
22680SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22681 PyObject *obj;
22682 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22683 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
22684 return SWIG_Py_Void();
22685}
22686
22687SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22688 PyObject *resultobj = 0;
22689 wxFontList *arg1 = (wxFontList *) 0 ;
22690 int arg2 ;
22691 int arg3 ;
22692 int arg4 ;
22693 int arg5 ;
22694 bool arg6 = (bool) false ;
22695 wxString const &arg7_defvalue = wxPyEmptyString ;
22696 wxString *arg7 = (wxString *) &arg7_defvalue ;
22697 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
22698 wxFont *result = 0 ;
22699 void *argp1 = 0 ;
22700 int res1 = 0 ;
22701 int val2 ;
22702 int ecode2 = 0 ;
0085ce49
RD
22703 int val3 ;
22704 int ecode3 = 0 ;
50efceee
RD
22705 int val4 ;
22706 int ecode4 = 0 ;
22707 int val5 ;
22708 int ecode5 = 0 ;
22709 bool val6 ;
22710 int ecode6 = 0 ;
22711 bool temp7 = false ;
22712 int val8 ;
22713 int ecode8 = 0 ;
0085ce49
RD
22714 PyObject * obj0 = 0 ;
22715 PyObject * obj1 = 0 ;
22716 PyObject * obj2 = 0 ;
50efceee
RD
22717 PyObject * obj3 = 0 ;
22718 PyObject * obj4 = 0 ;
22719 PyObject * obj5 = 0 ;
22720 PyObject * obj6 = 0 ;
22721 PyObject * obj7 = 0 ;
0085ce49 22722 char * kwnames[] = {
50efceee 22723 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
0085ce49
RD
22724 };
22725
50efceee
RD
22726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
22727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
0085ce49 22728 if (!SWIG_IsOK(res1)) {
50efceee 22729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
0085ce49 22730 }
50efceee
RD
22731 arg1 = reinterpret_cast< wxFontList * >(argp1);
22732 ecode2 = SWIG_AsVal_int(obj1, &val2);
22733 if (!SWIG_IsOK(ecode2)) {
22734 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
22735 }
22736 arg2 = static_cast< int >(val2);
22737 ecode3 = SWIG_AsVal_int(obj2, &val3);
22738 if (!SWIG_IsOK(ecode3)) {
22739 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
22740 }
22741 arg3 = static_cast< int >(val3);
22742 ecode4 = SWIG_AsVal_int(obj3, &val4);
22743 if (!SWIG_IsOK(ecode4)) {
22744 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
22745 }
22746 arg4 = static_cast< int >(val4);
22747 ecode5 = SWIG_AsVal_int(obj4, &val5);
22748 if (!SWIG_IsOK(ecode5)) {
22749 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
22750 }
22751 arg5 = static_cast< int >(val5);
22752 if (obj5) {
22753 ecode6 = SWIG_AsVal_bool(obj5, &val6);
22754 if (!SWIG_IsOK(ecode6)) {
22755 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
22756 }
22757 arg6 = static_cast< bool >(val6);
0085ce49 22758 }
50efceee
RD
22759 if (obj6) {
22760 {
22761 arg7 = wxString_in_helper(obj6);
22762 if (arg7 == NULL) SWIG_fail;
22763 temp7 = true;
22764 }
22765 }
22766 if (obj7) {
22767 ecode8 = SWIG_AsVal_int(obj7, &val8);
22768 if (!SWIG_IsOK(ecode8)) {
22769 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
0085ce49 22770 }
50efceee 22771 arg8 = static_cast< wxFontEncoding >(val8);
0085ce49
RD
22772 }
22773 {
22774 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 22775 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
0085ce49
RD
22776 wxPyEndAllowThreads(__tstate);
22777 if (PyErr_Occurred()) SWIG_fail;
22778 }
50efceee
RD
22779 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
22780 {
22781 if (temp7)
22782 delete arg7;
22783 }
0085ce49
RD
22784 return resultobj;
22785fail:
50efceee
RD
22786 {
22787 if (temp7)
22788 delete arg7;
22789 }
0085ce49
RD
22790 return NULL;
22791}
22792
22793
50efceee 22794SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 22795 PyObject *resultobj = 0;
50efceee
RD
22796 wxFontList *arg1 = (wxFontList *) 0 ;
22797 wxFont *arg2 = (wxFont *) 0 ;
0085ce49
RD
22798 void *argp1 = 0 ;
22799 int res1 = 0 ;
22800 void *argp2 = 0 ;
22801 int res2 = 0 ;
22802 PyObject * obj0 = 0 ;
22803 PyObject * obj1 = 0 ;
22804 char * kwnames[] = {
50efceee 22805 (char *) "self",(char *) "font", NULL
0085ce49
RD
22806 };
22807
50efceee
RD
22808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
22809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
0085ce49 22810 if (!SWIG_IsOK(res1)) {
50efceee 22811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
0085ce49 22812 }
50efceee
RD
22813 arg1 = reinterpret_cast< wxFontList * >(argp1);
22814 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
0085ce49 22815 if (!SWIG_IsOK(res2)) {
50efceee 22816 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
0085ce49 22817 }
50efceee 22818 arg2 = reinterpret_cast< wxFont * >(argp2);
0085ce49
RD
22819 {
22820 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 22821 (arg1)->AddFont(arg2);
0085ce49
RD
22822 wxPyEndAllowThreads(__tstate);
22823 if (PyErr_Occurred()) SWIG_fail;
22824 }
22825 resultobj = SWIG_Py_Void();
22826 return resultobj;
22827fail:
22828 return NULL;
22829}
22830
22831
50efceee 22832SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 22833 PyObject *resultobj = 0;
50efceee
RD
22834 wxFontList *arg1 = (wxFontList *) 0 ;
22835 wxFont *arg2 = (wxFont *) 0 ;
0085ce49
RD
22836 void *argp1 = 0 ;
22837 int res1 = 0 ;
50efceee
RD
22838 void *argp2 = 0 ;
22839 int res2 = 0 ;
22840 PyObject * obj0 = 0 ;
22841 PyObject * obj1 = 0 ;
22842 char * kwnames[] = {
22843 (char *) "self",(char *) "font", NULL
22844 };
0085ce49 22845
50efceee
RD
22846 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
22847 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
0085ce49 22848 if (!SWIG_IsOK(res1)) {
50efceee 22849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
0085ce49 22850 }
50efceee
RD
22851 arg1 = reinterpret_cast< wxFontList * >(argp1);
22852 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
22853 if (!SWIG_IsOK(res2)) {
22854 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
22855 }
22856 arg2 = reinterpret_cast< wxFont * >(argp2);
0085ce49
RD
22857 {
22858 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 22859 (arg1)->RemoveFont(arg2);
0085ce49
RD
22860 wxPyEndAllowThreads(__tstate);
22861 if (PyErr_Occurred()) SWIG_fail;
22862 }
50efceee 22863 resultobj = SWIG_Py_Void();
0085ce49
RD
22864 return resultobj;
22865fail:
22866 return NULL;
22867}
22868
22869
50efceee 22870SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
22871 PyObject *obj;
22872 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
50efceee 22873 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
0085ce49
RD
22874 return SWIG_Py_Void();
22875}
22876
22877SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22878 PyObject *resultobj = 0;
22879 wxColourDatabase *result = 0 ;
22880
22881 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
22882 {
22883 if (!wxPyCheckForApp()) SWIG_fail;
22884 PyThreadState* __tstate = wxPyBeginAllowThreads();
22885 result = (wxColourDatabase *)new wxColourDatabase();
22886 wxPyEndAllowThreads(__tstate);
22887 if (PyErr_Occurred()) SWIG_fail;
22888 }
22889 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
22890 return resultobj;
22891fail:
22892 return NULL;
22893}
22894
22895
22896SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22897 PyObject *resultobj = 0;
22898 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
22899 void *argp1 = 0 ;
22900 int res1 = 0 ;
22901 PyObject *swig_obj[1] ;
22902
22903 if (!args) SWIG_fail;
22904 swig_obj[0] = args;
22905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
22906 if (!SWIG_IsOK(res1)) {
22907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
22908 }
22909 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
22910 {
22911 PyThreadState* __tstate = wxPyBeginAllowThreads();
22912 delete arg1;
22913
22914 wxPyEndAllowThreads(__tstate);
22915 if (PyErr_Occurred()) SWIG_fail;
22916 }
22917 resultobj = SWIG_Py_Void();
22918 return resultobj;
22919fail:
22920 return NULL;
22921}
22922
22923
22924SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22925 PyObject *resultobj = 0;
22926 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
22927 wxString *arg2 = 0 ;
22928 wxColour result;
22929 void *argp1 = 0 ;
22930 int res1 = 0 ;
22931 bool temp2 = false ;
22932 PyObject * obj0 = 0 ;
22933 PyObject * obj1 = 0 ;
22934 char * kwnames[] = {
22935 (char *) "self",(char *) "name", NULL
22936 };
22937
22938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
22939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
22940 if (!SWIG_IsOK(res1)) {
22941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
22942 }
22943 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
22944 {
22945 arg2 = wxString_in_helper(obj1);
22946 if (arg2 == NULL) SWIG_fail;
22947 temp2 = true;
22948 }
22949 {
22950 PyThreadState* __tstate = wxPyBeginAllowThreads();
22951 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
22952 wxPyEndAllowThreads(__tstate);
22953 if (PyErr_Occurred()) SWIG_fail;
22954 }
22955 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
22956 {
22957 if (temp2)
22958 delete arg2;
22959 }
22960 return resultobj;
22961fail:
22962 {
22963 if (temp2)
22964 delete arg2;
22965 }
22966 return NULL;
22967}
22968
22969
22970SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22971 PyObject *resultobj = 0;
22972 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
22973 wxColour *arg2 = 0 ;
22974 wxString result;
22975 void *argp1 = 0 ;
22976 int res1 = 0 ;
22977 wxColour temp2 ;
22978 PyObject * obj0 = 0 ;
22979 PyObject * obj1 = 0 ;
22980 char * kwnames[] = {
22981 (char *) "self",(char *) "colour", NULL
22982 };
22983
22984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
22985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
22986 if (!SWIG_IsOK(res1)) {
22987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
22988 }
22989 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
22990 {
22991 arg2 = &temp2;
22992 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22993 }
22994 {
22995 PyThreadState* __tstate = wxPyBeginAllowThreads();
22996 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
22997 wxPyEndAllowThreads(__tstate);
22998 if (PyErr_Occurred()) SWIG_fail;
22999 }
23000 {
23001#if wxUSE_UNICODE
23002 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23003#else
23004 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23005#endif
23006 }
23007 return resultobj;
23008fail:
23009 return NULL;
23010}
23011
23012
23013SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23014 PyObject *resultobj = 0;
23015 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23016 wxString *arg2 = 0 ;
23017 wxColour *arg3 = 0 ;
23018 void *argp1 = 0 ;
23019 int res1 = 0 ;
23020 bool temp2 = false ;
23021 wxColour temp3 ;
23022 PyObject * obj0 = 0 ;
23023 PyObject * obj1 = 0 ;
23024 PyObject * obj2 = 0 ;
23025 char * kwnames[] = {
23026 (char *) "self",(char *) "name",(char *) "colour", NULL
23027 };
23028
23029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23031 if (!SWIG_IsOK(res1)) {
23032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
23033 }
23034 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23035 {
23036 arg2 = wxString_in_helper(obj1);
23037 if (arg2 == NULL) SWIG_fail;
23038 temp2 = true;
23039 }
23040 {
23041 arg3 = &temp3;
23042 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23043 }
23044 {
23045 PyThreadState* __tstate = wxPyBeginAllowThreads();
23046 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
23047 wxPyEndAllowThreads(__tstate);
23048 if (PyErr_Occurred()) SWIG_fail;
23049 }
23050 resultobj = SWIG_Py_Void();
23051 {
23052 if (temp2)
23053 delete arg2;
23054 }
23055 return resultobj;
23056fail:
23057 {
23058 if (temp2)
23059 delete arg2;
23060 }
23061 return NULL;
23062}
23063
23064
23065SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23066 PyObject *resultobj = 0;
23067 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23068 wxString *arg2 = 0 ;
23069 int arg3 ;
23070 int arg4 ;
23071 int arg5 ;
23072 void *argp1 = 0 ;
23073 int res1 = 0 ;
23074 bool temp2 = false ;
23075 int val3 ;
23076 int ecode3 = 0 ;
23077 int val4 ;
23078 int ecode4 = 0 ;
50efceee
RD
23079 int val5 ;
23080 int ecode5 = 0 ;
0085ce49
RD
23081 PyObject * obj0 = 0 ;
23082 PyObject * obj1 = 0 ;
23083 PyObject * obj2 = 0 ;
23084 PyObject * obj3 = 0 ;
23085 PyObject * obj4 = 0 ;
0085ce49 23086 char * kwnames[] = {
50efceee 23087 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
0085ce49
RD
23088 };
23089
50efceee
RD
23090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
0085ce49 23092 if (!SWIG_IsOK(res1)) {
50efceee
RD
23093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
23094 }
23095 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23096 {
23097 arg2 = wxString_in_helper(obj1);
23098 if (arg2 == NULL) SWIG_fail;
23099 temp2 = true;
0085ce49 23100 }
0085ce49
RD
23101 ecode3 = SWIG_AsVal_int(obj2, &val3);
23102 if (!SWIG_IsOK(ecode3)) {
50efceee 23103 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
0085ce49
RD
23104 }
23105 arg3 = static_cast< int >(val3);
23106 ecode4 = SWIG_AsVal_int(obj3, &val4);
23107 if (!SWIG_IsOK(ecode4)) {
50efceee 23108 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
0085ce49
RD
23109 }
23110 arg4 = static_cast< int >(val4);
23111 ecode5 = SWIG_AsVal_int(obj4, &val5);
23112 if (!SWIG_IsOK(ecode5)) {
50efceee 23113 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
0085ce49
RD
23114 }
23115 arg5 = static_cast< int >(val5);
0085ce49
RD
23116 {
23117 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 23118 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
0085ce49
RD
23119 wxPyEndAllowThreads(__tstate);
23120 if (PyErr_Occurred()) SWIG_fail;
23121 }
50efceee 23122 resultobj = SWIG_Py_Void();
0085ce49 23123 {
50efceee
RD
23124 if (temp2)
23125 delete arg2;
0085ce49
RD
23126 }
23127 return resultobj;
23128fail:
23129 {
50efceee
RD
23130 if (temp2)
23131 delete arg2;
0085ce49
RD
23132 }
23133 return NULL;
23134}
23135
23136
50efceee
RD
23137SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23138 PyObject *obj;
23139 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23140 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
23141 return SWIG_Py_Void();
23142}
23143
23144SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23145 return SWIG_Python_InitShadowInstance(args);
23146}
23147
23148SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 23149 PyObject *resultobj = 0;
50efceee 23150 wxFontList *result = 0 ;
0085ce49 23151
50efceee 23152 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
0085ce49
RD
23153 {
23154 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 23155 result = (wxFontList *)_wxPyInitTheFontList();
0085ce49
RD
23156 wxPyEndAllowThreads(__tstate);
23157 if (PyErr_Occurred()) SWIG_fail;
23158 }
50efceee 23159 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
0085ce49
RD
23160 return resultobj;
23161fail:
23162 return NULL;
23163}
23164
23165
50efceee 23166SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 23167 PyObject *resultobj = 0;
50efceee 23168 wxPenList *result = 0 ;
0085ce49 23169
50efceee 23170 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
0085ce49
RD
23171 {
23172 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 23173 result = (wxPenList *)_wxPyInitThePenList();
0085ce49
RD
23174 wxPyEndAllowThreads(__tstate);
23175 if (PyErr_Occurred()) SWIG_fail;
23176 }
50efceee 23177 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
0085ce49
RD
23178 return resultobj;
23179fail:
23180 return NULL;
23181}
23182
23183
50efceee
RD
23184SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23185 PyObject *resultobj = 0;
23186 wxBrushList *result = 0 ;
0085ce49 23187
50efceee
RD
23188 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
23189 {
23190 PyThreadState* __tstate = wxPyBeginAllowThreads();
23191 result = (wxBrushList *)_wxPyInitTheBrushList();
23192 wxPyEndAllowThreads(__tstate);
23193 if (PyErr_Occurred()) SWIG_fail;
23194 }
23195 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
23196 return resultobj;
23197fail:
23198 return NULL;
0085ce49
RD
23199}
23200
23201
50efceee
RD
23202SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23203 PyObject *resultobj = 0;
23204 wxColourDatabase *result = 0 ;
0085ce49 23205
50efceee
RD
23206 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
23207 {
23208 PyThreadState* __tstate = wxPyBeginAllowThreads();
23209 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
23210 wxPyEndAllowThreads(__tstate);
23211 if (PyErr_Occurred()) SWIG_fail;
23212 }
23213 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23214 return resultobj;
23215fail:
23216 return NULL;
0085ce49
RD
23217}
23218
23219
23220SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23221 PyObject *resultobj = 0;
23222 wxEffects *result = 0 ;
23223
23224 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
23225 {
23226 PyThreadState* __tstate = wxPyBeginAllowThreads();
23227 result = (wxEffects *)new wxEffects();
23228 wxPyEndAllowThreads(__tstate);
23229 if (PyErr_Occurred()) SWIG_fail;
23230 }
23231 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
23232 return resultobj;
23233fail:
23234 return NULL;
23235}
23236
23237
23238SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23239 PyObject *resultobj = 0;
23240 wxEffects *arg1 = (wxEffects *) 0 ;
23241 wxColour result;
23242 void *argp1 = 0 ;
23243 int res1 = 0 ;
23244 PyObject *swig_obj[1] ;
23245
23246 if (!args) SWIG_fail;
23247 swig_obj[0] = args;
23248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23249 if (!SWIG_IsOK(res1)) {
23250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
23251 }
23252 arg1 = reinterpret_cast< wxEffects * >(argp1);
23253 {
23254 PyThreadState* __tstate = wxPyBeginAllowThreads();
23255 result = ((wxEffects const *)arg1)->GetHighlightColour();
23256 wxPyEndAllowThreads(__tstate);
23257 if (PyErr_Occurred()) SWIG_fail;
23258 }
23259 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23260 return resultobj;
23261fail:
23262 return NULL;
23263}
23264
23265
23266SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23267 PyObject *resultobj = 0;
23268 wxEffects *arg1 = (wxEffects *) 0 ;
23269 wxColour result;
23270 void *argp1 = 0 ;
23271 int res1 = 0 ;
23272 PyObject *swig_obj[1] ;
23273
23274 if (!args) SWIG_fail;
23275 swig_obj[0] = args;
23276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23277 if (!SWIG_IsOK(res1)) {
23278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
23279 }
23280 arg1 = reinterpret_cast< wxEffects * >(argp1);
23281 {
23282 PyThreadState* __tstate = wxPyBeginAllowThreads();
23283 result = ((wxEffects const *)arg1)->GetLightShadow();
23284 wxPyEndAllowThreads(__tstate);
23285 if (PyErr_Occurred()) SWIG_fail;
23286 }
23287 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23288 return resultobj;
23289fail:
23290 return NULL;
23291}
23292
23293
23294SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23295 PyObject *resultobj = 0;
23296 wxEffects *arg1 = (wxEffects *) 0 ;
23297 wxColour result;
23298 void *argp1 = 0 ;
23299 int res1 = 0 ;
23300 PyObject *swig_obj[1] ;
23301
23302 if (!args) SWIG_fail;
23303 swig_obj[0] = args;
23304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23305 if (!SWIG_IsOK(res1)) {
23306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
23307 }
23308 arg1 = reinterpret_cast< wxEffects * >(argp1);
23309 {
23310 PyThreadState* __tstate = wxPyBeginAllowThreads();
23311 result = ((wxEffects const *)arg1)->GetFaceColour();
23312 wxPyEndAllowThreads(__tstate);
23313 if (PyErr_Occurred()) SWIG_fail;
23314 }
23315 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23316 return resultobj;
23317fail:
23318 return NULL;
23319}
23320
23321
23322SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23323 PyObject *resultobj = 0;
23324 wxEffects *arg1 = (wxEffects *) 0 ;
23325 wxColour result;
23326 void *argp1 = 0 ;
23327 int res1 = 0 ;
23328 PyObject *swig_obj[1] ;
23329
23330 if (!args) SWIG_fail;
23331 swig_obj[0] = args;
23332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23333 if (!SWIG_IsOK(res1)) {
23334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
23335 }
23336 arg1 = reinterpret_cast< wxEffects * >(argp1);
23337 {
23338 PyThreadState* __tstate = wxPyBeginAllowThreads();
23339 result = ((wxEffects const *)arg1)->GetMediumShadow();
23340 wxPyEndAllowThreads(__tstate);
23341 if (PyErr_Occurred()) SWIG_fail;
23342 }
23343 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23344 return resultobj;
23345fail:
23346 return NULL;
23347}
23348
23349
23350SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23351 PyObject *resultobj = 0;
23352 wxEffects *arg1 = (wxEffects *) 0 ;
23353 wxColour result;
23354 void *argp1 = 0 ;
23355 int res1 = 0 ;
23356 PyObject *swig_obj[1] ;
23357
23358 if (!args) SWIG_fail;
23359 swig_obj[0] = args;
23360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23361 if (!SWIG_IsOK(res1)) {
23362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
23363 }
23364 arg1 = reinterpret_cast< wxEffects * >(argp1);
23365 {
23366 PyThreadState* __tstate = wxPyBeginAllowThreads();
23367 result = ((wxEffects const *)arg1)->GetDarkShadow();
23368 wxPyEndAllowThreads(__tstate);
23369 if (PyErr_Occurred()) SWIG_fail;
23370 }
23371 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23372 return resultobj;
23373fail:
23374 return NULL;
23375}
23376
23377
23378SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23379 PyObject *resultobj = 0;
23380 wxEffects *arg1 = (wxEffects *) 0 ;
23381 wxColour *arg2 = 0 ;
23382 void *argp1 = 0 ;
23383 int res1 = 0 ;
23384 wxColour temp2 ;
23385 PyObject * obj0 = 0 ;
23386 PyObject * obj1 = 0 ;
23387 char * kwnames[] = {
23388 (char *) "self",(char *) "c", NULL
23389 };
23390
23391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
23392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23393 if (!SWIG_IsOK(res1)) {
23394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
23395 }
23396 arg1 = reinterpret_cast< wxEffects * >(argp1);
23397 {
23398 arg2 = &temp2;
23399 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23400 }
23401 {
23402 PyThreadState* __tstate = wxPyBeginAllowThreads();
23403 (arg1)->SetHighlightColour((wxColour const &)*arg2);
23404 wxPyEndAllowThreads(__tstate);
23405 if (PyErr_Occurred()) SWIG_fail;
23406 }
23407 resultobj = SWIG_Py_Void();
23408 return resultobj;
23409fail:
23410 return NULL;
23411}
23412
23413
23414SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23415 PyObject *resultobj = 0;
23416 wxEffects *arg1 = (wxEffects *) 0 ;
23417 wxColour *arg2 = 0 ;
23418 void *argp1 = 0 ;
23419 int res1 = 0 ;
23420 wxColour temp2 ;
23421 PyObject * obj0 = 0 ;
23422 PyObject * obj1 = 0 ;
23423 char * kwnames[] = {
23424 (char *) "self",(char *) "c", NULL
23425 };
23426
23427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
23428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23429 if (!SWIG_IsOK(res1)) {
23430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
23431 }
23432 arg1 = reinterpret_cast< wxEffects * >(argp1);
23433 {
23434 arg2 = &temp2;
23435 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23436 }
23437 {
23438 PyThreadState* __tstate = wxPyBeginAllowThreads();
23439 (arg1)->SetLightShadow((wxColour const &)*arg2);
23440 wxPyEndAllowThreads(__tstate);
23441 if (PyErr_Occurred()) SWIG_fail;
23442 }
23443 resultobj = SWIG_Py_Void();
23444 return resultobj;
23445fail:
23446 return NULL;
23447}
23448
23449
23450SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23451 PyObject *resultobj = 0;
23452 wxEffects *arg1 = (wxEffects *) 0 ;
23453 wxColour *arg2 = 0 ;
23454 void *argp1 = 0 ;
23455 int res1 = 0 ;
23456 wxColour temp2 ;
23457 PyObject * obj0 = 0 ;
23458 PyObject * obj1 = 0 ;
23459 char * kwnames[] = {
23460 (char *) "self",(char *) "c", NULL
23461 };
23462
23463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
23464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23465 if (!SWIG_IsOK(res1)) {
23466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
23467 }
23468 arg1 = reinterpret_cast< wxEffects * >(argp1);
23469 {
23470 arg2 = &temp2;
23471 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23472 }
23473 {
23474 PyThreadState* __tstate = wxPyBeginAllowThreads();
23475 (arg1)->SetFaceColour((wxColour const &)*arg2);
23476 wxPyEndAllowThreads(__tstate);
23477 if (PyErr_Occurred()) SWIG_fail;
23478 }
23479 resultobj = SWIG_Py_Void();
23480 return resultobj;
23481fail:
23482 return NULL;
23483}
23484
23485
23486SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23487 PyObject *resultobj = 0;
23488 wxEffects *arg1 = (wxEffects *) 0 ;
23489 wxColour *arg2 = 0 ;
23490 void *argp1 = 0 ;
23491 int res1 = 0 ;
23492 wxColour temp2 ;
23493 PyObject * obj0 = 0 ;
23494 PyObject * obj1 = 0 ;
23495 char * kwnames[] = {
23496 (char *) "self",(char *) "c", NULL
23497 };
23498
23499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
23500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23501 if (!SWIG_IsOK(res1)) {
23502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
23503 }
23504 arg1 = reinterpret_cast< wxEffects * >(argp1);
23505 {
23506 arg2 = &temp2;
23507 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23508 }
23509 {
23510 PyThreadState* __tstate = wxPyBeginAllowThreads();
23511 (arg1)->SetMediumShadow((wxColour const &)*arg2);
23512 wxPyEndAllowThreads(__tstate);
23513 if (PyErr_Occurred()) SWIG_fail;
23514 }
23515 resultobj = SWIG_Py_Void();
23516 return resultobj;
23517fail:
23518 return NULL;
23519}
23520
23521
23522SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23523 PyObject *resultobj = 0;
23524 wxEffects *arg1 = (wxEffects *) 0 ;
23525 wxColour *arg2 = 0 ;
23526 void *argp1 = 0 ;
23527 int res1 = 0 ;
23528 wxColour temp2 ;
23529 PyObject * obj0 = 0 ;
23530 PyObject * obj1 = 0 ;
23531 char * kwnames[] = {
23532 (char *) "self",(char *) "c", NULL
23533 };
23534
23535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
23536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23537 if (!SWIG_IsOK(res1)) {
23538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
23539 }
23540 arg1 = reinterpret_cast< wxEffects * >(argp1);
23541 {
23542 arg2 = &temp2;
23543 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23544 }
23545 {
23546 PyThreadState* __tstate = wxPyBeginAllowThreads();
23547 (arg1)->SetDarkShadow((wxColour const &)*arg2);
23548 wxPyEndAllowThreads(__tstate);
23549 if (PyErr_Occurred()) SWIG_fail;
23550 }
23551 resultobj = SWIG_Py_Void();
23552 return resultobj;
23553fail:
23554 return NULL;
23555}
23556
23557
23558SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23559 PyObject *resultobj = 0;
23560 wxEffects *arg1 = (wxEffects *) 0 ;
23561 wxColour *arg2 = 0 ;
23562 wxColour *arg3 = 0 ;
23563 wxColour *arg4 = 0 ;
23564 wxColour *arg5 = 0 ;
23565 wxColour *arg6 = 0 ;
23566 void *argp1 = 0 ;
23567 int res1 = 0 ;
23568 wxColour temp2 ;
23569 wxColour temp3 ;
23570 wxColour temp4 ;
23571 wxColour temp5 ;
23572 wxColour temp6 ;
23573 PyObject * obj0 = 0 ;
23574 PyObject * obj1 = 0 ;
23575 PyObject * obj2 = 0 ;
23576 PyObject * obj3 = 0 ;
23577 PyObject * obj4 = 0 ;
23578 PyObject * obj5 = 0 ;
23579 char * kwnames[] = {
23580 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
23581 };
23582
23583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
23584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23585 if (!SWIG_IsOK(res1)) {
23586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
23587 }
23588 arg1 = reinterpret_cast< wxEffects * >(argp1);
23589 {
23590 arg2 = &temp2;
23591 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23592 }
23593 {
23594 arg3 = &temp3;
23595 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23596 }
23597 {
23598 arg4 = &temp4;
23599 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
23600 }
23601 {
23602 arg5 = &temp5;
23603 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
23604 }
23605 {
23606 arg6 = &temp6;
23607 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
23608 }
23609 {
23610 PyThreadState* __tstate = wxPyBeginAllowThreads();
23611 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
23612 wxPyEndAllowThreads(__tstate);
23613 if (PyErr_Occurred()) SWIG_fail;
23614 }
23615 resultobj = SWIG_Py_Void();
23616 return resultobj;
23617fail:
23618 return NULL;
23619}
23620
23621
23622SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23623 PyObject *resultobj = 0;
23624 wxEffects *arg1 = (wxEffects *) 0 ;
23625 wxDC *arg2 = 0 ;
23626 wxRect *arg3 = 0 ;
23627 int arg4 = (int) 1 ;
23628 void *argp1 = 0 ;
23629 int res1 = 0 ;
23630 void *argp2 = 0 ;
23631 int res2 = 0 ;
23632 wxRect temp3 ;
23633 int val4 ;
23634 int ecode4 = 0 ;
23635 PyObject * obj0 = 0 ;
23636 PyObject * obj1 = 0 ;
23637 PyObject * obj2 = 0 ;
23638 PyObject * obj3 = 0 ;
23639 char * kwnames[] = {
23640 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
23641 };
23642
23643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23645 if (!SWIG_IsOK(res1)) {
23646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
23647 }
23648 arg1 = reinterpret_cast< wxEffects * >(argp1);
23649 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
23650 if (!SWIG_IsOK(res2)) {
23651 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
23652 }
23653 if (!argp2) {
23654 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
23655 }
23656 arg2 = reinterpret_cast< wxDC * >(argp2);
23657 {
23658 arg3 = &temp3;
23659 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
23660 }
23661 if (obj3) {
23662 ecode4 = SWIG_AsVal_int(obj3, &val4);
23663 if (!SWIG_IsOK(ecode4)) {
23664 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
23665 }
23666 arg4 = static_cast< int >(val4);
23667 }
23668 {
23669 PyThreadState* __tstate = wxPyBeginAllowThreads();
23670 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
23671 wxPyEndAllowThreads(__tstate);
23672 if (PyErr_Occurred()) SWIG_fail;
23673 }
23674 resultobj = SWIG_Py_Void();
23675 return resultobj;
23676fail:
23677 return NULL;
23678}
23679
23680
23681SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23682 PyObject *resultobj = 0;
23683 wxEffects *arg1 = (wxEffects *) 0 ;
23684 wxRect *arg2 = 0 ;
23685 wxDC *arg3 = 0 ;
23686 wxBitmap *arg4 = 0 ;
23687 bool result;
23688 void *argp1 = 0 ;
23689 int res1 = 0 ;
23690 wxRect temp2 ;
23691 void *argp3 = 0 ;
23692 int res3 = 0 ;
23693 void *argp4 = 0 ;
23694 int res4 = 0 ;
23695 PyObject * obj0 = 0 ;
23696 PyObject * obj1 = 0 ;
23697 PyObject * obj2 = 0 ;
23698 PyObject * obj3 = 0 ;
23699 char * kwnames[] = {
23700 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
23701 };
23702
23703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23705 if (!SWIG_IsOK(res1)) {
23706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
23707 }
23708 arg1 = reinterpret_cast< wxEffects * >(argp1);
23709 {
23710 arg2 = &temp2;
23711 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
23712 }
23713 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
23714 if (!SWIG_IsOK(res3)) {
23715 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
23716 }
23717 if (!argp3) {
23718 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
23719 }
23720 arg3 = reinterpret_cast< wxDC * >(argp3);
23721 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
23722 if (!SWIG_IsOK(res4)) {
23723 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
23724 }
23725 if (!argp4) {
23726 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
23727 }
23728 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23729 {
23730 PyThreadState* __tstate = wxPyBeginAllowThreads();
23731 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
23732 wxPyEndAllowThreads(__tstate);
23733 if (PyErr_Occurred()) SWIG_fail;
23734 }
23735 {
23736 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23737 }
23738 return resultobj;
23739fail:
23740 return NULL;
23741}
23742
23743
23744SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23745 PyObject *obj;
23746 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23747 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
23748 return SWIG_Py_Void();
23749}
23750
23751SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23752 return SWIG_Python_InitShadowInstance(args);
23753}
23754
23755SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23756 PyObject *resultobj = 0;
23757 int arg1 ;
23758 int arg2 ;
23759 bool arg3 ;
23760 wxSplitterRenderParams *result = 0 ;
23761 int val1 ;
23762 int ecode1 = 0 ;
23763 int val2 ;
23764 int ecode2 = 0 ;
23765 bool val3 ;
23766 int ecode3 = 0 ;
23767 PyObject * obj0 = 0 ;
23768 PyObject * obj1 = 0 ;
23769 PyObject * obj2 = 0 ;
23770 char * kwnames[] = {
23771 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
23772 };
23773
23774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23775 ecode1 = SWIG_AsVal_int(obj0, &val1);
23776 if (!SWIG_IsOK(ecode1)) {
23777 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
23778 }
23779 arg1 = static_cast< int >(val1);
23780 ecode2 = SWIG_AsVal_int(obj1, &val2);
23781 if (!SWIG_IsOK(ecode2)) {
23782 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
23783 }
23784 arg2 = static_cast< int >(val2);
23785 ecode3 = SWIG_AsVal_bool(obj2, &val3);
23786 if (!SWIG_IsOK(ecode3)) {
23787 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
23788 }
23789 arg3 = static_cast< bool >(val3);
23790 {
23791 PyThreadState* __tstate = wxPyBeginAllowThreads();
23792 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
23793 wxPyEndAllowThreads(__tstate);
23794 if (PyErr_Occurred()) SWIG_fail;
23795 }
23796 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
23797 return resultobj;
23798fail:
23799 return NULL;
23800}
23801
23802
23803SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23804 PyObject *resultobj = 0;
23805 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
23806 void *argp1 = 0 ;
23807 int res1 = 0 ;
23808 PyObject *swig_obj[1] ;
23809
23810 if (!args) SWIG_fail;
23811 swig_obj[0] = args;
23812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
23813 if (!SWIG_IsOK(res1)) {
23814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
23815 }
23816 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
23817 {
23818 PyThreadState* __tstate = wxPyBeginAllowThreads();
23819 delete arg1;
23820
23821 wxPyEndAllowThreads(__tstate);
23822 if (PyErr_Occurred()) SWIG_fail;
23823 }
23824 resultobj = SWIG_Py_Void();
23825 return resultobj;
23826fail:
23827 return NULL;
23828}
23829
23830
23831SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23832 PyObject *resultobj = 0;
23833 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
23834 int result;
23835 void *argp1 = 0 ;
23836 int res1 = 0 ;
23837 PyObject *swig_obj[1] ;
23838
23839 if (!args) SWIG_fail;
23840 swig_obj[0] = args;
23841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
23842 if (!SWIG_IsOK(res1)) {
23843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
23844 }
23845 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
23846 result = (int)(int) ((arg1)->widthSash);
23847 resultobj = SWIG_From_int(static_cast< int >(result));
23848 return resultobj;
23849fail:
23850 return NULL;
23851}
23852
23853
23854SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23855 PyObject *resultobj = 0;
23856 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
23857 int result;
23858 void *argp1 = 0 ;
23859 int res1 = 0 ;
23860 PyObject *swig_obj[1] ;
23861
23862 if (!args) SWIG_fail;
23863 swig_obj[0] = args;
23864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
23865 if (!SWIG_IsOK(res1)) {
23866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
23867 }
23868 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
23869 result = (int)(int) ((arg1)->border);
23870 resultobj = SWIG_From_int(static_cast< int >(result));
23871 return resultobj;
23872fail:
23873 return NULL;
23874}
23875
23876
23877SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23878 PyObject *resultobj = 0;
23879 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
23880 bool result;
23881 void *argp1 = 0 ;
23882 int res1 = 0 ;
23883 PyObject *swig_obj[1] ;
23884
23885 if (!args) SWIG_fail;
23886 swig_obj[0] = args;
23887 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
23888 if (!SWIG_IsOK(res1)) {
23889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
23890 }
23891 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
23892 result = (bool)(bool) ((arg1)->isHotSensitive);
23893 resultobj = SWIG_From_bool(static_cast< bool >(result));
23894 return resultobj;
23895fail:
23896 return NULL;
23897}
23898
23899
23900SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23901 PyObject *obj;
23902 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23903 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
23904 return SWIG_Py_Void();
23905}
23906
23907SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23908 return SWIG_Python_InitShadowInstance(args);
23909}
23910
23911SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23912 PyObject *resultobj = 0;
23913 int arg1 ;
23914 int arg2 ;
23915 wxRendererVersion *result = 0 ;
23916 int val1 ;
23917 int ecode1 = 0 ;
23918 int val2 ;
23919 int ecode2 = 0 ;
23920 PyObject * obj0 = 0 ;
23921 PyObject * obj1 = 0 ;
23922 char * kwnames[] = {
23923 (char *) "version_",(char *) "age_", NULL
23924 };
23925
23926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
23927 ecode1 = SWIG_AsVal_int(obj0, &val1);
23928 if (!SWIG_IsOK(ecode1)) {
23929 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
23930 }
23931 arg1 = static_cast< int >(val1);
23932 ecode2 = SWIG_AsVal_int(obj1, &val2);
23933 if (!SWIG_IsOK(ecode2)) {
23934 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
23935 }
23936 arg2 = static_cast< int >(val2);
23937 {
23938 PyThreadState* __tstate = wxPyBeginAllowThreads();
23939 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
23940 wxPyEndAllowThreads(__tstate);
23941 if (PyErr_Occurred()) SWIG_fail;
23942 }
23943 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
23944 return resultobj;
23945fail:
23946 return NULL;
23947}
23948
23949
23950SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23951 PyObject *resultobj = 0;
23952 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
23953 void *argp1 = 0 ;
23954 int res1 = 0 ;
23955 PyObject *swig_obj[1] ;
23956
23957 if (!args) SWIG_fail;
23958 swig_obj[0] = args;
23959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
23960 if (!SWIG_IsOK(res1)) {
23961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
23962 }
23963 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
23964 {
23965 PyThreadState* __tstate = wxPyBeginAllowThreads();
23966 delete arg1;
23967
23968 wxPyEndAllowThreads(__tstate);
23969 if (PyErr_Occurred()) SWIG_fail;
23970 }
23971 resultobj = SWIG_Py_Void();
23972 return resultobj;
23973fail:
23974 return NULL;
23975}
23976
23977
23978SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23979 PyObject *resultobj = 0;
23980 wxRendererVersion *arg1 = 0 ;
23981 bool result;
23982 void *argp1 = 0 ;
23983 int res1 = 0 ;
23984 PyObject * obj0 = 0 ;
23985 char * kwnames[] = {
23986 (char *) "ver", NULL
23987 };
23988
23989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
23990 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
23991 if (!SWIG_IsOK(res1)) {
23992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
23993 }
23994 if (!argp1) {
23995 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
23996 }
23997 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
23998 {
23999 PyThreadState* __tstate = wxPyBeginAllowThreads();
24000 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
24001 wxPyEndAllowThreads(__tstate);
24002 if (PyErr_Occurred()) SWIG_fail;
24003 }
24004 {
24005 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24006 }
24007 return resultobj;
24008fail:
24009 return NULL;
24010}
24011
24012
24013SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24014 PyObject *resultobj = 0;
24015 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
24016 int result;
24017 void *argp1 = 0 ;
24018 int res1 = 0 ;
24019 PyObject *swig_obj[1] ;
24020
24021 if (!args) SWIG_fail;
24022 swig_obj[0] = args;
24023 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
24024 if (!SWIG_IsOK(res1)) {
24025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
24026 }
24027 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24028 result = (int)(int) ((arg1)->version);
24029 resultobj = SWIG_From_int(static_cast< int >(result));
24030 return resultobj;
24031fail:
24032 return NULL;
24033}
24034
24035
24036SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24037 PyObject *resultobj = 0;
24038 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
24039 int result;
24040 void *argp1 = 0 ;
24041 int res1 = 0 ;
24042 PyObject *swig_obj[1] ;
24043
24044 if (!args) SWIG_fail;
24045 swig_obj[0] = args;
24046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
24047 if (!SWIG_IsOK(res1)) {
24048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
24049 }
24050 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24051 result = (int)(int) ((arg1)->age);
24052 resultobj = SWIG_From_int(static_cast< int >(result));
24053 return resultobj;
24054fail:
24055 return NULL;
24056}
24057
24058
24059SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24060 PyObject *obj;
24061 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24062 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
24063 return SWIG_Py_Void();
24064}
24065
24066SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24067 return SWIG_Python_InitShadowInstance(args);
24068}
24069
24070SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24071 PyObject *resultobj = 0;
24072 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24073 wxWindow *arg2 = (wxWindow *) 0 ;
24074 wxDC *arg3 = 0 ;
24075 wxRect *arg4 = 0 ;
24076 int arg5 = (int) 0 ;
24077 void *argp1 = 0 ;
24078 int res1 = 0 ;
24079 void *argp2 = 0 ;
24080 int res2 = 0 ;
24081 void *argp3 = 0 ;
24082 int res3 = 0 ;
24083 wxRect temp4 ;
24084 int val5 ;
24085 int ecode5 = 0 ;
24086 PyObject * obj0 = 0 ;
24087 PyObject * obj1 = 0 ;
24088 PyObject * obj2 = 0 ;
24089 PyObject * obj3 = 0 ;
24090 PyObject * obj4 = 0 ;
24091 char * kwnames[] = {
24092 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24093 };
24094
24095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24097 if (!SWIG_IsOK(res1)) {
24098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24099 }
24100 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24101 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24102 if (!SWIG_IsOK(res2)) {
24103 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
24104 }
24105 arg2 = reinterpret_cast< wxWindow * >(argp2);
24106 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24107 if (!SWIG_IsOK(res3)) {
24108 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
24109 }
24110 if (!argp3) {
24111 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
24112 }
24113 arg3 = reinterpret_cast< wxDC * >(argp3);
24114 {
24115 arg4 = &temp4;
24116 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24117 }
24118 if (obj4) {
24119 ecode5 = SWIG_AsVal_int(obj4, &val5);
24120 if (!SWIG_IsOK(ecode5)) {
24121 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
24122 }
24123 arg5 = static_cast< int >(val5);
24124 }
24125 {
24126 PyThreadState* __tstate = wxPyBeginAllowThreads();
24127 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
24128 wxPyEndAllowThreads(__tstate);
24129 if (PyErr_Occurred()) SWIG_fail;
24130 }
24131 resultobj = SWIG_Py_Void();
24132 return resultobj;
24133fail:
24134 return NULL;
24135}
24136
24137
24138SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24139 PyObject *resultobj = 0;
24140 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24141 wxWindow *arg2 = (wxWindow *) 0 ;
24142 wxDC *arg3 = 0 ;
24143 wxRect *arg4 = 0 ;
24144 int arg5 = (int) 0 ;
24145 void *argp1 = 0 ;
24146 int res1 = 0 ;
24147 void *argp2 = 0 ;
24148 int res2 = 0 ;
24149 void *argp3 = 0 ;
24150 int res3 = 0 ;
24151 wxRect temp4 ;
24152 int val5 ;
24153 int ecode5 = 0 ;
24154 PyObject * obj0 = 0 ;
24155 PyObject * obj1 = 0 ;
24156 PyObject * obj2 = 0 ;
24157 PyObject * obj3 = 0 ;
24158 PyObject * obj4 = 0 ;
24159 char * kwnames[] = {
24160 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24161 };
24162
24163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24165 if (!SWIG_IsOK(res1)) {
24166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24167 }
24168 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24169 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24170 if (!SWIG_IsOK(res2)) {
24171 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
24172 }
24173 arg2 = reinterpret_cast< wxWindow * >(argp2);
24174 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24175 if (!SWIG_IsOK(res3)) {
24176 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
24177 }
24178 if (!argp3) {
24179 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
24180 }
24181 arg3 = reinterpret_cast< wxDC * >(argp3);
24182 {
24183 arg4 = &temp4;
24184 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24185 }
24186 if (obj4) {
24187 ecode5 = SWIG_AsVal_int(obj4, &val5);
24188 if (!SWIG_IsOK(ecode5)) {
24189 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
24190 }
24191 arg5 = static_cast< int >(val5);
24192 }
24193 {
24194 PyThreadState* __tstate = wxPyBeginAllowThreads();
24195 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
24196 wxPyEndAllowThreads(__tstate);
24197 if (PyErr_Occurred()) SWIG_fail;
24198 }
24199 resultobj = SWIG_Py_Void();
24200 return resultobj;
24201fail:
24202 return NULL;
24203}
24204
24205
24206SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24207 PyObject *resultobj = 0;
24208 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24209 wxWindow *arg2 = (wxWindow *) 0 ;
24210 wxDC *arg3 = 0 ;
24211 wxRect *arg4 = 0 ;
24212 int arg5 = (int) 0 ;
24213 void *argp1 = 0 ;
24214 int res1 = 0 ;
24215 void *argp2 = 0 ;
24216 int res2 = 0 ;
24217 void *argp3 = 0 ;
24218 int res3 = 0 ;
24219 wxRect temp4 ;
24220 int val5 ;
24221 int ecode5 = 0 ;
24222 PyObject * obj0 = 0 ;
24223 PyObject * obj1 = 0 ;
24224 PyObject * obj2 = 0 ;
24225 PyObject * obj3 = 0 ;
24226 PyObject * obj4 = 0 ;
24227 char * kwnames[] = {
24228 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24229 };
24230
24231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24233 if (!SWIG_IsOK(res1)) {
24234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24235 }
24236 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24237 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24238 if (!SWIG_IsOK(res2)) {
24239 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
24240 }
24241 arg2 = reinterpret_cast< wxWindow * >(argp2);
24242 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24243 if (!SWIG_IsOK(res3)) {
24244 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
24245 }
24246 if (!argp3) {
24247 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
24248 }
24249 arg3 = reinterpret_cast< wxDC * >(argp3);
24250 {
24251 arg4 = &temp4;
24252 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24253 }
24254 if (obj4) {
24255 ecode5 = SWIG_AsVal_int(obj4, &val5);
24256 if (!SWIG_IsOK(ecode5)) {
24257 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
24258 }
24259 arg5 = static_cast< int >(val5);
24260 }
24261 {
24262 PyThreadState* __tstate = wxPyBeginAllowThreads();
24263 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
24264 wxPyEndAllowThreads(__tstate);
24265 if (PyErr_Occurred()) SWIG_fail;
24266 }
24267 resultobj = SWIG_Py_Void();
24268 return resultobj;
24269fail:
24270 return NULL;
24271}
24272
24273
24274SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24275 PyObject *resultobj = 0;
24276 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24277 wxWindow *arg2 = (wxWindow *) 0 ;
24278 wxDC *arg3 = 0 ;
24279 wxSize *arg4 = 0 ;
24280 int arg5 ;
24281 wxOrientation arg6 ;
24282 int arg7 = (int) 0 ;
24283 void *argp1 = 0 ;
24284 int res1 = 0 ;
24285 void *argp2 = 0 ;
24286 int res2 = 0 ;
24287 void *argp3 = 0 ;
24288 int res3 = 0 ;
24289 wxSize temp4 ;
24290 int val5 ;
24291 int ecode5 = 0 ;
24292 int val6 ;
24293 int ecode6 = 0 ;
24294 int val7 ;
24295 int ecode7 = 0 ;
24296 PyObject * obj0 = 0 ;
24297 PyObject * obj1 = 0 ;
24298 PyObject * obj2 = 0 ;
24299 PyObject * obj3 = 0 ;
24300 PyObject * obj4 = 0 ;
24301 PyObject * obj5 = 0 ;
24302 PyObject * obj6 = 0 ;
24303 char * kwnames[] = {
24304 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
24305 };
24306
24307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
24308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24309 if (!SWIG_IsOK(res1)) {
24310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24311 }
24312 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24313 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24314 if (!SWIG_IsOK(res2)) {
24315 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
24316 }
24317 arg2 = reinterpret_cast< wxWindow * >(argp2);
24318 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24319 if (!SWIG_IsOK(res3)) {
24320 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
24321 }
24322 if (!argp3) {
24323 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
24324 }
24325 arg3 = reinterpret_cast< wxDC * >(argp3);
24326 {
24327 arg4 = &temp4;
24328 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
24329 }
24330 ecode5 = SWIG_AsVal_int(obj4, &val5);
24331 if (!SWIG_IsOK(ecode5)) {
24332 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
24333 }
24334 arg5 = static_cast< int >(val5);
24335 ecode6 = SWIG_AsVal_int(obj5, &val6);
24336 if (!SWIG_IsOK(ecode6)) {
24337 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
24338 }
24339 arg6 = static_cast< wxOrientation >(val6);
24340 if (obj6) {
24341 ecode7 = SWIG_AsVal_int(obj6, &val7);
24342 if (!SWIG_IsOK(ecode7)) {
24343 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
24344 }
24345 arg7 = static_cast< int >(val7);
24346 }
24347 {
24348 PyThreadState* __tstate = wxPyBeginAllowThreads();
24349 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
24350 wxPyEndAllowThreads(__tstate);
24351 if (PyErr_Occurred()) SWIG_fail;
24352 }
24353 resultobj = SWIG_Py_Void();
24354 return resultobj;
24355fail:
24356 return NULL;
24357}
24358
24359
24360SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24361 PyObject *resultobj = 0;
24362 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24363 wxWindow *arg2 = (wxWindow *) 0 ;
24364 wxDC *arg3 = 0 ;
24365 wxRect *arg4 = 0 ;
24366 int arg5 = (int) 0 ;
24367 void *argp1 = 0 ;
24368 int res1 = 0 ;
24369 void *argp2 = 0 ;
24370 int res2 = 0 ;
24371 void *argp3 = 0 ;
24372 int res3 = 0 ;
24373 wxRect temp4 ;
24374 int val5 ;
24375 int ecode5 = 0 ;
24376 PyObject * obj0 = 0 ;
24377 PyObject * obj1 = 0 ;
24378 PyObject * obj2 = 0 ;
24379 PyObject * obj3 = 0 ;
24380 PyObject * obj4 = 0 ;
24381 char * kwnames[] = {
24382 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24383 };
24384
24385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24387 if (!SWIG_IsOK(res1)) {
24388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24389 }
24390 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24391 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24392 if (!SWIG_IsOK(res2)) {
24393 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
24394 }
24395 arg2 = reinterpret_cast< wxWindow * >(argp2);
24396 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24397 if (!SWIG_IsOK(res3)) {
24398 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
24399 }
24400 if (!argp3) {
24401 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
24402 }
24403 arg3 = reinterpret_cast< wxDC * >(argp3);
24404 {
24405 arg4 = &temp4;
24406 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24407 }
24408 if (obj4) {
24409 ecode5 = SWIG_AsVal_int(obj4, &val5);
24410 if (!SWIG_IsOK(ecode5)) {
24411 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
24412 }
24413 arg5 = static_cast< int >(val5);
24414 }
24415 {
24416 PyThreadState* __tstate = wxPyBeginAllowThreads();
24417 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
24418 wxPyEndAllowThreads(__tstate);
24419 if (PyErr_Occurred()) SWIG_fail;
24420 }
24421 resultobj = SWIG_Py_Void();
24422 return resultobj;
24423fail:
24424 return NULL;
24425}
24426
24427
24428SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24429 PyObject *resultobj = 0;
24430 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24431 wxWindow *arg2 = (wxWindow *) 0 ;
24432 wxDC *arg3 = 0 ;
24433 wxRect *arg4 = 0 ;
24434 int arg5 = (int) 0 ;
24435 void *argp1 = 0 ;
24436 int res1 = 0 ;
24437 void *argp2 = 0 ;
24438 int res2 = 0 ;
24439 void *argp3 = 0 ;
24440 int res3 = 0 ;
24441 wxRect temp4 ;
24442 int val5 ;
24443 int ecode5 = 0 ;
24444 PyObject * obj0 = 0 ;
24445 PyObject * obj1 = 0 ;
24446 PyObject * obj2 = 0 ;
24447 PyObject * obj3 = 0 ;
24448 PyObject * obj4 = 0 ;
24449 char * kwnames[] = {
24450 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24451 };
24452
24453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24455 if (!SWIG_IsOK(res1)) {
24456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24457 }
24458 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24459 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24460 if (!SWIG_IsOK(res2)) {
24461 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
24462 }
24463 arg2 = reinterpret_cast< wxWindow * >(argp2);
24464 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24465 if (!SWIG_IsOK(res3)) {
24466 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
24467 }
24468 if (!argp3) {
24469 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
24470 }
24471 arg3 = reinterpret_cast< wxDC * >(argp3);
24472 {
24473 arg4 = &temp4;
24474 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24475 }
24476 if (obj4) {
24477 ecode5 = SWIG_AsVal_int(obj4, &val5);
24478 if (!SWIG_IsOK(ecode5)) {
24479 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
24480 }
24481 arg5 = static_cast< int >(val5);
24482 }
24483 {
24484 PyThreadState* __tstate = wxPyBeginAllowThreads();
24485 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
24486 wxPyEndAllowThreads(__tstate);
24487 if (PyErr_Occurred()) SWIG_fail;
24488 }
24489 resultobj = SWIG_Py_Void();
24490 return resultobj;
24491fail:
24492 return NULL;
24493}
24494
24495
01f6b6d3
RD
24496SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24497 PyObject *resultobj = 0;
24498 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24499 wxWindow *arg2 = (wxWindow *) 0 ;
24500 wxDC *arg3 = 0 ;
24501 wxRect *arg4 = 0 ;
24502 int arg5 = (int) 0 ;
24503 void *argp1 = 0 ;
24504 int res1 = 0 ;
24505 void *argp2 = 0 ;
24506 int res2 = 0 ;
24507 void *argp3 = 0 ;
24508 int res3 = 0 ;
24509 wxRect temp4 ;
24510 int val5 ;
24511 int ecode5 = 0 ;
24512 PyObject * obj0 = 0 ;
24513 PyObject * obj1 = 0 ;
24514 PyObject * obj2 = 0 ;
24515 PyObject * obj3 = 0 ;
24516 PyObject * obj4 = 0 ;
24517 char * kwnames[] = {
24518 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24519 };
24520
24521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24523 if (!SWIG_IsOK(res1)) {
24524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24525 }
24526 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24527 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24528 if (!SWIG_IsOK(res2)) {
24529 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
24530 }
24531 arg2 = reinterpret_cast< wxWindow * >(argp2);
24532 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24533 if (!SWIG_IsOK(res3)) {
24534 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
24535 }
24536 if (!argp3) {
24537 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
24538 }
24539 arg3 = reinterpret_cast< wxDC * >(argp3);
24540 {
24541 arg4 = &temp4;
24542 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24543 }
24544 if (obj4) {
24545 ecode5 = SWIG_AsVal_int(obj4, &val5);
24546 if (!SWIG_IsOK(ecode5)) {
24547 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
24548 }
24549 arg5 = static_cast< int >(val5);
24550 }
24551 {
24552 PyThreadState* __tstate = wxPyBeginAllowThreads();
24553 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
24554 wxPyEndAllowThreads(__tstate);
24555 if (PyErr_Occurred()) SWIG_fail;
24556 }
24557 resultobj = SWIG_Py_Void();
24558 return resultobj;
24559fail:
24560 return NULL;
24561}
24562
24563
24564SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24565 PyObject *resultobj = 0;
24566 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24567 wxWindow *arg2 = (wxWindow *) 0 ;
24568 wxDC *arg3 = 0 ;
24569 wxRect *arg4 = 0 ;
24570 int arg5 = (int) 0 ;
24571 void *argp1 = 0 ;
24572 int res1 = 0 ;
24573 void *argp2 = 0 ;
24574 int res2 = 0 ;
24575 void *argp3 = 0 ;
24576 int res3 = 0 ;
24577 wxRect temp4 ;
24578 int val5 ;
24579 int ecode5 = 0 ;
24580 PyObject * obj0 = 0 ;
24581 PyObject * obj1 = 0 ;
24582 PyObject * obj2 = 0 ;
24583 PyObject * obj3 = 0 ;
24584 PyObject * obj4 = 0 ;
24585 char * kwnames[] = {
24586 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24587 };
24588
24589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24591 if (!SWIG_IsOK(res1)) {
24592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24593 }
24594 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24595 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24596 if (!SWIG_IsOK(res2)) {
24597 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
24598 }
24599 arg2 = reinterpret_cast< wxWindow * >(argp2);
24600 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24601 if (!SWIG_IsOK(res3)) {
24602 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
24603 }
24604 if (!argp3) {
24605 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
24606 }
24607 arg3 = reinterpret_cast< wxDC * >(argp3);
24608 {
24609 arg4 = &temp4;
24610 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24611 }
24612 if (obj4) {
24613 ecode5 = SWIG_AsVal_int(obj4, &val5);
24614 if (!SWIG_IsOK(ecode5)) {
24615 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
24616 }
24617 arg5 = static_cast< int >(val5);
24618 }
24619 {
24620 PyThreadState* __tstate = wxPyBeginAllowThreads();
24621 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
24622 wxPyEndAllowThreads(__tstate);
24623 if (PyErr_Occurred()) SWIG_fail;
24624 }
24625 resultobj = SWIG_Py_Void();
24626 return resultobj;
24627fail:
24628 return NULL;
24629}
24630
24631
24632SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50efceee
RD
24633 PyObject *resultobj = 0;
24634 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24635 wxWindow *arg2 = (wxWindow *) 0 ;
24636 wxDC *arg3 = 0 ;
24637 wxRect *arg4 = 0 ;
24638 int arg5 = (int) 0 ;
24639 void *argp1 = 0 ;
24640 int res1 = 0 ;
24641 void *argp2 = 0 ;
24642 int res2 = 0 ;
24643 void *argp3 = 0 ;
24644 int res3 = 0 ;
24645 wxRect temp4 ;
24646 int val5 ;
24647 int ecode5 = 0 ;
24648 PyObject * obj0 = 0 ;
24649 PyObject * obj1 = 0 ;
24650 PyObject * obj2 = 0 ;
24651 PyObject * obj3 = 0 ;
24652 PyObject * obj4 = 0 ;
24653 char * kwnames[] = {
24654 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24655 };
24656
01f6b6d3 24657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
50efceee
RD
24658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24659 if (!SWIG_IsOK(res1)) {
01f6b6d3 24660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
50efceee
RD
24661 }
24662 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24663 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24664 if (!SWIG_IsOK(res2)) {
01f6b6d3 24665 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
50efceee
RD
24666 }
24667 arg2 = reinterpret_cast< wxWindow * >(argp2);
24668 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24669 if (!SWIG_IsOK(res3)) {
01f6b6d3 24670 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
50efceee
RD
24671 }
24672 if (!argp3) {
01f6b6d3 24673 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
50efceee
RD
24674 }
24675 arg3 = reinterpret_cast< wxDC * >(argp3);
24676 {
24677 arg4 = &temp4;
24678 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24679 }
24680 if (obj4) {
24681 ecode5 = SWIG_AsVal_int(obj4, &val5);
24682 if (!SWIG_IsOK(ecode5)) {
01f6b6d3 24683 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
50efceee
RD
24684 }
24685 arg5 = static_cast< int >(val5);
24686 }
24687 {
24688 PyThreadState* __tstate = wxPyBeginAllowThreads();
01f6b6d3 24689 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
50efceee
RD
24690 wxPyEndAllowThreads(__tstate);
24691 if (PyErr_Occurred()) SWIG_fail;
24692 }
24693 resultobj = SWIG_Py_Void();
24694 return resultobj;
24695fail:
24696 return NULL;
24697}
24698
24699
0085ce49
RD
24700SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24701 PyObject *resultobj = 0;
24702 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24703 wxWindow *arg2 = (wxWindow *) 0 ;
24704 SwigValueWrapper<wxSplitterRenderParams > result;
24705 void *argp1 = 0 ;
24706 int res1 = 0 ;
24707 void *argp2 = 0 ;
24708 int res2 = 0 ;
24709 PyObject * obj0 = 0 ;
24710 PyObject * obj1 = 0 ;
24711 char * kwnames[] = {
24712 (char *) "self",(char *) "win", NULL
24713 };
24714
24715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
24716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24717 if (!SWIG_IsOK(res1)) {
24718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24719 }
24720 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24721 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24722 if (!SWIG_IsOK(res2)) {
24723 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
24724 }
24725 arg2 = reinterpret_cast< wxWindow * >(argp2);
24726 {
24727 PyThreadState* __tstate = wxPyBeginAllowThreads();
24728 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
24729 wxPyEndAllowThreads(__tstate);
24730 if (PyErr_Occurred()) SWIG_fail;
24731 }
24732 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
24733 return resultobj;
24734fail:
24735 return NULL;
24736}
24737
24738
24739SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24740 PyObject *resultobj = 0;
24741 wxRendererNative *result = 0 ;
24742
24743 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
24744 {
704eda0c 24745 if (!wxPyCheckForApp()) SWIG_fail;
0085ce49 24746 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 24747 {
0085ce49
RD
24748 wxRendererNative &_result_ref = wxRendererNative::Get();
24749 result = (wxRendererNative *) &_result_ref;
093d3ff1 24750 }
0085ce49
RD
24751 wxPyEndAllowThreads(__tstate);
24752 if (PyErr_Occurred()) SWIG_fail;
24753 }
24754 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
24755 return resultobj;
24756fail:
24757 return NULL;
24758}
24759
24760
24761SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24762 PyObject *resultobj = 0;
24763 wxRendererNative *result = 0 ;
24764
24765 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
24766 {
704eda0c 24767 if (!wxPyCheckForApp()) SWIG_fail;
0085ce49 24768 PyThreadState* __tstate = wxPyBeginAllowThreads();
8d38bd1d 24769 {
0085ce49
RD
24770 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
24771 result = (wxRendererNative *) &_result_ref;
8d38bd1d 24772 }
0085ce49
RD
24773 wxPyEndAllowThreads(__tstate);
24774 if (PyErr_Occurred()) SWIG_fail;
24775 }
24776 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
24777 return resultobj;
24778fail:
24779 return NULL;
24780}
24781
24782
24783SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24784 PyObject *resultobj = 0;
24785 wxRendererNative *result = 0 ;
24786
24787 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
24788 {
704eda0c 24789 if (!wxPyCheckForApp()) SWIG_fail;
0085ce49 24790 PyThreadState* __tstate = wxPyBeginAllowThreads();
8d38bd1d 24791 {
0085ce49
RD
24792 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
24793 result = (wxRendererNative *) &_result_ref;
8d38bd1d 24794 }
0085ce49
RD
24795 wxPyEndAllowThreads(__tstate);
24796 if (PyErr_Occurred()) SWIG_fail;
24797 }
24798 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
24799 return resultobj;
24800fail:
24801 return NULL;
24802}
24803
24804
24805SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24806 PyObject *resultobj = 0;
24807 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24808 wxRendererNative *result = 0 ;
24809 void *argp1 = 0 ;
24810 int res1 = 0 ;
24811 PyObject * obj0 = 0 ;
24812 char * kwnames[] = {
24813 (char *) "renderer", NULL
24814 };
24815
24816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
24817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24818 if (!SWIG_IsOK(res1)) {
24819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24820 }
24821 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24822 {
704eda0c 24823 if (!wxPyCheckForApp()) SWIG_fail;
0085ce49
RD
24824 PyThreadState* __tstate = wxPyBeginAllowThreads();
24825 result = (wxRendererNative *)wxRendererNative::Set(arg1);
24826 wxPyEndAllowThreads(__tstate);
24827 if (PyErr_Occurred()) SWIG_fail;
24828 }
24829 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
24830 return resultobj;
24831fail:
24832 return NULL;
24833}
24834
24835
24836SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24837 PyObject *resultobj = 0;
24838 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24839 SwigValueWrapper<wxRendererVersion > result;
24840 void *argp1 = 0 ;
24841 int res1 = 0 ;
24842 PyObject *swig_obj[1] ;
24843
24844 if (!args) SWIG_fail;
24845 swig_obj[0] = args;
24846 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24847 if (!SWIG_IsOK(res1)) {
24848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
24849 }
24850 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24851 {
24852 PyThreadState* __tstate = wxPyBeginAllowThreads();
24853 result = ((wxRendererNative const *)arg1)->GetVersion();
24854 wxPyEndAllowThreads(__tstate);
24855 if (PyErr_Occurred()) SWIG_fail;
24856 }
24857 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
24858 return resultobj;
24859fail:
24860 return NULL;
24861}
24862
24863
24864SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24865 PyObject *obj;
24866 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24867 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
24868 return SWIG_Py_Void();
24869}
24870
24871static PyMethodDef SwigMethods[] = {
24872 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
24873 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
0085ce49
RD
24874 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
24875 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
24876 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
24877 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
24878 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
24879 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
24880 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
24881 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
24882 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
24883 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
24884 { (char *)"Colour_Ok", (PyCFunction)_wrap_Colour_Ok, METH_O, NULL},
24885 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
24886 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
24887 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
01f6b6d3 24888 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
24889 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
24890 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
24891 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
24892 { (char *)"Colour_Get", (PyCFunction)_wrap_Colour_Get, METH_O, NULL},
24893 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
24894 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
24895 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
24896 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
24897 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
24898 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
24899 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
24900 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
24901 { (char *)"Palette_Ok", (PyCFunction)_wrap_Palette_Ok, METH_O, NULL},
24902 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
24903 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
24904 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
24905 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
24906 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
24907 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
24908 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
24909 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
24910 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
24911 { (char *)"Pen_Ok", (PyCFunction)_wrap_Pen_Ok, METH_O, NULL},
24912 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
24913 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
24914 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
24915 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
24916 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
24917 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
24918 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
24919 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
24920 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
24921 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
24922 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
24923 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
24924 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
24925 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
24926 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
24927 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
24928 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
24929 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
24930 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
24931 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
24932 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
24933 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
24934 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
24935 { (char *)"Brush_Ok", (PyCFunction)_wrap_Brush_Ok, METH_O, NULL},
24936 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
24937 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
24938 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
24939 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
24940 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
24941 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
24942 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
24943 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
24944 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
24945 { (char *)"Bitmap_Ok", (PyCFunction)_wrap_Bitmap_Ok, METH_O, NULL},
24946 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
24947 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
24948 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
24949 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
24950 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
24951 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
24952 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
24953 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
24954 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
24955 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
24956 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
24957 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
24958 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
24959 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
24960 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
24961 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
24962 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
24963 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
24964 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
24965 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
24966 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
24967 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
24968 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
24969 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
24970 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
24971 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
24972 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
24973 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
24974 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
24975 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
24976 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
24977 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
24978 { (char *)"Icon_Ok", (PyCFunction)_wrap_Icon_Ok, METH_O, NULL},
24979 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
24980 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
24981 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
24982 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
24983 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
24984 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
24985 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
24986 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
24987 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
24988 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
24989 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
24990 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
24991 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
24992 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
24993 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
24994 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
24995 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
24996 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
24997 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
24998 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
24999 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25000 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
25001 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25002 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
25003 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25004 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
25005 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
25006 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
25007 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
25008 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
25009 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
25010 { (char *)"Cursor_Ok", (PyCFunction)_wrap_Cursor_Ok, METH_O, NULL},
25011 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
25012 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
25013 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
25014 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25015 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
25016 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
25017 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
25018 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
25019 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
25020 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
25021 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25022 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
25023 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
25024 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
25025 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
25026 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
25027 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25028 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
25029 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
25030 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
25031 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25032 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
25033 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
25034 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25035 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
25036 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
25037 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25038 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
25039 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25040 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
25041 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
25042 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
25043 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
25044 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
25045 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
25046 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
25047 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
25048 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
25049 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
25050 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
25051 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
25052 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
25053 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
25054 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
25055 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
25056 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
25057 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
25058 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
25059 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
25060 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
25061 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
25062 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
25063 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
25064 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
25065 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
25066 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
25067 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
25068 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
25069 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25070 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
25071 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
25072 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
25073 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
25074 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
25075 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25076 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
25077 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
25078 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
25079 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
25080 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
25081 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
25082 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
25083 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
25084 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
25085 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
25086 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
25087 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
25088 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
25089 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
25090 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
25091 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
25092 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
25093 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25094 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25095 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
25096 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
25097 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
25098 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
25099 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25100 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
25101 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25102 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
25103 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
25104 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
25105 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
25106 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
25107 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25108 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
25109 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
25110 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
25111 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
25112 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
25113 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
25114 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
25115 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
25116 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
25117 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
25118 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
25119 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
25120 { (char *)"Font_Ok", (PyCFunction)_wrap_Font_Ok, METH_O, NULL},
25121 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
25122 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
25123 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
25124 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
25125 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
25126 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
25127 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
25128 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
25129 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
25130 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
25131 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
25132 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
25133 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
25134 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
25135 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
25136 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25137 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
25138 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
25139 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
25140 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
25141 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
25142 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
25143 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25144 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
25145 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
25146 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
25147 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
25148 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
25149 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
25150 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
25151 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
25152 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
25153 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
25154 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
25155 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
25156 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
25157 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
25158 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
25159 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
25160 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
25161 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
25162 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
25163 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
25164 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
25165 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
25166 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
25167 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
25168 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
25169 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
25170 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
25171 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
25172 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
25173 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
25174 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
25175 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
25176 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
25177 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
25178 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
25179 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
25180 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
25181 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
25182 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
25183 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
25184 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
25185 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
25186 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
25187 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
25188 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
25189 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
25190 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
25191 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
25192 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
25193 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
25194 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
25195 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
25196 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
25197 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
25198 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
25199 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
25200 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
25201 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
25202 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
25203 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
25204 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
25205 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
25206 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
25207 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
25208 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
25209 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25210 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
25211 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
25212 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
25213 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25214 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
25215 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
25216 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
25217 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25218 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
25219 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25220 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
25221 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
25222 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
25223 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25224 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25225 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25226 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
25227 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
25228 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25229 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
25230 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
25231 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25232 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
25233 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
25234 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
25235 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
25236 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25237 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25238 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25239 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25240 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25241 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
25242 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25243 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
25244 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25245 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
25246 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25247 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25248 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25249 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25250 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
25251 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
25252 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
25253 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
25254 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
25255 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
25256 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
25257 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
25258 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
25259 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
25260 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
25261 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
25262 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
25263 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
25264 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
25265 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
25266 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
25267 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
25268 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
25269 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
25270 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
25271 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
25272 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
25273 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
25274 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
25275 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
25276 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
25277 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
25278 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
25279 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
25280 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
25281 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
25282 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
25283 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
25284 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
25285 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
25286 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
25287 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
25288 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
25289 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
25290 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
25291 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
25292 { (char *)"DC_Ok", (PyCFunction)_wrap_DC_Ok, METH_O, NULL},
25293 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
25294 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
25295 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
25296 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
25297 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
25298 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
25299 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
25300 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
25301 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
25302 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
25303 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
25304 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
25305 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
25306 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
25307 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
25308 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
25309 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
25310 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
25311 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25312 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
25313 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
25314 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
25315 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25316 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
25317 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
25318 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
25319 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
25320 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
25321 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25322 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
25323 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
25324 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
25325 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
25326 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
25327 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
25328 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
25329 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
25330 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
25331 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
25332 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
25333 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
25334 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
25335 { (char *)"new_MemoryDC", (PyCFunction)_wrap_new_MemoryDC, METH_NOARGS, NULL},
25336 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
25337 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
25338 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
25339 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
25340 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
25341 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
25342 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
25343 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
25344 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
25345 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
25346 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
25347 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
25348 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
25349 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
25350 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
25351 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
25352 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
25353 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
25354 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
25355 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
25356 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
25357 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
25358 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
25359 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
25360 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
25361 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
25362 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
25363 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
25364 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
25365 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
25366 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
25367 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
25368 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
25369 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
25370 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
25371 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
25372 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
25373 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
25374 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
25375 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
25376 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
25377 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
25378 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
25379 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
25380 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
25381 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
25382 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
25383 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
25384 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
25385 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
25386 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25387 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25388 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25389 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
25390 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
25391 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
25392 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
25393 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
25394 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
25395 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
25396 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
50efceee
RD
25397 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
25398 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
25399 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
25400 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
25401 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
25402 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
25403 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
25404 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
25405 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
25406 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
25407 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
25408 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
25409 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
25410 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
25411 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
0085ce49 25412 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
50efceee 25413 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49 25414 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49 25415 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
0085ce49 25416 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
50efceee 25417 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49 25418 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49 25419 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
50efceee
RD
25420 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
25421 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
25422 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
25423 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
0085ce49
RD
25424 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
25425 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
25426 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
25427 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
25428 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
25429 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
25430 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
25431 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
50efceee
RD
25432 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
25433 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
25434 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
25435 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
0085ce49
RD
25436 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
25437 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
25438 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
25439 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
25440 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
25441 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
25442 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
25443 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
25444 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
25445 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
25446 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
25447 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
25448 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
25449 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25450 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
25451 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
25452 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
25453 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
25454 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
25455 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
25456 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
25457 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
25458 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
25459 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
25460 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
25461 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
25462 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
25463 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
25464 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
25465 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
25466 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
25467 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
25468 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
25469 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
25470 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
25471 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
01f6b6d3
RD
25472 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
25473 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
25474 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
25475 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
25476 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
25477 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
25478 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
25479 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
25480 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
25481 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
25482 { NULL, NULL, 0, NULL }
25483};
25484
25485
25486/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
25487
25488static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
25489 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
25490}
25491static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
25492 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
25493}
25494static void *_p_wxIconTo_p_wxGDIObject(void *x) {
25495 return (void *)((wxGDIObject *) ((wxIcon *) x));
25496}
25497static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
25498 return (void *)((wxGDIObject *) ((wxPalette *) x));
25499}
25500static void *_p_wxPenTo_p_wxGDIObject(void *x) {
25501 return (void *)((wxGDIObject *) ((wxPen *) x));
25502}
25503static void *_p_wxFontTo_p_wxGDIObject(void *x) {
25504 return (void *)((wxGDIObject *) ((wxFont *) x));
25505}
25506static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
25507 return (void *)((wxGDIObject *) ((wxCursor *) x));
25508}
25509static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
25510 return (void *)((wxGDIObject *) ((wxBitmap *) x));
25511}
25512static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
25513 return (void *)((wxGDIObject *) ((wxRegion *) x));
25514}
25515static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
25516 return (void *)((wxGDIObject *) ((wxBrush *) x));
25517}
25518static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
25519 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
25520}
25521static void *_p_wxScreenDCTo_p_wxDC(void *x) {
25522 return (void *)((wxDC *) ((wxScreenDC *) x));
25523}
25524static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
25525 return (void *)((wxDC *) ((wxMirrorDC *) x));
25526}
25527static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
25528 return (void *)((wxDC *) ((wxMemoryDC *) x));
25529}
25530static void *_p_wxWindowDCTo_p_wxDC(void *x) {
25531 return (void *)((wxDC *) ((wxWindowDC *) x));
25532}
25533static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
25534 return (void *)((wxDC *) ((wxMetaFileDC *) x));
25535}
25536static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
25537 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
25538}
25539static void *_p_wxClientDCTo_p_wxDC(void *x) {
25540 return (void *)((wxDC *) ((wxClientDC *) x));
25541}
25542static void *_p_wxPaintDCTo_p_wxDC(void *x) {
25543 return (void *)((wxDC *) ((wxPaintDC *) x));
25544}
25545static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
25546 return (void *)((wxDC *) ((wxPostScriptDC *) x));
25547}
25548static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
25549 return (void *)((wxDC *) ((wxPrinterDC *) x));
25550}
50efceee
RD
25551static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
25552 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
25553}
25554static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
25555 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
25556}
25557static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
25558 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
25559}
0085ce49
RD
25560static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
25561 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
25562}
25563static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
25564 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
25565}
25566static void *_p_wxPenTo_p_wxObject(void *x) {
25567 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
25568}
25569static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
25570 return (void *)((wxObject *) ((wxRegionIterator *) x));
25571}
25572static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
25573 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
25574}
25575static void *_p_wxSizerItemTo_p_wxObject(void *x) {
25576 return (void *)((wxObject *) ((wxSizerItem *) x));
25577}
0085ce49
RD
25578static void *_p_wxScrollEventTo_p_wxObject(void *x) {
25579 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
25580}
25581static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
25582 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
25583}
25584static void *_p_wxIconTo_p_wxObject(void *x) {
25585 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
25586}
25587static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
25588 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
25589}
25590static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
25591 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
25592}
25593static void *_p_wxSizerTo_p_wxObject(void *x) {
25594 return (void *)((wxObject *) ((wxSizer *) x));
25595}
25596static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
25597 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
25598}
25599static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
25600 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
25601}
0085ce49
RD
25602static void *_p_wxEventTo_p_wxObject(void *x) {
25603 return (void *)((wxObject *) ((wxEvent *) x));
25604}
25605static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
25606 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
25607}
25608static void *_p_wxGridSizerTo_p_wxObject(void *x) {
25609 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
25610}
25611static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
25612 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
25613}
2131d850
RD
25614static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
25615 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
25616}
0085ce49
RD
25617static void *_p_wxPaintEventTo_p_wxObject(void *x) {
25618 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
25619}
25620static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
25621 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
25622}
25623static void *_p_wxDCTo_p_wxObject(void *x) {
25624 return (void *)((wxObject *) ((wxDC *) x));
25625}
25626static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
25627 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
25628}
25629static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
25630 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
25631}
25632static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
25633 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
25634}
25635static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
25636 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
25637}
25638static void *_p_wxControlTo_p_wxObject(void *x) {
25639 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
25640}
25641static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
25642 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
25643}
25644static void *_p_wxClientDCTo_p_wxObject(void *x) {
25645 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
25646}
25647static void *_p_wxFSFileTo_p_wxObject(void *x) {
25648 return (void *)((wxObject *) ((wxFSFile *) x));
25649}
25650static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
25651 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
25652}
25653static void *_p_wxRegionTo_p_wxObject(void *x) {
25654 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
25655}
25656static void *_p_wxPySizerTo_p_wxObject(void *x) {
25657 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
25658}
25659static void *_p_wxWindowDCTo_p_wxObject(void *x) {
25660 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
25661}
25662static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
25663 return (void *)((wxObject *) ((wxGDIObject *) x));
25664}
25665static void *_p_wxEffectsTo_p_wxObject(void *x) {
25666 return (void *)((wxObject *) ((wxEffects *) x));
25667}
25668static void *_p_wxPyEventTo_p_wxObject(void *x) {
25669 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
25670}
25671static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
25672 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
25673}
25674static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
25675 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
25676}
25677static void *_p_wxShowEventTo_p_wxObject(void *x) {
25678 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
25679}
25680static void *_p_wxMenuItemTo_p_wxObject(void *x) {
25681 return (void *)((wxObject *) ((wxMenuItem *) x));
25682}
25683static void *_p_wxDateEventTo_p_wxObject(void *x) {
25684 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
25685}
25686static void *_p_wxIdleEventTo_p_wxObject(void *x) {
25687 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
25688}
25689static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
25690 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
25691}
25692static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
25693 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
25694}
25695static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
25696 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
25697}
25698static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
25699 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
25700}
25701static void *_p_wxSizeEventTo_p_wxObject(void *x) {
25702 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
25703}
25704static void *_p_wxMoveEventTo_p_wxObject(void *x) {
25705 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
25706}
25707static void *_p_wxActivateEventTo_p_wxObject(void *x) {
25708 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
25709}
25710static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
25711 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
25712}
25713static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
25714 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
25715}
25716static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
25717 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
25718}
25719static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
25720 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
25721}
25722static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
25723 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
25724}
25725static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
25726 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
25727}
25728static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
25729 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
25730}
25731static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
25732 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
25733}
25734static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
25735 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
25736}
25737static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
25738 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
25739}
25740static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
25741 return (void *)((wxObject *) ((wxImageHandler *) x));
25742}
25743static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
25744 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
25745}
25746static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
25747 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
25748}
25749static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
25750 return (void *)((wxObject *) ((wxEvtHandler *) x));
25751}
25752static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
25753 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
25754}
25755static void *_p_wxPaintDCTo_p_wxObject(void *x) {
25756 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
25757}
25758static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
25759 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
25760}
25761static void *_p_wxScreenDCTo_p_wxObject(void *x) {
25762 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
25763}
25764static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
25765 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
25766}
25767static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
25768 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
25769}
25770static void *_p_wxImageTo_p_wxObject(void *x) {
25771 return (void *)((wxObject *) ((wxImage *) x));
25772}
25773static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
25774 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
25775}
25776static void *_p_wxPaletteTo_p_wxObject(void *x) {
25777 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
25778}
25779static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
25780 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
25781}
25782static void *_p_wxImageListTo_p_wxObject(void *x) {
25783 return (void *)((wxObject *) ((wxImageList *) x));
25784}
25785static void *_p_wxCursorTo_p_wxObject(void *x) {
25786 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
25787}
25788static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
25789 return (void *)((wxObject *) ((wxEncodingConverter *) x));
25790}
25791static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
25792 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
25793}
25794static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
25795 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
25796}
25797static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
25798 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
25799}
25800static void *_p_wxKeyEventTo_p_wxObject(void *x) {
25801 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
25802}
25803static void *_p_wxWindowTo_p_wxObject(void *x) {
25804 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
25805}
25806static void *_p_wxMenuTo_p_wxObject(void *x) {
25807 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
25808}
25809static void *_p_wxMenuBarTo_p_wxObject(void *x) {
25810 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
25811}
25812static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
25813 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
25814}
0085ce49
RD
25815static void *_p_wxFileSystemTo_p_wxObject(void *x) {
25816 return (void *)((wxObject *) ((wxFileSystem *) x));
25817}
25818static void *_p_wxBitmapTo_p_wxObject(void *x) {
25819 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
25820}
25821static void *_p_wxMaskTo_p_wxObject(void *x) {
25822 return (void *)((wxObject *) ((wxMask *) x));
25823}
25824static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
25825 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
25826}
25827static void *_p_wxMenuEventTo_p_wxObject(void *x) {
25828 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
25829}
25830static void *_p_wxPyAppTo_p_wxObject(void *x) {
25831 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
25832}
25833static void *_p_wxCloseEventTo_p_wxObject(void *x) {
25834 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
25835}
25836static void *_p_wxMouseEventTo_p_wxObject(void *x) {
25837 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
25838}
25839static void *_p_wxEraseEventTo_p_wxObject(void *x) {
25840 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
25841}
25842static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
25843 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
25844}
25845static void *_p_wxCommandEventTo_p_wxObject(void *x) {
25846 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
25847}
25848static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
25849 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
25850}
25851static void *_p_wxFocusEventTo_p_wxObject(void *x) {
25852 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
25853}
25854static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
25855 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
25856}
25857static void *_p_wxFontTo_p_wxObject(void *x) {
25858 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
25859}
25860static void *_p_wxBrushTo_p_wxObject(void *x) {
25861 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
25862}
25863static void *_p_wxMetaFileTo_p_wxObject(void *x) {
25864 return (void *)((wxObject *) ((wxMetaFile *) x));
25865}
25866static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
25867 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
25868}
25869static void *_p_wxColourTo_p_wxObject(void *x) {
25870 return (void *)((wxObject *) ((wxColour *) x));
25871}
0085ce49
RD
25872static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
25873 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
25874}
25875static void *_p_wxValidatorTo_p_wxObject(void *x) {
25876 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
25877}
25878static void *_p_wxControlTo_p_wxWindow(void *x) {
25879 return (void *)((wxWindow *) ((wxControl *) x));
25880}
25881static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
25882 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
25883}
25884static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
25885 return (void *)((wxWindow *) ((wxMenuBar *) x));
25886}
25887static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
25888static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
25889static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
25890static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
25891static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
25892static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
25893static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
25894static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
25895static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
25896static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
25897static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
25898static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
25899static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
25900static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
25901static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
25902static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
25903static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
25904static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
25905static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
25906static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
25907static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
25908static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
25909static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
25910static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
50efceee 25911static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
0085ce49
RD
25912static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
25913static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
25914static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
25915static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
25916static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
25917static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
25918static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
25919static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
25920static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
25921static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
25922static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
25923static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
25924static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
25925static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
25926static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
25927static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
25928static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
25929static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
25930static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
25931static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
25932static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
25933static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
25934static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
25935static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
25936static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
25937static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
25938static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
25939static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
25940static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
25941static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
25942static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
2131d850 25943static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
0085ce49
RD
25944static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
25945static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
25946static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
25947static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
25948static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
25949static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
25950static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
25951static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
25952static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
25953static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
25954static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
25955static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
25956static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
25957static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
25958static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
25959static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
25960static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
25961static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
25962static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
25963static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
25964static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
25965static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
25966static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
50efceee 25967static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
0085ce49
RD
25968static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
25969static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
25970static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
25971static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
25972static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
25973static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
25974static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
25975static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
25976static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
2131d850 25977static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
0085ce49
RD
25978static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
25979static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
25980static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
25981static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
25982static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
25983static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
25984static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
25985static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
25986static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
25987static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
25988static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
25989static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
25990static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
25991static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
25992static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
25993static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
25994static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
25995static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
25996static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
25997static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
25998static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
25999static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
26000static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
26001static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
26002static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
26003static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
26004static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
26005static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
26006static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
26007static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
26008static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
26009static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
26010static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
26011static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
26012static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
26013static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
26014static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
26015static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
26016static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
26017static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
26018static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
26019static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
26020static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
50efceee 26021static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
0085ce49
RD
26022static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
26023static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
26024static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
26025
26026static swig_type_info *swig_type_initial[] = {
26027 &_swigt__p_char,
26028 &_swigt__p_double,
26029 &_swigt__p_form_ops_t,
26030 &_swigt__p_int,
26031 &_swigt__p_unsigned_char,
26032 &_swigt__p_unsigned_int,
26033 &_swigt__p_unsigned_long,
26034 &_swigt__p_wxANIHandler,
26035 &_swigt__p_wxAcceleratorTable,
26036 &_swigt__p_wxActivateEvent,
26037 &_swigt__p_wxBMPHandler,
26038 &_swigt__p_wxBitmap,
26039 &_swigt__p_wxBoxSizer,
26040 &_swigt__p_wxBrush,
26041 &_swigt__p_wxBrushList,
26042 &_swigt__p_wxBufferedDC,
26043 &_swigt__p_wxBufferedPaintDC,
26044 &_swigt__p_wxCURHandler,
26045 &_swigt__p_wxChildFocusEvent,
26046 &_swigt__p_wxClientDC,
2131d850 26047 &_swigt__p_wxClipboardTextEvent,
0085ce49
RD
26048 &_swigt__p_wxCloseEvent,
26049 &_swigt__p_wxColour,
26050 &_swigt__p_wxColourDatabase,
26051 &_swigt__p_wxCommandEvent,
26052 &_swigt__p_wxContextMenuEvent,
26053 &_swigt__p_wxControl,
26054 &_swigt__p_wxControlWithItems,
26055 &_swigt__p_wxCursor,
26056 &_swigt__p_wxDC,
26057 &_swigt__p_wxDash,
26058 &_swigt__p_wxDateEvent,
26059 &_swigt__p_wxDisplayChangedEvent,
26060 &_swigt__p_wxDropFilesEvent,
26061 &_swigt__p_wxDuplexMode,
26062 &_swigt__p_wxEffects,
26063 &_swigt__p_wxEncodingConverter,
26064 &_swigt__p_wxEraseEvent,
26065 &_swigt__p_wxEvent,
26066 &_swigt__p_wxEvtHandler,
26067 &_swigt__p_wxFSFile,
26068 &_swigt__p_wxFileSystem,
26069 &_swigt__p_wxFlexGridSizer,
26070 &_swigt__p_wxFocusEvent,
26071 &_swigt__p_wxFont,
26072 &_swigt__p_wxFontList,
26073 &_swigt__p_wxFontMapper,
26074 &_swigt__p_wxGBSizerItem,
50efceee 26075 &_swigt__p_wxGDIObjListBase,
0085ce49
RD
26076 &_swigt__p_wxGDIObject,
26077 &_swigt__p_wxGIFHandler,
26078 &_swigt__p_wxGridBagSizer,
26079 &_swigt__p_wxGridSizer,
26080 &_swigt__p_wxICOHandler,
26081 &_swigt__p_wxIcon,
26082 &_swigt__p_wxIconBundle,
26083 &_swigt__p_wxIconLocation,
26084 &_swigt__p_wxIconizeEvent,
26085 &_swigt__p_wxIdleEvent,
26086 &_swigt__p_wxImage,
26087 &_swigt__p_wxImageHandler,
26088 &_swigt__p_wxImageList,
26089 &_swigt__p_wxIndividualLayoutConstraint,
26090 &_swigt__p_wxInitDialogEvent,
26091 &_swigt__p_wxJPEGHandler,
26092 &_swigt__p_wxKeyEvent,
26093 &_swigt__p_wxLanguageInfo,
26094 &_swigt__p_wxLayoutConstraints,
26095 &_swigt__p_wxLocale,
26096 &_swigt__p_wxMask,
26097 &_swigt__p_wxMaximizeEvent,
26098 &_swigt__p_wxMemoryDC,
26099 &_swigt__p_wxMenu,
26100 &_swigt__p_wxMenuBar,
26101 &_swigt__p_wxMenuEvent,
26102 &_swigt__p_wxMenuItem,
26103 &_swigt__p_wxMetaFile,
26104 &_swigt__p_wxMetaFileDC,
26105 &_swigt__p_wxMirrorDC,
26106 &_swigt__p_wxMouseCaptureChangedEvent,
26107 &_swigt__p_wxMouseEvent,
26108 &_swigt__p_wxMoveEvent,
26109 &_swigt__p_wxNativeEncodingInfo,
26110 &_swigt__p_wxNativeFontInfo,
26111 &_swigt__p_wxNavigationKeyEvent,
26112 &_swigt__p_wxNcPaintEvent,
26113 &_swigt__p_wxNotifyEvent,
26114 &_swigt__p_wxObject,
26115 &_swigt__p_wxPCXHandler,
26116 &_swigt__p_wxPNGHandler,
26117 &_swigt__p_wxPNMHandler,
26118 &_swigt__p_wxPaintDC,
26119 &_swigt__p_wxPaintEvent,
26120 &_swigt__p_wxPalette,
26121 &_swigt__p_wxPaletteChangedEvent,
26122 &_swigt__p_wxPaperSize,
26123 &_swigt__p_wxPen,
26124 &_swigt__p_wxPenList,
26125 &_swigt__p_wxPoint,
26126 &_swigt__p_wxPostScriptDC,
26127 &_swigt__p_wxPrintData,
26128 &_swigt__p_wxPrinterDC,
26129 &_swigt__p_wxPyApp,
26130 &_swigt__p_wxPyCommandEvent,
26131 &_swigt__p_wxPyEvent,
26132 &_swigt__p_wxPyFontEnumerator,
26133 &_swigt__p_wxPyImageHandler,
26134 &_swigt__p_wxPySizer,
26135 &_swigt__p_wxPyValidator,
26136 &_swigt__p_wxQueryNewPaletteEvent,
26137 &_swigt__p_wxRect,
26138 &_swigt__p_wxRegion,
26139 &_swigt__p_wxRegionIterator,
26140 &_swigt__p_wxRendererNative,
26141 &_swigt__p_wxRendererVersion,
26142 &_swigt__p_wxScreenDC,
26143 &_swigt__p_wxScrollEvent,
26144 &_swigt__p_wxScrollWinEvent,
26145 &_swigt__p_wxSetCursorEvent,
26146 &_swigt__p_wxShowEvent,
26147 &_swigt__p_wxSize,
26148 &_swigt__p_wxSizeEvent,
26149 &_swigt__p_wxSizer,
26150 &_swigt__p_wxSizerItem,
26151 &_swigt__p_wxSplitterRenderParams,
26152 &_swigt__p_wxStaticBoxSizer,
26153 &_swigt__p_wxStdDialogButtonSizer,
50efceee 26154 &_swigt__p_wxStockGDI,
0085ce49
RD
26155 &_swigt__p_wxString,
26156 &_swigt__p_wxSysColourChangedEvent,
26157 &_swigt__p_wxTIFFHandler,
26158 &_swigt__p_wxUpdateUIEvent,
26159 &_swigt__p_wxValidator,
26160 &_swigt__p_wxWindow,
26161 &_swigt__p_wxWindowCreateEvent,
26162 &_swigt__p_wxWindowDC,
26163 &_swigt__p_wxWindowDestroyEvent,
26164 &_swigt__p_wxXPMHandler,
26165};
26166
26167static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
26168static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
26169static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
26170static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
26171static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
26172static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
26173static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
26174static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
26175static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
26176static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
26177static 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}};
26178static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
26179static swig_cast_info _swigc__p_wxClientDC[] = { {&_swigt__p_wxClientDC, 0, 0, 0},{0, 0, 0, 0}};
26180static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
26181static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
26182static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
26183static 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}};
26184static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
26185static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
26186static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
26187static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
26188static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
26189static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
26190static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
50efceee 26191static swig_cast_info _swigc__p_wxGDIObjListBase[] = { {&_swigt__p_wxGDIObjListBase, 0, 0, 0}, {&_swigt__p_wxBrushList, _p_wxBrushListTo_p_wxGDIObjListBase, 0, 0}, {&_swigt__p_wxFontList, _p_wxFontListTo_p_wxGDIObjListBase, 0, 0}, {&_swigt__p_wxPenList, _p_wxPenListTo_p_wxGDIObjListBase, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
26192static 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}};
26193static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
26194static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
26195static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
26196static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
26197static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
26198static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
26199static swig_cast_info _swigc__p_wxLocale[] = { {&_swigt__p_wxLocale, 0, 0, 0},{0, 0, 0, 0}};
26200static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
26201static 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}};
26202static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
26203static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
26204static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
26205static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
26206static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
26207static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
26208static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
26209static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
26210static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
26211static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
26212static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
26213static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
26214static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
26215static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
26216static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
26217static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
26218static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
26219static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
26220static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
26221static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 26222static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
26223static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
26224static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
26225static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
26226static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
26227static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
26228static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
26229static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
26230static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
26231static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
26232static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
26233static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
26234static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
26235static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
26236static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
26237static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
26238static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
26239static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
26240static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
26241static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
26242static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
26243static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
26244static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
26245static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
50efceee 26246static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
26247static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
26248static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
26249static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
26250static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
26251static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
26252static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
26253static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
26254static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
26255static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 26256static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
26257static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
26258static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
26259static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
26260static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
26261static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
26262static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
26263static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
26264static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
26265static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
26266static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
26267static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
26268static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
26269static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
26270static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
26271static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
26272static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
26273static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
26274static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
26275static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
26276static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
26277static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
26278static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
26279static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
26280static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
26281static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
2131d850 26282static 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}};
0085ce49
RD
26283static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
26284static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
26285static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
26286static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
26287static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
26288static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
26289static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
26290static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
26291static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
26292static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
26293static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
26294static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
26295static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
26296static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
26297static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
26298static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
26299static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
26300static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
50efceee 26301static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
26302static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
26303static 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}};
26304static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0},{0, 0, 0, 0}};
26305
26306static swig_cast_info *swig_cast_initial[] = {
26307 _swigc__p_char,
26308 _swigc__p_double,
26309 _swigc__p_form_ops_t,
26310 _swigc__p_int,
26311 _swigc__p_unsigned_char,
26312 _swigc__p_unsigned_int,
26313 _swigc__p_unsigned_long,
26314 _swigc__p_wxANIHandler,
26315 _swigc__p_wxAcceleratorTable,
26316 _swigc__p_wxActivateEvent,
26317 _swigc__p_wxBMPHandler,
26318 _swigc__p_wxBitmap,
26319 _swigc__p_wxBoxSizer,
26320 _swigc__p_wxBrush,
26321 _swigc__p_wxBrushList,
26322 _swigc__p_wxBufferedDC,
26323 _swigc__p_wxBufferedPaintDC,
26324 _swigc__p_wxCURHandler,
26325 _swigc__p_wxChildFocusEvent,
26326 _swigc__p_wxClientDC,
2131d850 26327 _swigc__p_wxClipboardTextEvent,
0085ce49
RD
26328 _swigc__p_wxCloseEvent,
26329 _swigc__p_wxColour,
26330 _swigc__p_wxColourDatabase,
26331 _swigc__p_wxCommandEvent,
26332 _swigc__p_wxContextMenuEvent,
26333 _swigc__p_wxControl,
26334 _swigc__p_wxControlWithItems,
26335 _swigc__p_wxCursor,
26336 _swigc__p_wxDC,
26337 _swigc__p_wxDash,
26338 _swigc__p_wxDateEvent,
26339 _swigc__p_wxDisplayChangedEvent,
26340 _swigc__p_wxDropFilesEvent,
26341 _swigc__p_wxDuplexMode,
26342 _swigc__p_wxEffects,
26343 _swigc__p_wxEncodingConverter,
26344 _swigc__p_wxEraseEvent,
26345 _swigc__p_wxEvent,
26346 _swigc__p_wxEvtHandler,
26347 _swigc__p_wxFSFile,
26348 _swigc__p_wxFileSystem,
26349 _swigc__p_wxFlexGridSizer,
26350 _swigc__p_wxFocusEvent,
26351 _swigc__p_wxFont,
26352 _swigc__p_wxFontList,
26353 _swigc__p_wxFontMapper,
26354 _swigc__p_wxGBSizerItem,
50efceee 26355 _swigc__p_wxGDIObjListBase,
0085ce49
RD
26356 _swigc__p_wxGDIObject,
26357 _swigc__p_wxGIFHandler,
26358 _swigc__p_wxGridBagSizer,
26359 _swigc__p_wxGridSizer,
26360 _swigc__p_wxICOHandler,
26361 _swigc__p_wxIcon,
26362 _swigc__p_wxIconBundle,
26363 _swigc__p_wxIconLocation,
26364 _swigc__p_wxIconizeEvent,
26365 _swigc__p_wxIdleEvent,
26366 _swigc__p_wxImage,
26367 _swigc__p_wxImageHandler,
26368 _swigc__p_wxImageList,
26369 _swigc__p_wxIndividualLayoutConstraint,
26370 _swigc__p_wxInitDialogEvent,
26371 _swigc__p_wxJPEGHandler,
26372 _swigc__p_wxKeyEvent,
26373 _swigc__p_wxLanguageInfo,
26374 _swigc__p_wxLayoutConstraints,
26375 _swigc__p_wxLocale,
26376 _swigc__p_wxMask,
26377 _swigc__p_wxMaximizeEvent,
26378 _swigc__p_wxMemoryDC,
26379 _swigc__p_wxMenu,
26380 _swigc__p_wxMenuBar,
26381 _swigc__p_wxMenuEvent,
26382 _swigc__p_wxMenuItem,
26383 _swigc__p_wxMetaFile,
26384 _swigc__p_wxMetaFileDC,
26385 _swigc__p_wxMirrorDC,
26386 _swigc__p_wxMouseCaptureChangedEvent,
26387 _swigc__p_wxMouseEvent,
26388 _swigc__p_wxMoveEvent,
26389 _swigc__p_wxNativeEncodingInfo,
26390 _swigc__p_wxNativeFontInfo,
26391 _swigc__p_wxNavigationKeyEvent,
26392 _swigc__p_wxNcPaintEvent,
26393 _swigc__p_wxNotifyEvent,
26394 _swigc__p_wxObject,
26395 _swigc__p_wxPCXHandler,
26396 _swigc__p_wxPNGHandler,
26397 _swigc__p_wxPNMHandler,
26398 _swigc__p_wxPaintDC,
26399 _swigc__p_wxPaintEvent,
26400 _swigc__p_wxPalette,
26401 _swigc__p_wxPaletteChangedEvent,
26402 _swigc__p_wxPaperSize,
26403 _swigc__p_wxPen,
26404 _swigc__p_wxPenList,
26405 _swigc__p_wxPoint,
26406 _swigc__p_wxPostScriptDC,
26407 _swigc__p_wxPrintData,
26408 _swigc__p_wxPrinterDC,
26409 _swigc__p_wxPyApp,
26410 _swigc__p_wxPyCommandEvent,
26411 _swigc__p_wxPyEvent,
26412 _swigc__p_wxPyFontEnumerator,
26413 _swigc__p_wxPyImageHandler,
26414 _swigc__p_wxPySizer,
26415 _swigc__p_wxPyValidator,
26416 _swigc__p_wxQueryNewPaletteEvent,
26417 _swigc__p_wxRect,
26418 _swigc__p_wxRegion,
26419 _swigc__p_wxRegionIterator,
26420 _swigc__p_wxRendererNative,
26421 _swigc__p_wxRendererVersion,
26422 _swigc__p_wxScreenDC,
26423 _swigc__p_wxScrollEvent,
26424 _swigc__p_wxScrollWinEvent,
26425 _swigc__p_wxSetCursorEvent,
26426 _swigc__p_wxShowEvent,
26427 _swigc__p_wxSize,
26428 _swigc__p_wxSizeEvent,
26429 _swigc__p_wxSizer,
26430 _swigc__p_wxSizerItem,
26431 _swigc__p_wxSplitterRenderParams,
26432 _swigc__p_wxStaticBoxSizer,
26433 _swigc__p_wxStdDialogButtonSizer,
50efceee 26434 _swigc__p_wxStockGDI,
0085ce49
RD
26435 _swigc__p_wxString,
26436 _swigc__p_wxSysColourChangedEvent,
26437 _swigc__p_wxTIFFHandler,
26438 _swigc__p_wxUpdateUIEvent,
26439 _swigc__p_wxValidator,
26440 _swigc__p_wxWindow,
26441 _swigc__p_wxWindowCreateEvent,
26442 _swigc__p_wxWindowDC,
26443 _swigc__p_wxWindowDestroyEvent,
26444 _swigc__p_wxXPMHandler,
26445};
26446
26447
26448/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
26449
26450static swig_const_info swig_const_table[] = {
26451{0, 0, 0, 0.0, 0, 0}};
26452
26453#ifdef __cplusplus
26454}
26455#endif
26456/* -----------------------------------------------------------------------------
26457 * Type initialization:
26458 * This problem is tough by the requirement that no dynamic
26459 * memory is used. Also, since swig_type_info structures store pointers to
26460 * swig_cast_info structures and swig_cast_info structures store pointers back
26461 * to swig_type_info structures, we need some lookup code at initialization.
26462 * The idea is that swig generates all the structures that are needed.
26463 * The runtime then collects these partially filled structures.
26464 * The SWIG_InitializeModule function takes these initial arrays out of
26465 * swig_module, and does all the lookup, filling in the swig_module.types
26466 * array with the correct data and linking the correct swig_cast_info
26467 * structures together.
26468 *
26469 * The generated swig_type_info structures are assigned staticly to an initial
26470 * array. We just loop though that array, and handle each type individually.
26471 * First we lookup if this type has been already loaded, and if so, use the
26472 * loaded structure instead of the generated one. Then we have to fill in the
26473 * cast linked list. The cast data is initially stored in something like a
26474 * two-dimensional array. Each row corresponds to a type (there are the same
26475 * number of rows as there are in the swig_type_initial array). Each entry in
26476 * a column is one of the swig_cast_info structures for that type.
26477 * The cast_initial array is actually an array of arrays, because each row has
26478 * a variable number of columns. So to actually build the cast linked list,
26479 * we find the array of casts associated with the type, and loop through it
26480 * adding the casts to the list. The one last trick we need to do is making
26481 * sure the type pointer in the swig_cast_info struct is correct.
26482 *
26483 * First off, we lookup the cast->type name to see if it is already loaded.
26484 * There are three cases to handle:
26485 * 1) If the cast->type has already been loaded AND the type we are adding
26486 * casting info to has not been loaded (it is in this module), THEN we
26487 * replace the cast->type pointer with the type pointer that has already
26488 * been loaded.
26489 * 2) If BOTH types (the one we are adding casting info to, and the
26490 * cast->type) are loaded, THEN the cast info has already been loaded by
26491 * the previous module so we just ignore it.
26492 * 3) Finally, if cast->type has not already been loaded, then we add that
26493 * swig_cast_info to the linked list (because the cast->type) pointer will
26494 * be correct.
26495 * ----------------------------------------------------------------------------- */
26496
26497#ifdef __cplusplus
26498extern "C" {
26499#if 0
26500} /* c-mode */
26501#endif
26502#endif
26503
26504#if 0
26505#define SWIGRUNTIME_DEBUG
26506#endif
26507
26508SWIGRUNTIME void
26509SWIG_InitializeModule(void *clientdata) {
26510 size_t i;
26511 swig_module_info *module_head;
26512 static int init_run = 0;
26513
26514 clientdata = clientdata;
26515
26516 if (init_run) return;
26517 init_run = 1;
26518
26519 /* Initialize the swig_module */
26520 swig_module.type_initial = swig_type_initial;
26521 swig_module.cast_initial = swig_cast_initial;
26522
26523 /* Try and load any already created modules */
26524 module_head = SWIG_GetModule(clientdata);
26525 if (module_head) {
26526 swig_module.next = module_head->next;
26527 module_head->next = &swig_module;
26528 } else {
26529 /* This is the first module loaded */
26530 swig_module.next = &swig_module;
26531 SWIG_SetModule(clientdata, &swig_module);
26532 }
26533
26534 /* Now work on filling in swig_module.types */
26535#ifdef SWIGRUNTIME_DEBUG
26536 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
26537#endif
26538 for (i = 0; i < swig_module.size; ++i) {
26539 swig_type_info *type = 0;
26540 swig_type_info *ret;
26541 swig_cast_info *cast;
26542
26543#ifdef SWIGRUNTIME_DEBUG
26544 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
26545#endif
26546
26547 /* if there is another module already loaded */
26548 if (swig_module.next != &swig_module) {
26549 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
8d38bd1d 26550 }
0085ce49
RD
26551 if (type) {
26552 /* Overwrite clientdata field */
26553#ifdef SWIGRUNTIME_DEBUG
26554 printf("SWIG_InitializeModule: found type %s\n", type->name);
26555#endif
26556 if (swig_module.type_initial[i]->clientdata) {
26557 type->clientdata = swig_module.type_initial[i]->clientdata;
26558#ifdef SWIGRUNTIME_DEBUG
26559 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
26560#endif
26561 }
26562 } else {
26563 type = swig_module.type_initial[i];
8d38bd1d 26564 }
0085ce49
RD
26565
26566 /* Insert casting types */
26567 cast = swig_module.cast_initial[i];
26568 while (cast->type) {
26569 /* Don't need to add information already in the list */
26570 ret = 0;
26571#ifdef SWIGRUNTIME_DEBUG
26572 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
26573#endif
26574 if (swig_module.next != &swig_module) {
26575 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
26576#ifdef SWIGRUNTIME_DEBUG
26577 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
26578#endif
26579 }
26580 if (ret) {
26581 if (type == swig_module.type_initial[i]) {
26582#ifdef SWIGRUNTIME_DEBUG
26583 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
26584#endif
26585 cast->type = ret;
26586 ret = 0;
26587 } else {
26588 /* Check for casting already in the list */
26589 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
26590#ifdef SWIGRUNTIME_DEBUG
26591 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
26592#endif
26593 if (!ocast) ret = 0;
26594 }
26595 }
26596
26597 if (!ret) {
26598#ifdef SWIGRUNTIME_DEBUG
26599 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
26600#endif
26601 if (type->cast) {
26602 type->cast->prev = cast;
26603 cast->next = type->cast;
26604 }
26605 type->cast = cast;
26606 }
26607 cast++;
8d38bd1d 26608 }
0085ce49
RD
26609 /* Set entry in modules->types array equal to the type */
26610 swig_module.types[i] = type;
26611 }
26612 swig_module.types[i] = 0;
26613
26614#ifdef SWIGRUNTIME_DEBUG
26615 printf("**** SWIG_InitializeModule: Cast List ******\n");
26616 for (i = 0; i < swig_module.size; ++i) {
26617 int j = 0;
26618 swig_cast_info *cast = swig_module.cast_initial[i];
26619 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
26620 while (cast->type) {
26621 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
26622 cast++;
26623 ++j;
26624 }
26625 printf("---- Total casts: %d\n",j);
26626 }
26627 printf("**** SWIG_InitializeModule: Cast List ******\n");
26628#endif
26629}
26630
26631/* This function will propagate the clientdata field of type to
26632* any new swig_type_info structures that have been added into the list
26633* of equivalent types. It is like calling
26634* SWIG_TypeClientData(type, clientdata) a second time.
26635*/
26636SWIGRUNTIME void
26637SWIG_PropagateClientData(void) {
26638 size_t i;
26639 swig_cast_info *equiv;
26640 static int init_run = 0;
26641
26642 if (init_run) return;
26643 init_run = 1;
26644
26645 for (i = 0; i < swig_module.size; i++) {
26646 if (swig_module.types[i]->clientdata) {
26647 equiv = swig_module.types[i]->cast;
26648 while (equiv) {
26649 if (!equiv->converter) {
26650 if (equiv->type && !equiv->type->clientdata)
26651 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
26652 }
26653 equiv = equiv->next;
26654 }
8d38bd1d 26655 }
0085ce49
RD
26656 }
26657}
26658
26659#ifdef __cplusplus
26660#if 0
26661{
26662 /* c-mode */
26663#endif
26664}
26665#endif
26666
26667
26668
26669#ifdef __cplusplus
26670extern "C" {
26671#endif
26672
26673 /* Python-specific SWIG API */
26674#define SWIG_newvarlink() SWIG_Python_newvarlink()
26675#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
26676#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
26677
26678 /* -----------------------------------------------------------------------------
26679 * global variable support code.
26680 * ----------------------------------------------------------------------------- */
26681
26682 typedef struct swig_globalvar {
26683 char *name; /* Name of global variable */
26684 PyObject *(*get_attr)(void); /* Return the current value */
26685 int (*set_attr)(PyObject *); /* Set the value */
26686 struct swig_globalvar *next;
26687 } swig_globalvar;
26688
26689 typedef struct swig_varlinkobject {
26690 PyObject_HEAD
26691 swig_globalvar *vars;
26692 } swig_varlinkobject;
26693
26694 SWIGINTERN PyObject *
26695 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
26696 return PyString_FromString("<Swig global variables>");
26697 }
26698
26699 SWIGINTERN PyObject *
26700 swig_varlink_str(swig_varlinkobject *v) {
26701 PyObject *str = PyString_FromString("(");
26702 swig_globalvar *var;
26703 for (var = v->vars; var; var=var->next) {
26704 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
26705 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
26706 }
26707 PyString_ConcatAndDel(&str,PyString_FromString(")"));
26708 return str;
26709 }
26710
26711 SWIGINTERN int
26712 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
26713 PyObject *str = swig_varlink_str(v);
26714 fprintf(fp,"Swig global variables ");
26715 fprintf(fp,"%s\n", PyString_AsString(str));
26716 Py_DECREF(str);
26717 return 0;
26718 }
26719
26720 SWIGINTERN void
26721 swig_varlink_dealloc(swig_varlinkobject *v) {
26722 swig_globalvar *var = v->vars;
26723 while (var) {
26724 swig_globalvar *n = var->next;
26725 free(var->name);
26726 free(var);
26727 var = n;
8d38bd1d 26728 }
0085ce49
RD
26729 }
26730
26731 SWIGINTERN PyObject *
26732 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
26733 PyObject *res = NULL;
26734 swig_globalvar *var = v->vars;
26735 while (var) {
26736 if (strcmp(var->name,n) == 0) {
26737 res = (*var->get_attr)();
26738 break;
26739 }
26740 var = var->next;
8d38bd1d 26741 }
0085ce49
RD
26742 if (res == NULL && !PyErr_Occurred()) {
26743 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
8d38bd1d 26744 }
0085ce49
RD
26745 return res;
26746 }
26747
26748 SWIGINTERN int
26749 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
26750 int res = 1;
26751 swig_globalvar *var = v->vars;
26752 while (var) {
26753 if (strcmp(var->name,n) == 0) {
26754 res = (*var->set_attr)(p);
26755 break;
26756 }
26757 var = var->next;
8d38bd1d 26758 }
0085ce49
RD
26759 if (res == 1 && !PyErr_Occurred()) {
26760 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
8d38bd1d 26761 }
0085ce49
RD
26762 return res;
26763 }
26764
26765 SWIGINTERN PyTypeObject*
26766 swig_varlink_type(void) {
26767 static char varlink__doc__[] = "Swig var link object";
26768 static PyTypeObject varlink_type;
26769 static int type_init = 0;
26770 if (!type_init) {
26771 const PyTypeObject tmp
26772 = {
26773 PyObject_HEAD_INIT(NULL)
26774 0, /* Number of items in variable part (ob_size) */
26775 (char *)"swigvarlink", /* Type name (tp_name) */
26776 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
26777 0, /* Itemsize (tp_itemsize) */
26778 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
26779 (printfunc) swig_varlink_print, /* Print (tp_print) */
26780 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
26781 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
26782 0, /* tp_compare */
26783 (reprfunc) swig_varlink_repr, /* tp_repr */
26784 0, /* tp_as_number */
26785 0, /* tp_as_sequence */
26786 0, /* tp_as_mapping */
26787 0, /* tp_hash */
26788 0, /* tp_call */
26789 (reprfunc)swig_varlink_str, /* tp_str */
26790 0, /* tp_getattro */
26791 0, /* tp_setattro */
26792 0, /* tp_as_buffer */
26793 0, /* tp_flags */
26794 varlink__doc__, /* tp_doc */
26795 0, /* tp_traverse */
26796 0, /* tp_clear */
26797 0, /* tp_richcompare */
26798 0, /* tp_weaklistoffset */
26799#if PY_VERSION_HEX >= 0x02020000
26800 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
26801#endif
26802#if PY_VERSION_HEX >= 0x02030000
26803 0, /* tp_del */
26804#endif
26805#ifdef COUNT_ALLOCS
26806 0,0,0,0 /* tp_alloc -> tp_next */
26807#endif
26808 };
26809 varlink_type = tmp;
26810 varlink_type.ob_type = &PyType_Type;
26811 type_init = 1;
8d38bd1d 26812 }
0085ce49
RD
26813 return &varlink_type;
26814 }
26815
26816 /* Create a variable linking object for use later */
26817 SWIGINTERN PyObject *
26818 SWIG_Python_newvarlink(void) {
26819 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
26820 if (result) {
26821 result->vars = 0;
26822 }
26823 return ((PyObject*) result);
26824 }
26825
26826 SWIGINTERN void
26827 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
26828 swig_varlinkobject *v = (swig_varlinkobject *) p;
26829 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
26830 if (gv) {
26831 size_t size = strlen(name)+1;
26832 gv->name = (char *)malloc(size);
26833 if (gv->name) {
26834 strncpy(gv->name,name,size);
26835 gv->get_attr = get_attr;
26836 gv->set_attr = set_attr;
26837 gv->next = v->vars;
26838 }
8d38bd1d 26839 }
0085ce49
RD
26840 v->vars = gv;
26841 }
26842
26843 SWIGINTERN PyObject *
26844 SWIG_globals() {
26845 static PyObject *_SWIG_globals = 0;
26846 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
26847 return _SWIG_globals;
26848 }
26849
26850 /* -----------------------------------------------------------------------------
26851 * constants/methods manipulation
26852 * ----------------------------------------------------------------------------- */
26853
26854 /* Install Constants */
26855 SWIGINTERN void
26856 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
26857 PyObject *obj = 0;
26858 size_t i;
26859 for (i = 0; constants[i].type; ++i) {
26860 switch(constants[i].type) {
26861 case SWIG_PY_POINTER:
26862 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
26863 break;
26864 case SWIG_PY_BINARY:
26865 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
26866 break;
26867 default:
26868 obj = 0;
26869 break;
26870 }
26871 if (obj) {
26872 PyDict_SetItemString(d, constants[i].name, obj);
26873 Py_DECREF(obj);
26874 }
8d38bd1d 26875 }
0085ce49
RD
26876 }
26877
26878 /* -----------------------------------------------------------------------------*/
26879 /* Fix SwigMethods to carry the callback ptrs when needed */
26880 /* -----------------------------------------------------------------------------*/
26881
26882 SWIGINTERN void
26883 SWIG_Python_FixMethods(PyMethodDef *methods,
26884 swig_const_info *const_table,
26885 swig_type_info **types,
26886 swig_type_info **types_initial) {
26887 size_t i;
26888 for (i = 0; methods[i].ml_name; ++i) {
453fb36b 26889 const char *c = methods[i].ml_doc;
0085ce49
RD
26890 if (c && (c = strstr(c, "swig_ptr: "))) {
26891 int j;
26892 swig_const_info *ci = 0;
453fb36b 26893 const char *name = c + 10;
0085ce49
RD
26894 for (j = 0; const_table[j].type; ++j) {
26895 if (strncmp(const_table[j].name, name,
26896 strlen(const_table[j].name)) == 0) {
26897 ci = &(const_table[j]);
26898 break;
26899 }
26900 }
26901 if (ci) {
26902 size_t shift = (ci->ptype) - types;
26903 swig_type_info *ty = types_initial[shift];
26904 size_t ldoc = (c - methods[i].ml_doc);
26905 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
26906 char *ndoc = (char*)malloc(ldoc + lptr + 10);
26907 if (ndoc) {
26908 char *buff = ndoc;
26909 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
26910 if (ptr) {
26911 strncpy(buff, methods[i].ml_doc, ldoc);
26912 buff += ldoc;
26913 strncpy(buff, "swig_ptr: ", 10);
26914 buff += 10;
26915 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
26916 methods[i].ml_doc = ndoc;
26917 }
26918 }
26919 }
26920 }
8d38bd1d 26921 }
0085ce49
RD
26922 }
26923
26924#ifdef __cplusplus
26925}
26926#endif
26927
26928/* -----------------------------------------------------------------------------*
26929 * Partial Init method
26930 * -----------------------------------------------------------------------------*/
26931
26932#ifdef __cplusplus
26933extern "C"
26934#endif
26935SWIGEXPORT void SWIG_init(void) {
26936 PyObject *m, *d;
26937
26938 /* Fix SwigMethods to carry the callback ptrs when needed */
26939 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
26940
26941 m = Py_InitModule((char *) SWIG_name, SwigMethods);
26942 d = PyModule_GetDict(m);
26943
26944 SWIG_InitializeModule(0);
26945 SWIG_InstallConstants(d,swig_const_table);
26946
26947
01f6b6d3
RD
26948 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
26949 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
26950 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
0085ce49
RD
26951 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
26952 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
26953 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
26954 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
26955 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
26956 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
26957 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
26958 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
26959 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
26960 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
26961 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
26962 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
26963 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
26964 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
26965 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
26966 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
26967 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
26968 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
26969 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
26970 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
26971 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
26972 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
26973 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
26974 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
26975 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
26976 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
26977 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
26978 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
26979 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
26980 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
26981 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
26982 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
26983 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
26984 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
26985 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
26986 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
26987 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
26988 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
26989 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
26990 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
26991 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
26992 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
26993 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
26994 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
26995 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
26996 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
26997 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
26998 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
26999 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
27000 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
27001 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
27002 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
27003 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
27004 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
27005 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
27006 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
27007 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
27008 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
27009 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
27010 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
27011 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
27012 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
27013 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
27014 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
27015 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
27016 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
27017 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
27018 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
27019 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
27020 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
27021 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
27022 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
27023 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
27024 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
27025 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
27026 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
27027 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
27028 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
27029 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
27030 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
27031 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
27032 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
27033 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
27034 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
27035 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
27036 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
27037 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
27038 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
27039 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
27040 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
27041 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
27042 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
27043 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
27044 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
27045 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
27046 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
27047 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
27048 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
27049 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
27050 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
27051 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
27052 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
27053 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
27054 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
27055 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
27056 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
27057 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
27058 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
27059 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
27060 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
27061 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
27062 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
27063 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
27064 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
27065 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
27066 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
27067 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
27068 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
27069 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
27070 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
27071 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
27072 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
27073 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
27074 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
27075 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
27076 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
27077 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
27078
27079 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
27080
27081 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
27082 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
27083 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
27084 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
27085 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
27086 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
27087 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
27088 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
27089 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
27090 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
27091 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
27092 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
27093 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
27094 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
27095 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
27096 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
27097 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
27098 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
27099 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
27100 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
27101 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
27102 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
27103 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
27104 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
27105 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
27106 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
27107 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
27108 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
27109 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
27110 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
27111 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
27112 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
27113 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
27114 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
27115 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
27116 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
27117 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
27118 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
27119 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
27120 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
27121 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
27122 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
27123 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
27124 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
27125 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
27126 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
27127 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
27128 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
27129 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
27130 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
27131 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
27132 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
27133 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
27134 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
27135 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
27136 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
27137 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
27138 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
27139 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
27140 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
27141 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
27142 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
27143 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
27144 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
27145 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
27146 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
27147 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
27148 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
27149 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
27150 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
27151 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
27152 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
27153 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
27154 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
27155 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
27156 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
27157 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
27158 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
27159 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
27160 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
27161 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
27162 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
27163 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
27164 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
27165 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
27166 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
27167 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
27168 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
27169 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
27170 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
27171 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
27172 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
27173 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
27174 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
27175 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
27176 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
27177 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
27178 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
27179 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
27180 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
27181 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
27182 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
27183 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
27184 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
27185 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
27186 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
27187 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
27188 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
27189 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
27190 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
27191 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
27192 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
27193 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
27194 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
27195 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
27196 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
27197 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
27198 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
27199 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
27200 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
27201 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
27202 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
27203 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
27204 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
27205 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
27206 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
27207 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
27208 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
27209 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
27210 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
27211 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
27212 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
27213 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
27214 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
27215 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
27216 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
27217 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
27218 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
27219 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
27220 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
27221 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
27222 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
27223 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
27224 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
27225 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
27226 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
27227 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
27228 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
27229 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
27230 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
27231 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
27232 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
27233 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
27234 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
27235 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
27236 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
27237 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
27238 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
27239 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
27240 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
27241 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
27242 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
27243 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
27244 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
27245 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
27246 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
27247 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
27248 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
27249 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
27250 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
27251 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
27252 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
27253 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
27254 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
27255 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
27256 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
27257 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
27258 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
27259 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
27260 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
27261 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
27262 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
27263 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
27264 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
27265 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
27266 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
27267 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
27268 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
27269 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
27270 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
27271 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
27272 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
27273 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
27274 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
27275 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
27276 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
27277 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
27278 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
27279 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
27280 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
27281 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
27282 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
27283 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
27284 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
27285 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
27286 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
27287 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
27288 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
27289 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
27290 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
27291 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
27292 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
27293 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
27294 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
27295 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
27296 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
27297 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
27298 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
27299 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
27300 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
27301 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
27302 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
27303 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
27304 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
27305 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
27306 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
27307 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
27308 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
27309 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
27310 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
27311 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
27312 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
27313 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
27314 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
27315 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
27316 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
27317 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
27318 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
27319 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
27320 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
27321 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
27322 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
27323 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
27324 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
27325 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
27326 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
27327 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
27328 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
27329 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
27330 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
27331 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
27332 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
27333 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
27334 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
27335 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
50efceee
RD
27336 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
27337 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
27338 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
27339 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
27340 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
27341 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
27342 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
27343 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
27344 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
27345 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
27346 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
27347 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
27348 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
27349 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
27350 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
27351 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
27352 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
27353 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
27354 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
27355 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
27356 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
27357 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
27358 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
27359 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
27360 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
27361 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
27362 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
27363 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
27364 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
27365 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
27366 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
27367 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
27368 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
27369 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
27370 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
0085ce49 27371 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
0085ce49
RD
27372 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
27373 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
27374 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
27375 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
27376 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
27377 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
27378 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
27379 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
0085ce49
RD
27380 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
27381 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
27382 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
27383 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
27384 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
27385 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
27386 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
27387 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
27388 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
27389 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
27390 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
27391 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
27392 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
27393 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
27394 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
27395
27396 // Work around a chicken/egg problem in drawlist.cpp
27397 wxPyDrawList_SetAPIPtr();
27398
d14a1e28
RD
27399}
27400