]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/_gdi_wrap.cpp
use the right number in the tarball filename
[wxWidgets.git] / wxPython / src / gtk / _gdi_wrap.cpp
CommitLineData
d14a1e28
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
0085ce49 3 * Version 1.3.29
d14a1e28
RD
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11#define SWIGPYTHON
0085ce49 12#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
d14a1e28
RD
13
14#ifdef __cplusplus
15template<class T> class SwigValueWrapper {
16 T *tt;
17public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
093d3ff1 27};
d14a1e28
RD
28#endif
29
0085ce49 30/* -----------------------------------------------------------------------------
32fe5131
RD
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
0085ce49 33 * ----------------------------------------------------------------------------- */
d14a1e28 34
32fe5131
RD
35/* template workaround for compilers that cannot correctly implement the C++ standard */
36#ifndef SWIGTEMPLATEDISAMBIGUATOR
0085ce49
RD
37# if defined(__SUNPRO_CC)
38# if (__SUNPRO_CC <= 0x560)
39# define SWIGTEMPLATEDISAMBIGUATOR template
40# else
41# define SWIGTEMPLATEDISAMBIGUATOR
42# endif
43# else
44# define SWIGTEMPLATEDISAMBIGUATOR
45# endif
093d3ff1 46#endif
d14a1e28 47
32fe5131
RD
48/* inline attribute */
49#ifndef SWIGINLINE
50# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51# define SWIGINLINE inline
52# else
53# define SWIGINLINE
54# endif
55#endif
56
57/* attribute recognised by some compilers to avoid 'unused' warnings */
58#ifndef SWIGUNUSED
0085ce49
RD
59# if defined(__GNUC__)
60# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61# define SWIGUNUSED __attribute__ ((__unused__))
62# else
63# define SWIGUNUSED
64# endif
65# elif defined(__ICC)
66# define SWIGUNUSED __attribute__ ((__unused__))
32fe5131
RD
67# else
68# define SWIGUNUSED
69# endif
70#endif
71
0085ce49
RD
72#ifndef SWIGUNUSEDPARM
73# ifdef __cplusplus
74# define SWIGUNUSEDPARM(p)
75# else
76# define SWIGUNUSEDPARM(p) p SWIGUNUSED
77# endif
78#endif
79
32fe5131
RD
80/* internal SWIG method */
81#ifndef SWIGINTERN
82# define SWIGINTERN static SWIGUNUSED
83#endif
84
85/* internal inline SWIG method */
86#ifndef SWIGINTERNINLINE
87# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88#endif
89
0085ce49
RD
90/* exporting methods */
91#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92# ifndef GCC_HASCLASSVISIBILITY
93# define GCC_HASCLASSVISIBILITY
94# endif
95#endif
96
32fe5131
RD
97#ifndef SWIGEXPORT
98# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99# if defined(STATIC_LINKED)
100# define SWIGEXPORT
101# else
102# define SWIGEXPORT __declspec(dllexport)
103# endif
104# else
0085ce49
RD
105# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106# define SWIGEXPORT __attribute__ ((visibility("default")))
107# else
108# define SWIGEXPORT
109# endif
32fe5131
RD
110# endif
111#endif
112
113/* calling conventions for Windows */
114#ifndef SWIGSTDCALL
115# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116# define SWIGSTDCALL __stdcall
117# else
118# define SWIGSTDCALL
119# endif
120#endif
121
0085ce49
RD
122/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124# define _CRT_SECURE_NO_DEPRECATE
125#endif
32fe5131 126
c9c7117a 127
0085ce49 128/* Python.h has to appear first */
093d3ff1 129#include <Python.h>
d14a1e28 130
0085ce49 131/* -----------------------------------------------------------------------------
093d3ff1 132 * swigrun.swg
d14a1e28 133 *
0085ce49
RD
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
d14a1e28 137
093d3ff1
RD
138/* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
32fe5131 140#define SWIG_RUNTIME_VERSION "2"
d14a1e28 141
093d3ff1
RD
142/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143#ifdef SWIG_TYPE_TABLE
32fe5131
RD
144# define SWIG_QUOTE_STRING(x) #x
145# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
d14a1e28 147#else
32fe5131 148# define SWIG_TYPE_TABLE_NAME
093d3ff1
RD
149#endif
150
151/*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158*/
32fe5131 159
093d3ff1 160#ifndef SWIGRUNTIME
32fe5131 161# define SWIGRUNTIME SWIGINTERN
093d3ff1 162#endif
32fe5131 163
093d3ff1 164#ifndef SWIGRUNTIMEINLINE
32fe5131 165# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
d14a1e28
RD
166#endif
167
0085ce49
RD
168/* Generic buffer size */
169#ifndef SWIG_BUFFER_SIZE
170# define SWIG_BUFFER_SIZE 1024
171#endif
172
173/* Flags for pointer conversions */
174#define SWIG_POINTER_DISOWN 0x1
175
176/* Flags for new pointer objects */
177#define SWIG_POINTER_OWN 0x1
178
179
180/*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260#define SWIG_OK (0)
261#define SWIG_ERROR (-1)
262#define SWIG_IsOK(r) (r >= 0)
263#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265/* The CastRankLimit says how many bits are used for the cast rank */
266#define SWIG_CASTRANKLIMIT (1 << 8)
267/* The NewMask denotes the object was created (using new/malloc) */
268#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269/* The TmpMask is for in/out typemaps that use temporal objects */
270#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271/* Simple returning values */
272#define SWIG_BADOBJ (SWIG_ERROR)
273#define SWIG_OLDOBJ (SWIG_OK)
274#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276/* Check, add and del mask methods */
277#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285/* Cast-Rank Mode */
286#if defined(SWIG_CASTRANK_MODE)
287# ifndef SWIG_TypeRank
288# define SWIG_TypeRank unsigned long
289# endif
290# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291# define SWIG_MAXCASTRANK (2)
292# endif
293# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297}
298SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300}
301#else /* no cast-rank mode */
302# define SWIG_AddCast
303# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304#endif
305
306
307
308
32fe5131
RD
309#include <string.h>
310
d14a1e28
RD
311#ifdef __cplusplus
312extern "C" {
313#endif
314
315typedef void *(*swig_converter_func)(void *);
316typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
32fe5131 318/* Structure to store inforomation on one type */
d14a1e28 319typedef struct swig_type_info {
32fe5131
RD
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
0085ce49 325 int owndata; /* flag if the structure owns the clientdata */
d14a1e28
RD
326} swig_type_info;
327
32fe5131
RD
328/* Structure to store a type and conversion function used for casting */
329typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334} swig_cast_info;
335
336/* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346} swig_module_info;
347
093d3ff1
RD
348/*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354*/
355SWIGRUNTIME int
356SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
0085ce49 361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
093d3ff1
RD
362 }
363 return (l1 - f1) - (l2 - f2);
364}
365
366/*
367 Check type equivalence in a name list like <name1>|<name2>|...
32fe5131 368 Return 0 if not equal, 1 if equal
093d3ff1
RD
369*/
370SWIGRUNTIME int
371SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
32fe5131 379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
093d3ff1
RD
380 if (*ne) ++ne;
381 }
382 return equiv;
383}
384
385/*
32fe5131
RD
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
093d3ff1 388*/
32fe5131
RD
389SWIGRUNTIME int
390SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
093d3ff1 397 }
32fe5131
RD
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
093d3ff1 400 }
32fe5131 401 return equiv;
093d3ff1
RD
402}
403
32fe5131
RD
404
405/* think of this as a c++ template<> or a scheme macro */
406#define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
093d3ff1
RD
427/*
428 Check the typename
429*/
32fe5131 430SWIGRUNTIME swig_cast_info *
093d3ff1 431SWIG_TypeCheck(const char *c, swig_type_info *ty) {
32fe5131
RD
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433}
434
435/* Same as previous function, except strcmp is replaced with a pointer comparison */
436SWIGRUNTIME swig_cast_info *
437SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
093d3ff1
RD
439}
440
441/*
442 Cast a pointer up an inheritance hierarchy
443*/
444SWIGRUNTIMEINLINE void *
32fe5131 445SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
093d3ff1
RD
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447}
448
449/*
450 Dynamic pointer casting. Down an inheritance hierarchy
451*/
452SWIGRUNTIME swig_type_info *
453SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461}
462
463/*
464 Return the name associated with this type
465*/
466SWIGRUNTIMEINLINE const char *
467SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469}
470
471/*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474*/
475SWIGRUNTIME const char *
476SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
0085ce49 481 if (!type) return NULL;
093d3ff1
RD
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491}
492
093d3ff1
RD
493/*
494 Set the clientdata field for a type
495*/
496SWIGRUNTIME void
32fe5131
RD
497SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
093d3ff1
RD
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
32fe5131
RD
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
093d3ff1 507 }
32fe5131
RD
508 }
509 cast = cast->next;
510 }
511}
0085ce49
RD
512SWIGRUNTIME void
513SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516}
517
32fe5131
RD
518/*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525*/
526SWIGRUNTIME swig_type_info *
527SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
093d3ff1 556 }
32fe5131
RD
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560}
561
562/*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570*/
571SWIGRUNTIME swig_type_info *
572SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
093d3ff1 591 }
32fe5131
RD
592
593 /* neither found a match */
594 return 0;
093d3ff1
RD
595}
596
597/*
598 Pack binary data into a string
599*/
600SWIGRUNTIME char *
601SWIG_PackData(char *c, void *ptr, size_t sz) {
32fe5131
RD
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
093d3ff1 605 for (; u != eu; ++u) {
32fe5131 606 register unsigned char uu = *u;
093d3ff1
RD
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611}
612
613/*
614 Unpack binary data from a string
615*/
616SWIGRUNTIME const char *
617SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
32fe5131 619 register const unsigned char *eu = u + sz;
093d3ff1 620 for (; u != eu; ++u) {
32fe5131 621 register char d = *(c++);
0085ce49 622 register unsigned char uu;
093d3ff1
RD
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639}
640
093d3ff1
RD
641/*
642 Pack 'void *' into a string buffer.
643*/
644SWIGRUNTIME char *
645SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653}
654
655SWIGRUNTIME const char *
656SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666}
667
668SWIGRUNTIME char *
669SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681}
d14a1e28 682
093d3ff1
RD
683SWIGRUNTIME const char *
684SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694}
d14a1e28
RD
695
696#ifdef __cplusplus
697}
698#endif
699
0085ce49
RD
700/* Errors in SWIG */
701#define SWIG_UnknownError -1
702#define SWIG_IOError -2
703#define SWIG_RuntimeError -3
704#define SWIG_IndexError -4
705#define SWIG_TypeError -5
706#define SWIG_DivisionByZero -6
707#define SWIG_OverflowError -7
708#define SWIG_SyntaxError -8
709#define SWIG_ValueError -9
710#define SWIG_SystemError -10
711#define SWIG_AttributeError -11
712#define SWIG_MemoryError -12
713#define SWIG_NullReferenceError -13
d14a1e28 714
0085ce49
RD
715
716
717/* Python.h has to appear first */
718#include <Python.h>
719
720/* Add PyOS_snprintf for old Pythons */
721#if PY_VERSION_HEX < 0x02020000
722# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723# define PyOS_snprintf _snprintf
724# else
725# define PyOS_snprintf snprintf
726# endif
727#endif
728
729/* A crude PyString_FromFormat implementation for old Pythons */
730#if PY_VERSION_HEX < 0x02020000
731
732#ifndef SWIG_PYBUFFER_SIZE
733# define SWIG_PYBUFFER_SIZE 1024
734#endif
735
736static PyObject *
737PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745}
746#endif
747
748/* Add PyObject_Del for old Pythons */
749#if PY_VERSION_HEX < 0x01060000
750# define PyObject_Del(op) PyMem_DEL((op))
751#endif
752#ifndef PyObject_DEL
753# define PyObject_DEL PyObject_Del
754#endif
755
756/* A crude PyExc_StopIteration exception for old Pythons */
757#if PY_VERSION_HEX < 0x02020000
758# ifndef PyExc_StopIteration
759# define PyExc_StopIteration PyExc_RuntimeError
760# endif
761# ifndef PyObject_GenericGetAttr
762# define PyObject_GenericGetAttr 0
763# endif
093d3ff1 764#endif
0085ce49
RD
765/* Py_NotImplemented is defined in 2.1 and up. */
766#if PY_VERSION_HEX < 0x02010000
767# ifndef Py_NotImplemented
768# define Py_NotImplemented PyExc_RuntimeError
769# endif
770#endif
771
772
773/* A crude PyString_AsStringAndSize implementation for old Pythons */
774#if PY_VERSION_HEX < 0x02010000
775# ifndef PyString_AsStringAndSize
776# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777# endif
778#endif
779
780/* PySequence_Size for old Pythons */
781#if PY_VERSION_HEX < 0x02000000
782# ifndef PySequence_Size
783# define PySequence_Size PySequence_Length
784# endif
785#endif
786
787
788/* PyBool_FromLong for old Pythons */
789#if PY_VERSION_HEX < 0x02030000
790static
791PyObject *PyBool_FromLong(long ok)
792{
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796}
797#endif
798
c32bde28 799
093d3ff1 800/* -----------------------------------------------------------------------------
0085ce49 801 * error manipulation
093d3ff1 802 * ----------------------------------------------------------------------------- */
d14a1e28 803
0085ce49
RD
804SWIGRUNTIME PyObject*
805SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845}
d14a1e28 846
0085ce49
RD
847
848SWIGRUNTIME void
849SWIG_Python_AddErrorMsg(const char* mesg)
850{
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866}
867
868
869
870#if defined(SWIG_PYTHON_NO_THREADS)
871# if defined(SWIG_PYTHON_THREADS)
872# undef SWIG_PYTHON_THREADS
873# endif
874#endif
875#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877# if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878# define SWIG_PYTHON_USE_GIL
879# endif
880# endif
881# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882# ifndef SWIG_PYTHON_INITIALIZE_THREADS
883# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884# endif
885# ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906# else /* C code */
907# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911# endif
912# else /* Old thread way, not implemented, user must provide it */
913# if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914# define SWIG_PYTHON_INITIALIZE_THREADS
915# endif
916# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918# endif
919# if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920# define SWIG_PYTHON_THREAD_END_BLOCK
921# endif
922# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924# endif
925# if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926# define SWIG_PYTHON_THREAD_END_ALLOW
927# endif
928# endif
929#else /* No thread support */
930# define SWIG_PYTHON_INITIALIZE_THREADS
931# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932# define SWIG_PYTHON_THREAD_END_BLOCK
933# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934# define SWIG_PYTHON_THREAD_END_ALLOW
093d3ff1 935#endif
d14a1e28 936
0085ce49
RD
937/* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
093d3ff1 940
0085ce49
RD
941#ifdef __cplusplus
942extern "C" {
943#if 0
944} /* cc-mode */
945#endif
946#endif
093d3ff1
RD
947
948/* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
d14a1e28 951
093d3ff1 952/* Constant Types */
093d3ff1
RD
953#define SWIG_PY_POINTER 4
954#define SWIG_PY_BINARY 5
955
956/* Constant information structure */
957typedef struct swig_const_info {
0085ce49
RD
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
093d3ff1 964} swig_const_info;
d14a1e28 965
994141e6 966#ifdef __cplusplus
0085ce49
RD
967#if 0
968{ /* cc-mode */
969#endif
093d3ff1
RD
970}
971#endif
994141e6 972
15afbcd0 973
0085ce49
RD
974/* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
093d3ff1
RD
978 * pyrun.swg
979 *
0085ce49
RD
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
093d3ff1 983 *
0085ce49 984 * ----------------------------------------------------------------------------- */
15afbcd0 985
093d3ff1 986/* Common SWIG API */
994141e6 987
d1a49b78
RD
988#if PY_VERSION_HEX < 0x02050000
989typedef int Py_ssize_t;
990#endif
991
0085ce49
RD
992/* for raw pointers */
993#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999#define swig_owntype int
994141e6 1000
0085ce49
RD
1001/* for raw packed data */
1002#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
994141e6 1004
0085ce49
RD
1005/* for class or struct pointers */
1006#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
d14a1e28 1008
0085ce49
RD
1009/* for C or C++ function pointers */
1010#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
994141e6 1012
0085ce49
RD
1013/* for C++ member pointers, ie, member methods */
1014#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
32fe5131 1016
c32bde28 1017
0085ce49 1018/* Runtime API */
994141e6 1019
0085ce49
RD
1020#define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022#define SWIG_NewClientData(obj) PySwigClientData_New(obj)
32fe5131 1023
0085ce49
RD
1024#define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026#define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027#define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028#define SWIG_fail goto fail
32fe5131 1029
994141e6 1030
0085ce49 1031/* Runtime API implementation */
c32bde28 1032
0085ce49 1033/* Error manipulation */
c32bde28 1034
0085ce49
RD
1035SWIGINTERN void
1036SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
c32bde28 1041}
15afbcd0 1042
0085ce49
RD
1043SWIGINTERN void
1044SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
c32bde28 1048}
15afbcd0 1049
0085ce49 1050#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
32fe5131 1051
0085ce49 1052/* Set a constant value */
c32bde28 1053
0085ce49
RD
1054SWIGINTERN void
1055SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
15afbcd0
RD
1058}
1059
0085ce49 1060/* Append a value to the result obj */
69223c70 1061
0085ce49
RD
1062SWIGINTERN PyObject*
1063SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064#if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080#else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
093d3ff1 1088 } else {
0085ce49
RD
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
15afbcd0 1100 }
0085ce49
RD
1101 return result;
1102#endif
093d3ff1 1103}
15afbcd0 1104
0085ce49 1105/* Unpack the argument tuple */
15afbcd0 1106
0085ce49
RD
1107SWIGINTERN int
1108SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109{
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143}
1144
1145/* A functor is a function object with one single object argument */
1146#if PY_VERSION_HEX >= 0x02020000
1147#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148#else
1149#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150#endif
1151
1152/*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155*/
1156#ifdef __cplusplus
1157#define SWIG_STATIC_POINTER(var) var
1158#else
1159#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160#endif
1161
1162/* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166/* Flags for new pointer objects */
1167#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172#ifdef __cplusplus
1173extern "C" {
1174#if 0
1175} /* cc-mode */
1176#endif
1177#endif
1178
1179/* How to access Py_None */
1180#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181# ifndef SWIG_PYTHON_NO_BUILD_NONE
1182# ifndef SWIG_PYTHON_BUILD_NONE
1183# define SWIG_PYTHON_BUILD_NONE
1184# endif
1185# endif
1186#endif
1187
1188#ifdef SWIG_PYTHON_BUILD_NONE
1189# ifdef Py_None
1190# undef Py_None
1191# define Py_None SWIG_Py_None()
1192# endif
1193SWIGRUNTIMEINLINE PyObject *
1194_SWIG_Py_None(void)
1195{
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199}
1200SWIGRUNTIME PyObject *
1201SWIG_Py_None(void)
1202{
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205}
1206#endif
1207
1208/* The python void return value */
1209
1210SWIGRUNTIMEINLINE PyObject *
1211SWIG_Py_Void(void)
1212{
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216}
1217
1218/* PySwigClientData */
1219
1220typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227} PySwigClientData;
1228
1229SWIGRUNTIMEINLINE int
1230SWIG_Python_CheckImplicit(swig_type_info *ty)
1231{
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234}
1235
1236SWIGRUNTIMEINLINE PyObject *
1237SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241}
1242
1243
1244SWIGRUNTIME PySwigClientData *
1245PySwigClientData_New(PyObject* obj)
1246{
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260#if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262#else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264#endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284#ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286#else
1287 data->delargs = 0;
1288#endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295}
1296
1297SWIGRUNTIME void
1298PySwigClientData_Del(PySwigClientData* data)
1299{
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303}
1304
1305/* =============== PySwigObject =====================*/
1306
1307typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313} PySwigObject;
1314
1315SWIGRUNTIME PyObject *
1316PySwigObject_long(PySwigObject *v)
1317{
1318 return PyLong_FromVoidPtr(v->ptr);
1319}
1320
1321SWIGRUNTIME PyObject *
1322PySwigObject_format(const char* fmt, PySwigObject *v)
1323{
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337}
1338
1339SWIGRUNTIME PyObject *
1340PySwigObject_oct(PySwigObject *v)
1341{
1342 return PySwigObject_format("%o",v);
1343}
1344
1345SWIGRUNTIME PyObject *
1346PySwigObject_hex(PySwigObject *v)
1347{
1348 return PySwigObject_format("%x",v);
1349}
1350
1351SWIGRUNTIME PyObject *
1352#ifdef METH_NOARGS
1353PySwigObject_repr(PySwigObject *v)
1354#else
1355PySwigObject_repr(PySwigObject *v, PyObject *args)
1356#endif
1357{
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363#ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365#else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367#endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371}
1372
1373SWIGRUNTIME int
1374PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375{
1376#ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378#else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380#endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388}
1389
1390SWIGRUNTIME PyObject *
1391PySwigObject_str(PySwigObject *v)
1392{
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396}
1397
1398SWIGRUNTIME int
1399PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400{
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404}
1405
1406SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408SWIGRUNTIME PyTypeObject*
1409PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412}
1413
1414SWIGRUNTIMEINLINE int
1415PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418}
1419
1420SWIGRUNTIME PyObject *
1421PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423SWIGRUNTIME void
1424PySwigObject_dealloc(PyObject *v)
1425{
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450#endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455}
1456
1457SWIGRUNTIME PyObject*
1458PySwigObject_append(PyObject* v, PyObject* next)
1459{
1460 PySwigObject *sobj = (PySwigObject *) v;
1461#ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465#endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472}
1473
1474SWIGRUNTIME PyObject*
1475#ifdef METH_NOARGS
1476PySwigObject_next(PyObject* v)
1477#else
1478PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479#endif
1480{
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488}
1489
1490SWIGINTERN PyObject*
1491#ifdef METH_NOARGS
1492PySwigObject_disown(PyObject *v)
1493#else
1494PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495#endif
1496{
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500}
1501
1502SWIGINTERN PyObject*
1503#ifdef METH_NOARGS
1504PySwigObject_acquire(PyObject *v)
1505#else
1506PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507#endif
1508{
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512}
1513
1514SWIGINTERN PyObject*
1515PySwigObject_own(PyObject *v, PyObject *args)
1516{
1517 PyObject *val = 0;
1518#if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520#else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522#endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531#ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537#else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543#endif
1544 }
1545 return obj;
1546 }
1547}
1548
1549#ifdef METH_O
1550static PyMethodDef
1551swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559};
1560#else
1561static PyMethodDef
1562swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570};
1571#endif
1572
1573#if PY_VERSION_HEX < 0x02020000
1574SWIGINTERN PyObject *
1575PySwigObject_getattr(PySwigObject *sobj,char *name)
1576{
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578}
1579#endif
1580
1581SWIGRUNTIME PyTypeObject*
1582_PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
093d3ff1
RD
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
32fe5131 1609#if PY_VERSION_HEX >= 0x02020000
093d3ff1 1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
32fe5131
RD
1611#elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
093d3ff1
RD
1613#endif
1614 };
1615
0085ce49 1616 static PyTypeObject pyswigobject_type;
32fe5131 1617 static int type_init = 0;
093d3ff1 1618 if (!type_init) {
0085ce49
RD
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628#if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630#else
1631 (getattrfunc)0, /* tp_getattr */
093d3ff1 1632#endif
0085ce49
RD
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
093d3ff1 1651#if PY_VERSION_HEX >= 0x02020000
0085ce49
RD
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
093d3ff1
RD
1672#endif
1673#if PY_VERSION_HEX >= 0x02030000
0085ce49 1674 0, /* tp_del */
093d3ff1
RD
1675#endif
1676#ifdef COUNT_ALLOCS
0085ce49 1677 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 1678#endif
0085ce49 1679 };
32fe5131 1680 pyswigobject_type = tmp;
0085ce49 1681 pyswigobject_type.ob_type = &PyType_Type;
093d3ff1 1682 type_init = 1;
c32bde28 1683 }
32fe5131 1684 return &pyswigobject_type;
15afbcd0
RD
1685}
1686
093d3ff1 1687SWIGRUNTIME PyObject *
0085ce49 1688PySwigObject_New(void *ptr, swig_type_info *ty, int own)
093d3ff1 1689{
0085ce49
RD
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
32fe5131 1696 }
0085ce49 1697 return (PyObject *)sobj;
15afbcd0
RD
1698}
1699
093d3ff1
RD
1700/* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704typedef struct {
1705 PyObject_HEAD
1706 void *pack;
0085ce49 1707 swig_type_info *ty;
093d3ff1
RD
1708 size_t size;
1709} PySwigPacked;
1710
1711SWIGRUNTIME int
0085ce49 1712PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
093d3ff1
RD
1713{
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
0085ce49 1720 fputs(v->ty->name,fp);
093d3ff1
RD
1721 fputs(">", fp);
1722 return 0;
1723}
c32bde28 1724
093d3ff1
RD
1725SWIGRUNTIME PyObject *
1726PySwigPacked_repr(PySwigPacked *v)
15afbcd0 1727{
093d3ff1
RD
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
0085ce49 1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
093d3ff1 1731 } else {
0085ce49 1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
093d3ff1 1733 }
c32bde28
RD
1734}
1735
093d3ff1
RD
1736SWIGRUNTIME PyObject *
1737PySwigPacked_str(PySwigPacked *v)
1738{
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
0085ce49 1741 return PyString_FromFormat("%s%s", result, v->ty->name);
093d3ff1 1742 } else {
0085ce49 1743 return PyString_FromString(v->ty->name);
093d3ff1
RD
1744 }
1745}
c32bde28 1746
093d3ff1
RD
1747SWIGRUNTIME int
1748PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
c32bde28 1749{
0085ce49
RD
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
c32bde28
RD
1754}
1755
0085ce49 1756SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
093d3ff1
RD
1757
1758SWIGRUNTIME PyTypeObject*
32fe5131 1759PySwigPacked_type(void) {
0085ce49
RD
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762}
1763
1764SWIGRUNTIMEINLINE int
1765PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768}
1769
1770SWIGRUNTIME void
1771PySwigPacked_dealloc(PyObject *v)
1772{
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778}
1779
1780SWIGRUNTIME PyTypeObject*
1781_PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814#if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
093d3ff1
RD
1835#endif
1836#if PY_VERSION_HEX >= 0x02030000
0085ce49 1837 0, /* tp_del */
093d3ff1
RD
1838#endif
1839#ifdef COUNT_ALLOCS
0085ce49 1840 0,0,0,0 /* tp_alloc -> tp_next */
093d3ff1 1841#endif
0085ce49 1842 };
32fe5131 1843 pyswigpacked_type = tmp;
0085ce49 1844 pyswigpacked_type.ob_type = &PyType_Type;
093d3ff1
RD
1845 type_init = 1;
1846 }
32fe5131 1847 return &pyswigpacked_type;
093d3ff1
RD
1848}
1849
1850SWIGRUNTIME PyObject *
0085ce49 1851PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
c32bde28 1852{
0085ce49
RD
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
093d3ff1 1855 void *pack = malloc(size);
32fe5131
RD
1856 if (pack) {
1857 memcpy(pack, ptr, size);
0085ce49
RD
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
32fe5131 1864 }
093d3ff1 1865 }
0085ce49 1866 return (PyObject *) sobj;
994141e6
RD
1867}
1868
0085ce49 1869SWIGRUNTIME swig_type_info *
093d3ff1
RD
1870PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871{
0085ce49
RD
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
093d3ff1 1880}
15afbcd0 1881
093d3ff1 1882/* -----------------------------------------------------------------------------
0085ce49 1883 * pointers/data manipulation
093d3ff1
RD
1884 * ----------------------------------------------------------------------------- */
1885
0085ce49
RD
1886SWIGRUNTIMEINLINE PyObject *
1887_SWIG_This(void)
1888{
1889 return PyString_FromString("this");
1890}
093d3ff1 1891
0085ce49
RD
1892SWIGRUNTIME PyObject *
1893SWIG_This(void)
1894{
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897}
093d3ff1 1898
0085ce49 1899/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
093d3ff1 1900
0085ce49
RD
1901SWIGRUNTIME PySwigObject *
1902SWIG_Python_GetSwigThis(PyObject *pyobj)
15afbcd0 1903{
0085ce49
RD
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917#ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922#endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
093d3ff1 1926 } else {
0085ce49
RD
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
093d3ff1 1929 }
093d3ff1 1930 }
0085ce49
RD
1931 }
1932#else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940#endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
15afbcd0 1947 }
15afbcd0
RD
1948}
1949
0085ce49
RD
1950/* Acquire a pointer value */
1951
1952SWIGRUNTIME int
1953SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
093d3ff1 1961 }
0085ce49 1962 return 0;
994141e6
RD
1963}
1964
0085ce49
RD
1965/* Convert a pointer value */
1966
093d3ff1 1967SWIGRUNTIME int
0085ce49
RD
1968SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
093d3ff1 1992 } else {
0085ce49
RD
1993 if (ptr) *ptr = vptr;
1994 break;
093d3ff1 1995 }
093d3ff1 1996 }
0085ce49
RD
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
093d3ff1
RD
2042 }
2043}
994141e6 2044
0085ce49
RD
2045/* Convert a function ptr value */
2046
093d3ff1 2047SWIGRUNTIME int
0085ce49
RD
2048SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
093d3ff1 2051 } else {
0085ce49
RD
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
d1a49b78 2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
0085ce49
RD
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
093d3ff1
RD
2069 }
2070}
d14a1e28 2071
0085ce49 2072/* Convert a packed value value */
093d3ff1 2073
093d3ff1 2074SWIGRUNTIME int
0085ce49
RD
2075SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
7e63a440 2084 }
0085ce49
RD
2085 return SWIG_OK;
2086}
d14a1e28 2087
0085ce49
RD
2088/* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
c32bde28 2091
0085ce49
RD
2092/*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095*/
d14a1e28 2096
0085ce49
RD
2097SWIGRUNTIME PyObject*
2098SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099{
2100#if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
093d3ff1 2115 }
0085ce49
RD
2116#else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119#endif
093d3ff1 2120 }
0085ce49
RD
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
093d3ff1 2126 }
0085ce49
RD
2127 return inst;
2128#else
2129#if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136#else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
093d3ff1 2140 }
0085ce49
RD
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
093d3ff1 2147 }
0085ce49
RD
2148#ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150#endif
2151#ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153#endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156#endif
2157#endif
093d3ff1 2158}
d14a1e28 2159
0085ce49
RD
2160SWIGRUNTIME void
2161SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162{
2163 PyObject *dict;
2164#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
093d3ff1 2175#endif
0085ce49
RD
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179}
d14a1e28 2180
0085ce49
RD
2181
2182SWIGINTERN PyObject *
2183SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
093d3ff1 2191 } else {
0085ce49 2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
093d3ff1 2193 }
0085ce49 2194 return SWIG_Py_Void();
15afbcd0 2195 }
0085ce49
RD
2196}
2197
2198/* Create a new pointer object */
093d3ff1 2199
093d3ff1 2200SWIGRUNTIME PyObject *
0085ce49 2201SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
093d3ff1 2202 if (!ptr) {
0085ce49
RD
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
093d3ff1 2213 }
093d3ff1 2214 }
0085ce49 2215 return robj;
093d3ff1 2216 }
c32bde28
RD
2217}
2218
0085ce49
RD
2219/* Create a new packed object */
2220
2221SWIGRUNTIMEINLINE PyObject *
093d3ff1 2222SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
0085ce49 2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
994141e6
RD
2224}
2225
093d3ff1
RD
2226/* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230#ifdef SWIG_LINK_RUNTIME
2231void *SWIG_ReturnGlobalTypeList(void *);
2232#endif
2233
32fe5131
RD
2234SWIGRUNTIME swig_module_info *
2235SWIG_Python_GetModule(void) {
093d3ff1
RD
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239#ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
15afbcd0 2241#else
093d3ff1
RD
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
15afbcd0 2248#endif
32fe5131
RD
2249 }
2250 return (swig_module_info *) type_pointer;
093d3ff1 2251}
d14a1e28 2252
32fe5131
RD
2253#if PY_MAJOR_VERSION < 2
2254/* PyModule_AddObject function was introduced in Python 2.0. The following function
0085ce49 2255 is copied out of Python/modsupport.c in python version 2.3.4 */
32fe5131
RD
2256SWIGINTERN int
2257PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258{
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
0085ce49 2263 return SWIG_ERROR;
32fe5131
RD
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
0085ce49 2268 return SWIG_ERROR;
32fe5131
RD
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
0085ce49 2276 return SWIG_ERROR;
32fe5131
RD
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
0085ce49 2279 return SWIG_ERROR;
32fe5131 2280 Py_DECREF(o);
0085ce49 2281 return SWIG_OK;
093d3ff1 2282}
32fe5131 2283#endif
d14a1e28 2284
0085ce49
RD
2285SWIGRUNTIME void
2286SWIG_Python_DestroyModule(void *vptr)
2287{
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299}
2300
32fe5131
RD
2301SWIGRUNTIME void
2302SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
0085ce49 2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
32fe5131
RD
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
0085ce49
RD
2310 } else {
2311 Py_XDECREF(pointer);
32fe5131
RD
2312 }
2313}
d14a1e28 2314
0085ce49
RD
2315/* The python cached type query */
2316SWIGRUNTIME PyObject *
2317SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
093d3ff1 2320}
d14a1e28 2321
0085ce49
RD
2322SWIGRUNTIME swig_type_info *
2323SWIG_Python_TypeQuery(const char *type)
2324{
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342}
2343
2344/*
2345 For backward compatibility only
2346*/
2347#define SWIG_POINTER_EXCEPTION 0
2348#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351SWIGRUNTIME int
2352SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353{
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374}
2375
2376SWIGRUNTIME int
2377SWIG_Python_ArgFail(int argnum)
2378{
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387}
2388
2389SWIGRUNTIMEINLINE const char *
2390PySwigObject_GetDesc(PyObject *self)
2391{
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395}
2396
2397SWIGRUNTIME void
2398SWIG_Python_TypeError(const char *type, PyObject *obj)
2399{
2400 if (type) {
2401#if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410#endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431}
2432
2433
2434/* Convert a pointer value, signal an exception on a type mismatch */
2435SWIGRUNTIME void *
2436SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446}
2447
2448
2449#ifdef __cplusplus
2450#if 0
2451{ /* cc-mode */
2452#endif
2453}
2454#endif
2455
2456
2457
2458#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464/* -------- TYPES TABLE (BEGIN) -------- */
2465
fc46b7f3
RD
2466#define SWIGTYPE_p_buffer swig_types[0]
2467#define SWIGTYPE_p_char swig_types[1]
2468#define SWIGTYPE_p_double swig_types[2]
2469#define SWIGTYPE_p_form_ops_t swig_types[3]
2470#define SWIGTYPE_p_int swig_types[4]
2471#define SWIGTYPE_p_unsigned_char swig_types[5]
2472#define SWIGTYPE_p_unsigned_int swig_types[6]
2473#define SWIGTYPE_p_unsigned_long swig_types[7]
2474#define SWIGTYPE_p_wxANIHandler swig_types[8]
2475#define SWIGTYPE_p_wxAcceleratorTable swig_types[9]
2476#define SWIGTYPE_p_wxActivateEvent swig_types[10]
2477#define SWIGTYPE_p_wxAlphaPixelData swig_types[11]
2478#define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[12]
b39fe951
RD
2479#define SWIGTYPE_p_wxBMPHandler swig_types[13]
2480#define SWIGTYPE_p_wxBitmap swig_types[14]
2481#define SWIGTYPE_p_wxBoxSizer swig_types[15]
2482#define SWIGTYPE_p_wxBrush swig_types[16]
2483#define SWIGTYPE_p_wxBrushList swig_types[17]
2484#define SWIGTYPE_p_wxBufferedDC swig_types[18]
2485#define SWIGTYPE_p_wxBufferedPaintDC swig_types[19]
2486#define SWIGTYPE_p_wxCURHandler swig_types[20]
2487#define SWIGTYPE_p_wxChar swig_types[21]
2488#define SWIGTYPE_p_wxChildFocusEvent swig_types[22]
2489#define SWIGTYPE_p_wxClientDC swig_types[23]
2490#define SWIGTYPE_p_wxClipboardTextEvent swig_types[24]
2491#define SWIGTYPE_p_wxCloseEvent swig_types[25]
2492#define SWIGTYPE_p_wxColor swig_types[26]
2493#define SWIGTYPE_p_wxColour swig_types[27]
2494#define SWIGTYPE_p_wxColourDatabase swig_types[28]
2495#define SWIGTYPE_p_wxCommandEvent swig_types[29]
2496#define SWIGTYPE_p_wxContextMenuEvent swig_types[30]
2497#define SWIGTYPE_p_wxControl swig_types[31]
2498#define SWIGTYPE_p_wxControlWithItems swig_types[32]
2499#define SWIGTYPE_p_wxCursor swig_types[33]
2500#define SWIGTYPE_p_wxDC swig_types[34]
2501#define SWIGTYPE_p_wxDCOverlay swig_types[35]
72ef6efb
RD
2502#define SWIGTYPE_p_wxDash swig_types[36]
2503#define SWIGTYPE_p_wxDateEvent swig_types[37]
2504#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[38]
2505#define SWIGTYPE_p_wxDropFilesEvent swig_types[39]
2506#define SWIGTYPE_p_wxDuplexMode swig_types[40]
2507#define SWIGTYPE_p_wxEffects swig_types[41]
2508#define SWIGTYPE_p_wxEncodingConverter swig_types[42]
2509#define SWIGTYPE_p_wxEraseEvent swig_types[43]
2510#define SWIGTYPE_p_wxEvent swig_types[44]
2511#define SWIGTYPE_p_wxEvtHandler swig_types[45]
2512#define SWIGTYPE_p_wxFSFile swig_types[46]
2513#define SWIGTYPE_p_wxFileSystem swig_types[47]
2514#define SWIGTYPE_p_wxFlexGridSizer swig_types[48]
2515#define SWIGTYPE_p_wxFocusEvent swig_types[49]
2516#define SWIGTYPE_p_wxFont swig_types[50]
2517#define SWIGTYPE_p_wxFontList swig_types[51]
2518#define SWIGTYPE_p_wxFontMapper swig_types[52]
2519#define SWIGTYPE_p_wxGBSizerItem swig_types[53]
2520#define SWIGTYPE_p_wxGCDC swig_types[54]
2521#define SWIGTYPE_p_wxGDIObjListBase swig_types[55]
2522#define SWIGTYPE_p_wxGDIObject swig_types[56]
2523#define SWIGTYPE_p_wxGIFHandler swig_types[57]
2524#define SWIGTYPE_p_wxGraphicsContext swig_types[58]
2525#define SWIGTYPE_p_wxGraphicsPath swig_types[59]
2526#define SWIGTYPE_p_wxGridBagSizer swig_types[60]
2527#define SWIGTYPE_p_wxGridSizer swig_types[61]
2528#define SWIGTYPE_p_wxHeaderButtonParams swig_types[62]
2529#define SWIGTYPE_p_wxICOHandler swig_types[63]
2530#define SWIGTYPE_p_wxIcon swig_types[64]
2531#define SWIGTYPE_p_wxIconBundle swig_types[65]
2532#define SWIGTYPE_p_wxIconLocation swig_types[66]
2533#define SWIGTYPE_p_wxIconizeEvent swig_types[67]
2534#define SWIGTYPE_p_wxIdleEvent swig_types[68]
2535#define SWIGTYPE_p_wxImage swig_types[69]
2536#define SWIGTYPE_p_wxImageHandler swig_types[70]
2537#define SWIGTYPE_p_wxImageList swig_types[71]
2538#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[72]
2539#define SWIGTYPE_p_wxInitDialogEvent swig_types[73]
2540#define SWIGTYPE_p_wxJPEGHandler swig_types[74]
2541#define SWIGTYPE_p_wxKeyEvent swig_types[75]
2542#define SWIGTYPE_p_wxLanguageInfo swig_types[76]
2543#define SWIGTYPE_p_wxLayoutConstraints swig_types[77]
2544#define SWIGTYPE_p_wxLocale swig_types[78]
2545#define SWIGTYPE_p_wxMask swig_types[79]
2546#define SWIGTYPE_p_wxMaximizeEvent swig_types[80]
2547#define SWIGTYPE_p_wxMemoryDC swig_types[81]
2548#define SWIGTYPE_p_wxMenu swig_types[82]
2549#define SWIGTYPE_p_wxMenuBar swig_types[83]
2550#define SWIGTYPE_p_wxMenuEvent swig_types[84]
2551#define SWIGTYPE_p_wxMenuItem swig_types[85]
2552#define SWIGTYPE_p_wxMetaFile swig_types[86]
2553#define SWIGTYPE_p_wxMetaFileDC swig_types[87]
2554#define SWIGTYPE_p_wxMirrorDC swig_types[88]
2555#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[89]
2556#define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[90]
2557#define SWIGTYPE_p_wxMouseEvent swig_types[91]
2558#define SWIGTYPE_p_wxMoveEvent swig_types[92]
2559#define SWIGTYPE_p_wxNativeEncodingInfo swig_types[93]
2560#define SWIGTYPE_p_wxNativeFontInfo swig_types[94]
2561#define SWIGTYPE_p_wxNativePixelData swig_types[95]
2562#define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[96]
2563#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[97]
2564#define SWIGTYPE_p_wxNcPaintEvent swig_types[98]
2565#define SWIGTYPE_p_wxNotifyEvent swig_types[99]
2566#define SWIGTYPE_p_wxObject swig_types[100]
b39fe951
RD
2567#define SWIGTYPE_p_wxOverlay swig_types[101]
2568#define SWIGTYPE_p_wxPCXHandler swig_types[102]
2569#define SWIGTYPE_p_wxPNGHandler swig_types[103]
2570#define SWIGTYPE_p_wxPNMHandler swig_types[104]
2571#define SWIGTYPE_p_wxPaintDC swig_types[105]
2572#define SWIGTYPE_p_wxPaintEvent swig_types[106]
2573#define SWIGTYPE_p_wxPalette swig_types[107]
2574#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[108]
2575#define SWIGTYPE_p_wxPaperSize swig_types[109]
2576#define SWIGTYPE_p_wxPen swig_types[110]
2577#define SWIGTYPE_p_wxPenList swig_types[111]
2578#define SWIGTYPE_p_wxPixelDataBase swig_types[112]
2579#define SWIGTYPE_p_wxPoint swig_types[113]
2580#define SWIGTYPE_p_wxPoint2D swig_types[114]
2581#define SWIGTYPE_p_wxPostScriptDC swig_types[115]
2582#define SWIGTYPE_p_wxPrintData swig_types[116]
2583#define SWIGTYPE_p_wxPrinterDC swig_types[117]
2584#define SWIGTYPE_p_wxPseudoDC swig_types[118]
2585#define SWIGTYPE_p_wxPyApp swig_types[119]
2586#define SWIGTYPE_p_wxPyCommandEvent swig_types[120]
2587#define SWIGTYPE_p_wxPyEvent swig_types[121]
2588#define SWIGTYPE_p_wxPyFontEnumerator swig_types[122]
2589#define SWIGTYPE_p_wxPyImageHandler swig_types[123]
2590#define SWIGTYPE_p_wxPyLocale swig_types[124]
2591#define SWIGTYPE_p_wxPySizer swig_types[125]
2592#define SWIGTYPE_p_wxPyValidator swig_types[126]
2593#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[127]
2594#define SWIGTYPE_p_wxRect swig_types[128]
2595#define SWIGTYPE_p_wxRegion swig_types[129]
2596#define SWIGTYPE_p_wxRegionIterator swig_types[130]
2597#define SWIGTYPE_p_wxRendererNative swig_types[131]
2598#define SWIGTYPE_p_wxRendererVersion swig_types[132]
2599#define SWIGTYPE_p_wxScreenDC swig_types[133]
2600#define SWIGTYPE_p_wxScrollEvent swig_types[134]
2601#define SWIGTYPE_p_wxScrollWinEvent swig_types[135]
2602#define SWIGTYPE_p_wxSetCursorEvent swig_types[136]
2603#define SWIGTYPE_p_wxShowEvent swig_types[137]
2604#define SWIGTYPE_p_wxSize swig_types[138]
2605#define SWIGTYPE_p_wxSizeEvent swig_types[139]
2606#define SWIGTYPE_p_wxSizer swig_types[140]
2607#define SWIGTYPE_p_wxSizerItem swig_types[141]
2608#define SWIGTYPE_p_wxSplitterRenderParams swig_types[142]
2609#define SWIGTYPE_p_wxStaticBoxSizer swig_types[143]
2610#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[144]
2611#define SWIGTYPE_p_wxStockGDI swig_types[145]
2612#define SWIGTYPE_p_wxString swig_types[146]
2613#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[147]
2614#define SWIGTYPE_p_wxTIFFHandler swig_types[148]
2615#define SWIGTYPE_p_wxUpdateUIEvent swig_types[149]
2616#define SWIGTYPE_p_wxValidator swig_types[150]
2617#define SWIGTYPE_p_wxWindow swig_types[151]
2618#define SWIGTYPE_p_wxWindowCreateEvent swig_types[152]
2619#define SWIGTYPE_p_wxWindowDC swig_types[153]
2620#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[154]
2621#define SWIGTYPE_p_wxXPMHandler swig_types[155]
2622static swig_type_info *swig_types[157];
2623static swig_module_info swig_module = {swig_types, 156, 0, 0, 0, 0};
32fe5131
RD
2624#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2625#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
d14a1e28 2626
093d3ff1 2627/* -------- TYPES TABLE (END) -------- */
d14a1e28 2628
0085ce49
RD
2629#if (PY_VERSION_HEX <= 0x02000000)
2630# if !defined(SWIG_PYTHON_CLASSIC)
2631# error "This python version requires to use swig with the '-classic' option"
2632# endif
2633#endif
2634#if (PY_VERSION_HEX <= 0x02020000)
2635# error "This python version requires to use swig with the '-nomodern' option"
2636#endif
2637#if (PY_VERSION_HEX <= 0x02020000)
2638# error "This python version requires to use swig with the '-nomodernargs' option"
2639#endif
2640#ifndef METH_O
2641# error "This python version requires to use swig with the '-nofastunpack' option"
2642#endif
d14a1e28 2643
093d3ff1
RD
2644/*-----------------------------------------------
2645 @(target):= _gdi_.so
2646 ------------------------------------------------*/
2647#define SWIG_init init_gdi_
d14a1e28 2648
093d3ff1 2649#define SWIG_name "_gdi_"
d14a1e28 2650
0085ce49 2651#define SWIGVERSION 0x010329
d14a1e28 2652
d14a1e28 2653
0085ce49
RD
2654#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2655#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
d14a1e28
RD
2656
2657
0085ce49
RD
2658#include <stdexcept>
2659
2660
2661namespace swig {
2662 class PyObject_ptr {
2663 protected:
2664 PyObject *_obj;
2665
2666 public:
2667 PyObject_ptr() :_obj(0)
2668 {
093d3ff1 2669 }
0085ce49
RD
2670
2671 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2672 {
2673 Py_XINCREF(_obj);
093d3ff1 2674 }
0085ce49
RD
2675
2676 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2677 {
2678 if (initial_ref) Py_XINCREF(_obj);
2679 }
2680
2681 PyObject_ptr & operator=(const PyObject_ptr& item)
2682 {
2683 Py_XINCREF(item._obj);
2684 Py_XDECREF(_obj);
2685 _obj = item._obj;
2686 return *this;
2687 }
2688
2689 ~PyObject_ptr()
2690 {
2691 Py_XDECREF(_obj);
2692 }
2693
2694 operator PyObject *() const
2695 {
2696 return _obj;
2697 }
2698
2699 PyObject *operator->() const
2700 {
2701 return _obj;
2702 }
2703 };
093d3ff1 2704}
d14a1e28 2705
994141e6 2706
0085ce49
RD
2707namespace swig {
2708 struct PyObject_var : PyObject_ptr {
2709 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2710
2711 PyObject_var & operator = (PyObject* obj)
2712 {
2713 Py_XDECREF(_obj);
2714 _obj = obj;
2715 return *this;
69223c70 2716 }
0085ce49 2717 };
15afbcd0
RD
2718}
2719
2720
0085ce49
RD
2721#include "wx/wxPython/wxPython.h"
2722#include "wx/wxPython/pyclasses.h"
2723
2724
2725 static const wxString wxPyEmptyString(wxEmptyString);
2726
01f6b6d3
RD
2727 #define SWIG_From_long PyInt_FromLong
2728
2729
2730SWIGINTERNINLINE PyObject *
2731SWIG_From_int (int value)
2732{
2733 return SWIG_From_long (value);
2734}
2735
2736
0085ce49
RD
2737#include <limits.h>
2738#ifndef LLONG_MIN
2739# define LLONG_MIN LONG_LONG_MIN
2740#endif
2741#ifndef LLONG_MAX
2742# define LLONG_MAX LONG_LONG_MAX
2743#endif
2744#ifndef ULLONG_MAX
2745# define ULLONG_MAX ULONG_LONG_MAX
2746#endif
b88bce5f 2747
b88bce5f 2748
50efceee
RD
2749SWIGINTERN int
2750SWIG_AsVal_long (PyObject* obj, long* val)
2751{
2752 if (PyNumber_Check(obj)) {
2753 if (val) *val = PyInt_AsLong(obj);
2754 return SWIG_OK;
2755 }
2756 return SWIG_TypeError;
2757}
2758
2759
093d3ff1 2760SWIGINTERN int
0085ce49 2761SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
093d3ff1
RD
2762{
2763 long v = 0;
2764 if (SWIG_AsVal_long(obj, &v) && v < 0) {
0085ce49 2765 return SWIG_TypeError;
093d3ff1
RD
2766 }
2767 else if (val)
2768 *val = (unsigned long)v;
0085ce49 2769 return SWIG_OK;
093d3ff1 2770}
d14a1e28
RD
2771
2772
093d3ff1 2773SWIGINTERN int
0085ce49
RD
2774SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2775{
093d3ff1 2776 unsigned long v;
0085ce49
RD
2777 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2778 if (SWIG_IsOK(res)) {
2779 if ((v > UCHAR_MAX)) {
2780 return SWIG_OverflowError;
093d3ff1 2781 } else {
0085ce49 2782 if (val) *val = static_cast< unsigned char >(v);
093d3ff1 2783 }
0085ce49
RD
2784 }
2785 return res;
093d3ff1 2786}
33b885b9 2787
d14a1e28 2788
0085ce49
RD
2789SWIGINTERNINLINE PyObject*
2790SWIG_From_unsigned_SS_long (unsigned long value)
093d3ff1 2791{
0085ce49
RD
2792 return (value > LONG_MAX) ?
2793 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
093d3ff1 2794}
d14a1e28 2795
d14a1e28 2796
0085ce49
RD
2797SWIGINTERNINLINE PyObject *
2798SWIG_From_unsigned_SS_char (unsigned char value)
2799{
2800 return SWIG_From_unsigned_SS_long (value);
2801}
d14a1e28 2802
e9d6f3a4
RD
2803SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2804 wxColour temp, *obj = &temp;
2805 if ( other == Py_None ) return false;
2806 if ( ! wxColour_helper(other, &obj) ) {
2807 PyErr_Clear();
2808 return false;
2809 }
2810 return self->operator==(*obj);
2811 }
2812SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2813 wxColour temp, *obj = &temp;
2814 if ( other == Py_None ) return true;
2815 if ( ! wxColour_helper(other, &obj)) {
2816 PyErr_Clear();
2817 return true;
2818 }
2819 return self->operator!=(*obj);
2820 }
fc46b7f3
RD
2821
2822SWIGINTERN int
2823SWIG_AsVal_bool (PyObject *obj, bool *val)
2824{
2825 if (obj == Py_True) {
2826 if (val) *val = true;
2827 return SWIG_OK;
2828 } else if (obj == Py_False) {
2829 if (val) *val = false;
2830 return SWIG_OK;
2831 } else {
2832 long v = 0;
2833 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2834 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2835 return res;
2836 }
2837}
2838
2839SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2840 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
093d3ff1
RD
2841 int red = -1;
2842 int green = -1;
2843 int blue = -1;
fc46b7f3 2844 int alpha = wxALPHA_OPAQUE;
b39fe951 2845 if (self->IsOk()) {
093d3ff1
RD
2846 red = self->Red();
2847 green = self->Green();
2848 blue = self->Blue();
fc46b7f3 2849 alpha = self->Alpha();
093d3ff1
RD
2850 }
2851 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2852 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2853 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
fc46b7f3
RD
2854 if (includeAlpha)
2855 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
093d3ff1
RD
2856 return rv;
2857 }
0085ce49 2858SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
093d3ff1
RD
2859 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2860 }
d14a1e28 2861
0085ce49
RD
2862SWIGINTERN int
2863SWIG_AsVal_int (PyObject * obj, int *val)
093d3ff1 2864{
0085ce49
RD
2865 long v;
2866 int res = SWIG_AsVal_long (obj, &v);
2867 if (SWIG_IsOK(res)) {
2868 if ((v < INT_MIN || v > INT_MAX)) {
2869 return SWIG_OverflowError;
2870 } else {
2871 if (val) *val = static_cast< int >(v);
2872 }
2873 }
2874 return res;
d14a1e28
RD
2875}
2876
0085ce49 2877SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
093d3ff1
RD
2878 wxDash* dashes;
2879 int count = self->GetDashes(&dashes);
5a446332 2880 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
2881 PyObject* retval = PyList_New(0);
2882 for (int x=0; x<count; x++) {
2883 PyObject* pyint = PyInt_FromLong(dashes[x]);
2884 PyList_Append(retval, pyint);
2885 Py_DECREF(pyint);
2886 }
2887 wxPyEndBlockThreads(blocked);
2888 return retval;
2889 }
0085ce49 2890SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
5a446332 2891 wxPyBlock_t blocked = wxPyBeginBlockThreads();
093d3ff1
RD
2892 int size = PyList_Size(pyDashes);
2893 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
d14a1e28 2894
093d3ff1
RD
2895 // black magic warning! The array of wxDashes needs to exist as
2896 // long as the pen does because wxPen does not copy the array. So
2897 // stick a copy in a Python string object and attach it to _self,
2898 // and then call SetDashes with a pointer to that array. Then
2899 // when the Python pen object is destroyed the array will be
2900 // cleaned up too.
2901 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2902 PyObject_SetAttrString(_self, "_dashes", strDashes);
2903
2904 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2905 delete [] dashes;
2906 Py_DECREF(strDashes);
2907 wxPyEndBlockThreads(blocked);
2908 }
0085ce49
RD
2909SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2910SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
d14a1e28 2911
fc46b7f3
RD
2912#include <wx/rawbmp.h>
2913
2914
093d3ff1 2915#include <wx/image.h>
b88bce5f 2916
093d3ff1
RD
2917 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2918 char** cArray = NULL;
2919 int count;
2920
2921 if (!PyList_Check(listOfStrings)) {
2922 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2923 return NULL;
2924 }
2925 count = PyList_Size(listOfStrings);
2926 cArray = new char*[count];
2927
2928 for(int x=0; x<count; x++) {
2929 // TODO: Need some validation and error checking here
2930 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2931 }
2932 return cArray;
b88bce5f 2933 }
b88bce5f
RD
2934
2935
0085ce49 2936SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
fc46b7f3
RD
2937 char** cArray = NULL;
2938 wxBitmap* bmp;
2939
2940 cArray = ConvertListOfStrings(listOfStrings);
2941 if (! cArray)
2942 return NULL;
2943 bmp = new wxBitmap(cArray);
2944 delete [] cArray;
2945 return bmp;
2946 }
0085ce49 2947SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
fc46b7f3
RD
2948 char* buf;
2949 Py_ssize_t length;
2950 PyString_AsStringAndSize(bits, &buf, &length);
2951 return new wxBitmap(buf, width, height, depth);
2952 }
0085ce49 2953SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
093d3ff1
RD
2954 wxSize size(self->GetWidth(), self->GetHeight());
2955 return size;
2956 }
0085ce49 2957SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
093d3ff1
RD
2958 wxMask *mask = new wxMask(*self, colour);
2959 self->SetMask(mask);
2960 }
0085ce49 2961SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
093d3ff1
RD
2962 self->SetWidth(size.x);
2963 self->SetHeight(size.y);
2964 }
0085ce49
RD
2965SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2966SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
fc46b7f3
RD
2967
2968// See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2969// appears to me that the other platforms are already doing it, so I'll just
2970// automatically do it for wxMSW here.
2971#ifdef __WXMSW__
195a89b4
RD
2972#define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2973#define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
fc46b7f3
RD
2974#else
2975#define wxPy_premultiply(p, a) (p)
2976#define wxPy_unpremultiply(p, a) (p)
2977#endif
2978
2979
2980 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
2981 buffer data, int DATASIZE,
2982 buffer alpha, int ALPHASIZE)
2983 {
2984 if (DATASIZE != width*height*3) {
2985 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
2986 return NULL;
2987 }
2988
2989 if (ALPHASIZE != width*height) {
2990 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
2991 return NULL;
2992 }
2993
2994 wxBitmap* bmp = new wxBitmap(width, height, 32);
2995 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
2996 if (! pixData) {
2997 // raise an exception...
2998 wxPyErr_SetString(PyExc_RuntimeError,
2999 "Failed to gain raw access to bitmap data.");
3000 return NULL;
3001 }
3002
3003 pixData.UseAlpha();
3004 wxAlphaPixelData::Iterator p(pixData);
3005 for (int y=0; y<height; y++) {
3006 wxAlphaPixelData::Iterator rowStart = p;
3007 for (int x=0; x<width; x++) {
3008 byte a = *(alpha++);
3009 p.Red() = wxPy_premultiply(*(data++), a);
3010 p.Green() = wxPy_premultiply(*(data++), a);
3011 p.Blue() = wxPy_premultiply(*(data++), a);
3012 p.Alpha() = a;
3013 ++p;
3014 }
3015 p = rowStart;
3016 p.OffsetY(pixData, 1);
3017 }
3018 return bmp;
3019 }
3020
3021 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3022 {
3023 if (DATASIZE != width*height*3) {
3024 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3025 return NULL;
3026 }
3027
3028 wxBitmap* bmp = new wxBitmap(width, height, 24);
3029 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3030 if (! pixData) {
3031 // raise an exception...
3032 wxPyErr_SetString(PyExc_RuntimeError,
3033 "Failed to gain raw access to bitmap data.");
3034 return NULL;
3035 }
3036
3037 wxNativePixelData::Iterator p(pixData);
3038 for (int y=0; y<height; y++) {
3039 wxNativePixelData::Iterator rowStart = p;
3040 for (int x=0; x<width; x++) {
3041 p.Red() = *(data++);
3042 p.Green() = *(data++);
3043 p.Blue() = *(data++);
3044 ++p;
3045 }
3046 p = rowStart;
3047 p.OffsetY(pixData, 1);
3048 }
3049 return bmp;
3050 }
3051
3052
3053 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3054 {
3055 if (DATASIZE != width*height*4) {
3056 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3057 return NULL;
3058 }
3059
3060 wxBitmap* bmp = new wxBitmap(width, height, 32);
3061 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3062 if (! pixData) {
3063 // raise an exception...
3064 wxPyErr_SetString(PyExc_RuntimeError,
3065 "Failed to gain raw access to bitmap data.");
3066 return NULL;
3067 }
3068
3069 pixData.UseAlpha();
3070 wxAlphaPixelData::Iterator p(pixData);
3071 for (int y=0; y<height; y++) {
3072 wxAlphaPixelData::Iterator rowStart = p;
3073 for (int x=0; x<width; x++) {
3074 byte a = data[3];
3075 p.Red() = wxPy_premultiply(*(data++), a);
3076 p.Green() = wxPy_premultiply(*(data++), a);
3077 p.Blue() = wxPy_premultiply(*(data++), a);
3078 p.Alpha() = a; data++;
3079 ++p;
3080 }
3081 p = rowStart;
3082 p.OffsetY(pixData, 1);
3083 }
3084 return bmp;
3085 }
3086
3087
3088 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3089
3090SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3091SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3092SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3093 self->Red() = red;
3094 self->Green() = green;
3095 self->Blue() = blue;
3096 }
3097SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3098 PyObject* rv = PyTuple_New(3);
3099 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3100 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3101 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3102 return rv;
3103 }
3104
3105 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3106
3107SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3108SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3109SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3110 self->Red() = wxPy_premultiply(red, alpha);
3111 self->Green() = wxPy_premultiply(green, alpha);
3112 self->Blue() = wxPy_premultiply(blue, alpha);
3113 self->Alpha() = alpha;
3114 }
3115SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3116 PyObject* rv = PyTuple_New(4);
3117 int red = self->Red();
3118 int green = self->Green();
3119 int blue = self->Blue();
3120 int alpha = self->Alpha();
3121
3122 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3123 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3124 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3125 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3126 return rv;
3127 }
0085ce49 3128SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
b39fe951 3129 if ( !colour.IsOk() )
093d3ff1
RD
3130 return new wxMask(bitmap, *wxBLACK);
3131 else
3132 return new wxMask(bitmap, colour);
3133 }
d14a1e28 3134
093d3ff1 3135#include <wx/iconbndl.h>
d14a1e28 3136
0085ce49 3137SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
093d3ff1
RD
3138 wxIcon* icon = new wxIcon();
3139 icon->CopyFromBitmap(bmp);
3140 return icon;
3141 }
0085ce49 3142SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
093d3ff1
RD
3143 char** cArray = NULL;
3144 wxIcon* icon;
d14a1e28 3145
093d3ff1
RD
3146 cArray = ConvertListOfStrings(listOfStrings);
3147 if (! cArray)
3148 return NULL;
3149 icon = new wxIcon(cArray);
3150 delete [] cArray;
3151 return icon;
3152 }
0085ce49 3153SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
d14a1e28
RD
3154
3155
d14a1e28 3156
093d3ff1 3157 return new wxIconLocation(*filename);
d14a1e28 3158
093d3ff1 3159 }
0085ce49 3160SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
d14a1e28
RD
3161
3162
d14a1e28 3163
093d3ff1 3164 // do nothing
d14a1e28 3165
093d3ff1 3166 }
0085ce49 3167SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
b88bce5f
RD
3168
3169
093d3ff1
RD
3170
3171 return -1;
3172
3173 }
0085ce49 3174SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
093d3ff1 3175#ifdef __WXGTK__
7557b9b5
RD
3176 wxImage img(cursorName, type);
3177 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3178 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3179 return new wxCursor(img);
093d3ff1 3180#else
7557b9b5 3181 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
093d3ff1
RD
3182#endif
3183 }
3184
3185
0085ce49 3186SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
093d3ff1
RD
3187 (*self) ++;
3188 }
0085ce49 3189SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
093d3ff1
RD
3190 return self->operator bool();
3191 }
3192
3193#include <wx/fontutil.h>
3194#include <wx/fontmap.h>
3195#include <wx/fontenum.h>
3196
0085ce49 3197SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
093d3ff1
RD
3198 return self->ToString();
3199 }
3200
3201 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3202 static wxNativeEncodingInfo info;
3203 if ( wxGetNativeFontEncoding(encoding, &info) )
3204 return &info;
3205 else
3206 return NULL;
3207 }
3208
0085ce49
RD
3209
3210SWIGINTERNINLINE PyObject *
3211SWIG_From_size_t (size_t value)
3212{
3213 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3214}
3215
3216
3217SWIGINTERNINLINE int
3218SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3219{
3220 unsigned long v;
3221 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3222 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3223 return res;
3224}
3225
3226SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
093d3ff1
RD
3227 wxFontEncoding alt_enc;
3228 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3229 return PyInt_FromLong(alt_enc);
3230 else {
3231 Py_INCREF(Py_None);
3232 return Py_None;
3233 }
3234 }
0085ce49 3235SWIGINTERN wxFont *new_wxFont(wxString const &info){
a97cefba
RD
3236 wxNativeFontInfo nfi;
3237 nfi.FromString(info);
3238 return new wxFont(nfi);
3239 }
0085ce49 3240SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3241 return wxFont::New(pointSize, family, flags, face, encoding);
3242 }
0085ce49 3243SWIGINTERN 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
3244 return wxFontBase::New(pixelSize, family,
3245 style, weight, underlined,
3246 face, encoding);
3247 }
0085ce49 3248SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3249 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3250 }
0085ce49
RD
3251SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3252SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
093d3ff1
RD
3253
3254class wxPyFontEnumerator : public wxFontEnumerator {
3255public:
3256 wxPyFontEnumerator() {}
3257 ~wxPyFontEnumerator() {}
3258
3259 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3260 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3261
3262 PYPRIVATE;
3263};
3264
3265IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3266IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3267
3268
704eda0c 3269SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
e9d6f3a4 3270 PyObject* ret;
704eda0c 3271 wxArrayString arr = wxFontEnumerator::GetEncodings();
e9d6f3a4 3272 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3273 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3274 wxPyEndBlockThreads(blocked);
3275 return ret;
093d3ff1 3276 }
704eda0c 3277SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
e9d6f3a4 3278 PyObject* ret;
704eda0c 3279 wxArrayString arr = wxFontEnumerator::GetFacenames();
e9d6f3a4 3280 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3281 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3282 wxPyEndBlockThreads(blocked);
3283 return ret;
093d3ff1
RD
3284 }
3285
3286#include <locale.h>
3287
0085ce49 3288SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
093d3ff1
RD
3289 wxLocale* loc;
3290 if (language == -1)
3291 loc = new wxLocale();
3292 else
3293 loc = new wxLocale(language, flags);
3294 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3295 // for the floating point conversions and such to work right.
3296#if PY_VERSION_HEX < 0x02040000
3297 setlocale(LC_NUMERIC, "C");
3298#endif
3299 return loc;
3300 }
0085ce49 3301SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
093d3ff1
RD
3302 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3303 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3304 // for the floating point conversions and such to work right.
3305#if PY_VERSION_HEX < 0x02040000
3306 setlocale(LC_NUMERIC, "C");
3307#endif
3308 return rc;
3309 }
0085ce49 3310SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
093d3ff1
RD
3311 bool rc = self->Init(language, flags);
3312 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3313 // for the floating point conversions and such to work right.
3314#if PY_VERSION_HEX < 0x02040000
3315 setlocale(LC_NUMERIC, "C");
3316#endif
3317 return rc;
3318 }
3319
fc46b7f3
RD
3320class wxPyLocale : public wxLocale
3321{
3322public:
3323 wxPyLocale();
3324
3325 wxPyLocale(const wxChar *szName, // name (for messages)
3326 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3327 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3328 bool bLoadDefault = true, // preload wxstd.mo?
3329 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3330
3331 wxPyLocale(int language, // wxLanguage id or custom language
3332 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3333
3334 ~wxPyLocale();
3335
3336 virtual const wxChar *GetString(const wxChar *szOrigString,
3337 const wxChar *szDomain = NULL) const;
3338 virtual const wxChar *GetString(const wxChar *szOrigString,
3339 const wxChar *szOrigString2, size_t n,
3340 const wxChar *szDomain = NULL) const;
3341
3342 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3343 const wxChar *szDomain = NULL) const;
3344 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3345 const wxChar *szOrigString2, size_t n,
3346 const wxChar *szDomain = NULL) const;
3347
3348 PYPRIVATE;
3349private:
3350 DECLARE_NO_COPY_CLASS(wxPyLocale)
3351};
3352
3353wxPyLocale::wxPyLocale() : wxLocale()
3354{
3355}
3356
3357wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3358 const wxChar *szShort, // dir prefix (for msg files)
3359 const wxChar *szLocale, // locale (for setlocale)
3360 bool bLoadDefault, // preload wxstd.mo?
3361 bool bConvertEncoding) // convert Win<->Unix if necessary?
3362 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3363{
3364}
3365
3366wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3367 int flags) : wxLocale(language, flags)
3368{
3369}
3370
3371wxPyLocale::~wxPyLocale()
3372{
3373}
3374
3375const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3376 const wxChar *szDomain) const
3377{
3378 wxChar *str = GetSingularString(szOrigString, szDomain);
3379 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3380}
3381
3382const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3383 const wxChar *szOrigString2, size_t n,
3384 const wxChar *szDomain) const
3385{
3386 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3387 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3388}
3389
3390wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3391 const wxChar *szDomain) const
3392{
3393 bool found;
3394 static wxString str;
3395 str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string.
3396 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3397 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3398 PyObject* param1 = wx2PyString(szOrigString);
3399 PyObject* param2 = wx2PyString(szDomain);
3400 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3401 Py_DECREF(param1);
3402 Py_DECREF(param2);
3403 if (ret) {
3404 str = Py2wxString(ret);
3405 Py_DECREF(ret);
3406 }
3407 }
3408 wxPyEndBlockThreads(blocked);
3409 return (found ? (wxChar*)str.c_str() : NULL);
3410}
3411
3412wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3413 const wxChar *szOrigString2, size_t n,
3414 const wxChar *szDomain) const
3415{
3416 bool found;
3417 static wxString str;
3418 str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string.
3419 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3420 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3421 PyObject* param1 = wx2PyString(szOrigString);
3422 PyObject* param2 = wx2PyString(szOrigString2);
3423 PyObject* param4 = wx2PyString(szDomain);
3424 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3425 Py_DECREF(param1);
3426 Py_DECREF(param2);
3427 Py_DECREF(param4);
3428 if( ret) {
3429 str = Py2wxString(ret);
3430 Py_DECREF(ret);
3431 }
3432 }
3433 wxPyEndBlockThreads(blocked);
3434 return (found ? (wxChar*)str.c_str() : NULL);
3435}
3436
3437SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3438 wxPyLocale* loc;
3439 if (language == -1)
3440 loc = new wxPyLocale();
3441 else
3442 loc = new wxPyLocale(language, flags);
3443 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3444 // for the floating point conversions and such to work right.
3445#if PY_VERSION_HEX < 0x02040000
3446 setlocale(LC_NUMERIC, "C");
3447#endif
3448 return loc;
3449 }
3450
093d3ff1
RD
3451#include "wx/wxPython/pydrawxxx.h"
3452
0085ce49 3453SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
093d3ff1
RD
3454 wxColour col;
3455 self->GetPixel(x, y, &col);
3456 return col;
3457 }
0085ce49 3458SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
093d3ff1
RD
3459 wxColour col;
3460 self->GetPixel(pt, &col);
3461 return col;
3462 }
3463
3464SWIGINTERN int
0085ce49 3465SWIG_AsVal_double (PyObject *obj, double* val)
093d3ff1
RD
3466{
3467 if (PyNumber_Check(obj)) {
3468 if (val) *val = PyFloat_AsDouble(obj);
0085ce49 3469 return SWIG_OK;
093d3ff1 3470 }
0085ce49 3471 return SWIG_TypeError;
093d3ff1
RD
3472}
3473
0085ce49 3474SWIGINTERN 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
3475 wxRect rv;
3476 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3477 return rv;
3478 }
0085ce49 3479SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
093d3ff1
RD
3480 wxRect rect;
3481 self->GetClippingBox(rect);
3482 return rect;
3483 }
0085ce49 3484SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
093d3ff1
RD
3485 wxArrayInt widths;
3486 self->GetPartialTextExtents(text, widths);
3487 return widths;
3488 }
3489
0085ce49 3490 #define SWIG_From_double PyFloat_FromDouble
093d3ff1 3491
0085ce49 3492SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3493 self->SetLogicalOrigin(point.x, point.y);
3494 }
0085ce49 3495SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3496 self->SetDeviceOrigin(point.x, point.y);
3497 }
0085ce49 3498SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
093d3ff1
RD
3499 self->CalcBoundingBox(point.x, point.y);
3500 }
0085ce49 3501SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3502 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3503 }
0085ce49 3504SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3505 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3506 }
0085ce49 3507SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3508 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3509 }
0085ce49 3510SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3511 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3512 }
0085ce49 3513SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
093d3ff1
RD
3514 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3515 }
0085ce49 3516SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
093d3ff1
RD
3517 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3518 }
3519
3520static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3521 *x1 = dc->MinX();
3522 *y1 = dc->MinY();
3523 *x2 = dc->MaxX();
3524 *y2 = dc->MaxY();
3525}
3526
3527
3528#include <wx/dcbuffer.h>
3529
3530
3531#include <wx/dcps.h>
3532
3533
3534class wxMetaFile : public wxObject {
3535public:
3536 wxMetaFile(const wxString&)
3537 { wxPyRaiseNotImplemented(); }
3538};
3539
3540class wxMetaFileDC : public wxClientDC {
3541public:
3542 wxMetaFileDC(const wxString&, int, int, const wxString&)
3543 { wxPyRaiseNotImplemented(); }
3544};
3545
3546
3547
3548class wxPrinterDC : public wxClientDC {
3549public:
3550 wxPrinterDC(const wxPrintData&)
3551 { wxPyRaiseNotImplemented(); }
3552
3553};
3554
3555
72ef6efb
RD
3556#include <wx/graphics.h>
3557
3558
3559#if !wxUSE_GRAPHICS_CONTEXT
3560// C++ stub classes for platforms that don't have wxGraphicsContext yet.
3561
3562class wxGraphicsPath
3563{
3564public :
3565 wxGraphicsPath() {
3566 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3567 PyErr_SetString(PyExc_NotImplementedError,
3568 "wxGraphicsPath is not available on this platform.");
3569 wxPyEndBlockThreads(blocked);
3570 }
3571 virtual ~wxGraphicsPath() {}
3572
3573 void MoveToPoint( wxDouble, wxDouble ) {}
3574 void AddLineToPoint( wxDouble, wxDouble ) {}
3575 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
3576 void CloseSubpath() {}
3577 void GetCurrentPoint( wxDouble&, wxDouble&) {}
3578 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
3579
3580 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3581 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3582 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3583 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3584
3585 wxPoint2DDouble GetCurrentPoint() { return wxPoint2DDouble(0,0); }
3586 void MoveToPoint( const wxPoint2DDouble& ) {}
3587 void AddLineToPoint( const wxPoint2DDouble&) {}
3588 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3589 void AddArc( const wxPoint2DDouble&, wxDouble, wxDouble, wxDouble, bool) {}
3590};
3591
3592
3593class wxGraphicsContext
3594{
3595public:
3596 wxGraphicsContext() {
3597 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3598 PyErr_SetString(PyExc_NotImplementedError,
3599 "wxGraphicsContext is not available on this platform.");
3600 wxPyEndBlockThreads(blocked);
3601 }
3602 virtual ~wxGraphicsContext() {}
3603
3604 static wxGraphicsContext* Create( const wxWindowDC&) {
3605 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3606 PyErr_SetString(PyExc_NotImplementedError,
3607 "wxGraphicsPath is not available on this platform.");
3608 wxPyEndBlockThreads(blocked);
3609 return NULL;
3610 }
3611
3612 wxGraphicsPath * CreatePath() { return NULL; }
3613 void PushState() {}
3614 void PopState() {}
3615 void Clip( const wxRegion & ) {}
3616 void Translate( wxDouble , wxDouble ) {}
3617 void Scale( wxDouble , wxDouble ) {}
3618 void Rotate( wxDouble ) {}
3619 void SetPen( const wxPen & ) {}
3620 void SetBrush( const wxBrush & ) {}
3621 void SetLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3622 const wxColour&, const wxColour&) {}
3623 void SetRadialGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3624 const wxColour &, const wxColour &) {}
3625 void SetFont( const wxFont & ) {}
3626 void SetTextColor( const wxColour & ) {}
3627 void StrokePath( const wxGraphicsPath * ) {}
3628 void FillPath( const wxGraphicsPath *, int ) {}
3629 void DrawPath( const wxGraphicsPath *, int ) {}
3630 void DrawText( const wxString &, wxDouble , wxDouble ) {}
3631 void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3632 void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3633 wxDouble *, wxDouble * ) const {}
3634 void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3635 void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3636 void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3637 void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3638 void StrokeLines( size_t , const wxPoint2DDouble *) {}
3639 void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3640 void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3641 void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3642 void DrawEllipse( wxDouble , wxDouble, wxDouble , wxDouble) {}
3643 void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3644};
3645
3646
3647class wxGCDC: public wxWindowDC
3648{
3649public:
3650 wxGCDC(const wxWindowDC&) {
3651 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3652 PyErr_SetString(PyExc_NotImplementedError,
3653 "wxGCDC is not available on this platform.");
3654 wxPyEndBlockThreads(blocked);
3655 }
3656
3657 wxGCDC() {
3658 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3659 PyErr_SetString(PyExc_NotImplementedError,
3660 "wxGCDC is not available on this platform.");
3661 wxPyEndBlockThreads(blocked);
3662 }
3663
3664 virtual ~wxGCDC() {}
3665
3666 wxGraphicsContext* GetGraphicContext() { return NULL; }
3667};
3668
3669#endif
3670
b39fe951
RD
3671SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3672 wxArrayDouble widths;
3673 self->GetPartialTextExtents(text, widths);
3674 return widths;
3675 }
f8eb59b9 3676SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
b39fe951
RD
3677 size_t c1, c2, count;
3678 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3679 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3680
3681 if ( beginP != NULL && endP != NULL )
3682 {
3683 count = wxMin(c1, c2);
3684 self->StrokeLines(count, beginP, endP);
3685 }
3686 delete [] beginP;
3687 delete [] endP;
3688 }
72ef6efb 3689
093d3ff1 3690
0085ce49 3691SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
093d3ff1
RD
3692 self->AddColour(name, wxColour(red, green, blue));
3693 }
3694
50efceee
RD
3695 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3696 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3697 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3698 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3699
3700
093d3ff1
RD
3701#include <wx/effects.h>
3702
8d38bd1d
RD
3703
3704#include "wx/renderer.h"
3705
3706
32fe5131 3707SWIGINTERNINLINE PyObject*
0085ce49 3708 SWIG_From_bool (bool value)
8d38bd1d 3709{
0085ce49 3710 return PyBool_FromLong(value ? 1 : 0);
8d38bd1d
RD
3711}
3712
27e45892
RD
3713
3714#include "wx/wxPython/pseudodc.h"
3715
3716SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3717 wxRect rect;
3718 self->GetIdBounds(id, rect);
3719 return rect;
3720 }
093d3ff1
RD
3721#ifdef __cplusplus
3722extern "C" {
3723#endif
0085ce49
RD
3724SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3725 PyObject *resultobj = 0;
3726 wxGDIObject *result = 0 ;
3727
3728 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3729 {
3730 if (!wxPyCheckForApp()) SWIG_fail;
3731 PyThreadState* __tstate = wxPyBeginAllowThreads();
3732 result = (wxGDIObject *)new wxGDIObject();
3733 wxPyEndAllowThreads(__tstate);
3734 if (PyErr_Occurred()) SWIG_fail;
3735 }
3736 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3737 return resultobj;
3738fail:
3739 return NULL;
093d3ff1
RD
3740}
3741
3742
0085ce49
RD
3743SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3744 PyObject *resultobj = 0;
3745 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3746 void *argp1 = 0 ;
3747 int res1 = 0 ;
3748 PyObject *swig_obj[1] ;
3749
3750 if (!args) SWIG_fail;
3751 swig_obj[0] = args;
3752 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3753 if (!SWIG_IsOK(res1)) {
3754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3755 }
3756 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3757 {
3758 PyThreadState* __tstate = wxPyBeginAllowThreads();
3759 delete arg1;
093d3ff1 3760
0085ce49
RD
3761 wxPyEndAllowThreads(__tstate);
3762 if (PyErr_Occurred()) SWIG_fail;
3763 }
3764 resultobj = SWIG_Py_Void();
3765 return resultobj;
3766fail:
3767 return NULL;
d14a1e28
RD
3768}
3769
3770
0085ce49
RD
3771SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3772 PyObject *resultobj = 0;
3773 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3774 bool result;
3775 void *argp1 = 0 ;
3776 int res1 = 0 ;
3777 PyObject *swig_obj[1] ;
3778
3779 if (!args) SWIG_fail;
3780 swig_obj[0] = args;
3781 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3782 if (!SWIG_IsOK(res1)) {
3783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3784 }
3785 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3786 {
3787 PyThreadState* __tstate = wxPyBeginAllowThreads();
3788 result = (bool)(arg1)->IsNull();
3789 wxPyEndAllowThreads(__tstate);
3790 if (PyErr_Occurred()) SWIG_fail;
3791 }
3792 {
3793 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3794 }
3795 return resultobj;
3796fail:
3797 return NULL;
3798}
3799
3800
3801SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3802 PyObject *obj;
3803 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3804 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3805 return SWIG_Py_Void();
3806}
3807
3808SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3809 return SWIG_Python_InitShadowInstance(args);
3810}
3811
3812SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3813 PyObject *resultobj = 0;
3814 byte arg1 = (byte) 0 ;
3815 byte arg2 = (byte) 0 ;
3816 byte arg3 = (byte) 0 ;
fc46b7f3 3817 byte arg4 = (byte) wxALPHA_OPAQUE ;
0085ce49
RD
3818 wxColour *result = 0 ;
3819 unsigned char val1 ;
3820 int ecode1 = 0 ;
3821 unsigned char val2 ;
3822 int ecode2 = 0 ;
3823 unsigned char val3 ;
3824 int ecode3 = 0 ;
fc46b7f3
RD
3825 unsigned char val4 ;
3826 int ecode4 = 0 ;
0085ce49
RD
3827 PyObject * obj0 = 0 ;
3828 PyObject * obj1 = 0 ;
3829 PyObject * obj2 = 0 ;
fc46b7f3 3830 PyObject * obj3 = 0 ;
0085ce49 3831 char * kwnames[] = {
fc46b7f3 3832 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
0085ce49
RD
3833 };
3834
fc46b7f3 3835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
0085ce49
RD
3836 if (obj0) {
3837 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3838 if (!SWIG_IsOK(ecode1)) {
3839 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3840 }
3841 arg1 = static_cast< byte >(val1);
3842 }
3843 if (obj1) {
3844 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3845 if (!SWIG_IsOK(ecode2)) {
3846 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3847 }
3848 arg2 = static_cast< byte >(val2);
3849 }
3850 if (obj2) {
3851 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3852 if (!SWIG_IsOK(ecode3)) {
3853 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3854 }
3855 arg3 = static_cast< byte >(val3);
3856 }
fc46b7f3
RD
3857 if (obj3) {
3858 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3859 if (!SWIG_IsOK(ecode4)) {
3860 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
3861 }
3862 arg4 = static_cast< byte >(val4);
3863 }
0085ce49
RD
3864 {
3865 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 3866 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
0085ce49
RD
3867 wxPyEndAllowThreads(__tstate);
3868 if (PyErr_Occurred()) SWIG_fail;
3869 }
3870 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3871 return resultobj;
3872fail:
3873 return NULL;
d14a1e28
RD
3874}
3875
3876
0085ce49
RD
3877SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3878 PyObject *resultobj = 0;
3879 wxString *arg1 = 0 ;
3880 wxColour *result = 0 ;
3881 bool temp1 = false ;
3882 PyObject * obj0 = 0 ;
3883 char * kwnames[] = {
3884 (char *) "colorName", NULL
3885 };
3886
3887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3888 {
3889 arg1 = wxString_in_helper(obj0);
3890 if (arg1 == NULL) SWIG_fail;
3891 temp1 = true;
3892 }
3893 {
3894 if (!wxPyCheckForApp()) SWIG_fail;
3895 PyThreadState* __tstate = wxPyBeginAllowThreads();
3896 result = (wxColour *)new wxColour((wxString const &)*arg1);
3897 wxPyEndAllowThreads(__tstate);
3898 if (PyErr_Occurred()) SWIG_fail;
3899 }
3900 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3901 {
3902 if (temp1)
3903 delete arg1;
3904 }
3905 return resultobj;
3906fail:
3907 {
3908 if (temp1)
3909 delete arg1;
3910 }
3911 return NULL;
d14a1e28
RD
3912}
3913
3914
0085ce49
RD
3915SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3916 PyObject *resultobj = 0;
3917 unsigned long arg1 ;
3918 wxColour *result = 0 ;
3919 unsigned long val1 ;
3920 int ecode1 = 0 ;
3921 PyObject * obj0 = 0 ;
3922 char * kwnames[] = {
3923 (char *) "colRGB", NULL
3924 };
3925
3926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3927 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3928 if (!SWIG_IsOK(ecode1)) {
3929 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3930 }
3931 arg1 = static_cast< unsigned long >(val1);
3932 {
3933 PyThreadState* __tstate = wxPyBeginAllowThreads();
3934 result = (wxColour *)new wxColour(arg1);
3935 wxPyEndAllowThreads(__tstate);
3936 if (PyErr_Occurred()) SWIG_fail;
3937 }
3938 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3939 return resultobj;
3940fail:
3941 return NULL;
d14a1e28
RD
3942}
3943
3944
0085ce49
RD
3945SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3946 PyObject *resultobj = 0;
3947 wxColour *arg1 = (wxColour *) 0 ;
3948 void *argp1 = 0 ;
3949 int res1 = 0 ;
3950 PyObject *swig_obj[1] ;
3951
3952 if (!args) SWIG_fail;
3953 swig_obj[0] = args;
3954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3955 if (!SWIG_IsOK(res1)) {
3956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3957 }
3958 arg1 = reinterpret_cast< wxColour * >(argp1);
3959 {
3960 PyThreadState* __tstate = wxPyBeginAllowThreads();
3961 delete arg1;
d14a1e28 3962
0085ce49
RD
3963 wxPyEndAllowThreads(__tstate);
3964 if (PyErr_Occurred()) SWIG_fail;
3965 }
3966 resultobj = SWIG_Py_Void();
3967 return resultobj;
3968fail:
3969 return NULL;
d14a1e28
RD
3970}
3971
3972
0085ce49
RD
3973SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3974 PyObject *resultobj = 0;
3975 wxColour *arg1 = (wxColour *) 0 ;
3976 byte result;
3977 void *argp1 = 0 ;
3978 int res1 = 0 ;
3979 PyObject *swig_obj[1] ;
3980
3981 if (!args) SWIG_fail;
3982 swig_obj[0] = args;
3983 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3984 if (!SWIG_IsOK(res1)) {
3985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
3986 }
3987 arg1 = reinterpret_cast< wxColour * >(argp1);
3988 {
3989 PyThreadState* __tstate = wxPyBeginAllowThreads();
3990 result = (byte)(arg1)->Red();
3991 wxPyEndAllowThreads(__tstate);
3992 if (PyErr_Occurred()) SWIG_fail;
3993 }
3994 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3995 return resultobj;
3996fail:
3997 return NULL;
d14a1e28
RD
3998}
3999
4000
0085ce49
RD
4001SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4002 PyObject *resultobj = 0;
4003 wxColour *arg1 = (wxColour *) 0 ;
4004 byte result;
4005 void *argp1 = 0 ;
4006 int res1 = 0 ;
4007 PyObject *swig_obj[1] ;
4008
4009 if (!args) SWIG_fail;
4010 swig_obj[0] = args;
4011 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4012 if (!SWIG_IsOK(res1)) {
4013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4014 }
4015 arg1 = reinterpret_cast< wxColour * >(argp1);
4016 {
4017 PyThreadState* __tstate = wxPyBeginAllowThreads();
4018 result = (byte)(arg1)->Green();
4019 wxPyEndAllowThreads(__tstate);
4020 if (PyErr_Occurred()) SWIG_fail;
4021 }
4022 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4023 return resultobj;
4024fail:
4025 return NULL;
5cbf236d
RD
4026}
4027
4028
0085ce49
RD
4029SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4030 PyObject *resultobj = 0;
4031 wxColour *arg1 = (wxColour *) 0 ;
4032 byte result;
4033 void *argp1 = 0 ;
4034 int res1 = 0 ;
4035 PyObject *swig_obj[1] ;
4036
4037 if (!args) SWIG_fail;
4038 swig_obj[0] = args;
4039 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4040 if (!SWIG_IsOK(res1)) {
4041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4042 }
4043 arg1 = reinterpret_cast< wxColour * >(argp1);
4044 {
4045 PyThreadState* __tstate = wxPyBeginAllowThreads();
4046 result = (byte)(arg1)->Blue();
4047 wxPyEndAllowThreads(__tstate);
4048 if (PyErr_Occurred()) SWIG_fail;
4049 }
4050 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4051 return resultobj;
4052fail:
4053 return NULL;
d14a1e28
RD
4054}
4055
4056
fc46b7f3
RD
4057SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4058 PyObject *resultobj = 0;
4059 wxColour *arg1 = (wxColour *) 0 ;
4060 byte result;
4061 void *argp1 = 0 ;
4062 int res1 = 0 ;
4063 PyObject *swig_obj[1] ;
4064
4065 if (!args) SWIG_fail;
4066 swig_obj[0] = args;
4067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4068 if (!SWIG_IsOK(res1)) {
4069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4070 }
4071 arg1 = reinterpret_cast< wxColour * >(argp1);
4072 {
4073 PyThreadState* __tstate = wxPyBeginAllowThreads();
4074 result = (byte)(arg1)->Alpha();
4075 wxPyEndAllowThreads(__tstate);
4076 if (PyErr_Occurred()) SWIG_fail;
4077 }
4078 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4079 return resultobj;
4080fail:
4081 return NULL;
4082}
4083
4084
b39fe951 4085SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
4086 PyObject *resultobj = 0;
4087 wxColour *arg1 = (wxColour *) 0 ;
4088 bool result;
4089 void *argp1 = 0 ;
4090 int res1 = 0 ;
4091 PyObject *swig_obj[1] ;
4092
4093 if (!args) SWIG_fail;
4094 swig_obj[0] = args;
4095 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4096 if (!SWIG_IsOK(res1)) {
b39fe951 4097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
0085ce49
RD
4098 }
4099 arg1 = reinterpret_cast< wxColour * >(argp1);
4100 {
4101 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 4102 result = (bool)(arg1)->IsOk();
0085ce49
RD
4103 wxPyEndAllowThreads(__tstate);
4104 if (PyErr_Occurred()) SWIG_fail;
4105 }
4106 {
4107 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4108 }
4109 return resultobj;
4110fail:
4111 return NULL;
4112}
4113
4114
4115SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4116 PyObject *resultobj = 0;
4117 wxColour *arg1 = (wxColour *) 0 ;
4118 byte arg2 ;
4119 byte arg3 ;
4120 byte arg4 ;
fc46b7f3 4121 byte arg5 = (byte) wxALPHA_OPAQUE ;
0085ce49
RD
4122 void *argp1 = 0 ;
4123 int res1 = 0 ;
4124 unsigned char val2 ;
4125 int ecode2 = 0 ;
4126 unsigned char val3 ;
4127 int ecode3 = 0 ;
4128 unsigned char val4 ;
4129 int ecode4 = 0 ;
fc46b7f3
RD
4130 unsigned char val5 ;
4131 int ecode5 = 0 ;
0085ce49
RD
4132 PyObject * obj0 = 0 ;
4133 PyObject * obj1 = 0 ;
4134 PyObject * obj2 = 0 ;
4135 PyObject * obj3 = 0 ;
fc46b7f3 4136 PyObject * obj4 = 0 ;
0085ce49 4137 char * kwnames[] = {
fc46b7f3 4138 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
0085ce49
RD
4139 };
4140
fc46b7f3 4141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
0085ce49
RD
4142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4143 if (!SWIG_IsOK(res1)) {
4144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4145 }
4146 arg1 = reinterpret_cast< wxColour * >(argp1);
4147 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4148 if (!SWIG_IsOK(ecode2)) {
4149 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4150 }
4151 arg2 = static_cast< byte >(val2);
4152 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4153 if (!SWIG_IsOK(ecode3)) {
4154 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4155 }
4156 arg3 = static_cast< byte >(val3);
4157 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4158 if (!SWIG_IsOK(ecode4)) {
4159 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4160 }
4161 arg4 = static_cast< byte >(val4);
fc46b7f3
RD
4162 if (obj4) {
4163 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4164 if (!SWIG_IsOK(ecode5)) {
4165 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4166 }
4167 arg5 = static_cast< byte >(val5);
4168 }
0085ce49
RD
4169 {
4170 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4171 (arg1)->Set(arg2,arg3,arg4,arg5);
0085ce49
RD
4172 wxPyEndAllowThreads(__tstate);
4173 if (PyErr_Occurred()) SWIG_fail;
4174 }
4175 resultobj = SWIG_Py_Void();
4176 return resultobj;
4177fail:
4178 return NULL;
4179}
4180
4181
4182SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4183 PyObject *resultobj = 0;
4184 wxColour *arg1 = (wxColour *) 0 ;
4185 unsigned long arg2 ;
4186 void *argp1 = 0 ;
4187 int res1 = 0 ;
4188 unsigned long val2 ;
4189 int ecode2 = 0 ;
4190 PyObject * obj0 = 0 ;
4191 PyObject * obj1 = 0 ;
4192 char * kwnames[] = {
4193 (char *) "self",(char *) "colRGB", NULL
4194 };
4195
4196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4198 if (!SWIG_IsOK(res1)) {
4199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4200 }
4201 arg1 = reinterpret_cast< wxColour * >(argp1);
4202 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4203 if (!SWIG_IsOK(ecode2)) {
4204 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4205 }
4206 arg2 = static_cast< unsigned long >(val2);
4207 {
4208 PyThreadState* __tstate = wxPyBeginAllowThreads();
4209 (arg1)->Set(arg2);
4210 wxPyEndAllowThreads(__tstate);
4211 if (PyErr_Occurred()) SWIG_fail;
4212 }
4213 resultobj = SWIG_Py_Void();
4214 return resultobj;
4215fail:
4216 return NULL;
4217}
4218
4219
4220SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4221 PyObject *resultobj = 0;
4222 wxColour *arg1 = (wxColour *) 0 ;
4223 wxString *arg2 = 0 ;
4224 void *argp1 = 0 ;
4225 int res1 = 0 ;
4226 bool temp2 = false ;
4227 PyObject * obj0 = 0 ;
4228 PyObject * obj1 = 0 ;
4229 char * kwnames[] = {
4230 (char *) "self",(char *) "colourName", NULL
4231 };
4232
4233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4235 if (!SWIG_IsOK(res1)) {
4236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4237 }
4238 arg1 = reinterpret_cast< wxColour * >(argp1);
4239 {
4240 arg2 = wxString_in_helper(obj1);
4241 if (arg2 == NULL) SWIG_fail;
4242 temp2 = true;
4243 }
4244 {
4245 PyThreadState* __tstate = wxPyBeginAllowThreads();
72ef6efb 4246 (arg1)->Set((wxString const &)*arg2);
0085ce49
RD
4247 wxPyEndAllowThreads(__tstate);
4248 if (PyErr_Occurred()) SWIG_fail;
4249 }
4250 resultobj = SWIG_Py_Void();
4251 {
4252 if (temp2)
4253 delete arg2;
4254 }
4255 return resultobj;
4256fail:
4257 {
4258 if (temp2)
4259 delete arg2;
4260 }
4261 return NULL;
d14a1e28
RD
4262}
4263
4264
01f6b6d3
RD
4265SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4266 PyObject *resultobj = 0;
4267 wxColour *arg1 = (wxColour *) 0 ;
4268 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4269 wxString result;
4270 void *argp1 = 0 ;
4271 int res1 = 0 ;
4272 long val2 ;
4273 int ecode2 = 0 ;
4274 PyObject * obj0 = 0 ;
4275 PyObject * obj1 = 0 ;
4276 char * kwnames[] = {
4277 (char *) "self",(char *) "flags", NULL
4278 };
4279
4280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4282 if (!SWIG_IsOK(res1)) {
4283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4284 }
4285 arg1 = reinterpret_cast< wxColour * >(argp1);
4286 if (obj1) {
4287 ecode2 = SWIG_AsVal_long(obj1, &val2);
4288 if (!SWIG_IsOK(ecode2)) {
4289 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4290 }
4291 arg2 = static_cast< long >(val2);
4292 }
4293 {
4294 PyThreadState* __tstate = wxPyBeginAllowThreads();
4295 result = ((wxColour const *)arg1)->GetAsString(arg2);
4296 wxPyEndAllowThreads(__tstate);
4297 if (PyErr_Occurred()) SWIG_fail;
4298 }
4299 {
4300#if wxUSE_UNICODE
4301 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4302#else
4303 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4304#endif
4305 }
4306 return resultobj;
4307fail:
4308 return NULL;
4309}
4310
4311
0085ce49
RD
4312SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4313 PyObject *resultobj = 0;
4314 wxColour *arg1 = (wxColour *) 0 ;
4315 long result;
4316 void *argp1 = 0 ;
4317 int res1 = 0 ;
4318 PyObject *swig_obj[1] ;
4319
4320 if (!args) SWIG_fail;
4321 swig_obj[0] = args;
4322 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4323 if (!SWIG_IsOK(res1)) {
4324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4325 }
4326 arg1 = reinterpret_cast< wxColour * >(argp1);
4327 {
4328 PyThreadState* __tstate = wxPyBeginAllowThreads();
4329 result = (long)((wxColour const *)arg1)->GetPixel();
4330 wxPyEndAllowThreads(__tstate);
4331 if (PyErr_Occurred()) SWIG_fail;
4332 }
4333 resultobj = SWIG_From_long(static_cast< long >(result));
4334 return resultobj;
4335fail:
4336 return NULL;
4337}
4338
4339
4340SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4341 PyObject *resultobj = 0;
4342 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4343 PyObject *arg2 = (PyObject *) 0 ;
0085ce49
RD
4344 bool result;
4345 void *argp1 = 0 ;
4346 int res1 = 0 ;
0085ce49
RD
4347 PyObject * obj0 = 0 ;
4348 PyObject * obj1 = 0 ;
4349 char * kwnames[] = {
e9d6f3a4 4350 (char *) "self",(char *) "other", NULL
0085ce49
RD
4351 };
4352
4353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4355 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
0085ce49
RD
4357 }
4358 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4359 arg2 = obj1;
0085ce49 4360 {
e9d6f3a4 4361 result = (bool)wxColour___eq__(arg1,arg2);
0085ce49
RD
4362 if (PyErr_Occurred()) SWIG_fail;
4363 }
4364 {
4365 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4366 }
4367 return resultobj;
4368fail:
4369 return NULL;
4370}
4371
4372
4373SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4374 PyObject *resultobj = 0;
4375 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4376 PyObject *arg2 = (PyObject *) 0 ;
0085ce49
RD
4377 bool result;
4378 void *argp1 = 0 ;
4379 int res1 = 0 ;
0085ce49
RD
4380 PyObject * obj0 = 0 ;
4381 PyObject * obj1 = 0 ;
4382 char * kwnames[] = {
e9d6f3a4 4383 (char *) "self",(char *) "other", NULL
0085ce49
RD
4384 };
4385
4386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4388 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
0085ce49
RD
4390 }
4391 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4392 arg2 = obj1;
0085ce49 4393 {
e9d6f3a4 4394 result = (bool)wxColour___ne__(arg1,arg2);
0085ce49
RD
4395 if (PyErr_Occurred()) SWIG_fail;
4396 }
4397 {
4398 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4399 }
4400 return resultobj;
4401fail:
4402 return NULL;
d14a1e28
RD
4403}
4404
4405
fc46b7f3 4406SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
4407 PyObject *resultobj = 0;
4408 wxColour *arg1 = (wxColour *) 0 ;
fc46b7f3 4409 bool arg2 = (bool) false ;
0085ce49
RD
4410 PyObject *result = 0 ;
4411 void *argp1 = 0 ;
4412 int res1 = 0 ;
fc46b7f3
RD
4413 bool val2 ;
4414 int ecode2 = 0 ;
4415 PyObject * obj0 = 0 ;
4416 PyObject * obj1 = 0 ;
4417 char * kwnames[] = {
4418 (char *) "self",(char *) "includeAlpha", NULL
4419 };
0085ce49 4420
fc46b7f3
RD
4421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
0085ce49
RD
4423 if (!SWIG_IsOK(res1)) {
4424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4425 }
4426 arg1 = reinterpret_cast< wxColour * >(argp1);
fc46b7f3
RD
4427 if (obj1) {
4428 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4429 if (!SWIG_IsOK(ecode2)) {
4430 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4431 }
4432 arg2 = static_cast< bool >(val2);
4433 }
0085ce49 4434 {
fc46b7f3 4435 result = (PyObject *)wxColour_Get(arg1,arg2);
0085ce49
RD
4436 if (PyErr_Occurred()) SWIG_fail;
4437 }
4438 resultobj = result;
4439 return resultobj;
4440fail:
4441 return NULL;
d14a1e28
RD
4442}
4443
4444
0085ce49
RD
4445SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4446 PyObject *resultobj = 0;
4447 wxColour *arg1 = (wxColour *) 0 ;
4448 unsigned long result;
4449 void *argp1 = 0 ;
4450 int res1 = 0 ;
4451 PyObject *swig_obj[1] ;
4452
4453 if (!args) SWIG_fail;
4454 swig_obj[0] = args;
4455 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4456 if (!SWIG_IsOK(res1)) {
4457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4458 }
4459 arg1 = reinterpret_cast< wxColour * >(argp1);
4460 {
0085ce49 4461 result = (unsigned long)wxColour_GetRGB(arg1);
0085ce49
RD
4462 if (PyErr_Occurred()) SWIG_fail;
4463 }
4464 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4465 return resultobj;
4466fail:
4467 return NULL;
4468}
4469
4470
4471SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4472 PyObject *obj;
4473 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4474 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4475 return SWIG_Py_Void();
4476}
4477
4478SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4479 return SWIG_Python_InitShadowInstance(args);
4480}
4481
4482SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4483 PyObject *resultobj = 0;
4484 int arg1 ;
4485 unsigned char *arg2 = (unsigned char *) 0 ;
4486 unsigned char *arg3 = (unsigned char *) 0 ;
4487 unsigned char *arg4 = (unsigned char *) 0 ;
4488 wxPalette *result = 0 ;
4489 int val1 ;
4490 int ecode1 = 0 ;
4491 void *argp2 = 0 ;
4492 int res2 = 0 ;
4493 void *argp3 = 0 ;
4494 int res3 = 0 ;
4495 void *argp4 = 0 ;
4496 int res4 = 0 ;
4497 PyObject * obj0 = 0 ;
4498 PyObject * obj1 = 0 ;
4499 PyObject * obj2 = 0 ;
4500 PyObject * obj3 = 0 ;
4501 char * kwnames[] = {
4502 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4503 };
4504
4505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4506 ecode1 = SWIG_AsVal_int(obj0, &val1);
4507 if (!SWIG_IsOK(ecode1)) {
4508 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4509 }
4510 arg1 = static_cast< int >(val1);
4511 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4512 if (!SWIG_IsOK(res2)) {
4513 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4514 }
4515 arg2 = reinterpret_cast< unsigned char * >(argp2);
4516 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4517 if (!SWIG_IsOK(res3)) {
4518 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4519 }
4520 arg3 = reinterpret_cast< unsigned char * >(argp3);
4521 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4522 if (!SWIG_IsOK(res4)) {
4523 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4524 }
4525 arg4 = reinterpret_cast< unsigned char * >(argp4);
4526 {
4527 if (!wxPyCheckForApp()) SWIG_fail;
4528 PyThreadState* __tstate = wxPyBeginAllowThreads();
4529 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4530 wxPyEndAllowThreads(__tstate);
4531 if (PyErr_Occurred()) SWIG_fail;
4532 }
4533 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4534 return resultobj;
4535fail:
4536 return NULL;
d14a1e28
RD
4537}
4538
4539
0085ce49
RD
4540SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4541 PyObject *resultobj = 0;
4542 wxPalette *arg1 = (wxPalette *) 0 ;
4543 void *argp1 = 0 ;
4544 int res1 = 0 ;
4545 PyObject *swig_obj[1] ;
4546
4547 if (!args) SWIG_fail;
4548 swig_obj[0] = args;
4549 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4550 if (!SWIG_IsOK(res1)) {
4551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4552 }
4553 arg1 = reinterpret_cast< wxPalette * >(argp1);
4554 {
4555 PyThreadState* __tstate = wxPyBeginAllowThreads();
4556 delete arg1;
d14a1e28 4557
0085ce49
RD
4558 wxPyEndAllowThreads(__tstate);
4559 if (PyErr_Occurred()) SWIG_fail;
4560 }
4561 resultobj = SWIG_Py_Void();
4562 return resultobj;
4563fail:
4564 return NULL;
4565}
4566
4567
4568SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4569 PyObject *resultobj = 0;
4570 wxPalette *arg1 = (wxPalette *) 0 ;
4571 byte arg2 ;
4572 byte arg3 ;
4573 byte arg4 ;
4574 int result;
4575 void *argp1 = 0 ;
4576 int res1 = 0 ;
4577 unsigned char val2 ;
4578 int ecode2 = 0 ;
4579 unsigned char val3 ;
4580 int ecode3 = 0 ;
4581 unsigned char val4 ;
4582 int ecode4 = 0 ;
4583 PyObject * obj0 = 0 ;
4584 PyObject * obj1 = 0 ;
4585 PyObject * obj2 = 0 ;
4586 PyObject * obj3 = 0 ;
4587 char * kwnames[] = {
4588 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4589 };
4590
4591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4593 if (!SWIG_IsOK(res1)) {
4594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4595 }
4596 arg1 = reinterpret_cast< wxPalette * >(argp1);
4597 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4598 if (!SWIG_IsOK(ecode2)) {
4599 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4600 }
4601 arg2 = static_cast< byte >(val2);
4602 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4603 if (!SWIG_IsOK(ecode3)) {
4604 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4605 }
4606 arg3 = static_cast< byte >(val3);
4607 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4608 if (!SWIG_IsOK(ecode4)) {
4609 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4610 }
4611 arg4 = static_cast< byte >(val4);
4612 {
4613 PyThreadState* __tstate = wxPyBeginAllowThreads();
4614 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4615 wxPyEndAllowThreads(__tstate);
4616 if (PyErr_Occurred()) SWIG_fail;
4617 }
4618 resultobj = SWIG_From_int(static_cast< int >(result));
4619 return resultobj;
4620fail:
4621 return NULL;
4622}
4623
4624
4625SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4626 PyObject *resultobj = 0;
4627 wxPalette *arg1 = (wxPalette *) 0 ;
4628 int arg2 ;
4629 byte *arg3 = (byte *) 0 ;
4630 byte *arg4 = (byte *) 0 ;
4631 byte *arg5 = (byte *) 0 ;
4632 bool result;
4633 void *argp1 = 0 ;
4634 int res1 = 0 ;
4635 int val2 ;
4636 int ecode2 = 0 ;
4637 byte temp3 ;
4638 int res3 = SWIG_TMPOBJ ;
4639 byte temp4 ;
4640 int res4 = SWIG_TMPOBJ ;
4641 byte temp5 ;
4642 int res5 = SWIG_TMPOBJ ;
4643 PyObject * obj0 = 0 ;
4644 PyObject * obj1 = 0 ;
4645 char * kwnames[] = {
4646 (char *) "self",(char *) "pixel", NULL
4647 };
4648
4649 arg3 = &temp3;
4650 arg4 = &temp4;
4651 arg5 = &temp5;
4652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4654 if (!SWIG_IsOK(res1)) {
4655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4656 }
4657 arg1 = reinterpret_cast< wxPalette * >(argp1);
4658 ecode2 = SWIG_AsVal_int(obj1, &val2);
4659 if (!SWIG_IsOK(ecode2)) {
4660 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4661 }
4662 arg2 = static_cast< int >(val2);
4663 {
4664 PyThreadState* __tstate = wxPyBeginAllowThreads();
4665 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4666 wxPyEndAllowThreads(__tstate);
4667 if (PyErr_Occurred()) SWIG_fail;
4668 }
4669 {
4670 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4671 }
4672 if (SWIG_IsTmpObj(res3)) {
4673 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4674 } else {
4675 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4676 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4677 }
4678 if (SWIG_IsTmpObj(res4)) {
4679 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4680 } else {
4681 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4682 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4683 }
4684 if (SWIG_IsTmpObj(res5)) {
4685 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4686 } else {
4687 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4688 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4689 }
4690 return resultobj;
4691fail:
4692 return NULL;
d14a1e28
RD
4693}
4694
4695
0085ce49
RD
4696SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4697 PyObject *resultobj = 0;
4698 wxPalette *arg1 = (wxPalette *) 0 ;
4699 int result;
4700 void *argp1 = 0 ;
4701 int res1 = 0 ;
4702 PyObject *swig_obj[1] ;
4703
4704 if (!args) SWIG_fail;
4705 swig_obj[0] = args;
4706 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4707 if (!SWIG_IsOK(res1)) {
4708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4709 }
4710 arg1 = reinterpret_cast< wxPalette * >(argp1);
4711 {
4712 PyThreadState* __tstate = wxPyBeginAllowThreads();
4713 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4714 wxPyEndAllowThreads(__tstate);
4715 if (PyErr_Occurred()) SWIG_fail;
4716 }
4717 resultobj = SWIG_From_int(static_cast< int >(result));
4718 return resultobj;
4719fail:
4720 return NULL;
d14a1e28
RD
4721}
4722
4723
b39fe951 4724SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
4725 PyObject *resultobj = 0;
4726 wxPalette *arg1 = (wxPalette *) 0 ;
4727 bool result;
4728 void *argp1 = 0 ;
4729 int res1 = 0 ;
4730 PyObject *swig_obj[1] ;
4731
4732 if (!args) SWIG_fail;
4733 swig_obj[0] = args;
4734 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4735 if (!SWIG_IsOK(res1)) {
b39fe951 4736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
0085ce49
RD
4737 }
4738 arg1 = reinterpret_cast< wxPalette * >(argp1);
4739 {
4740 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 4741 result = (bool)(arg1)->IsOk();
0085ce49
RD
4742 wxPyEndAllowThreads(__tstate);
4743 if (PyErr_Occurred()) SWIG_fail;
4744 }
4745 {
4746 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4747 }
4748 return resultobj;
4749fail:
4750 return NULL;
4751}
4752
4753
4754SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4755 PyObject *obj;
4756 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4757 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4758 return SWIG_Py_Void();
4759}
4760
4761SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4762 return SWIG_Python_InitShadowInstance(args);
4763}
4764
4765SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4766 PyObject *resultobj = 0;
4767 wxColour *arg1 = 0 ;
4768 int arg2 = (int) 1 ;
4769 int arg3 = (int) wxSOLID ;
4770 wxPen *result = 0 ;
4771 wxColour temp1 ;
4772 int val2 ;
4773 int ecode2 = 0 ;
4774 int val3 ;
4775 int ecode3 = 0 ;
4776 PyObject * obj0 = 0 ;
4777 PyObject * obj1 = 0 ;
4778 PyObject * obj2 = 0 ;
4779 char * kwnames[] = {
4780 (char *) "colour",(char *) "width",(char *) "style", NULL
4781 };
4782
4783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4784 {
4785 arg1 = &temp1;
4786 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4787 }
4788 if (obj1) {
4789 ecode2 = SWIG_AsVal_int(obj1, &val2);
4790 if (!SWIG_IsOK(ecode2)) {
4791 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4792 }
4793 arg2 = static_cast< int >(val2);
4794 }
4795 if (obj2) {
4796 ecode3 = SWIG_AsVal_int(obj2, &val3);
4797 if (!SWIG_IsOK(ecode3)) {
4798 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4799 }
4800 arg3 = static_cast< int >(val3);
4801 }
4802 {
4803 if (!wxPyCheckForApp()) SWIG_fail;
4804 PyThreadState* __tstate = wxPyBeginAllowThreads();
4805 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4806 wxPyEndAllowThreads(__tstate);
4807 if (PyErr_Occurred()) SWIG_fail;
4808 }
4809 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4810 return resultobj;
4811fail:
4812 return NULL;
d14a1e28
RD
4813}
4814
4815
0085ce49
RD
4816SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4817 PyObject *resultobj = 0;
4818 wxPen *arg1 = (wxPen *) 0 ;
4819 void *argp1 = 0 ;
4820 int res1 = 0 ;
4821 PyObject *swig_obj[1] ;
4822
4823 if (!args) SWIG_fail;
4824 swig_obj[0] = args;
4825 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4826 if (!SWIG_IsOK(res1)) {
4827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4828 }
4829 arg1 = reinterpret_cast< wxPen * >(argp1);
4830 {
4831 PyThreadState* __tstate = wxPyBeginAllowThreads();
4832 delete arg1;
d14a1e28 4833
0085ce49
RD
4834 wxPyEndAllowThreads(__tstate);
4835 if (PyErr_Occurred()) SWIG_fail;
4836 }
4837 resultobj = SWIG_Py_Void();
4838 return resultobj;
4839fail:
4840 return NULL;
d14a1e28
RD
4841}
4842
4843
0085ce49
RD
4844SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4845 PyObject *resultobj = 0;
4846 wxPen *arg1 = (wxPen *) 0 ;
4847 int result;
4848 void *argp1 = 0 ;
4849 int res1 = 0 ;
4850 PyObject *swig_obj[1] ;
4851
4852 if (!args) SWIG_fail;
4853 swig_obj[0] = args;
4854 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4855 if (!SWIG_IsOK(res1)) {
4856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4857 }
4858 arg1 = reinterpret_cast< wxPen * >(argp1);
4859 {
4860 PyThreadState* __tstate = wxPyBeginAllowThreads();
4861 result = (int)(arg1)->GetCap();
4862 wxPyEndAllowThreads(__tstate);
4863 if (PyErr_Occurred()) SWIG_fail;
4864 }
4865 resultobj = SWIG_From_int(static_cast< int >(result));
4866 return resultobj;
4867fail:
4868 return NULL;
d14a1e28
RD
4869}
4870
4871
0085ce49
RD
4872SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4873 PyObject *resultobj = 0;
4874 wxPen *arg1 = (wxPen *) 0 ;
4875 wxColour result;
4876 void *argp1 = 0 ;
4877 int res1 = 0 ;
4878 PyObject *swig_obj[1] ;
4879
4880 if (!args) SWIG_fail;
4881 swig_obj[0] = args;
4882 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4883 if (!SWIG_IsOK(res1)) {
4884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4885 }
4886 arg1 = reinterpret_cast< wxPen * >(argp1);
4887 {
4888 PyThreadState* __tstate = wxPyBeginAllowThreads();
4889 result = (arg1)->GetColour();
4890 wxPyEndAllowThreads(__tstate);
4891 if (PyErr_Occurred()) SWIG_fail;
4892 }
4893 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4894 return resultobj;
4895fail:
4896 return NULL;
d14a1e28
RD
4897}
4898
4899
0085ce49
RD
4900SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4901 PyObject *resultobj = 0;
4902 wxPen *arg1 = (wxPen *) 0 ;
4903 int result;
4904 void *argp1 = 0 ;
4905 int res1 = 0 ;
4906 PyObject *swig_obj[1] ;
4907
4908 if (!args) SWIG_fail;
4909 swig_obj[0] = args;
4910 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4911 if (!SWIG_IsOK(res1)) {
4912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4913 }
4914 arg1 = reinterpret_cast< wxPen * >(argp1);
4915 {
4916 PyThreadState* __tstate = wxPyBeginAllowThreads();
4917 result = (int)(arg1)->GetJoin();
4918 wxPyEndAllowThreads(__tstate);
4919 if (PyErr_Occurred()) SWIG_fail;
4920 }
4921 resultobj = SWIG_From_int(static_cast< int >(result));
4922 return resultobj;
4923fail:
4924 return NULL;
d14a1e28
RD
4925}
4926
4927
0085ce49
RD
4928SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4929 PyObject *resultobj = 0;
4930 wxPen *arg1 = (wxPen *) 0 ;
4931 int result;
4932 void *argp1 = 0 ;
4933 int res1 = 0 ;
4934 PyObject *swig_obj[1] ;
4935
4936 if (!args) SWIG_fail;
4937 swig_obj[0] = args;
4938 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4939 if (!SWIG_IsOK(res1)) {
4940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4941 }
4942 arg1 = reinterpret_cast< wxPen * >(argp1);
4943 {
4944 PyThreadState* __tstate = wxPyBeginAllowThreads();
4945 result = (int)(arg1)->GetStyle();
4946 wxPyEndAllowThreads(__tstate);
4947 if (PyErr_Occurred()) SWIG_fail;
4948 }
4949 resultobj = SWIG_From_int(static_cast< int >(result));
4950 return resultobj;
4951fail:
4952 return NULL;
3adfb63b
RD
4953}
4954
4955
0085ce49
RD
4956SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4957 PyObject *resultobj = 0;
4958 wxPen *arg1 = (wxPen *) 0 ;
4959 int result;
4960 void *argp1 = 0 ;
4961 int res1 = 0 ;
4962 PyObject *swig_obj[1] ;
4963
4964 if (!args) SWIG_fail;
4965 swig_obj[0] = args;
4966 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4967 if (!SWIG_IsOK(res1)) {
4968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4969 }
4970 arg1 = reinterpret_cast< wxPen * >(argp1);
4971 {
4972 PyThreadState* __tstate = wxPyBeginAllowThreads();
4973 result = (int)(arg1)->GetWidth();
4974 wxPyEndAllowThreads(__tstate);
4975 if (PyErr_Occurred()) SWIG_fail;
4976 }
4977 resultobj = SWIG_From_int(static_cast< int >(result));
4978 return resultobj;
4979fail:
4980 return NULL;
d14a1e28
RD
4981}
4982
4983
b39fe951 4984SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
4985 PyObject *resultobj = 0;
4986 wxPen *arg1 = (wxPen *) 0 ;
4987 bool result;
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_wxPen, 0 | 0 );
4995 if (!SWIG_IsOK(res1)) {
b39fe951 4996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
0085ce49
RD
4997 }
4998 arg1 = reinterpret_cast< wxPen * >(argp1);
4999 {
5000 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 5001 result = (bool)(arg1)->IsOk();
0085ce49
RD
5002 wxPyEndAllowThreads(__tstate);
5003 if (PyErr_Occurred()) SWIG_fail;
5004 }
5005 {
5006 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5007 }
5008 return resultobj;
5009fail:
5010 return NULL;
5011}
5012
5013
5014SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5015 PyObject *resultobj = 0;
5016 wxPen *arg1 = (wxPen *) 0 ;
5017 int arg2 ;
5018 void *argp1 = 0 ;
5019 int res1 = 0 ;
5020 int val2 ;
5021 int ecode2 = 0 ;
5022 PyObject * obj0 = 0 ;
5023 PyObject * obj1 = 0 ;
5024 char * kwnames[] = {
5025 (char *) "self",(char *) "cap_style", NULL
5026 };
5027
5028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5030 if (!SWIG_IsOK(res1)) {
5031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5032 }
5033 arg1 = reinterpret_cast< wxPen * >(argp1);
5034 ecode2 = SWIG_AsVal_int(obj1, &val2);
5035 if (!SWIG_IsOK(ecode2)) {
5036 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5037 }
5038 arg2 = static_cast< int >(val2);
5039 {
5040 PyThreadState* __tstate = wxPyBeginAllowThreads();
5041 (arg1)->SetCap(arg2);
5042 wxPyEndAllowThreads(__tstate);
5043 if (PyErr_Occurred()) SWIG_fail;
5044 }
5045 resultobj = SWIG_Py_Void();
5046 return resultobj;
5047fail:
5048 return NULL;
5049}
5050
5051
5052SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5053 PyObject *resultobj = 0;
5054 wxPen *arg1 = (wxPen *) 0 ;
5055 wxColour *arg2 = 0 ;
5056 void *argp1 = 0 ;
5057 int res1 = 0 ;
5058 wxColour temp2 ;
5059 PyObject * obj0 = 0 ;
5060 PyObject * obj1 = 0 ;
5061 char * kwnames[] = {
5062 (char *) "self",(char *) "colour", NULL
5063 };
5064
5065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5067 if (!SWIG_IsOK(res1)) {
5068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5069 }
5070 arg1 = reinterpret_cast< wxPen * >(argp1);
5071 {
5072 arg2 = &temp2;
5073 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5074 }
5075 {
5076 PyThreadState* __tstate = wxPyBeginAllowThreads();
5077 (arg1)->SetColour(*arg2);
5078 wxPyEndAllowThreads(__tstate);
5079 if (PyErr_Occurred()) SWIG_fail;
5080 }
5081 resultobj = SWIG_Py_Void();
5082 return resultobj;
5083fail:
5084 return NULL;
5085}
5086
5087
5088SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5089 PyObject *resultobj = 0;
5090 wxPen *arg1 = (wxPen *) 0 ;
5091 int arg2 ;
5092 void *argp1 = 0 ;
5093 int res1 = 0 ;
5094 int val2 ;
5095 int ecode2 = 0 ;
5096 PyObject * obj0 = 0 ;
5097 PyObject * obj1 = 0 ;
5098 char * kwnames[] = {
5099 (char *) "self",(char *) "join_style", NULL
5100 };
5101
5102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5104 if (!SWIG_IsOK(res1)) {
5105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5106 }
5107 arg1 = reinterpret_cast< wxPen * >(argp1);
5108 ecode2 = SWIG_AsVal_int(obj1, &val2);
5109 if (!SWIG_IsOK(ecode2)) {
5110 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5111 }
5112 arg2 = static_cast< int >(val2);
5113 {
5114 PyThreadState* __tstate = wxPyBeginAllowThreads();
5115 (arg1)->SetJoin(arg2);
5116 wxPyEndAllowThreads(__tstate);
5117 if (PyErr_Occurred()) SWIG_fail;
5118 }
5119 resultobj = SWIG_Py_Void();
5120 return resultobj;
5121fail:
5122 return NULL;
5123}
5124
5125
5126SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5127 PyObject *resultobj = 0;
5128 wxPen *arg1 = (wxPen *) 0 ;
5129 int arg2 ;
5130 void *argp1 = 0 ;
5131 int res1 = 0 ;
5132 int val2 ;
5133 int ecode2 = 0 ;
5134 PyObject * obj0 = 0 ;
5135 PyObject * obj1 = 0 ;
5136 char * kwnames[] = {
5137 (char *) "self",(char *) "style", NULL
5138 };
5139
5140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5142 if (!SWIG_IsOK(res1)) {
5143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5144 }
5145 arg1 = reinterpret_cast< wxPen * >(argp1);
5146 ecode2 = SWIG_AsVal_int(obj1, &val2);
5147 if (!SWIG_IsOK(ecode2)) {
5148 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5149 }
5150 arg2 = static_cast< int >(val2);
5151 {
5152 PyThreadState* __tstate = wxPyBeginAllowThreads();
5153 (arg1)->SetStyle(arg2);
5154 wxPyEndAllowThreads(__tstate);
5155 if (PyErr_Occurred()) SWIG_fail;
5156 }
5157 resultobj = SWIG_Py_Void();
5158 return resultobj;
5159fail:
5160 return NULL;
5161}
5162
5163
5164SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5165 PyObject *resultobj = 0;
5166 wxPen *arg1 = (wxPen *) 0 ;
5167 int arg2 ;
5168 void *argp1 = 0 ;
5169 int res1 = 0 ;
5170 int val2 ;
5171 int ecode2 = 0 ;
5172 PyObject * obj0 = 0 ;
5173 PyObject * obj1 = 0 ;
5174 char * kwnames[] = {
5175 (char *) "self",(char *) "width", NULL
5176 };
5177
5178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5180 if (!SWIG_IsOK(res1)) {
5181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5182 }
5183 arg1 = reinterpret_cast< wxPen * >(argp1);
5184 ecode2 = SWIG_AsVal_int(obj1, &val2);
5185 if (!SWIG_IsOK(ecode2)) {
5186 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5187 }
5188 arg2 = static_cast< int >(val2);
5189 {
5190 PyThreadState* __tstate = wxPyBeginAllowThreads();
5191 (arg1)->SetWidth(arg2);
5192 wxPyEndAllowThreads(__tstate);
5193 if (PyErr_Occurred()) SWIG_fail;
5194 }
5195 resultobj = SWIG_Py_Void();
5196 return resultobj;
5197fail:
5198 return NULL;
5199}
5200
5201
5202SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5203 PyObject *resultobj = 0;
5204 wxPen *arg1 = (wxPen *) 0 ;
5205 int arg2 ;
5206 wxDash *arg3 = (wxDash *) 0 ;
5207 void *argp1 = 0 ;
5208 int res1 = 0 ;
5209 PyObject * obj0 = 0 ;
5210 PyObject * obj1 = 0 ;
5211 char * kwnames[] = {
5212 (char *) "self",(char *) "dashes", NULL
5213 };
5214
5215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5217 if (!SWIG_IsOK(res1)) {
5218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5219 }
5220 arg1 = reinterpret_cast< wxPen * >(argp1);
5221 {
5222 arg2 = PyList_Size(obj1);
5223 arg3 = (wxDash*)byte_LIST_helper(obj1);
5224 if (arg3 == NULL) SWIG_fail;
5225 }
5226 {
5227 PyThreadState* __tstate = wxPyBeginAllowThreads();
5228 (arg1)->SetDashes(arg2,arg3);
5229 wxPyEndAllowThreads(__tstate);
5230 if (PyErr_Occurred()) SWIG_fail;
5231 }
5232 resultobj = SWIG_Py_Void();
5233 {
5234 if (arg3) delete [] arg3;
5235 }
5236 return resultobj;
5237fail:
5238 {
5239 if (arg3) delete [] arg3;
5240 }
5241 return NULL;
d14a1e28
RD
5242}
5243
5244
0085ce49
RD
5245SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5246 PyObject *resultobj = 0;
5247 wxPen *arg1 = (wxPen *) 0 ;
5248 PyObject *result = 0 ;
5249 void *argp1 = 0 ;
5250 int res1 = 0 ;
5251 PyObject *swig_obj[1] ;
5252
5253 if (!args) SWIG_fail;
5254 swig_obj[0] = args;
5255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5256 if (!SWIG_IsOK(res1)) {
5257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5258 }
5259 arg1 = reinterpret_cast< wxPen * >(argp1);
5260 {
5261 PyThreadState* __tstate = wxPyBeginAllowThreads();
5262 result = (PyObject *)wxPen_GetDashes(arg1);
5263 wxPyEndAllowThreads(__tstate);
5264 if (PyErr_Occurred()) SWIG_fail;
5265 }
5266 resultobj = result;
5267 return resultobj;
5268fail:
5269 return NULL;
5270}
5271
5272
5273SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5274 PyObject *resultobj = 0;
5275 wxPen *arg1 = (wxPen *) 0 ;
5276 PyObject *arg2 = (PyObject *) 0 ;
5277 PyObject *arg3 = (PyObject *) 0 ;
5278 void *argp1 = 0 ;
5279 int res1 = 0 ;
5280 PyObject * obj0 = 0 ;
5281 PyObject * obj1 = 0 ;
5282 PyObject * obj2 = 0 ;
5283 char * kwnames[] = {
5284 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5285 };
5286
5287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5289 if (!SWIG_IsOK(res1)) {
5290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5291 }
5292 arg1 = reinterpret_cast< wxPen * >(argp1);
5293 arg2 = obj1;
5294 arg3 = obj2;
5295 {
5296 PyThreadState* __tstate = wxPyBeginAllowThreads();
5297 wxPen__SetDashes(arg1,arg2,arg3);
5298 wxPyEndAllowThreads(__tstate);
5299 if (PyErr_Occurred()) SWIG_fail;
5300 }
5301 resultobj = SWIG_Py_Void();
5302 return resultobj;
5303fail:
5304 return NULL;
d14a1e28
RD
5305}
5306
5307
0085ce49
RD
5308SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5309 PyObject *resultobj = 0;
5310 wxPen *arg1 = (wxPen *) 0 ;
5311 int result;
5312 void *argp1 = 0 ;
5313 int res1 = 0 ;
5314 PyObject *swig_obj[1] ;
5315
5316 if (!args) SWIG_fail;
5317 swig_obj[0] = args;
5318 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5319 if (!SWIG_IsOK(res1)) {
5320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
5321 }
5322 arg1 = reinterpret_cast< wxPen * >(argp1);
5323 {
5324 PyThreadState* __tstate = wxPyBeginAllowThreads();
5325 result = (int)((wxPen const *)arg1)->GetDashCount();
5326 wxPyEndAllowThreads(__tstate);
5327 if (PyErr_Occurred()) SWIG_fail;
5328 }
5329 resultobj = SWIG_From_int(static_cast< int >(result));
5330 return resultobj;
5331fail:
5332 return NULL;
5333}
5334
5335
5336SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5337 PyObject *resultobj = 0;
5338 wxPen *arg1 = (wxPen *) 0 ;
5339 wxPen *arg2 = (wxPen *) 0 ;
5340 bool result;
5341 void *argp1 = 0 ;
5342 int res1 = 0 ;
5343 void *argp2 = 0 ;
5344 int res2 = 0 ;
5345 PyObject * obj0 = 0 ;
5346 PyObject * obj1 = 0 ;
5347 char * kwnames[] = {
5348 (char *) "self",(char *) "other", NULL
5349 };
5350
5351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5353 if (!SWIG_IsOK(res1)) {
5354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5355 }
5356 arg1 = reinterpret_cast< wxPen * >(argp1);
5357 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5358 if (!SWIG_IsOK(res2)) {
5359 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5360 }
5361 arg2 = reinterpret_cast< wxPen * >(argp2);
5362 {
5363 PyThreadState* __tstate = wxPyBeginAllowThreads();
5364 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5365 wxPyEndAllowThreads(__tstate);
5366 if (PyErr_Occurred()) SWIG_fail;
5367 }
5368 {
5369 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5370 }
5371 return resultobj;
5372fail:
5373 return NULL;
5374}
5375
5376
5377SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5378 PyObject *resultobj = 0;
5379 wxPen *arg1 = (wxPen *) 0 ;
5380 wxPen *arg2 = (wxPen *) 0 ;
5381 bool result;
5382 void *argp1 = 0 ;
5383 int res1 = 0 ;
5384 void *argp2 = 0 ;
5385 int res2 = 0 ;
5386 PyObject * obj0 = 0 ;
5387 PyObject * obj1 = 0 ;
5388 char * kwnames[] = {
5389 (char *) "self",(char *) "other", NULL
5390 };
5391
5392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5394 if (!SWIG_IsOK(res1)) {
5395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5396 }
5397 arg1 = reinterpret_cast< wxPen * >(argp1);
5398 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5399 if (!SWIG_IsOK(res2)) {
5400 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5401 }
5402 arg2 = reinterpret_cast< wxPen * >(argp2);
5403 {
5404 PyThreadState* __tstate = wxPyBeginAllowThreads();
5405 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5406 wxPyEndAllowThreads(__tstate);
5407 if (PyErr_Occurred()) SWIG_fail;
5408 }
5409 {
5410 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5411 }
5412 return resultobj;
5413fail:
5414 return NULL;
d14a1e28
RD
5415}
5416
5417
0085ce49
RD
5418SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5419 PyObject *obj;
5420 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5421 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5422 return SWIG_Py_Void();
d14a1e28
RD
5423}
5424
0085ce49
RD
5425SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5426 return SWIG_Python_InitShadowInstance(args);
5427}
d14a1e28 5428
0085ce49
RD
5429SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5430 PyObject *resultobj = 0;
5431 wxColour *arg1 = 0 ;
5432 int arg2 = (int) wxSOLID ;
5433 wxBrush *result = 0 ;
5434 wxColour temp1 ;
5435 int val2 ;
5436 int ecode2 = 0 ;
5437 PyObject * obj0 = 0 ;
5438 PyObject * obj1 = 0 ;
5439 char * kwnames[] = {
5440 (char *) "colour",(char *) "style", NULL
5441 };
5442
5443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5444 {
5445 arg1 = &temp1;
5446 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5447 }
5448 if (obj1) {
5449 ecode2 = SWIG_AsVal_int(obj1, &val2);
5450 if (!SWIG_IsOK(ecode2)) {
5451 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5452 }
5453 arg2 = static_cast< int >(val2);
5454 }
5455 {
5456 if (!wxPyCheckForApp()) SWIG_fail;
5457 PyThreadState* __tstate = wxPyBeginAllowThreads();
5458 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5459 wxPyEndAllowThreads(__tstate);
5460 if (PyErr_Occurred()) SWIG_fail;
5461 }
5462 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5463 return resultobj;
5464fail:
5465 return NULL;
5466}
5467
5468
5469SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5470 PyObject *resultobj = 0;
5471 wxBitmap *arg1 = 0 ;
5472 wxBrush *result = 0 ;
5473 void *argp1 = 0 ;
5474 int res1 = 0 ;
5475 PyObject * obj0 = 0 ;
5476 char * kwnames[] = {
5477 (char *) "stippleBitmap", NULL
5478 };
5479
5480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5481 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5482 if (!SWIG_IsOK(res1)) {
5483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5484 }
5485 if (!argp1) {
5486 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5487 }
5488 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5489 {
5490 if (!wxPyCheckForApp()) SWIG_fail;
5491 PyThreadState* __tstate = wxPyBeginAllowThreads();
5492 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5493 wxPyEndAllowThreads(__tstate);
5494 if (PyErr_Occurred()) SWIG_fail;
5495 }
5496 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5497 return resultobj;
5498fail:
5499 return NULL;
d14a1e28
RD
5500}
5501
5502
0085ce49
RD
5503SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5504 PyObject *resultobj = 0;
5505 wxBrush *arg1 = (wxBrush *) 0 ;
5506 void *argp1 = 0 ;
5507 int res1 = 0 ;
5508 PyObject *swig_obj[1] ;
5509
5510 if (!args) SWIG_fail;
5511 swig_obj[0] = args;
5512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5513 if (!SWIG_IsOK(res1)) {
5514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5515 }
5516 arg1 = reinterpret_cast< wxBrush * >(argp1);
5517 {
5518 PyThreadState* __tstate = wxPyBeginAllowThreads();
5519 delete arg1;
d14a1e28 5520
0085ce49
RD
5521 wxPyEndAllowThreads(__tstate);
5522 if (PyErr_Occurred()) SWIG_fail;
5523 }
5524 resultobj = SWIG_Py_Void();
5525 return resultobj;
5526fail:
5527 return NULL;
5528}
5529
5530
5531SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5532 PyObject *resultobj = 0;
5533 wxBrush *arg1 = (wxBrush *) 0 ;
5534 wxColour *arg2 = 0 ;
5535 void *argp1 = 0 ;
5536 int res1 = 0 ;
5537 wxColour temp2 ;
5538 PyObject * obj0 = 0 ;
5539 PyObject * obj1 = 0 ;
5540 char * kwnames[] = {
5541 (char *) "self",(char *) "col", NULL
5542 };
5543
5544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5546 if (!SWIG_IsOK(res1)) {
5547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5548 }
5549 arg1 = reinterpret_cast< wxBrush * >(argp1);
5550 {
5551 arg2 = &temp2;
5552 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5553 }
5554 {
5555 PyThreadState* __tstate = wxPyBeginAllowThreads();
5556 (arg1)->SetColour((wxColour const &)*arg2);
5557 wxPyEndAllowThreads(__tstate);
5558 if (PyErr_Occurred()) SWIG_fail;
5559 }
5560 resultobj = SWIG_Py_Void();
5561 return resultobj;
5562fail:
5563 return NULL;
5564}
5565
5566
5567SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5568 PyObject *resultobj = 0;
5569 wxBrush *arg1 = (wxBrush *) 0 ;
5570 int arg2 ;
5571 void *argp1 = 0 ;
5572 int res1 = 0 ;
5573 int val2 ;
5574 int ecode2 = 0 ;
5575 PyObject * obj0 = 0 ;
5576 PyObject * obj1 = 0 ;
5577 char * kwnames[] = {
5578 (char *) "self",(char *) "style", NULL
5579 };
5580
5581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5583 if (!SWIG_IsOK(res1)) {
5584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5585 }
5586 arg1 = reinterpret_cast< wxBrush * >(argp1);
5587 ecode2 = SWIG_AsVal_int(obj1, &val2);
5588 if (!SWIG_IsOK(ecode2)) {
5589 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5590 }
5591 arg2 = static_cast< int >(val2);
5592 {
5593 PyThreadState* __tstate = wxPyBeginAllowThreads();
5594 (arg1)->SetStyle(arg2);
5595 wxPyEndAllowThreads(__tstate);
5596 if (PyErr_Occurred()) SWIG_fail;
5597 }
5598 resultobj = SWIG_Py_Void();
5599 return resultobj;
5600fail:
5601 return NULL;
5602}
5603
5604
5605SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5606 PyObject *resultobj = 0;
5607 wxBrush *arg1 = (wxBrush *) 0 ;
5608 wxBitmap *arg2 = 0 ;
5609 void *argp1 = 0 ;
5610 int res1 = 0 ;
5611 void *argp2 = 0 ;
5612 int res2 = 0 ;
5613 PyObject * obj0 = 0 ;
5614 PyObject * obj1 = 0 ;
5615 char * kwnames[] = {
5616 (char *) "self",(char *) "stipple", NULL
5617 };
5618
5619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5621 if (!SWIG_IsOK(res1)) {
5622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5623 }
5624 arg1 = reinterpret_cast< wxBrush * >(argp1);
5625 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5626 if (!SWIG_IsOK(res2)) {
5627 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5628 }
5629 if (!argp2) {
5630 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5631 }
5632 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5633 {
5634 PyThreadState* __tstate = wxPyBeginAllowThreads();
5635 (arg1)->SetStipple((wxBitmap const &)*arg2);
5636 wxPyEndAllowThreads(__tstate);
5637 if (PyErr_Occurred()) SWIG_fail;
5638 }
5639 resultobj = SWIG_Py_Void();
5640 return resultobj;
5641fail:
5642 return NULL;
d14a1e28
RD
5643}
5644
5645
0085ce49
RD
5646SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5647 PyObject *resultobj = 0;
5648 wxBrush *arg1 = (wxBrush *) 0 ;
5649 wxColour result;
5650 void *argp1 = 0 ;
5651 int res1 = 0 ;
5652 PyObject *swig_obj[1] ;
5653
5654 if (!args) SWIG_fail;
5655 swig_obj[0] = args;
5656 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5657 if (!SWIG_IsOK(res1)) {
5658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5659 }
5660 arg1 = reinterpret_cast< wxBrush * >(argp1);
5661 {
5662 PyThreadState* __tstate = wxPyBeginAllowThreads();
5663 result = ((wxBrush const *)arg1)->GetColour();
5664 wxPyEndAllowThreads(__tstate);
5665 if (PyErr_Occurred()) SWIG_fail;
5666 }
5667 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5668 return resultobj;
5669fail:
5670 return NULL;
d14a1e28
RD
5671}
5672
5673
0085ce49
RD
5674SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5675 PyObject *resultobj = 0;
5676 wxBrush *arg1 = (wxBrush *) 0 ;
5677 int result;
5678 void *argp1 = 0 ;
5679 int res1 = 0 ;
5680 PyObject *swig_obj[1] ;
5681
5682 if (!args) SWIG_fail;
5683 swig_obj[0] = args;
5684 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5685 if (!SWIG_IsOK(res1)) {
5686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5687 }
5688 arg1 = reinterpret_cast< wxBrush * >(argp1);
5689 {
5690 PyThreadState* __tstate = wxPyBeginAllowThreads();
5691 result = (int)((wxBrush const *)arg1)->GetStyle();
5692 wxPyEndAllowThreads(__tstate);
5693 if (PyErr_Occurred()) SWIG_fail;
5694 }
5695 resultobj = SWIG_From_int(static_cast< int >(result));
5696 return resultobj;
5697fail:
5698 return NULL;
d14a1e28
RD
5699}
5700
5701
0085ce49
RD
5702SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5703 PyObject *resultobj = 0;
5704 wxBrush *arg1 = (wxBrush *) 0 ;
5705 wxBitmap *result = 0 ;
5706 void *argp1 = 0 ;
5707 int res1 = 0 ;
5708 PyObject *swig_obj[1] ;
5709
5710 if (!args) SWIG_fail;
5711 swig_obj[0] = args;
5712 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5713 if (!SWIG_IsOK(res1)) {
5714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5715 }
5716 arg1 = reinterpret_cast< wxBrush * >(argp1);
5717 {
5718 PyThreadState* __tstate = wxPyBeginAllowThreads();
5719 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5720 wxPyEndAllowThreads(__tstate);
5721 if (PyErr_Occurred()) SWIG_fail;
5722 }
5723 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5724 return resultobj;
5725fail:
5726 return NULL;
d14a1e28
RD
5727}
5728
5729
0085ce49
RD
5730SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5731 PyObject *resultobj = 0;
5732 wxBrush *arg1 = (wxBrush *) 0 ;
5733 bool result;
5734 void *argp1 = 0 ;
5735 int res1 = 0 ;
5736 PyObject *swig_obj[1] ;
5737
5738 if (!args) SWIG_fail;
5739 swig_obj[0] = args;
5740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5741 if (!SWIG_IsOK(res1)) {
5742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5743 }
5744 arg1 = reinterpret_cast< wxBrush * >(argp1);
5745 {
5746 PyThreadState* __tstate = wxPyBeginAllowThreads();
5747 result = (bool)((wxBrush const *)arg1)->IsHatch();
5748 wxPyEndAllowThreads(__tstate);
5749 if (PyErr_Occurred()) SWIG_fail;
5750 }
5751 {
5752 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5753 }
5754 return resultobj;
5755fail:
5756 return NULL;
f78cc896
RD
5757}
5758
5759
b39fe951 5760SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
5761 PyObject *resultobj = 0;
5762 wxBrush *arg1 = (wxBrush *) 0 ;
5763 bool result;
5764 void *argp1 = 0 ;
5765 int res1 = 0 ;
5766 PyObject *swig_obj[1] ;
5767
5768 if (!args) SWIG_fail;
5769 swig_obj[0] = args;
5770 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5771 if (!SWIG_IsOK(res1)) {
b39fe951 5772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
0085ce49
RD
5773 }
5774 arg1 = reinterpret_cast< wxBrush * >(argp1);
5775 {
5776 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 5777 result = (bool)(arg1)->IsOk();
0085ce49
RD
5778 wxPyEndAllowThreads(__tstate);
5779 if (PyErr_Occurred()) SWIG_fail;
5780 }
5781 {
5782 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5783 }
5784 return resultobj;
5785fail:
5786 return NULL;
d14a1e28
RD
5787}
5788
5789
0085ce49
RD
5790SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5791 PyObject *obj;
5792 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5793 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5794 return SWIG_Py_Void();
d14a1e28
RD
5795}
5796
0085ce49
RD
5797SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5798 return SWIG_Python_InitShadowInstance(args);
5799}
d14a1e28 5800
0085ce49
RD
5801SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5802 PyObject *resultobj = 0;
5803 wxString *arg1 = 0 ;
5804 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5805 wxBitmap *result = 0 ;
5806 bool temp1 = false ;
5807 int val2 ;
5808 int ecode2 = 0 ;
5809 PyObject * obj0 = 0 ;
5810 PyObject * obj1 = 0 ;
5811 char * kwnames[] = {
5812 (char *) "name",(char *) "type", NULL
5813 };
5814
5815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5816 {
5817 arg1 = wxString_in_helper(obj0);
5818 if (arg1 == NULL) SWIG_fail;
5819 temp1 = true;
5820 }
5821 if (obj1) {
5822 ecode2 = SWIG_AsVal_int(obj1, &val2);
5823 if (!SWIG_IsOK(ecode2)) {
5824 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5825 }
5826 arg2 = static_cast< wxBitmapType >(val2);
5827 }
5828 {
5829 if (!wxPyCheckForApp()) SWIG_fail;
5830 PyThreadState* __tstate = wxPyBeginAllowThreads();
5831 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5832 wxPyEndAllowThreads(__tstate);
5833 if (PyErr_Occurred()) SWIG_fail;
5834 }
5835 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5836 {
5837 if (temp1)
5838 delete arg1;
5839 }
5840 return resultobj;
5841fail:
5842 {
5843 if (temp1)
5844 delete arg1;
5845 }
5846 return NULL;
d14a1e28
RD
5847}
5848
5849
0085ce49
RD
5850SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5851 PyObject *resultobj = 0;
5852 wxBitmap *arg1 = (wxBitmap *) 0 ;
5853 void *argp1 = 0 ;
5854 int res1 = 0 ;
5855 PyObject *swig_obj[1] ;
5856
5857 if (!args) SWIG_fail;
5858 swig_obj[0] = args;
5859 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5860 if (!SWIG_IsOK(res1)) {
5861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5862 }
5863 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5864 {
0085ce49 5865 delete arg1;
66c033b4 5866
0085ce49
RD
5867 if (PyErr_Occurred()) SWIG_fail;
5868 }
5869 resultobj = SWIG_Py_Void();
5870 return resultobj;
5871fail:
5872 return NULL;
5873}
5874
5875
5876SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5877 PyObject *resultobj = 0;
5878 int arg1 ;
5879 int arg2 ;
5880 int arg3 = (int) -1 ;
5881 wxBitmap *result = 0 ;
5882 int val1 ;
5883 int ecode1 = 0 ;
5884 int val2 ;
5885 int ecode2 = 0 ;
5886 int val3 ;
5887 int ecode3 = 0 ;
5888 PyObject * obj0 = 0 ;
5889 PyObject * obj1 = 0 ;
5890 PyObject * obj2 = 0 ;
5891 char * kwnames[] = {
5892 (char *) "width",(char *) "height",(char *) "depth", NULL
5893 };
5894
5895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5896 ecode1 = SWIG_AsVal_int(obj0, &val1);
5897 if (!SWIG_IsOK(ecode1)) {
5898 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5899 }
5900 arg1 = static_cast< int >(val1);
5901 ecode2 = SWIG_AsVal_int(obj1, &val2);
5902 if (!SWIG_IsOK(ecode2)) {
5903 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5904 }
5905 arg2 = static_cast< int >(val2);
5906 if (obj2) {
5907 ecode3 = SWIG_AsVal_int(obj2, &val3);
5908 if (!SWIG_IsOK(ecode3)) {
5909 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5910 }
5911 arg3 = static_cast< int >(val3);
5912 }
5913 {
5914 if (!wxPyCheckForApp()) SWIG_fail;
5915 PyThreadState* __tstate = wxPyBeginAllowThreads();
5916 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5917 wxPyEndAllowThreads(__tstate);
5918 if (PyErr_Occurred()) SWIG_fail;
5919 }
5920 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5921 return resultobj;
5922fail:
5923 return NULL;
5924}
5925
5926
5927SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5928 PyObject *resultobj = 0;
5929 wxIcon *arg1 = 0 ;
5930 wxBitmap *result = 0 ;
5931 void *argp1 = 0 ;
5932 int res1 = 0 ;
5933 PyObject * obj0 = 0 ;
5934 char * kwnames[] = {
5935 (char *) "icon", NULL
5936 };
5937
5938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
5939 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
5940 if (!SWIG_IsOK(res1)) {
5941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5942 }
5943 if (!argp1) {
5944 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5945 }
5946 arg1 = reinterpret_cast< wxIcon * >(argp1);
5947 {
5948 if (!wxPyCheckForApp()) SWIG_fail;
5949 PyThreadState* __tstate = wxPyBeginAllowThreads();
5950 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
5951 wxPyEndAllowThreads(__tstate);
5952 if (PyErr_Occurred()) SWIG_fail;
5953 }
5954 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5955 return resultobj;
5956fail:
5957 return NULL;
5958}
5959
5960
5961SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5962 PyObject *resultobj = 0;
5963 wxImage *arg1 = 0 ;
5964 int arg2 = (int) -1 ;
5965 wxBitmap *result = 0 ;
5966 void *argp1 = 0 ;
5967 int res1 = 0 ;
5968 int val2 ;
5969 int ecode2 = 0 ;
5970 PyObject * obj0 = 0 ;
5971 PyObject * obj1 = 0 ;
5972 char * kwnames[] = {
5973 (char *) "image",(char *) "depth", NULL
5974 };
5975
5976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
5977 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
5978 if (!SWIG_IsOK(res1)) {
5979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5980 }
5981 if (!argp1) {
5982 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5983 }
5984 arg1 = reinterpret_cast< wxImage * >(argp1);
5985 if (obj1) {
5986 ecode2 = SWIG_AsVal_int(obj1, &val2);
5987 if (!SWIG_IsOK(ecode2)) {
5988 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
5989 }
5990 arg2 = static_cast< int >(val2);
5991 }
5992 {
5993 if (!wxPyCheckForApp()) SWIG_fail;
5994 PyThreadState* __tstate = wxPyBeginAllowThreads();
5995 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
5996 wxPyEndAllowThreads(__tstate);
5997 if (PyErr_Occurred()) SWIG_fail;
5998 }
5999 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6000 return resultobj;
6001fail:
6002 return NULL;
66c033b4
RD
6003}
6004
6005
0085ce49
RD
6006SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6007 PyObject *resultobj = 0;
6008 PyObject *arg1 = (PyObject *) 0 ;
6009 wxBitmap *result = 0 ;
6010 PyObject * obj0 = 0 ;
6011 char * kwnames[] = {
6012 (char *) "listOfStrings", NULL
6013 };
6014
6015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6016 arg1 = obj0;
6017 {
6018 if (!wxPyCheckForApp()) SWIG_fail;
6019 PyThreadState* __tstate = wxPyBeginAllowThreads();
6020 result = (wxBitmap *)new_wxBitmap(arg1);
6021 wxPyEndAllowThreads(__tstate);
6022 if (PyErr_Occurred()) SWIG_fail;
6023 }
6024 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6025 return resultobj;
6026fail:
6027 return NULL;
6028}
6029
6030
6031SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6032 PyObject *resultobj = 0;
6033 PyObject *arg1 = (PyObject *) 0 ;
6034 int arg2 ;
6035 int arg3 ;
6036 int arg4 = (int) 1 ;
6037 wxBitmap *result = 0 ;
6038 int val2 ;
6039 int ecode2 = 0 ;
6040 int val3 ;
6041 int ecode3 = 0 ;
6042 int val4 ;
6043 int ecode4 = 0 ;
6044 PyObject * obj0 = 0 ;
6045 PyObject * obj1 = 0 ;
6046 PyObject * obj2 = 0 ;
6047 PyObject * obj3 = 0 ;
6048 char * kwnames[] = {
6049 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6050 };
6051
6052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6053 arg1 = obj0;
6054 ecode2 = SWIG_AsVal_int(obj1, &val2);
6055 if (!SWIG_IsOK(ecode2)) {
6056 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6057 }
6058 arg2 = static_cast< int >(val2);
6059 ecode3 = SWIG_AsVal_int(obj2, &val3);
6060 if (!SWIG_IsOK(ecode3)) {
6061 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6062 }
6063 arg3 = static_cast< int >(val3);
6064 if (obj3) {
6065 ecode4 = SWIG_AsVal_int(obj3, &val4);
6066 if (!SWIG_IsOK(ecode4)) {
6067 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6068 }
6069 arg4 = static_cast< int >(val4);
6070 }
6071 {
6072 if (!wxPyCheckForApp()) SWIG_fail;
6073 PyThreadState* __tstate = wxPyBeginAllowThreads();
6074 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6075 wxPyEndAllowThreads(__tstate);
6076 if (PyErr_Occurred()) SWIG_fail;
6077 }
6078 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6079 return resultobj;
6080fail:
6081 return NULL;
d14a1e28
RD
6082}
6083
6084
b39fe951 6085SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
6086 PyObject *resultobj = 0;
6087 wxBitmap *arg1 = (wxBitmap *) 0 ;
6088 bool result;
6089 void *argp1 = 0 ;
6090 int res1 = 0 ;
6091 PyObject *swig_obj[1] ;
6092
6093 if (!args) SWIG_fail;
6094 swig_obj[0] = args;
6095 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6096 if (!SWIG_IsOK(res1)) {
b39fe951 6097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
0085ce49
RD
6098 }
6099 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6100 {
b39fe951 6101 result = (bool)(arg1)->IsOk();
0085ce49
RD
6102 if (PyErr_Occurred()) SWIG_fail;
6103 }
6104 {
6105 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6106 }
6107 return resultobj;
6108fail:
6109 return NULL;
d14a1e28
RD
6110}
6111
6112
0085ce49
RD
6113SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6114 PyObject *resultobj = 0;
6115 wxBitmap *arg1 = (wxBitmap *) 0 ;
6116 int result;
6117 void *argp1 = 0 ;
6118 int res1 = 0 ;
6119 PyObject *swig_obj[1] ;
6120
6121 if (!args) SWIG_fail;
6122 swig_obj[0] = args;
6123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6124 if (!SWIG_IsOK(res1)) {
6125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6126 }
6127 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6128 {
0085ce49 6129 result = (int)(arg1)->GetWidth();
0085ce49
RD
6130 if (PyErr_Occurred()) SWIG_fail;
6131 }
6132 resultobj = SWIG_From_int(static_cast< int >(result));
6133 return resultobj;
6134fail:
6135 return NULL;
d14a1e28
RD
6136}
6137
6138
0085ce49
RD
6139SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6140 PyObject *resultobj = 0;
6141 wxBitmap *arg1 = (wxBitmap *) 0 ;
6142 int result;
6143 void *argp1 = 0 ;
6144 int res1 = 0 ;
6145 PyObject *swig_obj[1] ;
6146
6147 if (!args) SWIG_fail;
6148 swig_obj[0] = args;
6149 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6150 if (!SWIG_IsOK(res1)) {
6151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6152 }
6153 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6154 {
0085ce49 6155 result = (int)(arg1)->GetHeight();
0085ce49
RD
6156 if (PyErr_Occurred()) SWIG_fail;
6157 }
6158 resultobj = SWIG_From_int(static_cast< int >(result));
6159 return resultobj;
6160fail:
6161 return NULL;
d14a1e28
RD
6162}
6163
6164
0085ce49
RD
6165SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6166 PyObject *resultobj = 0;
6167 wxBitmap *arg1 = (wxBitmap *) 0 ;
6168 int result;
6169 void *argp1 = 0 ;
6170 int res1 = 0 ;
6171 PyObject *swig_obj[1] ;
6172
6173 if (!args) SWIG_fail;
6174 swig_obj[0] = args;
6175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6176 if (!SWIG_IsOK(res1)) {
6177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6178 }
6179 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6180 {
0085ce49 6181 result = (int)(arg1)->GetDepth();
0085ce49
RD
6182 if (PyErr_Occurred()) SWIG_fail;
6183 }
6184 resultobj = SWIG_From_int(static_cast< int >(result));
6185 return resultobj;
6186fail:
6187 return NULL;
d14a1e28
RD
6188}
6189
6190
0085ce49
RD
6191SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6192 PyObject *resultobj = 0;
6193 wxBitmap *arg1 = (wxBitmap *) 0 ;
6194 wxSize result;
6195 void *argp1 = 0 ;
6196 int res1 = 0 ;
6197 PyObject *swig_obj[1] ;
6198
6199 if (!args) SWIG_fail;
6200 swig_obj[0] = args;
6201 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6202 if (!SWIG_IsOK(res1)) {
6203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6204 }
6205 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6206 {
0085ce49 6207 result = wxBitmap_GetSize(arg1);
0085ce49
RD
6208 if (PyErr_Occurred()) SWIG_fail;
6209 }
6210 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6211 return resultobj;
6212fail:
6213 return NULL;
d14a1e28
RD
6214}
6215
6216
0085ce49
RD
6217SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6218 PyObject *resultobj = 0;
6219 wxBitmap *arg1 = (wxBitmap *) 0 ;
6220 SwigValueWrapper<wxImage > result;
6221 void *argp1 = 0 ;
6222 int res1 = 0 ;
6223 PyObject *swig_obj[1] ;
6224
6225 if (!args) SWIG_fail;
6226 swig_obj[0] = args;
6227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6228 if (!SWIG_IsOK(res1)) {
6229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6230 }
6231 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6232 {
0085ce49 6233 result = ((wxBitmap const *)arg1)->ConvertToImage();
0085ce49
RD
6234 if (PyErr_Occurred()) SWIG_fail;
6235 }
6236 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6237 return resultobj;
6238fail:
6239 return NULL;
d14a1e28
RD
6240}
6241
6242
0085ce49
RD
6243SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6244 PyObject *resultobj = 0;
6245 wxBitmap *arg1 = (wxBitmap *) 0 ;
6246 wxMask *result = 0 ;
6247 void *argp1 = 0 ;
6248 int res1 = 0 ;
6249 PyObject *swig_obj[1] ;
6250
6251 if (!args) SWIG_fail;
6252 swig_obj[0] = args;
6253 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6254 if (!SWIG_IsOK(res1)) {
6255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6256 }
6257 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6258 {
0085ce49 6259 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
0085ce49
RD
6260 if (PyErr_Occurred()) SWIG_fail;
6261 }
6262 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6263 return resultobj;
6264fail:
6265 return NULL;
6266}
6267
6268
6269SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6270 PyObject *resultobj = 0;
6271 wxBitmap *arg1 = (wxBitmap *) 0 ;
6272 wxMask *arg2 = (wxMask *) 0 ;
6273 void *argp1 = 0 ;
6274 int res1 = 0 ;
6275 int res2 = 0 ;
6276 PyObject * obj0 = 0 ;
6277 PyObject * obj1 = 0 ;
6278 char * kwnames[] = {
6279 (char *) "self",(char *) "mask", NULL
6280 };
6281
6282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6284 if (!SWIG_IsOK(res1)) {
6285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6286 }
6287 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6288 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6289 if (!SWIG_IsOK(res2)) {
6290 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6291 }
6292 {
0085ce49 6293 (arg1)->SetMask(arg2);
0085ce49
RD
6294 if (PyErr_Occurred()) SWIG_fail;
6295 }
6296 resultobj = SWIG_Py_Void();
6297 return resultobj;
6298fail:
6299 return NULL;
6300}
6301
6302
6303SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6304 PyObject *resultobj = 0;
6305 wxBitmap *arg1 = (wxBitmap *) 0 ;
6306 wxColour *arg2 = 0 ;
6307 void *argp1 = 0 ;
6308 int res1 = 0 ;
6309 wxColour temp2 ;
6310 PyObject * obj0 = 0 ;
6311 PyObject * obj1 = 0 ;
6312 char * kwnames[] = {
6313 (char *) "self",(char *) "colour", NULL
6314 };
6315
6316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6318 if (!SWIG_IsOK(res1)) {
6319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6320 }
6321 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6322 {
6323 arg2 = &temp2;
6324 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6325 }
6326 {
0085ce49 6327 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
0085ce49
RD
6328 if (PyErr_Occurred()) SWIG_fail;
6329 }
6330 resultobj = SWIG_Py_Void();
6331 return resultobj;
6332fail:
6333 return NULL;
6334}
6335
6336
6337SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6338 PyObject *resultobj = 0;
6339 wxBitmap *arg1 = (wxBitmap *) 0 ;
6340 wxRect *arg2 = 0 ;
6341 SwigValueWrapper<wxBitmap > result;
6342 void *argp1 = 0 ;
6343 int res1 = 0 ;
6344 wxRect temp2 ;
6345 PyObject * obj0 = 0 ;
6346 PyObject * obj1 = 0 ;
6347 char * kwnames[] = {
6348 (char *) "self",(char *) "rect", NULL
6349 };
6350
6351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6353 if (!SWIG_IsOK(res1)) {
6354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6355 }
6356 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6357 {
6358 arg2 = &temp2;
6359 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6360 }
6361 {
0085ce49 6362 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
0085ce49
RD
6363 if (PyErr_Occurred()) SWIG_fail;
6364 }
6365 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6366 return resultobj;
6367fail:
6368 return NULL;
6369}
6370
6371
6372SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6373 PyObject *resultobj = 0;
6374 wxBitmap *arg1 = (wxBitmap *) 0 ;
6375 wxString *arg2 = 0 ;
6376 wxBitmapType arg3 ;
6377 wxPalette *arg4 = (wxPalette *) NULL ;
6378 bool result;
6379 void *argp1 = 0 ;
6380 int res1 = 0 ;
6381 bool temp2 = false ;
6382 int val3 ;
6383 int ecode3 = 0 ;
6384 void *argp4 = 0 ;
6385 int res4 = 0 ;
6386 PyObject * obj0 = 0 ;
6387 PyObject * obj1 = 0 ;
6388 PyObject * obj2 = 0 ;
6389 PyObject * obj3 = 0 ;
6390 char * kwnames[] = {
6391 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6392 };
6393
6394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6396 if (!SWIG_IsOK(res1)) {
6397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6398 }
6399 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6400 {
6401 arg2 = wxString_in_helper(obj1);
6402 if (arg2 == NULL) SWIG_fail;
6403 temp2 = true;
6404 }
6405 ecode3 = SWIG_AsVal_int(obj2, &val3);
6406 if (!SWIG_IsOK(ecode3)) {
6407 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6408 }
6409 arg3 = static_cast< wxBitmapType >(val3);
6410 if (obj3) {
6411 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6412 if (!SWIG_IsOK(res4)) {
6413 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
d04418a7 6414 }
0085ce49
RD
6415 arg4 = reinterpret_cast< wxPalette * >(argp4);
6416 }
6417 {
0085ce49 6418 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
0085ce49
RD
6419 if (PyErr_Occurred()) SWIG_fail;
6420 }
6421 {
6422 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6423 }
6424 {
6425 if (temp2)
6426 delete arg2;
6427 }
6428 return resultobj;
6429fail:
6430 {
6431 if (temp2)
6432 delete arg2;
6433 }
6434 return NULL;
6435}
6436
6437
6438SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6439 PyObject *resultobj = 0;
6440 wxBitmap *arg1 = (wxBitmap *) 0 ;
6441 wxString *arg2 = 0 ;
6442 wxBitmapType arg3 ;
6443 bool result;
6444 void *argp1 = 0 ;
6445 int res1 = 0 ;
6446 bool temp2 = false ;
6447 int val3 ;
6448 int ecode3 = 0 ;
6449 PyObject * obj0 = 0 ;
6450 PyObject * obj1 = 0 ;
6451 PyObject * obj2 = 0 ;
6452 char * kwnames[] = {
6453 (char *) "self",(char *) "name",(char *) "type", NULL
6454 };
6455
6456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6458 if (!SWIG_IsOK(res1)) {
6459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6460 }
6461 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6462 {
6463 arg2 = wxString_in_helper(obj1);
6464 if (arg2 == NULL) SWIG_fail;
6465 temp2 = true;
6466 }
6467 ecode3 = SWIG_AsVal_int(obj2, &val3);
6468 if (!SWIG_IsOK(ecode3)) {
6469 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6470 }
6471 arg3 = static_cast< wxBitmapType >(val3);
6472 {
0085ce49 6473 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
0085ce49
RD
6474 if (PyErr_Occurred()) SWIG_fail;
6475 }
6476 {
6477 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6478 }
6479 {
6480 if (temp2)
6481 delete arg2;
6482 }
6483 return resultobj;
6484fail:
6485 {
6486 if (temp2)
6487 delete arg2;
6488 }
6489 return NULL;
d04418a7
RD
6490}
6491
6492
0085ce49
RD
6493SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6494 PyObject *resultobj = 0;
6495 wxBitmap *arg1 = (wxBitmap *) 0 ;
6496 wxPalette *result = 0 ;
6497 void *argp1 = 0 ;
6498 int res1 = 0 ;
6499 PyObject *swig_obj[1] ;
6500
6501 if (!args) SWIG_fail;
6502 swig_obj[0] = args;
6503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6504 if (!SWIG_IsOK(res1)) {
6505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6506 }
6507 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6508 {
0085ce49 6509 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
0085ce49
RD
6510 if (PyErr_Occurred()) SWIG_fail;
6511 }
6512 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6513 return resultobj;
6514fail:
6515 return NULL;
6516}
6517
6518
6519SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6520 PyObject *resultobj = 0;
6521 wxBitmap *arg1 = (wxBitmap *) 0 ;
6522 wxIcon *arg2 = 0 ;
6523 bool result;
6524 void *argp1 = 0 ;
6525 int res1 = 0 ;
6526 void *argp2 = 0 ;
6527 int res2 = 0 ;
6528 PyObject * obj0 = 0 ;
6529 PyObject * obj1 = 0 ;
6530 char * kwnames[] = {
6531 (char *) "self",(char *) "icon", NULL
6532 };
6533
6534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6536 if (!SWIG_IsOK(res1)) {
6537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6538 }
6539 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6540 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6541 if (!SWIG_IsOK(res2)) {
6542 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6543 }
6544 if (!argp2) {
6545 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6546 }
6547 arg2 = reinterpret_cast< wxIcon * >(argp2);
6548 {
0085ce49 6549 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
0085ce49
RD
6550 if (PyErr_Occurred()) SWIG_fail;
6551 }
6552 {
6553 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6554 }
6555 return resultobj;
6556fail:
6557 return NULL;
6558}
6559
6560
6561SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6562 PyObject *resultobj = 0;
6563 wxBitmap *arg1 = (wxBitmap *) 0 ;
6564 int arg2 ;
6565 void *argp1 = 0 ;
6566 int res1 = 0 ;
6567 int val2 ;
6568 int ecode2 = 0 ;
6569 PyObject * obj0 = 0 ;
6570 PyObject * obj1 = 0 ;
6571 char * kwnames[] = {
6572 (char *) "self",(char *) "height", NULL
6573 };
6574
6575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6577 if (!SWIG_IsOK(res1)) {
6578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6579 }
6580 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6581 ecode2 = SWIG_AsVal_int(obj1, &val2);
6582 if (!SWIG_IsOK(ecode2)) {
6583 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6584 }
6585 arg2 = static_cast< int >(val2);
6586 {
0085ce49 6587 (arg1)->SetHeight(arg2);
0085ce49
RD
6588 if (PyErr_Occurred()) SWIG_fail;
6589 }
6590 resultobj = SWIG_Py_Void();
6591 return resultobj;
6592fail:
6593 return NULL;
6594}
6595
6596
6597SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6598 PyObject *resultobj = 0;
6599 wxBitmap *arg1 = (wxBitmap *) 0 ;
6600 int arg2 ;
6601 void *argp1 = 0 ;
6602 int res1 = 0 ;
6603 int val2 ;
6604 int ecode2 = 0 ;
6605 PyObject * obj0 = 0 ;
6606 PyObject * obj1 = 0 ;
6607 char * kwnames[] = {
6608 (char *) "self",(char *) "width", NULL
6609 };
6610
6611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6613 if (!SWIG_IsOK(res1)) {
6614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6615 }
6616 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6617 ecode2 = SWIG_AsVal_int(obj1, &val2);
6618 if (!SWIG_IsOK(ecode2)) {
6619 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6620 }
6621 arg2 = static_cast< int >(val2);
6622 {
0085ce49 6623 (arg1)->SetWidth(arg2);
0085ce49
RD
6624 if (PyErr_Occurred()) SWIG_fail;
6625 }
6626 resultobj = SWIG_Py_Void();
6627 return resultobj;
6628fail:
6629 return NULL;
6630}
6631
6632
6633SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6634 PyObject *resultobj = 0;
6635 wxBitmap *arg1 = (wxBitmap *) 0 ;
6636 int arg2 ;
6637 void *argp1 = 0 ;
6638 int res1 = 0 ;
6639 int val2 ;
6640 int ecode2 = 0 ;
6641 PyObject * obj0 = 0 ;
6642 PyObject * obj1 = 0 ;
6643 char * kwnames[] = {
6644 (char *) "self",(char *) "depth", NULL
6645 };
6646
6647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6649 if (!SWIG_IsOK(res1)) {
6650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6651 }
6652 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6653 ecode2 = SWIG_AsVal_int(obj1, &val2);
6654 if (!SWIG_IsOK(ecode2)) {
6655 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6656 }
6657 arg2 = static_cast< int >(val2);
6658 {
0085ce49 6659 (arg1)->SetDepth(arg2);
0085ce49
RD
6660 if (PyErr_Occurred()) SWIG_fail;
6661 }
6662 resultobj = SWIG_Py_Void();
6663 return resultobj;
6664fail:
6665 return NULL;
6666}
6667
6668
6669SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6670 PyObject *resultobj = 0;
6671 wxBitmap *arg1 = (wxBitmap *) 0 ;
6672 wxSize *arg2 = 0 ;
6673 void *argp1 = 0 ;
6674 int res1 = 0 ;
6675 wxSize temp2 ;
6676 PyObject * obj0 = 0 ;
6677 PyObject * obj1 = 0 ;
6678 char * kwnames[] = {
6679 (char *) "self",(char *) "size", NULL
6680 };
6681
6682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6684 if (!SWIG_IsOK(res1)) {
6685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6686 }
6687 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6688 {
6689 arg2 = &temp2;
6690 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6691 }
6692 {
0085ce49 6693 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
0085ce49
RD
6694 if (PyErr_Occurred()) SWIG_fail;
6695 }
6696 resultobj = SWIG_Py_Void();
6697 return resultobj;
6698fail:
6699 return NULL;
6700}
6701
6702
6703SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6704 PyObject *resultobj = 0;
6705 wxBitmap *arg1 = (wxBitmap *) 0 ;
6706 wxBitmap *arg2 = (wxBitmap *) 0 ;
6707 bool result;
6708 void *argp1 = 0 ;
6709 int res1 = 0 ;
6710 void *argp2 = 0 ;
6711 int res2 = 0 ;
6712 PyObject * obj0 = 0 ;
6713 PyObject * obj1 = 0 ;
6714 char * kwnames[] = {
6715 (char *) "self",(char *) "other", NULL
6716 };
6717
6718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6720 if (!SWIG_IsOK(res1)) {
6721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6722 }
6723 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6724 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6725 if (!SWIG_IsOK(res2)) {
6726 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6727 }
6728 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6729 {
0085ce49 6730 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
0085ce49
RD
6731 if (PyErr_Occurred()) SWIG_fail;
6732 }
6733 {
fc46b7f3
RD
6734 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6735 }
6736 return resultobj;
6737fail:
6738 return NULL;
6739}
6740
6741
6742SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6743 PyObject *resultobj = 0;
6744 wxBitmap *arg1 = (wxBitmap *) 0 ;
6745 wxBitmap *arg2 = (wxBitmap *) 0 ;
6746 bool result;
6747 void *argp1 = 0 ;
6748 int res1 = 0 ;
6749 void *argp2 = 0 ;
6750 int res2 = 0 ;
6751 PyObject * obj0 = 0 ;
6752 PyObject * obj1 = 0 ;
6753 char * kwnames[] = {
6754 (char *) "self",(char *) "other", NULL
6755 };
6756
6757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6759 if (!SWIG_IsOK(res1)) {
6760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6761 }
6762 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6763 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6764 if (!SWIG_IsOK(res2)) {
6765 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6766 }
6767 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6768 {
6769 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6770 if (PyErr_Occurred()) SWIG_fail;
6771 }
6772 {
6773 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6774 }
6775 return resultobj;
6776fail:
6777 return NULL;
6778}
6779
6780
6781SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6782 PyObject *obj;
6783 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6784 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6785 return SWIG_Py_Void();
6786}
6787
6788SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6789 return SWIG_Python_InitShadowInstance(args);
6790}
6791
6792SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6793 PyObject *resultobj = 0;
6794 int arg1 ;
6795 int arg2 ;
6796 buffer arg3 ;
6797 int arg4 ;
6798 buffer arg5 ;
6799 int arg6 ;
6800 wxBitmap *result = 0 ;
6801 int val1 ;
6802 int ecode1 = 0 ;
6803 int val2 ;
6804 int ecode2 = 0 ;
c79fdf86
RD
6805 Py_ssize_t temp3 ;
6806 Py_ssize_t temp5 ;
fc46b7f3
RD
6807 PyObject * obj0 = 0 ;
6808 PyObject * obj1 = 0 ;
6809 PyObject * obj2 = 0 ;
6810 PyObject * obj3 = 0 ;
6811 char * kwnames[] = {
6812 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
6813 };
6814
6815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6816 ecode1 = SWIG_AsVal_int(obj0, &val1);
6817 if (!SWIG_IsOK(ecode1)) {
6818 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
6819 }
6820 arg1 = static_cast< int >(val1);
6821 ecode2 = SWIG_AsVal_int(obj1, &val2);
6822 if (!SWIG_IsOK(ecode2)) {
6823 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
6824 }
6825 arg2 = static_cast< int >(val2);
6826 {
c79fdf86
RD
6827 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6828 arg4 = (int)temp3;
fc46b7f3
RD
6829 }
6830 {
6831 if (obj3 != Py_None) {
c79fdf86
RD
6832 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
6833 arg6 = (int)temp5;
fc46b7f3
RD
6834 }
6835 }
6836 {
6837 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
6838 if (PyErr_Occurred()) SWIG_fail;
6839 }
6840 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6841 return resultobj;
6842fail:
6843 return NULL;
6844}
6845
6846
6847SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6848 PyObject *resultobj = 0;
6849 int arg1 ;
6850 int arg2 ;
6851 buffer arg3 ;
6852 int arg4 ;
6853 wxBitmap *result = 0 ;
6854 int val1 ;
6855 int ecode1 = 0 ;
6856 int val2 ;
6857 int ecode2 = 0 ;
c79fdf86 6858 Py_ssize_t temp3 ;
fc46b7f3
RD
6859 PyObject * obj0 = 0 ;
6860 PyObject * obj1 = 0 ;
6861 PyObject * obj2 = 0 ;
6862 char * kwnames[] = {
6863 (char *) "width",(char *) "height",(char *) "data", NULL
6864 };
6865
6866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6867 ecode1 = SWIG_AsVal_int(obj0, &val1);
6868 if (!SWIG_IsOK(ecode1)) {
6869 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
6870 }
6871 arg1 = static_cast< int >(val1);
6872 ecode2 = SWIG_AsVal_int(obj1, &val2);
6873 if (!SWIG_IsOK(ecode2)) {
6874 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
6875 }
6876 arg2 = static_cast< int >(val2);
6877 {
c79fdf86
RD
6878 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6879 arg4 = (int)temp3;
fc46b7f3
RD
6880 }
6881 {
6882 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
6883 if (PyErr_Occurred()) SWIG_fail;
6884 }
6885 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6886 return resultobj;
6887fail:
6888 return NULL;
6889}
6890
6891
6892SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6893 PyObject *resultobj = 0;
6894 int arg1 ;
6895 int arg2 ;
6896 buffer arg3 ;
6897 int arg4 ;
6898 wxBitmap *result = 0 ;
6899 int val1 ;
6900 int ecode1 = 0 ;
6901 int val2 ;
6902 int ecode2 = 0 ;
c79fdf86 6903 Py_ssize_t temp3 ;
fc46b7f3
RD
6904 PyObject * obj0 = 0 ;
6905 PyObject * obj1 = 0 ;
6906 PyObject * obj2 = 0 ;
6907 char * kwnames[] = {
6908 (char *) "width",(char *) "height",(char *) "data", NULL
6909 };
6910
6911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6912 ecode1 = SWIG_AsVal_int(obj0, &val1);
6913 if (!SWIG_IsOK(ecode1)) {
6914 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
6915 }
6916 arg1 = static_cast< int >(val1);
6917 ecode2 = SWIG_AsVal_int(obj1, &val2);
6918 if (!SWIG_IsOK(ecode2)) {
6919 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
6920 }
6921 arg2 = static_cast< int >(val2);
6922 {
c79fdf86
RD
6923 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6924 arg4 = (int)temp3;
fc46b7f3
RD
6925 }
6926 {
6927 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
6928 if (PyErr_Occurred()) SWIG_fail;
6929 }
6930 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6931 return resultobj;
6932fail:
6933 return NULL;
6934}
6935
6936
6937SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6938 PyObject *resultobj = 0;
6939 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6940 wxPoint result;
6941 void *argp1 = 0 ;
6942 int res1 = 0 ;
6943 PyObject *swig_obj[1] ;
6944
6945 if (!args) SWIG_fail;
6946 swig_obj[0] = args;
6947 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6948 if (!SWIG_IsOK(res1)) {
6949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6950 }
6951 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6952 {
6953 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
6954 if (PyErr_Occurred()) SWIG_fail;
6955 }
6956 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
6957 return resultobj;
6958fail:
6959 return NULL;
6960}
6961
6962
6963SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6964 PyObject *resultobj = 0;
6965 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6966 int result;
6967 void *argp1 = 0 ;
6968 int res1 = 0 ;
6969 PyObject *swig_obj[1] ;
6970
6971 if (!args) SWIG_fail;
6972 swig_obj[0] = args;
6973 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6974 if (!SWIG_IsOK(res1)) {
6975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6976 }
6977 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6978 {
6979 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
6980 if (PyErr_Occurred()) SWIG_fail;
6981 }
6982 resultobj = SWIG_From_int(static_cast< int >(result));
6983 return resultobj;
6984fail:
6985 return NULL;
6986}
6987
6988
6989SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6990 PyObject *resultobj = 0;
6991 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6992 int result;
6993 void *argp1 = 0 ;
6994 int res1 = 0 ;
6995 PyObject *swig_obj[1] ;
6996
6997 if (!args) SWIG_fail;
6998 swig_obj[0] = args;
6999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7000 if (!SWIG_IsOK(res1)) {
7001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7002 }
7003 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7004 {
7005 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7006 if (PyErr_Occurred()) SWIG_fail;
7007 }
7008 resultobj = SWIG_From_int(static_cast< int >(result));
7009 return resultobj;
7010fail:
7011 return NULL;
7012}
7013
7014
7015SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7016 PyObject *resultobj = 0;
7017 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7018 wxSize result;
7019 void *argp1 = 0 ;
7020 int res1 = 0 ;
7021 PyObject *swig_obj[1] ;
7022
7023 if (!args) SWIG_fail;
7024 swig_obj[0] = args;
7025 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7026 if (!SWIG_IsOK(res1)) {
7027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7028 }
7029 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7030 {
7031 result = ((wxPixelDataBase const *)arg1)->GetSize();
7032 if (PyErr_Occurred()) SWIG_fail;
7033 }
7034 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7035 return resultobj;
7036fail:
7037 return NULL;
7038}
7039
7040
7041SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7042 PyObject *resultobj = 0;
7043 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7044 int result;
7045 void *argp1 = 0 ;
7046 int res1 = 0 ;
7047 PyObject *swig_obj[1] ;
7048
7049 if (!args) SWIG_fail;
7050 swig_obj[0] = args;
7051 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7052 if (!SWIG_IsOK(res1)) {
7053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7054 }
7055 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7056 {
7057 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7058 if (PyErr_Occurred()) SWIG_fail;
7059 }
7060 resultobj = SWIG_From_int(static_cast< int >(result));
7061 return resultobj;
7062fail:
7063 return NULL;
7064}
7065
7066
7067SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7068 PyObject *obj;
7069 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7070 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7071 return SWIG_Py_Void();
7072}
7073
7074SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7075 PyObject *resultobj = 0;
7076 wxBitmap *arg1 = 0 ;
7077 wxNativePixelData *result = 0 ;
7078 void *argp1 = 0 ;
7079 int res1 = 0 ;
7080
7081 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7082 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7083 if (!SWIG_IsOK(res1)) {
7084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7085 }
7086 if (!argp1) {
7087 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7088 }
7089 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7090 {
7091 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7092 if (PyErr_Occurred()) SWIG_fail;
7093 }
7094 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7095 return resultobj;
7096fail:
7097 return NULL;
7098}
7099
7100
7101SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7102 PyObject *resultobj = 0;
7103 wxBitmap *arg1 = 0 ;
7104 wxRect *arg2 = 0 ;
7105 wxNativePixelData *result = 0 ;
7106 void *argp1 = 0 ;
7107 int res1 = 0 ;
7108 wxRect temp2 ;
7109
7110 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7112 if (!SWIG_IsOK(res1)) {
7113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7114 }
7115 if (!argp1) {
7116 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7117 }
7118 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7119 {
7120 arg2 = &temp2;
7121 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7122 }
7123 {
7124 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7125 if (PyErr_Occurred()) SWIG_fail;
7126 }
7127 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7128 return resultobj;
7129fail:
7130 return NULL;
7131}
7132
7133
7134SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7135 PyObject *resultobj = 0;
7136 wxBitmap *arg1 = 0 ;
7137 wxPoint *arg2 = 0 ;
7138 wxSize *arg3 = 0 ;
7139 wxNativePixelData *result = 0 ;
7140 void *argp1 = 0 ;
7141 int res1 = 0 ;
7142 wxPoint temp2 ;
7143 wxSize temp3 ;
7144
7145 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7147 if (!SWIG_IsOK(res1)) {
7148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7149 }
7150 if (!argp1) {
7151 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7152 }
7153 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7154 {
7155 arg2 = &temp2;
7156 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7157 }
7158 {
7159 arg3 = &temp3;
7160 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7161 }
7162 {
7163 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7164 if (PyErr_Occurred()) SWIG_fail;
7165 }
7166 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7167 return resultobj;
7168fail:
7169 return NULL;
7170}
7171
7172
7173SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7174 int argc;
7175 PyObject *argv[4];
7176
7177 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7178 --argc;
7179 if (argc == 1) {
7180 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7181 }
7182 if (argc == 2) {
7183 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7184 }
7185 if (argc == 3) {
7186 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7187 }
7188
7189fail:
7190 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7191 return NULL;
7192}
7193
7194
7195SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7196 PyObject *resultobj = 0;
7197 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7198 void *argp1 = 0 ;
7199 int res1 = 0 ;
7200 PyObject *swig_obj[1] ;
7201
7202 if (!args) SWIG_fail;
7203 swig_obj[0] = args;
7204 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7205 if (!SWIG_IsOK(res1)) {
7206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7207 }
7208 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7209 {
7210 delete arg1;
7211
7212 if (PyErr_Occurred()) SWIG_fail;
7213 }
7214 resultobj = SWIG_Py_Void();
7215 return resultobj;
7216fail:
7217 return NULL;
7218}
7219
7220
7221SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7222 PyObject *resultobj = 0;
7223 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7224 wxNativePixelData_Accessor result;
7225 void *argp1 = 0 ;
7226 int res1 = 0 ;
7227 PyObject *swig_obj[1] ;
7228
7229 if (!args) SWIG_fail;
7230 swig_obj[0] = args;
7231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7232 if (!SWIG_IsOK(res1)) {
7233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7234 }
7235 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7236 {
7237 result = ((wxNativePixelData const *)arg1)->GetPixels();
7238 if (PyErr_Occurred()) SWIG_fail;
7239 }
7240 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7241 return resultobj;
7242fail:
7243 return NULL;
7244}
7245
7246
7247SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7248 PyObject *resultobj = 0;
7249 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7250 void *argp1 = 0 ;
7251 int res1 = 0 ;
7252 PyObject *swig_obj[1] ;
7253
7254 if (!args) SWIG_fail;
7255 swig_obj[0] = args;
7256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7257 if (!SWIG_IsOK(res1)) {
7258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7259 }
7260 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7261 {
7262 (arg1)->UseAlpha();
7263 if (PyErr_Occurred()) SWIG_fail;
7264 }
7265 resultobj = SWIG_Py_Void();
7266 return resultobj;
7267fail:
7268 return NULL;
7269}
7270
7271
7272SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7273 PyObject *resultobj = 0;
7274 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7275 bool result;
7276 void *argp1 = 0 ;
7277 int res1 = 0 ;
7278 PyObject *swig_obj[1] ;
7279
7280 if (!args) SWIG_fail;
7281 swig_obj[0] = args;
7282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7283 if (!SWIG_IsOK(res1)) {
7284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7285 }
7286 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7287 {
7288 result = (bool)wxNativePixelData___nonzero__(arg1);
7289 if (PyErr_Occurred()) SWIG_fail;
7290 }
7291 {
7292 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7293 }
7294 return resultobj;
7295fail:
7296 return NULL;
7297}
7298
7299
7300SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7301 PyObject *obj;
7302 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7303 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7304 return SWIG_Py_Void();
7305}
7306
7307SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7308 return SWIG_Python_InitShadowInstance(args);
7309}
7310
7311SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7312 PyObject *resultobj = 0;
7313 wxNativePixelData *arg1 = 0 ;
7314 wxNativePixelData_Accessor *result = 0 ;
7315 void *argp1 = 0 ;
7316 int res1 = 0 ;
7317
7318 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7319 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7320 if (!SWIG_IsOK(res1)) {
7321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7322 }
7323 if (!argp1) {
7324 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7325 }
7326 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7327 {
7328 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7329 if (PyErr_Occurred()) SWIG_fail;
7330 }
7331 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7332 return resultobj;
7333fail:
7334 return NULL;
7335}
7336
7337
7338SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7339 PyObject *resultobj = 0;
7340 wxBitmap *arg1 = 0 ;
7341 wxNativePixelData *arg2 = 0 ;
7342 wxNativePixelData_Accessor *result = 0 ;
7343 void *argp1 = 0 ;
7344 int res1 = 0 ;
7345 void *argp2 = 0 ;
7346 int res2 = 0 ;
7347
7348 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7349 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7350 if (!SWIG_IsOK(res1)) {
7351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7352 }
7353 if (!argp1) {
7354 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7355 }
7356 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7357 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7358 if (!SWIG_IsOK(res2)) {
7359 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7360 }
7361 if (!argp2) {
7362 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7363 }
7364 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7365 {
7366 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7367 if (PyErr_Occurred()) SWIG_fail;
7368 }
7369 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7370 return resultobj;
7371fail:
7372 return NULL;
7373}
7374
7375
7376SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7377 PyObject *resultobj = 0;
7378 wxNativePixelData_Accessor *result = 0 ;
7379
7380 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7381 {
7382 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7383 if (PyErr_Occurred()) SWIG_fail;
7384 }
7385 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7386 return resultobj;
7387fail:
7388 return NULL;
7389}
7390
7391
7392SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7393 int argc;
7394 PyObject *argv[3];
7395
7396 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7397 --argc;
7398 if (argc == 0) {
7399 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7400 }
7401 if (argc == 1) {
7402 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7403 }
7404 if (argc == 2) {
7405 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7406 }
7407
7408fail:
7409 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7410 return NULL;
7411}
7412
7413
7414SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7415 PyObject *resultobj = 0;
7416 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7417 void *argp1 = 0 ;
7418 int res1 = 0 ;
7419 PyObject *swig_obj[1] ;
7420
7421 if (!args) SWIG_fail;
7422 swig_obj[0] = args;
7423 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7424 if (!SWIG_IsOK(res1)) {
7425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7426 }
7427 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7428 {
7429 delete arg1;
7430
7431 if (PyErr_Occurred()) SWIG_fail;
7432 }
7433 resultobj = SWIG_Py_Void();
7434 return resultobj;
7435fail:
7436 return NULL;
7437}
7438
7439
7440SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7441 PyObject *resultobj = 0;
7442 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7443 wxNativePixelData *arg2 = 0 ;
7444 void *argp1 = 0 ;
7445 int res1 = 0 ;
7446 void *argp2 = 0 ;
7447 int res2 = 0 ;
7448 PyObject * obj0 = 0 ;
7449 PyObject * obj1 = 0 ;
7450 char * kwnames[] = {
7451 (char *) "self",(char *) "data", NULL
7452 };
7453
7454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7456 if (!SWIG_IsOK(res1)) {
7457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7458 }
7459 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7460 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7461 if (!SWIG_IsOK(res2)) {
7462 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7463 }
7464 if (!argp2) {
7465 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7466 }
7467 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7468 {
7469 (arg1)->Reset((wxNativePixelData const &)*arg2);
7470 if (PyErr_Occurred()) SWIG_fail;
7471 }
7472 resultobj = SWIG_Py_Void();
7473 return resultobj;
7474fail:
7475 return NULL;
7476}
7477
7478
7479SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7480 PyObject *resultobj = 0;
7481 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7482 bool result;
7483 void *argp1 = 0 ;
7484 int res1 = 0 ;
7485 PyObject *swig_obj[1] ;
7486
7487 if (!args) SWIG_fail;
7488 swig_obj[0] = args;
7489 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7490 if (!SWIG_IsOK(res1)) {
7491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7492 }
7493 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7494 {
7495 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7496 if (PyErr_Occurred()) SWIG_fail;
7497 }
7498 {
7499 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7500 }
7501 return resultobj;
7502fail:
7503 return NULL;
7504}
7505
7506
7507SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7508 PyObject *resultobj = 0;
7509 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7510 void *argp1 = 0 ;
7511 int res1 = 0 ;
7512 PyObject *swig_obj[1] ;
7513
7514 if (!args) SWIG_fail;
7515 swig_obj[0] = args;
7516 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7517 if (!SWIG_IsOK(res1)) {
7518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7519 }
7520 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7521 {
7522 wxNativePixelData_Accessor_nextPixel(arg1);
7523 if (PyErr_Occurred()) SWIG_fail;
7524 }
7525 resultobj = SWIG_Py_Void();
7526 return resultobj;
7527fail:
7528 return NULL;
7529}
7530
7531
7532SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7533 PyObject *resultobj = 0;
7534 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7535 wxNativePixelData *arg2 = 0 ;
7536 int arg3 ;
7537 int arg4 ;
7538 void *argp1 = 0 ;
7539 int res1 = 0 ;
7540 void *argp2 = 0 ;
7541 int res2 = 0 ;
7542 int val3 ;
7543 int ecode3 = 0 ;
7544 int val4 ;
7545 int ecode4 = 0 ;
7546 PyObject * obj0 = 0 ;
7547 PyObject * obj1 = 0 ;
7548 PyObject * obj2 = 0 ;
7549 PyObject * obj3 = 0 ;
7550 char * kwnames[] = {
7551 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7552 };
7553
7554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7556 if (!SWIG_IsOK(res1)) {
7557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7558 }
7559 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7560 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7561 if (!SWIG_IsOK(res2)) {
7562 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7563 }
7564 if (!argp2) {
7565 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7566 }
7567 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7568 ecode3 = SWIG_AsVal_int(obj2, &val3);
7569 if (!SWIG_IsOK(ecode3)) {
7570 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7571 }
7572 arg3 = static_cast< int >(val3);
7573 ecode4 = SWIG_AsVal_int(obj3, &val4);
7574 if (!SWIG_IsOK(ecode4)) {
7575 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7576 }
7577 arg4 = static_cast< int >(val4);
7578 {
7579 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7580 if (PyErr_Occurred()) SWIG_fail;
7581 }
7582 resultobj = SWIG_Py_Void();
7583 return resultobj;
7584fail:
7585 return NULL;
7586}
7587
7588
7589SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7590 PyObject *resultobj = 0;
7591 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7592 wxNativePixelData *arg2 = 0 ;
7593 int arg3 ;
7594 void *argp1 = 0 ;
7595 int res1 = 0 ;
7596 void *argp2 = 0 ;
7597 int res2 = 0 ;
7598 int val3 ;
7599 int ecode3 = 0 ;
7600 PyObject * obj0 = 0 ;
7601 PyObject * obj1 = 0 ;
7602 PyObject * obj2 = 0 ;
7603 char * kwnames[] = {
7604 (char *) "self",(char *) "data",(char *) "x", NULL
7605 };
7606
7607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7609 if (!SWIG_IsOK(res1)) {
7610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7611 }
7612 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7613 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7614 if (!SWIG_IsOK(res2)) {
7615 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7616 }
7617 if (!argp2) {
7618 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7619 }
7620 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7621 ecode3 = SWIG_AsVal_int(obj2, &val3);
7622 if (!SWIG_IsOK(ecode3)) {
7623 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7624 }
7625 arg3 = static_cast< int >(val3);
7626 {
7627 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
7628 if (PyErr_Occurred()) SWIG_fail;
7629 }
7630 resultobj = SWIG_Py_Void();
7631 return resultobj;
7632fail:
7633 return NULL;
7634}
7635
7636
7637SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7638 PyObject *resultobj = 0;
7639 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7640 wxNativePixelData *arg2 = 0 ;
7641 int arg3 ;
7642 void *argp1 = 0 ;
7643 int res1 = 0 ;
7644 void *argp2 = 0 ;
7645 int res2 = 0 ;
7646 int val3 ;
7647 int ecode3 = 0 ;
7648 PyObject * obj0 = 0 ;
7649 PyObject * obj1 = 0 ;
7650 PyObject * obj2 = 0 ;
7651 char * kwnames[] = {
7652 (char *) "self",(char *) "data",(char *) "y", NULL
7653 };
7654
7655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7657 if (!SWIG_IsOK(res1)) {
7658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7659 }
7660 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7661 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7662 if (!SWIG_IsOK(res2)) {
7663 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7664 }
7665 if (!argp2) {
7666 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7667 }
7668 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7669 ecode3 = SWIG_AsVal_int(obj2, &val3);
7670 if (!SWIG_IsOK(ecode3)) {
7671 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
7672 }
7673 arg3 = static_cast< int >(val3);
7674 {
7675 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
7676 if (PyErr_Occurred()) SWIG_fail;
7677 }
7678 resultobj = SWIG_Py_Void();
7679 return resultobj;
7680fail:
7681 return NULL;
7682}
7683
7684
7685SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7686 PyObject *resultobj = 0;
7687 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7688 wxNativePixelData *arg2 = 0 ;
7689 int arg3 ;
7690 int arg4 ;
7691 void *argp1 = 0 ;
7692 int res1 = 0 ;
7693 void *argp2 = 0 ;
7694 int res2 = 0 ;
7695 int val3 ;
7696 int ecode3 = 0 ;
7697 int val4 ;
7698 int ecode4 = 0 ;
7699 PyObject * obj0 = 0 ;
7700 PyObject * obj1 = 0 ;
7701 PyObject * obj2 = 0 ;
7702 PyObject * obj3 = 0 ;
7703 char * kwnames[] = {
7704 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7705 };
7706
7707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7709 if (!SWIG_IsOK(res1)) {
7710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7711 }
7712 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7713 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7714 if (!SWIG_IsOK(res2)) {
7715 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7716 }
7717 if (!argp2) {
7718 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7719 }
7720 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7721 ecode3 = SWIG_AsVal_int(obj2, &val3);
7722 if (!SWIG_IsOK(ecode3)) {
7723 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
7724 }
7725 arg3 = static_cast< int >(val3);
7726 ecode4 = SWIG_AsVal_int(obj3, &val4);
7727 if (!SWIG_IsOK(ecode4)) {
7728 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
7729 }
7730 arg4 = static_cast< int >(val4);
7731 {
7732 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
7733 if (PyErr_Occurred()) SWIG_fail;
7734 }
7735 resultobj = SWIG_Py_Void();
7736 return resultobj;
7737fail:
7738 return NULL;
7739}
7740
7741
7742SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7743 PyObject *resultobj = 0;
7744 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7745 byte arg2 ;
7746 byte arg3 ;
7747 byte arg4 ;
7748 void *argp1 = 0 ;
7749 int res1 = 0 ;
7750 unsigned char val2 ;
7751 int ecode2 = 0 ;
7752 unsigned char val3 ;
7753 int ecode3 = 0 ;
7754 unsigned char val4 ;
7755 int ecode4 = 0 ;
7756 PyObject * obj0 = 0 ;
7757 PyObject * obj1 = 0 ;
7758 PyObject * obj2 = 0 ;
7759 PyObject * obj3 = 0 ;
7760 char * kwnames[] = {
7761 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
7762 };
7763
7764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7766 if (!SWIG_IsOK(res1)) {
7767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7768 }
7769 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7770 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
7771 if (!SWIG_IsOK(ecode2)) {
7772 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
7773 }
7774 arg2 = static_cast< byte >(val2);
7775 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
7776 if (!SWIG_IsOK(ecode3)) {
7777 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
7778 }
7779 arg3 = static_cast< byte >(val3);
7780 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
7781 if (!SWIG_IsOK(ecode4)) {
7782 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
7783 }
7784 arg4 = static_cast< byte >(val4);
7785 {
7786 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
7787 if (PyErr_Occurred()) SWIG_fail;
7788 }
7789 resultobj = SWIG_Py_Void();
7790 return resultobj;
7791fail:
7792 return NULL;
7793}
7794
7795
7796SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7797 PyObject *resultobj = 0;
7798 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7799 PyObject *result = 0 ;
7800 void *argp1 = 0 ;
7801 int res1 = 0 ;
7802 PyObject *swig_obj[1] ;
7803
7804 if (!args) SWIG_fail;
7805 swig_obj[0] = args;
7806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7807 if (!SWIG_IsOK(res1)) {
7808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7809 }
7810 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7811 {
7812 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
7813 if (PyErr_Occurred()) SWIG_fail;
7814 }
7815 resultobj = result;
7816 return resultobj;
7817fail:
7818 return NULL;
7819}
7820
7821
7822SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7823 PyObject *obj;
7824 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7825 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
7826 return SWIG_Py_Void();
7827}
7828
7829SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7830 return SWIG_Python_InitShadowInstance(args);
7831}
7832
7833SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7834 PyObject *resultobj = 0;
7835 wxBitmap *arg1 = 0 ;
7836 wxAlphaPixelData *result = 0 ;
7837 void *argp1 = 0 ;
7838 int res1 = 0 ;
7839
7840 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7842 if (!SWIG_IsOK(res1)) {
7843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7844 }
7845 if (!argp1) {
7846 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7847 }
7848 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7849 {
7850 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
7851 if (PyErr_Occurred()) SWIG_fail;
7852 }
7853 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7854 return resultobj;
7855fail:
7856 return NULL;
7857}
7858
7859
7860SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7861 PyObject *resultobj = 0;
7862 wxBitmap *arg1 = 0 ;
7863 wxRect *arg2 = 0 ;
7864 wxAlphaPixelData *result = 0 ;
7865 void *argp1 = 0 ;
7866 int res1 = 0 ;
7867 wxRect temp2 ;
7868
7869 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7870 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7871 if (!SWIG_IsOK(res1)) {
7872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7873 }
7874 if (!argp1) {
7875 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7876 }
7877 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7878 {
7879 arg2 = &temp2;
7880 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7881 }
7882 {
7883 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
7884 if (PyErr_Occurred()) SWIG_fail;
7885 }
7886 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7887 return resultobj;
7888fail:
7889 return NULL;
7890}
7891
7892
7893SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7894 PyObject *resultobj = 0;
7895 wxBitmap *arg1 = 0 ;
7896 wxPoint *arg2 = 0 ;
7897 wxSize *arg3 = 0 ;
7898 wxAlphaPixelData *result = 0 ;
7899 void *argp1 = 0 ;
7900 int res1 = 0 ;
7901 wxPoint temp2 ;
7902 wxSize temp3 ;
7903
7904 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7906 if (!SWIG_IsOK(res1)) {
7907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7908 }
7909 if (!argp1) {
7910 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7911 }
7912 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7913 {
7914 arg2 = &temp2;
7915 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7916 }
7917 {
7918 arg3 = &temp3;
7919 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7920 }
7921 {
7922 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7923 if (PyErr_Occurred()) SWIG_fail;
7924 }
7925 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7926 return resultobj;
7927fail:
7928 return NULL;
7929}
7930
7931
7932SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
7933 int argc;
7934 PyObject *argv[4];
7935
7936 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
7937 --argc;
7938 if (argc == 1) {
7939 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
7940 }
7941 if (argc == 2) {
7942 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
7943 }
7944 if (argc == 3) {
7945 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
7946 }
7947
7948fail:
7949 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
7950 return NULL;
7951}
7952
7953
7954SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7955 PyObject *resultobj = 0;
7956 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
7957 void *argp1 = 0 ;
7958 int res1 = 0 ;
7959 PyObject *swig_obj[1] ;
7960
7961 if (!args) SWIG_fail;
7962 swig_obj[0] = args;
7963 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
7964 if (!SWIG_IsOK(res1)) {
7965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
7966 }
7967 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
7968 {
7969 delete arg1;
7970
7971 if (PyErr_Occurred()) SWIG_fail;
7972 }
7973 resultobj = SWIG_Py_Void();
7974 return resultobj;
7975fail:
7976 return NULL;
7977}
7978
7979
7980SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7981 PyObject *resultobj = 0;
7982 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
7983 wxAlphaPixelData_Accessor result;
7984 void *argp1 = 0 ;
7985 int res1 = 0 ;
7986 PyObject *swig_obj[1] ;
7987
7988 if (!args) SWIG_fail;
7989 swig_obj[0] = args;
7990 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
7991 if (!SWIG_IsOK(res1)) {
7992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
7993 }
7994 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
7995 {
7996 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
7997 if (PyErr_Occurred()) SWIG_fail;
7998 }
7999 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8000 return resultobj;
8001fail:
8002 return NULL;
8003}
8004
8005
8006SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8007 PyObject *resultobj = 0;
8008 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8009 void *argp1 = 0 ;
8010 int res1 = 0 ;
8011 PyObject *swig_obj[1] ;
8012
8013 if (!args) SWIG_fail;
8014 swig_obj[0] = args;
8015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8016 if (!SWIG_IsOK(res1)) {
8017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8018 }
8019 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8020 {
8021 (arg1)->UseAlpha();
8022 if (PyErr_Occurred()) SWIG_fail;
8023 }
8024 resultobj = SWIG_Py_Void();
8025 return resultobj;
8026fail:
8027 return NULL;
8028}
8029
8030
8031SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8032 PyObject *resultobj = 0;
8033 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8034 bool result;
8035 void *argp1 = 0 ;
8036 int res1 = 0 ;
8037 PyObject *swig_obj[1] ;
8038
8039 if (!args) SWIG_fail;
8040 swig_obj[0] = args;
8041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8042 if (!SWIG_IsOK(res1)) {
8043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8044 }
8045 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8046 {
8047 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8048 if (PyErr_Occurred()) SWIG_fail;
8049 }
8050 {
8051 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8052 }
8053 return resultobj;
8054fail:
8055 return NULL;
8056}
8057
8058
8059SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8060 PyObject *obj;
8061 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8062 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8063 return SWIG_Py_Void();
8064}
8065
8066SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8067 return SWIG_Python_InitShadowInstance(args);
8068}
8069
8070SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8071 PyObject *resultobj = 0;
8072 wxAlphaPixelData *arg1 = 0 ;
8073 wxAlphaPixelData_Accessor *result = 0 ;
8074 void *argp1 = 0 ;
8075 int res1 = 0 ;
8076
8077 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8078 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8079 if (!SWIG_IsOK(res1)) {
8080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8081 }
8082 if (!argp1) {
8083 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8084 }
8085 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8086 {
8087 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8088 if (PyErr_Occurred()) SWIG_fail;
8089 }
8090 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8091 return resultobj;
8092fail:
8093 return NULL;
8094}
8095
8096
8097SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8098 PyObject *resultobj = 0;
8099 wxBitmap *arg1 = 0 ;
8100 wxAlphaPixelData *arg2 = 0 ;
8101 wxAlphaPixelData_Accessor *result = 0 ;
8102 void *argp1 = 0 ;
8103 int res1 = 0 ;
8104 void *argp2 = 0 ;
8105 int res2 = 0 ;
8106
8107 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8108 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8109 if (!SWIG_IsOK(res1)) {
8110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8111 }
8112 if (!argp1) {
8113 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8114 }
8115 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8116 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8117 if (!SWIG_IsOK(res2)) {
8118 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8119 }
8120 if (!argp2) {
8121 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8122 }
8123 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8124 {
8125 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8126 if (PyErr_Occurred()) SWIG_fail;
8127 }
8128 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8129 return resultobj;
8130fail:
8131 return NULL;
8132}
8133
8134
8135SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8136 PyObject *resultobj = 0;
8137 wxAlphaPixelData_Accessor *result = 0 ;
8138
8139 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8140 {
8141 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8142 if (PyErr_Occurred()) SWIG_fail;
8143 }
8144 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8145 return resultobj;
8146fail:
8147 return NULL;
8148}
8149
8150
8151SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8152 int argc;
8153 PyObject *argv[3];
8154
8155 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8156 --argc;
8157 if (argc == 0) {
8158 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8159 }
8160 if (argc == 1) {
8161 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8162 }
8163 if (argc == 2) {
8164 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8165 }
8166
8167fail:
8168 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8169 return NULL;
8170}
8171
8172
8173SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8174 PyObject *resultobj = 0;
8175 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8176 void *argp1 = 0 ;
8177 int res1 = 0 ;
8178 PyObject *swig_obj[1] ;
8179
8180 if (!args) SWIG_fail;
8181 swig_obj[0] = args;
8182 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8183 if (!SWIG_IsOK(res1)) {
8184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8185 }
8186 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8187 {
8188 delete arg1;
8189
8190 if (PyErr_Occurred()) SWIG_fail;
8191 }
8192 resultobj = SWIG_Py_Void();
8193 return resultobj;
8194fail:
8195 return NULL;
8196}
8197
8198
8199SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8200 PyObject *resultobj = 0;
8201 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8202 wxAlphaPixelData *arg2 = 0 ;
8203 void *argp1 = 0 ;
8204 int res1 = 0 ;
8205 void *argp2 = 0 ;
8206 int res2 = 0 ;
8207 PyObject * obj0 = 0 ;
8208 PyObject * obj1 = 0 ;
8209 char * kwnames[] = {
8210 (char *) "self",(char *) "data", NULL
8211 };
8212
8213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8215 if (!SWIG_IsOK(res1)) {
8216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8217 }
8218 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8219 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8220 if (!SWIG_IsOK(res2)) {
8221 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8222 }
8223 if (!argp2) {
8224 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8225 }
8226 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8227 {
8228 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8229 if (PyErr_Occurred()) SWIG_fail;
8230 }
8231 resultobj = SWIG_Py_Void();
8232 return resultobj;
8233fail:
8234 return NULL;
8235}
8236
8237
8238SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8239 PyObject *resultobj = 0;
8240 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8241 bool result;
8242 void *argp1 = 0 ;
8243 int res1 = 0 ;
8244 PyObject *swig_obj[1] ;
8245
8246 if (!args) SWIG_fail;
8247 swig_obj[0] = args;
8248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8249 if (!SWIG_IsOK(res1)) {
8250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8251 }
8252 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8253 {
8254 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8255 if (PyErr_Occurred()) SWIG_fail;
8256 }
8257 {
8258 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8259 }
8260 return resultobj;
8261fail:
8262 return NULL;
8263}
8264
8265
8266SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8267 PyObject *resultobj = 0;
8268 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8269 void *argp1 = 0 ;
8270 int res1 = 0 ;
8271 PyObject *swig_obj[1] ;
8272
8273 if (!args) SWIG_fail;
8274 swig_obj[0] = args;
8275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8276 if (!SWIG_IsOK(res1)) {
8277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8278 }
8279 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8280 {
8281 wxAlphaPixelData_Accessor_nextPixel(arg1);
8282 if (PyErr_Occurred()) SWIG_fail;
8283 }
8284 resultobj = SWIG_Py_Void();
8285 return resultobj;
8286fail:
8287 return NULL;
8288}
8289
8290
8291SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8292 PyObject *resultobj = 0;
8293 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8294 wxAlphaPixelData *arg2 = 0 ;
8295 int arg3 ;
8296 int arg4 ;
8297 void *argp1 = 0 ;
8298 int res1 = 0 ;
8299 void *argp2 = 0 ;
8300 int res2 = 0 ;
8301 int val3 ;
8302 int ecode3 = 0 ;
8303 int val4 ;
8304 int ecode4 = 0 ;
8305 PyObject * obj0 = 0 ;
8306 PyObject * obj1 = 0 ;
8307 PyObject * obj2 = 0 ;
8308 PyObject * obj3 = 0 ;
8309 char * kwnames[] = {
8310 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8311 };
8312
8313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8315 if (!SWIG_IsOK(res1)) {
8316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8317 }
8318 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8319 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8320 if (!SWIG_IsOK(res2)) {
8321 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8322 }
8323 if (!argp2) {
8324 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8325 }
8326 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8327 ecode3 = SWIG_AsVal_int(obj2, &val3);
8328 if (!SWIG_IsOK(ecode3)) {
8329 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8330 }
8331 arg3 = static_cast< int >(val3);
8332 ecode4 = SWIG_AsVal_int(obj3, &val4);
8333 if (!SWIG_IsOK(ecode4)) {
8334 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8335 }
8336 arg4 = static_cast< int >(val4);
8337 {
8338 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8339 if (PyErr_Occurred()) SWIG_fail;
8340 }
8341 resultobj = SWIG_Py_Void();
8342 return resultobj;
8343fail:
8344 return NULL;
8345}
8346
8347
8348SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8349 PyObject *resultobj = 0;
8350 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8351 wxAlphaPixelData *arg2 = 0 ;
8352 int arg3 ;
8353 void *argp1 = 0 ;
8354 int res1 = 0 ;
8355 void *argp2 = 0 ;
8356 int res2 = 0 ;
8357 int val3 ;
8358 int ecode3 = 0 ;
8359 PyObject * obj0 = 0 ;
8360 PyObject * obj1 = 0 ;
8361 PyObject * obj2 = 0 ;
8362 char * kwnames[] = {
8363 (char *) "self",(char *) "data",(char *) "x", NULL
8364 };
8365
8366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8368 if (!SWIG_IsOK(res1)) {
8369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8370 }
8371 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8372 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8373 if (!SWIG_IsOK(res2)) {
8374 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8375 }
8376 if (!argp2) {
8377 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8378 }
8379 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8380 ecode3 = SWIG_AsVal_int(obj2, &val3);
8381 if (!SWIG_IsOK(ecode3)) {
8382 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8383 }
8384 arg3 = static_cast< int >(val3);
8385 {
8386 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8387 if (PyErr_Occurred()) SWIG_fail;
8388 }
8389 resultobj = SWIG_Py_Void();
8390 return resultobj;
8391fail:
8392 return NULL;
8393}
8394
8395
8396SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8397 PyObject *resultobj = 0;
8398 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8399 wxAlphaPixelData *arg2 = 0 ;
8400 int arg3 ;
8401 void *argp1 = 0 ;
8402 int res1 = 0 ;
8403 void *argp2 = 0 ;
8404 int res2 = 0 ;
8405 int val3 ;
8406 int ecode3 = 0 ;
8407 PyObject * obj0 = 0 ;
8408 PyObject * obj1 = 0 ;
8409 PyObject * obj2 = 0 ;
8410 char * kwnames[] = {
8411 (char *) "self",(char *) "data",(char *) "y", NULL
8412 };
8413
8414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8416 if (!SWIG_IsOK(res1)) {
8417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8418 }
8419 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8420 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8421 if (!SWIG_IsOK(res2)) {
8422 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8423 }
8424 if (!argp2) {
8425 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8426 }
8427 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8428 ecode3 = SWIG_AsVal_int(obj2, &val3);
8429 if (!SWIG_IsOK(ecode3)) {
8430 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8431 }
8432 arg3 = static_cast< int >(val3);
8433 {
8434 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8435 if (PyErr_Occurred()) SWIG_fail;
8436 }
8437 resultobj = SWIG_Py_Void();
8438 return resultobj;
8439fail:
8440 return NULL;
8441}
8442
8443
8444SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8445 PyObject *resultobj = 0;
8446 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8447 wxAlphaPixelData *arg2 = 0 ;
8448 int arg3 ;
8449 int arg4 ;
8450 void *argp1 = 0 ;
8451 int res1 = 0 ;
8452 void *argp2 = 0 ;
8453 int res2 = 0 ;
8454 int val3 ;
8455 int ecode3 = 0 ;
8456 int val4 ;
8457 int ecode4 = 0 ;
8458 PyObject * obj0 = 0 ;
8459 PyObject * obj1 = 0 ;
8460 PyObject * obj2 = 0 ;
8461 PyObject * obj3 = 0 ;
8462 char * kwnames[] = {
8463 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8464 };
8465
8466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8468 if (!SWIG_IsOK(res1)) {
8469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8470 }
8471 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8472 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8473 if (!SWIG_IsOK(res2)) {
8474 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8475 }
8476 if (!argp2) {
8477 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8478 }
8479 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8480 ecode3 = SWIG_AsVal_int(obj2, &val3);
8481 if (!SWIG_IsOK(ecode3)) {
8482 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8483 }
8484 arg3 = static_cast< int >(val3);
8485 ecode4 = SWIG_AsVal_int(obj3, &val4);
8486 if (!SWIG_IsOK(ecode4)) {
8487 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8488 }
8489 arg4 = static_cast< int >(val4);
8490 {
8491 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8492 if (PyErr_Occurred()) SWIG_fail;
8493 }
8494 resultobj = SWIG_Py_Void();
8495 return resultobj;
8496fail:
8497 return NULL;
8498}
8499
8500
8501SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8502 PyObject *resultobj = 0;
8503 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8504 byte arg2 ;
8505 byte arg3 ;
8506 byte arg4 ;
8507 byte arg5 ;
8508 void *argp1 = 0 ;
8509 int res1 = 0 ;
8510 unsigned char val2 ;
8511 int ecode2 = 0 ;
8512 unsigned char val3 ;
8513 int ecode3 = 0 ;
8514 unsigned char val4 ;
8515 int ecode4 = 0 ;
8516 unsigned char val5 ;
8517 int ecode5 = 0 ;
8518 PyObject * obj0 = 0 ;
8519 PyObject * obj1 = 0 ;
8520 PyObject * obj2 = 0 ;
8521 PyObject * obj3 = 0 ;
8522 PyObject * obj4 = 0 ;
8523 char * kwnames[] = {
8524 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8525 };
8526
8527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8529 if (!SWIG_IsOK(res1)) {
8530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8531 }
8532 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8533 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8534 if (!SWIG_IsOK(ecode2)) {
8535 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8536 }
8537 arg2 = static_cast< byte >(val2);
8538 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8539 if (!SWIG_IsOK(ecode3)) {
8540 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8541 }
8542 arg3 = static_cast< byte >(val3);
8543 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8544 if (!SWIG_IsOK(ecode4)) {
8545 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8546 }
8547 arg4 = static_cast< byte >(val4);
8548 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8549 if (!SWIG_IsOK(ecode5)) {
8550 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8551 }
8552 arg5 = static_cast< byte >(val5);
8553 {
8554 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8555 if (PyErr_Occurred()) SWIG_fail;
0085ce49 8556 }
fc46b7f3 8557 resultobj = SWIG_Py_Void();
0085ce49
RD
8558 return resultobj;
8559fail:
8560 return NULL;
8561}
8562
8563
fc46b7f3 8564SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 8565 PyObject *resultobj = 0;
fc46b7f3
RD
8566 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8567 PyObject *result = 0 ;
0085ce49
RD
8568 void *argp1 = 0 ;
8569 int res1 = 0 ;
fc46b7f3 8570 PyObject *swig_obj[1] ;
0085ce49 8571
fc46b7f3
RD
8572 if (!args) SWIG_fail;
8573 swig_obj[0] = args;
8574 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
0085ce49 8575 if (!SWIG_IsOK(res1)) {
fc46b7f3 8576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
0085ce49 8577 }
fc46b7f3 8578 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
0085ce49 8579 {
fc46b7f3 8580 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
0085ce49
RD
8581 if (PyErr_Occurred()) SWIG_fail;
8582 }
fc46b7f3 8583 resultobj = result;
0085ce49
RD
8584 return resultobj;
8585fail:
8586 return NULL;
d14a1e28
RD
8587}
8588
8589
fc46b7f3 8590SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
8591 PyObject *obj;
8592 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 8593 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
0085ce49 8594 return SWIG_Py_Void();
b2df227b
RD
8595}
8596
fc46b7f3 8597SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 8598 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
8599}
8600
0085ce49
RD
8601SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8602 PyObject *resultobj = 0;
8603 wxBitmap *arg1 = 0 ;
8604 wxColour const &arg2_defvalue = wxNullColour ;
8605 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8606 wxMask *result = 0 ;
8607 void *argp1 = 0 ;
8608 int res1 = 0 ;
8609 wxColour temp2 ;
8610 PyObject * obj0 = 0 ;
8611 PyObject * obj1 = 0 ;
8612 char * kwnames[] = {
8613 (char *) "bitmap",(char *) "colour", NULL
8614 };
8615
8616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8617 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8618 if (!SWIG_IsOK(res1)) {
8619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8620 }
8621 if (!argp1) {
8622 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8623 }
8624 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8625 if (obj1) {
d14a1e28 8626 {
0085ce49
RD
8627 arg2 = &temp2;
8628 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d14a1e28 8629 }
0085ce49
RD
8630 }
8631 {
8632 if (!wxPyCheckForApp()) SWIG_fail;
8633 PyThreadState* __tstate = wxPyBeginAllowThreads();
8634 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
8635 wxPyEndAllowThreads(__tstate);
8636 if (PyErr_Occurred()) SWIG_fail;
8637 }
8638 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
8639 return resultobj;
8640fail:
8641 return NULL;
d14a1e28
RD
8642}
8643
8644
0085ce49
RD
8645SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8646 PyObject *resultobj = 0;
8647 wxMask *arg1 = (wxMask *) 0 ;
8648 void *argp1 = 0 ;
8649 int res1 = 0 ;
8650 PyObject *swig_obj[1] ;
8651
8652 if (!args) SWIG_fail;
8653 swig_obj[0] = args;
8654 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
8655 if (!SWIG_IsOK(res1)) {
8656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
8657 }
8658 arg1 = reinterpret_cast< wxMask * >(argp1);
8659 {
0085ce49 8660 delete arg1;
d14a1e28 8661
0085ce49
RD
8662 if (PyErr_Occurred()) SWIG_fail;
8663 }
8664 resultobj = SWIG_Py_Void();
8665 return resultobj;
8666fail:
8667 return NULL;
8668}
8669
8670
8671SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8672 PyObject *obj;
8673 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8674 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
8675 return SWIG_Py_Void();
8676}
8677
8678SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8679 return SWIG_Python_InitShadowInstance(args);
8680}
8681
8682SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8683 PyObject *resultobj = 0;
8684 wxString *arg1 = 0 ;
8685 wxBitmapType arg2 ;
8686 int arg3 = (int) -1 ;
8687 int arg4 = (int) -1 ;
8688 wxIcon *result = 0 ;
8689 bool temp1 = false ;
8690 int val2 ;
8691 int ecode2 = 0 ;
8692 int val3 ;
8693 int ecode3 = 0 ;
8694 int val4 ;
8695 int ecode4 = 0 ;
8696 PyObject * obj0 = 0 ;
8697 PyObject * obj1 = 0 ;
8698 PyObject * obj2 = 0 ;
8699 PyObject * obj3 = 0 ;
8700 char * kwnames[] = {
8701 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
8702 };
8703
8704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8705 {
8706 arg1 = wxString_in_helper(obj0);
8707 if (arg1 == NULL) SWIG_fail;
8708 temp1 = true;
8709 }
8710 ecode2 = SWIG_AsVal_int(obj1, &val2);
8711 if (!SWIG_IsOK(ecode2)) {
8712 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
8713 }
8714 arg2 = static_cast< wxBitmapType >(val2);
8715 if (obj2) {
8716 ecode3 = SWIG_AsVal_int(obj2, &val3);
8717 if (!SWIG_IsOK(ecode3)) {
8718 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
8719 }
8720 arg3 = static_cast< int >(val3);
8721 }
8722 if (obj3) {
8723 ecode4 = SWIG_AsVal_int(obj3, &val4);
8724 if (!SWIG_IsOK(ecode4)) {
8725 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
8726 }
8727 arg4 = static_cast< int >(val4);
8728 }
8729 {
8730 if (!wxPyCheckForApp()) SWIG_fail;
8731 PyThreadState* __tstate = wxPyBeginAllowThreads();
8732 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
8733 wxPyEndAllowThreads(__tstate);
8734 if (PyErr_Occurred()) SWIG_fail;
8735 }
8736 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
8737 {
8738 if (temp1)
8739 delete arg1;
8740 }
8741 return resultobj;
8742fail:
8743 {
8744 if (temp1)
8745 delete arg1;
8746 }
8747 return NULL;
d14a1e28
RD
8748}
8749
8750
0085ce49
RD
8751SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8752 PyObject *resultobj = 0;
8753 wxIcon *arg1 = (wxIcon *) 0 ;
8754 void *argp1 = 0 ;
8755 int res1 = 0 ;
8756 PyObject *swig_obj[1] ;
8757
8758 if (!args) SWIG_fail;
8759 swig_obj[0] = args;
8760 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
8761 if (!SWIG_IsOK(res1)) {
8762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
8763 }
8764 arg1 = reinterpret_cast< wxIcon * >(argp1);
8765 {
8766 PyThreadState* __tstate = wxPyBeginAllowThreads();
8767 delete arg1;
d14a1e28 8768
0085ce49
RD
8769 wxPyEndAllowThreads(__tstate);
8770 if (PyErr_Occurred()) SWIG_fail;
8771 }
8772 resultobj = SWIG_Py_Void();
8773 return resultobj;
8774fail:
8775 return NULL;
d14a1e28
RD
8776}
8777
8778
0085ce49
RD
8779SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8780 PyObject *resultobj = 0;
8781 wxIcon *result = 0 ;
8782
8783 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
8784 {
8785 if (!wxPyCheckForApp()) SWIG_fail;
8786 PyThreadState* __tstate = wxPyBeginAllowThreads();
8787 result = (wxIcon *)new wxIcon();
8788 wxPyEndAllowThreads(__tstate);
8789 if (PyErr_Occurred()) SWIG_fail;
8790 }
8791 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8792 return resultobj;
8793fail:
8794 return NULL;
8795}
8796
8797
8798SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8799 PyObject *resultobj = 0;
8800 wxIconLocation *arg1 = 0 ;
8801 wxIcon *result = 0 ;
8802 void *argp1 = 0 ;
8803 int res1 = 0 ;
8804 PyObject * obj0 = 0 ;
8805 char * kwnames[] = {
8806 (char *) "loc", NULL
8807 };
8808
8809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
8810 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
8811 if (!SWIG_IsOK(res1)) {
8812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8813 }
8814 if (!argp1) {
8815 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8816 }
8817 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
8818 {
8819 if (!wxPyCheckForApp()) SWIG_fail;
8820 PyThreadState* __tstate = wxPyBeginAllowThreads();
8821 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
8822 wxPyEndAllowThreads(__tstate);
8823 if (PyErr_Occurred()) SWIG_fail;
8824 }
8825 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8826 return resultobj;
8827fail:
8828 return NULL;
8829}
8830
8831
8832SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8833 PyObject *resultobj = 0;
8834 wxBitmap *arg1 = 0 ;
8835 wxIcon *result = 0 ;
8836 void *argp1 = 0 ;
8837 int res1 = 0 ;
8838 PyObject * obj0 = 0 ;
8839 char * kwnames[] = {
8840 (char *) "bmp", NULL
8841 };
8842
8843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
8844 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8845 if (!SWIG_IsOK(res1)) {
8846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8847 }
8848 if (!argp1) {
8849 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8850 }
8851 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8852 {
8853 if (!wxPyCheckForApp()) SWIG_fail;
8854 PyThreadState* __tstate = wxPyBeginAllowThreads();
8855 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
8856 wxPyEndAllowThreads(__tstate);
8857 if (PyErr_Occurred()) SWIG_fail;
8858 }
8859 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8860 return resultobj;
8861fail:
8862 return NULL;
d14a1e28
RD
8863}
8864
8865
0085ce49
RD
8866SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8867 PyObject *resultobj = 0;
8868 PyObject *arg1 = (PyObject *) 0 ;
8869 wxIcon *result = 0 ;
8870 PyObject * obj0 = 0 ;
8871 char * kwnames[] = {
8872 (char *) "listOfStrings", NULL
8873 };
8874
8875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
8876 arg1 = obj0;
8877 {
8878 if (!wxPyCheckForApp()) SWIG_fail;
8879 PyThreadState* __tstate = wxPyBeginAllowThreads();
8880 result = (wxIcon *)new_wxIcon(arg1);
8881 wxPyEndAllowThreads(__tstate);
8882 if (PyErr_Occurred()) SWIG_fail;
8883 }
8884 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8885 return resultobj;
8886fail:
8887 return NULL;
8888}
8889
8890
8891SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8892 PyObject *resultobj = 0;
8893 wxIcon *arg1 = (wxIcon *) 0 ;
8894 wxString *arg2 = 0 ;
8895 wxBitmapType arg3 ;
8896 bool result;
8897 void *argp1 = 0 ;
8898 int res1 = 0 ;
8899 bool temp2 = false ;
8900 int val3 ;
8901 int ecode3 = 0 ;
8902 PyObject * obj0 = 0 ;
8903 PyObject * obj1 = 0 ;
8904 PyObject * obj2 = 0 ;
8905 char * kwnames[] = {
8906 (char *) "self",(char *) "name",(char *) "type", NULL
8907 };
8908
8909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8911 if (!SWIG_IsOK(res1)) {
8912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
8913 }
8914 arg1 = reinterpret_cast< wxIcon * >(argp1);
8915 {
8916 arg2 = wxString_in_helper(obj1);
8917 if (arg2 == NULL) SWIG_fail;
8918 temp2 = true;
8919 }
8920 ecode3 = SWIG_AsVal_int(obj2, &val3);
8921 if (!SWIG_IsOK(ecode3)) {
8922 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
8923 }
8924 arg3 = static_cast< wxBitmapType >(val3);
8925 {
8926 PyThreadState* __tstate = wxPyBeginAllowThreads();
8927 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
8928 wxPyEndAllowThreads(__tstate);
8929 if (PyErr_Occurred()) SWIG_fail;
8930 }
8931 {
8932 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8933 }
8934 {
8935 if (temp2)
8936 delete arg2;
8937 }
8938 return resultobj;
8939fail:
8940 {
8941 if (temp2)
8942 delete arg2;
8943 }
8944 return NULL;
d14a1e28
RD
8945}
8946
8947
b39fe951 8948SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
8949 PyObject *resultobj = 0;
8950 wxIcon *arg1 = (wxIcon *) 0 ;
8951 bool result;
8952 void *argp1 = 0 ;
8953 int res1 = 0 ;
8954 PyObject *swig_obj[1] ;
8955
8956 if (!args) SWIG_fail;
8957 swig_obj[0] = args;
8958 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8959 if (!SWIG_IsOK(res1)) {
b39fe951 8960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
0085ce49
RD
8961 }
8962 arg1 = reinterpret_cast< wxIcon * >(argp1);
8963 {
8964 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 8965 result = (bool)(arg1)->IsOk();
0085ce49
RD
8966 wxPyEndAllowThreads(__tstate);
8967 if (PyErr_Occurred()) SWIG_fail;
8968 }
8969 {
8970 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8971 }
8972 return resultobj;
8973fail:
8974 return NULL;
d14a1e28
RD
8975}
8976
8977
0085ce49
RD
8978SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8979 PyObject *resultobj = 0;
8980 wxIcon *arg1 = (wxIcon *) 0 ;
8981 int result;
8982 void *argp1 = 0 ;
8983 int res1 = 0 ;
8984 PyObject *swig_obj[1] ;
8985
8986 if (!args) SWIG_fail;
8987 swig_obj[0] = args;
8988 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8989 if (!SWIG_IsOK(res1)) {
8990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
8991 }
8992 arg1 = reinterpret_cast< wxIcon * >(argp1);
8993 {
8994 PyThreadState* __tstate = wxPyBeginAllowThreads();
8995 result = (int)(arg1)->GetWidth();
8996 wxPyEndAllowThreads(__tstate);
8997 if (PyErr_Occurred()) SWIG_fail;
8998 }
8999 resultobj = SWIG_From_int(static_cast< int >(result));
9000 return resultobj;
9001fail:
9002 return NULL;
d3b6e4ff
RD
9003}
9004
9005
0085ce49
RD
9006SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9007 PyObject *resultobj = 0;
9008 wxIcon *arg1 = (wxIcon *) 0 ;
9009 int result;
9010 void *argp1 = 0 ;
9011 int res1 = 0 ;
9012 PyObject *swig_obj[1] ;
9013
9014 if (!args) SWIG_fail;
9015 swig_obj[0] = args;
9016 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9017 if (!SWIG_IsOK(res1)) {
9018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9019 }
9020 arg1 = reinterpret_cast< wxIcon * >(argp1);
9021 {
9022 PyThreadState* __tstate = wxPyBeginAllowThreads();
9023 result = (int)(arg1)->GetHeight();
9024 wxPyEndAllowThreads(__tstate);
9025 if (PyErr_Occurred()) SWIG_fail;
9026 }
9027 resultobj = SWIG_From_int(static_cast< int >(result));
9028 return resultobj;
9029fail:
9030 return NULL;
d14a1e28
RD
9031}
9032
9033
0085ce49
RD
9034SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9035 PyObject *resultobj = 0;
9036 wxIcon *arg1 = (wxIcon *) 0 ;
9037 int result;
9038 void *argp1 = 0 ;
9039 int res1 = 0 ;
9040 PyObject *swig_obj[1] ;
9041
9042 if (!args) SWIG_fail;
9043 swig_obj[0] = args;
9044 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9045 if (!SWIG_IsOK(res1)) {
9046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9047 }
9048 arg1 = reinterpret_cast< wxIcon * >(argp1);
9049 {
9050 PyThreadState* __tstate = wxPyBeginAllowThreads();
9051 result = (int)(arg1)->GetDepth();
9052 wxPyEndAllowThreads(__tstate);
9053 if (PyErr_Occurred()) SWIG_fail;
9054 }
9055 resultobj = SWIG_From_int(static_cast< int >(result));
9056 return resultobj;
9057fail:
9058 return NULL;
9059}
9060
9061
9062SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9063 PyObject *resultobj = 0;
9064 wxIcon *arg1 = (wxIcon *) 0 ;
9065 int arg2 ;
9066 void *argp1 = 0 ;
9067 int res1 = 0 ;
9068 int val2 ;
9069 int ecode2 = 0 ;
9070 PyObject * obj0 = 0 ;
9071 PyObject * obj1 = 0 ;
9072 char * kwnames[] = {
9073 (char *) "self",(char *) "w", NULL
9074 };
9075
9076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9078 if (!SWIG_IsOK(res1)) {
9079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9080 }
9081 arg1 = reinterpret_cast< wxIcon * >(argp1);
9082 ecode2 = SWIG_AsVal_int(obj1, &val2);
9083 if (!SWIG_IsOK(ecode2)) {
9084 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9085 }
9086 arg2 = static_cast< int >(val2);
9087 {
9088 PyThreadState* __tstate = wxPyBeginAllowThreads();
9089 (arg1)->SetWidth(arg2);
9090 wxPyEndAllowThreads(__tstate);
9091 if (PyErr_Occurred()) SWIG_fail;
9092 }
9093 resultobj = SWIG_Py_Void();
9094 return resultobj;
9095fail:
9096 return NULL;
9097}
9098
9099
9100SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9101 PyObject *resultobj = 0;
9102 wxIcon *arg1 = (wxIcon *) 0 ;
9103 int arg2 ;
9104 void *argp1 = 0 ;
9105 int res1 = 0 ;
9106 int val2 ;
9107 int ecode2 = 0 ;
9108 PyObject * obj0 = 0 ;
9109 PyObject * obj1 = 0 ;
9110 char * kwnames[] = {
9111 (char *) "self",(char *) "h", NULL
9112 };
9113
9114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9116 if (!SWIG_IsOK(res1)) {
9117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9118 }
9119 arg1 = reinterpret_cast< wxIcon * >(argp1);
9120 ecode2 = SWIG_AsVal_int(obj1, &val2);
9121 if (!SWIG_IsOK(ecode2)) {
9122 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9123 }
9124 arg2 = static_cast< int >(val2);
9125 {
9126 PyThreadState* __tstate = wxPyBeginAllowThreads();
9127 (arg1)->SetHeight(arg2);
9128 wxPyEndAllowThreads(__tstate);
9129 if (PyErr_Occurred()) SWIG_fail;
9130 }
9131 resultobj = SWIG_Py_Void();
9132 return resultobj;
9133fail:
9134 return NULL;
9135}
9136
9137
9138SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9139 PyObject *resultobj = 0;
9140 wxIcon *arg1 = (wxIcon *) 0 ;
9141 int arg2 ;
9142 void *argp1 = 0 ;
9143 int res1 = 0 ;
9144 int val2 ;
9145 int ecode2 = 0 ;
9146 PyObject * obj0 = 0 ;
9147 PyObject * obj1 = 0 ;
9148 char * kwnames[] = {
9149 (char *) "self",(char *) "d", NULL
9150 };
9151
9152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9154 if (!SWIG_IsOK(res1)) {
9155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9156 }
9157 arg1 = reinterpret_cast< wxIcon * >(argp1);
9158 ecode2 = SWIG_AsVal_int(obj1, &val2);
9159 if (!SWIG_IsOK(ecode2)) {
9160 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9161 }
9162 arg2 = static_cast< int >(val2);
9163 {
9164 PyThreadState* __tstate = wxPyBeginAllowThreads();
9165 (arg1)->SetDepth(arg2);
9166 wxPyEndAllowThreads(__tstate);
9167 if (PyErr_Occurred()) SWIG_fail;
9168 }
9169 resultobj = SWIG_Py_Void();
9170 return resultobj;
9171fail:
9172 return NULL;
9173}
9174
9175
9176SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9177 PyObject *resultobj = 0;
9178 wxIcon *arg1 = (wxIcon *) 0 ;
9179 wxBitmap *arg2 = 0 ;
9180 void *argp1 = 0 ;
9181 int res1 = 0 ;
9182 void *argp2 = 0 ;
9183 int res2 = 0 ;
9184 PyObject * obj0 = 0 ;
9185 PyObject * obj1 = 0 ;
9186 char * kwnames[] = {
9187 (char *) "self",(char *) "bmp", NULL
9188 };
9189
9190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9192 if (!SWIG_IsOK(res1)) {
9193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9194 }
9195 arg1 = reinterpret_cast< wxIcon * >(argp1);
9196 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9197 if (!SWIG_IsOK(res2)) {
9198 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9199 }
9200 if (!argp2) {
9201 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9202 }
9203 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9204 {
9205 PyThreadState* __tstate = wxPyBeginAllowThreads();
9206 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9207 wxPyEndAllowThreads(__tstate);
9208 if (PyErr_Occurred()) SWIG_fail;
9209 }
9210 resultobj = SWIG_Py_Void();
9211 return resultobj;
9212fail:
9213 return NULL;
d14a1e28
RD
9214}
9215
9216
0085ce49
RD
9217SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9218 PyObject *obj;
9219 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9220 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9221 return SWIG_Py_Void();
d14a1e28
RD
9222}
9223
0085ce49
RD
9224SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9225 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
9226}
9227
0085ce49
RD
9228SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9229 PyObject *resultobj = 0;
9230 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9231 int arg2 = (int) 0 ;
9232 wxIconLocation *result = 0 ;
9233 bool temp1 = false ;
9234 int val2 ;
9235 int ecode2 = 0 ;
9236 PyObject * obj0 = 0 ;
9237 PyObject * obj1 = 0 ;
9238 char * kwnames[] = {
9239 (char *) "filename",(char *) "num", NULL
9240 };
9241
9242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9243 if (obj0) {
b2df227b 9244 {
0085ce49
RD
9245 arg1 = wxString_in_helper(obj0);
9246 if (arg1 == NULL) SWIG_fail;
9247 temp1 = true;
b2df227b 9248 }
0085ce49
RD
9249 }
9250 if (obj1) {
9251 ecode2 = SWIG_AsVal_int(obj1, &val2);
9252 if (!SWIG_IsOK(ecode2)) {
9253 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9254 }
9255 arg2 = static_cast< int >(val2);
9256 }
9257 {
9258 PyThreadState* __tstate = wxPyBeginAllowThreads();
9259 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9260 wxPyEndAllowThreads(__tstate);
9261 if (PyErr_Occurred()) SWIG_fail;
9262 }
9263 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9264 {
9265 if (temp1)
9266 delete arg1;
9267 }
9268 return resultobj;
9269fail:
9270 {
9271 if (temp1)
9272 delete arg1;
9273 }
9274 return NULL;
b2df227b
RD
9275}
9276
9277
0085ce49
RD
9278SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9279 PyObject *resultobj = 0;
9280 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9281 void *argp1 = 0 ;
9282 int res1 = 0 ;
9283 PyObject *swig_obj[1] ;
9284
9285 if (!args) SWIG_fail;
9286 swig_obj[0] = args;
9287 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9288 if (!SWIG_IsOK(res1)) {
9289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9290 }
9291 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9292 {
9293 PyThreadState* __tstate = wxPyBeginAllowThreads();
9294 delete arg1;
4276dc52 9295
0085ce49
RD
9296 wxPyEndAllowThreads(__tstate);
9297 if (PyErr_Occurred()) SWIG_fail;
9298 }
9299 resultobj = SWIG_Py_Void();
9300 return resultobj;
9301fail:
9302 return NULL;
4276dc52
RD
9303}
9304
9305
0085ce49
RD
9306SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9307 PyObject *resultobj = 0;
9308 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9309 bool result;
9310 void *argp1 = 0 ;
9311 int res1 = 0 ;
9312 PyObject *swig_obj[1] ;
9313
9314 if (!args) SWIG_fail;
9315 swig_obj[0] = args;
9316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9317 if (!SWIG_IsOK(res1)) {
9318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9319 }
9320 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9321 {
9322 PyThreadState* __tstate = wxPyBeginAllowThreads();
9323 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9324 wxPyEndAllowThreads(__tstate);
9325 if (PyErr_Occurred()) SWIG_fail;
9326 }
9327 {
9328 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9329 }
9330 return resultobj;
9331fail:
9332 return NULL;
9333}
9334
9335
9336SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9337 PyObject *resultobj = 0;
9338 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9339 wxString *arg2 = 0 ;
9340 void *argp1 = 0 ;
9341 int res1 = 0 ;
9342 bool temp2 = false ;
9343 PyObject * obj0 = 0 ;
9344 PyObject * obj1 = 0 ;
9345 char * kwnames[] = {
9346 (char *) "self",(char *) "filename", NULL
9347 };
9348
9349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9351 if (!SWIG_IsOK(res1)) {
9352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9353 }
9354 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9355 {
9356 arg2 = wxString_in_helper(obj1);
9357 if (arg2 == NULL) SWIG_fail;
9358 temp2 = true;
9359 }
9360 {
9361 PyThreadState* __tstate = wxPyBeginAllowThreads();
9362 (arg1)->SetFileName((wxString const &)*arg2);
9363 wxPyEndAllowThreads(__tstate);
9364 if (PyErr_Occurred()) SWIG_fail;
9365 }
9366 resultobj = SWIG_Py_Void();
9367 {
9368 if (temp2)
9369 delete arg2;
9370 }
9371 return resultobj;
9372fail:
9373 {
9374 if (temp2)
9375 delete arg2;
9376 }
9377 return NULL;
4276dc52
RD
9378}
9379
9380
0085ce49
RD
9381SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9382 PyObject *resultobj = 0;
9383 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9384 wxString *result = 0 ;
9385 void *argp1 = 0 ;
9386 int res1 = 0 ;
9387 PyObject *swig_obj[1] ;
9388
9389 if (!args) SWIG_fail;
9390 swig_obj[0] = args;
9391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9392 if (!SWIG_IsOK(res1)) {
9393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9394 }
9395 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9396 {
9397 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 9398 {
0085ce49
RD
9399 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9400 result = (wxString *) &_result_ref;
093d3ff1 9401 }
0085ce49
RD
9402 wxPyEndAllowThreads(__tstate);
9403 if (PyErr_Occurred()) SWIG_fail;
9404 }
9405 {
9406#if wxUSE_UNICODE
9407 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9408#else
9409 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9410#endif
9411 }
9412 return resultobj;
9413fail:
9414 return NULL;
9415}
9416
9417
9418SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9419 PyObject *resultobj = 0;
9420 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9421 int arg2 ;
9422 void *argp1 = 0 ;
9423 int res1 = 0 ;
9424 int val2 ;
9425 int ecode2 = 0 ;
9426 PyObject * obj0 = 0 ;
9427 PyObject * obj1 = 0 ;
9428 char * kwnames[] = {
9429 (char *) "self",(char *) "num", NULL
9430 };
9431
9432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9434 if (!SWIG_IsOK(res1)) {
9435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9436 }
9437 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9438 ecode2 = SWIG_AsVal_int(obj1, &val2);
9439 if (!SWIG_IsOK(ecode2)) {
9440 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9441 }
9442 arg2 = static_cast< int >(val2);
9443 {
9444 PyThreadState* __tstate = wxPyBeginAllowThreads();
9445 wxIconLocation_SetIndex(arg1,arg2);
9446 wxPyEndAllowThreads(__tstate);
9447 if (PyErr_Occurred()) SWIG_fail;
9448 }
9449 resultobj = SWIG_Py_Void();
9450 return resultobj;
9451fail:
9452 return NULL;
d14a1e28
RD
9453}
9454
9455
0085ce49
RD
9456SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9457 PyObject *resultobj = 0;
9458 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9459 int result;
9460 void *argp1 = 0 ;
9461 int res1 = 0 ;
9462 PyObject *swig_obj[1] ;
9463
9464 if (!args) SWIG_fail;
9465 swig_obj[0] = args;
9466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9467 if (!SWIG_IsOK(res1)) {
9468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9469 }
9470 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9471 {
9472 PyThreadState* __tstate = wxPyBeginAllowThreads();
9473 result = (int)wxIconLocation_GetIndex(arg1);
9474 wxPyEndAllowThreads(__tstate);
9475 if (PyErr_Occurred()) SWIG_fail;
9476 }
9477 resultobj = SWIG_From_int(static_cast< int >(result));
9478 return resultobj;
9479fail:
9480 return NULL;
d14a1e28
RD
9481}
9482
9483
0085ce49
RD
9484SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9485 PyObject *obj;
9486 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9487 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9488 return SWIG_Py_Void();
d14a1e28
RD
9489}
9490
0085ce49
RD
9491SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9492 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
9493}
9494
0085ce49
RD
9495SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9496 PyObject *resultobj = 0;
9497 wxIconBundle *result = 0 ;
9498
9499 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9500 {
9501 PyThreadState* __tstate = wxPyBeginAllowThreads();
9502 result = (wxIconBundle *)new wxIconBundle();
9503 wxPyEndAllowThreads(__tstate);
9504 if (PyErr_Occurred()) SWIG_fail;
9505 }
9506 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9507 return resultobj;
9508fail:
9509 return NULL;
9510}
9511
9512
9513SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9514 PyObject *resultobj = 0;
9515 wxString *arg1 = 0 ;
9516 long arg2 ;
9517 wxIconBundle *result = 0 ;
9518 bool temp1 = false ;
9519 long val2 ;
9520 int ecode2 = 0 ;
9521 PyObject * obj0 = 0 ;
9522 PyObject * obj1 = 0 ;
9523 char * kwnames[] = {
9524 (char *) "file",(char *) "type", NULL
9525 };
9526
9527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9528 {
9529 arg1 = wxString_in_helper(obj0);
9530 if (arg1 == NULL) SWIG_fail;
9531 temp1 = true;
9532 }
9533 ecode2 = SWIG_AsVal_long(obj1, &val2);
9534 if (!SWIG_IsOK(ecode2)) {
9535 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9536 }
9537 arg2 = static_cast< long >(val2);
9538 {
9539 PyThreadState* __tstate = wxPyBeginAllowThreads();
9540 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9541 wxPyEndAllowThreads(__tstate);
9542 if (PyErr_Occurred()) SWIG_fail;
9543 }
9544 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9545 {
9546 if (temp1)
9547 delete arg1;
9548 }
9549 return resultobj;
9550fail:
9551 {
9552 if (temp1)
9553 delete arg1;
9554 }
9555 return NULL;
d14a1e28
RD
9556}
9557
9558
0085ce49
RD
9559SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9560 PyObject *resultobj = 0;
9561 wxIcon *arg1 = 0 ;
9562 wxIconBundle *result = 0 ;
9563 void *argp1 = 0 ;
9564 int res1 = 0 ;
9565 PyObject * obj0 = 0 ;
9566 char * kwnames[] = {
9567 (char *) "icon", NULL
9568 };
9569
9570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9571 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9572 if (!SWIG_IsOK(res1)) {
9573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9574 }
9575 if (!argp1) {
9576 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9577 }
9578 arg1 = reinterpret_cast< wxIcon * >(argp1);
9579 {
9580 PyThreadState* __tstate = wxPyBeginAllowThreads();
9581 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9582 wxPyEndAllowThreads(__tstate);
9583 if (PyErr_Occurred()) SWIG_fail;
9584 }
9585 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9586 return resultobj;
9587fail:
9588 return NULL;
d14a1e28
RD
9589}
9590
9591
0085ce49
RD
9592SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9593 PyObject *resultobj = 0;
9594 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9595 void *argp1 = 0 ;
9596 int res1 = 0 ;
9597 PyObject *swig_obj[1] ;
9598
9599 if (!args) SWIG_fail;
9600 swig_obj[0] = args;
9601 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9602 if (!SWIG_IsOK(res1)) {
9603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9604 }
9605 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9606 {
9607 PyThreadState* __tstate = wxPyBeginAllowThreads();
9608 delete arg1;
d14a1e28 9609
0085ce49
RD
9610 wxPyEndAllowThreads(__tstate);
9611 if (PyErr_Occurred()) SWIG_fail;
9612 }
9613 resultobj = SWIG_Py_Void();
9614 return resultobj;
9615fail:
9616 return NULL;
9617}
9618
9619
9620SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9621 PyObject *resultobj = 0;
9622 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9623 wxIcon *arg2 = 0 ;
9624 void *argp1 = 0 ;
9625 int res1 = 0 ;
9626 void *argp2 = 0 ;
9627 int res2 = 0 ;
9628 PyObject * obj0 = 0 ;
9629 PyObject * obj1 = 0 ;
9630 char * kwnames[] = {
9631 (char *) "self",(char *) "icon", NULL
9632 };
9633
9634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9636 if (!SWIG_IsOK(res1)) {
9637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9638 }
9639 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9640 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9641 if (!SWIG_IsOK(res2)) {
9642 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9643 }
9644 if (!argp2) {
9645 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9646 }
9647 arg2 = reinterpret_cast< wxIcon * >(argp2);
9648 {
9649 PyThreadState* __tstate = wxPyBeginAllowThreads();
9650 (arg1)->AddIcon((wxIcon const &)*arg2);
9651 wxPyEndAllowThreads(__tstate);
9652 if (PyErr_Occurred()) SWIG_fail;
9653 }
9654 resultobj = SWIG_Py_Void();
9655 return resultobj;
9656fail:
9657 return NULL;
9658}
9659
9660
9661SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9662 PyObject *resultobj = 0;
9663 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9664 wxString *arg2 = 0 ;
9665 long arg3 ;
9666 void *argp1 = 0 ;
9667 int res1 = 0 ;
9668 bool temp2 = false ;
9669 long val3 ;
9670 int ecode3 = 0 ;
9671 PyObject * obj0 = 0 ;
9672 PyObject * obj1 = 0 ;
9673 PyObject * obj2 = 0 ;
9674 char * kwnames[] = {
9675 (char *) "self",(char *) "file",(char *) "type", NULL
9676 };
9677
9678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9680 if (!SWIG_IsOK(res1)) {
9681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9682 }
9683 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9684 {
9685 arg2 = wxString_in_helper(obj1);
9686 if (arg2 == NULL) SWIG_fail;
9687 temp2 = true;
9688 }
9689 ecode3 = SWIG_AsVal_long(obj2, &val3);
9690 if (!SWIG_IsOK(ecode3)) {
9691 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
9692 }
9693 arg3 = static_cast< long >(val3);
9694 {
9695 PyThreadState* __tstate = wxPyBeginAllowThreads();
9696 (arg1)->AddIcon((wxString const &)*arg2,arg3);
9697 wxPyEndAllowThreads(__tstate);
9698 if (PyErr_Occurred()) SWIG_fail;
9699 }
9700 resultobj = SWIG_Py_Void();
9701 {
9702 if (temp2)
9703 delete arg2;
9704 }
9705 return resultobj;
9706fail:
9707 {
9708 if (temp2)
9709 delete arg2;
9710 }
9711 return NULL;
9712}
9713
9714
9715SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9716 PyObject *resultobj = 0;
9717 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9718 wxSize *arg2 = 0 ;
9719 wxIcon *result = 0 ;
9720 void *argp1 = 0 ;
9721 int res1 = 0 ;
9722 wxSize temp2 ;
9723 PyObject * obj0 = 0 ;
9724 PyObject * obj1 = 0 ;
9725 char * kwnames[] = {
9726 (char *) "self",(char *) "size", NULL
9727 };
9728
9729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9731 if (!SWIG_IsOK(res1)) {
9732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
9733 }
9734 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9735 {
9736 arg2 = &temp2;
9737 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9738 }
9739 {
9740 PyThreadState* __tstate = wxPyBeginAllowThreads();
d14a1e28 9741 {
0085ce49
RD
9742 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
9743 result = (wxIcon *) &_result_ref;
d14a1e28 9744 }
0085ce49
RD
9745 wxPyEndAllowThreads(__tstate);
9746 if (PyErr_Occurred()) SWIG_fail;
9747 }
9748 {
9749 wxIcon* resultptr = new wxIcon(*result);
9750 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
9751 }
9752 return resultobj;
9753fail:
9754 return NULL;
9755}
9756
9757
9758SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9759 PyObject *obj;
9760 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9761 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
9762 return SWIG_Py_Void();
9763}
9764
9765SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9766 return SWIG_Python_InitShadowInstance(args);
9767}
9768
9769SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9770 PyObject *resultobj = 0;
9771 wxString *arg1 = 0 ;
9772 long arg2 ;
9773 int arg3 = (int) 0 ;
9774 int arg4 = (int) 0 ;
9775 wxCursor *result = 0 ;
9776 bool temp1 = false ;
9777 long val2 ;
9778 int ecode2 = 0 ;
9779 int val3 ;
9780 int ecode3 = 0 ;
9781 int val4 ;
9782 int ecode4 = 0 ;
9783 PyObject * obj0 = 0 ;
9784 PyObject * obj1 = 0 ;
9785 PyObject * obj2 = 0 ;
9786 PyObject * obj3 = 0 ;
9787 char * kwnames[] = {
9788 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
9789 };
9790
9791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9792 {
9793 arg1 = wxString_in_helper(obj0);
9794 if (arg1 == NULL) SWIG_fail;
9795 temp1 = true;
9796 }
9797 ecode2 = SWIG_AsVal_long(obj1, &val2);
9798 if (!SWIG_IsOK(ecode2)) {
9799 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
9800 }
9801 arg2 = static_cast< long >(val2);
9802 if (obj2) {
9803 ecode3 = SWIG_AsVal_int(obj2, &val3);
9804 if (!SWIG_IsOK(ecode3)) {
9805 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
9806 }
9807 arg3 = static_cast< int >(val3);
9808 }
9809 if (obj3) {
9810 ecode4 = SWIG_AsVal_int(obj3, &val4);
9811 if (!SWIG_IsOK(ecode4)) {
9812 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
9813 }
9814 arg4 = static_cast< int >(val4);
9815 }
9816 {
9817 if (!wxPyCheckForApp()) SWIG_fail;
9818 PyThreadState* __tstate = wxPyBeginAllowThreads();
9819 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
9820 wxPyEndAllowThreads(__tstate);
9821 if (PyErr_Occurred()) SWIG_fail;
9822 }
9823 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
9824 {
9825 if (temp1)
9826 delete arg1;
9827 }
9828 return resultobj;
9829fail:
9830 {
9831 if (temp1)
9832 delete arg1;
9833 }
9834 return NULL;
d14a1e28
RD
9835}
9836
9837
0085ce49
RD
9838SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9839 PyObject *resultobj = 0;
9840 wxCursor *arg1 = (wxCursor *) 0 ;
9841 void *argp1 = 0 ;
9842 int res1 = 0 ;
9843 PyObject *swig_obj[1] ;
9844
9845 if (!args) SWIG_fail;
9846 swig_obj[0] = args;
9847 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
9848 if (!SWIG_IsOK(res1)) {
9849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
9850 }
9851 arg1 = reinterpret_cast< wxCursor * >(argp1);
9852 {
9853 PyThreadState* __tstate = wxPyBeginAllowThreads();
9854 delete arg1;
093d3ff1 9855
0085ce49
RD
9856 wxPyEndAllowThreads(__tstate);
9857 if (PyErr_Occurred()) SWIG_fail;
9858 }
9859 resultobj = SWIG_Py_Void();
9860 return resultobj;
9861fail:
9862 return NULL;
9863}
9864
9865
9866SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9867 PyObject *resultobj = 0;
9868 int arg1 ;
9869 wxCursor *result = 0 ;
9870 int val1 ;
9871 int ecode1 = 0 ;
9872 PyObject * obj0 = 0 ;
9873 char * kwnames[] = {
9874 (char *) "id", NULL
9875 };
9876
9877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
9878 ecode1 = SWIG_AsVal_int(obj0, &val1);
9879 if (!SWIG_IsOK(ecode1)) {
9880 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
9881 }
9882 arg1 = static_cast< int >(val1);
9883 {
9884 if (!wxPyCheckForApp()) SWIG_fail;
9885 PyThreadState* __tstate = wxPyBeginAllowThreads();
9886 result = (wxCursor *)new wxCursor(arg1);
9887 wxPyEndAllowThreads(__tstate);
9888 if (PyErr_Occurred()) SWIG_fail;
9889 }
9890 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
9891 return resultobj;
9892fail:
9893 return NULL;
9894}
9895
9896
9897SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9898 PyObject *resultobj = 0;
9899 wxImage *arg1 = 0 ;
9900 wxCursor *result = 0 ;
9901 void *argp1 = 0 ;
9902 int res1 = 0 ;
9903 PyObject * obj0 = 0 ;
9904 char * kwnames[] = {
9905 (char *) "image", NULL
9906 };
9907
9908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
9909 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
9910 if (!SWIG_IsOK(res1)) {
9911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
9912 }
9913 if (!argp1) {
9914 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
9915 }
9916 arg1 = reinterpret_cast< wxImage * >(argp1);
9917 {
9918 if (!wxPyCheckForApp()) SWIG_fail;
9919 PyThreadState* __tstate = wxPyBeginAllowThreads();
9920 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
9921 wxPyEndAllowThreads(__tstate);
9922 if (PyErr_Occurred()) SWIG_fail;
9923 }
9924 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
9925 return resultobj;
9926fail:
9927 return NULL;
093d3ff1
RD
9928}
9929
9930
b39fe951 9931SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
9932 PyObject *resultobj = 0;
9933 wxCursor *arg1 = (wxCursor *) 0 ;
9934 bool result;
9935 void *argp1 = 0 ;
9936 int res1 = 0 ;
9937 PyObject *swig_obj[1] ;
9938
9939 if (!args) SWIG_fail;
9940 swig_obj[0] = args;
9941 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
9942 if (!SWIG_IsOK(res1)) {
b39fe951 9943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
0085ce49
RD
9944 }
9945 arg1 = reinterpret_cast< wxCursor * >(argp1);
9946 {
9947 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 9948 result = (bool)(arg1)->IsOk();
0085ce49
RD
9949 wxPyEndAllowThreads(__tstate);
9950 if (PyErr_Occurred()) SWIG_fail;
9951 }
9952 {
9953 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9954 }
9955 return resultobj;
9956fail:
9957 return NULL;
9958}
9959
9960
9961SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9962 PyObject *obj;
9963 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9964 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
9965 return SWIG_Py_Void();
9966}
9967
9968SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9969 return SWIG_Python_InitShadowInstance(args);
9970}
9971
9972SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9973 PyObject *resultobj = 0;
9974 int arg1 = (int) 0 ;
9975 int arg2 = (int) 0 ;
9976 int arg3 = (int) 0 ;
9977 int arg4 = (int) 0 ;
9978 wxRegion *result = 0 ;
9979 int val1 ;
9980 int ecode1 = 0 ;
9981 int val2 ;
9982 int ecode2 = 0 ;
9983 int val3 ;
9984 int ecode3 = 0 ;
9985 int val4 ;
9986 int ecode4 = 0 ;
9987 PyObject * obj0 = 0 ;
9988 PyObject * obj1 = 0 ;
9989 PyObject * obj2 = 0 ;
9990 PyObject * obj3 = 0 ;
9991 char * kwnames[] = {
9992 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9993 };
9994
9995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9996 if (obj0) {
9997 ecode1 = SWIG_AsVal_int(obj0, &val1);
9998 if (!SWIG_IsOK(ecode1)) {
9999 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10000 }
10001 arg1 = static_cast< int >(val1);
10002 }
10003 if (obj1) {
10004 ecode2 = SWIG_AsVal_int(obj1, &val2);
10005 if (!SWIG_IsOK(ecode2)) {
10006 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10007 }
10008 arg2 = static_cast< int >(val2);
10009 }
10010 if (obj2) {
10011 ecode3 = SWIG_AsVal_int(obj2, &val3);
10012 if (!SWIG_IsOK(ecode3)) {
10013 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10014 }
10015 arg3 = static_cast< int >(val3);
10016 }
10017 if (obj3) {
10018 ecode4 = SWIG_AsVal_int(obj3, &val4);
10019 if (!SWIG_IsOK(ecode4)) {
10020 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10021 }
10022 arg4 = static_cast< int >(val4);
10023 }
10024 {
10025 if (!wxPyCheckForApp()) SWIG_fail;
10026 PyThreadState* __tstate = wxPyBeginAllowThreads();
10027 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10028 wxPyEndAllowThreads(__tstate);
10029 if (PyErr_Occurred()) SWIG_fail;
10030 }
10031 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10032 return resultobj;
10033fail:
10034 return NULL;
10035}
10036
10037
10038SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10039 PyObject *resultobj = 0;
10040 wxBitmap *arg1 = 0 ;
10041 wxRegion *result = 0 ;
10042 void *argp1 = 0 ;
10043 int res1 = 0 ;
10044 PyObject * obj0 = 0 ;
10045 char * kwnames[] = {
10046 (char *) "bmp", NULL
10047 };
10048
10049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10050 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10051 if (!SWIG_IsOK(res1)) {
10052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10053 }
10054 if (!argp1) {
10055 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10056 }
10057 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10058 {
10059 if (!wxPyCheckForApp()) SWIG_fail;
10060 PyThreadState* __tstate = wxPyBeginAllowThreads();
10061 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10062 wxPyEndAllowThreads(__tstate);
10063 if (PyErr_Occurred()) SWIG_fail;
10064 }
10065 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10066 return resultobj;
10067fail:
10068 return NULL;
10069}
10070
10071
10072SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10073 PyObject *resultobj = 0;
10074 wxBitmap *arg1 = 0 ;
10075 wxColour *arg2 = 0 ;
10076 int arg3 = (int) 0 ;
10077 wxRegion *result = 0 ;
10078 void *argp1 = 0 ;
10079 int res1 = 0 ;
10080 wxColour temp2 ;
10081 int val3 ;
10082 int ecode3 = 0 ;
10083 PyObject * obj0 = 0 ;
10084 PyObject * obj1 = 0 ;
10085 PyObject * obj2 = 0 ;
10086 char * kwnames[] = {
10087 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10088 };
10089
10090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10091 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10092 if (!SWIG_IsOK(res1)) {
10093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10094 }
10095 if (!argp1) {
10096 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10097 }
10098 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10099 {
10100 arg2 = &temp2;
10101 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10102 }
10103 if (obj2) {
10104 ecode3 = SWIG_AsVal_int(obj2, &val3);
10105 if (!SWIG_IsOK(ecode3)) {
10106 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10107 }
10108 arg3 = static_cast< int >(val3);
10109 }
10110 {
10111 if (!wxPyCheckForApp()) SWIG_fail;
10112 PyThreadState* __tstate = wxPyBeginAllowThreads();
10113 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10114 wxPyEndAllowThreads(__tstate);
10115 if (PyErr_Occurred()) SWIG_fail;
10116 }
10117 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10118 return resultobj;
10119fail:
10120 return NULL;
10121}
10122
10123
10124SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10125 PyObject *resultobj = 0;
10126 int arg1 ;
10127 wxPoint *arg2 = (wxPoint *) 0 ;
10128 int arg3 = (int) wxWINDING_RULE ;
10129 wxRegion *result = 0 ;
10130 int val3 ;
10131 int ecode3 = 0 ;
10132 PyObject * obj0 = 0 ;
10133 PyObject * obj1 = 0 ;
10134 char * kwnames[] = {
10135 (char *) "points",(char *) "fillStyle", NULL
10136 };
10137
10138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10139 {
10140 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10141 if (arg2 == NULL) SWIG_fail;
10142 }
10143 if (obj1) {
10144 ecode3 = SWIG_AsVal_int(obj1, &val3);
10145 if (!SWIG_IsOK(ecode3)) {
10146 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10147 }
10148 arg3 = static_cast< int >(val3);
10149 }
10150 {
10151 if (!wxPyCheckForApp()) SWIG_fail;
10152 PyThreadState* __tstate = wxPyBeginAllowThreads();
10153 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10154 wxPyEndAllowThreads(__tstate);
10155 if (PyErr_Occurred()) SWIG_fail;
10156 }
10157 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10158 {
10159 if (arg2) delete [] arg2;
10160 }
10161 return resultobj;
10162fail:
10163 {
10164 if (arg2) delete [] arg2;
10165 }
10166 return NULL;
d14a1e28
RD
10167}
10168
10169
0085ce49
RD
10170SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10171 PyObject *resultobj = 0;
10172 wxRegion *arg1 = (wxRegion *) 0 ;
10173 void *argp1 = 0 ;
10174 int res1 = 0 ;
10175 PyObject *swig_obj[1] ;
10176
10177 if (!args) SWIG_fail;
10178 swig_obj[0] = args;
10179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10180 if (!SWIG_IsOK(res1)) {
10181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10182 }
10183 arg1 = reinterpret_cast< wxRegion * >(argp1);
10184 {
10185 PyThreadState* __tstate = wxPyBeginAllowThreads();
10186 delete arg1;
d14a1e28 10187
0085ce49
RD
10188 wxPyEndAllowThreads(__tstate);
10189 if (PyErr_Occurred()) SWIG_fail;
10190 }
10191 resultobj = SWIG_Py_Void();
10192 return resultobj;
10193fail:
10194 return NULL;
d14a1e28
RD
10195}
10196
10197
0085ce49
RD
10198SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10199 PyObject *resultobj = 0;
10200 wxRegion *arg1 = (wxRegion *) 0 ;
10201 void *argp1 = 0 ;
10202 int res1 = 0 ;
10203 PyObject *swig_obj[1] ;
10204
10205 if (!args) SWIG_fail;
10206 swig_obj[0] = args;
10207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10208 if (!SWIG_IsOK(res1)) {
10209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10210 }
10211 arg1 = reinterpret_cast< wxRegion * >(argp1);
10212 {
10213 PyThreadState* __tstate = wxPyBeginAllowThreads();
10214 (arg1)->Clear();
10215 wxPyEndAllowThreads(__tstate);
10216 if (PyErr_Occurred()) SWIG_fail;
10217 }
10218 resultobj = SWIG_Py_Void();
10219 return resultobj;
10220fail:
10221 return NULL;
10222}
10223
10224
10225SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10226 PyObject *resultobj = 0;
10227 wxRegion *arg1 = (wxRegion *) 0 ;
10228 int arg2 ;
10229 int arg3 ;
10230 bool result;
10231 void *argp1 = 0 ;
10232 int res1 = 0 ;
10233 int val2 ;
10234 int ecode2 = 0 ;
10235 int val3 ;
10236 int ecode3 = 0 ;
10237 PyObject * obj0 = 0 ;
10238 PyObject * obj1 = 0 ;
10239 PyObject * obj2 = 0 ;
10240 char * kwnames[] = {
10241 (char *) "self",(char *) "x",(char *) "y", NULL
10242 };
10243
10244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10246 if (!SWIG_IsOK(res1)) {
10247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10248 }
10249 arg1 = reinterpret_cast< wxRegion * >(argp1);
10250 ecode2 = SWIG_AsVal_int(obj1, &val2);
10251 if (!SWIG_IsOK(ecode2)) {
10252 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10253 }
10254 arg2 = static_cast< int >(val2);
10255 ecode3 = SWIG_AsVal_int(obj2, &val3);
10256 if (!SWIG_IsOK(ecode3)) {
10257 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10258 }
10259 arg3 = static_cast< int >(val3);
10260 {
10261 PyThreadState* __tstate = wxPyBeginAllowThreads();
10262 result = (bool)(arg1)->Offset(arg2,arg3);
10263 wxPyEndAllowThreads(__tstate);
10264 if (PyErr_Occurred()) SWIG_fail;
10265 }
10266 {
10267 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10268 }
10269 return resultobj;
10270fail:
10271 return NULL;
10272}
10273
10274
10275SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10276 PyObject *resultobj = 0;
10277 wxRegion *arg1 = (wxRegion *) 0 ;
10278 int arg2 ;
10279 int arg3 ;
10280 wxRegionContain result;
10281 void *argp1 = 0 ;
10282 int res1 = 0 ;
10283 int val2 ;
10284 int ecode2 = 0 ;
10285 int val3 ;
10286 int ecode3 = 0 ;
10287 PyObject * obj0 = 0 ;
10288 PyObject * obj1 = 0 ;
10289 PyObject * obj2 = 0 ;
10290 char * kwnames[] = {
10291 (char *) "self",(char *) "x",(char *) "y", NULL
10292 };
10293
10294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10296 if (!SWIG_IsOK(res1)) {
10297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10298 }
10299 arg1 = reinterpret_cast< wxRegion * >(argp1);
10300 ecode2 = SWIG_AsVal_int(obj1, &val2);
10301 if (!SWIG_IsOK(ecode2)) {
10302 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10303 }
10304 arg2 = static_cast< int >(val2);
10305 ecode3 = SWIG_AsVal_int(obj2, &val3);
10306 if (!SWIG_IsOK(ecode3)) {
10307 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10308 }
10309 arg3 = static_cast< int >(val3);
10310 {
10311 PyThreadState* __tstate = wxPyBeginAllowThreads();
10312 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10313 wxPyEndAllowThreads(__tstate);
10314 if (PyErr_Occurred()) SWIG_fail;
10315 }
10316 resultobj = SWIG_From_int(static_cast< int >(result));
10317 return resultobj;
10318fail:
10319 return NULL;
10320}
10321
10322
10323SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10324 PyObject *resultobj = 0;
10325 wxRegion *arg1 = (wxRegion *) 0 ;
10326 wxPoint *arg2 = 0 ;
10327 wxRegionContain result;
10328 void *argp1 = 0 ;
10329 int res1 = 0 ;
10330 wxPoint temp2 ;
10331 PyObject * obj0 = 0 ;
10332 PyObject * obj1 = 0 ;
10333 char * kwnames[] = {
10334 (char *) "self",(char *) "pt", NULL
10335 };
10336
10337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10339 if (!SWIG_IsOK(res1)) {
10340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10341 }
10342 arg1 = reinterpret_cast< wxRegion * >(argp1);
10343 {
10344 arg2 = &temp2;
10345 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10346 }
10347 {
10348 PyThreadState* __tstate = wxPyBeginAllowThreads();
10349 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10350 wxPyEndAllowThreads(__tstate);
10351 if (PyErr_Occurred()) SWIG_fail;
10352 }
10353 resultobj = SWIG_From_int(static_cast< int >(result));
10354 return resultobj;
10355fail:
10356 return NULL;
10357}
10358
10359
10360SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10361 PyObject *resultobj = 0;
10362 wxRegion *arg1 = (wxRegion *) 0 ;
10363 wxRect *arg2 = 0 ;
10364 wxRegionContain result;
10365 void *argp1 = 0 ;
10366 int res1 = 0 ;
10367 wxRect temp2 ;
10368 PyObject * obj0 = 0 ;
10369 PyObject * obj1 = 0 ;
10370 char * kwnames[] = {
10371 (char *) "self",(char *) "rect", NULL
10372 };
10373
10374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10376 if (!SWIG_IsOK(res1)) {
10377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10378 }
10379 arg1 = reinterpret_cast< wxRegion * >(argp1);
10380 {
10381 arg2 = &temp2;
10382 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10383 }
10384 {
10385 PyThreadState* __tstate = wxPyBeginAllowThreads();
10386 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10387 wxPyEndAllowThreads(__tstate);
10388 if (PyErr_Occurred()) SWIG_fail;
10389 }
10390 resultobj = SWIG_From_int(static_cast< int >(result));
10391 return resultobj;
10392fail:
10393 return NULL;
10394}
10395
10396
10397SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10398 PyObject *resultobj = 0;
10399 wxRegion *arg1 = (wxRegion *) 0 ;
10400 int arg2 ;
10401 int arg3 ;
10402 int arg4 ;
10403 int arg5 ;
10404 wxRegionContain result;
10405 void *argp1 = 0 ;
10406 int res1 = 0 ;
10407 int val2 ;
10408 int ecode2 = 0 ;
10409 int val3 ;
10410 int ecode3 = 0 ;
10411 int val4 ;
10412 int ecode4 = 0 ;
10413 int val5 ;
10414 int ecode5 = 0 ;
10415 PyObject * obj0 = 0 ;
10416 PyObject * obj1 = 0 ;
10417 PyObject * obj2 = 0 ;
10418 PyObject * obj3 = 0 ;
10419 PyObject * obj4 = 0 ;
10420 char * kwnames[] = {
10421 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10422 };
10423
10424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10426 if (!SWIG_IsOK(res1)) {
10427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10428 }
10429 arg1 = reinterpret_cast< wxRegion * >(argp1);
10430 ecode2 = SWIG_AsVal_int(obj1, &val2);
10431 if (!SWIG_IsOK(ecode2)) {
10432 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10433 }
10434 arg2 = static_cast< int >(val2);
10435 ecode3 = SWIG_AsVal_int(obj2, &val3);
10436 if (!SWIG_IsOK(ecode3)) {
10437 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10438 }
10439 arg3 = static_cast< int >(val3);
10440 ecode4 = SWIG_AsVal_int(obj3, &val4);
10441 if (!SWIG_IsOK(ecode4)) {
10442 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10443 }
10444 arg4 = static_cast< int >(val4);
10445 ecode5 = SWIG_AsVal_int(obj4, &val5);
10446 if (!SWIG_IsOK(ecode5)) {
10447 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10448 }
10449 arg5 = static_cast< int >(val5);
10450 {
10451 PyThreadState* __tstate = wxPyBeginAllowThreads();
10452 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10453 wxPyEndAllowThreads(__tstate);
10454 if (PyErr_Occurred()) SWIG_fail;
10455 }
10456 resultobj = SWIG_From_int(static_cast< int >(result));
10457 return resultobj;
10458fail:
10459 return NULL;
d14a1e28
RD
10460}
10461
10462
0085ce49
RD
10463SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10464 PyObject *resultobj = 0;
10465 wxRegion *arg1 = (wxRegion *) 0 ;
10466 wxRect result;
10467 void *argp1 = 0 ;
10468 int res1 = 0 ;
10469 PyObject *swig_obj[1] ;
10470
10471 if (!args) SWIG_fail;
10472 swig_obj[0] = args;
10473 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10474 if (!SWIG_IsOK(res1)) {
10475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10476 }
10477 arg1 = reinterpret_cast< wxRegion * >(argp1);
10478 {
10479 PyThreadState* __tstate = wxPyBeginAllowThreads();
10480 result = (arg1)->GetBox();
10481 wxPyEndAllowThreads(__tstate);
10482 if (PyErr_Occurred()) SWIG_fail;
10483 }
10484 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10485 return resultobj;
10486fail:
10487 return NULL;
10488}
10489
10490
10491SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10492 PyObject *resultobj = 0;
10493 wxRegion *arg1 = (wxRegion *) 0 ;
10494 int arg2 ;
10495 int arg3 ;
10496 int arg4 ;
10497 int arg5 ;
10498 bool result;
10499 void *argp1 = 0 ;
10500 int res1 = 0 ;
10501 int val2 ;
10502 int ecode2 = 0 ;
10503 int val3 ;
10504 int ecode3 = 0 ;
10505 int val4 ;
10506 int ecode4 = 0 ;
10507 int val5 ;
10508 int ecode5 = 0 ;
10509 PyObject * obj0 = 0 ;
10510 PyObject * obj1 = 0 ;
10511 PyObject * obj2 = 0 ;
10512 PyObject * obj3 = 0 ;
10513 PyObject * obj4 = 0 ;
10514 char * kwnames[] = {
10515 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10516 };
10517
10518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10520 if (!SWIG_IsOK(res1)) {
10521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
10522 }
10523 arg1 = reinterpret_cast< wxRegion * >(argp1);
10524 ecode2 = SWIG_AsVal_int(obj1, &val2);
10525 if (!SWIG_IsOK(ecode2)) {
10526 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
10527 }
10528 arg2 = static_cast< int >(val2);
10529 ecode3 = SWIG_AsVal_int(obj2, &val3);
10530 if (!SWIG_IsOK(ecode3)) {
10531 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
10532 }
10533 arg3 = static_cast< int >(val3);
10534 ecode4 = SWIG_AsVal_int(obj3, &val4);
10535 if (!SWIG_IsOK(ecode4)) {
10536 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
10537 }
10538 arg4 = static_cast< int >(val4);
10539 ecode5 = SWIG_AsVal_int(obj4, &val5);
10540 if (!SWIG_IsOK(ecode5)) {
10541 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
10542 }
10543 arg5 = static_cast< int >(val5);
10544 {
10545 PyThreadState* __tstate = wxPyBeginAllowThreads();
10546 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
10547 wxPyEndAllowThreads(__tstate);
10548 if (PyErr_Occurred()) SWIG_fail;
10549 }
10550 {
10551 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10552 }
10553 return resultobj;
10554fail:
10555 return NULL;
10556}
10557
10558
10559SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10560 PyObject *resultobj = 0;
10561 wxRegion *arg1 = (wxRegion *) 0 ;
10562 wxRect *arg2 = 0 ;
10563 bool result;
10564 void *argp1 = 0 ;
10565 int res1 = 0 ;
10566 wxRect temp2 ;
10567 PyObject * obj0 = 0 ;
10568 PyObject * obj1 = 0 ;
10569 char * kwnames[] = {
10570 (char *) "self",(char *) "rect", NULL
10571 };
10572
10573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
10574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10575 if (!SWIG_IsOK(res1)) {
10576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10577 }
10578 arg1 = reinterpret_cast< wxRegion * >(argp1);
10579 {
10580 arg2 = &temp2;
10581 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10582 }
10583 {
10584 PyThreadState* __tstate = wxPyBeginAllowThreads();
10585 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
10586 wxPyEndAllowThreads(__tstate);
10587 if (PyErr_Occurred()) SWIG_fail;
10588 }
10589 {
10590 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10591 }
10592 return resultobj;
10593fail:
10594 return NULL;
10595}
10596
10597
10598SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10599 PyObject *resultobj = 0;
10600 wxRegion *arg1 = (wxRegion *) 0 ;
10601 wxRegion *arg2 = 0 ;
10602 bool result;
10603 void *argp1 = 0 ;
10604 int res1 = 0 ;
10605 void *argp2 = 0 ;
10606 int res2 = 0 ;
10607 PyObject * obj0 = 0 ;
10608 PyObject * obj1 = 0 ;
10609 char * kwnames[] = {
10610 (char *) "self",(char *) "region", NULL
10611 };
10612
10613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10615 if (!SWIG_IsOK(res1)) {
10616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10617 }
10618 arg1 = reinterpret_cast< wxRegion * >(argp1);
10619 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10620 if (!SWIG_IsOK(res2)) {
10621 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10622 }
10623 if (!argp2) {
10624 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10625 }
10626 arg2 = reinterpret_cast< wxRegion * >(argp2);
10627 {
10628 PyThreadState* __tstate = wxPyBeginAllowThreads();
10629 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
10630 wxPyEndAllowThreads(__tstate);
10631 if (PyErr_Occurred()) SWIG_fail;
10632 }
10633 {
10634 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10635 }
10636 return resultobj;
10637fail:
10638 return NULL;
d14a1e28
RD
10639}
10640
10641
0085ce49
RD
10642SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10643 PyObject *resultobj = 0;
10644 wxRegion *arg1 = (wxRegion *) 0 ;
10645 bool result;
10646 void *argp1 = 0 ;
10647 int res1 = 0 ;
10648 PyObject *swig_obj[1] ;
10649
10650 if (!args) SWIG_fail;
10651 swig_obj[0] = args;
10652 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10653 if (!SWIG_IsOK(res1)) {
10654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
10655 }
10656 arg1 = reinterpret_cast< wxRegion * >(argp1);
10657 {
10658 PyThreadState* __tstate = wxPyBeginAllowThreads();
10659 result = (bool)(arg1)->IsEmpty();
10660 wxPyEndAllowThreads(__tstate);
10661 if (PyErr_Occurred()) SWIG_fail;
10662 }
10663 {
10664 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10665 }
10666 return resultobj;
10667fail:
10668 return NULL;
10669}
10670
10671
f5263701
RD
10672SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10673 PyObject *resultobj = 0;
10674 wxRegion *arg1 = (wxRegion *) 0 ;
10675 wxRegion *arg2 = 0 ;
10676 bool result;
10677 void *argp1 = 0 ;
10678 int res1 = 0 ;
10679 void *argp2 = 0 ;
10680 int res2 = 0 ;
10681 PyObject * obj0 = 0 ;
10682 PyObject * obj1 = 0 ;
10683 char * kwnames[] = {
10684 (char *) "self",(char *) "region", NULL
10685 };
10686
10687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
10688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10689 if (!SWIG_IsOK(res1)) {
10690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
10691 }
10692 arg1 = reinterpret_cast< wxRegion * >(argp1);
10693 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10694 if (!SWIG_IsOK(res2)) {
10695 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
10696 }
10697 if (!argp2) {
10698 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
10699 }
10700 arg2 = reinterpret_cast< wxRegion * >(argp2);
10701 {
10702 PyThreadState* __tstate = wxPyBeginAllowThreads();
10703 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
10704 wxPyEndAllowThreads(__tstate);
10705 if (PyErr_Occurred()) SWIG_fail;
10706 }
10707 {
10708 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10709 }
10710 return resultobj;
10711fail:
10712 return NULL;
10713}
10714
10715
0085ce49
RD
10716SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10717 PyObject *resultobj = 0;
10718 wxRegion *arg1 = (wxRegion *) 0 ;
10719 int arg2 ;
10720 int arg3 ;
10721 int arg4 ;
10722 int arg5 ;
10723 bool result;
10724 void *argp1 = 0 ;
10725 int res1 = 0 ;
10726 int val2 ;
10727 int ecode2 = 0 ;
10728 int val3 ;
10729 int ecode3 = 0 ;
10730 int val4 ;
10731 int ecode4 = 0 ;
10732 int val5 ;
10733 int ecode5 = 0 ;
10734 PyObject * obj0 = 0 ;
10735 PyObject * obj1 = 0 ;
10736 PyObject * obj2 = 0 ;
10737 PyObject * obj3 = 0 ;
10738 PyObject * obj4 = 0 ;
10739 char * kwnames[] = {
10740 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10741 };
10742
10743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10745 if (!SWIG_IsOK(res1)) {
10746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
10747 }
10748 arg1 = reinterpret_cast< wxRegion * >(argp1);
10749 ecode2 = SWIG_AsVal_int(obj1, &val2);
10750 if (!SWIG_IsOK(ecode2)) {
10751 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
10752 }
10753 arg2 = static_cast< int >(val2);
10754 ecode3 = SWIG_AsVal_int(obj2, &val3);
10755 if (!SWIG_IsOK(ecode3)) {
10756 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
10757 }
10758 arg3 = static_cast< int >(val3);
10759 ecode4 = SWIG_AsVal_int(obj3, &val4);
10760 if (!SWIG_IsOK(ecode4)) {
10761 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
10762 }
10763 arg4 = static_cast< int >(val4);
10764 ecode5 = SWIG_AsVal_int(obj4, &val5);
10765 if (!SWIG_IsOK(ecode5)) {
10766 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
10767 }
10768 arg5 = static_cast< int >(val5);
10769 {
10770 PyThreadState* __tstate = wxPyBeginAllowThreads();
10771 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
10772 wxPyEndAllowThreads(__tstate);
10773 if (PyErr_Occurred()) SWIG_fail;
10774 }
10775 {
10776 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10777 }
10778 return resultobj;
10779fail:
10780 return NULL;
10781}
10782
10783
10784SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10785 PyObject *resultobj = 0;
10786 wxRegion *arg1 = (wxRegion *) 0 ;
10787 wxRect *arg2 = 0 ;
10788 bool result;
10789 void *argp1 = 0 ;
10790 int res1 = 0 ;
10791 wxRect temp2 ;
10792 PyObject * obj0 = 0 ;
10793 PyObject * obj1 = 0 ;
10794 char * kwnames[] = {
10795 (char *) "self",(char *) "rect", NULL
10796 };
10797
10798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
10799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10800 if (!SWIG_IsOK(res1)) {
10801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10802 }
10803 arg1 = reinterpret_cast< wxRegion * >(argp1);
10804 {
10805 arg2 = &temp2;
10806 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10807 }
10808 {
10809 PyThreadState* __tstate = wxPyBeginAllowThreads();
10810 result = (bool)(arg1)->Union((wxRect const &)*arg2);
10811 wxPyEndAllowThreads(__tstate);
10812 if (PyErr_Occurred()) SWIG_fail;
10813 }
10814 {
10815 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10816 }
10817 return resultobj;
10818fail:
10819 return NULL;
10820}
10821
10822
10823SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10824 PyObject *resultobj = 0;
10825 wxRegion *arg1 = (wxRegion *) 0 ;
10826 wxRegion *arg2 = 0 ;
10827 bool result;
10828 void *argp1 = 0 ;
10829 int res1 = 0 ;
10830 void *argp2 = 0 ;
10831 int res2 = 0 ;
10832 PyObject * obj0 = 0 ;
10833 PyObject * obj1 = 0 ;
10834 char * kwnames[] = {
10835 (char *) "self",(char *) "region", NULL
10836 };
10837
10838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10840 if (!SWIG_IsOK(res1)) {
10841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10842 }
10843 arg1 = reinterpret_cast< wxRegion * >(argp1);
10844 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10845 if (!SWIG_IsOK(res2)) {
10846 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10847 }
10848 if (!argp2) {
10849 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10850 }
10851 arg2 = reinterpret_cast< wxRegion * >(argp2);
10852 {
10853 PyThreadState* __tstate = wxPyBeginAllowThreads();
10854 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
10855 wxPyEndAllowThreads(__tstate);
10856 if (PyErr_Occurred()) SWIG_fail;
10857 }
10858 {
10859 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10860 }
10861 return resultobj;
10862fail:
10863 return NULL;
10864}
10865
10866
10867SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10868 PyObject *resultobj = 0;
10869 wxRegion *arg1 = (wxRegion *) 0 ;
10870 int arg2 ;
10871 int arg3 ;
10872 int arg4 ;
10873 int arg5 ;
10874 bool result;
10875 void *argp1 = 0 ;
10876 int res1 = 0 ;
10877 int val2 ;
10878 int ecode2 = 0 ;
10879 int val3 ;
10880 int ecode3 = 0 ;
10881 int val4 ;
10882 int ecode4 = 0 ;
10883 int val5 ;
10884 int ecode5 = 0 ;
10885 PyObject * obj0 = 0 ;
10886 PyObject * obj1 = 0 ;
10887 PyObject * obj2 = 0 ;
10888 PyObject * obj3 = 0 ;
10889 PyObject * obj4 = 0 ;
10890 char * kwnames[] = {
10891 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10892 };
10893
10894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10896 if (!SWIG_IsOK(res1)) {
10897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
10898 }
10899 arg1 = reinterpret_cast< wxRegion * >(argp1);
10900 ecode2 = SWIG_AsVal_int(obj1, &val2);
10901 if (!SWIG_IsOK(ecode2)) {
10902 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
10903 }
10904 arg2 = static_cast< int >(val2);
10905 ecode3 = SWIG_AsVal_int(obj2, &val3);
10906 if (!SWIG_IsOK(ecode3)) {
10907 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
10908 }
10909 arg3 = static_cast< int >(val3);
10910 ecode4 = SWIG_AsVal_int(obj3, &val4);
10911 if (!SWIG_IsOK(ecode4)) {
10912 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
10913 }
10914 arg4 = static_cast< int >(val4);
10915 ecode5 = SWIG_AsVal_int(obj4, &val5);
10916 if (!SWIG_IsOK(ecode5)) {
10917 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
10918 }
10919 arg5 = static_cast< int >(val5);
10920 {
10921 PyThreadState* __tstate = wxPyBeginAllowThreads();
10922 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
10923 wxPyEndAllowThreads(__tstate);
10924 if (PyErr_Occurred()) SWIG_fail;
10925 }
10926 {
10927 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10928 }
10929 return resultobj;
10930fail:
10931 return NULL;
10932}
10933
10934
10935SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10936 PyObject *resultobj = 0;
10937 wxRegion *arg1 = (wxRegion *) 0 ;
10938 wxRect *arg2 = 0 ;
10939 bool result;
10940 void *argp1 = 0 ;
10941 int res1 = 0 ;
10942 wxRect temp2 ;
10943 PyObject * obj0 = 0 ;
10944 PyObject * obj1 = 0 ;
10945 char * kwnames[] = {
10946 (char *) "self",(char *) "rect", NULL
10947 };
10948
10949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
10950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10951 if (!SWIG_IsOK(res1)) {
10952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10953 }
10954 arg1 = reinterpret_cast< wxRegion * >(argp1);
10955 {
10956 arg2 = &temp2;
10957 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10958 }
10959 {
10960 PyThreadState* __tstate = wxPyBeginAllowThreads();
10961 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
10962 wxPyEndAllowThreads(__tstate);
10963 if (PyErr_Occurred()) SWIG_fail;
10964 }
10965 {
10966 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10967 }
10968 return resultobj;
10969fail:
10970 return NULL;
10971}
10972
10973
10974SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10975 PyObject *resultobj = 0;
10976 wxRegion *arg1 = (wxRegion *) 0 ;
10977 wxRegion *arg2 = 0 ;
10978 bool result;
10979 void *argp1 = 0 ;
10980 int res1 = 0 ;
10981 void *argp2 = 0 ;
10982 int res2 = 0 ;
10983 PyObject * obj0 = 0 ;
10984 PyObject * obj1 = 0 ;
10985 char * kwnames[] = {
10986 (char *) "self",(char *) "region", NULL
10987 };
10988
10989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10991 if (!SWIG_IsOK(res1)) {
10992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10993 }
10994 arg1 = reinterpret_cast< wxRegion * >(argp1);
10995 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10996 if (!SWIG_IsOK(res2)) {
10997 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10998 }
10999 if (!argp2) {
11000 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11001 }
11002 arg2 = reinterpret_cast< wxRegion * >(argp2);
11003 {
11004 PyThreadState* __tstate = wxPyBeginAllowThreads();
11005 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11006 wxPyEndAllowThreads(__tstate);
11007 if (PyErr_Occurred()) SWIG_fail;
11008 }
11009 {
11010 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11011 }
11012 return resultobj;
11013fail:
11014 return NULL;
11015}
11016
11017
11018SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11019 PyObject *resultobj = 0;
11020 wxRegion *arg1 = (wxRegion *) 0 ;
11021 int arg2 ;
11022 int arg3 ;
11023 int arg4 ;
11024 int arg5 ;
11025 bool result;
11026 void *argp1 = 0 ;
11027 int res1 = 0 ;
11028 int val2 ;
11029 int ecode2 = 0 ;
11030 int val3 ;
11031 int ecode3 = 0 ;
11032 int val4 ;
11033 int ecode4 = 0 ;
11034 int val5 ;
11035 int ecode5 = 0 ;
11036 PyObject * obj0 = 0 ;
11037 PyObject * obj1 = 0 ;
11038 PyObject * obj2 = 0 ;
11039 PyObject * obj3 = 0 ;
11040 PyObject * obj4 = 0 ;
11041 char * kwnames[] = {
11042 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11043 };
11044
11045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11047 if (!SWIG_IsOK(res1)) {
11048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11049 }
11050 arg1 = reinterpret_cast< wxRegion * >(argp1);
11051 ecode2 = SWIG_AsVal_int(obj1, &val2);
11052 if (!SWIG_IsOK(ecode2)) {
11053 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11054 }
11055 arg2 = static_cast< int >(val2);
11056 ecode3 = SWIG_AsVal_int(obj2, &val3);
11057 if (!SWIG_IsOK(ecode3)) {
11058 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11059 }
11060 arg3 = static_cast< int >(val3);
11061 ecode4 = SWIG_AsVal_int(obj3, &val4);
11062 if (!SWIG_IsOK(ecode4)) {
11063 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11064 }
11065 arg4 = static_cast< int >(val4);
11066 ecode5 = SWIG_AsVal_int(obj4, &val5);
11067 if (!SWIG_IsOK(ecode5)) {
11068 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11069 }
11070 arg5 = static_cast< int >(val5);
11071 {
11072 PyThreadState* __tstate = wxPyBeginAllowThreads();
11073 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11074 wxPyEndAllowThreads(__tstate);
11075 if (PyErr_Occurred()) SWIG_fail;
11076 }
11077 {
11078 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11079 }
11080 return resultobj;
11081fail:
11082 return NULL;
11083}
11084
11085
11086SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11087 PyObject *resultobj = 0;
11088 wxRegion *arg1 = (wxRegion *) 0 ;
11089 wxRect *arg2 = 0 ;
11090 bool result;
11091 void *argp1 = 0 ;
11092 int res1 = 0 ;
11093 wxRect temp2 ;
11094 PyObject * obj0 = 0 ;
11095 PyObject * obj1 = 0 ;
11096 char * kwnames[] = {
11097 (char *) "self",(char *) "rect", NULL
11098 };
11099
11100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11102 if (!SWIG_IsOK(res1)) {
11103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11104 }
11105 arg1 = reinterpret_cast< wxRegion * >(argp1);
11106 {
11107 arg2 = &temp2;
11108 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11109 }
11110 {
11111 PyThreadState* __tstate = wxPyBeginAllowThreads();
11112 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11113 wxPyEndAllowThreads(__tstate);
11114 if (PyErr_Occurred()) SWIG_fail;
11115 }
11116 {
11117 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11118 }
11119 return resultobj;
11120fail:
11121 return NULL;
11122}
11123
11124
11125SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11126 PyObject *resultobj = 0;
11127 wxRegion *arg1 = (wxRegion *) 0 ;
11128 wxRegion *arg2 = 0 ;
11129 bool result;
11130 void *argp1 = 0 ;
11131 int res1 = 0 ;
11132 void *argp2 = 0 ;
11133 int res2 = 0 ;
11134 PyObject * obj0 = 0 ;
11135 PyObject * obj1 = 0 ;
11136 char * kwnames[] = {
11137 (char *) "self",(char *) "region", NULL
11138 };
11139
11140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11142 if (!SWIG_IsOK(res1)) {
11143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11144 }
11145 arg1 = reinterpret_cast< wxRegion * >(argp1);
11146 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11147 if (!SWIG_IsOK(res2)) {
11148 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11149 }
11150 if (!argp2) {
11151 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11152 }
11153 arg2 = reinterpret_cast< wxRegion * >(argp2);
11154 {
11155 PyThreadState* __tstate = wxPyBeginAllowThreads();
11156 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11157 wxPyEndAllowThreads(__tstate);
11158 if (PyErr_Occurred()) SWIG_fail;
11159 }
11160 {
11161 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11162 }
11163 return resultobj;
11164fail:
11165 return NULL;
d14a1e28
RD
11166}
11167
11168
0085ce49
RD
11169SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11170 PyObject *resultobj = 0;
11171 wxRegion *arg1 = (wxRegion *) 0 ;
11172 SwigValueWrapper<wxBitmap > result;
11173 void *argp1 = 0 ;
11174 int res1 = 0 ;
11175 PyObject *swig_obj[1] ;
11176
11177 if (!args) SWIG_fail;
11178 swig_obj[0] = args;
11179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11180 if (!SWIG_IsOK(res1)) {
11181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11182 }
11183 arg1 = reinterpret_cast< wxRegion * >(argp1);
11184 {
11185 PyThreadState* __tstate = wxPyBeginAllowThreads();
11186 result = (arg1)->ConvertToBitmap();
11187 wxPyEndAllowThreads(__tstate);
11188 if (PyErr_Occurred()) SWIG_fail;
11189 }
11190 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11191 return resultobj;
11192fail:
11193 return NULL;
11194}
11195
11196
11197SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11198 PyObject *resultobj = 0;
11199 wxRegion *arg1 = (wxRegion *) 0 ;
11200 wxBitmap *arg2 = 0 ;
11201 bool result;
11202 void *argp1 = 0 ;
11203 int res1 = 0 ;
11204 void *argp2 = 0 ;
11205 int res2 = 0 ;
11206 PyObject * obj0 = 0 ;
11207 PyObject * obj1 = 0 ;
11208 char * kwnames[] = {
11209 (char *) "self",(char *) "bmp", NULL
11210 };
11211
11212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11214 if (!SWIG_IsOK(res1)) {
11215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11216 }
11217 arg1 = reinterpret_cast< wxRegion * >(argp1);
11218 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11219 if (!SWIG_IsOK(res2)) {
11220 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11221 }
11222 if (!argp2) {
11223 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11224 }
11225 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11226 {
11227 PyThreadState* __tstate = wxPyBeginAllowThreads();
11228 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11229 wxPyEndAllowThreads(__tstate);
11230 if (PyErr_Occurred()) SWIG_fail;
11231 }
11232 {
11233 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11234 }
11235 return resultobj;
11236fail:
11237 return NULL;
11238}
11239
11240
11241SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11242 PyObject *resultobj = 0;
11243 wxRegion *arg1 = (wxRegion *) 0 ;
11244 wxBitmap *arg2 = 0 ;
11245 wxColour *arg3 = 0 ;
11246 int arg4 = (int) 0 ;
11247 bool result;
11248 void *argp1 = 0 ;
11249 int res1 = 0 ;
11250 void *argp2 = 0 ;
11251 int res2 = 0 ;
11252 wxColour temp3 ;
11253 int val4 ;
11254 int ecode4 = 0 ;
11255 PyObject * obj0 = 0 ;
11256 PyObject * obj1 = 0 ;
11257 PyObject * obj2 = 0 ;
11258 PyObject * obj3 = 0 ;
11259 char * kwnames[] = {
11260 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11261 };
11262
11263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11265 if (!SWIG_IsOK(res1)) {
11266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11267 }
11268 arg1 = reinterpret_cast< wxRegion * >(argp1);
11269 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11270 if (!SWIG_IsOK(res2)) {
11271 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11272 }
11273 if (!argp2) {
11274 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11275 }
11276 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11277 {
11278 arg3 = &temp3;
11279 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11280 }
11281 if (obj3) {
11282 ecode4 = SWIG_AsVal_int(obj3, &val4);
11283 if (!SWIG_IsOK(ecode4)) {
11284 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11285 }
11286 arg4 = static_cast< int >(val4);
11287 }
11288 {
11289 PyThreadState* __tstate = wxPyBeginAllowThreads();
11290 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11291 wxPyEndAllowThreads(__tstate);
11292 if (PyErr_Occurred()) SWIG_fail;
11293 }
11294 {
11295 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11296 }
11297 return resultobj;
11298fail:
11299 return NULL;
d14a1e28
RD
11300}
11301
11302
0085ce49
RD
11303SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11304 PyObject *obj;
11305 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11306 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11307 return SWIG_Py_Void();
d14a1e28
RD
11308}
11309
0085ce49
RD
11310SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11311 return SWIG_Python_InitShadowInstance(args);
11312}
d14a1e28 11313
0085ce49
RD
11314SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11315 PyObject *resultobj = 0;
11316 wxRegion *arg1 = 0 ;
11317 wxRegionIterator *result = 0 ;
11318 void *argp1 = 0 ;
11319 int res1 = 0 ;
11320 PyObject * obj0 = 0 ;
11321 char * kwnames[] = {
11322 (char *) "region", NULL
11323 };
11324
11325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11326 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11327 if (!SWIG_IsOK(res1)) {
11328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11329 }
11330 if (!argp1) {
11331 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11332 }
11333 arg1 = reinterpret_cast< wxRegion * >(argp1);
11334 {
11335 if (!wxPyCheckForApp()) SWIG_fail;
11336 PyThreadState* __tstate = wxPyBeginAllowThreads();
11337 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11338 wxPyEndAllowThreads(__tstate);
11339 if (PyErr_Occurred()) SWIG_fail;
11340 }
11341 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11342 return resultobj;
11343fail:
11344 return NULL;
d14a1e28
RD
11345}
11346
11347
0085ce49
RD
11348SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11349 PyObject *resultobj = 0;
11350 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11351 void *argp1 = 0 ;
11352 int res1 = 0 ;
11353 PyObject *swig_obj[1] ;
11354
11355 if (!args) SWIG_fail;
11356 swig_obj[0] = args;
11357 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11358 if (!SWIG_IsOK(res1)) {
11359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11360 }
11361 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11362 {
11363 PyThreadState* __tstate = wxPyBeginAllowThreads();
11364 delete arg1;
d14a1e28 11365
0085ce49
RD
11366 wxPyEndAllowThreads(__tstate);
11367 if (PyErr_Occurred()) SWIG_fail;
11368 }
11369 resultobj = SWIG_Py_Void();
11370 return resultobj;
11371fail:
11372 return NULL;
d14a1e28
RD
11373}
11374
11375
0085ce49
RD
11376SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11377 PyObject *resultobj = 0;
11378 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11379 int result;
11380 void *argp1 = 0 ;
11381 int res1 = 0 ;
11382 PyObject *swig_obj[1] ;
11383
11384 if (!args) SWIG_fail;
11385 swig_obj[0] = args;
11386 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11387 if (!SWIG_IsOK(res1)) {
11388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11389 }
11390 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11391 {
11392 PyThreadState* __tstate = wxPyBeginAllowThreads();
11393 result = (int)(arg1)->GetX();
11394 wxPyEndAllowThreads(__tstate);
11395 if (PyErr_Occurred()) SWIG_fail;
11396 }
11397 resultobj = SWIG_From_int(static_cast< int >(result));
11398 return resultobj;
11399fail:
11400 return NULL;
d14a1e28
RD
11401}
11402
11403
0085ce49
RD
11404SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11405 PyObject *resultobj = 0;
11406 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11407 int result;
11408 void *argp1 = 0 ;
11409 int res1 = 0 ;
11410 PyObject *swig_obj[1] ;
11411
11412 if (!args) SWIG_fail;
11413 swig_obj[0] = args;
11414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11415 if (!SWIG_IsOK(res1)) {
11416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11417 }
11418 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11419 {
11420 PyThreadState* __tstate = wxPyBeginAllowThreads();
11421 result = (int)(arg1)->GetY();
11422 wxPyEndAllowThreads(__tstate);
11423 if (PyErr_Occurred()) SWIG_fail;
11424 }
11425 resultobj = SWIG_From_int(static_cast< int >(result));
11426 return resultobj;
11427fail:
11428 return NULL;
d14a1e28
RD
11429}
11430
11431
0085ce49
RD
11432SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11433 PyObject *resultobj = 0;
11434 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11435 int result;
11436 void *argp1 = 0 ;
11437 int res1 = 0 ;
11438 PyObject *swig_obj[1] ;
11439
11440 if (!args) SWIG_fail;
11441 swig_obj[0] = args;
11442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11443 if (!SWIG_IsOK(res1)) {
11444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11445 }
11446 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11447 {
11448 PyThreadState* __tstate = wxPyBeginAllowThreads();
11449 result = (int)(arg1)->GetW();
11450 wxPyEndAllowThreads(__tstate);
11451 if (PyErr_Occurred()) SWIG_fail;
11452 }
11453 resultobj = SWIG_From_int(static_cast< int >(result));
11454 return resultobj;
11455fail:
11456 return NULL;
d14a1e28
RD
11457}
11458
11459
0085ce49
RD
11460SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11461 PyObject *resultobj = 0;
11462 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11463 int result;
11464 void *argp1 = 0 ;
11465 int res1 = 0 ;
11466 PyObject *swig_obj[1] ;
11467
11468 if (!args) SWIG_fail;
11469 swig_obj[0] = args;
11470 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11471 if (!SWIG_IsOK(res1)) {
11472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11473 }
11474 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11475 {
11476 PyThreadState* __tstate = wxPyBeginAllowThreads();
11477 result = (int)(arg1)->GetWidth();
11478 wxPyEndAllowThreads(__tstate);
11479 if (PyErr_Occurred()) SWIG_fail;
11480 }
11481 resultobj = SWIG_From_int(static_cast< int >(result));
11482 return resultobj;
11483fail:
11484 return NULL;
093d3ff1
RD
11485}
11486
11487
0085ce49
RD
11488SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11489 PyObject *resultobj = 0;
11490 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11491 int result;
11492 void *argp1 = 0 ;
11493 int res1 = 0 ;
11494 PyObject *swig_obj[1] ;
11495
11496 if (!args) SWIG_fail;
11497 swig_obj[0] = args;
11498 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11499 if (!SWIG_IsOK(res1)) {
11500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11501 }
11502 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11503 {
11504 PyThreadState* __tstate = wxPyBeginAllowThreads();
11505 result = (int)(arg1)->GetH();
11506 wxPyEndAllowThreads(__tstate);
11507 if (PyErr_Occurred()) SWIG_fail;
11508 }
11509 resultobj = SWIG_From_int(static_cast< int >(result));
11510 return resultobj;
11511fail:
11512 return NULL;
d14a1e28
RD
11513}
11514
11515
0085ce49
RD
11516SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11517 PyObject *resultobj = 0;
11518 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11519 int result;
11520 void *argp1 = 0 ;
11521 int res1 = 0 ;
11522 PyObject *swig_obj[1] ;
11523
11524 if (!args) SWIG_fail;
11525 swig_obj[0] = args;
11526 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11527 if (!SWIG_IsOK(res1)) {
11528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11529 }
11530 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11531 {
11532 PyThreadState* __tstate = wxPyBeginAllowThreads();
11533 result = (int)(arg1)->GetHeight();
11534 wxPyEndAllowThreads(__tstate);
11535 if (PyErr_Occurred()) SWIG_fail;
11536 }
11537 resultobj = SWIG_From_int(static_cast< int >(result));
11538 return resultobj;
11539fail:
11540 return NULL;
093d3ff1
RD
11541}
11542
11543
0085ce49
RD
11544SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11545 PyObject *resultobj = 0;
11546 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11547 wxRect 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_wxRegionIterator, 0 | 0 );
11555 if (!SWIG_IsOK(res1)) {
11556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11557 }
11558 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11559 {
11560 PyThreadState* __tstate = wxPyBeginAllowThreads();
11561 result = (arg1)->GetRect();
11562 wxPyEndAllowThreads(__tstate);
11563 if (PyErr_Occurred()) SWIG_fail;
11564 }
11565 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11566 return resultobj;
11567fail:
11568 return NULL;
d14a1e28
RD
11569}
11570
11571
0085ce49
RD
11572SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11573 PyObject *resultobj = 0;
11574 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11575 bool result;
11576 void *argp1 = 0 ;
11577 int res1 = 0 ;
11578 PyObject *swig_obj[1] ;
11579
11580 if (!args) SWIG_fail;
11581 swig_obj[0] = args;
11582 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11583 if (!SWIG_IsOK(res1)) {
11584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11585 }
11586 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11587 {
11588 PyThreadState* __tstate = wxPyBeginAllowThreads();
11589 result = (bool)(arg1)->HaveRects();
11590 wxPyEndAllowThreads(__tstate);
11591 if (PyErr_Occurred()) SWIG_fail;
11592 }
11593 {
11594 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11595 }
11596 return resultobj;
11597fail:
11598 return NULL;
093d3ff1
RD
11599}
11600
11601
0085ce49
RD
11602SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11603 PyObject *resultobj = 0;
11604 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11605 void *argp1 = 0 ;
11606 int res1 = 0 ;
11607 PyObject *swig_obj[1] ;
11608
11609 if (!args) SWIG_fail;
11610 swig_obj[0] = args;
11611 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11612 if (!SWIG_IsOK(res1)) {
11613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11614 }
11615 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11616 {
11617 PyThreadState* __tstate = wxPyBeginAllowThreads();
11618 (arg1)->Reset();
11619 wxPyEndAllowThreads(__tstate);
11620 if (PyErr_Occurred()) SWIG_fail;
11621 }
11622 resultobj = SWIG_Py_Void();
11623 return resultobj;
11624fail:
11625 return NULL;
d14a1e28
RD
11626}
11627
11628
0085ce49
RD
11629SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11630 PyObject *resultobj = 0;
11631 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11632 void *argp1 = 0 ;
11633 int res1 = 0 ;
11634 PyObject *swig_obj[1] ;
11635
11636 if (!args) SWIG_fail;
11637 swig_obj[0] = args;
11638 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11639 if (!SWIG_IsOK(res1)) {
11640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11641 }
11642 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11643 {
11644 PyThreadState* __tstate = wxPyBeginAllowThreads();
11645 wxRegionIterator_Next(arg1);
11646 wxPyEndAllowThreads(__tstate);
11647 if (PyErr_Occurred()) SWIG_fail;
11648 }
11649 resultobj = SWIG_Py_Void();
11650 return resultobj;
11651fail:
11652 return NULL;
d14a1e28
RD
11653}
11654
11655
0085ce49
RD
11656SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11657 PyObject *resultobj = 0;
11658 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11659 bool 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_wxRegionIterator, 0 | 0 );
11667 if (!SWIG_IsOK(res1)) {
11668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11669 }
11670 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11671 {
11672 PyThreadState* __tstate = wxPyBeginAllowThreads();
11673 result = (bool)wxRegionIterator___nonzero__(arg1);
11674 wxPyEndAllowThreads(__tstate);
11675 if (PyErr_Occurred()) SWIG_fail;
11676 }
11677 {
11678 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11679 }
11680 return resultobj;
11681fail:
11682 return NULL;
d14a1e28
RD
11683}
11684
11685
0085ce49
RD
11686SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11687 PyObject *obj;
11688 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11689 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
11690 return SWIG_Py_Void();
d14a1e28
RD
11691}
11692
0085ce49
RD
11693SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11694 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
11695}
11696
0085ce49
RD
11697SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11698 PyObject *resultobj = 0;
11699 wxNativeFontInfo *result = 0 ;
11700
11701 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
11702 {
11703 PyThreadState* __tstate = wxPyBeginAllowThreads();
11704 result = (wxNativeFontInfo *)new wxNativeFontInfo();
11705 wxPyEndAllowThreads(__tstate);
11706 if (PyErr_Occurred()) SWIG_fail;
11707 }
11708 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
11709 return resultobj;
11710fail:
11711 return NULL;
d14a1e28
RD
11712}
11713
11714
0085ce49
RD
11715SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11716 PyObject *resultobj = 0;
11717 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11718 void *argp1 = 0 ;
11719 int res1 = 0 ;
11720 PyObject *swig_obj[1] ;
11721
11722 if (!args) SWIG_fail;
11723 swig_obj[0] = args;
11724 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
11725 if (!SWIG_IsOK(res1)) {
11726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11727 }
11728 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11729 {
11730 PyThreadState* __tstate = wxPyBeginAllowThreads();
11731 delete arg1;
d14a1e28 11732
0085ce49
RD
11733 wxPyEndAllowThreads(__tstate);
11734 if (PyErr_Occurred()) SWIG_fail;
11735 }
11736 resultobj = SWIG_Py_Void();
11737 return resultobj;
11738fail:
11739 return NULL;
d14a1e28
RD
11740}
11741
11742
0085ce49
RD
11743SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11744 PyObject *resultobj = 0;
11745 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
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_wxNativeFontInfo, 0 | 0 );
11753 if (!SWIG_IsOK(res1)) {
11754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11755 }
11756 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11757 {
11758 PyThreadState* __tstate = wxPyBeginAllowThreads();
11759 (arg1)->Init();
11760 wxPyEndAllowThreads(__tstate);
11761 if (PyErr_Occurred()) SWIG_fail;
11762 }
11763 resultobj = SWIG_Py_Void();
11764 return resultobj;
11765fail:
11766 return NULL;
11767}
11768
11769
11770SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11771 PyObject *resultobj = 0;
11772 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11773 wxFont *arg2 = 0 ;
11774 void *argp1 = 0 ;
11775 int res1 = 0 ;
11776 void *argp2 = 0 ;
11777 int res2 = 0 ;
11778 PyObject * obj0 = 0 ;
11779 PyObject * obj1 = 0 ;
11780 char * kwnames[] = {
11781 (char *) "self",(char *) "font", NULL
11782 };
11783
11784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
11785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11786 if (!SWIG_IsOK(res1)) {
11787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11788 }
11789 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11790 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
11791 if (!SWIG_IsOK(res2)) {
11792 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
11793 }
11794 if (!argp2) {
11795 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
11796 }
11797 arg2 = reinterpret_cast< wxFont * >(argp2);
11798 {
11799 PyThreadState* __tstate = wxPyBeginAllowThreads();
11800 (arg1)->InitFromFont((wxFont const &)*arg2);
11801 wxPyEndAllowThreads(__tstate);
11802 if (PyErr_Occurred()) SWIG_fail;
11803 }
11804 resultobj = SWIG_Py_Void();
11805 return resultobj;
11806fail:
11807 return NULL;
e6ffcedd
RD
11808}
11809
11810
0085ce49
RD
11811SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11812 PyObject *resultobj = 0;
11813 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11814 int result;
11815 void *argp1 = 0 ;
11816 int res1 = 0 ;
11817 PyObject *swig_obj[1] ;
11818
11819 if (!args) SWIG_fail;
11820 swig_obj[0] = args;
11821 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11822 if (!SWIG_IsOK(res1)) {
11823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11824 }
11825 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11826 {
11827 PyThreadState* __tstate = wxPyBeginAllowThreads();
11828 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
11829 wxPyEndAllowThreads(__tstate);
11830 if (PyErr_Occurred()) SWIG_fail;
11831 }
11832 resultobj = SWIG_From_int(static_cast< int >(result));
11833 return resultobj;
11834fail:
11835 return NULL;
d14a1e28
RD
11836}
11837
11838
0085ce49
RD
11839SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11840 PyObject *resultobj = 0;
11841 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11842 wxFontStyle result;
11843 void *argp1 = 0 ;
11844 int res1 = 0 ;
11845 PyObject *swig_obj[1] ;
11846
11847 if (!args) SWIG_fail;
11848 swig_obj[0] = args;
11849 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11850 if (!SWIG_IsOK(res1)) {
11851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11852 }
11853 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11854 {
11855 PyThreadState* __tstate = wxPyBeginAllowThreads();
11856 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
11857 wxPyEndAllowThreads(__tstate);
11858 if (PyErr_Occurred()) SWIG_fail;
11859 }
11860 resultobj = SWIG_From_int(static_cast< int >(result));
11861 return resultobj;
11862fail:
11863 return NULL;
d14a1e28
RD
11864}
11865
11866
0085ce49
RD
11867SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11868 PyObject *resultobj = 0;
11869 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11870 wxFontWeight result;
11871 void *argp1 = 0 ;
11872 int res1 = 0 ;
11873 PyObject *swig_obj[1] ;
11874
11875 if (!args) SWIG_fail;
11876 swig_obj[0] = args;
11877 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11878 if (!SWIG_IsOK(res1)) {
11879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11880 }
11881 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11882 {
11883 PyThreadState* __tstate = wxPyBeginAllowThreads();
11884 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
11885 wxPyEndAllowThreads(__tstate);
11886 if (PyErr_Occurred()) SWIG_fail;
11887 }
11888 resultobj = SWIG_From_int(static_cast< int >(result));
11889 return resultobj;
11890fail:
11891 return NULL;
d14a1e28
RD
11892}
11893
11894
0085ce49
RD
11895SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11896 PyObject *resultobj = 0;
11897 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11898 bool result;
11899 void *argp1 = 0 ;
11900 int res1 = 0 ;
11901 PyObject *swig_obj[1] ;
11902
11903 if (!args) SWIG_fail;
11904 swig_obj[0] = args;
11905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11906 if (!SWIG_IsOK(res1)) {
11907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11908 }
11909 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11910 {
11911 PyThreadState* __tstate = wxPyBeginAllowThreads();
11912 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
11913 wxPyEndAllowThreads(__tstate);
11914 if (PyErr_Occurred()) SWIG_fail;
11915 }
11916 {
11917 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11918 }
11919 return resultobj;
11920fail:
11921 return NULL;
d14a1e28
RD
11922}
11923
11924
0085ce49
RD
11925SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11926 PyObject *resultobj = 0;
11927 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11928 wxString result;
11929 void *argp1 = 0 ;
11930 int res1 = 0 ;
11931 PyObject *swig_obj[1] ;
11932
11933 if (!args) SWIG_fail;
11934 swig_obj[0] = args;
11935 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11936 if (!SWIG_IsOK(res1)) {
11937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11938 }
11939 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11940 {
11941 PyThreadState* __tstate = wxPyBeginAllowThreads();
11942 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
11943 wxPyEndAllowThreads(__tstate);
11944 if (PyErr_Occurred()) SWIG_fail;
11945 }
11946 {
11947#if wxUSE_UNICODE
11948 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11949#else
11950 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11951#endif
11952 }
11953 return resultobj;
11954fail:
11955 return NULL;
d14a1e28
RD
11956}
11957
11958
0085ce49
RD
11959SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11960 PyObject *resultobj = 0;
11961 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11962 wxFontFamily result;
11963 void *argp1 = 0 ;
11964 int res1 = 0 ;
11965 PyObject *swig_obj[1] ;
11966
11967 if (!args) SWIG_fail;
11968 swig_obj[0] = args;
11969 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11970 if (!SWIG_IsOK(res1)) {
11971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11972 }
11973 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11974 {
11975 PyThreadState* __tstate = wxPyBeginAllowThreads();
11976 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
11977 wxPyEndAllowThreads(__tstate);
11978 if (PyErr_Occurred()) SWIG_fail;
11979 }
11980 resultobj = SWIG_From_int(static_cast< int >(result));
11981 return resultobj;
11982fail:
11983 return NULL;
d14a1e28
RD
11984}
11985
11986
0085ce49
RD
11987SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11988 PyObject *resultobj = 0;
11989 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11990 wxFontEncoding result;
11991 void *argp1 = 0 ;
11992 int res1 = 0 ;
11993 PyObject *swig_obj[1] ;
11994
11995 if (!args) SWIG_fail;
11996 swig_obj[0] = args;
11997 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11998 if (!SWIG_IsOK(res1)) {
11999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12000 }
12001 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12002 {
12003 PyThreadState* __tstate = wxPyBeginAllowThreads();
12004 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12005 wxPyEndAllowThreads(__tstate);
12006 if (PyErr_Occurred()) SWIG_fail;
12007 }
12008 resultobj = SWIG_From_int(static_cast< int >(result));
12009 return resultobj;
12010fail:
12011 return NULL;
12012}
12013
12014
12015SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12016 PyObject *resultobj = 0;
12017 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12018 int arg2 ;
12019 void *argp1 = 0 ;
12020 int res1 = 0 ;
12021 int val2 ;
12022 int ecode2 = 0 ;
12023 PyObject * obj0 = 0 ;
12024 PyObject * obj1 = 0 ;
12025 char * kwnames[] = {
12026 (char *) "self",(char *) "pointsize", NULL
12027 };
12028
12029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12031 if (!SWIG_IsOK(res1)) {
12032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12033 }
12034 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12035 ecode2 = SWIG_AsVal_int(obj1, &val2);
12036 if (!SWIG_IsOK(ecode2)) {
12037 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12038 }
12039 arg2 = static_cast< int >(val2);
12040 {
12041 PyThreadState* __tstate = wxPyBeginAllowThreads();
12042 (arg1)->SetPointSize(arg2);
12043 wxPyEndAllowThreads(__tstate);
12044 if (PyErr_Occurred()) SWIG_fail;
12045 }
12046 resultobj = SWIG_Py_Void();
12047 return resultobj;
12048fail:
12049 return NULL;
12050}
12051
12052
12053SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12054 PyObject *resultobj = 0;
12055 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12056 wxFontStyle arg2 ;
12057 void *argp1 = 0 ;
12058 int res1 = 0 ;
12059 int val2 ;
12060 int ecode2 = 0 ;
12061 PyObject * obj0 = 0 ;
12062 PyObject * obj1 = 0 ;
12063 char * kwnames[] = {
12064 (char *) "self",(char *) "style", NULL
12065 };
12066
12067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12069 if (!SWIG_IsOK(res1)) {
12070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12071 }
12072 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12073 ecode2 = SWIG_AsVal_int(obj1, &val2);
12074 if (!SWIG_IsOK(ecode2)) {
12075 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12076 }
12077 arg2 = static_cast< wxFontStyle >(val2);
12078 {
12079 PyThreadState* __tstate = wxPyBeginAllowThreads();
12080 (arg1)->SetStyle(arg2);
12081 wxPyEndAllowThreads(__tstate);
12082 if (PyErr_Occurred()) SWIG_fail;
12083 }
12084 resultobj = SWIG_Py_Void();
12085 return resultobj;
12086fail:
12087 return NULL;
12088}
12089
12090
12091SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12092 PyObject *resultobj = 0;
12093 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12094 wxFontWeight arg2 ;
12095 void *argp1 = 0 ;
12096 int res1 = 0 ;
12097 int val2 ;
12098 int ecode2 = 0 ;
12099 PyObject * obj0 = 0 ;
12100 PyObject * obj1 = 0 ;
12101 char * kwnames[] = {
12102 (char *) "self",(char *) "weight", NULL
12103 };
12104
12105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12107 if (!SWIG_IsOK(res1)) {
12108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12109 }
12110 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12111 ecode2 = SWIG_AsVal_int(obj1, &val2);
12112 if (!SWIG_IsOK(ecode2)) {
12113 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12114 }
12115 arg2 = static_cast< wxFontWeight >(val2);
12116 {
12117 PyThreadState* __tstate = wxPyBeginAllowThreads();
12118 (arg1)->SetWeight(arg2);
12119 wxPyEndAllowThreads(__tstate);
12120 if (PyErr_Occurred()) SWIG_fail;
12121 }
12122 resultobj = SWIG_Py_Void();
12123 return resultobj;
12124fail:
12125 return NULL;
12126}
12127
12128
12129SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12130 PyObject *resultobj = 0;
12131 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12132 bool arg2 ;
12133 void *argp1 = 0 ;
12134 int res1 = 0 ;
12135 bool val2 ;
12136 int ecode2 = 0 ;
12137 PyObject * obj0 = 0 ;
12138 PyObject * obj1 = 0 ;
12139 char * kwnames[] = {
12140 (char *) "self",(char *) "underlined", NULL
12141 };
12142
12143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12145 if (!SWIG_IsOK(res1)) {
12146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12147 }
12148 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12149 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12150 if (!SWIG_IsOK(ecode2)) {
12151 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12152 }
12153 arg2 = static_cast< bool >(val2);
12154 {
12155 PyThreadState* __tstate = wxPyBeginAllowThreads();
12156 (arg1)->SetUnderlined(arg2);
12157 wxPyEndAllowThreads(__tstate);
12158 if (PyErr_Occurred()) SWIG_fail;
12159 }
12160 resultobj = SWIG_Py_Void();
12161 return resultobj;
12162fail:
12163 return NULL;
12164}
12165
12166
12167SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12168 PyObject *resultobj = 0;
12169 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12170 wxString arg2 ;
704eda0c 12171 bool result;
0085ce49
RD
12172 void *argp1 = 0 ;
12173 int res1 = 0 ;
12174 PyObject * obj0 = 0 ;
12175 PyObject * obj1 = 0 ;
12176 char * kwnames[] = {
12177 (char *) "self",(char *) "facename", NULL
12178 };
12179
12180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12182 if (!SWIG_IsOK(res1)) {
12183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12184 }
12185 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12186 {
12187 wxString* sptr = wxString_in_helper(obj1);
12188 if (sptr == NULL) SWIG_fail;
12189 arg2 = *sptr;
12190 delete sptr;
12191 }
12192 {
12193 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 12194 result = (bool)(arg1)->SetFaceName(arg2);
0085ce49
RD
12195 wxPyEndAllowThreads(__tstate);
12196 if (PyErr_Occurred()) SWIG_fail;
12197 }
704eda0c
RD
12198 {
12199 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12200 }
0085ce49
RD
12201 return resultobj;
12202fail:
12203 return NULL;
12204}
12205
12206
12207SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12208 PyObject *resultobj = 0;
12209 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12210 wxFontFamily arg2 ;
12211 void *argp1 = 0 ;
12212 int res1 = 0 ;
12213 int val2 ;
12214 int ecode2 = 0 ;
12215 PyObject * obj0 = 0 ;
12216 PyObject * obj1 = 0 ;
12217 char * kwnames[] = {
12218 (char *) "self",(char *) "family", NULL
12219 };
12220
12221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12222 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12223 if (!SWIG_IsOK(res1)) {
12224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12225 }
12226 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12227 ecode2 = SWIG_AsVal_int(obj1, &val2);
12228 if (!SWIG_IsOK(ecode2)) {
12229 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12230 }
12231 arg2 = static_cast< wxFontFamily >(val2);
12232 {
12233 PyThreadState* __tstate = wxPyBeginAllowThreads();
12234 (arg1)->SetFamily(arg2);
12235 wxPyEndAllowThreads(__tstate);
12236 if (PyErr_Occurred()) SWIG_fail;
12237 }
12238 resultobj = SWIG_Py_Void();
12239 return resultobj;
12240fail:
12241 return NULL;
12242}
12243
12244
12245SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12246 PyObject *resultobj = 0;
12247 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12248 wxFontEncoding arg2 ;
12249 void *argp1 = 0 ;
12250 int res1 = 0 ;
12251 int val2 ;
12252 int ecode2 = 0 ;
12253 PyObject * obj0 = 0 ;
12254 PyObject * obj1 = 0 ;
12255 char * kwnames[] = {
12256 (char *) "self",(char *) "encoding", NULL
12257 };
12258
12259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12261 if (!SWIG_IsOK(res1)) {
12262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12263 }
12264 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12265 ecode2 = SWIG_AsVal_int(obj1, &val2);
12266 if (!SWIG_IsOK(ecode2)) {
12267 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12268 }
12269 arg2 = static_cast< wxFontEncoding >(val2);
12270 {
12271 PyThreadState* __tstate = wxPyBeginAllowThreads();
12272 (arg1)->SetEncoding(arg2);
12273 wxPyEndAllowThreads(__tstate);
12274 if (PyErr_Occurred()) SWIG_fail;
12275 }
12276 resultobj = SWIG_Py_Void();
12277 return resultobj;
12278fail:
12279 return NULL;
12280}
12281
12282
12283SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12284 PyObject *resultobj = 0;
12285 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12286 wxString *arg2 = 0 ;
12287 bool result;
12288 void *argp1 = 0 ;
12289 int res1 = 0 ;
12290 bool temp2 = false ;
12291 PyObject * obj0 = 0 ;
12292 PyObject * obj1 = 0 ;
12293 char * kwnames[] = {
12294 (char *) "self",(char *) "s", NULL
12295 };
12296
12297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12299 if (!SWIG_IsOK(res1)) {
12300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12301 }
12302 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12303 {
12304 arg2 = wxString_in_helper(obj1);
12305 if (arg2 == NULL) SWIG_fail;
12306 temp2 = true;
12307 }
12308 {
12309 PyThreadState* __tstate = wxPyBeginAllowThreads();
12310 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12311 wxPyEndAllowThreads(__tstate);
12312 if (PyErr_Occurred()) SWIG_fail;
12313 }
12314 {
12315 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12316 }
12317 {
12318 if (temp2)
12319 delete arg2;
12320 }
12321 return resultobj;
12322fail:
12323 {
12324 if (temp2)
12325 delete arg2;
12326 }
12327 return NULL;
d14a1e28
RD
12328}
12329
12330
0085ce49
RD
12331SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12332 PyObject *resultobj = 0;
12333 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12334 wxString result;
12335 void *argp1 = 0 ;
12336 int res1 = 0 ;
12337 PyObject *swig_obj[1] ;
12338
12339 if (!args) SWIG_fail;
12340 swig_obj[0] = args;
12341 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12342 if (!SWIG_IsOK(res1)) {
12343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12344 }
12345 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12346 {
12347 PyThreadState* __tstate = wxPyBeginAllowThreads();
12348 result = ((wxNativeFontInfo const *)arg1)->ToString();
12349 wxPyEndAllowThreads(__tstate);
12350 if (PyErr_Occurred()) SWIG_fail;
12351 }
12352 {
12353#if wxUSE_UNICODE
12354 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12355#else
12356 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12357#endif
12358 }
12359 return resultobj;
12360fail:
12361 return NULL;
d14a1e28
RD
12362}
12363
12364
0085ce49
RD
12365SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12366 PyObject *resultobj = 0;
12367 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12368 wxString result;
12369 void *argp1 = 0 ;
12370 int res1 = 0 ;
12371 PyObject *swig_obj[1] ;
12372
12373 if (!args) SWIG_fail;
12374 swig_obj[0] = args;
12375 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12376 if (!SWIG_IsOK(res1)) {
12377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12378 }
12379 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12380 {
12381 PyThreadState* __tstate = wxPyBeginAllowThreads();
12382 result = wxNativeFontInfo___str__(arg1);
12383 wxPyEndAllowThreads(__tstate);
12384 if (PyErr_Occurred()) SWIG_fail;
12385 }
12386 {
12387#if wxUSE_UNICODE
12388 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12389#else
12390 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12391#endif
12392 }
12393 return resultobj;
12394fail:
12395 return NULL;
12396}
12397
12398
12399SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12400 PyObject *resultobj = 0;
12401 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12402 wxString *arg2 = 0 ;
12403 bool result;
12404 void *argp1 = 0 ;
12405 int res1 = 0 ;
12406 bool temp2 = false ;
12407 PyObject * obj0 = 0 ;
12408 PyObject * obj1 = 0 ;
12409 char * kwnames[] = {
12410 (char *) "self",(char *) "s", NULL
12411 };
12412
12413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12415 if (!SWIG_IsOK(res1)) {
12416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12417 }
12418 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12419 {
12420 arg2 = wxString_in_helper(obj1);
12421 if (arg2 == NULL) SWIG_fail;
12422 temp2 = true;
12423 }
12424 {
12425 PyThreadState* __tstate = wxPyBeginAllowThreads();
12426 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12427 wxPyEndAllowThreads(__tstate);
12428 if (PyErr_Occurred()) SWIG_fail;
12429 }
12430 {
12431 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12432 }
12433 {
12434 if (temp2)
12435 delete arg2;
12436 }
12437 return resultobj;
12438fail:
12439 {
12440 if (temp2)
12441 delete arg2;
12442 }
12443 return NULL;
d14a1e28
RD
12444}
12445
12446
0085ce49
RD
12447SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12448 PyObject *resultobj = 0;
12449 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12450 wxString result;
12451 void *argp1 = 0 ;
12452 int res1 = 0 ;
12453 PyObject *swig_obj[1] ;
12454
12455 if (!args) SWIG_fail;
12456 swig_obj[0] = args;
12457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12458 if (!SWIG_IsOK(res1)) {
12459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12460 }
12461 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12462 {
12463 PyThreadState* __tstate = wxPyBeginAllowThreads();
12464 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12465 wxPyEndAllowThreads(__tstate);
12466 if (PyErr_Occurred()) SWIG_fail;
12467 }
12468 {
12469#if wxUSE_UNICODE
12470 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12471#else
12472 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12473#endif
12474 }
12475 return resultobj;
12476fail:
12477 return NULL;
d14a1e28
RD
12478}
12479
12480
0085ce49
RD
12481SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12482 PyObject *obj;
12483 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12484 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
12485 return SWIG_Py_Void();
d14a1e28
RD
12486}
12487
0085ce49
RD
12488SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12489 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
12490}
12491
0085ce49
RD
12492SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12493 PyObject *resultobj = 0;
12494 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12495 wxString *arg2 = (wxString *) 0 ;
12496 void *argp1 = 0 ;
12497 int res1 = 0 ;
12498 bool temp2 = false ;
12499 PyObject *swig_obj[2] ;
12500
12501 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
12502 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12503 if (!SWIG_IsOK(res1)) {
12504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12505 }
12506 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12507 {
12508 arg2 = wxString_in_helper(swig_obj[1]);
12509 if (arg2 == NULL) SWIG_fail;
12510 temp2 = true;
12511 }
12512 if (arg1) (arg1)->facename = *arg2;
12513
12514 resultobj = SWIG_Py_Void();
12515 {
12516 if (temp2)
12517 delete arg2;
12518 }
12519 return resultobj;
12520fail:
12521 {
12522 if (temp2)
12523 delete arg2;
12524 }
12525 return NULL;
d14a1e28
RD
12526}
12527
12528
0085ce49
RD
12529SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12530 PyObject *resultobj = 0;
12531 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12532 wxString *result = 0 ;
12533 void *argp1 = 0 ;
12534 int res1 = 0 ;
12535 PyObject *swig_obj[1] ;
12536
12537 if (!args) SWIG_fail;
12538 swig_obj[0] = args;
12539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12540 if (!SWIG_IsOK(res1)) {
12541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12542 }
12543 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12544 result = (wxString *)& ((arg1)->facename);
12545 {
12546#if wxUSE_UNICODE
12547 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12548#else
12549 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12550#endif
12551 }
12552 return resultobj;
12553fail:
12554 return NULL;
d14a1e28
RD
12555}
12556
12557
0085ce49
RD
12558SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12559 PyObject *resultobj = 0;
12560 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12561 wxFontEncoding arg2 ;
12562 void *argp1 = 0 ;
12563 int res1 = 0 ;
12564 int val2 ;
12565 int ecode2 = 0 ;
12566 PyObject *swig_obj[2] ;
12567
12568 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
12569 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12570 if (!SWIG_IsOK(res1)) {
12571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12572 }
12573 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12574 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12575 if (!SWIG_IsOK(ecode2)) {
12576 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12577 }
12578 arg2 = static_cast< wxFontEncoding >(val2);
12579 if (arg1) (arg1)->encoding = arg2;
12580
12581 resultobj = SWIG_Py_Void();
12582 return resultobj;
12583fail:
12584 return NULL;
d14a1e28
RD
12585}
12586
12587
0085ce49
RD
12588SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12589 PyObject *resultobj = 0;
12590 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12591 wxFontEncoding result;
12592 void *argp1 = 0 ;
12593 int res1 = 0 ;
12594 PyObject *swig_obj[1] ;
12595
12596 if (!args) SWIG_fail;
12597 swig_obj[0] = args;
12598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12599 if (!SWIG_IsOK(res1)) {
12600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12601 }
12602 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12603 result = (wxFontEncoding) ((arg1)->encoding);
12604 resultobj = SWIG_From_int(static_cast< int >(result));
12605 return resultobj;
12606fail:
12607 return NULL;
d14a1e28
RD
12608}
12609
12610
0085ce49
RD
12611SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12612 PyObject *resultobj = 0;
12613 wxNativeEncodingInfo *result = 0 ;
12614
12615 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
12616 {
12617 PyThreadState* __tstate = wxPyBeginAllowThreads();
12618 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
12619 wxPyEndAllowThreads(__tstate);
12620 if (PyErr_Occurred()) SWIG_fail;
12621 }
12622 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
12623 return resultobj;
12624fail:
12625 return NULL;
d14a1e28
RD
12626}
12627
12628
0085ce49
RD
12629SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12630 PyObject *resultobj = 0;
12631 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12632 void *argp1 = 0 ;
12633 int res1 = 0 ;
12634 PyObject *swig_obj[1] ;
12635
12636 if (!args) SWIG_fail;
12637 swig_obj[0] = args;
12638 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
12639 if (!SWIG_IsOK(res1)) {
12640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12641 }
12642 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12643 {
12644 PyThreadState* __tstate = wxPyBeginAllowThreads();
12645 delete arg1;
d14a1e28 12646
0085ce49
RD
12647 wxPyEndAllowThreads(__tstate);
12648 if (PyErr_Occurred()) SWIG_fail;
12649 }
12650 resultobj = SWIG_Py_Void();
12651 return resultobj;
12652fail:
12653 return NULL;
12654}
12655
12656
12657SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12658 PyObject *resultobj = 0;
12659 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12660 wxString *arg2 = 0 ;
12661 bool result;
12662 void *argp1 = 0 ;
12663 int res1 = 0 ;
12664 bool temp2 = false ;
12665 PyObject * obj0 = 0 ;
12666 PyObject * obj1 = 0 ;
12667 char * kwnames[] = {
12668 (char *) "self",(char *) "s", NULL
12669 };
12670
12671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12673 if (!SWIG_IsOK(res1)) {
12674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12675 }
12676 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12677 {
12678 arg2 = wxString_in_helper(obj1);
12679 if (arg2 == NULL) SWIG_fail;
12680 temp2 = true;
12681 }
12682 {
12683 PyThreadState* __tstate = wxPyBeginAllowThreads();
12684 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12685 wxPyEndAllowThreads(__tstate);
12686 if (PyErr_Occurred()) SWIG_fail;
12687 }
12688 {
12689 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12690 }
12691 {
12692 if (temp2)
12693 delete arg2;
12694 }
12695 return resultobj;
12696fail:
12697 {
12698 if (temp2)
12699 delete arg2;
12700 }
12701 return NULL;
d14a1e28
RD
12702}
12703
12704
0085ce49
RD
12705SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12706 PyObject *resultobj = 0;
12707 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12708 wxString result;
12709 void *argp1 = 0 ;
12710 int res1 = 0 ;
12711 PyObject *swig_obj[1] ;
12712
12713 if (!args) SWIG_fail;
12714 swig_obj[0] = args;
12715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12716 if (!SWIG_IsOK(res1)) {
12717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
12718 }
12719 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12720 {
12721 PyThreadState* __tstate = wxPyBeginAllowThreads();
12722 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
12723 wxPyEndAllowThreads(__tstate);
12724 if (PyErr_Occurred()) SWIG_fail;
12725 }
12726 {
12727#if wxUSE_UNICODE
12728 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12729#else
12730 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12731#endif
12732 }
12733 return resultobj;
12734fail:
12735 return NULL;
d14a1e28
RD
12736}
12737
12738
0085ce49
RD
12739SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12740 PyObject *obj;
12741 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12742 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
12743 return SWIG_Py_Void();
d14a1e28
RD
12744}
12745
0085ce49
RD
12746SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12747 return SWIG_Python_InitShadowInstance(args);
12748}
d14a1e28 12749
0085ce49
RD
12750SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12751 PyObject *resultobj = 0;
12752 wxFontEncoding arg1 ;
12753 wxNativeEncodingInfo *result = 0 ;
12754 int val1 ;
12755 int ecode1 = 0 ;
12756 PyObject * obj0 = 0 ;
12757 char * kwnames[] = {
12758 (char *) "encoding", NULL
12759 };
12760
12761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
12762 ecode1 = SWIG_AsVal_int(obj0, &val1);
12763 if (!SWIG_IsOK(ecode1)) {
12764 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12765 }
12766 arg1 = static_cast< wxFontEncoding >(val1);
12767 {
12768 PyThreadState* __tstate = wxPyBeginAllowThreads();
12769 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
12770 wxPyEndAllowThreads(__tstate);
12771 if (PyErr_Occurred()) SWIG_fail;
12772 }
12773 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12774 return resultobj;
12775fail:
12776 return NULL;
12777}
12778
12779
12780SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12781 PyObject *resultobj = 0;
12782 wxNativeEncodingInfo *arg1 = 0 ;
12783 bool result;
12784 void *argp1 = 0 ;
12785 int res1 = 0 ;
12786 PyObject * obj0 = 0 ;
12787 char * kwnames[] = {
12788 (char *) "info", NULL
12789 };
12790
12791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
12792 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
12793 if (!SWIG_IsOK(res1)) {
12794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
12795 }
12796 if (!argp1) {
12797 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
12798 }
12799 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12800 {
12801 PyThreadState* __tstate = wxPyBeginAllowThreads();
12802 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
12803 wxPyEndAllowThreads(__tstate);
12804 if (PyErr_Occurred()) SWIG_fail;
12805 }
12806 {
12807 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12808 }
12809 return resultobj;
12810fail:
12811 return NULL;
d14a1e28
RD
12812}
12813
12814
0085ce49
RD
12815SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12816 PyObject *resultobj = 0;
12817 wxFontMapper *result = 0 ;
12818
12819 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
12820 {
12821 PyThreadState* __tstate = wxPyBeginAllowThreads();
12822 result = (wxFontMapper *)new wxFontMapper();
12823 wxPyEndAllowThreads(__tstate);
12824 if (PyErr_Occurred()) SWIG_fail;
12825 }
12826 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
12827 return resultobj;
12828fail:
12829 return NULL;
d14a1e28
RD
12830}
12831
12832
0085ce49
RD
12833SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12834 PyObject *resultobj = 0;
12835 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12836 void *argp1 = 0 ;
12837 int res1 = 0 ;
12838 PyObject *swig_obj[1] ;
12839
12840 if (!args) SWIG_fail;
12841 swig_obj[0] = args;
12842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
12843 if (!SWIG_IsOK(res1)) {
12844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12845 }
12846 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12847 {
12848 PyThreadState* __tstate = wxPyBeginAllowThreads();
12849 delete arg1;
d14a1e28 12850
0085ce49
RD
12851 wxPyEndAllowThreads(__tstate);
12852 if (PyErr_Occurred()) SWIG_fail;
12853 }
12854 resultobj = SWIG_Py_Void();
12855 return resultobj;
12856fail:
12857 return NULL;
d14a1e28
RD
12858}
12859
12860
0085ce49
RD
12861SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12862 PyObject *resultobj = 0;
12863 wxFontMapper *result = 0 ;
12864
12865 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
12866 {
12867 PyThreadState* __tstate = wxPyBeginAllowThreads();
12868 result = (wxFontMapper *)wxFontMapper::Get();
12869 wxPyEndAllowThreads(__tstate);
12870 if (PyErr_Occurred()) SWIG_fail;
12871 }
12872 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
12873 return resultobj;
12874fail:
12875 return NULL;
12876}
12877
12878
12879SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12880 PyObject *resultobj = 0;
12881 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12882 wxFontMapper *result = 0 ;
12883 void *argp1 = 0 ;
12884 int res1 = 0 ;
12885 PyObject * obj0 = 0 ;
12886 char * kwnames[] = {
12887 (char *) "mapper", NULL
12888 };
12889
12890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
12891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
12892 if (!SWIG_IsOK(res1)) {
12893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12894 }
12895 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12896 {
12897 PyThreadState* __tstate = wxPyBeginAllowThreads();
12898 result = (wxFontMapper *)wxFontMapper::Set(arg1);
12899 wxPyEndAllowThreads(__tstate);
12900 if (PyErr_Occurred()) SWIG_fail;
12901 }
12902 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
12903 return resultobj;
12904fail:
12905 return NULL;
12906}
12907
12908
12909SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12910 PyObject *resultobj = 0;
12911 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12912 wxString *arg2 = 0 ;
12913 bool arg3 = (bool) true ;
12914 wxFontEncoding result;
12915 void *argp1 = 0 ;
12916 int res1 = 0 ;
12917 bool temp2 = false ;
12918 bool val3 ;
12919 int ecode3 = 0 ;
12920 PyObject * obj0 = 0 ;
12921 PyObject * obj1 = 0 ;
12922 PyObject * obj2 = 0 ;
12923 char * kwnames[] = {
12924 (char *) "self",(char *) "charset",(char *) "interactive", NULL
12925 };
12926
12927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
12929 if (!SWIG_IsOK(res1)) {
12930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12931 }
12932 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12933 {
12934 arg2 = wxString_in_helper(obj1);
12935 if (arg2 == NULL) SWIG_fail;
12936 temp2 = true;
12937 }
12938 if (obj2) {
12939 ecode3 = SWIG_AsVal_bool(obj2, &val3);
12940 if (!SWIG_IsOK(ecode3)) {
12941 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
12942 }
12943 arg3 = static_cast< bool >(val3);
12944 }
12945 {
12946 PyThreadState* __tstate = wxPyBeginAllowThreads();
12947 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
12948 wxPyEndAllowThreads(__tstate);
12949 if (PyErr_Occurred()) SWIG_fail;
12950 }
12951 resultobj = SWIG_From_int(static_cast< int >(result));
12952 {
12953 if (temp2)
12954 delete arg2;
12955 }
12956 return resultobj;
12957fail:
12958 {
12959 if (temp2)
12960 delete arg2;
12961 }
12962 return NULL;
e6ffcedd
RD
12963}
12964
12965
0085ce49
RD
12966SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12967 PyObject *resultobj = 0;
12968 size_t result;
12969
12970 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
12971 {
12972 PyThreadState* __tstate = wxPyBeginAllowThreads();
12973 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
12974 wxPyEndAllowThreads(__tstate);
12975 if (PyErr_Occurred()) SWIG_fail;
12976 }
12977 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
12978 return resultobj;
12979fail:
12980 return NULL;
12981}
12982
12983
12984SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12985 PyObject *resultobj = 0;
12986 size_t arg1 ;
12987 wxFontEncoding result;
12988 size_t val1 ;
12989 int ecode1 = 0 ;
12990 PyObject * obj0 = 0 ;
12991 char * kwnames[] = {
12992 (char *) "n", NULL
12993 };
12994
12995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
12996 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
12997 if (!SWIG_IsOK(ecode1)) {
12998 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
12999 }
13000 arg1 = static_cast< size_t >(val1);
13001 {
13002 PyThreadState* __tstate = wxPyBeginAllowThreads();
13003 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13004 wxPyEndAllowThreads(__tstate);
13005 if (PyErr_Occurred()) SWIG_fail;
13006 }
13007 resultobj = SWIG_From_int(static_cast< int >(result));
13008 return resultobj;
13009fail:
13010 return NULL;
13011}
13012
13013
13014SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13015 PyObject *resultobj = 0;
13016 wxFontEncoding arg1 ;
13017 wxString result;
13018 int val1 ;
13019 int ecode1 = 0 ;
13020 PyObject * obj0 = 0 ;
13021 char * kwnames[] = {
13022 (char *) "encoding", NULL
13023 };
13024
13025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13026 ecode1 = SWIG_AsVal_int(obj0, &val1);
13027 if (!SWIG_IsOK(ecode1)) {
13028 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13029 }
13030 arg1 = static_cast< wxFontEncoding >(val1);
13031 {
13032 PyThreadState* __tstate = wxPyBeginAllowThreads();
13033 result = wxFontMapper::GetEncodingName(arg1);
13034 wxPyEndAllowThreads(__tstate);
13035 if (PyErr_Occurred()) SWIG_fail;
13036 }
13037 {
13038#if wxUSE_UNICODE
13039 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13040#else
13041 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13042#endif
13043 }
13044 return resultobj;
13045fail:
13046 return NULL;
d14a1e28
RD
13047}
13048
13049
0085ce49
RD
13050SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13051 PyObject *resultobj = 0;
13052 wxFontEncoding arg1 ;
13053 wxString result;
13054 int val1 ;
13055 int ecode1 = 0 ;
13056 PyObject * obj0 = 0 ;
13057 char * kwnames[] = {
13058 (char *) "encoding", NULL
13059 };
13060
13061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13062 ecode1 = SWIG_AsVal_int(obj0, &val1);
13063 if (!SWIG_IsOK(ecode1)) {
13064 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13065 }
13066 arg1 = static_cast< wxFontEncoding >(val1);
13067 {
13068 PyThreadState* __tstate = wxPyBeginAllowThreads();
13069 result = wxFontMapper::GetEncodingDescription(arg1);
13070 wxPyEndAllowThreads(__tstate);
13071 if (PyErr_Occurred()) SWIG_fail;
13072 }
13073 {
13074#if wxUSE_UNICODE
13075 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13076#else
13077 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13078#endif
13079 }
13080 return resultobj;
13081fail:
13082 return NULL;
d14a1e28
RD
13083}
13084
13085
0085ce49
RD
13086SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13087 PyObject *resultobj = 0;
13088 wxString *arg1 = 0 ;
13089 wxFontEncoding result;
13090 bool temp1 = false ;
13091 PyObject * obj0 = 0 ;
13092 char * kwnames[] = {
13093 (char *) "name", NULL
13094 };
13095
13096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13097 {
13098 arg1 = wxString_in_helper(obj0);
13099 if (arg1 == NULL) SWIG_fail;
13100 temp1 = true;
13101 }
13102 {
13103 PyThreadState* __tstate = wxPyBeginAllowThreads();
13104 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13105 wxPyEndAllowThreads(__tstate);
13106 if (PyErr_Occurred()) SWIG_fail;
13107 }
13108 resultobj = SWIG_From_int(static_cast< int >(result));
13109 {
13110 if (temp1)
13111 delete arg1;
13112 }
13113 return resultobj;
13114fail:
13115 {
13116 if (temp1)
13117 delete arg1;
13118 }
13119 return NULL;
d14a1e28
RD
13120}
13121
13122
0085ce49
RD
13123SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13124 PyObject *resultobj = 0;
13125 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13126 wxString *arg2 = 0 ;
13127 void *argp1 = 0 ;
13128 int res1 = 0 ;
13129 bool temp2 = false ;
13130 PyObject * obj0 = 0 ;
13131 PyObject * obj1 = 0 ;
13132 char * kwnames[] = {
13133 (char *) "self",(char *) "prefix", NULL
13134 };
13135
13136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13138 if (!SWIG_IsOK(res1)) {
13139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13140 }
13141 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13142 {
13143 arg2 = wxString_in_helper(obj1);
13144 if (arg2 == NULL) SWIG_fail;
13145 temp2 = true;
13146 }
13147 {
13148 PyThreadState* __tstate = wxPyBeginAllowThreads();
13149 (arg1)->SetConfigPath((wxString const &)*arg2);
13150 wxPyEndAllowThreads(__tstate);
13151 if (PyErr_Occurred()) SWIG_fail;
13152 }
13153 resultobj = SWIG_Py_Void();
13154 {
13155 if (temp2)
13156 delete arg2;
13157 }
13158 return resultobj;
13159fail:
13160 {
13161 if (temp2)
13162 delete arg2;
13163 }
13164 return NULL;
d14a1e28
RD
13165}
13166
13167
0085ce49
RD
13168SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13169 PyObject *resultobj = 0;
13170 wxString result;
13171
13172 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13173 {
13174 PyThreadState* __tstate = wxPyBeginAllowThreads();
13175 result = wxFontMapper::GetDefaultConfigPath();
13176 wxPyEndAllowThreads(__tstate);
13177 if (PyErr_Occurred()) SWIG_fail;
13178 }
13179 {
13180#if wxUSE_UNICODE
13181 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13182#else
13183 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13184#endif
13185 }
13186 return resultobj;
13187fail:
13188 return NULL;
13189}
13190
13191
13192SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13193 PyObject *resultobj = 0;
13194 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13195 wxFontEncoding arg2 ;
13196 wxString const &arg3_defvalue = wxPyEmptyString ;
13197 wxString *arg3 = (wxString *) &arg3_defvalue ;
13198 bool arg4 = (bool) true ;
13199 PyObject *result = 0 ;
13200 void *argp1 = 0 ;
13201 int res1 = 0 ;
13202 int val2 ;
13203 int ecode2 = 0 ;
13204 bool temp3 = false ;
13205 bool val4 ;
13206 int ecode4 = 0 ;
13207 PyObject * obj0 = 0 ;
13208 PyObject * obj1 = 0 ;
13209 PyObject * obj2 = 0 ;
13210 PyObject * obj3 = 0 ;
13211 char * kwnames[] = {
13212 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13213 };
13214
13215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13217 if (!SWIG_IsOK(res1)) {
13218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13219 }
13220 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13221 ecode2 = SWIG_AsVal_int(obj1, &val2);
13222 if (!SWIG_IsOK(ecode2)) {
13223 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13224 }
13225 arg2 = static_cast< wxFontEncoding >(val2);
13226 if (obj2) {
093d3ff1 13227 {
0085ce49
RD
13228 arg3 = wxString_in_helper(obj2);
13229 if (arg3 == NULL) SWIG_fail;
13230 temp3 = true;
093d3ff1 13231 }
0085ce49
RD
13232 }
13233 if (obj3) {
13234 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13235 if (!SWIG_IsOK(ecode4)) {
13236 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13237 }
13238 arg4 = static_cast< bool >(val4);
13239 }
13240 {
13241 PyThreadState* __tstate = wxPyBeginAllowThreads();
13242 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13243 wxPyEndAllowThreads(__tstate);
13244 if (PyErr_Occurred()) SWIG_fail;
13245 }
13246 resultobj = result;
13247 {
13248 if (temp3)
13249 delete arg3;
13250 }
13251 return resultobj;
13252fail:
13253 {
13254 if (temp3)
13255 delete arg3;
13256 }
13257 return NULL;
13258}
13259
13260
13261SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13262 PyObject *resultobj = 0;
13263 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13264 wxFontEncoding arg2 ;
13265 wxString const &arg3_defvalue = wxPyEmptyString ;
13266 wxString *arg3 = (wxString *) &arg3_defvalue ;
13267 bool result;
13268 void *argp1 = 0 ;
13269 int res1 = 0 ;
13270 int val2 ;
13271 int ecode2 = 0 ;
13272 bool temp3 = false ;
13273 PyObject * obj0 = 0 ;
13274 PyObject * obj1 = 0 ;
13275 PyObject * obj2 = 0 ;
13276 char * kwnames[] = {
13277 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13278 };
13279
13280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13282 if (!SWIG_IsOK(res1)) {
13283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13284 }
13285 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13286 ecode2 = SWIG_AsVal_int(obj1, &val2);
13287 if (!SWIG_IsOK(ecode2)) {
13288 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13289 }
13290 arg2 = static_cast< wxFontEncoding >(val2);
13291 if (obj2) {
d14a1e28 13292 {
0085ce49
RD
13293 arg3 = wxString_in_helper(obj2);
13294 if (arg3 == NULL) SWIG_fail;
13295 temp3 = true;
d14a1e28 13296 }
0085ce49
RD
13297 }
13298 {
13299 PyThreadState* __tstate = wxPyBeginAllowThreads();
13300 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13301 wxPyEndAllowThreads(__tstate);
13302 if (PyErr_Occurred()) SWIG_fail;
13303 }
13304 {
13305 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13306 }
13307 {
13308 if (temp3)
13309 delete arg3;
13310 }
13311 return resultobj;
13312fail:
13313 {
13314 if (temp3)
13315 delete arg3;
13316 }
13317 return NULL;
13318}
13319
13320
13321SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13322 PyObject *resultobj = 0;
13323 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13324 wxWindow *arg2 = (wxWindow *) 0 ;
13325 void *argp1 = 0 ;
13326 int res1 = 0 ;
13327 void *argp2 = 0 ;
13328 int res2 = 0 ;
13329 PyObject * obj0 = 0 ;
13330 PyObject * obj1 = 0 ;
13331 char * kwnames[] = {
13332 (char *) "self",(char *) "parent", NULL
13333 };
13334
13335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13337 if (!SWIG_IsOK(res1)) {
13338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13339 }
13340 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13341 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13342 if (!SWIG_IsOK(res2)) {
13343 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13344 }
13345 arg2 = reinterpret_cast< wxWindow * >(argp2);
13346 {
13347 PyThreadState* __tstate = wxPyBeginAllowThreads();
13348 (arg1)->SetDialogParent(arg2);
13349 wxPyEndAllowThreads(__tstate);
13350 if (PyErr_Occurred()) SWIG_fail;
13351 }
13352 resultobj = SWIG_Py_Void();
13353 return resultobj;
13354fail:
13355 return NULL;
13356}
13357
13358
13359SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13360 PyObject *resultobj = 0;
13361 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13362 wxString *arg2 = 0 ;
13363 void *argp1 = 0 ;
13364 int res1 = 0 ;
13365 bool temp2 = false ;
13366 PyObject * obj0 = 0 ;
13367 PyObject * obj1 = 0 ;
13368 char * kwnames[] = {
13369 (char *) "self",(char *) "title", NULL
13370 };
13371
13372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13374 if (!SWIG_IsOK(res1)) {
13375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13376 }
13377 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13378 {
13379 arg2 = wxString_in_helper(obj1);
13380 if (arg2 == NULL) SWIG_fail;
13381 temp2 = true;
13382 }
13383 {
13384 PyThreadState* __tstate = wxPyBeginAllowThreads();
13385 (arg1)->SetDialogTitle((wxString const &)*arg2);
13386 wxPyEndAllowThreads(__tstate);
13387 if (PyErr_Occurred()) SWIG_fail;
13388 }
13389 resultobj = SWIG_Py_Void();
13390 {
13391 if (temp2)
13392 delete arg2;
13393 }
13394 return resultobj;
13395fail:
13396 {
13397 if (temp2)
13398 delete arg2;
13399 }
13400 return NULL;
13401}
13402
13403
13404SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13405 PyObject *obj;
13406 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13407 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13408 return SWIG_Py_Void();
13409}
13410
13411SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13412 return SWIG_Python_InitShadowInstance(args);
13413}
13414
13415SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13416 PyObject *resultobj = 0;
13417 int arg1 ;
13418 int arg2 ;
13419 int arg3 ;
13420 int arg4 ;
13421 bool arg5 = (bool) false ;
13422 wxString const &arg6_defvalue = wxPyEmptyString ;
13423 wxString *arg6 = (wxString *) &arg6_defvalue ;
13424 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13425 wxFont *result = 0 ;
13426 int val1 ;
13427 int ecode1 = 0 ;
13428 int val2 ;
13429 int ecode2 = 0 ;
13430 int val3 ;
13431 int ecode3 = 0 ;
13432 int val4 ;
13433 int ecode4 = 0 ;
13434 bool val5 ;
13435 int ecode5 = 0 ;
13436 bool temp6 = false ;
13437 int val7 ;
13438 int ecode7 = 0 ;
13439 PyObject * obj0 = 0 ;
13440 PyObject * obj1 = 0 ;
13441 PyObject * obj2 = 0 ;
13442 PyObject * obj3 = 0 ;
13443 PyObject * obj4 = 0 ;
13444 PyObject * obj5 = 0 ;
13445 PyObject * obj6 = 0 ;
13446 char * kwnames[] = {
13447 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13448 };
13449
13450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13451 ecode1 = SWIG_AsVal_int(obj0, &val1);
13452 if (!SWIG_IsOK(ecode1)) {
13453 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13454 }
13455 arg1 = static_cast< int >(val1);
13456 ecode2 = SWIG_AsVal_int(obj1, &val2);
13457 if (!SWIG_IsOK(ecode2)) {
13458 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13459 }
13460 arg2 = static_cast< int >(val2);
13461 ecode3 = SWIG_AsVal_int(obj2, &val3);
13462 if (!SWIG_IsOK(ecode3)) {
13463 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13464 }
13465 arg3 = static_cast< int >(val3);
13466 ecode4 = SWIG_AsVal_int(obj3, &val4);
13467 if (!SWIG_IsOK(ecode4)) {
13468 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13469 }
13470 arg4 = static_cast< int >(val4);
13471 if (obj4) {
13472 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13473 if (!SWIG_IsOK(ecode5)) {
13474 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13475 }
13476 arg5 = static_cast< bool >(val5);
13477 }
13478 if (obj5) {
093d3ff1 13479 {
0085ce49
RD
13480 arg6 = wxString_in_helper(obj5);
13481 if (arg6 == NULL) SWIG_fail;
13482 temp6 = true;
093d3ff1 13483 }
0085ce49
RD
13484 }
13485 if (obj6) {
13486 ecode7 = SWIG_AsVal_int(obj6, &val7);
13487 if (!SWIG_IsOK(ecode7)) {
13488 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13489 }
13490 arg7 = static_cast< wxFontEncoding >(val7);
13491 }
13492 {
13493 if (!wxPyCheckForApp()) SWIG_fail;
13494 PyThreadState* __tstate = wxPyBeginAllowThreads();
13495 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13496 wxPyEndAllowThreads(__tstate);
13497 if (PyErr_Occurred()) SWIG_fail;
13498 }
13499 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
13500 {
13501 if (temp6)
13502 delete arg6;
13503 }
13504 return resultobj;
13505fail:
13506 {
13507 if (temp6)
13508 delete arg6;
13509 }
13510 return NULL;
d14a1e28
RD
13511}
13512
13513
0085ce49
RD
13514SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13515 PyObject *resultobj = 0;
13516 wxFont *arg1 = (wxFont *) 0 ;
13517 void *argp1 = 0 ;
13518 int res1 = 0 ;
13519 PyObject *swig_obj[1] ;
13520
13521 if (!args) SWIG_fail;
13522 swig_obj[0] = args;
13523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
13524 if (!SWIG_IsOK(res1)) {
13525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
13526 }
13527 arg1 = reinterpret_cast< wxFont * >(argp1);
13528 {
13529 PyThreadState* __tstate = wxPyBeginAllowThreads();
13530 delete arg1;
d14a1e28 13531
0085ce49
RD
13532 wxPyEndAllowThreads(__tstate);
13533 if (PyErr_Occurred()) SWIG_fail;
13534 }
13535 resultobj = SWIG_Py_Void();
13536 return resultobj;
13537fail:
13538 return NULL;
13539}
13540
13541
13542SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13543 PyObject *resultobj = 0;
13544 wxNativeFontInfo *arg1 = 0 ;
13545 wxFont *result = 0 ;
13546 void *argp1 = 0 ;
13547 int res1 = 0 ;
13548 PyObject * obj0 = 0 ;
13549 char * kwnames[] = {
13550 (char *) "info", NULL
13551 };
13552
13553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
13554 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13555 if (!SWIG_IsOK(res1)) {
13556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13557 }
13558 if (!argp1) {
13559 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13560 }
13561 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13562 {
13563 if (!wxPyCheckForApp()) SWIG_fail;
13564 PyThreadState* __tstate = wxPyBeginAllowThreads();
13565 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
13566 wxPyEndAllowThreads(__tstate);
13567 if (PyErr_Occurred()) SWIG_fail;
13568 }
13569 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13570 return resultobj;
13571fail:
13572 return NULL;
d14a1e28
RD
13573}
13574
13575
0085ce49
RD
13576SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13577 PyObject *resultobj = 0;
13578 wxString *arg1 = 0 ;
13579 wxFont *result = 0 ;
13580 bool temp1 = false ;
13581 PyObject * obj0 = 0 ;
13582 char * kwnames[] = {
13583 (char *) "info", NULL
13584 };
13585
13586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
13587 {
13588 arg1 = wxString_in_helper(obj0);
13589 if (arg1 == NULL) SWIG_fail;
13590 temp1 = true;
13591 }
13592 {
13593 if (!wxPyCheckForApp()) SWIG_fail;
13594 PyThreadState* __tstate = wxPyBeginAllowThreads();
13595 result = (wxFont *)new_wxFont((wxString const &)*arg1);
13596 wxPyEndAllowThreads(__tstate);
13597 if (PyErr_Occurred()) SWIG_fail;
13598 }
13599 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13600 {
13601 if (temp1)
13602 delete arg1;
13603 }
13604 return resultobj;
13605fail:
13606 {
13607 if (temp1)
13608 delete arg1;
13609 }
13610 return NULL;
13611}
13612
13613
13614SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13615 PyObject *resultobj = 0;
13616 int arg1 ;
13617 wxFontFamily arg2 ;
13618 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13619 wxString const &arg4_defvalue = wxPyEmptyString ;
13620 wxString *arg4 = (wxString *) &arg4_defvalue ;
13621 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13622 wxFont *result = 0 ;
13623 int val1 ;
13624 int ecode1 = 0 ;
13625 int val2 ;
13626 int ecode2 = 0 ;
13627 int val3 ;
13628 int ecode3 = 0 ;
13629 bool temp4 = false ;
13630 int val5 ;
13631 int ecode5 = 0 ;
13632 PyObject * obj0 = 0 ;
13633 PyObject * obj1 = 0 ;
13634 PyObject * obj2 = 0 ;
13635 PyObject * obj3 = 0 ;
13636 PyObject * obj4 = 0 ;
13637 char * kwnames[] = {
13638 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13639 };
13640
13641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13642 ecode1 = SWIG_AsVal_int(obj0, &val1);
13643 if (!SWIG_IsOK(ecode1)) {
13644 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
13645 }
13646 arg1 = static_cast< int >(val1);
13647 ecode2 = SWIG_AsVal_int(obj1, &val2);
13648 if (!SWIG_IsOK(ecode2)) {
13649 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
13650 }
13651 arg2 = static_cast< wxFontFamily >(val2);
13652 if (obj2) {
13653 ecode3 = SWIG_AsVal_int(obj2, &val3);
13654 if (!SWIG_IsOK(ecode3)) {
13655 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
13656 }
13657 arg3 = static_cast< int >(val3);
13658 }
13659 if (obj3) {
093d3ff1 13660 {
0085ce49
RD
13661 arg4 = wxString_in_helper(obj3);
13662 if (arg4 == NULL) SWIG_fail;
13663 temp4 = true;
093d3ff1 13664 }
0085ce49
RD
13665 }
13666 if (obj4) {
13667 ecode5 = SWIG_AsVal_int(obj4, &val5);
13668 if (!SWIG_IsOK(ecode5)) {
13669 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13670 }
13671 arg5 = static_cast< wxFontEncoding >(val5);
13672 }
13673 {
13674 if (!wxPyCheckForApp()) SWIG_fail;
13675 PyThreadState* __tstate = wxPyBeginAllowThreads();
13676 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13677 wxPyEndAllowThreads(__tstate);
13678 if (PyErr_Occurred()) SWIG_fail;
13679 }
13680 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13681 {
13682 if (temp4)
13683 delete arg4;
13684 }
13685 return resultobj;
13686fail:
13687 {
13688 if (temp4)
13689 delete arg4;
13690 }
13691 return NULL;
13692}
13693
13694
13695SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13696 PyObject *resultobj = 0;
13697 wxSize *arg1 = 0 ;
13698 int arg2 ;
13699 int arg3 ;
13700 int arg4 ;
13701 bool arg5 = (bool) false ;
13702 wxString const &arg6_defvalue = wxEmptyString ;
13703 wxString *arg6 = (wxString *) &arg6_defvalue ;
13704 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13705 wxFont *result = 0 ;
13706 wxSize temp1 ;
13707 int val2 ;
13708 int ecode2 = 0 ;
13709 int val3 ;
13710 int ecode3 = 0 ;
13711 int val4 ;
13712 int ecode4 = 0 ;
13713 bool val5 ;
13714 int ecode5 = 0 ;
13715 bool temp6 = false ;
13716 int val7 ;
13717 int ecode7 = 0 ;
13718 PyObject * obj0 = 0 ;
13719 PyObject * obj1 = 0 ;
13720 PyObject * obj2 = 0 ;
13721 PyObject * obj3 = 0 ;
13722 PyObject * obj4 = 0 ;
13723 PyObject * obj5 = 0 ;
13724 PyObject * obj6 = 0 ;
13725 char * kwnames[] = {
13726 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
13727 };
13728
13729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13730 {
13731 arg1 = &temp1;
13732 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
13733 }
13734 ecode2 = SWIG_AsVal_int(obj1, &val2);
13735 if (!SWIG_IsOK(ecode2)) {
13736 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
13737 }
13738 arg2 = static_cast< int >(val2);
13739 ecode3 = SWIG_AsVal_int(obj2, &val3);
13740 if (!SWIG_IsOK(ecode3)) {
13741 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
13742 }
13743 arg3 = static_cast< int >(val3);
13744 ecode4 = SWIG_AsVal_int(obj3, &val4);
13745 if (!SWIG_IsOK(ecode4)) {
13746 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
13747 }
13748 arg4 = static_cast< int >(val4);
13749 if (obj4) {
13750 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13751 if (!SWIG_IsOK(ecode5)) {
13752 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
13753 }
13754 arg5 = static_cast< bool >(val5);
13755 }
13756 if (obj5) {
d14a1e28 13757 {
0085ce49
RD
13758 arg6 = wxString_in_helper(obj5);
13759 if (arg6 == NULL) SWIG_fail;
13760 temp6 = true;
d14a1e28 13761 }
0085ce49
RD
13762 }
13763 if (obj6) {
13764 ecode7 = SWIG_AsVal_int(obj6, &val7);
13765 if (!SWIG_IsOK(ecode7)) {
13766 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13767 }
13768 arg7 = static_cast< wxFontEncoding >(val7);
13769 }
13770 {
13771 if (!wxPyCheckForApp()) SWIG_fail;
13772 PyThreadState* __tstate = wxPyBeginAllowThreads();
13773 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13774 wxPyEndAllowThreads(__tstate);
13775 if (PyErr_Occurred()) SWIG_fail;
13776 }
13777 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13778 {
13779 if (temp6)
13780 delete arg6;
13781 }
13782 return resultobj;
13783fail:
13784 {
13785 if (temp6)
13786 delete arg6;
13787 }
13788 return NULL;
13789}
13790
13791
13792SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13793 PyObject *resultobj = 0;
13794 wxSize *arg1 = 0 ;
13795 wxFontFamily arg2 ;
13796 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13797 wxString const &arg4_defvalue = wxEmptyString ;
13798 wxString *arg4 = (wxString *) &arg4_defvalue ;
13799 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13800 wxFont *result = 0 ;
13801 wxSize temp1 ;
13802 int val2 ;
13803 int ecode2 = 0 ;
13804 int val3 ;
13805 int ecode3 = 0 ;
13806 bool temp4 = false ;
13807 int val5 ;
13808 int ecode5 = 0 ;
13809 PyObject * obj0 = 0 ;
13810 PyObject * obj1 = 0 ;
13811 PyObject * obj2 = 0 ;
13812 PyObject * obj3 = 0 ;
13813 PyObject * obj4 = 0 ;
13814 char * kwnames[] = {
13815 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13816 };
13817
13818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13819 {
13820 arg1 = &temp1;
13821 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
13822 }
13823 ecode2 = SWIG_AsVal_int(obj1, &val2);
13824 if (!SWIG_IsOK(ecode2)) {
13825 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
13826 }
13827 arg2 = static_cast< wxFontFamily >(val2);
13828 if (obj2) {
13829 ecode3 = SWIG_AsVal_int(obj2, &val3);
13830 if (!SWIG_IsOK(ecode3)) {
13831 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
13832 }
13833 arg3 = static_cast< int >(val3);
13834 }
13835 if (obj3) {
093d3ff1 13836 {
0085ce49
RD
13837 arg4 = wxString_in_helper(obj3);
13838 if (arg4 == NULL) SWIG_fail;
13839 temp4 = true;
093d3ff1 13840 }
0085ce49
RD
13841 }
13842 if (obj4) {
13843 ecode5 = SWIG_AsVal_int(obj4, &val5);
13844 if (!SWIG_IsOK(ecode5)) {
13845 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13846 }
13847 arg5 = static_cast< wxFontEncoding >(val5);
13848 }
13849 {
13850 if (!wxPyCheckForApp()) SWIG_fail;
13851 PyThreadState* __tstate = wxPyBeginAllowThreads();
13852 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13853 wxPyEndAllowThreads(__tstate);
13854 if (PyErr_Occurred()) SWIG_fail;
13855 }
13856 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13857 {
13858 if (temp4)
13859 delete arg4;
13860 }
13861 return resultobj;
13862fail:
13863 {
13864 if (temp4)
13865 delete arg4;
13866 }
13867 return NULL;
d14a1e28
RD
13868}
13869
13870
b39fe951 13871SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
13872 PyObject *resultobj = 0;
13873 wxFont *arg1 = (wxFont *) 0 ;
13874 bool result;
13875 void *argp1 = 0 ;
13876 int res1 = 0 ;
13877 PyObject *swig_obj[1] ;
13878
13879 if (!args) SWIG_fail;
13880 swig_obj[0] = args;
13881 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13882 if (!SWIG_IsOK(res1)) {
b39fe951 13883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
0085ce49
RD
13884 }
13885 arg1 = reinterpret_cast< wxFont * >(argp1);
13886 {
13887 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 13888 result = (bool)((wxFont const *)arg1)->IsOk();
0085ce49
RD
13889 wxPyEndAllowThreads(__tstate);
13890 if (PyErr_Occurred()) SWIG_fail;
13891 }
13892 {
13893 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13894 }
13895 return resultobj;
13896fail:
13897 return NULL;
13898}
13899
13900
13901SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13902 PyObject *resultobj = 0;
13903 wxFont *arg1 = (wxFont *) 0 ;
13904 wxFont *arg2 = (wxFont *) 0 ;
13905 bool result;
13906 void *argp1 = 0 ;
13907 int res1 = 0 ;
13908 void *argp2 = 0 ;
13909 int res2 = 0 ;
13910 PyObject * obj0 = 0 ;
13911 PyObject * obj1 = 0 ;
13912 char * kwnames[] = {
13913 (char *) "self",(char *) "other", NULL
13914 };
13915
13916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
13917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13918 if (!SWIG_IsOK(res1)) {
13919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
13920 }
13921 arg1 = reinterpret_cast< wxFont * >(argp1);
13922 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
13923 if (!SWIG_IsOK(res2)) {
13924 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
13925 }
13926 arg2 = reinterpret_cast< wxFont * >(argp2);
13927 {
13928 PyThreadState* __tstate = wxPyBeginAllowThreads();
13929 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
13930 wxPyEndAllowThreads(__tstate);
13931 if (PyErr_Occurred()) SWIG_fail;
13932 }
13933 {
13934 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13935 }
13936 return resultobj;
13937fail:
13938 return NULL;
13939}
13940
13941
13942SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13943 PyObject *resultobj = 0;
13944 wxFont *arg1 = (wxFont *) 0 ;
13945 wxFont *arg2 = (wxFont *) 0 ;
13946 bool result;
13947 void *argp1 = 0 ;
13948 int res1 = 0 ;
13949 void *argp2 = 0 ;
13950 int res2 = 0 ;
13951 PyObject * obj0 = 0 ;
13952 PyObject * obj1 = 0 ;
13953 char * kwnames[] = {
13954 (char *) "self",(char *) "other", NULL
13955 };
13956
13957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
13958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13959 if (!SWIG_IsOK(res1)) {
13960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
13961 }
13962 arg1 = reinterpret_cast< wxFont * >(argp1);
13963 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
13964 if (!SWIG_IsOK(res2)) {
13965 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
13966 }
13967 arg2 = reinterpret_cast< wxFont * >(argp2);
13968 {
13969 PyThreadState* __tstate = wxPyBeginAllowThreads();
13970 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
13971 wxPyEndAllowThreads(__tstate);
13972 if (PyErr_Occurred()) SWIG_fail;
13973 }
13974 {
13975 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13976 }
13977 return resultobj;
13978fail:
13979 return NULL;
d14a1e28
RD
13980}
13981
13982
0085ce49
RD
13983SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13984 PyObject *resultobj = 0;
13985 wxFont *arg1 = (wxFont *) 0 ;
13986 int result;
13987 void *argp1 = 0 ;
13988 int res1 = 0 ;
13989 PyObject *swig_obj[1] ;
13990
13991 if (!args) SWIG_fail;
13992 swig_obj[0] = args;
13993 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13994 if (!SWIG_IsOK(res1)) {
13995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
13996 }
13997 arg1 = reinterpret_cast< wxFont * >(argp1);
13998 {
13999 PyThreadState* __tstate = wxPyBeginAllowThreads();
14000 result = (int)((wxFont const *)arg1)->GetPointSize();
14001 wxPyEndAllowThreads(__tstate);
14002 if (PyErr_Occurred()) SWIG_fail;
14003 }
14004 resultobj = SWIG_From_int(static_cast< int >(result));
14005 return resultobj;
14006fail:
14007 return NULL;
d14a1e28
RD
14008}
14009
14010
0085ce49
RD
14011SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14012 PyObject *resultobj = 0;
14013 wxFont *arg1 = (wxFont *) 0 ;
14014 wxSize result;
14015 void *argp1 = 0 ;
14016 int res1 = 0 ;
14017 PyObject *swig_obj[1] ;
14018
14019 if (!args) SWIG_fail;
14020 swig_obj[0] = args;
14021 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14022 if (!SWIG_IsOK(res1)) {
14023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14024 }
14025 arg1 = reinterpret_cast< wxFont * >(argp1);
14026 {
14027 PyThreadState* __tstate = wxPyBeginAllowThreads();
14028 result = ((wxFont const *)arg1)->GetPixelSize();
14029 wxPyEndAllowThreads(__tstate);
14030 if (PyErr_Occurred()) SWIG_fail;
14031 }
14032 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14033 return resultobj;
14034fail:
14035 return NULL;
d14a1e28
RD
14036}
14037
14038
0085ce49
RD
14039SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14040 PyObject *resultobj = 0;
14041 wxFont *arg1 = (wxFont *) 0 ;
14042 bool result;
14043 void *argp1 = 0 ;
14044 int res1 = 0 ;
14045 PyObject *swig_obj[1] ;
14046
14047 if (!args) SWIG_fail;
14048 swig_obj[0] = args;
14049 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14050 if (!SWIG_IsOK(res1)) {
14051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14052 }
14053 arg1 = reinterpret_cast< wxFont * >(argp1);
14054 {
14055 PyThreadState* __tstate = wxPyBeginAllowThreads();
14056 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14057 wxPyEndAllowThreads(__tstate);
14058 if (PyErr_Occurred()) SWIG_fail;
14059 }
14060 {
14061 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14062 }
14063 return resultobj;
14064fail:
14065 return NULL;
d14a1e28
RD
14066}
14067
14068
0085ce49
RD
14069SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14070 PyObject *resultobj = 0;
14071 wxFont *arg1 = (wxFont *) 0 ;
14072 int result;
14073 void *argp1 = 0 ;
14074 int res1 = 0 ;
14075 PyObject *swig_obj[1] ;
14076
14077 if (!args) SWIG_fail;
14078 swig_obj[0] = args;
14079 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14080 if (!SWIG_IsOK(res1)) {
14081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14082 }
14083 arg1 = reinterpret_cast< wxFont * >(argp1);
14084 {
14085 PyThreadState* __tstate = wxPyBeginAllowThreads();
14086 result = (int)((wxFont const *)arg1)->GetFamily();
14087 wxPyEndAllowThreads(__tstate);
14088 if (PyErr_Occurred()) SWIG_fail;
14089 }
14090 resultobj = SWIG_From_int(static_cast< int >(result));
14091 return resultobj;
14092fail:
14093 return NULL;
d14a1e28
RD
14094}
14095
14096
0085ce49
RD
14097SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14098 PyObject *resultobj = 0;
14099 wxFont *arg1 = (wxFont *) 0 ;
14100 int result;
14101 void *argp1 = 0 ;
14102 int res1 = 0 ;
14103 PyObject *swig_obj[1] ;
14104
14105 if (!args) SWIG_fail;
14106 swig_obj[0] = args;
14107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14108 if (!SWIG_IsOK(res1)) {
14109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14110 }
14111 arg1 = reinterpret_cast< wxFont * >(argp1);
14112 {
14113 PyThreadState* __tstate = wxPyBeginAllowThreads();
14114 result = (int)((wxFont const *)arg1)->GetStyle();
14115 wxPyEndAllowThreads(__tstate);
14116 if (PyErr_Occurred()) SWIG_fail;
14117 }
14118 resultobj = SWIG_From_int(static_cast< int >(result));
14119 return resultobj;
14120fail:
14121 return NULL;
d14a1e28
RD
14122}
14123
14124
0085ce49
RD
14125SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14126 PyObject *resultobj = 0;
14127 wxFont *arg1 = (wxFont *) 0 ;
14128 int result;
14129 void *argp1 = 0 ;
14130 int res1 = 0 ;
14131 PyObject *swig_obj[1] ;
14132
14133 if (!args) SWIG_fail;
14134 swig_obj[0] = args;
14135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14136 if (!SWIG_IsOK(res1)) {
14137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14138 }
14139 arg1 = reinterpret_cast< wxFont * >(argp1);
14140 {
14141 PyThreadState* __tstate = wxPyBeginAllowThreads();
14142 result = (int)((wxFont const *)arg1)->GetWeight();
14143 wxPyEndAllowThreads(__tstate);
14144 if (PyErr_Occurred()) SWIG_fail;
14145 }
14146 resultobj = SWIG_From_int(static_cast< int >(result));
14147 return resultobj;
14148fail:
14149 return NULL;
d14a1e28
RD
14150}
14151
14152
0085ce49
RD
14153SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14154 PyObject *resultobj = 0;
14155 wxFont *arg1 = (wxFont *) 0 ;
14156 bool result;
14157 void *argp1 = 0 ;
14158 int res1 = 0 ;
14159 PyObject *swig_obj[1] ;
14160
14161 if (!args) SWIG_fail;
14162 swig_obj[0] = args;
14163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14164 if (!SWIG_IsOK(res1)) {
14165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14166 }
14167 arg1 = reinterpret_cast< wxFont * >(argp1);
14168 {
14169 PyThreadState* __tstate = wxPyBeginAllowThreads();
14170 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14171 wxPyEndAllowThreads(__tstate);
14172 if (PyErr_Occurred()) SWIG_fail;
14173 }
14174 {
14175 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14176 }
14177 return resultobj;
14178fail:
14179 return NULL;
d14a1e28
RD
14180}
14181
14182
0085ce49
RD
14183SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14184 PyObject *resultobj = 0;
14185 wxFont *arg1 = (wxFont *) 0 ;
14186 wxString result;
14187 void *argp1 = 0 ;
14188 int res1 = 0 ;
14189 PyObject *swig_obj[1] ;
14190
14191 if (!args) SWIG_fail;
14192 swig_obj[0] = args;
14193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14194 if (!SWIG_IsOK(res1)) {
14195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14196 }
14197 arg1 = reinterpret_cast< wxFont * >(argp1);
14198 {
14199 PyThreadState* __tstate = wxPyBeginAllowThreads();
14200 result = ((wxFont const *)arg1)->GetFaceName();
14201 wxPyEndAllowThreads(__tstate);
14202 if (PyErr_Occurred()) SWIG_fail;
14203 }
14204 {
14205#if wxUSE_UNICODE
14206 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14207#else
14208 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14209#endif
14210 }
14211 return resultobj;
14212fail:
14213 return NULL;
d14a1e28
RD
14214}
14215
14216
0085ce49
RD
14217SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14218 PyObject *resultobj = 0;
14219 wxFont *arg1 = (wxFont *) 0 ;
14220 wxFontEncoding result;
14221 void *argp1 = 0 ;
14222 int res1 = 0 ;
14223 PyObject *swig_obj[1] ;
14224
14225 if (!args) SWIG_fail;
14226 swig_obj[0] = args;
14227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14228 if (!SWIG_IsOK(res1)) {
14229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14230 }
14231 arg1 = reinterpret_cast< wxFont * >(argp1);
14232 {
14233 PyThreadState* __tstate = wxPyBeginAllowThreads();
14234 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14235 wxPyEndAllowThreads(__tstate);
14236 if (PyErr_Occurred()) SWIG_fail;
14237 }
14238 resultobj = SWIG_From_int(static_cast< int >(result));
14239 return resultobj;
14240fail:
14241 return NULL;
d14a1e28
RD
14242}
14243
14244
0085ce49
RD
14245SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14246 PyObject *resultobj = 0;
14247 wxFont *arg1 = (wxFont *) 0 ;
14248 wxNativeFontInfo *result = 0 ;
14249 void *argp1 = 0 ;
14250 int res1 = 0 ;
14251 PyObject *swig_obj[1] ;
14252
14253 if (!args) SWIG_fail;
14254 swig_obj[0] = args;
14255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14256 if (!SWIG_IsOK(res1)) {
14257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14258 }
14259 arg1 = reinterpret_cast< wxFont * >(argp1);
14260 {
14261 PyThreadState* __tstate = wxPyBeginAllowThreads();
14262 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14263 wxPyEndAllowThreads(__tstate);
14264 if (PyErr_Occurred()) SWIG_fail;
14265 }
14266 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14267 return resultobj;
14268fail:
14269 return NULL;
d14a1e28
RD
14270}
14271
14272
0085ce49
RD
14273SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14274 PyObject *resultobj = 0;
14275 wxFont *arg1 = (wxFont *) 0 ;
14276 bool result;
14277 void *argp1 = 0 ;
14278 int res1 = 0 ;
14279 PyObject *swig_obj[1] ;
14280
14281 if (!args) SWIG_fail;
14282 swig_obj[0] = args;
14283 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14284 if (!SWIG_IsOK(res1)) {
14285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14286 }
14287 arg1 = reinterpret_cast< wxFont * >(argp1);
14288 {
14289 PyThreadState* __tstate = wxPyBeginAllowThreads();
14290 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14291 wxPyEndAllowThreads(__tstate);
14292 if (PyErr_Occurred()) SWIG_fail;
14293 }
14294 {
14295 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14296 }
14297 return resultobj;
14298fail:
14299 return NULL;
d14a1e28
RD
14300}
14301
14302
0085ce49
RD
14303SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14304 PyObject *resultobj = 0;
14305 wxFont *arg1 = (wxFont *) 0 ;
14306 wxString result;
14307 void *argp1 = 0 ;
14308 int res1 = 0 ;
14309 PyObject *swig_obj[1] ;
14310
14311 if (!args) SWIG_fail;
14312 swig_obj[0] = args;
14313 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14314 if (!SWIG_IsOK(res1)) {
14315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14316 }
14317 arg1 = reinterpret_cast< wxFont * >(argp1);
14318 {
14319 PyThreadState* __tstate = wxPyBeginAllowThreads();
14320 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14321 wxPyEndAllowThreads(__tstate);
14322 if (PyErr_Occurred()) SWIG_fail;
14323 }
14324 {
14325#if wxUSE_UNICODE
14326 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14327#else
14328 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14329#endif
14330 }
14331 return resultobj;
14332fail:
14333 return NULL;
d14a1e28
RD
14334}
14335
14336
0085ce49
RD
14337SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14338 PyObject *resultobj = 0;
14339 wxFont *arg1 = (wxFont *) 0 ;
14340 wxString result;
14341 void *argp1 = 0 ;
14342 int res1 = 0 ;
14343 PyObject *swig_obj[1] ;
14344
14345 if (!args) SWIG_fail;
14346 swig_obj[0] = args;
14347 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14348 if (!SWIG_IsOK(res1)) {
14349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14350 }
14351 arg1 = reinterpret_cast< wxFont * >(argp1);
14352 {
14353 PyThreadState* __tstate = wxPyBeginAllowThreads();
14354 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14355 wxPyEndAllowThreads(__tstate);
14356 if (PyErr_Occurred()) SWIG_fail;
14357 }
14358 {
14359#if wxUSE_UNICODE
14360 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14361#else
14362 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14363#endif
14364 }
14365 return resultobj;
14366fail:
14367 return NULL;
14368}
14369
14370
14371SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14372 PyObject *resultobj = 0;
14373 wxFont *arg1 = (wxFont *) 0 ;
14374 int arg2 ;
14375 void *argp1 = 0 ;
14376 int res1 = 0 ;
14377 int val2 ;
14378 int ecode2 = 0 ;
14379 PyObject * obj0 = 0 ;
14380 PyObject * obj1 = 0 ;
14381 char * kwnames[] = {
14382 (char *) "self",(char *) "pointSize", NULL
14383 };
14384
14385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14387 if (!SWIG_IsOK(res1)) {
14388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14389 }
14390 arg1 = reinterpret_cast< wxFont * >(argp1);
14391 ecode2 = SWIG_AsVal_int(obj1, &val2);
14392 if (!SWIG_IsOK(ecode2)) {
14393 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14394 }
14395 arg2 = static_cast< int >(val2);
14396 {
14397 PyThreadState* __tstate = wxPyBeginAllowThreads();
14398 (arg1)->SetPointSize(arg2);
14399 wxPyEndAllowThreads(__tstate);
14400 if (PyErr_Occurred()) SWIG_fail;
14401 }
14402 resultobj = SWIG_Py_Void();
14403 return resultobj;
14404fail:
14405 return NULL;
14406}
14407
14408
14409SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14410 PyObject *resultobj = 0;
14411 wxFont *arg1 = (wxFont *) 0 ;
14412 wxSize *arg2 = 0 ;
14413 void *argp1 = 0 ;
14414 int res1 = 0 ;
14415 wxSize temp2 ;
14416 PyObject * obj0 = 0 ;
14417 PyObject * obj1 = 0 ;
14418 char * kwnames[] = {
14419 (char *) "self",(char *) "pixelSize", NULL
14420 };
14421
14422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14424 if (!SWIG_IsOK(res1)) {
14425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14426 }
14427 arg1 = reinterpret_cast< wxFont * >(argp1);
14428 {
14429 arg2 = &temp2;
14430 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14431 }
14432 {
14433 PyThreadState* __tstate = wxPyBeginAllowThreads();
14434 (arg1)->SetPixelSize((wxSize const &)*arg2);
14435 wxPyEndAllowThreads(__tstate);
14436 if (PyErr_Occurred()) SWIG_fail;
14437 }
14438 resultobj = SWIG_Py_Void();
14439 return resultobj;
14440fail:
14441 return NULL;
14442}
14443
14444
14445SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14446 PyObject *resultobj = 0;
14447 wxFont *arg1 = (wxFont *) 0 ;
14448 int arg2 ;
14449 void *argp1 = 0 ;
14450 int res1 = 0 ;
14451 int val2 ;
14452 int ecode2 = 0 ;
14453 PyObject * obj0 = 0 ;
14454 PyObject * obj1 = 0 ;
14455 char * kwnames[] = {
14456 (char *) "self",(char *) "family", NULL
14457 };
14458
14459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14461 if (!SWIG_IsOK(res1)) {
14462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14463 }
14464 arg1 = reinterpret_cast< wxFont * >(argp1);
14465 ecode2 = SWIG_AsVal_int(obj1, &val2);
14466 if (!SWIG_IsOK(ecode2)) {
14467 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14468 }
14469 arg2 = static_cast< int >(val2);
14470 {
14471 PyThreadState* __tstate = wxPyBeginAllowThreads();
14472 (arg1)->SetFamily(arg2);
14473 wxPyEndAllowThreads(__tstate);
14474 if (PyErr_Occurred()) SWIG_fail;
14475 }
14476 resultobj = SWIG_Py_Void();
14477 return resultobj;
14478fail:
14479 return NULL;
14480}
14481
14482
14483SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14484 PyObject *resultobj = 0;
14485 wxFont *arg1 = (wxFont *) 0 ;
14486 int arg2 ;
14487 void *argp1 = 0 ;
14488 int res1 = 0 ;
14489 int val2 ;
14490 int ecode2 = 0 ;
14491 PyObject * obj0 = 0 ;
14492 PyObject * obj1 = 0 ;
14493 char * kwnames[] = {
14494 (char *) "self",(char *) "style", NULL
14495 };
14496
14497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
14498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14499 if (!SWIG_IsOK(res1)) {
14500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
14501 }
14502 arg1 = reinterpret_cast< wxFont * >(argp1);
14503 ecode2 = SWIG_AsVal_int(obj1, &val2);
14504 if (!SWIG_IsOK(ecode2)) {
14505 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
14506 }
14507 arg2 = static_cast< int >(val2);
14508 {
14509 PyThreadState* __tstate = wxPyBeginAllowThreads();
14510 (arg1)->SetStyle(arg2);
14511 wxPyEndAllowThreads(__tstate);
14512 if (PyErr_Occurred()) SWIG_fail;
14513 }
14514 resultobj = SWIG_Py_Void();
14515 return resultobj;
14516fail:
14517 return NULL;
14518}
14519
14520
14521SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14522 PyObject *resultobj = 0;
14523 wxFont *arg1 = (wxFont *) 0 ;
14524 int arg2 ;
14525 void *argp1 = 0 ;
14526 int res1 = 0 ;
14527 int val2 ;
14528 int ecode2 = 0 ;
14529 PyObject * obj0 = 0 ;
14530 PyObject * obj1 = 0 ;
14531 char * kwnames[] = {
14532 (char *) "self",(char *) "weight", NULL
14533 };
14534
14535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
14536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14537 if (!SWIG_IsOK(res1)) {
14538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
14539 }
14540 arg1 = reinterpret_cast< wxFont * >(argp1);
14541 ecode2 = SWIG_AsVal_int(obj1, &val2);
14542 if (!SWIG_IsOK(ecode2)) {
14543 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
14544 }
14545 arg2 = static_cast< int >(val2);
14546 {
14547 PyThreadState* __tstate = wxPyBeginAllowThreads();
14548 (arg1)->SetWeight(arg2);
14549 wxPyEndAllowThreads(__tstate);
14550 if (PyErr_Occurred()) SWIG_fail;
14551 }
14552 resultobj = SWIG_Py_Void();
14553 return resultobj;
14554fail:
14555 return NULL;
14556}
14557
14558
14559SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14560 PyObject *resultobj = 0;
14561 wxFont *arg1 = (wxFont *) 0 ;
14562 wxString *arg2 = 0 ;
704eda0c 14563 bool result;
0085ce49
RD
14564 void *argp1 = 0 ;
14565 int res1 = 0 ;
14566 bool temp2 = false ;
14567 PyObject * obj0 = 0 ;
14568 PyObject * obj1 = 0 ;
14569 char * kwnames[] = {
14570 (char *) "self",(char *) "faceName", NULL
14571 };
14572
14573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
14574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14575 if (!SWIG_IsOK(res1)) {
14576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
14577 }
14578 arg1 = reinterpret_cast< wxFont * >(argp1);
14579 {
14580 arg2 = wxString_in_helper(obj1);
14581 if (arg2 == NULL) SWIG_fail;
14582 temp2 = true;
14583 }
14584 {
14585 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 14586 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
0085ce49
RD
14587 wxPyEndAllowThreads(__tstate);
14588 if (PyErr_Occurred()) SWIG_fail;
14589 }
704eda0c
RD
14590 {
14591 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14592 }
0085ce49
RD
14593 {
14594 if (temp2)
14595 delete arg2;
14596 }
14597 return resultobj;
14598fail:
14599 {
14600 if (temp2)
14601 delete arg2;
14602 }
14603 return NULL;
14604}
14605
14606
14607SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14608 PyObject *resultobj = 0;
14609 wxFont *arg1 = (wxFont *) 0 ;
14610 bool arg2 ;
14611 void *argp1 = 0 ;
14612 int res1 = 0 ;
14613 bool val2 ;
14614 int ecode2 = 0 ;
14615 PyObject * obj0 = 0 ;
14616 PyObject * obj1 = 0 ;
14617 char * kwnames[] = {
14618 (char *) "self",(char *) "underlined", NULL
14619 };
14620
14621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
14622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14623 if (!SWIG_IsOK(res1)) {
14624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
14625 }
14626 arg1 = reinterpret_cast< wxFont * >(argp1);
14627 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14628 if (!SWIG_IsOK(ecode2)) {
14629 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
14630 }
14631 arg2 = static_cast< bool >(val2);
14632 {
14633 PyThreadState* __tstate = wxPyBeginAllowThreads();
14634 (arg1)->SetUnderlined(arg2);
14635 wxPyEndAllowThreads(__tstate);
14636 if (PyErr_Occurred()) SWIG_fail;
14637 }
14638 resultobj = SWIG_Py_Void();
14639 return resultobj;
14640fail:
14641 return NULL;
14642}
14643
14644
14645SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14646 PyObject *resultobj = 0;
14647 wxFont *arg1 = (wxFont *) 0 ;
14648 wxFontEncoding arg2 ;
14649 void *argp1 = 0 ;
14650 int res1 = 0 ;
14651 int val2 ;
14652 int ecode2 = 0 ;
14653 PyObject * obj0 = 0 ;
14654 PyObject * obj1 = 0 ;
14655 char * kwnames[] = {
14656 (char *) "self",(char *) "encoding", NULL
14657 };
14658
14659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
14660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14661 if (!SWIG_IsOK(res1)) {
14662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
14663 }
14664 arg1 = reinterpret_cast< wxFont * >(argp1);
14665 ecode2 = SWIG_AsVal_int(obj1, &val2);
14666 if (!SWIG_IsOK(ecode2)) {
14667 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14668 }
14669 arg2 = static_cast< wxFontEncoding >(val2);
14670 {
14671 PyThreadState* __tstate = wxPyBeginAllowThreads();
14672 (arg1)->SetEncoding(arg2);
14673 wxPyEndAllowThreads(__tstate);
14674 if (PyErr_Occurred()) SWIG_fail;
14675 }
14676 resultobj = SWIG_Py_Void();
14677 return resultobj;
14678fail:
14679 return NULL;
14680}
14681
14682
14683SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14684 PyObject *resultobj = 0;
14685 wxFont *arg1 = (wxFont *) 0 ;
14686 wxNativeFontInfo *arg2 = 0 ;
14687 void *argp1 = 0 ;
14688 int res1 = 0 ;
14689 void *argp2 = 0 ;
14690 int res2 = 0 ;
14691 PyObject * obj0 = 0 ;
14692 PyObject * obj1 = 0 ;
14693 char * kwnames[] = {
14694 (char *) "self",(char *) "info", NULL
14695 };
14696
14697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
14698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14699 if (!SWIG_IsOK(res1)) {
14700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
14701 }
14702 arg1 = reinterpret_cast< wxFont * >(argp1);
14703 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14704 if (!SWIG_IsOK(res2)) {
14705 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
14706 }
14707 if (!argp2) {
14708 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
14709 }
14710 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
14711 {
14712 PyThreadState* __tstate = wxPyBeginAllowThreads();
14713 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
14714 wxPyEndAllowThreads(__tstate);
14715 if (PyErr_Occurred()) SWIG_fail;
14716 }
14717 resultobj = SWIG_Py_Void();
14718 return resultobj;
14719fail:
14720 return NULL;
14721}
14722
14723
14724SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14725 PyObject *resultobj = 0;
14726 wxFont *arg1 = (wxFont *) 0 ;
14727 wxString *arg2 = 0 ;
704eda0c 14728 bool result;
0085ce49
RD
14729 void *argp1 = 0 ;
14730 int res1 = 0 ;
14731 bool temp2 = false ;
14732 PyObject * obj0 = 0 ;
14733 PyObject * obj1 = 0 ;
14734 char * kwnames[] = {
14735 (char *) "self",(char *) "info", NULL
14736 };
14737
14738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
14739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14740 if (!SWIG_IsOK(res1)) {
14741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
14742 }
14743 arg1 = reinterpret_cast< wxFont * >(argp1);
14744 {
14745 arg2 = wxString_in_helper(obj1);
14746 if (arg2 == NULL) SWIG_fail;
14747 temp2 = true;
14748 }
14749 {
14750 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 14751 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
0085ce49
RD
14752 wxPyEndAllowThreads(__tstate);
14753 if (PyErr_Occurred()) SWIG_fail;
14754 }
704eda0c
RD
14755 {
14756 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14757 }
0085ce49
RD
14758 {
14759 if (temp2)
14760 delete arg2;
14761 }
14762 return resultobj;
14763fail:
14764 {
14765 if (temp2)
14766 delete arg2;
14767 }
14768 return NULL;
d14a1e28
RD
14769}
14770
14771
0085ce49
RD
14772SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14773 PyObject *resultobj = 0;
14774 wxFont *arg1 = (wxFont *) 0 ;
14775 wxString *arg2 = 0 ;
704eda0c 14776 bool result;
0085ce49
RD
14777 void *argp1 = 0 ;
14778 int res1 = 0 ;
14779 bool temp2 = false ;
14780 PyObject * obj0 = 0 ;
14781 PyObject * obj1 = 0 ;
14782 char * kwnames[] = {
14783 (char *) "self",(char *) "info", NULL
14784 };
14785
14786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
14787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14788 if (!SWIG_IsOK(res1)) {
14789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
14790 }
14791 arg1 = reinterpret_cast< wxFont * >(argp1);
14792 {
14793 arg2 = wxString_in_helper(obj1);
14794 if (arg2 == NULL) SWIG_fail;
14795 temp2 = true;
14796 }
14797 {
14798 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 14799 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
0085ce49
RD
14800 wxPyEndAllowThreads(__tstate);
14801 if (PyErr_Occurred()) SWIG_fail;
14802 }
704eda0c
RD
14803 {
14804 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14805 }
0085ce49
RD
14806 {
14807 if (temp2)
14808 delete arg2;
14809 }
14810 return resultobj;
14811fail:
14812 {
14813 if (temp2)
14814 delete arg2;
14815 }
14816 return NULL;
d14a1e28
RD
14817}
14818
14819
0085ce49
RD
14820SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14821 PyObject *resultobj = 0;
14822 wxFont *arg1 = (wxFont *) 0 ;
14823 wxString result;
14824 void *argp1 = 0 ;
14825 int res1 = 0 ;
14826 PyObject *swig_obj[1] ;
14827
14828 if (!args) SWIG_fail;
14829 swig_obj[0] = args;
14830 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14831 if (!SWIG_IsOK(res1)) {
14832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
14833 }
14834 arg1 = reinterpret_cast< wxFont * >(argp1);
14835 {
14836 PyThreadState* __tstate = wxPyBeginAllowThreads();
14837 result = ((wxFont const *)arg1)->GetFamilyString();
14838 wxPyEndAllowThreads(__tstate);
14839 if (PyErr_Occurred()) SWIG_fail;
14840 }
14841 {
14842#if wxUSE_UNICODE
14843 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14844#else
14845 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14846#endif
14847 }
14848 return resultobj;
14849fail:
14850 return NULL;
d14a1e28
RD
14851}
14852
14853
0085ce49
RD
14854SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14855 PyObject *resultobj = 0;
14856 wxFont *arg1 = (wxFont *) 0 ;
14857 wxString result;
14858 void *argp1 = 0 ;
14859 int res1 = 0 ;
14860 PyObject *swig_obj[1] ;
14861
14862 if (!args) SWIG_fail;
14863 swig_obj[0] = args;
14864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14865 if (!SWIG_IsOK(res1)) {
14866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
14867 }
14868 arg1 = reinterpret_cast< wxFont * >(argp1);
14869 {
14870 PyThreadState* __tstate = wxPyBeginAllowThreads();
14871 result = ((wxFont const *)arg1)->GetStyleString();
14872 wxPyEndAllowThreads(__tstate);
14873 if (PyErr_Occurred()) SWIG_fail;
14874 }
14875 {
14876#if wxUSE_UNICODE
14877 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14878#else
14879 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14880#endif
14881 }
14882 return resultobj;
14883fail:
14884 return NULL;
d14a1e28
RD
14885}
14886
14887
0085ce49
RD
14888SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14889 PyObject *resultobj = 0;
14890 wxFont *arg1 = (wxFont *) 0 ;
14891 wxString result;
14892 void *argp1 = 0 ;
14893 int res1 = 0 ;
14894 PyObject *swig_obj[1] ;
14895
14896 if (!args) SWIG_fail;
14897 swig_obj[0] = args;
14898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14899 if (!SWIG_IsOK(res1)) {
14900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
14901 }
14902 arg1 = reinterpret_cast< wxFont * >(argp1);
14903 {
14904 PyThreadState* __tstate = wxPyBeginAllowThreads();
14905 result = ((wxFont const *)arg1)->GetWeightString();
14906 wxPyEndAllowThreads(__tstate);
14907 if (PyErr_Occurred()) SWIG_fail;
14908 }
14909 {
d14a1e28 14910#if wxUSE_UNICODE
0085ce49 14911 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d14a1e28 14912#else
0085ce49 14913 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d14a1e28 14914#endif
0085ce49
RD
14915 }
14916 return resultobj;
14917fail:
14918 return NULL;
14919}
14920
14921
14922SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14923 PyObject *resultobj = 0;
14924 wxFont *arg1 = (wxFont *) 0 ;
14925 bool arg2 = (bool) true ;
14926 void *argp1 = 0 ;
14927 int res1 = 0 ;
14928 bool val2 ;
14929 int ecode2 = 0 ;
14930 PyObject * obj0 = 0 ;
14931 PyObject * obj1 = 0 ;
14932 char * kwnames[] = {
14933 (char *) "self",(char *) "no", NULL
14934 };
14935
14936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
14937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14938 if (!SWIG_IsOK(res1)) {
14939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
14940 }
14941 arg1 = reinterpret_cast< wxFont * >(argp1);
14942 if (obj1) {
14943 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14944 if (!SWIG_IsOK(ecode2)) {
14945 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
14946 }
14947 arg2 = static_cast< bool >(val2);
14948 }
14949 {
14950 PyThreadState* __tstate = wxPyBeginAllowThreads();
14951 (arg1)->SetNoAntiAliasing(arg2);
14952 wxPyEndAllowThreads(__tstate);
14953 if (PyErr_Occurred()) SWIG_fail;
14954 }
14955 resultobj = SWIG_Py_Void();
14956 return resultobj;
14957fail:
14958 return NULL;
d14a1e28
RD
14959}
14960
14961
0085ce49
RD
14962SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14963 PyObject *resultobj = 0;
14964 wxFont *arg1 = (wxFont *) 0 ;
14965 bool result;
14966 void *argp1 = 0 ;
14967 int res1 = 0 ;
14968 PyObject *swig_obj[1] ;
14969
14970 if (!args) SWIG_fail;
14971 swig_obj[0] = args;
14972 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14973 if (!SWIG_IsOK(res1)) {
14974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
14975 }
14976 arg1 = reinterpret_cast< wxFont * >(argp1);
14977 {
14978 PyThreadState* __tstate = wxPyBeginAllowThreads();
14979 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
14980 wxPyEndAllowThreads(__tstate);
14981 if (PyErr_Occurred()) SWIG_fail;
14982 }
14983 {
14984 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14985 }
14986 return resultobj;
14987fail:
14988 return NULL;
d14a1e28
RD
14989}
14990
14991
0085ce49
RD
14992SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14993 PyObject *resultobj = 0;
14994 wxFontEncoding result;
14995
14996 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
14997 {
14998 if (!wxPyCheckForApp()) SWIG_fail;
14999 PyThreadState* __tstate = wxPyBeginAllowThreads();
15000 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15001 wxPyEndAllowThreads(__tstate);
15002 if (PyErr_Occurred()) SWIG_fail;
15003 }
15004 resultobj = SWIG_From_int(static_cast< int >(result));
15005 return resultobj;
15006fail:
15007 return NULL;
d14a1e28
RD
15008}
15009
15010
0085ce49
RD
15011SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15012 PyObject *resultobj = 0;
15013 wxFontEncoding arg1 ;
15014 int val1 ;
15015 int ecode1 = 0 ;
15016 PyObject * obj0 = 0 ;
15017 char * kwnames[] = {
15018 (char *) "encoding", NULL
15019 };
15020
15021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15022 ecode1 = SWIG_AsVal_int(obj0, &val1);
15023 if (!SWIG_IsOK(ecode1)) {
15024 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15025 }
15026 arg1 = static_cast< wxFontEncoding >(val1);
15027 {
15028 if (!wxPyCheckForApp()) SWIG_fail;
15029 PyThreadState* __tstate = wxPyBeginAllowThreads();
15030 wxFont::SetDefaultEncoding(arg1);
15031 wxPyEndAllowThreads(__tstate);
15032 if (PyErr_Occurred()) SWIG_fail;
15033 }
15034 resultobj = SWIG_Py_Void();
15035 return resultobj;
15036fail:
15037 return NULL;
d14a1e28
RD
15038}
15039
15040
0085ce49
RD
15041SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15042 PyObject *obj;
15043 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15044 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15045 return SWIG_Py_Void();
d14a1e28
RD
15046}
15047
0085ce49
RD
15048SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15049 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
15050}
15051
0085ce49
RD
15052SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15053 PyObject *resultobj = 0;
15054 wxPyFontEnumerator *result = 0 ;
15055
15056 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15057 {
15058 if (!wxPyCheckForApp()) SWIG_fail;
15059 PyThreadState* __tstate = wxPyBeginAllowThreads();
15060 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15061 wxPyEndAllowThreads(__tstate);
15062 if (PyErr_Occurred()) SWIG_fail;
15063 }
15064 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15065 return resultobj;
15066fail:
15067 return NULL;
d14a1e28
RD
15068}
15069
15070
0085ce49
RD
15071SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15072 PyObject *resultobj = 0;
15073 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15074 void *argp1 = 0 ;
15075 int res1 = 0 ;
15076 PyObject *swig_obj[1] ;
15077
15078 if (!args) SWIG_fail;
15079 swig_obj[0] = args;
15080 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15081 if (!SWIG_IsOK(res1)) {
15082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15083 }
15084 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15085 {
15086 PyThreadState* __tstate = wxPyBeginAllowThreads();
15087 delete arg1;
d14a1e28 15088
0085ce49
RD
15089 wxPyEndAllowThreads(__tstate);
15090 if (PyErr_Occurred()) SWIG_fail;
15091 }
15092 resultobj = SWIG_Py_Void();
15093 return resultobj;
15094fail:
15095 return NULL;
15096}
15097
15098
15099SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15100 PyObject *resultobj = 0;
15101 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15102 PyObject *arg2 = (PyObject *) 0 ;
15103 PyObject *arg3 = (PyObject *) 0 ;
15104 bool arg4 ;
15105 void *argp1 = 0 ;
15106 int res1 = 0 ;
15107 bool val4 ;
15108 int ecode4 = 0 ;
15109 PyObject * obj0 = 0 ;
15110 PyObject * obj1 = 0 ;
15111 PyObject * obj2 = 0 ;
15112 PyObject * obj3 = 0 ;
15113 char * kwnames[] = {
15114 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15115 };
15116
15117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15119 if (!SWIG_IsOK(res1)) {
15120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15121 }
15122 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15123 arg2 = obj1;
15124 arg3 = obj2;
15125 ecode4 = SWIG_AsVal_bool(obj3, &val4);
15126 if (!SWIG_IsOK(ecode4)) {
15127 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
15128 }
15129 arg4 = static_cast< bool >(val4);
15130 {
15131 PyThreadState* __tstate = wxPyBeginAllowThreads();
15132 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15133 wxPyEndAllowThreads(__tstate);
15134 if (PyErr_Occurred()) SWIG_fail;
15135 }
15136 resultobj = SWIG_Py_Void();
15137 return resultobj;
15138fail:
15139 return NULL;
15140}
15141
15142
15143SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15144 PyObject *resultobj = 0;
15145 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15146 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15147 bool arg3 = (bool) false ;
15148 bool result;
15149 void *argp1 = 0 ;
15150 int res1 = 0 ;
15151 int val2 ;
15152 int ecode2 = 0 ;
15153 bool val3 ;
15154 int ecode3 = 0 ;
15155 PyObject * obj0 = 0 ;
15156 PyObject * obj1 = 0 ;
15157 PyObject * obj2 = 0 ;
15158 char * kwnames[] = {
15159 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15160 };
15161
15162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15164 if (!SWIG_IsOK(res1)) {
15165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15166 }
15167 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15168 if (obj1) {
15169 ecode2 = SWIG_AsVal_int(obj1, &val2);
15170 if (!SWIG_IsOK(ecode2)) {
15171 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15172 }
15173 arg2 = static_cast< wxFontEncoding >(val2);
15174 }
15175 if (obj2) {
15176 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15177 if (!SWIG_IsOK(ecode3)) {
15178 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15179 }
15180 arg3 = static_cast< bool >(val3);
15181 }
15182 {
15183 PyThreadState* __tstate = wxPyBeginAllowThreads();
15184 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15185 wxPyEndAllowThreads(__tstate);
15186 if (PyErr_Occurred()) SWIG_fail;
15187 }
15188 {
15189 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15190 }
15191 return resultobj;
15192fail:
15193 return NULL;
15194}
15195
15196
15197SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15198 PyObject *resultobj = 0;
15199 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15200 wxString const &arg2_defvalue = wxPyEmptyString ;
15201 wxString *arg2 = (wxString *) &arg2_defvalue ;
15202 bool result;
15203 void *argp1 = 0 ;
15204 int res1 = 0 ;
15205 bool temp2 = false ;
15206 PyObject * obj0 = 0 ;
15207 PyObject * obj1 = 0 ;
15208 char * kwnames[] = {
15209 (char *) "self",(char *) "facename", NULL
15210 };
15211
15212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15214 if (!SWIG_IsOK(res1)) {
15215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15216 }
15217 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15218 if (obj1) {
d14a1e28 15219 {
0085ce49
RD
15220 arg2 = wxString_in_helper(obj1);
15221 if (arg2 == NULL) SWIG_fail;
15222 temp2 = true;
d14a1e28 15223 }
0085ce49
RD
15224 }
15225 {
15226 PyThreadState* __tstate = wxPyBeginAllowThreads();
15227 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15228 wxPyEndAllowThreads(__tstate);
15229 if (PyErr_Occurred()) SWIG_fail;
15230 }
15231 {
15232 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15233 }
15234 {
15235 if (temp2)
15236 delete arg2;
15237 }
15238 return resultobj;
15239fail:
15240 {
15241 if (temp2)
15242 delete arg2;
15243 }
15244 return NULL;
d14a1e28
RD
15245}
15246
15247
0085ce49
RD
15248SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15249 PyObject *resultobj = 0;
0085ce49 15250 PyObject *result = 0 ;
0085ce49 15251
704eda0c 15252 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
0085ce49
RD
15253 {
15254 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15255 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
0085ce49
RD
15256 wxPyEndAllowThreads(__tstate);
15257 if (PyErr_Occurred()) SWIG_fail;
15258 }
15259 resultobj = result;
15260 return resultobj;
15261fail:
15262 return NULL;
d14a1e28
RD
15263}
15264
15265
0085ce49
RD
15266SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15267 PyObject *resultobj = 0;
0085ce49 15268 PyObject *result = 0 ;
0085ce49 15269
704eda0c 15270 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
0085ce49
RD
15271 {
15272 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15273 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
0085ce49
RD
15274 wxPyEndAllowThreads(__tstate);
15275 if (PyErr_Occurred()) SWIG_fail;
15276 }
15277 resultobj = result;
15278 return resultobj;
15279fail:
15280 return NULL;
d14a1e28
RD
15281}
15282
15283
704eda0c
RD
15284SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15285 PyObject *resultobj = 0;
15286 wxString *arg1 = 0 ;
15287 bool result;
15288 bool temp1 = false ;
15289 PyObject * obj0 = 0 ;
15290 char * kwnames[] = {
15291 (char *) "str", NULL
15292 };
15293
15294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15295 {
15296 arg1 = wxString_in_helper(obj0);
15297 if (arg1 == NULL) SWIG_fail;
15298 temp1 = true;
15299 }
15300 {
15301 PyThreadState* __tstate = wxPyBeginAllowThreads();
15302 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15303 wxPyEndAllowThreads(__tstate);
15304 if (PyErr_Occurred()) SWIG_fail;
15305 }
15306 {
15307 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15308 }
15309 {
15310 if (temp1)
15311 delete arg1;
15312 }
15313 return resultobj;
15314fail:
15315 {
15316 if (temp1)
15317 delete arg1;
15318 }
15319 return NULL;
15320}
15321
15322
0085ce49
RD
15323SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15324 PyObject *obj;
15325 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15326 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15327 return SWIG_Py_Void();
d14a1e28
RD
15328}
15329
0085ce49
RD
15330SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15331 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
15332}
15333
0085ce49
RD
15334SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15335 PyObject *resultobj = 0;
15336 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15337 int arg2 ;
15338 void *argp1 = 0 ;
15339 int res1 = 0 ;
15340 int val2 ;
15341 int ecode2 = 0 ;
15342 PyObject *swig_obj[2] ;
15343
15344 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15345 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15346 if (!SWIG_IsOK(res1)) {
15347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15348 }
15349 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15350 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15351 if (!SWIG_IsOK(ecode2)) {
15352 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15353 }
15354 arg2 = static_cast< int >(val2);
15355 if (arg1) (arg1)->Language = arg2;
15356
15357 resultobj = SWIG_Py_Void();
15358 return resultobj;
15359fail:
15360 return NULL;
d14a1e28
RD
15361}
15362
15363
0085ce49
RD
15364SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15365 PyObject *resultobj = 0;
15366 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15367 int result;
15368 void *argp1 = 0 ;
15369 int res1 = 0 ;
15370 PyObject *swig_obj[1] ;
15371
15372 if (!args) SWIG_fail;
15373 swig_obj[0] = args;
15374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15375 if (!SWIG_IsOK(res1)) {
15376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15377 }
15378 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15379 result = (int) ((arg1)->Language);
15380 resultobj = SWIG_From_int(static_cast< int >(result));
15381 return resultobj;
15382fail:
15383 return NULL;
15384}
15385
15386
15387SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15388 PyObject *resultobj = 0;
15389 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15390 wxString *arg2 = (wxString *) 0 ;
15391 void *argp1 = 0 ;
15392 int res1 = 0 ;
15393 bool temp2 = false ;
15394 PyObject *swig_obj[2] ;
15395
15396 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15397 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15398 if (!SWIG_IsOK(res1)) {
15399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15400 }
15401 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15402 {
15403 arg2 = wxString_in_helper(swig_obj[1]);
15404 if (arg2 == NULL) SWIG_fail;
15405 temp2 = true;
15406 }
15407 if (arg1) (arg1)->CanonicalName = *arg2;
15408
15409 resultobj = SWIG_Py_Void();
15410 {
15411 if (temp2)
15412 delete arg2;
15413 }
15414 return resultobj;
15415fail:
15416 {
15417 if (temp2)
15418 delete arg2;
15419 }
15420 return NULL;
d14a1e28
RD
15421}
15422
15423
0085ce49
RD
15424SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15425 PyObject *resultobj = 0;
15426 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15427 wxString *result = 0 ;
15428 void *argp1 = 0 ;
15429 int res1 = 0 ;
15430 PyObject *swig_obj[1] ;
15431
15432 if (!args) SWIG_fail;
15433 swig_obj[0] = args;
15434 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15435 if (!SWIG_IsOK(res1)) {
15436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15437 }
15438 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15439 result = (wxString *)& ((arg1)->CanonicalName);
15440 {
093d3ff1 15441#if wxUSE_UNICODE
0085ce49 15442 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
093d3ff1 15443#else
0085ce49 15444 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
093d3ff1 15445#endif
0085ce49
RD
15446 }
15447 return resultobj;
15448fail:
15449 return NULL;
d14a1e28
RD
15450}
15451
15452
0085ce49
RD
15453SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15454 PyObject *resultobj = 0;
15455 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15456 wxString *arg2 = (wxString *) 0 ;
15457 void *argp1 = 0 ;
15458 int res1 = 0 ;
15459 bool temp2 = false ;
15460 PyObject *swig_obj[2] ;
15461
15462 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15463 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15464 if (!SWIG_IsOK(res1)) {
15465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15466 }
15467 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15468 {
15469 arg2 = wxString_in_helper(swig_obj[1]);
15470 if (arg2 == NULL) SWIG_fail;
15471 temp2 = true;
15472 }
15473 if (arg1) (arg1)->Description = *arg2;
15474
15475 resultobj = SWIG_Py_Void();
15476 {
15477 if (temp2)
15478 delete arg2;
15479 }
15480 return resultobj;
15481fail:
15482 {
15483 if (temp2)
15484 delete arg2;
15485 }
15486 return NULL;
d14a1e28
RD
15487}
15488
15489
0085ce49
RD
15490SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15491 PyObject *resultobj = 0;
15492 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15493 wxString *result = 0 ;
15494 void *argp1 = 0 ;
15495 int res1 = 0 ;
15496 PyObject *swig_obj[1] ;
15497
15498 if (!args) SWIG_fail;
15499 swig_obj[0] = args;
15500 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15501 if (!SWIG_IsOK(res1)) {
15502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15503 }
15504 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15505 result = (wxString *)& ((arg1)->Description);
15506 {
d14a1e28 15507#if wxUSE_UNICODE
0085ce49 15508 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
d14a1e28 15509#else
0085ce49 15510 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
d14a1e28 15511#endif
0085ce49
RD
15512 }
15513 return resultobj;
15514fail:
15515 return NULL;
15516}
15517
15518
15519SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15520 PyObject *obj;
15521 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15522 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
15523 return SWIG_Py_Void();
15524}
15525
15526SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15527 PyObject *resultobj = 0;
15528 int arg1 = (int) -1 ;
15529 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15530 wxLocale *result = 0 ;
15531 int val1 ;
15532 int ecode1 = 0 ;
15533 int val2 ;
15534 int ecode2 = 0 ;
15535 PyObject * obj0 = 0 ;
15536 PyObject * obj1 = 0 ;
15537 char * kwnames[] = {
15538 (char *) "language",(char *) "flags", NULL
15539 };
15540
15541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
15542 if (obj0) {
15543 ecode1 = SWIG_AsVal_int(obj0, &val1);
15544 if (!SWIG_IsOK(ecode1)) {
15545 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
15546 }
15547 arg1 = static_cast< int >(val1);
15548 }
15549 if (obj1) {
15550 ecode2 = SWIG_AsVal_int(obj1, &val2);
15551 if (!SWIG_IsOK(ecode2)) {
15552 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
15553 }
15554 arg2 = static_cast< int >(val2);
15555 }
15556 {
15557 PyThreadState* __tstate = wxPyBeginAllowThreads();
15558 result = (wxLocale *)new_wxLocale(arg1,arg2);
15559 wxPyEndAllowThreads(__tstate);
15560 if (PyErr_Occurred()) SWIG_fail;
15561 }
15562 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
15563 return resultobj;
15564fail:
15565 return NULL;
d14a1e28
RD
15566}
15567
15568
0085ce49
RD
15569SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15570 PyObject *resultobj = 0;
15571 wxLocale *arg1 = (wxLocale *) 0 ;
15572 void *argp1 = 0 ;
15573 int res1 = 0 ;
15574 PyObject *swig_obj[1] ;
15575
15576 if (!args) SWIG_fail;
15577 swig_obj[0] = args;
15578 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
15579 if (!SWIG_IsOK(res1)) {
15580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
15581 }
15582 arg1 = reinterpret_cast< wxLocale * >(argp1);
15583 {
15584 PyThreadState* __tstate = wxPyBeginAllowThreads();
15585 delete arg1;
d14a1e28 15586
0085ce49
RD
15587 wxPyEndAllowThreads(__tstate);
15588 if (PyErr_Occurred()) SWIG_fail;
15589 }
15590 resultobj = SWIG_Py_Void();
15591 return resultobj;
15592fail:
15593 return NULL;
15594}
15595
15596
15597SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15598 PyObject *resultobj = 0;
15599 wxLocale *arg1 = (wxLocale *) 0 ;
15600 wxString *arg2 = 0 ;
15601 wxString const &arg3_defvalue = wxPyEmptyString ;
15602 wxString *arg3 = (wxString *) &arg3_defvalue ;
15603 wxString const &arg4_defvalue = wxPyEmptyString ;
15604 wxString *arg4 = (wxString *) &arg4_defvalue ;
15605 bool arg5 = (bool) true ;
15606 bool arg6 = (bool) false ;
15607 bool result;
15608 void *argp1 = 0 ;
15609 int res1 = 0 ;
15610 bool temp2 = false ;
15611 bool temp3 = false ;
15612 bool temp4 = false ;
15613 bool val5 ;
15614 int ecode5 = 0 ;
15615 bool val6 ;
15616 int ecode6 = 0 ;
15617 PyObject * obj0 = 0 ;
15618 PyObject * obj1 = 0 ;
15619 PyObject * obj2 = 0 ;
15620 PyObject * obj3 = 0 ;
15621 PyObject * obj4 = 0 ;
15622 PyObject * obj5 = 0 ;
15623 char * kwnames[] = {
15624 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
15625 };
15626
15627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15629 if (!SWIG_IsOK(res1)) {
15630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
15631 }
15632 arg1 = reinterpret_cast< wxLocale * >(argp1);
15633 {
15634 arg2 = wxString_in_helper(obj1);
15635 if (arg2 == NULL) SWIG_fail;
15636 temp2 = true;
15637 }
15638 if (obj2) {
d14a1e28 15639 {
0085ce49
RD
15640 arg3 = wxString_in_helper(obj2);
15641 if (arg3 == NULL) SWIG_fail;
15642 temp3 = true;
d14a1e28 15643 }
0085ce49
RD
15644 }
15645 if (obj3) {
093d3ff1 15646 {
0085ce49
RD
15647 arg4 = wxString_in_helper(obj3);
15648 if (arg4 == NULL) SWIG_fail;
15649 temp4 = true;
093d3ff1 15650 }
0085ce49
RD
15651 }
15652 if (obj4) {
15653 ecode5 = SWIG_AsVal_bool(obj4, &val5);
15654 if (!SWIG_IsOK(ecode5)) {
15655 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
15656 }
15657 arg5 = static_cast< bool >(val5);
15658 }
15659 if (obj5) {
15660 ecode6 = SWIG_AsVal_bool(obj5, &val6);
15661 if (!SWIG_IsOK(ecode6)) {
15662 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
15663 }
15664 arg6 = static_cast< bool >(val6);
15665 }
15666 {
15667 PyThreadState* __tstate = wxPyBeginAllowThreads();
15668 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
15669 wxPyEndAllowThreads(__tstate);
15670 if (PyErr_Occurred()) SWIG_fail;
15671 }
15672 {
15673 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15674 }
15675 {
15676 if (temp2)
15677 delete arg2;
15678 }
15679 {
15680 if (temp3)
15681 delete arg3;
15682 }
15683 {
15684 if (temp4)
15685 delete arg4;
15686 }
15687 return resultobj;
15688fail:
15689 {
15690 if (temp2)
15691 delete arg2;
15692 }
15693 {
15694 if (temp3)
15695 delete arg3;
15696 }
15697 {
15698 if (temp4)
15699 delete arg4;
15700 }
15701 return NULL;
15702}
15703
15704
15705SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15706 PyObject *resultobj = 0;
15707 wxLocale *arg1 = (wxLocale *) 0 ;
15708 int arg2 = (int) wxLANGUAGE_DEFAULT ;
15709 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15710 bool result;
15711 void *argp1 = 0 ;
15712 int res1 = 0 ;
15713 int val2 ;
15714 int ecode2 = 0 ;
15715 int val3 ;
15716 int ecode3 = 0 ;
15717 PyObject * obj0 = 0 ;
15718 PyObject * obj1 = 0 ;
15719 PyObject * obj2 = 0 ;
15720 char * kwnames[] = {
15721 (char *) "self",(char *) "language",(char *) "flags", NULL
15722 };
15723
15724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15726 if (!SWIG_IsOK(res1)) {
15727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
15728 }
15729 arg1 = reinterpret_cast< wxLocale * >(argp1);
15730 if (obj1) {
15731 ecode2 = SWIG_AsVal_int(obj1, &val2);
15732 if (!SWIG_IsOK(ecode2)) {
15733 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
15734 }
15735 arg2 = static_cast< int >(val2);
15736 }
15737 if (obj2) {
15738 ecode3 = SWIG_AsVal_int(obj2, &val3);
15739 if (!SWIG_IsOK(ecode3)) {
15740 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
15741 }
15742 arg3 = static_cast< int >(val3);
15743 }
15744 {
15745 PyThreadState* __tstate = wxPyBeginAllowThreads();
15746 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
15747 wxPyEndAllowThreads(__tstate);
15748 if (PyErr_Occurred()) SWIG_fail;
15749 }
15750 {
15751 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15752 }
15753 return resultobj;
15754fail:
15755 return NULL;
093d3ff1
RD
15756}
15757
15758
0085ce49
RD
15759SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15760 PyObject *resultobj = 0;
15761 int result;
15762
15763 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
15764 {
15765 PyThreadState* __tstate = wxPyBeginAllowThreads();
15766 result = (int)wxLocale::GetSystemLanguage();
15767 wxPyEndAllowThreads(__tstate);
15768 if (PyErr_Occurred()) SWIG_fail;
15769 }
15770 resultobj = SWIG_From_int(static_cast< int >(result));
15771 return resultobj;
15772fail:
15773 return NULL;
d14a1e28
RD
15774}
15775
15776
0085ce49
RD
15777SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15778 PyObject *resultobj = 0;
15779 wxFontEncoding result;
15780
15781 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
15782 {
15783 PyThreadState* __tstate = wxPyBeginAllowThreads();
15784 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
15785 wxPyEndAllowThreads(__tstate);
15786 if (PyErr_Occurred()) SWIG_fail;
15787 }
15788 resultobj = SWIG_From_int(static_cast< int >(result));
15789 return resultobj;
15790fail:
15791 return NULL;
d14a1e28
RD
15792}
15793
15794
0085ce49
RD
15795SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15796 PyObject *resultobj = 0;
15797 wxString result;
15798
15799 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
15800 {
15801 PyThreadState* __tstate = wxPyBeginAllowThreads();
15802 result = wxLocale::GetSystemEncodingName();
15803 wxPyEndAllowThreads(__tstate);
15804 if (PyErr_Occurred()) SWIG_fail;
15805 }
15806 {
d14a1e28 15807#if wxUSE_UNICODE
0085ce49 15808 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d14a1e28 15809#else
0085ce49 15810 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d14a1e28 15811#endif
0085ce49
RD
15812 }
15813 return resultobj;
15814fail:
15815 return NULL;
d14a1e28
RD
15816}
15817
15818
0085ce49
RD
15819SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15820 PyObject *resultobj = 0;
15821 wxLocale *arg1 = (wxLocale *) 0 ;
15822 bool result;
15823 void *argp1 = 0 ;
15824 int res1 = 0 ;
15825 PyObject *swig_obj[1] ;
15826
15827 if (!args) SWIG_fail;
15828 swig_obj[0] = args;
15829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15830 if (!SWIG_IsOK(res1)) {
15831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
15832 }
15833 arg1 = reinterpret_cast< wxLocale * >(argp1);
15834 {
15835 PyThreadState* __tstate = wxPyBeginAllowThreads();
15836 result = (bool)((wxLocale const *)arg1)->IsOk();
15837 wxPyEndAllowThreads(__tstate);
15838 if (PyErr_Occurred()) SWIG_fail;
15839 }
15840 {
15841 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15842 }
15843 return resultobj;
15844fail:
15845 return NULL;
093d3ff1 15846}
0085ce49
RD
15847
15848
15849SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15850 PyObject *resultobj = 0;
15851 wxLocale *arg1 = (wxLocale *) 0 ;
15852 wxString result;
15853 void *argp1 = 0 ;
15854 int res1 = 0 ;
15855 PyObject *swig_obj[1] ;
15856
15857 if (!args) SWIG_fail;
15858 swig_obj[0] = args;
15859 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15860 if (!SWIG_IsOK(res1)) {
15861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
15862 }
15863 arg1 = reinterpret_cast< wxLocale * >(argp1);
15864 {
15865 PyThreadState* __tstate = wxPyBeginAllowThreads();
15866 result = ((wxLocale const *)arg1)->GetLocale();
15867 wxPyEndAllowThreads(__tstate);
15868 if (PyErr_Occurred()) SWIG_fail;
15869 }
15870 {
15871#if wxUSE_UNICODE
15872 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15873#else
15874 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15875#endif
15876 }
15877 return resultobj;
15878fail:
15879 return NULL;
d14a1e28
RD
15880}
15881
15882
0085ce49
RD
15883SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15884 PyObject *resultobj = 0;
15885 wxLocale *arg1 = (wxLocale *) 0 ;
15886 int result;
15887 void *argp1 = 0 ;
15888 int res1 = 0 ;
15889 PyObject *swig_obj[1] ;
15890
15891 if (!args) SWIG_fail;
15892 swig_obj[0] = args;
15893 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15894 if (!SWIG_IsOK(res1)) {
15895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
15896 }
15897 arg1 = reinterpret_cast< wxLocale * >(argp1);
15898 {
15899 PyThreadState* __tstate = wxPyBeginAllowThreads();
15900 result = (int)((wxLocale const *)arg1)->GetLanguage();
15901 wxPyEndAllowThreads(__tstate);
15902 if (PyErr_Occurred()) SWIG_fail;
15903 }
15904 resultobj = SWIG_From_int(static_cast< int >(result));
15905 return resultobj;
15906fail:
15907 return NULL;
d14a1e28
RD
15908}
15909
15910
0085ce49
RD
15911SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15912 PyObject *resultobj = 0;
15913 wxLocale *arg1 = (wxLocale *) 0 ;
15914 wxString result;
15915 void *argp1 = 0 ;
15916 int res1 = 0 ;
15917 PyObject *swig_obj[1] ;
15918
15919 if (!args) SWIG_fail;
15920 swig_obj[0] = args;
15921 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15922 if (!SWIG_IsOK(res1)) {
15923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
15924 }
15925 arg1 = reinterpret_cast< wxLocale * >(argp1);
15926 {
15927 PyThreadState* __tstate = wxPyBeginAllowThreads();
15928 result = ((wxLocale const *)arg1)->GetSysName();
15929 wxPyEndAllowThreads(__tstate);
15930 if (PyErr_Occurred()) SWIG_fail;
15931 }
15932 {
15933#if wxUSE_UNICODE
15934 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15935#else
15936 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15937#endif
15938 }
15939 return resultobj;
15940fail:
15941 return NULL;
d14a1e28
RD
15942}
15943
15944
0085ce49
RD
15945SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15946 PyObject *resultobj = 0;
15947 wxLocale *arg1 = (wxLocale *) 0 ;
15948 wxString result;
15949 void *argp1 = 0 ;
15950 int res1 = 0 ;
15951 PyObject *swig_obj[1] ;
15952
15953 if (!args) SWIG_fail;
15954 swig_obj[0] = args;
15955 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15956 if (!SWIG_IsOK(res1)) {
15957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
15958 }
15959 arg1 = reinterpret_cast< wxLocale * >(argp1);
15960 {
15961 PyThreadState* __tstate = wxPyBeginAllowThreads();
15962 result = ((wxLocale const *)arg1)->GetCanonicalName();
15963 wxPyEndAllowThreads(__tstate);
15964 if (PyErr_Occurred()) SWIG_fail;
15965 }
15966 {
15967#if wxUSE_UNICODE
15968 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15969#else
15970 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15971#endif
15972 }
15973 return resultobj;
15974fail:
15975 return NULL;
d14a1e28
RD
15976}
15977
15978
0085ce49
RD
15979SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15980 PyObject *resultobj = 0;
15981 wxString *arg1 = 0 ;
15982 bool temp1 = false ;
15983 PyObject * obj0 = 0 ;
15984 char * kwnames[] = {
15985 (char *) "prefix", NULL
15986 };
15987
15988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
15989 {
15990 arg1 = wxString_in_helper(obj0);
15991 if (arg1 == NULL) SWIG_fail;
15992 temp1 = true;
15993 }
15994 {
15995 PyThreadState* __tstate = wxPyBeginAllowThreads();
15996 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
15997 wxPyEndAllowThreads(__tstate);
15998 if (PyErr_Occurred()) SWIG_fail;
15999 }
16000 resultobj = SWIG_Py_Void();
16001 {
16002 if (temp1)
16003 delete arg1;
16004 }
16005 return resultobj;
16006fail:
16007 {
16008 if (temp1)
16009 delete arg1;
16010 }
16011 return NULL;
16012}
16013
16014
16015SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16016 PyObject *resultobj = 0;
16017 wxLocale *arg1 = (wxLocale *) 0 ;
16018 wxString *arg2 = 0 ;
16019 bool result;
16020 void *argp1 = 0 ;
16021 int res1 = 0 ;
16022 bool temp2 = false ;
16023 PyObject * obj0 = 0 ;
16024 PyObject * obj1 = 0 ;
16025 char * kwnames[] = {
16026 (char *) "self",(char *) "szDomain", NULL
16027 };
16028
16029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16031 if (!SWIG_IsOK(res1)) {
16032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16033 }
16034 arg1 = reinterpret_cast< wxLocale * >(argp1);
16035 {
16036 arg2 = wxString_in_helper(obj1);
16037 if (arg2 == NULL) SWIG_fail;
16038 temp2 = true;
16039 }
16040 {
16041 PyThreadState* __tstate = wxPyBeginAllowThreads();
16042 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16043 wxPyEndAllowThreads(__tstate);
16044 if (PyErr_Occurred()) SWIG_fail;
16045 }
16046 {
16047 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16048 }
16049 {
16050 if (temp2)
16051 delete arg2;
16052 }
16053 return resultobj;
16054fail:
16055 {
16056 if (temp2)
16057 delete arg2;
16058 }
16059 return NULL;
16060}
16061
16062
33d6fd3b
RD
16063SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16064 PyObject *resultobj = 0;
16065 int arg1 ;
16066 bool result;
16067 int val1 ;
16068 int ecode1 = 0 ;
16069 PyObject * obj0 = 0 ;
16070 char * kwnames[] = {
16071 (char *) "lang", NULL
16072 };
16073
16074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16075 ecode1 = SWIG_AsVal_int(obj0, &val1);
16076 if (!SWIG_IsOK(ecode1)) {
16077 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16078 }
16079 arg1 = static_cast< int >(val1);
16080 {
16081 PyThreadState* __tstate = wxPyBeginAllowThreads();
16082 result = (bool)wxLocale::IsAvailable(arg1);
16083 wxPyEndAllowThreads(__tstate);
16084 if (PyErr_Occurred()) SWIG_fail;
16085 }
16086 {
16087 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16088 }
16089 return resultobj;
16090fail:
16091 return NULL;
16092}
16093
16094
0085ce49
RD
16095SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16096 PyObject *resultobj = 0;
16097 wxLocale *arg1 = (wxLocale *) 0 ;
16098 wxString *arg2 = 0 ;
16099 bool result;
16100 void *argp1 = 0 ;
16101 int res1 = 0 ;
16102 bool temp2 = false ;
16103 PyObject * obj0 = 0 ;
16104 PyObject * obj1 = 0 ;
16105 char * kwnames[] = {
16106 (char *) "self",(char *) "szDomain", NULL
16107 };
16108
16109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16111 if (!SWIG_IsOK(res1)) {
16112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16113 }
16114 arg1 = reinterpret_cast< wxLocale * >(argp1);
16115 {
16116 arg2 = wxString_in_helper(obj1);
16117 if (arg2 == NULL) SWIG_fail;
16118 temp2 = true;
16119 }
16120 {
16121 PyThreadState* __tstate = wxPyBeginAllowThreads();
16122 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16123 wxPyEndAllowThreads(__tstate);
16124 if (PyErr_Occurred()) SWIG_fail;
16125 }
16126 {
16127 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16128 }
16129 {
16130 if (temp2)
16131 delete arg2;
16132 }
16133 return resultobj;
16134fail:
16135 {
16136 if (temp2)
16137 delete arg2;
16138 }
16139 return NULL;
d14a1e28
RD
16140}
16141
16142
0085ce49
RD
16143SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16144 PyObject *resultobj = 0;
16145 int arg1 ;
16146 wxLanguageInfo *result = 0 ;
16147 int val1 ;
16148 int ecode1 = 0 ;
16149 PyObject * obj0 = 0 ;
16150 char * kwnames[] = {
16151 (char *) "lang", NULL
16152 };
16153
16154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16155 ecode1 = SWIG_AsVal_int(obj0, &val1);
16156 if (!SWIG_IsOK(ecode1)) {
16157 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16158 }
16159 arg1 = static_cast< int >(val1);
16160 {
16161 PyThreadState* __tstate = wxPyBeginAllowThreads();
16162 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16163 wxPyEndAllowThreads(__tstate);
16164 if (PyErr_Occurred()) SWIG_fail;
16165 }
16166 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16167 return resultobj;
16168fail:
16169 return NULL;
16170}
16171
16172
16173SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16174 PyObject *resultobj = 0;
16175 int arg1 ;
16176 wxString result;
16177 int val1 ;
16178 int ecode1 = 0 ;
16179 PyObject * obj0 = 0 ;
16180 char * kwnames[] = {
16181 (char *) "lang", NULL
16182 };
16183
16184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16185 ecode1 = SWIG_AsVal_int(obj0, &val1);
16186 if (!SWIG_IsOK(ecode1)) {
16187 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16188 }
16189 arg1 = static_cast< int >(val1);
16190 {
16191 PyThreadState* __tstate = wxPyBeginAllowThreads();
16192 result = wxLocale::GetLanguageName(arg1);
16193 wxPyEndAllowThreads(__tstate);
16194 if (PyErr_Occurred()) SWIG_fail;
16195 }
16196 {
16197#if wxUSE_UNICODE
16198 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16199#else
16200 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16201#endif
16202 }
16203 return resultobj;
16204fail:
16205 return NULL;
d14a1e28
RD
16206}
16207
16208
0085ce49
RD
16209SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16210 PyObject *resultobj = 0;
16211 wxString *arg1 = 0 ;
16212 wxLanguageInfo *result = 0 ;
16213 bool temp1 = false ;
16214 PyObject * obj0 = 0 ;
16215 char * kwnames[] = {
16216 (char *) "locale", NULL
16217 };
16218
16219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16220 {
16221 arg1 = wxString_in_helper(obj0);
16222 if (arg1 == NULL) SWIG_fail;
16223 temp1 = true;
16224 }
16225 {
16226 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3
RD
16227 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16228 wxPyEndAllowThreads(__tstate);
16229 if (PyErr_Occurred()) SWIG_fail;
16230 }
16231 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16232 {
16233 if (temp1)
16234 delete arg1;
16235 }
16236 return resultobj;
16237fail:
16238 {
16239 if (temp1)
16240 delete arg1;
16241 }
16242 return NULL;
16243}
16244
16245
16246SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16247 PyObject *resultobj = 0;
16248 wxLanguageInfo *arg1 = 0 ;
16249 void *argp1 = 0 ;
16250 int res1 = 0 ;
16251 PyObject * obj0 = 0 ;
16252 char * kwnames[] = {
16253 (char *) "info", NULL
16254 };
16255
16256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16257 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16258 if (!SWIG_IsOK(res1)) {
16259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16260 }
16261 if (!argp1) {
16262 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16263 }
16264 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16265 {
16266 PyThreadState* __tstate = wxPyBeginAllowThreads();
16267 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16268 wxPyEndAllowThreads(__tstate);
16269 if (PyErr_Occurred()) SWIG_fail;
16270 }
16271 resultobj = SWIG_Py_Void();
16272 return resultobj;
16273fail:
16274 return NULL;
16275}
16276
16277
16278SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16279 PyObject *resultobj = 0;
16280 wxLocale *arg1 = (wxLocale *) 0 ;
16281 wxString *arg2 = 0 ;
16282 wxString const &arg3_defvalue = wxPyEmptyString ;
16283 wxString *arg3 = (wxString *) &arg3_defvalue ;
16284 wxString result;
16285 void *argp1 = 0 ;
16286 int res1 = 0 ;
16287 bool temp2 = false ;
16288 bool temp3 = false ;
16289 PyObject * obj0 = 0 ;
16290 PyObject * obj1 = 0 ;
16291 PyObject * obj2 = 0 ;
16292 char * kwnames[] = {
16293 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16294 };
16295
16296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16298 if (!SWIG_IsOK(res1)) {
16299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16300 }
16301 arg1 = reinterpret_cast< wxLocale * >(argp1);
16302 {
16303 arg2 = wxString_in_helper(obj1);
16304 if (arg2 == NULL) SWIG_fail;
16305 temp2 = true;
16306 }
16307 if (obj2) {
16308 {
16309 arg3 = wxString_in_helper(obj2);
16310 if (arg3 == NULL) SWIG_fail;
16311 temp3 = true;
16312 }
16313 }
16314 {
16315 PyThreadState* __tstate = wxPyBeginAllowThreads();
16316 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16317 wxPyEndAllowThreads(__tstate);
16318 if (PyErr_Occurred()) SWIG_fail;
16319 }
16320 {
16321#if wxUSE_UNICODE
16322 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16323#else
16324 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16325#endif
16326 }
16327 {
16328 if (temp2)
16329 delete arg2;
16330 }
16331 {
16332 if (temp3)
16333 delete arg3;
16334 }
16335 return resultobj;
16336fail:
16337 {
16338 if (temp2)
16339 delete arg2;
16340 }
16341 {
16342 if (temp3)
16343 delete arg3;
16344 }
16345 return NULL;
16346}
16347
16348
16349SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16350 PyObject *resultobj = 0;
16351 wxLocale *arg1 = (wxLocale *) 0 ;
16352 wxString *result = 0 ;
16353 void *argp1 = 0 ;
16354 int res1 = 0 ;
16355 PyObject *swig_obj[1] ;
16356
16357 if (!args) SWIG_fail;
16358 swig_obj[0] = args;
16359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16360 if (!SWIG_IsOK(res1)) {
16361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16362 }
16363 arg1 = reinterpret_cast< wxLocale * >(argp1);
16364 {
16365 PyThreadState* __tstate = wxPyBeginAllowThreads();
16366 {
16367 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16368 result = (wxString *) &_result_ref;
16369 }
16370 wxPyEndAllowThreads(__tstate);
16371 if (PyErr_Occurred()) SWIG_fail;
16372 }
16373 {
16374#if wxUSE_UNICODE
16375 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16376#else
16377 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16378#endif
16379 }
16380 return resultobj;
16381fail:
16382 return NULL;
16383}
16384
16385
16386SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16387 PyObject *obj;
16388 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16389 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16390 return SWIG_Py_Void();
16391}
16392
16393SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16394 return SWIG_Python_InitShadowInstance(args);
16395}
16396
16397SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16398 PyObject *resultobj = 0;
16399 int arg1 = (int) -1 ;
16400 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16401 wxPyLocale *result = 0 ;
16402 int val1 ;
16403 int ecode1 = 0 ;
16404 int val2 ;
16405 int ecode2 = 0 ;
16406 PyObject * obj0 = 0 ;
16407 PyObject * obj1 = 0 ;
16408 char * kwnames[] = {
16409 (char *) "language",(char *) "flags", NULL
16410 };
16411
16412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16413 if (obj0) {
16414 ecode1 = SWIG_AsVal_int(obj0, &val1);
16415 if (!SWIG_IsOK(ecode1)) {
16416 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16417 }
16418 arg1 = static_cast< int >(val1);
16419 }
16420 if (obj1) {
16421 ecode2 = SWIG_AsVal_int(obj1, &val2);
16422 if (!SWIG_IsOK(ecode2)) {
16423 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16424 }
16425 arg2 = static_cast< int >(val2);
16426 }
16427 {
16428 PyThreadState* __tstate = wxPyBeginAllowThreads();
16429 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16430 wxPyEndAllowThreads(__tstate);
16431 if (PyErr_Occurred()) SWIG_fail;
16432 }
16433 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16434 return resultobj;
16435fail:
16436 return NULL;
16437}
16438
16439
16440SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16441 PyObject *resultobj = 0;
16442 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16443 void *argp1 = 0 ;
16444 int res1 = 0 ;
16445 PyObject *swig_obj[1] ;
16446
16447 if (!args) SWIG_fail;
16448 swig_obj[0] = args;
16449 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16450 if (!SWIG_IsOK(res1)) {
16451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16452 }
16453 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16454 {
16455 PyThreadState* __tstate = wxPyBeginAllowThreads();
16456 delete arg1;
16457
0085ce49
RD
16458 wxPyEndAllowThreads(__tstate);
16459 if (PyErr_Occurred()) SWIG_fail;
16460 }
fc46b7f3 16461 resultobj = SWIG_Py_Void();
0085ce49
RD
16462 return resultobj;
16463fail:
0085ce49 16464 return NULL;
d14a1e28
RD
16465}
16466
16467
fc46b7f3 16468SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 16469 PyObject *resultobj = 0;
fc46b7f3
RD
16470 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16471 PyObject *arg2 = (PyObject *) 0 ;
16472 PyObject *arg3 = (PyObject *) 0 ;
0085ce49
RD
16473 void *argp1 = 0 ;
16474 int res1 = 0 ;
16475 PyObject * obj0 = 0 ;
fc46b7f3
RD
16476 PyObject * obj1 = 0 ;
16477 PyObject * obj2 = 0 ;
0085ce49 16478 char * kwnames[] = {
fc46b7f3 16479 (char *) "self",(char *) "self",(char *) "_class", NULL
0085ce49
RD
16480 };
16481
fc46b7f3
RD
16482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
0085ce49 16484 if (!SWIG_IsOK(res1)) {
fc46b7f3 16485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
0085ce49 16486 }
fc46b7f3
RD
16487 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16488 arg2 = obj1;
16489 arg3 = obj2;
0085ce49
RD
16490 {
16491 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16492 (arg1)->_setCallbackInfo(arg2,arg3);
0085ce49
RD
16493 wxPyEndAllowThreads(__tstate);
16494 if (PyErr_Occurred()) SWIG_fail;
16495 }
16496 resultobj = SWIG_Py_Void();
16497 return resultobj;
16498fail:
16499 return NULL;
16500}
16501
16502
fc46b7f3 16503SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 16504 PyObject *resultobj = 0;
fc46b7f3
RD
16505 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16506 wxChar *arg2 = (wxChar *) 0 ;
16507 wxChar *arg3 = (wxChar *) NULL ;
16508 wxChar *result = 0 ;
0085ce49
RD
16509 void *argp1 = 0 ;
16510 int res1 = 0 ;
fc46b7f3
RD
16511 void *argp2 = 0 ;
16512 int res2 = 0 ;
16513 void *argp3 = 0 ;
16514 int res3 = 0 ;
0085ce49
RD
16515 PyObject * obj0 = 0 ;
16516 PyObject * obj1 = 0 ;
16517 PyObject * obj2 = 0 ;
16518 char * kwnames[] = {
16519 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16520 };
16521
fc46b7f3
RD
16522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
0085ce49 16524 if (!SWIG_IsOK(res1)) {
fc46b7f3 16525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
0085ce49 16526 }
fc46b7f3
RD
16527 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16528 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16529 if (!SWIG_IsOK(res2)) {
16530 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
0085ce49 16531 }
fc46b7f3 16532 arg2 = reinterpret_cast< wxChar * >(argp2);
0085ce49 16533 if (obj2) {
fc46b7f3
RD
16534 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16535 if (!SWIG_IsOK(res3)) {
16536 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
b6294124 16537 }
fc46b7f3 16538 arg3 = reinterpret_cast< wxChar * >(argp3);
0085ce49
RD
16539 }
16540 {
16541 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16542 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
0085ce49
RD
16543 wxPyEndAllowThreads(__tstate);
16544 if (PyErr_Occurred()) SWIG_fail;
16545 }
fc46b7f3 16546 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
0085ce49
RD
16547 return resultobj;
16548fail:
0085ce49 16549 return NULL;
b6294124
RD
16550}
16551
16552
fc46b7f3 16553SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 16554 PyObject *resultobj = 0;
fc46b7f3
RD
16555 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16556 wxChar *arg2 = (wxChar *) 0 ;
16557 wxChar *arg3 = (wxChar *) 0 ;
16558 size_t arg4 ;
16559 wxChar *arg5 = (wxChar *) NULL ;
16560 wxChar *result = 0 ;
0085ce49
RD
16561 void *argp1 = 0 ;
16562 int res1 = 0 ;
fc46b7f3
RD
16563 void *argp2 = 0 ;
16564 int res2 = 0 ;
16565 void *argp3 = 0 ;
16566 int res3 = 0 ;
16567 size_t val4 ;
16568 int ecode4 = 0 ;
16569 void *argp5 = 0 ;
16570 int res5 = 0 ;
16571 PyObject * obj0 = 0 ;
16572 PyObject * obj1 = 0 ;
16573 PyObject * obj2 = 0 ;
16574 PyObject * obj3 = 0 ;
16575 PyObject * obj4 = 0 ;
16576 char * kwnames[] = {
16577 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
16578 };
0085ce49 16579
fc46b7f3
RD
16580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
0085ce49 16582 if (!SWIG_IsOK(res1)) {
fc46b7f3
RD
16583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16584 }
16585 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16586 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16587 if (!SWIG_IsOK(res2)) {
16588 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
16589 }
16590 arg2 = reinterpret_cast< wxChar * >(argp2);
16591 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16592 if (!SWIG_IsOK(res3)) {
16593 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
16594 }
16595 arg3 = reinterpret_cast< wxChar * >(argp3);
16596 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16597 if (!SWIG_IsOK(ecode4)) {
16598 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
16599 }
16600 arg4 = static_cast< size_t >(val4);
16601 if (obj4) {
16602 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
16603 if (!SWIG_IsOK(res5)) {
16604 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
16605 }
16606 arg5 = reinterpret_cast< wxChar * >(argp5);
0085ce49 16607 }
0085ce49
RD
16608 {
16609 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16610 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
0085ce49
RD
16611 wxPyEndAllowThreads(__tstate);
16612 if (PyErr_Occurred()) SWIG_fail;
16613 }
fc46b7f3 16614 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
0085ce49
RD
16615 return resultobj;
16616fail:
16617 return NULL;
d14a1e28
RD
16618}
16619
16620
fc46b7f3 16621SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
16622 PyObject *obj;
16623 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 16624 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
0085ce49 16625 return SWIG_Py_Void();
d14a1e28
RD
16626}
16627
fc46b7f3 16628SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
16629 return SWIG_Python_InitShadowInstance(args);
16630}
d14a1e28 16631
0085ce49
RD
16632SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16633 PyObject *resultobj = 0;
16634 wxLocale *result = 0 ;
16635
16636 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
16637 {
16638 PyThreadState* __tstate = wxPyBeginAllowThreads();
16639 result = (wxLocale *)wxGetLocale();
16640 wxPyEndAllowThreads(__tstate);
16641 if (PyErr_Occurred()) SWIG_fail;
16642 }
16643 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
16644 return resultobj;
16645fail:
16646 return NULL;
d14a1e28
RD
16647}
16648
16649
0085ce49
RD
16650SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16651 PyObject *resultobj = 0;
16652 wxString *arg1 = 0 ;
16653 wxString result;
16654 bool temp1 = false ;
16655
16656 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
16657 {
16658 arg1 = wxString_in_helper(swig_obj[0]);
16659 if (arg1 == NULL) SWIG_fail;
16660 temp1 = true;
16661 }
16662 {
16663 PyThreadState* __tstate = wxPyBeginAllowThreads();
16664 result = wxGetTranslation((wxString const &)*arg1);
16665 wxPyEndAllowThreads(__tstate);
16666 if (PyErr_Occurred()) SWIG_fail;
16667 }
16668 {
093d3ff1 16669#if wxUSE_UNICODE
0085ce49 16670 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
093d3ff1 16671#else
0085ce49 16672 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
093d3ff1 16673#endif
0085ce49
RD
16674 }
16675 {
16676 if (temp1)
16677 delete arg1;
16678 }
16679 return resultobj;
16680fail:
16681 {
16682 if (temp1)
16683 delete arg1;
16684 }
16685 return NULL;
b6294124
RD
16686}
16687
16688
0085ce49 16689SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
fc46b7f3
RD
16690 PyObject *resultobj = 0;
16691 wxString *arg1 = 0 ;
16692 wxString *arg2 = 0 ;
16693 wxString result;
16694 bool temp1 = false ;
16695 bool temp2 = false ;
16696
16697 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
16698 {
16699 arg1 = wxString_in_helper(swig_obj[0]);
16700 if (arg1 == NULL) SWIG_fail;
16701 temp1 = true;
16702 }
16703 {
16704 arg2 = wxString_in_helper(swig_obj[1]);
16705 if (arg2 == NULL) SWIG_fail;
16706 temp2 = true;
16707 }
16708 {
16709 PyThreadState* __tstate = wxPyBeginAllowThreads();
16710 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
16711 wxPyEndAllowThreads(__tstate);
16712 if (PyErr_Occurred()) SWIG_fail;
16713 }
16714 {
16715#if wxUSE_UNICODE
16716 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16717#else
16718 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16719#endif
16720 }
16721 {
16722 if (temp1)
16723 delete arg1;
16724 }
16725 {
16726 if (temp2)
16727 delete arg2;
16728 }
16729 return resultobj;
16730fail:
16731 {
16732 if (temp1)
16733 delete arg1;
16734 }
16735 {
16736 if (temp2)
16737 delete arg2;
16738 }
16739 return NULL;
16740}
16741
16742
16743SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
0085ce49
RD
16744 PyObject *resultobj = 0;
16745 wxString *arg1 = 0 ;
16746 wxString *arg2 = 0 ;
16747 size_t arg3 ;
16748 wxString result;
16749 bool temp1 = false ;
16750 bool temp2 = false ;
16751 size_t val3 ;
16752 int ecode3 = 0 ;
16753
16754 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
16755 {
16756 arg1 = wxString_in_helper(swig_obj[0]);
16757 if (arg1 == NULL) SWIG_fail;
16758 temp1 = true;
16759 }
16760 {
16761 arg2 = wxString_in_helper(swig_obj[1]);
16762 if (arg2 == NULL) SWIG_fail;
16763 temp2 = true;
16764 }
16765 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
16766 if (!SWIG_IsOK(ecode3)) {
16767 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
16768 }
16769 arg3 = static_cast< size_t >(val3);
16770 {
16771 PyThreadState* __tstate = wxPyBeginAllowThreads();
16772 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
16773 wxPyEndAllowThreads(__tstate);
16774 if (PyErr_Occurred()) SWIG_fail;
16775 }
16776 {
16777#if wxUSE_UNICODE
16778 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16779#else
16780 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16781#endif
16782 }
16783 {
16784 if (temp1)
16785 delete arg1;
16786 }
16787 {
16788 if (temp2)
16789 delete arg2;
16790 }
16791 return resultobj;
16792fail:
16793 {
16794 if (temp1)
16795 delete arg1;
16796 }
16797 {
16798 if (temp2)
16799 delete arg2;
16800 }
16801 return NULL;
d14a1e28
RD
16802}
16803
16804
fc46b7f3
RD
16805SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16806 PyObject *resultobj = 0;
16807 wxString *arg1 = 0 ;
16808 wxString *arg2 = 0 ;
16809 size_t arg3 ;
16810 wxString *arg4 = 0 ;
16811 wxString result;
16812 bool temp1 = false ;
16813 bool temp2 = false ;
16814 size_t val3 ;
16815 int ecode3 = 0 ;
16816 bool temp4 = false ;
16817
16818 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
16819 {
16820 arg1 = wxString_in_helper(swig_obj[0]);
16821 if (arg1 == NULL) SWIG_fail;
16822 temp1 = true;
16823 }
16824 {
16825 arg2 = wxString_in_helper(swig_obj[1]);
16826 if (arg2 == NULL) SWIG_fail;
16827 temp2 = true;
16828 }
16829 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
16830 if (!SWIG_IsOK(ecode3)) {
16831 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
16832 }
16833 arg3 = static_cast< size_t >(val3);
16834 {
16835 arg4 = wxString_in_helper(swig_obj[3]);
16836 if (arg4 == NULL) SWIG_fail;
16837 temp4 = true;
16838 }
16839 {
16840 PyThreadState* __tstate = wxPyBeginAllowThreads();
16841 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
16842 wxPyEndAllowThreads(__tstate);
16843 if (PyErr_Occurred()) SWIG_fail;
16844 }
16845 {
16846#if wxUSE_UNICODE
16847 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16848#else
16849 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16850#endif
16851 }
16852 {
16853 if (temp1)
16854 delete arg1;
16855 }
16856 {
16857 if (temp2)
16858 delete arg2;
16859 }
16860 {
16861 if (temp4)
16862 delete arg4;
16863 }
16864 return resultobj;
16865fail:
16866 {
16867 if (temp1)
16868 delete arg1;
16869 }
16870 {
16871 if (temp2)
16872 delete arg2;
16873 }
16874 {
16875 if (temp4)
16876 delete arg4;
16877 }
16878 return NULL;
16879}
16880
16881
0085ce49
RD
16882SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
16883 int argc;
fc46b7f3 16884 PyObject *argv[5];
0085ce49 16885
fc46b7f3 16886 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
0085ce49
RD
16887 --argc;
16888 if (argc == 1) {
16889 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
16890 }
fc46b7f3 16891 if (argc == 2) {
0085ce49
RD
16892 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
16893 }
fc46b7f3
RD
16894 if (argc == 3) {
16895 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
16896 }
16897 if (argc == 4) {
16898 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
16899 }
0085ce49
RD
16900
16901fail:
16902 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
16903 return NULL;
d14a1e28
RD
16904}
16905
16906
0085ce49
RD
16907SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16908 PyObject *resultobj = 0;
16909 wxEncodingConverter *result = 0 ;
16910
16911 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
16912 {
16913 PyThreadState* __tstate = wxPyBeginAllowThreads();
16914 result = (wxEncodingConverter *)new wxEncodingConverter();
16915 wxPyEndAllowThreads(__tstate);
16916 if (PyErr_Occurred()) SWIG_fail;
16917 }
16918 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
16919 return resultobj;
16920fail:
16921 return NULL;
d14a1e28
RD
16922}
16923
16924
0085ce49
RD
16925SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16926 PyObject *resultobj = 0;
16927 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16928 void *argp1 = 0 ;
16929 int res1 = 0 ;
16930 PyObject *swig_obj[1] ;
16931
16932 if (!args) SWIG_fail;
16933 swig_obj[0] = args;
16934 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
16935 if (!SWIG_IsOK(res1)) {
16936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
16937 }
16938 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
16939 {
16940 PyThreadState* __tstate = wxPyBeginAllowThreads();
16941 delete arg1;
d14a1e28 16942
0085ce49
RD
16943 wxPyEndAllowThreads(__tstate);
16944 if (PyErr_Occurred()) SWIG_fail;
16945 }
16946 resultobj = SWIG_Py_Void();
16947 return resultobj;
16948fail:
16949 return NULL;
16950}
16951
16952
16953SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16954 PyObject *resultobj = 0;
16955 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16956 wxFontEncoding arg2 ;
16957 wxFontEncoding arg3 ;
16958 int arg4 = (int) wxCONVERT_STRICT ;
16959 bool result;
16960 void *argp1 = 0 ;
16961 int res1 = 0 ;
16962 int val2 ;
16963 int ecode2 = 0 ;
16964 int val3 ;
16965 int ecode3 = 0 ;
16966 int val4 ;
16967 int ecode4 = 0 ;
16968 PyObject * obj0 = 0 ;
16969 PyObject * obj1 = 0 ;
16970 PyObject * obj2 = 0 ;
16971 PyObject * obj3 = 0 ;
16972 char * kwnames[] = {
16973 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
16974 };
16975
16976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
16978 if (!SWIG_IsOK(res1)) {
16979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
16980 }
16981 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
16982 ecode2 = SWIG_AsVal_int(obj1, &val2);
16983 if (!SWIG_IsOK(ecode2)) {
16984 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
16985 }
16986 arg2 = static_cast< wxFontEncoding >(val2);
16987 ecode3 = SWIG_AsVal_int(obj2, &val3);
16988 if (!SWIG_IsOK(ecode3)) {
16989 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
16990 }
16991 arg3 = static_cast< wxFontEncoding >(val3);
16992 if (obj3) {
16993 ecode4 = SWIG_AsVal_int(obj3, &val4);
16994 if (!SWIG_IsOK(ecode4)) {
16995 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
16996 }
16997 arg4 = static_cast< int >(val4);
16998 }
16999 {
17000 PyThreadState* __tstate = wxPyBeginAllowThreads();
17001 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17002 wxPyEndAllowThreads(__tstate);
17003 if (PyErr_Occurred()) SWIG_fail;
17004 }
17005 {
17006 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17007 }
17008 return resultobj;
17009fail:
17010 return NULL;
17011}
17012
17013
17014SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17015 PyObject *resultobj = 0;
17016 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17017 wxString *arg2 = 0 ;
17018 wxString result;
17019 void *argp1 = 0 ;
17020 int res1 = 0 ;
17021 bool temp2 = false ;
17022 PyObject * obj0 = 0 ;
17023 PyObject * obj1 = 0 ;
17024 char * kwnames[] = {
17025 (char *) "self",(char *) "input", NULL
17026 };
17027
17028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17030 if (!SWIG_IsOK(res1)) {
17031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17032 }
17033 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17034 {
17035 arg2 = wxString_in_helper(obj1);
17036 if (arg2 == NULL) SWIG_fail;
17037 temp2 = true;
17038 }
17039 {
17040 PyThreadState* __tstate = wxPyBeginAllowThreads();
17041 result = (arg1)->Convert((wxString const &)*arg2);
17042 wxPyEndAllowThreads(__tstate);
17043 if (PyErr_Occurred()) SWIG_fail;
17044 }
17045 {
17046#if wxUSE_UNICODE
17047 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17048#else
17049 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17050#endif
17051 }
17052 {
17053 if (temp2)
17054 delete arg2;
17055 }
17056 return resultobj;
17057fail:
17058 {
17059 if (temp2)
17060 delete arg2;
17061 }
17062 return NULL;
17063}
17064
17065
17066SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17067 PyObject *resultobj = 0;
17068 wxFontEncoding arg1 ;
17069 int arg2 = (int) wxPLATFORM_CURRENT ;
17070 wxFontEncodingArray result;
17071 int val1 ;
17072 int ecode1 = 0 ;
17073 int val2 ;
17074 int ecode2 = 0 ;
17075 PyObject * obj0 = 0 ;
17076 PyObject * obj1 = 0 ;
17077 char * kwnames[] = {
17078 (char *) "enc",(char *) "platform", NULL
17079 };
17080
17081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17082 ecode1 = SWIG_AsVal_int(obj0, &val1);
17083 if (!SWIG_IsOK(ecode1)) {
17084 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17085 }
17086 arg1 = static_cast< wxFontEncoding >(val1);
17087 if (obj1) {
17088 ecode2 = SWIG_AsVal_int(obj1, &val2);
17089 if (!SWIG_IsOK(ecode2)) {
17090 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17091 }
17092 arg2 = static_cast< int >(val2);
17093 }
17094 {
17095 PyThreadState* __tstate = wxPyBeginAllowThreads();
17096 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17097 wxPyEndAllowThreads(__tstate);
17098 if (PyErr_Occurred()) SWIG_fail;
17099 }
17100 {
17101 resultobj = PyList_New(0);
17102 for (size_t i=0; i < (&result)->GetCount(); i++) {
17103 PyObject* number = PyInt_FromLong((&result)->Item(i));
17104 PyList_Append(resultobj, number);
17105 Py_DECREF(number);
093d3ff1 17106 }
0085ce49
RD
17107 }
17108 return resultobj;
17109fail:
17110 return NULL;
d14a1e28
RD
17111}
17112
17113
0085ce49
RD
17114SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17115 PyObject *resultobj = 0;
17116 wxFontEncoding arg1 ;
17117 wxFontEncodingArray result;
17118 int val1 ;
17119 int ecode1 = 0 ;
17120 PyObject * obj0 = 0 ;
17121 char * kwnames[] = {
17122 (char *) "enc", NULL
17123 };
17124
17125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17126 ecode1 = SWIG_AsVal_int(obj0, &val1);
17127 if (!SWIG_IsOK(ecode1)) {
17128 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17129 }
17130 arg1 = static_cast< wxFontEncoding >(val1);
17131 {
17132 PyThreadState* __tstate = wxPyBeginAllowThreads();
17133 result = wxEncodingConverter::GetAllEquivalents(arg1);
17134 wxPyEndAllowThreads(__tstate);
17135 if (PyErr_Occurred()) SWIG_fail;
17136 }
17137 {
17138 resultobj = PyList_New(0);
17139 for (size_t i=0; i < (&result)->GetCount(); i++) {
17140 PyObject* number = PyInt_FromLong((&result)->Item(i));
17141 PyList_Append(resultobj, number);
17142 Py_DECREF(number);
093d3ff1 17143 }
0085ce49
RD
17144 }
17145 return resultobj;
17146fail:
17147 return NULL;
17148}
17149
17150
17151SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17152 PyObject *resultobj = 0;
17153 wxFontEncoding arg1 ;
17154 wxFontEncoding arg2 ;
17155 bool result;
17156 int val1 ;
17157 int ecode1 = 0 ;
17158 int val2 ;
17159 int ecode2 = 0 ;
17160 PyObject * obj0 = 0 ;
17161 PyObject * obj1 = 0 ;
17162 char * kwnames[] = {
17163 (char *) "encIn",(char *) "encOut", NULL
17164 };
17165
17166 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17167 ecode1 = SWIG_AsVal_int(obj0, &val1);
17168 if (!SWIG_IsOK(ecode1)) {
17169 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17170 }
17171 arg1 = static_cast< wxFontEncoding >(val1);
17172 ecode2 = SWIG_AsVal_int(obj1, &val2);
17173 if (!SWIG_IsOK(ecode2)) {
17174 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17175 }
17176 arg2 = static_cast< wxFontEncoding >(val2);
17177 {
17178 PyThreadState* __tstate = wxPyBeginAllowThreads();
17179 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17180 wxPyEndAllowThreads(__tstate);
17181 if (PyErr_Occurred()) SWIG_fail;
17182 }
17183 {
17184 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17185 }
17186 return resultobj;
17187fail:
17188 return NULL;
d14a1e28
RD
17189}
17190
17191
0085ce49
RD
17192SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17193 PyObject *obj;
17194 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17195 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17196 return SWIG_Py_Void();
d14a1e28
RD
17197}
17198
0085ce49
RD
17199SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17200 return SWIG_Python_InitShadowInstance(args);
d14a1e28
RD
17201}
17202
0085ce49
RD
17203SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17204 PyObject *resultobj = 0;
17205 wxDC *arg1 = (wxDC *) 0 ;
17206 void *argp1 = 0 ;
17207 int res1 = 0 ;
17208 PyObject *swig_obj[1] ;
17209
17210 if (!args) SWIG_fail;
17211 swig_obj[0] = args;
17212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17213 if (!SWIG_IsOK(res1)) {
17214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17215 }
17216 arg1 = reinterpret_cast< wxDC * >(argp1);
17217 {
17218 PyThreadState* __tstate = wxPyBeginAllowThreads();
17219 delete arg1;
d14a1e28 17220
0085ce49
RD
17221 wxPyEndAllowThreads(__tstate);
17222 if (PyErr_Occurred()) SWIG_fail;
17223 }
17224 resultobj = SWIG_Py_Void();
17225 return resultobj;
17226fail:
17227 return NULL;
17228}
17229
17230
17231SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17232 PyObject *resultobj = 0;
17233 wxDC *arg1 = (wxDC *) 0 ;
17234 int arg2 ;
17235 int arg3 ;
17236 wxColour *arg4 = 0 ;
17237 int arg5 = (int) wxFLOOD_SURFACE ;
17238 bool result;
17239 void *argp1 = 0 ;
17240 int res1 = 0 ;
17241 int val2 ;
17242 int ecode2 = 0 ;
17243 int val3 ;
17244 int ecode3 = 0 ;
17245 wxColour temp4 ;
17246 int val5 ;
17247 int ecode5 = 0 ;
17248 PyObject * obj0 = 0 ;
17249 PyObject * obj1 = 0 ;
17250 PyObject * obj2 = 0 ;
17251 PyObject * obj3 = 0 ;
17252 PyObject * obj4 = 0 ;
17253 char * kwnames[] = {
17254 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17255 };
17256
17257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17259 if (!SWIG_IsOK(res1)) {
17260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17261 }
17262 arg1 = reinterpret_cast< wxDC * >(argp1);
17263 ecode2 = SWIG_AsVal_int(obj1, &val2);
17264 if (!SWIG_IsOK(ecode2)) {
17265 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17266 }
17267 arg2 = static_cast< int >(val2);
17268 ecode3 = SWIG_AsVal_int(obj2, &val3);
17269 if (!SWIG_IsOK(ecode3)) {
17270 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17271 }
17272 arg3 = static_cast< int >(val3);
17273 {
17274 arg4 = &temp4;
17275 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17276 }
17277 if (obj4) {
17278 ecode5 = SWIG_AsVal_int(obj4, &val5);
17279 if (!SWIG_IsOK(ecode5)) {
17280 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17281 }
17282 arg5 = static_cast< int >(val5);
17283 }
17284 {
17285 PyThreadState* __tstate = wxPyBeginAllowThreads();
17286 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17287 wxPyEndAllowThreads(__tstate);
17288 if (PyErr_Occurred()) SWIG_fail;
17289 }
17290 {
17291 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17292 }
17293 return resultobj;
17294fail:
17295 return NULL;
17296}
17297
17298
17299SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17300 PyObject *resultobj = 0;
17301 wxDC *arg1 = (wxDC *) 0 ;
17302 wxPoint *arg2 = 0 ;
17303 wxColour *arg3 = 0 ;
17304 int arg4 = (int) wxFLOOD_SURFACE ;
17305 bool result;
17306 void *argp1 = 0 ;
17307 int res1 = 0 ;
17308 wxPoint temp2 ;
17309 wxColour temp3 ;
17310 int val4 ;
17311 int ecode4 = 0 ;
17312 PyObject * obj0 = 0 ;
17313 PyObject * obj1 = 0 ;
17314 PyObject * obj2 = 0 ;
17315 PyObject * obj3 = 0 ;
17316 char * kwnames[] = {
17317 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17318 };
17319
17320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17322 if (!SWIG_IsOK(res1)) {
17323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17324 }
17325 arg1 = reinterpret_cast< wxDC * >(argp1);
17326 {
17327 arg2 = &temp2;
17328 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17329 }
17330 {
17331 arg3 = &temp3;
17332 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17333 }
17334 if (obj3) {
17335 ecode4 = SWIG_AsVal_int(obj3, &val4);
17336 if (!SWIG_IsOK(ecode4)) {
17337 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17338 }
17339 arg4 = static_cast< int >(val4);
17340 }
17341 {
17342 PyThreadState* __tstate = wxPyBeginAllowThreads();
17343 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17344 wxPyEndAllowThreads(__tstate);
17345 if (PyErr_Occurred()) SWIG_fail;
17346 }
17347 {
17348 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17349 }
17350 return resultobj;
17351fail:
17352 return NULL;
17353}
17354
17355
17356SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17357 PyObject *resultobj = 0;
17358 wxDC *arg1 = (wxDC *) 0 ;
17359 wxRect *arg2 = 0 ;
17360 wxColour *arg3 = 0 ;
17361 wxColour *arg4 = 0 ;
17362 wxPoint *arg5 = 0 ;
17363 void *argp1 = 0 ;
17364 int res1 = 0 ;
17365 wxRect temp2 ;
17366 wxColour temp3 ;
17367 wxColour temp4 ;
17368 wxPoint temp5 ;
17369 PyObject * obj0 = 0 ;
17370 PyObject * obj1 = 0 ;
17371 PyObject * obj2 = 0 ;
17372 PyObject * obj3 = 0 ;
17373 PyObject * obj4 = 0 ;
17374 char * kwnames[] = {
17375 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17376 };
17377
17378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17380 if (!SWIG_IsOK(res1)) {
17381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17382 }
17383 arg1 = reinterpret_cast< wxDC * >(argp1);
17384 {
17385 arg2 = &temp2;
17386 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17387 }
17388 {
17389 arg3 = &temp3;
17390 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17391 }
17392 {
17393 arg4 = &temp4;
17394 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17395 }
17396 {
17397 arg5 = &temp5;
17398 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17399 }
17400 {
17401 PyThreadState* __tstate = wxPyBeginAllowThreads();
17402 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
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_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17414 PyObject *resultobj = 0;
17415 wxDC *arg1 = (wxDC *) 0 ;
17416 wxRect *arg2 = 0 ;
17417 wxColour *arg3 = 0 ;
17418 wxColour *arg4 = 0 ;
17419 wxDirection arg5 = (wxDirection) wxEAST ;
17420 void *argp1 = 0 ;
17421 int res1 = 0 ;
17422 wxRect temp2 ;
17423 wxColour temp3 ;
17424 wxColour temp4 ;
17425 int val5 ;
17426 int ecode5 = 0 ;
17427 PyObject * obj0 = 0 ;
17428 PyObject * obj1 = 0 ;
17429 PyObject * obj2 = 0 ;
17430 PyObject * obj3 = 0 ;
17431 PyObject * obj4 = 0 ;
17432 char * kwnames[] = {
17433 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
17434 };
17435
17436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17438 if (!SWIG_IsOK(res1)) {
17439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
17440 }
17441 arg1 = reinterpret_cast< wxDC * >(argp1);
17442 {
17443 arg2 = &temp2;
17444 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17445 }
17446 {
17447 arg3 = &temp3;
17448 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17449 }
17450 {
17451 arg4 = &temp4;
17452 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17453 }
17454 if (obj4) {
17455 ecode5 = SWIG_AsVal_int(obj4, &val5);
17456 if (!SWIG_IsOK(ecode5)) {
17457 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
17458 }
17459 arg5 = static_cast< wxDirection >(val5);
17460 }
17461 {
17462 PyThreadState* __tstate = wxPyBeginAllowThreads();
17463 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
17464 wxPyEndAllowThreads(__tstate);
17465 if (PyErr_Occurred()) SWIG_fail;
17466 }
17467 resultobj = SWIG_Py_Void();
17468 return resultobj;
17469fail:
17470 return NULL;
17471}
17472
17473
17474SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17475 PyObject *resultobj = 0;
17476 wxDC *arg1 = (wxDC *) 0 ;
17477 int arg2 ;
17478 int arg3 ;
17479 wxColour result;
17480 void *argp1 = 0 ;
17481 int res1 = 0 ;
17482 int val2 ;
17483 int ecode2 = 0 ;
17484 int val3 ;
17485 int ecode3 = 0 ;
17486 PyObject * obj0 = 0 ;
17487 PyObject * obj1 = 0 ;
17488 PyObject * obj2 = 0 ;
17489 char * kwnames[] = {
17490 (char *) "self",(char *) "x",(char *) "y", NULL
17491 };
17492
17493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17495 if (!SWIG_IsOK(res1)) {
17496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
17497 }
17498 arg1 = reinterpret_cast< wxDC * >(argp1);
17499 ecode2 = SWIG_AsVal_int(obj1, &val2);
17500 if (!SWIG_IsOK(ecode2)) {
17501 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
17502 }
17503 arg2 = static_cast< int >(val2);
17504 ecode3 = SWIG_AsVal_int(obj2, &val3);
17505 if (!SWIG_IsOK(ecode3)) {
17506 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
17507 }
17508 arg3 = static_cast< int >(val3);
17509 {
17510 PyThreadState* __tstate = wxPyBeginAllowThreads();
17511 result = wxDC_GetPixel(arg1,arg2,arg3);
17512 wxPyEndAllowThreads(__tstate);
17513 if (PyErr_Occurred()) SWIG_fail;
17514 }
17515 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17516 return resultobj;
17517fail:
17518 return NULL;
17519}
17520
17521
17522SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17523 PyObject *resultobj = 0;
17524 wxDC *arg1 = (wxDC *) 0 ;
17525 wxPoint *arg2 = 0 ;
17526 wxColour result;
17527 void *argp1 = 0 ;
17528 int res1 = 0 ;
17529 wxPoint temp2 ;
17530 PyObject * obj0 = 0 ;
17531 PyObject * obj1 = 0 ;
17532 char * kwnames[] = {
17533 (char *) "self",(char *) "pt", NULL
17534 };
17535
17536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",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_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17540 }
17541 arg1 = reinterpret_cast< wxDC * >(argp1);
17542 {
17543 arg2 = &temp2;
17544 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17545 }
17546 {
17547 PyThreadState* __tstate = wxPyBeginAllowThreads();
17548 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
17549 wxPyEndAllowThreads(__tstate);
17550 if (PyErr_Occurred()) SWIG_fail;
17551 }
17552 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17553 return resultobj;
17554fail:
17555 return NULL;
17556}
17557
17558
17559SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17560 PyObject *resultobj = 0;
17561 wxDC *arg1 = (wxDC *) 0 ;
17562 int arg2 ;
17563 int arg3 ;
17564 int arg4 ;
17565 int arg5 ;
17566 void *argp1 = 0 ;
17567 int res1 = 0 ;
17568 int val2 ;
17569 int ecode2 = 0 ;
17570 int val3 ;
17571 int ecode3 = 0 ;
17572 int val4 ;
17573 int ecode4 = 0 ;
17574 int val5 ;
17575 int ecode5 = 0 ;
17576 PyObject * obj0 = 0 ;
17577 PyObject * obj1 = 0 ;
17578 PyObject * obj2 = 0 ;
17579 PyObject * obj3 = 0 ;
17580 PyObject * obj4 = 0 ;
17581 char * kwnames[] = {
17582 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
17583 };
17584
17585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17587 if (!SWIG_IsOK(res1)) {
17588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
17589 }
17590 arg1 = reinterpret_cast< wxDC * >(argp1);
17591 ecode2 = SWIG_AsVal_int(obj1, &val2);
17592 if (!SWIG_IsOK(ecode2)) {
17593 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
17594 }
17595 arg2 = static_cast< int >(val2);
17596 ecode3 = SWIG_AsVal_int(obj2, &val3);
17597 if (!SWIG_IsOK(ecode3)) {
17598 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
17599 }
17600 arg3 = static_cast< int >(val3);
17601 ecode4 = SWIG_AsVal_int(obj3, &val4);
17602 if (!SWIG_IsOK(ecode4)) {
17603 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
17604 }
17605 arg4 = static_cast< int >(val4);
17606 ecode5 = SWIG_AsVal_int(obj4, &val5);
17607 if (!SWIG_IsOK(ecode5)) {
17608 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
17609 }
17610 arg5 = static_cast< int >(val5);
17611 {
17612 PyThreadState* __tstate = wxPyBeginAllowThreads();
17613 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
17614 wxPyEndAllowThreads(__tstate);
17615 if (PyErr_Occurred()) SWIG_fail;
17616 }
17617 resultobj = SWIG_Py_Void();
17618 return resultobj;
17619fail:
17620 return NULL;
17621}
17622
17623
17624SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17625 PyObject *resultobj = 0;
17626 wxDC *arg1 = (wxDC *) 0 ;
17627 wxPoint *arg2 = 0 ;
17628 wxPoint *arg3 = 0 ;
17629 void *argp1 = 0 ;
17630 int res1 = 0 ;
17631 wxPoint temp2 ;
17632 wxPoint temp3 ;
17633 PyObject * obj0 = 0 ;
17634 PyObject * obj1 = 0 ;
17635 PyObject * obj2 = 0 ;
17636 char * kwnames[] = {
17637 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
17638 };
17639
17640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17642 if (!SWIG_IsOK(res1)) {
17643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
17644 }
17645 arg1 = reinterpret_cast< wxDC * >(argp1);
17646 {
17647 arg2 = &temp2;
17648 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17649 }
17650 {
17651 arg3 = &temp3;
17652 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17653 }
17654 {
17655 PyThreadState* __tstate = wxPyBeginAllowThreads();
17656 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
17657 wxPyEndAllowThreads(__tstate);
17658 if (PyErr_Occurred()) SWIG_fail;
17659 }
17660 resultobj = SWIG_Py_Void();
17661 return resultobj;
17662fail:
17663 return NULL;
17664}
17665
17666
17667SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17668 PyObject *resultobj = 0;
17669 wxDC *arg1 = (wxDC *) 0 ;
17670 int arg2 ;
17671 int arg3 ;
17672 void *argp1 = 0 ;
17673 int res1 = 0 ;
17674 int val2 ;
17675 int ecode2 = 0 ;
17676 int val3 ;
17677 int ecode3 = 0 ;
17678 PyObject * obj0 = 0 ;
17679 PyObject * obj1 = 0 ;
17680 PyObject * obj2 = 0 ;
17681 char * kwnames[] = {
17682 (char *) "self",(char *) "x",(char *) "y", NULL
17683 };
17684
17685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17687 if (!SWIG_IsOK(res1)) {
17688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
17689 }
17690 arg1 = reinterpret_cast< wxDC * >(argp1);
17691 ecode2 = SWIG_AsVal_int(obj1, &val2);
17692 if (!SWIG_IsOK(ecode2)) {
17693 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
17694 }
17695 arg2 = static_cast< int >(val2);
17696 ecode3 = SWIG_AsVal_int(obj2, &val3);
17697 if (!SWIG_IsOK(ecode3)) {
17698 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
17699 }
17700 arg3 = static_cast< int >(val3);
17701 {
17702 PyThreadState* __tstate = wxPyBeginAllowThreads();
17703 (arg1)->CrossHair(arg2,arg3);
17704 wxPyEndAllowThreads(__tstate);
17705 if (PyErr_Occurred()) SWIG_fail;
17706 }
17707 resultobj = SWIG_Py_Void();
17708 return resultobj;
17709fail:
17710 return NULL;
17711}
17712
17713
17714SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17715 PyObject *resultobj = 0;
17716 wxDC *arg1 = (wxDC *) 0 ;
17717 wxPoint *arg2 = 0 ;
17718 void *argp1 = 0 ;
17719 int res1 = 0 ;
17720 wxPoint temp2 ;
17721 PyObject * obj0 = 0 ;
17722 PyObject * obj1 = 0 ;
17723 char * kwnames[] = {
17724 (char *) "self",(char *) "pt", NULL
17725 };
17726
17727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17729 if (!SWIG_IsOK(res1)) {
17730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17731 }
17732 arg1 = reinterpret_cast< wxDC * >(argp1);
17733 {
17734 arg2 = &temp2;
17735 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17736 }
17737 {
17738 PyThreadState* __tstate = wxPyBeginAllowThreads();
17739 (arg1)->CrossHair((wxPoint const &)*arg2);
17740 wxPyEndAllowThreads(__tstate);
17741 if (PyErr_Occurred()) SWIG_fail;
17742 }
17743 resultobj = SWIG_Py_Void();
17744 return resultobj;
17745fail:
17746 return NULL;
17747}
17748
17749
17750SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17751 PyObject *resultobj = 0;
17752 wxDC *arg1 = (wxDC *) 0 ;
17753 int arg2 ;
17754 int arg3 ;
17755 int arg4 ;
17756 int arg5 ;
17757 int arg6 ;
17758 int arg7 ;
17759 void *argp1 = 0 ;
17760 int res1 = 0 ;
17761 int val2 ;
17762 int ecode2 = 0 ;
17763 int val3 ;
17764 int ecode3 = 0 ;
17765 int val4 ;
17766 int ecode4 = 0 ;
17767 int val5 ;
17768 int ecode5 = 0 ;
17769 int val6 ;
17770 int ecode6 = 0 ;
17771 int val7 ;
17772 int ecode7 = 0 ;
17773 PyObject * obj0 = 0 ;
17774 PyObject * obj1 = 0 ;
17775 PyObject * obj2 = 0 ;
17776 PyObject * obj3 = 0 ;
17777 PyObject * obj4 = 0 ;
17778 PyObject * obj5 = 0 ;
17779 PyObject * obj6 = 0 ;
17780 char * kwnames[] = {
17781 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
17782 };
17783
17784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
17785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17786 if (!SWIG_IsOK(res1)) {
17787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
17788 }
17789 arg1 = reinterpret_cast< wxDC * >(argp1);
17790 ecode2 = SWIG_AsVal_int(obj1, &val2);
17791 if (!SWIG_IsOK(ecode2)) {
17792 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
17793 }
17794 arg2 = static_cast< int >(val2);
17795 ecode3 = SWIG_AsVal_int(obj2, &val3);
17796 if (!SWIG_IsOK(ecode3)) {
17797 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
17798 }
17799 arg3 = static_cast< int >(val3);
17800 ecode4 = SWIG_AsVal_int(obj3, &val4);
17801 if (!SWIG_IsOK(ecode4)) {
17802 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
17803 }
17804 arg4 = static_cast< int >(val4);
17805 ecode5 = SWIG_AsVal_int(obj4, &val5);
17806 if (!SWIG_IsOK(ecode5)) {
17807 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
17808 }
17809 arg5 = static_cast< int >(val5);
17810 ecode6 = SWIG_AsVal_int(obj5, &val6);
17811 if (!SWIG_IsOK(ecode6)) {
17812 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
17813 }
17814 arg6 = static_cast< int >(val6);
17815 ecode7 = SWIG_AsVal_int(obj6, &val7);
17816 if (!SWIG_IsOK(ecode7)) {
17817 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
17818 }
17819 arg7 = static_cast< int >(val7);
17820 {
17821 PyThreadState* __tstate = wxPyBeginAllowThreads();
17822 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
17823 wxPyEndAllowThreads(__tstate);
17824 if (PyErr_Occurred()) SWIG_fail;
17825 }
17826 resultobj = SWIG_Py_Void();
17827 return resultobj;
17828fail:
17829 return NULL;
17830}
17831
17832
17833SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17834 PyObject *resultobj = 0;
17835 wxDC *arg1 = (wxDC *) 0 ;
17836 wxPoint *arg2 = 0 ;
17837 wxPoint *arg3 = 0 ;
17838 wxPoint *arg4 = 0 ;
17839 void *argp1 = 0 ;
17840 int res1 = 0 ;
17841 wxPoint temp2 ;
17842 wxPoint temp3 ;
17843 wxPoint temp4 ;
17844 PyObject * obj0 = 0 ;
17845 PyObject * obj1 = 0 ;
17846 PyObject * obj2 = 0 ;
17847 PyObject * obj3 = 0 ;
17848 char * kwnames[] = {
17849 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
17850 };
17851
17852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17854 if (!SWIG_IsOK(res1)) {
17855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17856 }
17857 arg1 = reinterpret_cast< wxDC * >(argp1);
17858 {
17859 arg2 = &temp2;
17860 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17861 }
17862 {
17863 arg3 = &temp3;
17864 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17865 }
17866 {
17867 arg4 = &temp4;
17868 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17869 }
17870 {
17871 PyThreadState* __tstate = wxPyBeginAllowThreads();
17872 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
17873 wxPyEndAllowThreads(__tstate);
17874 if (PyErr_Occurred()) SWIG_fail;
17875 }
17876 resultobj = SWIG_Py_Void();
17877 return resultobj;
17878fail:
17879 return NULL;
17880}
17881
17882
17883SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17884 PyObject *resultobj = 0;
17885 wxDC *arg1 = (wxDC *) 0 ;
17886 int arg2 ;
17887 int arg3 ;
17888 int arg4 ;
17889 int arg5 ;
17890 void *argp1 = 0 ;
17891 int res1 = 0 ;
17892 int val2 ;
17893 int ecode2 = 0 ;
17894 int val3 ;
17895 int ecode3 = 0 ;
17896 int val4 ;
17897 int ecode4 = 0 ;
17898 int val5 ;
17899 int ecode5 = 0 ;
17900 PyObject * obj0 = 0 ;
17901 PyObject * obj1 = 0 ;
17902 PyObject * obj2 = 0 ;
17903 PyObject * obj3 = 0 ;
17904 PyObject * obj4 = 0 ;
17905 char * kwnames[] = {
17906 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
17907 };
17908
17909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17911 if (!SWIG_IsOK(res1)) {
17912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
17913 }
17914 arg1 = reinterpret_cast< wxDC * >(argp1);
17915 ecode2 = SWIG_AsVal_int(obj1, &val2);
17916 if (!SWIG_IsOK(ecode2)) {
17917 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
17918 }
17919 arg2 = static_cast< int >(val2);
17920 ecode3 = SWIG_AsVal_int(obj2, &val3);
17921 if (!SWIG_IsOK(ecode3)) {
17922 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
17923 }
17924 arg3 = static_cast< int >(val3);
17925 ecode4 = SWIG_AsVal_int(obj3, &val4);
17926 if (!SWIG_IsOK(ecode4)) {
17927 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
17928 }
17929 arg4 = static_cast< int >(val4);
17930 ecode5 = SWIG_AsVal_int(obj4, &val5);
17931 if (!SWIG_IsOK(ecode5)) {
17932 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
17933 }
17934 arg5 = static_cast< int >(val5);
17935 {
17936 PyThreadState* __tstate = wxPyBeginAllowThreads();
17937 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
17938 wxPyEndAllowThreads(__tstate);
17939 if (PyErr_Occurred()) SWIG_fail;
17940 }
17941 resultobj = SWIG_Py_Void();
17942 return resultobj;
17943fail:
17944 return NULL;
17945}
17946
17947
17948SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17949 PyObject *resultobj = 0;
17950 wxDC *arg1 = (wxDC *) 0 ;
17951 wxRect *arg2 = 0 ;
17952 void *argp1 = 0 ;
17953 int res1 = 0 ;
17954 wxRect temp2 ;
17955 PyObject * obj0 = 0 ;
17956 PyObject * obj1 = 0 ;
17957 char * kwnames[] = {
17958 (char *) "self",(char *) "rect", NULL
17959 };
17960
17961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
17962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17963 if (!SWIG_IsOK(res1)) {
17964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
17965 }
17966 arg1 = reinterpret_cast< wxDC * >(argp1);
17967 {
17968 arg2 = &temp2;
17969 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17970 }
17971 {
17972 PyThreadState* __tstate = wxPyBeginAllowThreads();
17973 (arg1)->DrawCheckMark((wxRect const &)*arg2);
17974 wxPyEndAllowThreads(__tstate);
17975 if (PyErr_Occurred()) SWIG_fail;
17976 }
17977 resultobj = SWIG_Py_Void();
17978 return resultobj;
17979fail:
17980 return NULL;
17981}
17982
17983
17984SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17985 PyObject *resultobj = 0;
17986 wxDC *arg1 = (wxDC *) 0 ;
17987 int arg2 ;
17988 int arg3 ;
17989 int arg4 ;
17990 int arg5 ;
17991 double arg6 ;
17992 double arg7 ;
17993 void *argp1 = 0 ;
17994 int res1 = 0 ;
17995 int val2 ;
17996 int ecode2 = 0 ;
17997 int val3 ;
17998 int ecode3 = 0 ;
17999 int val4 ;
18000 int ecode4 = 0 ;
18001 int val5 ;
18002 int ecode5 = 0 ;
18003 double val6 ;
18004 int ecode6 = 0 ;
18005 double val7 ;
18006 int ecode7 = 0 ;
18007 PyObject * obj0 = 0 ;
18008 PyObject * obj1 = 0 ;
18009 PyObject * obj2 = 0 ;
18010 PyObject * obj3 = 0 ;
18011 PyObject * obj4 = 0 ;
18012 PyObject * obj5 = 0 ;
18013 PyObject * obj6 = 0 ;
18014 char * kwnames[] = {
18015 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18016 };
18017
18018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18020 if (!SWIG_IsOK(res1)) {
18021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18022 }
18023 arg1 = reinterpret_cast< wxDC * >(argp1);
18024 ecode2 = SWIG_AsVal_int(obj1, &val2);
18025 if (!SWIG_IsOK(ecode2)) {
18026 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18027 }
18028 arg2 = static_cast< int >(val2);
18029 ecode3 = SWIG_AsVal_int(obj2, &val3);
18030 if (!SWIG_IsOK(ecode3)) {
18031 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18032 }
18033 arg3 = static_cast< int >(val3);
18034 ecode4 = SWIG_AsVal_int(obj3, &val4);
18035 if (!SWIG_IsOK(ecode4)) {
18036 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18037 }
18038 arg4 = static_cast< int >(val4);
18039 ecode5 = SWIG_AsVal_int(obj4, &val5);
18040 if (!SWIG_IsOK(ecode5)) {
18041 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18042 }
18043 arg5 = static_cast< int >(val5);
18044 ecode6 = SWIG_AsVal_double(obj5, &val6);
18045 if (!SWIG_IsOK(ecode6)) {
18046 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18047 }
18048 arg6 = static_cast< double >(val6);
18049 ecode7 = SWIG_AsVal_double(obj6, &val7);
18050 if (!SWIG_IsOK(ecode7)) {
18051 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18052 }
18053 arg7 = static_cast< double >(val7);
18054 {
18055 PyThreadState* __tstate = wxPyBeginAllowThreads();
18056 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18057 wxPyEndAllowThreads(__tstate);
18058 if (PyErr_Occurred()) SWIG_fail;
18059 }
18060 resultobj = SWIG_Py_Void();
18061 return resultobj;
18062fail:
18063 return NULL;
18064}
18065
18066
18067SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18068 PyObject *resultobj = 0;
18069 wxDC *arg1 = (wxDC *) 0 ;
18070 wxPoint *arg2 = 0 ;
18071 wxSize *arg3 = 0 ;
18072 double arg4 ;
18073 double arg5 ;
18074 void *argp1 = 0 ;
18075 int res1 = 0 ;
18076 wxPoint temp2 ;
18077 wxSize temp3 ;
18078 double val4 ;
18079 int ecode4 = 0 ;
18080 double val5 ;
18081 int ecode5 = 0 ;
18082 PyObject * obj0 = 0 ;
18083 PyObject * obj1 = 0 ;
18084 PyObject * obj2 = 0 ;
18085 PyObject * obj3 = 0 ;
18086 PyObject * obj4 = 0 ;
18087 char * kwnames[] = {
18088 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18089 };
18090
18091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18093 if (!SWIG_IsOK(res1)) {
18094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18095 }
18096 arg1 = reinterpret_cast< wxDC * >(argp1);
18097 {
18098 arg2 = &temp2;
18099 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18100 }
18101 {
18102 arg3 = &temp3;
18103 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18104 }
18105 ecode4 = SWIG_AsVal_double(obj3, &val4);
18106 if (!SWIG_IsOK(ecode4)) {
18107 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18108 }
18109 arg4 = static_cast< double >(val4);
18110 ecode5 = SWIG_AsVal_double(obj4, &val5);
18111 if (!SWIG_IsOK(ecode5)) {
18112 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18113 }
18114 arg5 = static_cast< double >(val5);
18115 {
18116 PyThreadState* __tstate = wxPyBeginAllowThreads();
18117 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18118 wxPyEndAllowThreads(__tstate);
18119 if (PyErr_Occurred()) SWIG_fail;
18120 }
18121 resultobj = SWIG_Py_Void();
18122 return resultobj;
18123fail:
18124 return NULL;
18125}
18126
18127
18128SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18129 PyObject *resultobj = 0;
18130 wxDC *arg1 = (wxDC *) 0 ;
18131 int arg2 ;
18132 int arg3 ;
18133 void *argp1 = 0 ;
18134 int res1 = 0 ;
18135 int val2 ;
18136 int ecode2 = 0 ;
18137 int val3 ;
18138 int ecode3 = 0 ;
18139 PyObject * obj0 = 0 ;
18140 PyObject * obj1 = 0 ;
18141 PyObject * obj2 = 0 ;
18142 char * kwnames[] = {
18143 (char *) "self",(char *) "x",(char *) "y", NULL
18144 };
18145
18146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18148 if (!SWIG_IsOK(res1)) {
18149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18150 }
18151 arg1 = reinterpret_cast< wxDC * >(argp1);
18152 ecode2 = SWIG_AsVal_int(obj1, &val2);
18153 if (!SWIG_IsOK(ecode2)) {
18154 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18155 }
18156 arg2 = static_cast< int >(val2);
18157 ecode3 = SWIG_AsVal_int(obj2, &val3);
18158 if (!SWIG_IsOK(ecode3)) {
18159 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18160 }
18161 arg3 = static_cast< int >(val3);
18162 {
18163 PyThreadState* __tstate = wxPyBeginAllowThreads();
18164 (arg1)->DrawPoint(arg2,arg3);
18165 wxPyEndAllowThreads(__tstate);
18166 if (PyErr_Occurred()) SWIG_fail;
18167 }
18168 resultobj = SWIG_Py_Void();
18169 return resultobj;
18170fail:
18171 return NULL;
18172}
18173
18174
18175SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18176 PyObject *resultobj = 0;
18177 wxDC *arg1 = (wxDC *) 0 ;
18178 wxPoint *arg2 = 0 ;
18179 void *argp1 = 0 ;
18180 int res1 = 0 ;
18181 wxPoint temp2 ;
18182 PyObject * obj0 = 0 ;
18183 PyObject * obj1 = 0 ;
18184 char * kwnames[] = {
18185 (char *) "self",(char *) "pt", NULL
18186 };
18187
18188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18190 if (!SWIG_IsOK(res1)) {
18191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18192 }
18193 arg1 = reinterpret_cast< wxDC * >(argp1);
18194 {
18195 arg2 = &temp2;
18196 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18197 }
18198 {
18199 PyThreadState* __tstate = wxPyBeginAllowThreads();
18200 (arg1)->DrawPoint((wxPoint const &)*arg2);
18201 wxPyEndAllowThreads(__tstate);
18202 if (PyErr_Occurred()) SWIG_fail;
18203 }
18204 resultobj = SWIG_Py_Void();
18205 return resultobj;
18206fail:
18207 return NULL;
18208}
18209
18210
18211SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18212 PyObject *resultobj = 0;
18213 wxDC *arg1 = (wxDC *) 0 ;
18214 int arg2 ;
18215 int arg3 ;
18216 int arg4 ;
18217 int arg5 ;
18218 void *argp1 = 0 ;
18219 int res1 = 0 ;
18220 int val2 ;
18221 int ecode2 = 0 ;
18222 int val3 ;
18223 int ecode3 = 0 ;
18224 int val4 ;
18225 int ecode4 = 0 ;
18226 int val5 ;
18227 int ecode5 = 0 ;
18228 PyObject * obj0 = 0 ;
18229 PyObject * obj1 = 0 ;
18230 PyObject * obj2 = 0 ;
18231 PyObject * obj3 = 0 ;
18232 PyObject * obj4 = 0 ;
18233 char * kwnames[] = {
18234 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18235 };
18236
18237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18239 if (!SWIG_IsOK(res1)) {
18240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18241 }
18242 arg1 = reinterpret_cast< wxDC * >(argp1);
18243 ecode2 = SWIG_AsVal_int(obj1, &val2);
18244 if (!SWIG_IsOK(ecode2)) {
18245 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18246 }
18247 arg2 = static_cast< int >(val2);
18248 ecode3 = SWIG_AsVal_int(obj2, &val3);
18249 if (!SWIG_IsOK(ecode3)) {
18250 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18251 }
18252 arg3 = static_cast< int >(val3);
18253 ecode4 = SWIG_AsVal_int(obj3, &val4);
18254 if (!SWIG_IsOK(ecode4)) {
18255 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18256 }
18257 arg4 = static_cast< int >(val4);
18258 ecode5 = SWIG_AsVal_int(obj4, &val5);
18259 if (!SWIG_IsOK(ecode5)) {
18260 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18261 }
18262 arg5 = static_cast< int >(val5);
18263 {
18264 PyThreadState* __tstate = wxPyBeginAllowThreads();
18265 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18266 wxPyEndAllowThreads(__tstate);
18267 if (PyErr_Occurred()) SWIG_fail;
18268 }
18269 resultobj = SWIG_Py_Void();
18270 return resultobj;
18271fail:
18272 return NULL;
18273}
18274
18275
18276SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18277 PyObject *resultobj = 0;
18278 wxDC *arg1 = (wxDC *) 0 ;
18279 wxRect *arg2 = 0 ;
18280 void *argp1 = 0 ;
18281 int res1 = 0 ;
18282 wxRect temp2 ;
18283 PyObject * obj0 = 0 ;
18284 PyObject * obj1 = 0 ;
18285 char * kwnames[] = {
18286 (char *) "self",(char *) "rect", NULL
18287 };
18288
18289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18291 if (!SWIG_IsOK(res1)) {
18292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18293 }
18294 arg1 = reinterpret_cast< wxDC * >(argp1);
18295 {
18296 arg2 = &temp2;
18297 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18298 }
18299 {
18300 PyThreadState* __tstate = wxPyBeginAllowThreads();
18301 (arg1)->DrawRectangle((wxRect const &)*arg2);
18302 wxPyEndAllowThreads(__tstate);
18303 if (PyErr_Occurred()) SWIG_fail;
18304 }
18305 resultobj = SWIG_Py_Void();
18306 return resultobj;
18307fail:
18308 return NULL;
18309}
18310
18311
18312SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18313 PyObject *resultobj = 0;
18314 wxDC *arg1 = (wxDC *) 0 ;
18315 wxPoint *arg2 = 0 ;
18316 wxSize *arg3 = 0 ;
18317 void *argp1 = 0 ;
18318 int res1 = 0 ;
18319 wxPoint temp2 ;
18320 wxSize temp3 ;
18321 PyObject * obj0 = 0 ;
18322 PyObject * obj1 = 0 ;
18323 PyObject * obj2 = 0 ;
18324 char * kwnames[] = {
18325 (char *) "self",(char *) "pt",(char *) "sz", NULL
18326 };
18327
18328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18330 if (!SWIG_IsOK(res1)) {
18331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18332 }
18333 arg1 = reinterpret_cast< wxDC * >(argp1);
18334 {
18335 arg2 = &temp2;
18336 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18337 }
18338 {
18339 arg3 = &temp3;
18340 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18341 }
18342 {
18343 PyThreadState* __tstate = wxPyBeginAllowThreads();
18344 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18345 wxPyEndAllowThreads(__tstate);
18346 if (PyErr_Occurred()) SWIG_fail;
18347 }
18348 resultobj = SWIG_Py_Void();
18349 return resultobj;
18350fail:
18351 return NULL;
18352}
18353
18354
18355SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18356 PyObject *resultobj = 0;
18357 wxDC *arg1 = (wxDC *) 0 ;
18358 int arg2 ;
18359 int arg3 ;
18360 int arg4 ;
18361 int arg5 ;
18362 double arg6 ;
18363 void *argp1 = 0 ;
18364 int res1 = 0 ;
18365 int val2 ;
18366 int ecode2 = 0 ;
18367 int val3 ;
18368 int ecode3 = 0 ;
18369 int val4 ;
18370 int ecode4 = 0 ;
18371 int val5 ;
18372 int ecode5 = 0 ;
18373 double val6 ;
18374 int ecode6 = 0 ;
18375 PyObject * obj0 = 0 ;
18376 PyObject * obj1 = 0 ;
18377 PyObject * obj2 = 0 ;
18378 PyObject * obj3 = 0 ;
18379 PyObject * obj4 = 0 ;
18380 PyObject * obj5 = 0 ;
18381 char * kwnames[] = {
18382 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18383 };
18384
18385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18387 if (!SWIG_IsOK(res1)) {
18388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18389 }
18390 arg1 = reinterpret_cast< wxDC * >(argp1);
18391 ecode2 = SWIG_AsVal_int(obj1, &val2);
18392 if (!SWIG_IsOK(ecode2)) {
18393 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18394 }
18395 arg2 = static_cast< int >(val2);
18396 ecode3 = SWIG_AsVal_int(obj2, &val3);
18397 if (!SWIG_IsOK(ecode3)) {
18398 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18399 }
18400 arg3 = static_cast< int >(val3);
18401 ecode4 = SWIG_AsVal_int(obj3, &val4);
18402 if (!SWIG_IsOK(ecode4)) {
18403 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18404 }
18405 arg4 = static_cast< int >(val4);
18406 ecode5 = SWIG_AsVal_int(obj4, &val5);
18407 if (!SWIG_IsOK(ecode5)) {
18408 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18409 }
18410 arg5 = static_cast< int >(val5);
18411 ecode6 = SWIG_AsVal_double(obj5, &val6);
18412 if (!SWIG_IsOK(ecode6)) {
18413 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18414 }
18415 arg6 = static_cast< double >(val6);
18416 {
18417 PyThreadState* __tstate = wxPyBeginAllowThreads();
18418 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18419 wxPyEndAllowThreads(__tstate);
18420 if (PyErr_Occurred()) SWIG_fail;
18421 }
18422 resultobj = SWIG_Py_Void();
18423 return resultobj;
18424fail:
18425 return NULL;
18426}
18427
18428
18429SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18430 PyObject *resultobj = 0;
18431 wxDC *arg1 = (wxDC *) 0 ;
18432 wxRect *arg2 = 0 ;
18433 double arg3 ;
18434 void *argp1 = 0 ;
18435 int res1 = 0 ;
18436 wxRect temp2 ;
18437 double val3 ;
18438 int ecode3 = 0 ;
18439 PyObject * obj0 = 0 ;
18440 PyObject * obj1 = 0 ;
18441 PyObject * obj2 = 0 ;
18442 char * kwnames[] = {
18443 (char *) "self",(char *) "r",(char *) "radius", NULL
18444 };
18445
18446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18448 if (!SWIG_IsOK(res1)) {
18449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18450 }
18451 arg1 = reinterpret_cast< wxDC * >(argp1);
18452 {
18453 arg2 = &temp2;
18454 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18455 }
18456 ecode3 = SWIG_AsVal_double(obj2, &val3);
18457 if (!SWIG_IsOK(ecode3)) {
18458 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
18459 }
18460 arg3 = static_cast< double >(val3);
18461 {
18462 PyThreadState* __tstate = wxPyBeginAllowThreads();
18463 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
18464 wxPyEndAllowThreads(__tstate);
18465 if (PyErr_Occurred()) SWIG_fail;
18466 }
18467 resultobj = SWIG_Py_Void();
18468 return resultobj;
18469fail:
18470 return NULL;
18471}
18472
18473
18474SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18475 PyObject *resultobj = 0;
18476 wxDC *arg1 = (wxDC *) 0 ;
18477 wxPoint *arg2 = 0 ;
18478 wxSize *arg3 = 0 ;
18479 double arg4 ;
18480 void *argp1 = 0 ;
18481 int res1 = 0 ;
18482 wxPoint temp2 ;
18483 wxSize temp3 ;
18484 double val4 ;
18485 int ecode4 = 0 ;
18486 PyObject * obj0 = 0 ;
18487 PyObject * obj1 = 0 ;
18488 PyObject * obj2 = 0 ;
18489 PyObject * obj3 = 0 ;
18490 char * kwnames[] = {
18491 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
18492 };
18493
18494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18496 if (!SWIG_IsOK(res1)) {
18497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18498 }
18499 arg1 = reinterpret_cast< wxDC * >(argp1);
18500 {
18501 arg2 = &temp2;
18502 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18503 }
18504 {
18505 arg3 = &temp3;
18506 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18507 }
18508 ecode4 = SWIG_AsVal_double(obj3, &val4);
18509 if (!SWIG_IsOK(ecode4)) {
18510 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
18511 }
18512 arg4 = static_cast< double >(val4);
18513 {
18514 PyThreadState* __tstate = wxPyBeginAllowThreads();
18515 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
18516 wxPyEndAllowThreads(__tstate);
18517 if (PyErr_Occurred()) SWIG_fail;
18518 }
18519 resultobj = SWIG_Py_Void();
18520 return resultobj;
18521fail:
18522 return NULL;
18523}
18524
18525
18526SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18527 PyObject *resultobj = 0;
18528 wxDC *arg1 = (wxDC *) 0 ;
18529 int arg2 ;
18530 int arg3 ;
18531 int arg4 ;
18532 void *argp1 = 0 ;
18533 int res1 = 0 ;
18534 int val2 ;
18535 int ecode2 = 0 ;
18536 int val3 ;
18537 int ecode3 = 0 ;
18538 int val4 ;
18539 int ecode4 = 0 ;
18540 PyObject * obj0 = 0 ;
18541 PyObject * obj1 = 0 ;
18542 PyObject * obj2 = 0 ;
18543 PyObject * obj3 = 0 ;
18544 char * kwnames[] = {
18545 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
18546 };
18547
18548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18550 if (!SWIG_IsOK(res1)) {
18551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
18552 }
18553 arg1 = reinterpret_cast< wxDC * >(argp1);
18554 ecode2 = SWIG_AsVal_int(obj1, &val2);
18555 if (!SWIG_IsOK(ecode2)) {
18556 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
18557 }
18558 arg2 = static_cast< int >(val2);
18559 ecode3 = SWIG_AsVal_int(obj2, &val3);
18560 if (!SWIG_IsOK(ecode3)) {
18561 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
18562 }
18563 arg3 = static_cast< int >(val3);
18564 ecode4 = SWIG_AsVal_int(obj3, &val4);
18565 if (!SWIG_IsOK(ecode4)) {
18566 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
18567 }
18568 arg4 = static_cast< int >(val4);
18569 {
18570 PyThreadState* __tstate = wxPyBeginAllowThreads();
18571 (arg1)->DrawCircle(arg2,arg3,arg4);
18572 wxPyEndAllowThreads(__tstate);
18573 if (PyErr_Occurred()) SWIG_fail;
18574 }
18575 resultobj = SWIG_Py_Void();
18576 return resultobj;
18577fail:
18578 return NULL;
18579}
18580
18581
18582SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18583 PyObject *resultobj = 0;
18584 wxDC *arg1 = (wxDC *) 0 ;
18585 wxPoint *arg2 = 0 ;
18586 int arg3 ;
18587 void *argp1 = 0 ;
18588 int res1 = 0 ;
18589 wxPoint temp2 ;
18590 int val3 ;
18591 int ecode3 = 0 ;
18592 PyObject * obj0 = 0 ;
18593 PyObject * obj1 = 0 ;
18594 PyObject * obj2 = 0 ;
18595 char * kwnames[] = {
18596 (char *) "self",(char *) "pt",(char *) "radius", NULL
18597 };
18598
18599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18601 if (!SWIG_IsOK(res1)) {
18602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18603 }
18604 arg1 = reinterpret_cast< wxDC * >(argp1);
18605 {
18606 arg2 = &temp2;
18607 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18608 }
18609 ecode3 = SWIG_AsVal_int(obj2, &val3);
18610 if (!SWIG_IsOK(ecode3)) {
18611 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
18612 }
18613 arg3 = static_cast< int >(val3);
18614 {
18615 PyThreadState* __tstate = wxPyBeginAllowThreads();
18616 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
18617 wxPyEndAllowThreads(__tstate);
18618 if (PyErr_Occurred()) SWIG_fail;
18619 }
18620 resultobj = SWIG_Py_Void();
18621 return resultobj;
18622fail:
18623 return NULL;
18624}
18625
18626
18627SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18628 PyObject *resultobj = 0;
18629 wxDC *arg1 = (wxDC *) 0 ;
18630 int arg2 ;
18631 int arg3 ;
18632 int arg4 ;
18633 int arg5 ;
18634 void *argp1 = 0 ;
18635 int res1 = 0 ;
18636 int val2 ;
18637 int ecode2 = 0 ;
18638 int val3 ;
18639 int ecode3 = 0 ;
18640 int val4 ;
18641 int ecode4 = 0 ;
18642 int val5 ;
18643 int ecode5 = 0 ;
18644 PyObject * obj0 = 0 ;
18645 PyObject * obj1 = 0 ;
18646 PyObject * obj2 = 0 ;
18647 PyObject * obj3 = 0 ;
18648 PyObject * obj4 = 0 ;
18649 char * kwnames[] = {
18650 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18651 };
18652
18653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18655 if (!SWIG_IsOK(res1)) {
18656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
18657 }
18658 arg1 = reinterpret_cast< wxDC * >(argp1);
18659 ecode2 = SWIG_AsVal_int(obj1, &val2);
18660 if (!SWIG_IsOK(ecode2)) {
18661 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
18662 }
18663 arg2 = static_cast< int >(val2);
18664 ecode3 = SWIG_AsVal_int(obj2, &val3);
18665 if (!SWIG_IsOK(ecode3)) {
18666 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
18667 }
18668 arg3 = static_cast< int >(val3);
18669 ecode4 = SWIG_AsVal_int(obj3, &val4);
18670 if (!SWIG_IsOK(ecode4)) {
18671 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
18672 }
18673 arg4 = static_cast< int >(val4);
18674 ecode5 = SWIG_AsVal_int(obj4, &val5);
18675 if (!SWIG_IsOK(ecode5)) {
18676 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
18677 }
18678 arg5 = static_cast< int >(val5);
18679 {
18680 PyThreadState* __tstate = wxPyBeginAllowThreads();
18681 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
18682 wxPyEndAllowThreads(__tstate);
18683 if (PyErr_Occurred()) SWIG_fail;
18684 }
18685 resultobj = SWIG_Py_Void();
18686 return resultobj;
18687fail:
18688 return NULL;
18689}
18690
18691
18692SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18693 PyObject *resultobj = 0;
18694 wxDC *arg1 = (wxDC *) 0 ;
18695 wxRect *arg2 = 0 ;
18696 void *argp1 = 0 ;
18697 int res1 = 0 ;
18698 wxRect temp2 ;
18699 PyObject * obj0 = 0 ;
18700 PyObject * obj1 = 0 ;
18701 char * kwnames[] = {
18702 (char *) "self",(char *) "rect", NULL
18703 };
18704
18705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
18706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18707 if (!SWIG_IsOK(res1)) {
18708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
18709 }
18710 arg1 = reinterpret_cast< wxDC * >(argp1);
18711 {
18712 arg2 = &temp2;
18713 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18714 }
18715 {
18716 PyThreadState* __tstate = wxPyBeginAllowThreads();
18717 (arg1)->DrawEllipse((wxRect const &)*arg2);
18718 wxPyEndAllowThreads(__tstate);
18719 if (PyErr_Occurred()) SWIG_fail;
18720 }
18721 resultobj = SWIG_Py_Void();
18722 return resultobj;
18723fail:
18724 return NULL;
18725}
18726
18727
18728SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18729 PyObject *resultobj = 0;
18730 wxDC *arg1 = (wxDC *) 0 ;
18731 wxPoint *arg2 = 0 ;
18732 wxSize *arg3 = 0 ;
18733 void *argp1 = 0 ;
18734 int res1 = 0 ;
18735 wxPoint temp2 ;
18736 wxSize temp3 ;
18737 PyObject * obj0 = 0 ;
18738 PyObject * obj1 = 0 ;
18739 PyObject * obj2 = 0 ;
18740 char * kwnames[] = {
18741 (char *) "self",(char *) "pt",(char *) "sz", NULL
18742 };
18743
18744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18746 if (!SWIG_IsOK(res1)) {
18747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18748 }
18749 arg1 = reinterpret_cast< wxDC * >(argp1);
18750 {
18751 arg2 = &temp2;
18752 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18753 }
18754 {
18755 arg3 = &temp3;
18756 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18757 }
18758 {
18759 PyThreadState* __tstate = wxPyBeginAllowThreads();
18760 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
18761 wxPyEndAllowThreads(__tstate);
18762 if (PyErr_Occurred()) SWIG_fail;
18763 }
18764 resultobj = SWIG_Py_Void();
18765 return resultobj;
18766fail:
18767 return NULL;
18768}
18769
18770
18771SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18772 PyObject *resultobj = 0;
18773 wxDC *arg1 = (wxDC *) 0 ;
18774 wxIcon *arg2 = 0 ;
18775 int arg3 ;
18776 int arg4 ;
18777 void *argp1 = 0 ;
18778 int res1 = 0 ;
18779 void *argp2 = 0 ;
18780 int res2 = 0 ;
18781 int val3 ;
18782 int ecode3 = 0 ;
18783 int val4 ;
18784 int ecode4 = 0 ;
18785 PyObject * obj0 = 0 ;
18786 PyObject * obj1 = 0 ;
18787 PyObject * obj2 = 0 ;
18788 PyObject * obj3 = 0 ;
18789 char * kwnames[] = {
18790 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
18791 };
18792
18793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18795 if (!SWIG_IsOK(res1)) {
18796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
18797 }
18798 arg1 = reinterpret_cast< wxDC * >(argp1);
18799 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
18800 if (!SWIG_IsOK(res2)) {
18801 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
18802 }
18803 if (!argp2) {
18804 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
18805 }
18806 arg2 = reinterpret_cast< wxIcon * >(argp2);
18807 ecode3 = SWIG_AsVal_int(obj2, &val3);
18808 if (!SWIG_IsOK(ecode3)) {
18809 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
18810 }
18811 arg3 = static_cast< int >(val3);
18812 ecode4 = SWIG_AsVal_int(obj3, &val4);
18813 if (!SWIG_IsOK(ecode4)) {
18814 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
18815 }
18816 arg4 = static_cast< int >(val4);
18817 {
18818 PyThreadState* __tstate = wxPyBeginAllowThreads();
18819 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
18820 wxPyEndAllowThreads(__tstate);
18821 if (PyErr_Occurred()) SWIG_fail;
18822 }
18823 resultobj = SWIG_Py_Void();
18824 return resultobj;
18825fail:
18826 return NULL;
18827}
18828
18829
18830SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18831 PyObject *resultobj = 0;
18832 wxDC *arg1 = (wxDC *) 0 ;
18833 wxIcon *arg2 = 0 ;
18834 wxPoint *arg3 = 0 ;
18835 void *argp1 = 0 ;
18836 int res1 = 0 ;
18837 void *argp2 = 0 ;
18838 int res2 = 0 ;
18839 wxPoint temp3 ;
18840 PyObject * obj0 = 0 ;
18841 PyObject * obj1 = 0 ;
18842 PyObject * obj2 = 0 ;
18843 char * kwnames[] = {
18844 (char *) "self",(char *) "icon",(char *) "pt", NULL
18845 };
18846
18847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18849 if (!SWIG_IsOK(res1)) {
18850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18851 }
18852 arg1 = reinterpret_cast< wxDC * >(argp1);
18853 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
18854 if (!SWIG_IsOK(res2)) {
18855 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
18856 }
18857 if (!argp2) {
18858 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
18859 }
18860 arg2 = reinterpret_cast< wxIcon * >(argp2);
18861 {
18862 arg3 = &temp3;
18863 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18864 }
18865 {
18866 PyThreadState* __tstate = wxPyBeginAllowThreads();
18867 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
18868 wxPyEndAllowThreads(__tstate);
18869 if (PyErr_Occurred()) SWIG_fail;
18870 }
18871 resultobj = SWIG_Py_Void();
18872 return resultobj;
18873fail:
18874 return NULL;
18875}
18876
18877
18878SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18879 PyObject *resultobj = 0;
18880 wxDC *arg1 = (wxDC *) 0 ;
18881 wxBitmap *arg2 = 0 ;
18882 int arg3 ;
18883 int arg4 ;
18884 bool arg5 = (bool) false ;
18885 void *argp1 = 0 ;
18886 int res1 = 0 ;
18887 void *argp2 = 0 ;
18888 int res2 = 0 ;
18889 int val3 ;
18890 int ecode3 = 0 ;
18891 int val4 ;
18892 int ecode4 = 0 ;
18893 bool val5 ;
18894 int ecode5 = 0 ;
18895 PyObject * obj0 = 0 ;
18896 PyObject * obj1 = 0 ;
18897 PyObject * obj2 = 0 ;
18898 PyObject * obj3 = 0 ;
18899 PyObject * obj4 = 0 ;
18900 char * kwnames[] = {
18901 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
18902 };
18903
18904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18906 if (!SWIG_IsOK(res1)) {
18907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
18908 }
18909 arg1 = reinterpret_cast< wxDC * >(argp1);
18910 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
18911 if (!SWIG_IsOK(res2)) {
18912 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18913 }
18914 if (!argp2) {
18915 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18916 }
18917 arg2 = reinterpret_cast< wxBitmap * >(argp2);
18918 ecode3 = SWIG_AsVal_int(obj2, &val3);
18919 if (!SWIG_IsOK(ecode3)) {
18920 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
18921 }
18922 arg3 = static_cast< int >(val3);
18923 ecode4 = SWIG_AsVal_int(obj3, &val4);
18924 if (!SWIG_IsOK(ecode4)) {
18925 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
18926 }
18927 arg4 = static_cast< int >(val4);
18928 if (obj4) {
18929 ecode5 = SWIG_AsVal_bool(obj4, &val5);
18930 if (!SWIG_IsOK(ecode5)) {
18931 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
18932 }
18933 arg5 = static_cast< bool >(val5);
18934 }
18935 {
18936 PyThreadState* __tstate = wxPyBeginAllowThreads();
18937 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
18938 wxPyEndAllowThreads(__tstate);
18939 if (PyErr_Occurred()) SWIG_fail;
18940 }
18941 resultobj = SWIG_Py_Void();
18942 return resultobj;
18943fail:
18944 return NULL;
18945}
18946
18947
18948SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18949 PyObject *resultobj = 0;
18950 wxDC *arg1 = (wxDC *) 0 ;
18951 wxBitmap *arg2 = 0 ;
18952 wxPoint *arg3 = 0 ;
18953 bool arg4 = (bool) false ;
18954 void *argp1 = 0 ;
18955 int res1 = 0 ;
18956 void *argp2 = 0 ;
18957 int res2 = 0 ;
18958 wxPoint temp3 ;
18959 bool val4 ;
18960 int ecode4 = 0 ;
18961 PyObject * obj0 = 0 ;
18962 PyObject * obj1 = 0 ;
18963 PyObject * obj2 = 0 ;
18964 PyObject * obj3 = 0 ;
18965 char * kwnames[] = {
18966 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
18967 };
18968
18969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18971 if (!SWIG_IsOK(res1)) {
18972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18973 }
18974 arg1 = reinterpret_cast< wxDC * >(argp1);
18975 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
18976 if (!SWIG_IsOK(res2)) {
18977 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18978 }
18979 if (!argp2) {
18980 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18981 }
18982 arg2 = reinterpret_cast< wxBitmap * >(argp2);
18983 {
18984 arg3 = &temp3;
18985 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18986 }
18987 if (obj3) {
18988 ecode4 = SWIG_AsVal_bool(obj3, &val4);
18989 if (!SWIG_IsOK(ecode4)) {
18990 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
18991 }
18992 arg4 = static_cast< bool >(val4);
18993 }
18994 {
18995 PyThreadState* __tstate = wxPyBeginAllowThreads();
18996 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
18997 wxPyEndAllowThreads(__tstate);
18998 if (PyErr_Occurred()) SWIG_fail;
18999 }
19000 resultobj = SWIG_Py_Void();
19001 return resultobj;
19002fail:
19003 return NULL;
19004}
19005
19006
19007SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19008 PyObject *resultobj = 0;
19009 wxDC *arg1 = (wxDC *) 0 ;
19010 wxString *arg2 = 0 ;
19011 int arg3 ;
19012 int arg4 ;
19013 void *argp1 = 0 ;
19014 int res1 = 0 ;
19015 bool temp2 = false ;
19016 int val3 ;
19017 int ecode3 = 0 ;
19018 int val4 ;
19019 int ecode4 = 0 ;
19020 PyObject * obj0 = 0 ;
19021 PyObject * obj1 = 0 ;
19022 PyObject * obj2 = 0 ;
19023 PyObject * obj3 = 0 ;
19024 char * kwnames[] = {
19025 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19026 };
19027
19028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19030 if (!SWIG_IsOK(res1)) {
19031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19032 }
19033 arg1 = reinterpret_cast< wxDC * >(argp1);
19034 {
19035 arg2 = wxString_in_helper(obj1);
19036 if (arg2 == NULL) SWIG_fail;
19037 temp2 = true;
19038 }
19039 ecode3 = SWIG_AsVal_int(obj2, &val3);
19040 if (!SWIG_IsOK(ecode3)) {
19041 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19042 }
19043 arg3 = static_cast< int >(val3);
19044 ecode4 = SWIG_AsVal_int(obj3, &val4);
19045 if (!SWIG_IsOK(ecode4)) {
19046 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19047 }
19048 arg4 = static_cast< int >(val4);
19049 {
19050 PyThreadState* __tstate = wxPyBeginAllowThreads();
19051 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19052 wxPyEndAllowThreads(__tstate);
19053 if (PyErr_Occurred()) SWIG_fail;
19054 }
19055 resultobj = SWIG_Py_Void();
19056 {
19057 if (temp2)
19058 delete arg2;
19059 }
19060 return resultobj;
19061fail:
19062 {
19063 if (temp2)
19064 delete arg2;
19065 }
19066 return NULL;
19067}
19068
19069
19070SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19071 PyObject *resultobj = 0;
19072 wxDC *arg1 = (wxDC *) 0 ;
19073 wxString *arg2 = 0 ;
19074 wxPoint *arg3 = 0 ;
19075 void *argp1 = 0 ;
19076 int res1 = 0 ;
19077 bool temp2 = false ;
19078 wxPoint temp3 ;
19079 PyObject * obj0 = 0 ;
19080 PyObject * obj1 = 0 ;
19081 PyObject * obj2 = 0 ;
19082 char * kwnames[] = {
19083 (char *) "self",(char *) "text",(char *) "pt", NULL
19084 };
19085
19086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19088 if (!SWIG_IsOK(res1)) {
19089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19090 }
19091 arg1 = reinterpret_cast< wxDC * >(argp1);
19092 {
19093 arg2 = wxString_in_helper(obj1);
19094 if (arg2 == NULL) SWIG_fail;
19095 temp2 = true;
19096 }
19097 {
19098 arg3 = &temp3;
19099 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19100 }
19101 {
19102 PyThreadState* __tstate = wxPyBeginAllowThreads();
19103 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19104 wxPyEndAllowThreads(__tstate);
19105 if (PyErr_Occurred()) SWIG_fail;
19106 }
19107 resultobj = SWIG_Py_Void();
19108 {
19109 if (temp2)
19110 delete arg2;
19111 }
19112 return resultobj;
19113fail:
19114 {
19115 if (temp2)
19116 delete arg2;
19117 }
19118 return NULL;
19119}
19120
19121
19122SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19123 PyObject *resultobj = 0;
19124 wxDC *arg1 = (wxDC *) 0 ;
19125 wxString *arg2 = 0 ;
19126 int arg3 ;
19127 int arg4 ;
19128 double arg5 ;
19129 void *argp1 = 0 ;
19130 int res1 = 0 ;
19131 bool temp2 = false ;
19132 int val3 ;
19133 int ecode3 = 0 ;
19134 int val4 ;
19135 int ecode4 = 0 ;
19136 double val5 ;
19137 int ecode5 = 0 ;
19138 PyObject * obj0 = 0 ;
19139 PyObject * obj1 = 0 ;
19140 PyObject * obj2 = 0 ;
19141 PyObject * obj3 = 0 ;
19142 PyObject * obj4 = 0 ;
19143 char * kwnames[] = {
19144 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19145 };
19146
19147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19149 if (!SWIG_IsOK(res1)) {
19150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19151 }
19152 arg1 = reinterpret_cast< wxDC * >(argp1);
19153 {
19154 arg2 = wxString_in_helper(obj1);
19155 if (arg2 == NULL) SWIG_fail;
19156 temp2 = true;
19157 }
19158 ecode3 = SWIG_AsVal_int(obj2, &val3);
19159 if (!SWIG_IsOK(ecode3)) {
19160 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19161 }
19162 arg3 = static_cast< int >(val3);
19163 ecode4 = SWIG_AsVal_int(obj3, &val4);
19164 if (!SWIG_IsOK(ecode4)) {
19165 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19166 }
19167 arg4 = static_cast< int >(val4);
19168 ecode5 = SWIG_AsVal_double(obj4, &val5);
19169 if (!SWIG_IsOK(ecode5)) {
19170 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19171 }
19172 arg5 = static_cast< double >(val5);
19173 {
19174 PyThreadState* __tstate = wxPyBeginAllowThreads();
19175 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19176 wxPyEndAllowThreads(__tstate);
19177 if (PyErr_Occurred()) SWIG_fail;
19178 }
19179 resultobj = SWIG_Py_Void();
19180 {
19181 if (temp2)
19182 delete arg2;
19183 }
19184 return resultobj;
19185fail:
19186 {
19187 if (temp2)
19188 delete arg2;
19189 }
19190 return NULL;
19191}
19192
19193
19194SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19195 PyObject *resultobj = 0;
19196 wxDC *arg1 = (wxDC *) 0 ;
19197 wxString *arg2 = 0 ;
19198 wxPoint *arg3 = 0 ;
19199 double arg4 ;
19200 void *argp1 = 0 ;
19201 int res1 = 0 ;
19202 bool temp2 = false ;
19203 wxPoint temp3 ;
19204 double val4 ;
19205 int ecode4 = 0 ;
19206 PyObject * obj0 = 0 ;
19207 PyObject * obj1 = 0 ;
19208 PyObject * obj2 = 0 ;
19209 PyObject * obj3 = 0 ;
19210 char * kwnames[] = {
19211 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19212 };
19213
19214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19216 if (!SWIG_IsOK(res1)) {
19217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19218 }
19219 arg1 = reinterpret_cast< wxDC * >(argp1);
19220 {
19221 arg2 = wxString_in_helper(obj1);
19222 if (arg2 == NULL) SWIG_fail;
19223 temp2 = true;
19224 }
19225 {
19226 arg3 = &temp3;
19227 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19228 }
19229 ecode4 = SWIG_AsVal_double(obj3, &val4);
19230 if (!SWIG_IsOK(ecode4)) {
19231 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19232 }
19233 arg4 = static_cast< double >(val4);
19234 {
19235 PyThreadState* __tstate = wxPyBeginAllowThreads();
19236 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19237 wxPyEndAllowThreads(__tstate);
19238 if (PyErr_Occurred()) SWIG_fail;
19239 }
19240 resultobj = SWIG_Py_Void();
19241 {
19242 if (temp2)
19243 delete arg2;
19244 }
19245 return resultobj;
19246fail:
19247 {
19248 if (temp2)
19249 delete arg2;
19250 }
19251 return NULL;
19252}
19253
19254
19255SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19256 PyObject *resultobj = 0;
19257 wxDC *arg1 = (wxDC *) 0 ;
19258 int arg2 ;
19259 int arg3 ;
19260 int arg4 ;
19261 int arg5 ;
19262 wxDC *arg6 = (wxDC *) 0 ;
19263 int arg7 ;
19264 int arg8 ;
19265 int arg9 = (int) wxCOPY ;
19266 bool arg10 = (bool) false ;
19267 int arg11 = (int) -1 ;
19268 int arg12 = (int) -1 ;
19269 bool result;
19270 void *argp1 = 0 ;
19271 int res1 = 0 ;
19272 int val2 ;
19273 int ecode2 = 0 ;
19274 int val3 ;
19275 int ecode3 = 0 ;
19276 int val4 ;
19277 int ecode4 = 0 ;
19278 int val5 ;
19279 int ecode5 = 0 ;
19280 void *argp6 = 0 ;
19281 int res6 = 0 ;
19282 int val7 ;
19283 int ecode7 = 0 ;
19284 int val8 ;
19285 int ecode8 = 0 ;
19286 int val9 ;
19287 int ecode9 = 0 ;
19288 bool val10 ;
19289 int ecode10 = 0 ;
19290 int val11 ;
19291 int ecode11 = 0 ;
19292 int val12 ;
19293 int ecode12 = 0 ;
19294 PyObject * obj0 = 0 ;
19295 PyObject * obj1 = 0 ;
19296 PyObject * obj2 = 0 ;
19297 PyObject * obj3 = 0 ;
19298 PyObject * obj4 = 0 ;
19299 PyObject * obj5 = 0 ;
19300 PyObject * obj6 = 0 ;
19301 PyObject * obj7 = 0 ;
19302 PyObject * obj8 = 0 ;
19303 PyObject * obj9 = 0 ;
19304 PyObject * obj10 = 0 ;
19305 PyObject * obj11 = 0 ;
19306 char * kwnames[] = {
19307 (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
19308 };
19309
19310 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;
19311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19312 if (!SWIG_IsOK(res1)) {
19313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19314 }
19315 arg1 = reinterpret_cast< wxDC * >(argp1);
19316 ecode2 = SWIG_AsVal_int(obj1, &val2);
19317 if (!SWIG_IsOK(ecode2)) {
19318 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19319 }
19320 arg2 = static_cast< int >(val2);
19321 ecode3 = SWIG_AsVal_int(obj2, &val3);
19322 if (!SWIG_IsOK(ecode3)) {
19323 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19324 }
19325 arg3 = static_cast< int >(val3);
19326 ecode4 = SWIG_AsVal_int(obj3, &val4);
19327 if (!SWIG_IsOK(ecode4)) {
19328 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19329 }
19330 arg4 = static_cast< int >(val4);
19331 ecode5 = SWIG_AsVal_int(obj4, &val5);
19332 if (!SWIG_IsOK(ecode5)) {
19333 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19334 }
19335 arg5 = static_cast< int >(val5);
19336 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19337 if (!SWIG_IsOK(res6)) {
19338 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19339 }
19340 arg6 = reinterpret_cast< wxDC * >(argp6);
19341 ecode7 = SWIG_AsVal_int(obj6, &val7);
19342 if (!SWIG_IsOK(ecode7)) {
19343 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19344 }
19345 arg7 = static_cast< int >(val7);
19346 ecode8 = SWIG_AsVal_int(obj7, &val8);
19347 if (!SWIG_IsOK(ecode8)) {
19348 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19349 }
19350 arg8 = static_cast< int >(val8);
19351 if (obj8) {
19352 ecode9 = SWIG_AsVal_int(obj8, &val9);
19353 if (!SWIG_IsOK(ecode9)) {
19354 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19355 }
19356 arg9 = static_cast< int >(val9);
19357 }
19358 if (obj9) {
19359 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19360 if (!SWIG_IsOK(ecode10)) {
19361 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19362 }
19363 arg10 = static_cast< bool >(val10);
19364 }
19365 if (obj10) {
19366 ecode11 = SWIG_AsVal_int(obj10, &val11);
19367 if (!SWIG_IsOK(ecode11)) {
19368 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19369 }
19370 arg11 = static_cast< int >(val11);
19371 }
19372 if (obj11) {
19373 ecode12 = SWIG_AsVal_int(obj11, &val12);
19374 if (!SWIG_IsOK(ecode12)) {
19375 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19376 }
19377 arg12 = static_cast< int >(val12);
19378 }
19379 {
19380 PyThreadState* __tstate = wxPyBeginAllowThreads();
19381 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19382 wxPyEndAllowThreads(__tstate);
19383 if (PyErr_Occurred()) SWIG_fail;
19384 }
19385 {
19386 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19387 }
19388 return resultobj;
19389fail:
19390 return NULL;
19391}
19392
19393
19394SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19395 PyObject *resultobj = 0;
19396 wxDC *arg1 = (wxDC *) 0 ;
19397 wxPoint *arg2 = 0 ;
19398 wxSize *arg3 = 0 ;
19399 wxDC *arg4 = (wxDC *) 0 ;
19400 wxPoint *arg5 = 0 ;
19401 int arg6 = (int) wxCOPY ;
19402 bool arg7 = (bool) false ;
19403 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19404 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19405 bool result;
19406 void *argp1 = 0 ;
19407 int res1 = 0 ;
19408 wxPoint temp2 ;
19409 wxSize temp3 ;
19410 void *argp4 = 0 ;
19411 int res4 = 0 ;
19412 wxPoint temp5 ;
19413 int val6 ;
19414 int ecode6 = 0 ;
19415 bool val7 ;
19416 int ecode7 = 0 ;
19417 wxPoint temp8 ;
19418 PyObject * obj0 = 0 ;
19419 PyObject * obj1 = 0 ;
19420 PyObject * obj2 = 0 ;
19421 PyObject * obj3 = 0 ;
19422 PyObject * obj4 = 0 ;
19423 PyObject * obj5 = 0 ;
19424 PyObject * obj6 = 0 ;
19425 PyObject * obj7 = 0 ;
19426 char * kwnames[] = {
19427 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19428 };
19429
19430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
19431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19432 if (!SWIG_IsOK(res1)) {
19433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19434 }
19435 arg1 = reinterpret_cast< wxDC * >(argp1);
19436 {
19437 arg2 = &temp2;
19438 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19439 }
19440 {
19441 arg3 = &temp3;
19442 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19443 }
19444 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
19445 if (!SWIG_IsOK(res4)) {
19446 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
19447 }
19448 arg4 = reinterpret_cast< wxDC * >(argp4);
19449 {
19450 arg5 = &temp5;
19451 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19452 }
19453 if (obj5) {
19454 ecode6 = SWIG_AsVal_int(obj5, &val6);
19455 if (!SWIG_IsOK(ecode6)) {
19456 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
19457 }
19458 arg6 = static_cast< int >(val6);
19459 }
19460 if (obj6) {
19461 ecode7 = SWIG_AsVal_bool(obj6, &val7);
19462 if (!SWIG_IsOK(ecode7)) {
19463 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
19464 }
19465 arg7 = static_cast< bool >(val7);
19466 }
19467 if (obj7) {
093d3ff1 19468 {
0085ce49
RD
19469 arg8 = &temp8;
19470 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
093d3ff1 19471 }
0085ce49
RD
19472 }
19473 {
19474 PyThreadState* __tstate = wxPyBeginAllowThreads();
19475 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
19476 wxPyEndAllowThreads(__tstate);
19477 if (PyErr_Occurred()) SWIG_fail;
19478 }
19479 {
19480 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19481 }
19482 return resultobj;
19483fail:
19484 return NULL;
19485}
19486
19487
19488SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19489 PyObject *resultobj = 0;
19490 wxDC *arg1 = (wxDC *) 0 ;
19491 int arg2 ;
19492 int arg3 ;
19493 int arg4 ;
19494 int arg5 ;
19495 void *argp1 = 0 ;
19496 int res1 = 0 ;
19497 int val2 ;
19498 int ecode2 = 0 ;
19499 int val3 ;
19500 int ecode3 = 0 ;
19501 int val4 ;
19502 int ecode4 = 0 ;
19503 int val5 ;
19504 int ecode5 = 0 ;
19505 PyObject * obj0 = 0 ;
19506 PyObject * obj1 = 0 ;
19507 PyObject * obj2 = 0 ;
19508 PyObject * obj3 = 0 ;
19509 PyObject * obj4 = 0 ;
19510 char * kwnames[] = {
19511 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19512 };
19513
19514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19516 if (!SWIG_IsOK(res1)) {
19517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19518 }
19519 arg1 = reinterpret_cast< wxDC * >(argp1);
19520 ecode2 = SWIG_AsVal_int(obj1, &val2);
19521 if (!SWIG_IsOK(ecode2)) {
19522 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
19523 }
19524 arg2 = static_cast< int >(val2);
19525 ecode3 = SWIG_AsVal_int(obj2, &val3);
19526 if (!SWIG_IsOK(ecode3)) {
19527 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
19528 }
19529 arg3 = static_cast< int >(val3);
19530 ecode4 = SWIG_AsVal_int(obj3, &val4);
19531 if (!SWIG_IsOK(ecode4)) {
19532 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
19533 }
19534 arg4 = static_cast< int >(val4);
19535 ecode5 = SWIG_AsVal_int(obj4, &val5);
19536 if (!SWIG_IsOK(ecode5)) {
19537 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
19538 }
19539 arg5 = static_cast< int >(val5);
19540 {
19541 PyThreadState* __tstate = wxPyBeginAllowThreads();
19542 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
19543 wxPyEndAllowThreads(__tstate);
19544 if (PyErr_Occurred()) SWIG_fail;
19545 }
19546 resultobj = SWIG_Py_Void();
19547 return resultobj;
19548fail:
19549 return NULL;
19550}
19551
19552
19553SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19554 PyObject *resultobj = 0;
19555 wxDC *arg1 = (wxDC *) 0 ;
19556 wxPoint *arg2 = 0 ;
19557 wxSize *arg3 = 0 ;
19558 void *argp1 = 0 ;
19559 int res1 = 0 ;
19560 wxPoint temp2 ;
19561 wxSize temp3 ;
19562 PyObject * obj0 = 0 ;
19563 PyObject * obj1 = 0 ;
19564 PyObject * obj2 = 0 ;
19565 char * kwnames[] = {
19566 (char *) "self",(char *) "pt",(char *) "sz", NULL
19567 };
19568
19569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19571 if (!SWIG_IsOK(res1)) {
19572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19573 }
19574 arg1 = reinterpret_cast< wxDC * >(argp1);
19575 {
19576 arg2 = &temp2;
19577 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19578 }
19579 {
19580 arg3 = &temp3;
19581 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19582 }
19583 {
19584 PyThreadState* __tstate = wxPyBeginAllowThreads();
19585 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
19586 wxPyEndAllowThreads(__tstate);
19587 if (PyErr_Occurred()) SWIG_fail;
19588 }
19589 resultobj = SWIG_Py_Void();
19590 return resultobj;
19591fail:
19592 return NULL;
19593}
19594
19595
19596SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19597 PyObject *resultobj = 0;
19598 wxDC *arg1 = (wxDC *) 0 ;
19599 wxRegion *arg2 = 0 ;
19600 void *argp1 = 0 ;
19601 int res1 = 0 ;
19602 void *argp2 = 0 ;
19603 int res2 = 0 ;
19604 PyObject * obj0 = 0 ;
19605 PyObject * obj1 = 0 ;
19606 char * kwnames[] = {
19607 (char *) "self",(char *) "region", NULL
19608 };
19609
19610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
19611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19612 if (!SWIG_IsOK(res1)) {
19613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19614 }
19615 arg1 = reinterpret_cast< wxDC * >(argp1);
19616 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
19617 if (!SWIG_IsOK(res2)) {
19618 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19619 }
19620 if (!argp2) {
19621 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19622 }
19623 arg2 = reinterpret_cast< wxRegion * >(argp2);
19624 {
19625 PyThreadState* __tstate = wxPyBeginAllowThreads();
19626 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
19627 wxPyEndAllowThreads(__tstate);
19628 if (PyErr_Occurred()) SWIG_fail;
19629 }
19630 resultobj = SWIG_Py_Void();
19631 return resultobj;
19632fail:
19633 return NULL;
19634}
19635
19636
19637SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19638 PyObject *resultobj = 0;
19639 wxDC *arg1 = (wxDC *) 0 ;
19640 wxRect *arg2 = 0 ;
19641 void *argp1 = 0 ;
19642 int res1 = 0 ;
19643 wxRect temp2 ;
19644 PyObject * obj0 = 0 ;
19645 PyObject * obj1 = 0 ;
19646 char * kwnames[] = {
19647 (char *) "self",(char *) "rect", NULL
19648 };
19649
19650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
19651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19652 if (!SWIG_IsOK(res1)) {
19653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
19654 }
19655 arg1 = reinterpret_cast< wxDC * >(argp1);
19656 {
19657 arg2 = &temp2;
19658 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19659 }
19660 {
19661 PyThreadState* __tstate = wxPyBeginAllowThreads();
19662 (arg1)->SetClippingRegion((wxRect const &)*arg2);
19663 wxPyEndAllowThreads(__tstate);
19664 if (PyErr_Occurred()) SWIG_fail;
19665 }
19666 resultobj = SWIG_Py_Void();
19667 return resultobj;
19668fail:
19669 return NULL;
19670}
19671
19672
19673SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19674 PyObject *resultobj = 0;
19675 wxDC *arg1 = (wxDC *) 0 ;
19676 int arg2 ;
19677 wxPoint *arg3 = (wxPoint *) 0 ;
19678 int arg4 = (int) 0 ;
19679 int arg5 = (int) 0 ;
19680 void *argp1 = 0 ;
19681 int res1 = 0 ;
19682 int val4 ;
19683 int ecode4 = 0 ;
19684 int val5 ;
19685 int ecode5 = 0 ;
19686 PyObject * obj0 = 0 ;
19687 PyObject * obj1 = 0 ;
19688 PyObject * obj2 = 0 ;
19689 PyObject * obj3 = 0 ;
19690 char * kwnames[] = {
19691 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
19692 };
19693
19694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19696 if (!SWIG_IsOK(res1)) {
19697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
19698 }
19699 arg1 = reinterpret_cast< wxDC * >(argp1);
19700 {
19701 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19702 if (arg3 == NULL) SWIG_fail;
19703 }
19704 if (obj2) {
19705 ecode4 = SWIG_AsVal_int(obj2, &val4);
19706 if (!SWIG_IsOK(ecode4)) {
19707 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
19708 }
19709 arg4 = static_cast< int >(val4);
19710 }
19711 if (obj3) {
19712 ecode5 = SWIG_AsVal_int(obj3, &val5);
19713 if (!SWIG_IsOK(ecode5)) {
19714 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
19715 }
19716 arg5 = static_cast< int >(val5);
19717 }
19718 {
19719 PyThreadState* __tstate = wxPyBeginAllowThreads();
19720 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
19721 wxPyEndAllowThreads(__tstate);
19722 if (PyErr_Occurred()) SWIG_fail;
19723 }
19724 resultobj = SWIG_Py_Void();
19725 {
19726 if (arg3) delete [] arg3;
19727 }
19728 return resultobj;
19729fail:
19730 {
19731 if (arg3) delete [] arg3;
19732 }
19733 return NULL;
19734}
19735
19736
19737SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19738 PyObject *resultobj = 0;
19739 wxDC *arg1 = (wxDC *) 0 ;
19740 int arg2 ;
19741 wxPoint *arg3 = (wxPoint *) 0 ;
19742 int arg4 = (int) 0 ;
19743 int arg5 = (int) 0 ;
19744 int arg6 = (int) wxODDEVEN_RULE ;
19745 void *argp1 = 0 ;
19746 int res1 = 0 ;
19747 int val4 ;
19748 int ecode4 = 0 ;
19749 int val5 ;
19750 int ecode5 = 0 ;
19751 int val6 ;
19752 int ecode6 = 0 ;
19753 PyObject * obj0 = 0 ;
19754 PyObject * obj1 = 0 ;
19755 PyObject * obj2 = 0 ;
19756 PyObject * obj3 = 0 ;
19757 PyObject * obj4 = 0 ;
19758 char * kwnames[] = {
19759 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
19760 };
19761
19762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19764 if (!SWIG_IsOK(res1)) {
19765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
19766 }
19767 arg1 = reinterpret_cast< wxDC * >(argp1);
19768 {
19769 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19770 if (arg3 == NULL) SWIG_fail;
19771 }
19772 if (obj2) {
19773 ecode4 = SWIG_AsVal_int(obj2, &val4);
19774 if (!SWIG_IsOK(ecode4)) {
19775 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
19776 }
19777 arg4 = static_cast< int >(val4);
19778 }
19779 if (obj3) {
19780 ecode5 = SWIG_AsVal_int(obj3, &val5);
19781 if (!SWIG_IsOK(ecode5)) {
19782 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
19783 }
19784 arg5 = static_cast< int >(val5);
19785 }
19786 if (obj4) {
19787 ecode6 = SWIG_AsVal_int(obj4, &val6);
19788 if (!SWIG_IsOK(ecode6)) {
19789 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
19790 }
19791 arg6 = static_cast< int >(val6);
19792 }
19793 {
19794 PyThreadState* __tstate = wxPyBeginAllowThreads();
19795 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
19796 wxPyEndAllowThreads(__tstate);
19797 if (PyErr_Occurred()) SWIG_fail;
19798 }
19799 resultobj = SWIG_Py_Void();
19800 {
19801 if (arg3) delete [] arg3;
19802 }
19803 return resultobj;
19804fail:
19805 {
19806 if (arg3) delete [] arg3;
19807 }
19808 return NULL;
19809}
19810
19811
19812SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19813 PyObject *resultobj = 0;
19814 wxDC *arg1 = (wxDC *) 0 ;
19815 wxString *arg2 = 0 ;
19816 wxRect *arg3 = 0 ;
19817 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
19818 int arg5 = (int) -1 ;
19819 void *argp1 = 0 ;
19820 int res1 = 0 ;
19821 bool temp2 = false ;
19822 wxRect temp3 ;
19823 int val4 ;
19824 int ecode4 = 0 ;
19825 int val5 ;
19826 int ecode5 = 0 ;
19827 PyObject * obj0 = 0 ;
19828 PyObject * obj1 = 0 ;
19829 PyObject * obj2 = 0 ;
19830 PyObject * obj3 = 0 ;
19831 PyObject * obj4 = 0 ;
19832 char * kwnames[] = {
19833 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
19834 };
19835
19836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19838 if (!SWIG_IsOK(res1)) {
19839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
19840 }
19841 arg1 = reinterpret_cast< wxDC * >(argp1);
19842 {
19843 arg2 = wxString_in_helper(obj1);
19844 if (arg2 == NULL) SWIG_fail;
19845 temp2 = true;
19846 }
19847 {
19848 arg3 = &temp3;
19849 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
19850 }
19851 if (obj3) {
19852 ecode4 = SWIG_AsVal_int(obj3, &val4);
19853 if (!SWIG_IsOK(ecode4)) {
19854 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
19855 }
19856 arg4 = static_cast< int >(val4);
19857 }
19858 if (obj4) {
19859 ecode5 = SWIG_AsVal_int(obj4, &val5);
19860 if (!SWIG_IsOK(ecode5)) {
19861 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
19862 }
19863 arg5 = static_cast< int >(val5);
19864 }
19865 {
19866 PyThreadState* __tstate = wxPyBeginAllowThreads();
19867 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
19868 wxPyEndAllowThreads(__tstate);
19869 if (PyErr_Occurred()) SWIG_fail;
19870 }
19871 resultobj = SWIG_Py_Void();
19872 {
19873 if (temp2)
19874 delete arg2;
19875 }
19876 return resultobj;
19877fail:
19878 {
19879 if (temp2)
19880 delete arg2;
19881 }
19882 return NULL;
19883}
19884
19885
19886SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19887 PyObject *resultobj = 0;
19888 wxDC *arg1 = (wxDC *) 0 ;
19889 wxString *arg2 = 0 ;
19890 wxBitmap *arg3 = 0 ;
19891 wxRect *arg4 = 0 ;
19892 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
19893 int arg6 = (int) -1 ;
19894 wxRect result;
19895 void *argp1 = 0 ;
19896 int res1 = 0 ;
19897 bool temp2 = false ;
19898 void *argp3 = 0 ;
19899 int res3 = 0 ;
19900 wxRect temp4 ;
19901 int val5 ;
19902 int ecode5 = 0 ;
19903 int val6 ;
19904 int ecode6 = 0 ;
19905 PyObject * obj0 = 0 ;
19906 PyObject * obj1 = 0 ;
19907 PyObject * obj2 = 0 ;
19908 PyObject * obj3 = 0 ;
19909 PyObject * obj4 = 0 ;
19910 PyObject * obj5 = 0 ;
19911 char * kwnames[] = {
19912 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
19913 };
19914
19915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19917 if (!SWIG_IsOK(res1)) {
19918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
19919 }
19920 arg1 = reinterpret_cast< wxDC * >(argp1);
19921 {
19922 arg2 = wxString_in_helper(obj1);
19923 if (arg2 == NULL) SWIG_fail;
19924 temp2 = true;
19925 }
19926 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
19927 if (!SWIG_IsOK(res3)) {
19928 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
19929 }
19930 if (!argp3) {
19931 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
19932 }
19933 arg3 = reinterpret_cast< wxBitmap * >(argp3);
19934 {
19935 arg4 = &temp4;
19936 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
19937 }
19938 if (obj4) {
19939 ecode5 = SWIG_AsVal_int(obj4, &val5);
19940 if (!SWIG_IsOK(ecode5)) {
19941 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
19942 }
19943 arg5 = static_cast< int >(val5);
19944 }
19945 if (obj5) {
19946 ecode6 = SWIG_AsVal_int(obj5, &val6);
19947 if (!SWIG_IsOK(ecode6)) {
19948 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
19949 }
19950 arg6 = static_cast< int >(val6);
19951 }
19952 {
19953 PyThreadState* __tstate = wxPyBeginAllowThreads();
19954 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
19955 wxPyEndAllowThreads(__tstate);
19956 if (PyErr_Occurred()) SWIG_fail;
19957 }
19958 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
19959 {
19960 if (temp2)
19961 delete arg2;
19962 }
19963 return resultobj;
19964fail:
19965 {
19966 if (temp2)
19967 delete arg2;
19968 }
19969 return NULL;
19970}
19971
19972
19973SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19974 PyObject *resultobj = 0;
19975 wxDC *arg1 = (wxDC *) 0 ;
19976 int arg2 ;
19977 wxPoint *arg3 = (wxPoint *) 0 ;
19978 void *argp1 = 0 ;
19979 int res1 = 0 ;
19980 PyObject * obj0 = 0 ;
19981 PyObject * obj1 = 0 ;
19982 char * kwnames[] = {
19983 (char *) "self",(char *) "points", NULL
19984 };
19985
19986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
19987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19988 if (!SWIG_IsOK(res1)) {
19989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
19990 }
19991 arg1 = reinterpret_cast< wxDC * >(argp1);
19992 {
19993 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19994 if (arg3 == NULL) SWIG_fail;
19995 }
19996 {
19997 PyThreadState* __tstate = wxPyBeginAllowThreads();
19998 (arg1)->DrawSpline(arg2,arg3);
19999 wxPyEndAllowThreads(__tstate);
20000 if (PyErr_Occurred()) SWIG_fail;
20001 }
20002 resultobj = SWIG_Py_Void();
20003 {
20004 if (arg3) delete [] arg3;
20005 }
20006 return resultobj;
20007fail:
20008 {
20009 if (arg3) delete [] arg3;
20010 }
20011 return NULL;
20012}
20013
20014
20015SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20016 PyObject *resultobj = 0;
20017 wxDC *arg1 = (wxDC *) 0 ;
20018 void *argp1 = 0 ;
20019 int res1 = 0 ;
20020 PyObject *swig_obj[1] ;
20021
20022 if (!args) SWIG_fail;
20023 swig_obj[0] = args;
20024 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20025 if (!SWIG_IsOK(res1)) {
20026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20027 }
20028 arg1 = reinterpret_cast< wxDC * >(argp1);
20029 {
20030 PyThreadState* __tstate = wxPyBeginAllowThreads();
20031 (arg1)->Clear();
20032 wxPyEndAllowThreads(__tstate);
20033 if (PyErr_Occurred()) SWIG_fail;
20034 }
20035 resultobj = SWIG_Py_Void();
20036 return resultobj;
20037fail:
20038 return NULL;
20039}
20040
20041
20042SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20043 PyObject *resultobj = 0;
20044 wxDC *arg1 = (wxDC *) 0 ;
20045 wxString *arg2 = 0 ;
20046 bool result;
20047 void *argp1 = 0 ;
20048 int res1 = 0 ;
20049 bool temp2 = false ;
20050 PyObject * obj0 = 0 ;
20051 PyObject * obj1 = 0 ;
20052 char * kwnames[] = {
20053 (char *) "self",(char *) "message", NULL
20054 };
20055
20056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20058 if (!SWIG_IsOK(res1)) {
20059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20060 }
20061 arg1 = reinterpret_cast< wxDC * >(argp1);
20062 {
20063 arg2 = wxString_in_helper(obj1);
20064 if (arg2 == NULL) SWIG_fail;
20065 temp2 = true;
20066 }
20067 {
20068 PyThreadState* __tstate = wxPyBeginAllowThreads();
20069 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20070 wxPyEndAllowThreads(__tstate);
20071 if (PyErr_Occurred()) SWIG_fail;
20072 }
20073 {
20074 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20075 }
20076 {
20077 if (temp2)
20078 delete arg2;
20079 }
20080 return resultobj;
20081fail:
20082 {
20083 if (temp2)
20084 delete arg2;
20085 }
20086 return NULL;
20087}
20088
20089
20090SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20091 PyObject *resultobj = 0;
20092 wxDC *arg1 = (wxDC *) 0 ;
20093 void *argp1 = 0 ;
20094 int res1 = 0 ;
20095 PyObject *swig_obj[1] ;
20096
20097 if (!args) SWIG_fail;
20098 swig_obj[0] = args;
20099 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20100 if (!SWIG_IsOK(res1)) {
20101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20102 }
20103 arg1 = reinterpret_cast< wxDC * >(argp1);
20104 {
20105 PyThreadState* __tstate = wxPyBeginAllowThreads();
20106 (arg1)->EndDoc();
20107 wxPyEndAllowThreads(__tstate);
20108 if (PyErr_Occurred()) SWIG_fail;
20109 }
20110 resultobj = SWIG_Py_Void();
20111 return resultobj;
20112fail:
20113 return NULL;
20114}
20115
20116
20117SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20118 PyObject *resultobj = 0;
20119 wxDC *arg1 = (wxDC *) 0 ;
20120 void *argp1 = 0 ;
20121 int res1 = 0 ;
20122 PyObject *swig_obj[1] ;
20123
20124 if (!args) SWIG_fail;
20125 swig_obj[0] = args;
20126 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20127 if (!SWIG_IsOK(res1)) {
20128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20129 }
20130 arg1 = reinterpret_cast< wxDC * >(argp1);
20131 {
20132 PyThreadState* __tstate = wxPyBeginAllowThreads();
20133 (arg1)->StartPage();
20134 wxPyEndAllowThreads(__tstate);
20135 if (PyErr_Occurred()) SWIG_fail;
20136 }
20137 resultobj = SWIG_Py_Void();
20138 return resultobj;
20139fail:
20140 return NULL;
20141}
20142
20143
20144SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20145 PyObject *resultobj = 0;
20146 wxDC *arg1 = (wxDC *) 0 ;
20147 void *argp1 = 0 ;
20148 int res1 = 0 ;
20149 PyObject *swig_obj[1] ;
20150
20151 if (!args) SWIG_fail;
20152 swig_obj[0] = args;
20153 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20154 if (!SWIG_IsOK(res1)) {
20155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20156 }
20157 arg1 = reinterpret_cast< wxDC * >(argp1);
20158 {
20159 PyThreadState* __tstate = wxPyBeginAllowThreads();
20160 (arg1)->EndPage();
20161 wxPyEndAllowThreads(__tstate);
20162 if (PyErr_Occurred()) SWIG_fail;
20163 }
20164 resultobj = SWIG_Py_Void();
20165 return resultobj;
20166fail:
20167 return NULL;
20168}
20169
20170
20171SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20172 PyObject *resultobj = 0;
20173 wxDC *arg1 = (wxDC *) 0 ;
20174 wxFont *arg2 = 0 ;
20175 void *argp1 = 0 ;
20176 int res1 = 0 ;
20177 void *argp2 = 0 ;
20178 int res2 = 0 ;
20179 PyObject * obj0 = 0 ;
20180 PyObject * obj1 = 0 ;
20181 char * kwnames[] = {
20182 (char *) "self",(char *) "font", NULL
20183 };
20184
20185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20187 if (!SWIG_IsOK(res1)) {
20188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20189 }
20190 arg1 = reinterpret_cast< wxDC * >(argp1);
20191 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20192 if (!SWIG_IsOK(res2)) {
20193 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20194 }
20195 if (!argp2) {
20196 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20197 }
20198 arg2 = reinterpret_cast< wxFont * >(argp2);
20199 {
20200 PyThreadState* __tstate = wxPyBeginAllowThreads();
20201 (arg1)->SetFont((wxFont const &)*arg2);
20202 wxPyEndAllowThreads(__tstate);
20203 if (PyErr_Occurred()) SWIG_fail;
20204 }
20205 resultobj = SWIG_Py_Void();
20206 return resultobj;
20207fail:
20208 return NULL;
20209}
20210
20211
20212SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20213 PyObject *resultobj = 0;
20214 wxDC *arg1 = (wxDC *) 0 ;
20215 wxPen *arg2 = 0 ;
20216 void *argp1 = 0 ;
20217 int res1 = 0 ;
20218 void *argp2 = 0 ;
20219 int res2 = 0 ;
20220 PyObject * obj0 = 0 ;
20221 PyObject * obj1 = 0 ;
20222 char * kwnames[] = {
20223 (char *) "self",(char *) "pen", NULL
20224 };
20225
20226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20228 if (!SWIG_IsOK(res1)) {
20229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20230 }
20231 arg1 = reinterpret_cast< wxDC * >(argp1);
20232 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20233 if (!SWIG_IsOK(res2)) {
20234 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20235 }
20236 if (!argp2) {
20237 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20238 }
20239 arg2 = reinterpret_cast< wxPen * >(argp2);
20240 {
20241 PyThreadState* __tstate = wxPyBeginAllowThreads();
20242 (arg1)->SetPen((wxPen const &)*arg2);
20243 wxPyEndAllowThreads(__tstate);
20244 if (PyErr_Occurred()) SWIG_fail;
20245 }
20246 resultobj = SWIG_Py_Void();
20247 return resultobj;
20248fail:
20249 return NULL;
20250}
20251
20252
20253SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20254 PyObject *resultobj = 0;
20255 wxDC *arg1 = (wxDC *) 0 ;
20256 wxBrush *arg2 = 0 ;
20257 void *argp1 = 0 ;
20258 int res1 = 0 ;
20259 void *argp2 = 0 ;
20260 int res2 = 0 ;
20261 PyObject * obj0 = 0 ;
20262 PyObject * obj1 = 0 ;
20263 char * kwnames[] = {
20264 (char *) "self",(char *) "brush", NULL
20265 };
20266
20267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20269 if (!SWIG_IsOK(res1)) {
20270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20271 }
20272 arg1 = reinterpret_cast< wxDC * >(argp1);
20273 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20274 if (!SWIG_IsOK(res2)) {
20275 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20276 }
20277 if (!argp2) {
20278 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20279 }
20280 arg2 = reinterpret_cast< wxBrush * >(argp2);
20281 {
20282 PyThreadState* __tstate = wxPyBeginAllowThreads();
20283 (arg1)->SetBrush((wxBrush const &)*arg2);
20284 wxPyEndAllowThreads(__tstate);
20285 if (PyErr_Occurred()) SWIG_fail;
20286 }
20287 resultobj = SWIG_Py_Void();
20288 return resultobj;
20289fail:
20290 return NULL;
20291}
20292
20293
20294SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20295 PyObject *resultobj = 0;
20296 wxDC *arg1 = (wxDC *) 0 ;
20297 wxBrush *arg2 = 0 ;
20298 void *argp1 = 0 ;
20299 int res1 = 0 ;
20300 void *argp2 = 0 ;
20301 int res2 = 0 ;
20302 PyObject * obj0 = 0 ;
20303 PyObject * obj1 = 0 ;
20304 char * kwnames[] = {
20305 (char *) "self",(char *) "brush", NULL
20306 };
20307
20308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20310 if (!SWIG_IsOK(res1)) {
20311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20312 }
20313 arg1 = reinterpret_cast< wxDC * >(argp1);
20314 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20315 if (!SWIG_IsOK(res2)) {
20316 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20317 }
20318 if (!argp2) {
20319 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20320 }
20321 arg2 = reinterpret_cast< wxBrush * >(argp2);
20322 {
20323 PyThreadState* __tstate = wxPyBeginAllowThreads();
20324 (arg1)->SetBackground((wxBrush const &)*arg2);
20325 wxPyEndAllowThreads(__tstate);
20326 if (PyErr_Occurred()) SWIG_fail;
20327 }
20328 resultobj = SWIG_Py_Void();
20329 return resultobj;
20330fail:
20331 return NULL;
20332}
20333
20334
20335SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20336 PyObject *resultobj = 0;
20337 wxDC *arg1 = (wxDC *) 0 ;
20338 int arg2 ;
20339 void *argp1 = 0 ;
20340 int res1 = 0 ;
20341 int val2 ;
20342 int ecode2 = 0 ;
20343 PyObject * obj0 = 0 ;
20344 PyObject * obj1 = 0 ;
20345 char * kwnames[] = {
20346 (char *) "self",(char *) "mode", NULL
20347 };
20348
20349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
20350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20351 if (!SWIG_IsOK(res1)) {
20352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
20353 }
20354 arg1 = reinterpret_cast< wxDC * >(argp1);
20355 ecode2 = SWIG_AsVal_int(obj1, &val2);
20356 if (!SWIG_IsOK(ecode2)) {
20357 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
20358 }
20359 arg2 = static_cast< int >(val2);
20360 {
20361 PyThreadState* __tstate = wxPyBeginAllowThreads();
20362 (arg1)->SetBackgroundMode(arg2);
20363 wxPyEndAllowThreads(__tstate);
20364 if (PyErr_Occurred()) SWIG_fail;
20365 }
20366 resultobj = SWIG_Py_Void();
20367 return resultobj;
20368fail:
20369 return NULL;
20370}
20371
20372
20373SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20374 PyObject *resultobj = 0;
20375 wxDC *arg1 = (wxDC *) 0 ;
20376 wxPalette *arg2 = 0 ;
20377 void *argp1 = 0 ;
20378 int res1 = 0 ;
20379 void *argp2 = 0 ;
20380 int res2 = 0 ;
20381 PyObject * obj0 = 0 ;
20382 PyObject * obj1 = 0 ;
20383 char * kwnames[] = {
20384 (char *) "self",(char *) "palette", NULL
20385 };
20386
20387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
20388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20389 if (!SWIG_IsOK(res1)) {
20390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
20391 }
20392 arg1 = reinterpret_cast< wxDC * >(argp1);
20393 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
20394 if (!SWIG_IsOK(res2)) {
20395 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20396 }
20397 if (!argp2) {
20398 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20399 }
20400 arg2 = reinterpret_cast< wxPalette * >(argp2);
20401 {
20402 PyThreadState* __tstate = wxPyBeginAllowThreads();
20403 (arg1)->SetPalette((wxPalette const &)*arg2);
20404 wxPyEndAllowThreads(__tstate);
20405 if (PyErr_Occurred()) SWIG_fail;
20406 }
20407 resultobj = SWIG_Py_Void();
20408 return resultobj;
20409fail:
20410 return NULL;
20411}
20412
20413
20414SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20415 PyObject *resultobj = 0;
20416 wxDC *arg1 = (wxDC *) 0 ;
20417 void *argp1 = 0 ;
20418 int res1 = 0 ;
20419 PyObject *swig_obj[1] ;
20420
20421 if (!args) SWIG_fail;
20422 swig_obj[0] = args;
20423 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20424 if (!SWIG_IsOK(res1)) {
20425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20426 }
20427 arg1 = reinterpret_cast< wxDC * >(argp1);
20428 {
20429 PyThreadState* __tstate = wxPyBeginAllowThreads();
20430 (arg1)->DestroyClippingRegion();
20431 wxPyEndAllowThreads(__tstate);
20432 if (PyErr_Occurred()) SWIG_fail;
20433 }
20434 resultobj = SWIG_Py_Void();
20435 return resultobj;
20436fail:
20437 return NULL;
20438}
20439
20440
20441SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20442 PyObject *resultobj = 0;
20443 wxDC *arg1 = (wxDC *) 0 ;
20444 int *arg2 = (int *) 0 ;
20445 int *arg3 = (int *) 0 ;
20446 int *arg4 = (int *) 0 ;
20447 int *arg5 = (int *) 0 ;
20448 void *argp1 = 0 ;
20449 int res1 = 0 ;
20450 int temp2 ;
20451 int res2 = SWIG_TMPOBJ ;
20452 int temp3 ;
20453 int res3 = SWIG_TMPOBJ ;
20454 int temp4 ;
20455 int res4 = SWIG_TMPOBJ ;
20456 int temp5 ;
20457 int res5 = SWIG_TMPOBJ ;
20458 PyObject *swig_obj[1] ;
20459
20460 arg2 = &temp2;
20461 arg3 = &temp3;
20462 arg4 = &temp4;
20463 arg5 = &temp5;
20464 if (!args) SWIG_fail;
20465 swig_obj[0] = args;
20466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20467 if (!SWIG_IsOK(res1)) {
20468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
20469 }
20470 arg1 = reinterpret_cast< wxDC * >(argp1);
20471 {
20472 PyThreadState* __tstate = wxPyBeginAllowThreads();
20473 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
20474 wxPyEndAllowThreads(__tstate);
20475 if (PyErr_Occurred()) SWIG_fail;
20476 }
20477 resultobj = SWIG_Py_Void();
20478 if (SWIG_IsTmpObj(res2)) {
20479 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20480 } else {
20481 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20482 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20483 }
20484 if (SWIG_IsTmpObj(res3)) {
20485 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20486 } else {
20487 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20488 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20489 }
20490 if (SWIG_IsTmpObj(res4)) {
20491 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20492 } else {
20493 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20494 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20495 }
20496 if (SWIG_IsTmpObj(res5)) {
20497 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20498 } else {
20499 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20500 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20501 }
20502 return resultobj;
20503fail:
20504 return NULL;
20505}
20506
20507
20508SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20509 PyObject *resultobj = 0;
20510 wxDC *arg1 = (wxDC *) 0 ;
20511 wxRect result;
20512 void *argp1 = 0 ;
20513 int res1 = 0 ;
20514 PyObject *swig_obj[1] ;
20515
20516 if (!args) SWIG_fail;
20517 swig_obj[0] = args;
20518 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20519 if (!SWIG_IsOK(res1)) {
20520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20521 }
20522 arg1 = reinterpret_cast< wxDC * >(argp1);
20523 {
20524 PyThreadState* __tstate = wxPyBeginAllowThreads();
20525 result = wxDC_GetClippingRect(arg1);
20526 wxPyEndAllowThreads(__tstate);
20527 if (PyErr_Occurred()) SWIG_fail;
20528 }
20529 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20530 return resultobj;
20531fail:
20532 return NULL;
20533}
20534
20535
20536SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20537 PyObject *resultobj = 0;
20538 wxDC *arg1 = (wxDC *) 0 ;
20539 int result;
20540 void *argp1 = 0 ;
20541 int res1 = 0 ;
20542 PyObject *swig_obj[1] ;
20543
20544 if (!args) SWIG_fail;
20545 swig_obj[0] = args;
20546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20547 if (!SWIG_IsOK(res1)) {
20548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
20549 }
20550 arg1 = reinterpret_cast< wxDC * >(argp1);
20551 {
20552 PyThreadState* __tstate = wxPyBeginAllowThreads();
20553 result = (int)((wxDC const *)arg1)->GetCharHeight();
20554 wxPyEndAllowThreads(__tstate);
20555 if (PyErr_Occurred()) SWIG_fail;
20556 }
20557 resultobj = SWIG_From_int(static_cast< int >(result));
20558 return resultobj;
20559fail:
20560 return NULL;
20561}
20562
20563
20564SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20565 PyObject *resultobj = 0;
20566 wxDC *arg1 = (wxDC *) 0 ;
20567 int result;
20568 void *argp1 = 0 ;
20569 int res1 = 0 ;
20570 PyObject *swig_obj[1] ;
20571
20572 if (!args) SWIG_fail;
20573 swig_obj[0] = args;
20574 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20575 if (!SWIG_IsOK(res1)) {
20576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
20577 }
20578 arg1 = reinterpret_cast< wxDC * >(argp1);
20579 {
20580 PyThreadState* __tstate = wxPyBeginAllowThreads();
20581 result = (int)((wxDC const *)arg1)->GetCharWidth();
20582 wxPyEndAllowThreads(__tstate);
20583 if (PyErr_Occurred()) SWIG_fail;
20584 }
20585 resultobj = SWIG_From_int(static_cast< int >(result));
20586 return resultobj;
20587fail:
20588 return NULL;
20589}
20590
20591
20592SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20593 PyObject *resultobj = 0;
20594 wxDC *arg1 = (wxDC *) 0 ;
20595 wxString *arg2 = 0 ;
20596 int *arg3 = (int *) 0 ;
20597 int *arg4 = (int *) 0 ;
20598 void *argp1 = 0 ;
20599 int res1 = 0 ;
20600 bool temp2 = false ;
20601 int temp3 ;
20602 int res3 = SWIG_TMPOBJ ;
20603 int temp4 ;
20604 int res4 = SWIG_TMPOBJ ;
20605 PyObject * obj0 = 0 ;
20606 PyObject * obj1 = 0 ;
20607 char * kwnames[] = {
20608 (char *) "self",(char *) "string", NULL
20609 };
20610
20611 arg3 = &temp3;
20612 arg4 = &temp4;
20613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
20614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20615 if (!SWIG_IsOK(res1)) {
20616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20617 }
20618 arg1 = reinterpret_cast< wxDC * >(argp1);
20619 {
20620 arg2 = wxString_in_helper(obj1);
20621 if (arg2 == NULL) SWIG_fail;
20622 temp2 = true;
20623 }
20624 {
20625 PyThreadState* __tstate = wxPyBeginAllowThreads();
20626 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
20627 wxPyEndAllowThreads(__tstate);
20628 if (PyErr_Occurred()) SWIG_fail;
20629 }
20630 resultobj = SWIG_Py_Void();
20631 if (SWIG_IsTmpObj(res3)) {
20632 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20633 } else {
20634 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20635 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20636 }
20637 if (SWIG_IsTmpObj(res4)) {
20638 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20639 } else {
20640 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20641 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20642 }
20643 {
20644 if (temp2)
20645 delete arg2;
20646 }
20647 return resultobj;
20648fail:
20649 {
20650 if (temp2)
20651 delete arg2;
20652 }
20653 return NULL;
20654}
20655
20656
20657SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20658 PyObject *resultobj = 0;
20659 wxDC *arg1 = (wxDC *) 0 ;
20660 wxString *arg2 = 0 ;
20661 int *arg3 = (int *) 0 ;
20662 int *arg4 = (int *) 0 ;
20663 int *arg5 = (int *) 0 ;
20664 int *arg6 = (int *) 0 ;
20665 wxFont *arg7 = (wxFont *) NULL ;
20666 void *argp1 = 0 ;
20667 int res1 = 0 ;
20668 bool temp2 = false ;
20669 int temp3 ;
20670 int res3 = SWIG_TMPOBJ ;
20671 int temp4 ;
20672 int res4 = SWIG_TMPOBJ ;
20673 int temp5 ;
20674 int res5 = SWIG_TMPOBJ ;
20675 int temp6 ;
20676 int res6 = SWIG_TMPOBJ ;
20677 void *argp7 = 0 ;
20678 int res7 = 0 ;
20679 PyObject * obj0 = 0 ;
20680 PyObject * obj1 = 0 ;
20681 PyObject * obj2 = 0 ;
20682 char * kwnames[] = {
20683 (char *) "self",(char *) "string",(char *) "font", NULL
20684 };
20685
20686 arg3 = &temp3;
20687 arg4 = &temp4;
20688 arg5 = &temp5;
20689 arg6 = &temp6;
20690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20692 if (!SWIG_IsOK(res1)) {
20693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20694 }
20695 arg1 = reinterpret_cast< wxDC * >(argp1);
20696 {
20697 arg2 = wxString_in_helper(obj1);
20698 if (arg2 == NULL) SWIG_fail;
20699 temp2 = true;
20700 }
20701 if (obj2) {
20702 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
20703 if (!SWIG_IsOK(res7)) {
20704 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
093d3ff1 20705 }
0085ce49
RD
20706 arg7 = reinterpret_cast< wxFont * >(argp7);
20707 }
20708 {
20709 PyThreadState* __tstate = wxPyBeginAllowThreads();
20710 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
20711 wxPyEndAllowThreads(__tstate);
20712 if (PyErr_Occurred()) SWIG_fail;
20713 }
20714 resultobj = SWIG_Py_Void();
20715 if (SWIG_IsTmpObj(res3)) {
20716 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20717 } else {
20718 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20719 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20720 }
20721 if (SWIG_IsTmpObj(res4)) {
20722 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20723 } else {
20724 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20725 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20726 }
20727 if (SWIG_IsTmpObj(res5)) {
20728 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20729 } else {
20730 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20731 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20732 }
20733 if (SWIG_IsTmpObj(res6)) {
20734 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
20735 } else {
20736 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20737 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
20738 }
20739 {
20740 if (temp2)
20741 delete arg2;
20742 }
20743 return resultobj;
20744fail:
20745 {
20746 if (temp2)
20747 delete arg2;
20748 }
20749 return NULL;
20750}
20751
20752
20753SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20754 PyObject *resultobj = 0;
20755 wxDC *arg1 = (wxDC *) 0 ;
20756 wxString *arg2 = 0 ;
20757 int *arg3 = (int *) 0 ;
20758 int *arg4 = (int *) 0 ;
20759 int *arg5 = (int *) 0 ;
20760 wxFont *arg6 = (wxFont *) NULL ;
20761 void *argp1 = 0 ;
20762 int res1 = 0 ;
20763 bool temp2 = false ;
20764 int temp3 ;
20765 int res3 = SWIG_TMPOBJ ;
20766 int temp4 ;
20767 int res4 = SWIG_TMPOBJ ;
20768 int temp5 ;
20769 int res5 = SWIG_TMPOBJ ;
20770 void *argp6 = 0 ;
20771 int res6 = 0 ;
20772 PyObject * obj0 = 0 ;
20773 PyObject * obj1 = 0 ;
20774 PyObject * obj2 = 0 ;
20775 char * kwnames[] = {
20776 (char *) "self",(char *) "text",(char *) "font", NULL
20777 };
20778
20779 arg3 = &temp3;
20780 arg4 = &temp4;
20781 arg5 = &temp5;
20782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20784 if (!SWIG_IsOK(res1)) {
20785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20786 }
20787 arg1 = reinterpret_cast< wxDC * >(argp1);
20788 {
20789 arg2 = wxString_in_helper(obj1);
20790 if (arg2 == NULL) SWIG_fail;
20791 temp2 = true;
20792 }
20793 if (obj2) {
20794 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
20795 if (!SWIG_IsOK(res6)) {
20796 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
093d3ff1 20797 }
0085ce49
RD
20798 arg6 = reinterpret_cast< wxFont * >(argp6);
20799 }
20800 {
20801 PyThreadState* __tstate = wxPyBeginAllowThreads();
20802 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
20803 wxPyEndAllowThreads(__tstate);
20804 if (PyErr_Occurred()) SWIG_fail;
20805 }
20806 resultobj = SWIG_Py_Void();
20807 if (SWIG_IsTmpObj(res3)) {
20808 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20809 } else {
20810 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20811 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20812 }
20813 if (SWIG_IsTmpObj(res4)) {
20814 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20815 } else {
20816 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20817 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20818 }
20819 if (SWIG_IsTmpObj(res5)) {
20820 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20821 } else {
20822 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20823 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20824 }
20825 {
20826 if (temp2)
20827 delete arg2;
20828 }
20829 return resultobj;
20830fail:
20831 {
20832 if (temp2)
20833 delete arg2;
20834 }
20835 return NULL;
20836}
20837
20838
20839SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20840 PyObject *resultobj = 0;
20841 wxDC *arg1 = (wxDC *) 0 ;
20842 wxString *arg2 = 0 ;
20843 wxArrayInt result;
20844 void *argp1 = 0 ;
20845 int res1 = 0 ;
20846 bool temp2 = false ;
20847 PyObject * obj0 = 0 ;
20848 PyObject * obj1 = 0 ;
20849 char * kwnames[] = {
20850 (char *) "self",(char *) "text", NULL
20851 };
20852
20853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
20854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20855 if (!SWIG_IsOK(res1)) {
20856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
20857 }
20858 arg1 = reinterpret_cast< wxDC * >(argp1);
20859 {
20860 arg2 = wxString_in_helper(obj1);
20861 if (arg2 == NULL) SWIG_fail;
20862 temp2 = true;
20863 }
20864 {
20865 PyThreadState* __tstate = wxPyBeginAllowThreads();
20866 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
20867 wxPyEndAllowThreads(__tstate);
20868 if (PyErr_Occurred()) SWIG_fail;
20869 }
20870 {
b39fe951 20871 resultobj = wxArrayInt2PyList_helper(result);
0085ce49
RD
20872 }
20873 {
20874 if (temp2)
20875 delete arg2;
20876 }
20877 return resultobj;
20878fail:
20879 {
20880 if (temp2)
20881 delete arg2;
20882 }
20883 return NULL;
20884}
20885
20886
20887SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20888 PyObject *resultobj = 0;
20889 wxDC *arg1 = (wxDC *) 0 ;
20890 wxSize result;
20891 void *argp1 = 0 ;
20892 int res1 = 0 ;
20893 PyObject *swig_obj[1] ;
20894
20895 if (!args) SWIG_fail;
20896 swig_obj[0] = args;
20897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20898 if (!SWIG_IsOK(res1)) {
20899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
20900 }
20901 arg1 = reinterpret_cast< wxDC * >(argp1);
20902 {
20903 PyThreadState* __tstate = wxPyBeginAllowThreads();
20904 result = (arg1)->GetSize();
20905 wxPyEndAllowThreads(__tstate);
20906 if (PyErr_Occurred()) SWIG_fail;
20907 }
20908 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
20909 return resultobj;
20910fail:
20911 return NULL;
20912}
20913
20914
20915SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20916 PyObject *resultobj = 0;
20917 wxDC *arg1 = (wxDC *) 0 ;
20918 int *arg2 = (int *) 0 ;
20919 int *arg3 = (int *) 0 ;
20920 void *argp1 = 0 ;
20921 int res1 = 0 ;
20922 int temp2 ;
20923 int res2 = SWIG_TMPOBJ ;
20924 int temp3 ;
20925 int res3 = SWIG_TMPOBJ ;
20926 PyObject *swig_obj[1] ;
20927
20928 arg2 = &temp2;
20929 arg3 = &temp3;
20930 if (!args) SWIG_fail;
20931 swig_obj[0] = args;
20932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20933 if (!SWIG_IsOK(res1)) {
20934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
20935 }
20936 arg1 = reinterpret_cast< wxDC * >(argp1);
20937 {
20938 PyThreadState* __tstate = wxPyBeginAllowThreads();
20939 (arg1)->GetSize(arg2,arg3);
20940 wxPyEndAllowThreads(__tstate);
20941 if (PyErr_Occurred()) SWIG_fail;
20942 }
20943 resultobj = SWIG_Py_Void();
20944 if (SWIG_IsTmpObj(res2)) {
20945 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20946 } else {
20947 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20948 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20949 }
20950 if (SWIG_IsTmpObj(res3)) {
20951 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20952 } else {
20953 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20954 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20955 }
20956 return resultobj;
20957fail:
20958 return NULL;
20959}
20960
20961
20962SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20963 PyObject *resultobj = 0;
20964 wxDC *arg1 = (wxDC *) 0 ;
20965 wxSize result;
20966 void *argp1 = 0 ;
20967 int res1 = 0 ;
20968 PyObject *swig_obj[1] ;
20969
20970 if (!args) SWIG_fail;
20971 swig_obj[0] = args;
20972 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20973 if (!SWIG_IsOK(res1)) {
20974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
20975 }
20976 arg1 = reinterpret_cast< wxDC * >(argp1);
20977 {
20978 PyThreadState* __tstate = wxPyBeginAllowThreads();
20979 result = ((wxDC const *)arg1)->GetSizeMM();
20980 wxPyEndAllowThreads(__tstate);
20981 if (PyErr_Occurred()) SWIG_fail;
20982 }
20983 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
20984 return resultobj;
20985fail:
20986 return NULL;
20987}
20988
20989
20990SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20991 PyObject *resultobj = 0;
20992 wxDC *arg1 = (wxDC *) 0 ;
20993 int *arg2 = (int *) 0 ;
20994 int *arg3 = (int *) 0 ;
20995 void *argp1 = 0 ;
20996 int res1 = 0 ;
20997 int temp2 ;
20998 int res2 = SWIG_TMPOBJ ;
20999 int temp3 ;
21000 int res3 = SWIG_TMPOBJ ;
21001 PyObject *swig_obj[1] ;
21002
21003 arg2 = &temp2;
21004 arg3 = &temp3;
21005 if (!args) SWIG_fail;
21006 swig_obj[0] = args;
21007 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21008 if (!SWIG_IsOK(res1)) {
21009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21010 }
21011 arg1 = reinterpret_cast< wxDC * >(argp1);
21012 {
21013 PyThreadState* __tstate = wxPyBeginAllowThreads();
21014 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21015 wxPyEndAllowThreads(__tstate);
21016 if (PyErr_Occurred()) SWIG_fail;
21017 }
21018 resultobj = SWIG_Py_Void();
21019 if (SWIG_IsTmpObj(res2)) {
21020 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21021 } else {
21022 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21023 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21024 }
21025 if (SWIG_IsTmpObj(res3)) {
21026 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21027 } else {
21028 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21029 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21030 }
21031 return resultobj;
21032fail:
21033 return NULL;
21034}
21035
21036
21037SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21038 PyObject *resultobj = 0;
21039 wxDC *arg1 = (wxDC *) 0 ;
21040 int arg2 ;
21041 int result;
21042 void *argp1 = 0 ;
21043 int res1 = 0 ;
21044 int val2 ;
21045 int ecode2 = 0 ;
21046 PyObject * obj0 = 0 ;
21047 PyObject * obj1 = 0 ;
21048 char * kwnames[] = {
21049 (char *) "self",(char *) "x", NULL
21050 };
21051
21052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21054 if (!SWIG_IsOK(res1)) {
21055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21056 }
21057 arg1 = reinterpret_cast< wxDC * >(argp1);
21058 ecode2 = SWIG_AsVal_int(obj1, &val2);
21059 if (!SWIG_IsOK(ecode2)) {
21060 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21061 }
21062 arg2 = static_cast< int >(val2);
21063 {
21064 PyThreadState* __tstate = wxPyBeginAllowThreads();
21065 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21066 wxPyEndAllowThreads(__tstate);
21067 if (PyErr_Occurred()) SWIG_fail;
21068 }
21069 resultobj = SWIG_From_int(static_cast< int >(result));
21070 return resultobj;
21071fail:
21072 return NULL;
21073}
21074
21075
21076SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21077 PyObject *resultobj = 0;
21078 wxDC *arg1 = (wxDC *) 0 ;
21079 int arg2 ;
21080 int result;
21081 void *argp1 = 0 ;
21082 int res1 = 0 ;
21083 int val2 ;
21084 int ecode2 = 0 ;
21085 PyObject * obj0 = 0 ;
21086 PyObject * obj1 = 0 ;
21087 char * kwnames[] = {
21088 (char *) "self",(char *) "y", NULL
21089 };
21090
21091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21093 if (!SWIG_IsOK(res1)) {
21094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21095 }
21096 arg1 = reinterpret_cast< wxDC * >(argp1);
21097 ecode2 = SWIG_AsVal_int(obj1, &val2);
21098 if (!SWIG_IsOK(ecode2)) {
21099 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21100 }
21101 arg2 = static_cast< int >(val2);
21102 {
21103 PyThreadState* __tstate = wxPyBeginAllowThreads();
21104 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21105 wxPyEndAllowThreads(__tstate);
21106 if (PyErr_Occurred()) SWIG_fail;
21107 }
21108 resultobj = SWIG_From_int(static_cast< int >(result));
21109 return resultobj;
21110fail:
21111 return NULL;
21112}
21113
21114
21115SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21116 PyObject *resultobj = 0;
21117 wxDC *arg1 = (wxDC *) 0 ;
21118 int arg2 ;
21119 int result;
21120 void *argp1 = 0 ;
21121 int res1 = 0 ;
21122 int val2 ;
21123 int ecode2 = 0 ;
21124 PyObject * obj0 = 0 ;
21125 PyObject * obj1 = 0 ;
21126 char * kwnames[] = {
21127 (char *) "self",(char *) "x", NULL
21128 };
21129
21130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21132 if (!SWIG_IsOK(res1)) {
21133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21134 }
21135 arg1 = reinterpret_cast< wxDC * >(argp1);
21136 ecode2 = SWIG_AsVal_int(obj1, &val2);
21137 if (!SWIG_IsOK(ecode2)) {
21138 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21139 }
21140 arg2 = static_cast< int >(val2);
21141 {
21142 PyThreadState* __tstate = wxPyBeginAllowThreads();
21143 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21144 wxPyEndAllowThreads(__tstate);
21145 if (PyErr_Occurred()) SWIG_fail;
21146 }
21147 resultobj = SWIG_From_int(static_cast< int >(result));
21148 return resultobj;
21149fail:
21150 return NULL;
21151}
21152
21153
21154SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21155 PyObject *resultobj = 0;
21156 wxDC *arg1 = (wxDC *) 0 ;
21157 int arg2 ;
21158 int result;
21159 void *argp1 = 0 ;
21160 int res1 = 0 ;
21161 int val2 ;
21162 int ecode2 = 0 ;
21163 PyObject * obj0 = 0 ;
21164 PyObject * obj1 = 0 ;
21165 char * kwnames[] = {
21166 (char *) "self",(char *) "y", NULL
21167 };
21168
21169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21171 if (!SWIG_IsOK(res1)) {
21172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21173 }
21174 arg1 = reinterpret_cast< wxDC * >(argp1);
21175 ecode2 = SWIG_AsVal_int(obj1, &val2);
21176 if (!SWIG_IsOK(ecode2)) {
21177 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21178 }
21179 arg2 = static_cast< int >(val2);
21180 {
21181 PyThreadState* __tstate = wxPyBeginAllowThreads();
21182 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21183 wxPyEndAllowThreads(__tstate);
21184 if (PyErr_Occurred()) SWIG_fail;
21185 }
21186 resultobj = SWIG_From_int(static_cast< int >(result));
21187 return resultobj;
21188fail:
21189 return NULL;
21190}
21191
21192
21193SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21194 PyObject *resultobj = 0;
21195 wxDC *arg1 = (wxDC *) 0 ;
21196 int arg2 ;
21197 int result;
21198 void *argp1 = 0 ;
21199 int res1 = 0 ;
21200 int val2 ;
21201 int ecode2 = 0 ;
21202 PyObject * obj0 = 0 ;
21203 PyObject * obj1 = 0 ;
21204 char * kwnames[] = {
21205 (char *) "self",(char *) "x", NULL
21206 };
21207
21208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21210 if (!SWIG_IsOK(res1)) {
21211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21212 }
21213 arg1 = reinterpret_cast< wxDC * >(argp1);
21214 ecode2 = SWIG_AsVal_int(obj1, &val2);
21215 if (!SWIG_IsOK(ecode2)) {
21216 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21217 }
21218 arg2 = static_cast< int >(val2);
21219 {
21220 PyThreadState* __tstate = wxPyBeginAllowThreads();
21221 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21222 wxPyEndAllowThreads(__tstate);
21223 if (PyErr_Occurred()) SWIG_fail;
21224 }
21225 resultobj = SWIG_From_int(static_cast< int >(result));
21226 return resultobj;
21227fail:
21228 return NULL;
21229}
21230
21231
21232SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21233 PyObject *resultobj = 0;
21234 wxDC *arg1 = (wxDC *) 0 ;
21235 int arg2 ;
21236 int result;
21237 void *argp1 = 0 ;
21238 int res1 = 0 ;
21239 int val2 ;
21240 int ecode2 = 0 ;
21241 PyObject * obj0 = 0 ;
21242 PyObject * obj1 = 0 ;
21243 char * kwnames[] = {
21244 (char *) "self",(char *) "y", NULL
21245 };
21246
21247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21249 if (!SWIG_IsOK(res1)) {
21250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21251 }
21252 arg1 = reinterpret_cast< wxDC * >(argp1);
21253 ecode2 = SWIG_AsVal_int(obj1, &val2);
21254 if (!SWIG_IsOK(ecode2)) {
21255 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21256 }
21257 arg2 = static_cast< int >(val2);
21258 {
21259 PyThreadState* __tstate = wxPyBeginAllowThreads();
21260 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21261 wxPyEndAllowThreads(__tstate);
21262 if (PyErr_Occurred()) SWIG_fail;
21263 }
21264 resultobj = SWIG_From_int(static_cast< int >(result));
21265 return resultobj;
21266fail:
21267 return NULL;
21268}
21269
21270
21271SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21272 PyObject *resultobj = 0;
21273 wxDC *arg1 = (wxDC *) 0 ;
21274 int arg2 ;
21275 int result;
21276 void *argp1 = 0 ;
21277 int res1 = 0 ;
21278 int val2 ;
21279 int ecode2 = 0 ;
21280 PyObject * obj0 = 0 ;
21281 PyObject * obj1 = 0 ;
21282 char * kwnames[] = {
21283 (char *) "self",(char *) "x", NULL
21284 };
21285
21286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21288 if (!SWIG_IsOK(res1)) {
21289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21290 }
21291 arg1 = reinterpret_cast< wxDC * >(argp1);
21292 ecode2 = SWIG_AsVal_int(obj1, &val2);
21293 if (!SWIG_IsOK(ecode2)) {
21294 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21295 }
21296 arg2 = static_cast< int >(val2);
21297 {
21298 PyThreadState* __tstate = wxPyBeginAllowThreads();
21299 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21300 wxPyEndAllowThreads(__tstate);
21301 if (PyErr_Occurred()) SWIG_fail;
21302 }
21303 resultobj = SWIG_From_int(static_cast< int >(result));
21304 return resultobj;
21305fail:
21306 return NULL;
21307}
21308
21309
21310SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21311 PyObject *resultobj = 0;
21312 wxDC *arg1 = (wxDC *) 0 ;
21313 int arg2 ;
21314 int result;
21315 void *argp1 = 0 ;
21316 int res1 = 0 ;
21317 int val2 ;
21318 int ecode2 = 0 ;
21319 PyObject * obj0 = 0 ;
21320 PyObject * obj1 = 0 ;
21321 char * kwnames[] = {
21322 (char *) "self",(char *) "y", NULL
21323 };
21324
21325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21327 if (!SWIG_IsOK(res1)) {
21328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21329 }
21330 arg1 = reinterpret_cast< wxDC * >(argp1);
21331 ecode2 = SWIG_AsVal_int(obj1, &val2);
21332 if (!SWIG_IsOK(ecode2)) {
21333 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21334 }
21335 arg2 = static_cast< int >(val2);
21336 {
21337 PyThreadState* __tstate = wxPyBeginAllowThreads();
21338 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21339 wxPyEndAllowThreads(__tstate);
21340 if (PyErr_Occurred()) SWIG_fail;
21341 }
21342 resultobj = SWIG_From_int(static_cast< int >(result));
21343 return resultobj;
21344fail:
21345 return NULL;
21346}
21347
21348
21349SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21350 PyObject *resultobj = 0;
21351 wxDC *arg1 = (wxDC *) 0 ;
21352 bool result;
21353 void *argp1 = 0 ;
21354 int res1 = 0 ;
21355 PyObject *swig_obj[1] ;
21356
21357 if (!args) SWIG_fail;
21358 swig_obj[0] = args;
21359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21360 if (!SWIG_IsOK(res1)) {
21361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
21362 }
21363 arg1 = reinterpret_cast< wxDC * >(argp1);
21364 {
21365 PyThreadState* __tstate = wxPyBeginAllowThreads();
21366 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
21367 wxPyEndAllowThreads(__tstate);
21368 if (PyErr_Occurred()) SWIG_fail;
21369 }
21370 {
21371 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21372 }
21373 return resultobj;
21374fail:
21375 return NULL;
21376}
21377
21378
21379SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21380 PyObject *resultobj = 0;
21381 wxDC *arg1 = (wxDC *) 0 ;
21382 bool result;
21383 void *argp1 = 0 ;
21384 int res1 = 0 ;
21385 PyObject *swig_obj[1] ;
21386
21387 if (!args) SWIG_fail;
21388 swig_obj[0] = args;
21389 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21390 if (!SWIG_IsOK(res1)) {
21391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
21392 }
21393 arg1 = reinterpret_cast< wxDC * >(argp1);
21394 {
21395 PyThreadState* __tstate = wxPyBeginAllowThreads();
21396 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
21397 wxPyEndAllowThreads(__tstate);
21398 if (PyErr_Occurred()) SWIG_fail;
21399 }
21400 {
21401 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21402 }
21403 return resultobj;
21404fail:
21405 return NULL;
21406}
21407
21408
21409SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21410 PyObject *resultobj = 0;
21411 wxDC *arg1 = (wxDC *) 0 ;
21412 int result;
21413 void *argp1 = 0 ;
21414 int res1 = 0 ;
21415 PyObject *swig_obj[1] ;
21416
21417 if (!args) SWIG_fail;
21418 swig_obj[0] = args;
21419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21420 if (!SWIG_IsOK(res1)) {
21421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
21422 }
21423 arg1 = reinterpret_cast< wxDC * >(argp1);
21424 {
21425 PyThreadState* __tstate = wxPyBeginAllowThreads();
21426 result = (int)((wxDC const *)arg1)->GetDepth();
21427 wxPyEndAllowThreads(__tstate);
21428 if (PyErr_Occurred()) SWIG_fail;
21429 }
21430 resultobj = SWIG_From_int(static_cast< int >(result));
21431 return resultobj;
21432fail:
21433 return NULL;
21434}
21435
21436
21437SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21438 PyObject *resultobj = 0;
21439 wxDC *arg1 = (wxDC *) 0 ;
21440 wxSize result;
21441 void *argp1 = 0 ;
21442 int res1 = 0 ;
21443 PyObject *swig_obj[1] ;
21444
21445 if (!args) SWIG_fail;
21446 swig_obj[0] = args;
21447 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21448 if (!SWIG_IsOK(res1)) {
21449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
21450 }
21451 arg1 = reinterpret_cast< wxDC * >(argp1);
21452 {
21453 PyThreadState* __tstate = wxPyBeginAllowThreads();
21454 result = ((wxDC const *)arg1)->GetPPI();
21455 wxPyEndAllowThreads(__tstate);
21456 if (PyErr_Occurred()) SWIG_fail;
21457 }
21458 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21459 return resultobj;
21460fail:
21461 return NULL;
21462}
21463
21464
b39fe951 21465SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
21466 PyObject *resultobj = 0;
21467 wxDC *arg1 = (wxDC *) 0 ;
21468 bool result;
21469 void *argp1 = 0 ;
21470 int res1 = 0 ;
21471 PyObject *swig_obj[1] ;
21472
21473 if (!args) SWIG_fail;
21474 swig_obj[0] = args;
21475 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21476 if (!SWIG_IsOK(res1)) {
b39fe951 21477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
0085ce49
RD
21478 }
21479 arg1 = reinterpret_cast< wxDC * >(argp1);
21480 {
21481 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 21482 result = (bool)((wxDC const *)arg1)->IsOk();
0085ce49
RD
21483 wxPyEndAllowThreads(__tstate);
21484 if (PyErr_Occurred()) SWIG_fail;
21485 }
21486 {
21487 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21488 }
21489 return resultobj;
21490fail:
21491 return NULL;
21492}
21493
21494
21495SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21496 PyObject *resultobj = 0;
21497 wxDC *arg1 = (wxDC *) 0 ;
21498 int result;
21499 void *argp1 = 0 ;
21500 int res1 = 0 ;
21501 PyObject *swig_obj[1] ;
21502
21503 if (!args) SWIG_fail;
21504 swig_obj[0] = args;
21505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21506 if (!SWIG_IsOK(res1)) {
21507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21508 }
21509 arg1 = reinterpret_cast< wxDC * >(argp1);
21510 {
21511 PyThreadState* __tstate = wxPyBeginAllowThreads();
21512 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
21513 wxPyEndAllowThreads(__tstate);
21514 if (PyErr_Occurred()) SWIG_fail;
21515 }
21516 resultobj = SWIG_From_int(static_cast< int >(result));
21517 return resultobj;
21518fail:
21519 return NULL;
21520}
21521
21522
21523SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21524 PyObject *resultobj = 0;
21525 wxDC *arg1 = (wxDC *) 0 ;
21526 wxBrush *result = 0 ;
21527 void *argp1 = 0 ;
21528 int res1 = 0 ;
21529 PyObject *swig_obj[1] ;
21530
21531 if (!args) SWIG_fail;
21532 swig_obj[0] = args;
21533 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21534 if (!SWIG_IsOK(res1)) {
21535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21536 }
21537 arg1 = reinterpret_cast< wxDC * >(argp1);
21538 {
21539 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 21540 {
0085ce49
RD
21541 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
21542 result = (wxBrush *) &_result_ref;
093d3ff1 21543 }
0085ce49
RD
21544 wxPyEndAllowThreads(__tstate);
21545 if (PyErr_Occurred()) SWIG_fail;
21546 }
21547 {
21548 wxBrush* resultptr = new wxBrush(*result);
21549 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21550 }
21551 return resultobj;
21552fail:
21553 return NULL;
21554}
21555
21556
21557SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21558 PyObject *resultobj = 0;
21559 wxDC *arg1 = (wxDC *) 0 ;
21560 wxBrush *result = 0 ;
21561 void *argp1 = 0 ;
21562 int res1 = 0 ;
21563 PyObject *swig_obj[1] ;
21564
21565 if (!args) SWIG_fail;
21566 swig_obj[0] = args;
21567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21568 if (!SWIG_IsOK(res1)) {
21569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
21570 }
21571 arg1 = reinterpret_cast< wxDC * >(argp1);
21572 {
21573 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 21574 {
0085ce49
RD
21575 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
21576 result = (wxBrush *) &_result_ref;
093d3ff1 21577 }
0085ce49
RD
21578 wxPyEndAllowThreads(__tstate);
21579 if (PyErr_Occurred()) SWIG_fail;
21580 }
21581 {
21582 wxBrush* resultptr = new wxBrush(*result);
21583 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21584 }
21585 return resultobj;
21586fail:
21587 return NULL;
21588}
21589
21590
21591SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21592 PyObject *resultobj = 0;
21593 wxDC *arg1 = (wxDC *) 0 ;
21594 wxFont *result = 0 ;
21595 void *argp1 = 0 ;
21596 int res1 = 0 ;
21597 PyObject *swig_obj[1] ;
21598
21599 if (!args) SWIG_fail;
21600 swig_obj[0] = args;
21601 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21602 if (!SWIG_IsOK(res1)) {
21603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
21604 }
21605 arg1 = reinterpret_cast< wxDC * >(argp1);
21606 {
21607 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 21608 {
0085ce49
RD
21609 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
21610 result = (wxFont *) &_result_ref;
093d3ff1 21611 }
0085ce49
RD
21612 wxPyEndAllowThreads(__tstate);
21613 if (PyErr_Occurred()) SWIG_fail;
21614 }
21615 {
21616 wxFont* resultptr = new wxFont(*result);
21617 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
21618 }
21619 return resultobj;
21620fail:
21621 return NULL;
21622}
21623
21624
21625SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21626 PyObject *resultobj = 0;
21627 wxDC *arg1 = (wxDC *) 0 ;
21628 wxPen *result = 0 ;
21629 void *argp1 = 0 ;
21630 int res1 = 0 ;
21631 PyObject *swig_obj[1] ;
21632
21633 if (!args) SWIG_fail;
21634 swig_obj[0] = args;
21635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21636 if (!SWIG_IsOK(res1)) {
21637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
21638 }
21639 arg1 = reinterpret_cast< wxDC * >(argp1);
21640 {
21641 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 21642 {
0085ce49
RD
21643 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
21644 result = (wxPen *) &_result_ref;
093d3ff1 21645 }
0085ce49
RD
21646 wxPyEndAllowThreads(__tstate);
21647 if (PyErr_Occurred()) SWIG_fail;
21648 }
21649 {
21650 wxPen* resultptr = new wxPen(*result);
21651 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
21652 }
21653 return resultobj;
21654fail:
21655 return NULL;
21656}
21657
21658
21659SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21660 PyObject *resultobj = 0;
21661 wxDC *arg1 = (wxDC *) 0 ;
21662 wxColour *result = 0 ;
21663 void *argp1 = 0 ;
21664 int res1 = 0 ;
21665 PyObject *swig_obj[1] ;
21666
21667 if (!args) SWIG_fail;
21668 swig_obj[0] = args;
21669 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21670 if (!SWIG_IsOK(res1)) {
21671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21672 }
21673 arg1 = reinterpret_cast< wxDC * >(argp1);
21674 {
21675 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 21676 {
0085ce49
RD
21677 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
21678 result = (wxColour *) &_result_ref;
093d3ff1 21679 }
0085ce49
RD
21680 wxPyEndAllowThreads(__tstate);
21681 if (PyErr_Occurred()) SWIG_fail;
21682 }
21683 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
21684 return resultobj;
21685fail:
21686 return NULL;
21687}
21688
21689
21690SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21691 PyObject *resultobj = 0;
21692 wxDC *arg1 = (wxDC *) 0 ;
21693 wxColour *result = 0 ;
21694 void *argp1 = 0 ;
21695 int res1 = 0 ;
21696 PyObject *swig_obj[1] ;
21697
21698 if (!args) SWIG_fail;
21699 swig_obj[0] = args;
21700 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21701 if (!SWIG_IsOK(res1)) {
21702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
21703 }
21704 arg1 = reinterpret_cast< wxDC * >(argp1);
21705 {
21706 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 21707 {
0085ce49
RD
21708 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
21709 result = (wxColour *) &_result_ref;
093d3ff1 21710 }
0085ce49
RD
21711 wxPyEndAllowThreads(__tstate);
21712 if (PyErr_Occurred()) SWIG_fail;
21713 }
21714 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
21715 return resultobj;
21716fail:
21717 return NULL;
21718}
21719
21720
21721SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21722 PyObject *resultobj = 0;
21723 wxDC *arg1 = (wxDC *) 0 ;
21724 wxColour *arg2 = 0 ;
21725 void *argp1 = 0 ;
21726 int res1 = 0 ;
21727 wxColour temp2 ;
21728 PyObject * obj0 = 0 ;
21729 PyObject * obj1 = 0 ;
21730 char * kwnames[] = {
21731 (char *) "self",(char *) "colour", NULL
21732 };
21733
21734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
21735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21736 if (!SWIG_IsOK(res1)) {
21737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
21738 }
21739 arg1 = reinterpret_cast< wxDC * >(argp1);
21740 {
21741 arg2 = &temp2;
21742 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21743 }
21744 {
21745 PyThreadState* __tstate = wxPyBeginAllowThreads();
21746 (arg1)->SetTextForeground((wxColour const &)*arg2);
21747 wxPyEndAllowThreads(__tstate);
21748 if (PyErr_Occurred()) SWIG_fail;
21749 }
21750 resultobj = SWIG_Py_Void();
21751 return resultobj;
21752fail:
21753 return NULL;
21754}
21755
21756
21757SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21758 PyObject *resultobj = 0;
21759 wxDC *arg1 = (wxDC *) 0 ;
21760 wxColour *arg2 = 0 ;
21761 void *argp1 = 0 ;
21762 int res1 = 0 ;
21763 wxColour temp2 ;
21764 PyObject * obj0 = 0 ;
21765 PyObject * obj1 = 0 ;
21766 char * kwnames[] = {
21767 (char *) "self",(char *) "colour", NULL
21768 };
21769
21770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
21771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21772 if (!SWIG_IsOK(res1)) {
21773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
21774 }
21775 arg1 = reinterpret_cast< wxDC * >(argp1);
21776 {
21777 arg2 = &temp2;
21778 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21779 }
21780 {
21781 PyThreadState* __tstate = wxPyBeginAllowThreads();
21782 (arg1)->SetTextBackground((wxColour const &)*arg2);
21783 wxPyEndAllowThreads(__tstate);
21784 if (PyErr_Occurred()) SWIG_fail;
21785 }
21786 resultobj = SWIG_Py_Void();
21787 return resultobj;
21788fail:
21789 return NULL;
21790}
21791
21792
21793SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21794 PyObject *resultobj = 0;
21795 wxDC *arg1 = (wxDC *) 0 ;
21796 int result;
21797 void *argp1 = 0 ;
21798 int res1 = 0 ;
21799 PyObject *swig_obj[1] ;
21800
21801 if (!args) SWIG_fail;
21802 swig_obj[0] = args;
21803 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21804 if (!SWIG_IsOK(res1)) {
21805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21806 }
21807 arg1 = reinterpret_cast< wxDC * >(argp1);
21808 {
21809 PyThreadState* __tstate = wxPyBeginAllowThreads();
21810 result = (int)((wxDC const *)arg1)->GetMapMode();
21811 wxPyEndAllowThreads(__tstate);
21812 if (PyErr_Occurred()) SWIG_fail;
21813 }
21814 resultobj = SWIG_From_int(static_cast< int >(result));
21815 return resultobj;
21816fail:
21817 return NULL;
21818}
21819
21820
21821SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21822 PyObject *resultobj = 0;
21823 wxDC *arg1 = (wxDC *) 0 ;
21824 int arg2 ;
21825 void *argp1 = 0 ;
21826 int res1 = 0 ;
21827 int val2 ;
21828 int ecode2 = 0 ;
21829 PyObject * obj0 = 0 ;
21830 PyObject * obj1 = 0 ;
21831 char * kwnames[] = {
21832 (char *) "self",(char *) "mode", NULL
21833 };
21834
21835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
21836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21837 if (!SWIG_IsOK(res1)) {
21838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
21839 }
21840 arg1 = reinterpret_cast< wxDC * >(argp1);
21841 ecode2 = SWIG_AsVal_int(obj1, &val2);
21842 if (!SWIG_IsOK(ecode2)) {
21843 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
21844 }
21845 arg2 = static_cast< int >(val2);
21846 {
21847 PyThreadState* __tstate = wxPyBeginAllowThreads();
21848 (arg1)->SetMapMode(arg2);
21849 wxPyEndAllowThreads(__tstate);
21850 if (PyErr_Occurred()) SWIG_fail;
21851 }
21852 resultobj = SWIG_Py_Void();
21853 return resultobj;
21854fail:
21855 return NULL;
21856}
21857
21858
21859SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21860 PyObject *resultobj = 0;
21861 wxDC *arg1 = (wxDC *) 0 ;
21862 double *arg2 = (double *) 0 ;
21863 double *arg3 = (double *) 0 ;
21864 void *argp1 = 0 ;
21865 int res1 = 0 ;
21866 double temp2 ;
21867 int res2 = SWIG_TMPOBJ ;
21868 double temp3 ;
21869 int res3 = SWIG_TMPOBJ ;
21870 PyObject *swig_obj[1] ;
21871
21872 arg2 = &temp2;
21873 arg3 = &temp3;
21874 if (!args) SWIG_fail;
21875 swig_obj[0] = args;
21876 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21877 if (!SWIG_IsOK(res1)) {
21878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
21879 }
21880 arg1 = reinterpret_cast< wxDC * >(argp1);
21881 {
21882 PyThreadState* __tstate = wxPyBeginAllowThreads();
21883 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
21884 wxPyEndAllowThreads(__tstate);
21885 if (PyErr_Occurred()) SWIG_fail;
21886 }
21887 resultobj = SWIG_Py_Void();
21888 if (SWIG_IsTmpObj(res2)) {
21889 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
21890 } else {
21891 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21892 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
21893 }
21894 if (SWIG_IsTmpObj(res3)) {
21895 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
21896 } else {
21897 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21898 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
21899 }
21900 return resultobj;
21901fail:
21902 return NULL;
21903}
21904
21905
21906SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21907 PyObject *resultobj = 0;
21908 wxDC *arg1 = (wxDC *) 0 ;
21909 double arg2 ;
21910 double arg3 ;
21911 void *argp1 = 0 ;
21912 int res1 = 0 ;
21913 double val2 ;
21914 int ecode2 = 0 ;
21915 double val3 ;
21916 int ecode3 = 0 ;
21917 PyObject * obj0 = 0 ;
21918 PyObject * obj1 = 0 ;
21919 PyObject * obj2 = 0 ;
21920 char * kwnames[] = {
21921 (char *) "self",(char *) "x",(char *) "y", NULL
21922 };
21923
21924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21926 if (!SWIG_IsOK(res1)) {
21927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
21928 }
21929 arg1 = reinterpret_cast< wxDC * >(argp1);
21930 ecode2 = SWIG_AsVal_double(obj1, &val2);
21931 if (!SWIG_IsOK(ecode2)) {
21932 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
21933 }
21934 arg2 = static_cast< double >(val2);
21935 ecode3 = SWIG_AsVal_double(obj2, &val3);
21936 if (!SWIG_IsOK(ecode3)) {
21937 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
21938 }
21939 arg3 = static_cast< double >(val3);
21940 {
21941 PyThreadState* __tstate = wxPyBeginAllowThreads();
21942 (arg1)->SetUserScale(arg2,arg3);
21943 wxPyEndAllowThreads(__tstate);
21944 if (PyErr_Occurred()) SWIG_fail;
21945 }
21946 resultobj = SWIG_Py_Void();
21947 return resultobj;
21948fail:
21949 return NULL;
21950}
21951
21952
21953SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21954 PyObject *resultobj = 0;
21955 wxDC *arg1 = (wxDC *) 0 ;
21956 double *arg2 = (double *) 0 ;
21957 double *arg3 = (double *) 0 ;
21958 void *argp1 = 0 ;
21959 int res1 = 0 ;
21960 double temp2 ;
21961 int res2 = SWIG_TMPOBJ ;
21962 double temp3 ;
21963 int res3 = SWIG_TMPOBJ ;
21964 PyObject *swig_obj[1] ;
21965
21966 arg2 = &temp2;
21967 arg3 = &temp3;
21968 if (!args) SWIG_fail;
21969 swig_obj[0] = args;
21970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21971 if (!SWIG_IsOK(res1)) {
21972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
21973 }
21974 arg1 = reinterpret_cast< wxDC * >(argp1);
21975 {
21976 PyThreadState* __tstate = wxPyBeginAllowThreads();
21977 (arg1)->GetLogicalScale(arg2,arg3);
21978 wxPyEndAllowThreads(__tstate);
21979 if (PyErr_Occurred()) SWIG_fail;
21980 }
21981 resultobj = SWIG_Py_Void();
21982 if (SWIG_IsTmpObj(res2)) {
21983 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
21984 } else {
21985 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21986 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
21987 }
21988 if (SWIG_IsTmpObj(res3)) {
21989 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
21990 } else {
21991 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21992 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
21993 }
21994 return resultobj;
21995fail:
21996 return NULL;
21997}
21998
21999
22000SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22001 PyObject *resultobj = 0;
22002 wxDC *arg1 = (wxDC *) 0 ;
22003 double arg2 ;
22004 double arg3 ;
22005 void *argp1 = 0 ;
22006 int res1 = 0 ;
22007 double val2 ;
22008 int ecode2 = 0 ;
22009 double val3 ;
22010 int ecode3 = 0 ;
22011 PyObject * obj0 = 0 ;
22012 PyObject * obj1 = 0 ;
22013 PyObject * obj2 = 0 ;
22014 char * kwnames[] = {
22015 (char *) "self",(char *) "x",(char *) "y", NULL
22016 };
22017
22018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22020 if (!SWIG_IsOK(res1)) {
22021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22022 }
22023 arg1 = reinterpret_cast< wxDC * >(argp1);
22024 ecode2 = SWIG_AsVal_double(obj1, &val2);
22025 if (!SWIG_IsOK(ecode2)) {
22026 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22027 }
22028 arg2 = static_cast< double >(val2);
22029 ecode3 = SWIG_AsVal_double(obj2, &val3);
22030 if (!SWIG_IsOK(ecode3)) {
22031 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22032 }
22033 arg3 = static_cast< double >(val3);
22034 {
22035 PyThreadState* __tstate = wxPyBeginAllowThreads();
22036 (arg1)->SetLogicalScale(arg2,arg3);
22037 wxPyEndAllowThreads(__tstate);
22038 if (PyErr_Occurred()) SWIG_fail;
22039 }
22040 resultobj = SWIG_Py_Void();
22041 return resultobj;
22042fail:
22043 return NULL;
22044}
22045
22046
22047SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22048 PyObject *resultobj = 0;
22049 wxDC *arg1 = (wxDC *) 0 ;
22050 wxPoint result;
22051 void *argp1 = 0 ;
22052 int res1 = 0 ;
22053 PyObject *swig_obj[1] ;
22054
22055 if (!args) SWIG_fail;
22056 swig_obj[0] = args;
22057 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22058 if (!SWIG_IsOK(res1)) {
22059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22060 }
22061 arg1 = reinterpret_cast< wxDC * >(argp1);
22062 {
22063 PyThreadState* __tstate = wxPyBeginAllowThreads();
22064 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22065 wxPyEndAllowThreads(__tstate);
22066 if (PyErr_Occurred()) SWIG_fail;
22067 }
22068 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22069 return resultobj;
22070fail:
22071 return NULL;
22072}
22073
22074
22075SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22076 PyObject *resultobj = 0;
22077 wxDC *arg1 = (wxDC *) 0 ;
22078 int *arg2 = (int *) 0 ;
22079 int *arg3 = (int *) 0 ;
22080 void *argp1 = 0 ;
22081 int res1 = 0 ;
22082 int temp2 ;
22083 int res2 = SWIG_TMPOBJ ;
22084 int temp3 ;
22085 int res3 = SWIG_TMPOBJ ;
22086 PyObject *swig_obj[1] ;
22087
22088 arg2 = &temp2;
22089 arg3 = &temp3;
22090 if (!args) SWIG_fail;
22091 swig_obj[0] = args;
22092 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22093 if (!SWIG_IsOK(res1)) {
22094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22095 }
22096 arg1 = reinterpret_cast< wxDC * >(argp1);
22097 {
22098 PyThreadState* __tstate = wxPyBeginAllowThreads();
22099 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22100 wxPyEndAllowThreads(__tstate);
22101 if (PyErr_Occurred()) SWIG_fail;
22102 }
22103 resultobj = SWIG_Py_Void();
22104 if (SWIG_IsTmpObj(res2)) {
22105 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22106 } else {
22107 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22108 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22109 }
22110 if (SWIG_IsTmpObj(res3)) {
22111 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22112 } else {
22113 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22114 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22115 }
22116 return resultobj;
22117fail:
22118 return NULL;
22119}
22120
22121
22122SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22123 PyObject *resultobj = 0;
22124 wxDC *arg1 = (wxDC *) 0 ;
22125 int arg2 ;
22126 int arg3 ;
22127 void *argp1 = 0 ;
22128 int res1 = 0 ;
22129 int val2 ;
22130 int ecode2 = 0 ;
22131 int val3 ;
22132 int ecode3 = 0 ;
22133 PyObject * obj0 = 0 ;
22134 PyObject * obj1 = 0 ;
22135 PyObject * obj2 = 0 ;
22136 char * kwnames[] = {
22137 (char *) "self",(char *) "x",(char *) "y", NULL
22138 };
22139
22140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22142 if (!SWIG_IsOK(res1)) {
22143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22144 }
22145 arg1 = reinterpret_cast< wxDC * >(argp1);
22146 ecode2 = SWIG_AsVal_int(obj1, &val2);
22147 if (!SWIG_IsOK(ecode2)) {
22148 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22149 }
22150 arg2 = static_cast< int >(val2);
22151 ecode3 = SWIG_AsVal_int(obj2, &val3);
22152 if (!SWIG_IsOK(ecode3)) {
22153 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22154 }
22155 arg3 = static_cast< int >(val3);
22156 {
22157 PyThreadState* __tstate = wxPyBeginAllowThreads();
22158 (arg1)->SetLogicalOrigin(arg2,arg3);
22159 wxPyEndAllowThreads(__tstate);
22160 if (PyErr_Occurred()) SWIG_fail;
22161 }
22162 resultobj = SWIG_Py_Void();
22163 return resultobj;
22164fail:
22165 return NULL;
22166}
22167
22168
22169SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22170 PyObject *resultobj = 0;
22171 wxDC *arg1 = (wxDC *) 0 ;
22172 wxPoint *arg2 = 0 ;
22173 void *argp1 = 0 ;
22174 int res1 = 0 ;
22175 wxPoint temp2 ;
22176 PyObject * obj0 = 0 ;
22177 PyObject * obj1 = 0 ;
22178 char * kwnames[] = {
22179 (char *) "self",(char *) "point", NULL
22180 };
22181
22182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22184 if (!SWIG_IsOK(res1)) {
22185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22186 }
22187 arg1 = reinterpret_cast< wxDC * >(argp1);
22188 {
22189 arg2 = &temp2;
22190 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22191 }
22192 {
22193 PyThreadState* __tstate = wxPyBeginAllowThreads();
22194 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22195 wxPyEndAllowThreads(__tstate);
22196 if (PyErr_Occurred()) SWIG_fail;
22197 }
22198 resultobj = SWIG_Py_Void();
22199 return resultobj;
22200fail:
22201 return NULL;
22202}
22203
22204
22205SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22206 PyObject *resultobj = 0;
22207 wxDC *arg1 = (wxDC *) 0 ;
22208 wxPoint result;
22209 void *argp1 = 0 ;
22210 int res1 = 0 ;
22211 PyObject *swig_obj[1] ;
22212
22213 if (!args) SWIG_fail;
22214 swig_obj[0] = args;
22215 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22216 if (!SWIG_IsOK(res1)) {
22217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22218 }
22219 arg1 = reinterpret_cast< wxDC * >(argp1);
22220 {
22221 PyThreadState* __tstate = wxPyBeginAllowThreads();
22222 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22223 wxPyEndAllowThreads(__tstate);
22224 if (PyErr_Occurred()) SWIG_fail;
22225 }
22226 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22227 return resultobj;
22228fail:
22229 return NULL;
22230}
22231
22232
22233SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22234 PyObject *resultobj = 0;
22235 wxDC *arg1 = (wxDC *) 0 ;
22236 int *arg2 = (int *) 0 ;
22237 int *arg3 = (int *) 0 ;
22238 void *argp1 = 0 ;
22239 int res1 = 0 ;
22240 int temp2 ;
22241 int res2 = SWIG_TMPOBJ ;
22242 int temp3 ;
22243 int res3 = SWIG_TMPOBJ ;
22244 PyObject *swig_obj[1] ;
22245
22246 arg2 = &temp2;
22247 arg3 = &temp3;
22248 if (!args) SWIG_fail;
22249 swig_obj[0] = args;
22250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22251 if (!SWIG_IsOK(res1)) {
22252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22253 }
22254 arg1 = reinterpret_cast< wxDC * >(argp1);
22255 {
22256 PyThreadState* __tstate = wxPyBeginAllowThreads();
22257 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22258 wxPyEndAllowThreads(__tstate);
22259 if (PyErr_Occurred()) SWIG_fail;
22260 }
22261 resultobj = SWIG_Py_Void();
22262 if (SWIG_IsTmpObj(res2)) {
22263 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22264 } else {
22265 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22266 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22267 }
22268 if (SWIG_IsTmpObj(res3)) {
22269 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22270 } else {
22271 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22272 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22273 }
22274 return resultobj;
22275fail:
22276 return NULL;
22277}
22278
22279
22280SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22281 PyObject *resultobj = 0;
22282 wxDC *arg1 = (wxDC *) 0 ;
22283 int arg2 ;
22284 int arg3 ;
22285 void *argp1 = 0 ;
22286 int res1 = 0 ;
22287 int val2 ;
22288 int ecode2 = 0 ;
22289 int val3 ;
22290 int ecode3 = 0 ;
22291 PyObject * obj0 = 0 ;
22292 PyObject * obj1 = 0 ;
22293 PyObject * obj2 = 0 ;
22294 char * kwnames[] = {
22295 (char *) "self",(char *) "x",(char *) "y", NULL
22296 };
22297
22298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22300 if (!SWIG_IsOK(res1)) {
22301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22302 }
22303 arg1 = reinterpret_cast< wxDC * >(argp1);
22304 ecode2 = SWIG_AsVal_int(obj1, &val2);
22305 if (!SWIG_IsOK(ecode2)) {
22306 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22307 }
22308 arg2 = static_cast< int >(val2);
22309 ecode3 = SWIG_AsVal_int(obj2, &val3);
22310 if (!SWIG_IsOK(ecode3)) {
22311 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22312 }
22313 arg3 = static_cast< int >(val3);
22314 {
22315 PyThreadState* __tstate = wxPyBeginAllowThreads();
22316 (arg1)->SetDeviceOrigin(arg2,arg3);
22317 wxPyEndAllowThreads(__tstate);
22318 if (PyErr_Occurred()) SWIG_fail;
22319 }
22320 resultobj = SWIG_Py_Void();
22321 return resultobj;
22322fail:
22323 return NULL;
22324}
22325
22326
22327SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22328 PyObject *resultobj = 0;
22329 wxDC *arg1 = (wxDC *) 0 ;
22330 wxPoint *arg2 = 0 ;
22331 void *argp1 = 0 ;
22332 int res1 = 0 ;
22333 wxPoint temp2 ;
22334 PyObject * obj0 = 0 ;
22335 PyObject * obj1 = 0 ;
22336 char * kwnames[] = {
22337 (char *) "self",(char *) "point", NULL
22338 };
22339
22340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22342 if (!SWIG_IsOK(res1)) {
22343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22344 }
22345 arg1 = reinterpret_cast< wxDC * >(argp1);
22346 {
22347 arg2 = &temp2;
22348 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22349 }
22350 {
22351 PyThreadState* __tstate = wxPyBeginAllowThreads();
22352 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
22353 wxPyEndAllowThreads(__tstate);
22354 if (PyErr_Occurred()) SWIG_fail;
22355 }
22356 resultobj = SWIG_Py_Void();
22357 return resultobj;
22358fail:
22359 return NULL;
22360}
22361
22362
22363SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22364 PyObject *resultobj = 0;
22365 wxDC *arg1 = (wxDC *) 0 ;
22366 bool arg2 ;
22367 bool arg3 ;
22368 void *argp1 = 0 ;
22369 int res1 = 0 ;
22370 bool val2 ;
22371 int ecode2 = 0 ;
22372 bool val3 ;
22373 int ecode3 = 0 ;
22374 PyObject * obj0 = 0 ;
22375 PyObject * obj1 = 0 ;
22376 PyObject * obj2 = 0 ;
22377 char * kwnames[] = {
22378 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
22379 };
22380
22381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22383 if (!SWIG_IsOK(res1)) {
22384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
22385 }
22386 arg1 = reinterpret_cast< wxDC * >(argp1);
22387 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22388 if (!SWIG_IsOK(ecode2)) {
22389 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
22390 }
22391 arg2 = static_cast< bool >(val2);
22392 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22393 if (!SWIG_IsOK(ecode3)) {
22394 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
22395 }
22396 arg3 = static_cast< bool >(val3);
22397 {
22398 PyThreadState* __tstate = wxPyBeginAllowThreads();
22399 (arg1)->SetAxisOrientation(arg2,arg3);
22400 wxPyEndAllowThreads(__tstate);
22401 if (PyErr_Occurred()) SWIG_fail;
22402 }
22403 resultobj = SWIG_Py_Void();
22404 return resultobj;
22405fail:
22406 return NULL;
22407}
22408
22409
22410SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22411 PyObject *resultobj = 0;
22412 wxDC *arg1 = (wxDC *) 0 ;
22413 int result;
22414 void *argp1 = 0 ;
22415 int res1 = 0 ;
22416 PyObject *swig_obj[1] ;
22417
22418 if (!args) SWIG_fail;
22419 swig_obj[0] = args;
22420 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22421 if (!SWIG_IsOK(res1)) {
22422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
22423 }
22424 arg1 = reinterpret_cast< wxDC * >(argp1);
22425 {
22426 PyThreadState* __tstate = wxPyBeginAllowThreads();
22427 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
22428 wxPyEndAllowThreads(__tstate);
22429 if (PyErr_Occurred()) SWIG_fail;
22430 }
22431 resultobj = SWIG_From_int(static_cast< int >(result));
22432 return resultobj;
22433fail:
22434 return NULL;
22435}
22436
22437
22438SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22439 PyObject *resultobj = 0;
22440 wxDC *arg1 = (wxDC *) 0 ;
22441 int arg2 ;
22442 void *argp1 = 0 ;
22443 int res1 = 0 ;
22444 int val2 ;
22445 int ecode2 = 0 ;
22446 PyObject * obj0 = 0 ;
22447 PyObject * obj1 = 0 ;
22448 char * kwnames[] = {
22449 (char *) "self",(char *) "function", NULL
22450 };
22451
22452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
22453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22454 if (!SWIG_IsOK(res1)) {
22455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
22456 }
22457 arg1 = reinterpret_cast< wxDC * >(argp1);
22458 ecode2 = SWIG_AsVal_int(obj1, &val2);
22459 if (!SWIG_IsOK(ecode2)) {
22460 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
22461 }
22462 arg2 = static_cast< int >(val2);
22463 {
22464 PyThreadState* __tstate = wxPyBeginAllowThreads();
22465 (arg1)->SetLogicalFunction(arg2);
22466 wxPyEndAllowThreads(__tstate);
22467 if (PyErr_Occurred()) SWIG_fail;
22468 }
22469 resultobj = SWIG_Py_Void();
22470 return resultobj;
22471fail:
22472 return NULL;
22473}
22474
22475
22476SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22477 PyObject *resultobj = 0;
22478 wxDC *arg1 = (wxDC *) 0 ;
22479 void *argp1 = 0 ;
22480 int res1 = 0 ;
22481 PyObject *swig_obj[1] ;
22482
22483 if (!args) SWIG_fail;
22484 swig_obj[0] = args;
22485 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22486 if (!SWIG_IsOK(res1)) {
22487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22488 }
22489 arg1 = reinterpret_cast< wxDC * >(argp1);
22490 {
22491 PyThreadState* __tstate = wxPyBeginAllowThreads();
22492 (arg1)->ComputeScaleAndOrigin();
22493 wxPyEndAllowThreads(__tstate);
22494 if (PyErr_Occurred()) SWIG_fail;
22495 }
22496 resultobj = SWIG_Py_Void();
22497 return resultobj;
22498fail:
22499 return NULL;
22500}
22501
22502
22503SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22504 PyObject *resultobj = 0;
22505 wxDC *arg1 = (wxDC *) 0 ;
22506 int arg2 ;
22507 int arg3 ;
22508 void *argp1 = 0 ;
22509 int res1 = 0 ;
22510 int val2 ;
22511 int ecode2 = 0 ;
22512 int val3 ;
22513 int ecode3 = 0 ;
22514 PyObject * obj0 = 0 ;
22515 PyObject * obj1 = 0 ;
22516 PyObject * obj2 = 0 ;
22517 char * kwnames[] = {
22518 (char *) "self",(char *) "x",(char *) "y", NULL
22519 };
22520
22521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22523 if (!SWIG_IsOK(res1)) {
22524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22525 }
22526 arg1 = reinterpret_cast< wxDC * >(argp1);
22527 ecode2 = SWIG_AsVal_int(obj1, &val2);
22528 if (!SWIG_IsOK(ecode2)) {
22529 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
22530 }
22531 arg2 = static_cast< int >(val2);
22532 ecode3 = SWIG_AsVal_int(obj2, &val3);
22533 if (!SWIG_IsOK(ecode3)) {
22534 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
22535 }
22536 arg3 = static_cast< int >(val3);
22537 {
22538 PyThreadState* __tstate = wxPyBeginAllowThreads();
22539 (arg1)->CalcBoundingBox(arg2,arg3);
22540 wxPyEndAllowThreads(__tstate);
22541 if (PyErr_Occurred()) SWIG_fail;
22542 }
22543 resultobj = SWIG_Py_Void();
22544 return resultobj;
22545fail:
22546 return NULL;
22547}
22548
22549
22550SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22551 PyObject *resultobj = 0;
22552 wxDC *arg1 = (wxDC *) 0 ;
22553 wxPoint *arg2 = 0 ;
22554 void *argp1 = 0 ;
22555 int res1 = 0 ;
22556 wxPoint temp2 ;
22557 PyObject * obj0 = 0 ;
22558 PyObject * obj1 = 0 ;
22559 char * kwnames[] = {
22560 (char *) "self",(char *) "point", NULL
22561 };
22562
22563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22565 if (!SWIG_IsOK(res1)) {
22566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22567 }
22568 arg1 = reinterpret_cast< wxDC * >(argp1);
22569 {
22570 arg2 = &temp2;
22571 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22572 }
22573 {
22574 PyThreadState* __tstate = wxPyBeginAllowThreads();
22575 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
22576 wxPyEndAllowThreads(__tstate);
22577 if (PyErr_Occurred()) SWIG_fail;
22578 }
22579 resultobj = SWIG_Py_Void();
22580 return resultobj;
22581fail:
22582 return NULL;
22583}
22584
22585
22586SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22587 PyObject *resultobj = 0;
22588 wxDC *arg1 = (wxDC *) 0 ;
22589 void *argp1 = 0 ;
22590 int res1 = 0 ;
22591 PyObject *swig_obj[1] ;
22592
22593 if (!args) SWIG_fail;
22594 swig_obj[0] = args;
22595 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22596 if (!SWIG_IsOK(res1)) {
22597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22598 }
22599 arg1 = reinterpret_cast< wxDC * >(argp1);
22600 {
22601 PyThreadState* __tstate = wxPyBeginAllowThreads();
22602 (arg1)->ResetBoundingBox();
22603 wxPyEndAllowThreads(__tstate);
22604 if (PyErr_Occurred()) SWIG_fail;
22605 }
22606 resultobj = SWIG_Py_Void();
22607 return resultobj;
22608fail:
22609 return NULL;
22610}
22611
22612
22613SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22614 PyObject *resultobj = 0;
22615 wxDC *arg1 = (wxDC *) 0 ;
22616 int result;
22617 void *argp1 = 0 ;
22618 int res1 = 0 ;
22619 PyObject *swig_obj[1] ;
22620
22621 if (!args) SWIG_fail;
22622 swig_obj[0] = args;
22623 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22624 if (!SWIG_IsOK(res1)) {
22625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
22626 }
22627 arg1 = reinterpret_cast< wxDC * >(argp1);
22628 {
22629 PyThreadState* __tstate = wxPyBeginAllowThreads();
22630 result = (int)((wxDC const *)arg1)->MinX();
22631 wxPyEndAllowThreads(__tstate);
22632 if (PyErr_Occurred()) SWIG_fail;
22633 }
22634 resultobj = SWIG_From_int(static_cast< int >(result));
22635 return resultobj;
22636fail:
22637 return NULL;
22638}
22639
22640
22641SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22642 PyObject *resultobj = 0;
22643 wxDC *arg1 = (wxDC *) 0 ;
22644 int result;
22645 void *argp1 = 0 ;
22646 int res1 = 0 ;
22647 PyObject *swig_obj[1] ;
22648
22649 if (!args) SWIG_fail;
22650 swig_obj[0] = args;
22651 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22652 if (!SWIG_IsOK(res1)) {
22653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
22654 }
22655 arg1 = reinterpret_cast< wxDC * >(argp1);
22656 {
22657 PyThreadState* __tstate = wxPyBeginAllowThreads();
22658 result = (int)((wxDC const *)arg1)->MaxX();
22659 wxPyEndAllowThreads(__tstate);
22660 if (PyErr_Occurred()) SWIG_fail;
22661 }
22662 resultobj = SWIG_From_int(static_cast< int >(result));
22663 return resultobj;
22664fail:
22665 return NULL;
22666}
22667
22668
22669SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22670 PyObject *resultobj = 0;
22671 wxDC *arg1 = (wxDC *) 0 ;
22672 int result;
22673 void *argp1 = 0 ;
22674 int res1 = 0 ;
22675 PyObject *swig_obj[1] ;
22676
22677 if (!args) SWIG_fail;
22678 swig_obj[0] = args;
22679 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22680 if (!SWIG_IsOK(res1)) {
22681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
22682 }
22683 arg1 = reinterpret_cast< wxDC * >(argp1);
22684 {
22685 PyThreadState* __tstate = wxPyBeginAllowThreads();
22686 result = (int)((wxDC const *)arg1)->MinY();
22687 wxPyEndAllowThreads(__tstate);
22688 if (PyErr_Occurred()) SWIG_fail;
22689 }
22690 resultobj = SWIG_From_int(static_cast< int >(result));
22691 return resultobj;
22692fail:
22693 return NULL;
22694}
22695
22696
22697SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22698 PyObject *resultobj = 0;
22699 wxDC *arg1 = (wxDC *) 0 ;
22700 int result;
22701 void *argp1 = 0 ;
22702 int res1 = 0 ;
22703 PyObject *swig_obj[1] ;
22704
22705 if (!args) SWIG_fail;
22706 swig_obj[0] = args;
22707 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22708 if (!SWIG_IsOK(res1)) {
22709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
22710 }
22711 arg1 = reinterpret_cast< wxDC * >(argp1);
22712 {
22713 PyThreadState* __tstate = wxPyBeginAllowThreads();
22714 result = (int)((wxDC const *)arg1)->MaxY();
22715 wxPyEndAllowThreads(__tstate);
22716 if (PyErr_Occurred()) SWIG_fail;
22717 }
22718 resultobj = SWIG_From_int(static_cast< int >(result));
22719 return resultobj;
22720fail:
22721 return NULL;
22722}
22723
22724
22725SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22726 PyObject *resultobj = 0;
22727 wxDC *arg1 = (wxDC *) 0 ;
22728 int *arg2 = (int *) 0 ;
22729 int *arg3 = (int *) 0 ;
22730 int *arg4 = (int *) 0 ;
22731 int *arg5 = (int *) 0 ;
22732 void *argp1 = 0 ;
22733 int res1 = 0 ;
22734 int temp2 ;
22735 int res2 = SWIG_TMPOBJ ;
22736 int temp3 ;
22737 int res3 = SWIG_TMPOBJ ;
22738 int temp4 ;
22739 int res4 = SWIG_TMPOBJ ;
22740 int temp5 ;
22741 int res5 = SWIG_TMPOBJ ;
22742 PyObject *swig_obj[1] ;
22743
22744 arg2 = &temp2;
22745 arg3 = &temp3;
22746 arg4 = &temp4;
22747 arg5 = &temp5;
22748 if (!args) SWIG_fail;
22749 swig_obj[0] = args;
22750 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22751 if (!SWIG_IsOK(res1)) {
22752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22753 }
22754 arg1 = reinterpret_cast< wxDC * >(argp1);
22755 {
22756 PyThreadState* __tstate = wxPyBeginAllowThreads();
22757 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
22758 wxPyEndAllowThreads(__tstate);
22759 if (PyErr_Occurred()) SWIG_fail;
22760 }
22761 resultobj = SWIG_Py_Void();
22762 if (SWIG_IsTmpObj(res2)) {
22763 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22764 } else {
22765 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22766 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22767 }
22768 if (SWIG_IsTmpObj(res3)) {
22769 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22770 } else {
22771 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22772 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22773 }
22774 if (SWIG_IsTmpObj(res4)) {
22775 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
22776 } else {
22777 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22778 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
22779 }
22780 if (SWIG_IsTmpObj(res5)) {
22781 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
22782 } else {
22783 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22784 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
22785 }
22786 return resultobj;
22787fail:
22788 return NULL;
22789}
22790
22791
b39fe951
RD
22792SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22793 PyObject *resultobj = 0;
22794 wxDC *arg1 = (wxDC *) 0 ;
22795 wxLayoutDirection result;
22796 void *argp1 = 0 ;
22797 int res1 = 0 ;
22798 PyObject *swig_obj[1] ;
22799
22800 if (!args) SWIG_fail;
22801 swig_obj[0] = args;
22802 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22803 if (!SWIG_IsOK(res1)) {
22804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
22805 }
22806 arg1 = reinterpret_cast< wxDC * >(argp1);
22807 {
22808 PyThreadState* __tstate = wxPyBeginAllowThreads();
22809 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
22810 wxPyEndAllowThreads(__tstate);
22811 if (PyErr_Occurred()) SWIG_fail;
22812 }
22813 resultobj = SWIG_From_int(static_cast< int >(result));
22814 return resultobj;
22815fail:
22816 return NULL;
22817}
22818
22819
22820SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22821 PyObject *resultobj = 0;
22822 wxDC *arg1 = (wxDC *) 0 ;
22823 wxLayoutDirection arg2 ;
22824 void *argp1 = 0 ;
22825 int res1 = 0 ;
22826 int val2 ;
22827 int ecode2 = 0 ;
22828 PyObject * obj0 = 0 ;
22829 PyObject * obj1 = 0 ;
22830 char * kwnames[] = {
22831 (char *) "self",(char *) "dir", NULL
22832 };
22833
22834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
22835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22836 if (!SWIG_IsOK(res1)) {
22837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
22838 }
22839 arg1 = reinterpret_cast< wxDC * >(argp1);
22840 ecode2 = SWIG_AsVal_int(obj1, &val2);
22841 if (!SWIG_IsOK(ecode2)) {
22842 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
22843 }
22844 arg2 = static_cast< wxLayoutDirection >(val2);
22845 {
22846 PyThreadState* __tstate = wxPyBeginAllowThreads();
22847 (arg1)->SetLayoutDirection(arg2);
22848 wxPyEndAllowThreads(__tstate);
22849 if (PyErr_Occurred()) SWIG_fail;
22850 }
22851 resultobj = SWIG_Py_Void();
22852 return resultobj;
22853fail:
22854 return NULL;
22855}
22856
22857
0085ce49
RD
22858SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22859 PyObject *resultobj = 0;
22860 wxDC *arg1 = (wxDC *) 0 ;
22861 PyObject *arg2 = (PyObject *) 0 ;
22862 PyObject *arg3 = (PyObject *) 0 ;
22863 PyObject *arg4 = (PyObject *) 0 ;
22864 PyObject *result = 0 ;
22865 void *argp1 = 0 ;
22866 int res1 = 0 ;
22867 PyObject * obj0 = 0 ;
22868 PyObject * obj1 = 0 ;
22869 PyObject * obj2 = 0 ;
22870 PyObject * obj3 = 0 ;
22871 char * kwnames[] = {
22872 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22873 };
22874
22875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22877 if (!SWIG_IsOK(res1)) {
22878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
22879 }
22880 arg1 = reinterpret_cast< wxDC * >(argp1);
22881 arg2 = obj1;
22882 arg3 = obj2;
22883 arg4 = obj3;
22884 {
22885 PyThreadState* __tstate = wxPyBeginAllowThreads();
22886 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
22887 wxPyEndAllowThreads(__tstate);
22888 if (PyErr_Occurred()) SWIG_fail;
22889 }
22890 resultobj = result;
22891 return resultobj;
22892fail:
22893 return NULL;
22894}
22895
22896
22897SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22898 PyObject *resultobj = 0;
22899 wxDC *arg1 = (wxDC *) 0 ;
22900 PyObject *arg2 = (PyObject *) 0 ;
22901 PyObject *arg3 = (PyObject *) 0 ;
22902 PyObject *arg4 = (PyObject *) 0 ;
22903 PyObject *result = 0 ;
22904 void *argp1 = 0 ;
22905 int res1 = 0 ;
22906 PyObject * obj0 = 0 ;
22907 PyObject * obj1 = 0 ;
22908 PyObject * obj2 = 0 ;
22909 PyObject * obj3 = 0 ;
22910 char * kwnames[] = {
22911 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22912 };
22913
22914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22916 if (!SWIG_IsOK(res1)) {
22917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
22918 }
22919 arg1 = reinterpret_cast< wxDC * >(argp1);
22920 arg2 = obj1;
22921 arg3 = obj2;
22922 arg4 = obj3;
22923 {
22924 PyThreadState* __tstate = wxPyBeginAllowThreads();
22925 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
22926 wxPyEndAllowThreads(__tstate);
22927 if (PyErr_Occurred()) SWIG_fail;
22928 }
22929 resultobj = result;
22930 return resultobj;
22931fail:
22932 return NULL;
22933}
22934
22935
22936SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22937 PyObject *resultobj = 0;
22938 wxDC *arg1 = (wxDC *) 0 ;
22939 PyObject *arg2 = (PyObject *) 0 ;
22940 PyObject *arg3 = (PyObject *) 0 ;
22941 PyObject *arg4 = (PyObject *) 0 ;
22942 PyObject *result = 0 ;
22943 void *argp1 = 0 ;
22944 int res1 = 0 ;
22945 PyObject * obj0 = 0 ;
22946 PyObject * obj1 = 0 ;
22947 PyObject * obj2 = 0 ;
22948 PyObject * obj3 = 0 ;
22949 char * kwnames[] = {
22950 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22951 };
22952
22953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22955 if (!SWIG_IsOK(res1)) {
22956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
22957 }
22958 arg1 = reinterpret_cast< wxDC * >(argp1);
22959 arg2 = obj1;
22960 arg3 = obj2;
22961 arg4 = obj3;
22962 {
22963 PyThreadState* __tstate = wxPyBeginAllowThreads();
22964 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
22965 wxPyEndAllowThreads(__tstate);
22966 if (PyErr_Occurred()) SWIG_fail;
22967 }
22968 resultobj = result;
22969 return resultobj;
22970fail:
22971 return NULL;
22972}
22973
22974
22975SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22976 PyObject *resultobj = 0;
22977 wxDC *arg1 = (wxDC *) 0 ;
22978 PyObject *arg2 = (PyObject *) 0 ;
22979 PyObject *arg3 = (PyObject *) 0 ;
22980 PyObject *arg4 = (PyObject *) 0 ;
22981 PyObject *result = 0 ;
22982 void *argp1 = 0 ;
22983 int res1 = 0 ;
22984 PyObject * obj0 = 0 ;
22985 PyObject * obj1 = 0 ;
22986 PyObject * obj2 = 0 ;
22987 PyObject * obj3 = 0 ;
22988 char * kwnames[] = {
22989 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22990 };
22991
22992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22994 if (!SWIG_IsOK(res1)) {
22995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
22996 }
22997 arg1 = reinterpret_cast< wxDC * >(argp1);
22998 arg2 = obj1;
22999 arg3 = obj2;
23000 arg4 = obj3;
23001 {
23002 PyThreadState* __tstate = wxPyBeginAllowThreads();
23003 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
23004 wxPyEndAllowThreads(__tstate);
23005 if (PyErr_Occurred()) SWIG_fail;
23006 }
23007 resultobj = result;
23008 return resultobj;
23009fail:
23010 return NULL;
23011}
23012
23013
23014SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23015 PyObject *resultobj = 0;
23016 wxDC *arg1 = (wxDC *) 0 ;
23017 PyObject *arg2 = (PyObject *) 0 ;
23018 PyObject *arg3 = (PyObject *) 0 ;
23019 PyObject *arg4 = (PyObject *) 0 ;
23020 PyObject *result = 0 ;
23021 void *argp1 = 0 ;
23022 int res1 = 0 ;
23023 PyObject * obj0 = 0 ;
23024 PyObject * obj1 = 0 ;
23025 PyObject * obj2 = 0 ;
23026 PyObject * obj3 = 0 ;
23027 char * kwnames[] = {
23028 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23029 };
23030
23031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23033 if (!SWIG_IsOK(res1)) {
23034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23035 }
23036 arg1 = reinterpret_cast< wxDC * >(argp1);
23037 arg2 = obj1;
23038 arg3 = obj2;
23039 arg4 = obj3;
23040 {
23041 PyThreadState* __tstate = wxPyBeginAllowThreads();
23042 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23043 wxPyEndAllowThreads(__tstate);
23044 if (PyErr_Occurred()) SWIG_fail;
23045 }
23046 resultobj = result;
23047 return resultobj;
23048fail:
23049 return NULL;
23050}
23051
23052
23053SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23054 PyObject *resultobj = 0;
23055 wxDC *arg1 = (wxDC *) 0 ;
23056 PyObject *arg2 = (PyObject *) 0 ;
23057 PyObject *arg3 = (PyObject *) 0 ;
23058 PyObject *arg4 = (PyObject *) 0 ;
23059 PyObject *arg5 = (PyObject *) 0 ;
23060 PyObject *result = 0 ;
23061 void *argp1 = 0 ;
23062 int res1 = 0 ;
23063 PyObject * obj0 = 0 ;
23064 PyObject * obj1 = 0 ;
23065 PyObject * obj2 = 0 ;
23066 PyObject * obj3 = 0 ;
23067 PyObject * obj4 = 0 ;
23068 char * kwnames[] = {
23069 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23070 };
23071
23072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23074 if (!SWIG_IsOK(res1)) {
23075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23076 }
23077 arg1 = reinterpret_cast< wxDC * >(argp1);
23078 arg2 = obj1;
23079 arg3 = obj2;
23080 arg4 = obj3;
23081 arg5 = obj4;
23082 {
23083 PyThreadState* __tstate = wxPyBeginAllowThreads();
23084 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23085 wxPyEndAllowThreads(__tstate);
23086 if (PyErr_Occurred()) SWIG_fail;
23087 }
23088 resultobj = result;
23089 return resultobj;
23090fail:
23091 return NULL;
23092}
23093
23094
23095SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23096 PyObject *obj;
23097 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23098 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23099 return SWIG_Py_Void();
23100}
23101
8e99bda9 23102SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 23103 PyObject *resultobj = 0;
8e99bda9
RD
23104 wxBitmap const &arg1_defvalue = wxNullBitmap ;
23105 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
0085ce49 23106 wxMemoryDC *result = 0 ;
8e99bda9
RD
23107 void *argp1 = 0 ;
23108 int res1 = 0 ;
23109 PyObject * obj0 = 0 ;
23110 char * kwnames[] = {
23111 (char *) "bitmap", NULL
23112 };
0085ce49 23113
8e99bda9
RD
23114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
23115 if (obj0) {
23116 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
23117 if (!SWIG_IsOK(res1)) {
23118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap const &""'");
23119 }
23120 if (!argp1) {
23121 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap const &""'");
23122 }
23123 arg1 = reinterpret_cast< wxBitmap * >(argp1);
23124 }
0085ce49
RD
23125 {
23126 if (!wxPyCheckForApp()) SWIG_fail;
23127 PyThreadState* __tstate = wxPyBeginAllowThreads();
8e99bda9 23128 result = (wxMemoryDC *)new wxMemoryDC((wxBitmap const &)*arg1);
0085ce49
RD
23129 wxPyEndAllowThreads(__tstate);
23130 if (PyErr_Occurred()) SWIG_fail;
23131 }
23132 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
23133 return resultobj;
23134fail:
23135 return NULL;
23136}
23137
23138
23139SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23140 PyObject *resultobj = 0;
23141 wxDC *arg1 = (wxDC *) 0 ;
23142 wxMemoryDC *result = 0 ;
23143 void *argp1 = 0 ;
23144 int res1 = 0 ;
23145 PyObject * obj0 = 0 ;
23146 char * kwnames[] = {
23147 (char *) "oldDC", NULL
23148 };
23149
23150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
23151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23152 if (!SWIG_IsOK(res1)) {
23153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
23154 }
23155 arg1 = reinterpret_cast< wxDC * >(argp1);
23156 {
23157 if (!wxPyCheckForApp()) SWIG_fail;
23158 PyThreadState* __tstate = wxPyBeginAllowThreads();
23159 result = (wxMemoryDC *)new wxMemoryDC(arg1);
23160 wxPyEndAllowThreads(__tstate);
23161 if (PyErr_Occurred()) SWIG_fail;
23162 }
23163 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
23164 return resultobj;
23165fail:
23166 return NULL;
23167}
23168
23169
23170SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23171 PyObject *resultobj = 0;
23172 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
23173 wxBitmap *arg2 = 0 ;
23174 void *argp1 = 0 ;
23175 int res1 = 0 ;
23176 void *argp2 = 0 ;
23177 int res2 = 0 ;
23178 PyObject * obj0 = 0 ;
23179 PyObject * obj1 = 0 ;
23180 char * kwnames[] = {
23181 (char *) "self",(char *) "bitmap", NULL
23182 };
23183
23184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
23185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
23186 if (!SWIG_IsOK(res1)) {
23187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
23188 }
23189 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
23190 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23191 if (!SWIG_IsOK(res2)) {
23192 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23193 }
23194 if (!argp2) {
23195 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23196 }
23197 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23198 {
23199 PyThreadState* __tstate = wxPyBeginAllowThreads();
23200 (arg1)->SelectObject((wxBitmap const &)*arg2);
23201 wxPyEndAllowThreads(__tstate);
23202 if (PyErr_Occurred()) SWIG_fail;
23203 }
23204 resultobj = SWIG_Py_Void();
23205 return resultobj;
23206fail:
23207 return NULL;
23208}
23209
23210
23211SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23212 PyObject *obj;
23213 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23214 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
23215 return SWIG_Py_Void();
23216}
23217
23218SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23219 return SWIG_Python_InitShadowInstance(args);
23220}
23221
23222SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23223 PyObject *resultobj = 0;
23224 wxDC *arg1 = (wxDC *) 0 ;
23225 wxBitmap const &arg2_defvalue = wxNullBitmap ;
23226 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
23227 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23228 wxBufferedDC *result = 0 ;
23229 void *argp1 = 0 ;
23230 int res1 = 0 ;
23231 void *argp2 = 0 ;
23232 int res2 = 0 ;
23233 int val3 ;
23234 int ecode3 = 0 ;
23235
23236 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
23237 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23238 if (!SWIG_IsOK(res1)) {
23239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
23240 }
23241 arg1 = reinterpret_cast< wxDC * >(argp1);
23242 if (swig_obj[1]) {
23243 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23244 if (!SWIG_IsOK(res2)) {
23245 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
093d3ff1 23246 }
0085ce49
RD
23247 if (!argp2) {
23248 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
093d3ff1 23249 }
0085ce49
RD
23250 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23251 }
23252 if (swig_obj[2]) {
23253 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23254 if (!SWIG_IsOK(ecode3)) {
23255 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
23256 }
23257 arg3 = static_cast< int >(val3);
23258 }
23259 {
23260 if (!wxPyCheckForApp()) SWIG_fail;
23261 PyThreadState* __tstate = wxPyBeginAllowThreads();
23262 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
23263 wxPyEndAllowThreads(__tstate);
23264 if (PyErr_Occurred()) SWIG_fail;
23265 }
23266 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23267 return resultobj;
23268fail:
23269 return NULL;
23270}
23271
23272
23273SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23274 PyObject *resultobj = 0;
23275 wxDC *arg1 = (wxDC *) 0 ;
23276 wxSize *arg2 = 0 ;
23277 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23278 wxBufferedDC *result = 0 ;
23279 void *argp1 = 0 ;
23280 int res1 = 0 ;
23281 wxSize temp2 ;
23282 int val3 ;
23283 int ecode3 = 0 ;
23284
23285 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
23286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23287 if (!SWIG_IsOK(res1)) {
23288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
23289 }
23290 arg1 = reinterpret_cast< wxDC * >(argp1);
23291 {
23292 arg2 = &temp2;
23293 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
23294 }
23295 if (swig_obj[2]) {
23296 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23297 if (!SWIG_IsOK(ecode3)) {
23298 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
23299 }
23300 arg3 = static_cast< int >(val3);
23301 }
23302 {
23303 if (!wxPyCheckForApp()) SWIG_fail;
23304 PyThreadState* __tstate = wxPyBeginAllowThreads();
23305 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
23306 wxPyEndAllowThreads(__tstate);
23307 if (PyErr_Occurred()) SWIG_fail;
23308 }
23309 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23310 return resultobj;
23311fail:
23312 return NULL;
23313}
23314
23315
23316SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
23317 int argc;
8e99bda9 23318 PyObject *argv[4];
0085ce49 23319
8e99bda9 23320 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
0085ce49
RD
23321 --argc;
23322 if ((argc >= 1) && (argc <= 3)) {
23323 int _v = 0;
23324 if (argc > 1) {
23325 {
23326 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
23327 _v = SWIG_CheckState(res);
23328 }
23329 if (!_v) goto check_1;
093d3ff1 23330 }
0085ce49
RD
23331 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
23332 }
23333check_1:
23334
23335 if ((argc >= 2) && (argc <= 3)) {
23336 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
23337 }
23338
23339fail:
23340 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
23341 return NULL;
23342}
23343
23344
23345SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23346 PyObject *resultobj = 0;
23347 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23348 void *argp1 = 0 ;
23349 int res1 = 0 ;
23350 PyObject *swig_obj[1] ;
23351
23352 if (!args) SWIG_fail;
23353 swig_obj[0] = args;
23354 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
23355 if (!SWIG_IsOK(res1)) {
23356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23357 }
23358 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23359 {
23360 PyThreadState* __tstate = wxPyBeginAllowThreads();
23361 delete arg1;
23362
23363 wxPyEndAllowThreads(__tstate);
23364 if (PyErr_Occurred()) SWIG_fail;
23365 }
23366 resultobj = SWIG_Py_Void();
23367 return resultobj;
23368fail:
23369 return NULL;
23370}
23371
23372
23373SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23374 PyObject *resultobj = 0;
23375 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23376 void *argp1 = 0 ;
23377 int res1 = 0 ;
23378 PyObject *swig_obj[1] ;
23379
23380 if (!args) SWIG_fail;
23381 swig_obj[0] = args;
23382 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
23383 if (!SWIG_IsOK(res1)) {
23384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23385 }
23386 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23387 {
23388 PyThreadState* __tstate = wxPyBeginAllowThreads();
23389 (arg1)->UnMask();
23390 wxPyEndAllowThreads(__tstate);
23391 if (PyErr_Occurred()) SWIG_fail;
23392 }
23393 resultobj = SWIG_Py_Void();
23394 return resultobj;
23395fail:
23396 return NULL;
23397}
23398
23399
23400SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23401 PyObject *obj;
23402 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23403 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
23404 return SWIG_Py_Void();
23405}
23406
23407SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23408 return SWIG_Python_InitShadowInstance(args);
23409}
23410
23411SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23412 PyObject *resultobj = 0;
23413 wxWindow *arg1 = (wxWindow *) 0 ;
23414 wxBitmap const &arg2_defvalue = wxNullBitmap ;
23415 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
23416 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23417 wxBufferedPaintDC *result = 0 ;
23418 void *argp1 = 0 ;
23419 int res1 = 0 ;
23420 void *argp2 = 0 ;
23421 int res2 = 0 ;
23422 int val3 ;
23423 int ecode3 = 0 ;
23424 PyObject * obj0 = 0 ;
23425 PyObject * obj1 = 0 ;
23426 PyObject * obj2 = 0 ;
23427 char * kwnames[] = {
23428 (char *) "window",(char *) "buffer",(char *) "style", NULL
23429 };
23430
23431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23433 if (!SWIG_IsOK(res1)) {
23434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23435 }
23436 arg1 = reinterpret_cast< wxWindow * >(argp1);
23437 if (obj1) {
23438 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23439 if (!SWIG_IsOK(res2)) {
23440 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
093d3ff1 23441 }
0085ce49
RD
23442 if (!argp2) {
23443 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
093d3ff1 23444 }
0085ce49
RD
23445 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23446 }
23447 if (obj2) {
23448 ecode3 = SWIG_AsVal_int(obj2, &val3);
23449 if (!SWIG_IsOK(ecode3)) {
23450 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
23451 }
23452 arg3 = static_cast< int >(val3);
23453 }
23454 {
23455 if (!wxPyCheckForApp()) SWIG_fail;
23456 PyThreadState* __tstate = wxPyBeginAllowThreads();
23457 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
23458 wxPyEndAllowThreads(__tstate);
23459 if (PyErr_Occurred()) SWIG_fail;
23460 }
23461 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
23462 return resultobj;
23463fail:
23464 return NULL;
23465}
23466
23467
23468SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23469 PyObject *obj;
23470 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23471 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
23472 return SWIG_Py_Void();
23473}
23474
23475SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23476 return SWIG_Python_InitShadowInstance(args);
23477}
23478
23479SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23480 PyObject *resultobj = 0;
23481 wxScreenDC *result = 0 ;
23482
23483 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
23484 {
23485 if (!wxPyCheckForApp()) SWIG_fail;
23486 PyThreadState* __tstate = wxPyBeginAllowThreads();
23487 result = (wxScreenDC *)new wxScreenDC();
23488 wxPyEndAllowThreads(__tstate);
23489 if (PyErr_Occurred()) SWIG_fail;
23490 }
23491 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
23492 return resultobj;
23493fail:
23494 return NULL;
23495}
23496
23497
23498SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23499 PyObject *resultobj = 0;
23500 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23501 wxWindow *arg2 = (wxWindow *) 0 ;
23502 bool result;
23503 void *argp1 = 0 ;
23504 int res1 = 0 ;
23505 void *argp2 = 0 ;
23506 int res2 = 0 ;
23507 PyObject * obj0 = 0 ;
23508 PyObject * obj1 = 0 ;
23509 char * kwnames[] = {
23510 (char *) "self",(char *) "window", NULL
23511 };
23512
23513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
23514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23515 if (!SWIG_IsOK(res1)) {
23516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23517 }
23518 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23519 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
23520 if (!SWIG_IsOK(res2)) {
23521 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
23522 }
23523 arg2 = reinterpret_cast< wxWindow * >(argp2);
23524 {
23525 PyThreadState* __tstate = wxPyBeginAllowThreads();
23526 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23527 wxPyEndAllowThreads(__tstate);
23528 if (PyErr_Occurred()) SWIG_fail;
23529 }
23530 {
23531 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23532 }
23533 return resultobj;
23534fail:
23535 return NULL;
23536}
23537
23538
23539SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23540 PyObject *resultobj = 0;
23541 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23542 wxRect *arg2 = (wxRect *) NULL ;
23543 bool result;
23544 void *argp1 = 0 ;
23545 int res1 = 0 ;
23546 void *argp2 = 0 ;
23547 int res2 = 0 ;
23548 PyObject * obj0 = 0 ;
23549 PyObject * obj1 = 0 ;
23550 char * kwnames[] = {
23551 (char *) "self",(char *) "rect", NULL
23552 };
23553
23554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
23555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23556 if (!SWIG_IsOK(res1)) {
23557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23558 }
23559 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23560 if (obj1) {
23561 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
23562 if (!SWIG_IsOK(res2)) {
23563 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
e2950dbb 23564 }
0085ce49
RD
23565 arg2 = reinterpret_cast< wxRect * >(argp2);
23566 }
23567 {
23568 PyThreadState* __tstate = wxPyBeginAllowThreads();
23569 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23570 wxPyEndAllowThreads(__tstate);
23571 if (PyErr_Occurred()) SWIG_fail;
23572 }
23573 {
23574 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23575 }
23576 return resultobj;
23577fail:
23578 return NULL;
23579}
23580
23581
23582SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23583 PyObject *resultobj = 0;
23584 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23585 bool result;
23586 void *argp1 = 0 ;
23587 int res1 = 0 ;
23588 PyObject *swig_obj[1] ;
23589
23590 if (!args) SWIG_fail;
23591 swig_obj[0] = args;
23592 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23593 if (!SWIG_IsOK(res1)) {
23594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23595 }
23596 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23597 {
23598 PyThreadState* __tstate = wxPyBeginAllowThreads();
23599 result = (bool)(arg1)->EndDrawingOnTop();
23600 wxPyEndAllowThreads(__tstate);
23601 if (PyErr_Occurred()) SWIG_fail;
23602 }
23603 {
23604 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23605 }
23606 return resultobj;
23607fail:
23608 return NULL;
23609}
23610
23611
23612SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23613 PyObject *obj;
23614 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23615 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
23616 return SWIG_Py_Void();
23617}
23618
23619SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23620 return SWIG_Python_InitShadowInstance(args);
23621}
23622
72ef6efb 23623SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
23624 PyObject *resultobj = 0;
23625 wxWindow *arg1 = (wxWindow *) 0 ;
72ef6efb 23626 wxWindowDC *result = 0 ;
0085ce49
RD
23627 void *argp1 = 0 ;
23628 int res1 = 0 ;
23629 PyObject * obj0 = 0 ;
23630 char * kwnames[] = {
23631 (char *) "win", NULL
23632 };
23633
72ef6efb 23634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
0085ce49
RD
23635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23636 if (!SWIG_IsOK(res1)) {
72ef6efb 23637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
0085ce49
RD
23638 }
23639 arg1 = reinterpret_cast< wxWindow * >(argp1);
23640 {
23641 if (!wxPyCheckForApp()) SWIG_fail;
23642 PyThreadState* __tstate = wxPyBeginAllowThreads();
72ef6efb 23643 result = (wxWindowDC *)new wxWindowDC(arg1);
0085ce49
RD
23644 wxPyEndAllowThreads(__tstate);
23645 if (PyErr_Occurred()) SWIG_fail;
23646 }
72ef6efb 23647 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
0085ce49
RD
23648 return resultobj;
23649fail:
23650 return NULL;
23651}
23652
23653
72ef6efb 23654SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
23655 PyObject *obj;
23656 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
72ef6efb 23657 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
0085ce49
RD
23658 return SWIG_Py_Void();
23659}
23660
72ef6efb 23661SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
23662 return SWIG_Python_InitShadowInstance(args);
23663}
23664
72ef6efb 23665SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
23666 PyObject *resultobj = 0;
23667 wxWindow *arg1 = (wxWindow *) 0 ;
72ef6efb 23668 wxClientDC *result = 0 ;
0085ce49
RD
23669 void *argp1 = 0 ;
23670 int res1 = 0 ;
23671 PyObject * obj0 = 0 ;
23672 char * kwnames[] = {
23673 (char *) "win", NULL
23674 };
23675
72ef6efb 23676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
0085ce49
RD
23677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23678 if (!SWIG_IsOK(res1)) {
72ef6efb 23679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
0085ce49
RD
23680 }
23681 arg1 = reinterpret_cast< wxWindow * >(argp1);
23682 {
23683 if (!wxPyCheckForApp()) SWIG_fail;
23684 PyThreadState* __tstate = wxPyBeginAllowThreads();
72ef6efb 23685 result = (wxClientDC *)new wxClientDC(arg1);
0085ce49
RD
23686 wxPyEndAllowThreads(__tstate);
23687 if (PyErr_Occurred()) SWIG_fail;
23688 }
72ef6efb 23689 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
0085ce49
RD
23690 return resultobj;
23691fail:
23692 return NULL;
23693}
23694
23695
72ef6efb 23696SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
23697 PyObject *obj;
23698 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
72ef6efb 23699 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
0085ce49
RD
23700 return SWIG_Py_Void();
23701}
23702
72ef6efb 23703SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
23704 return SWIG_Python_InitShadowInstance(args);
23705}
23706
72ef6efb 23707SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
23708 PyObject *resultobj = 0;
23709 wxWindow *arg1 = (wxWindow *) 0 ;
72ef6efb 23710 wxPaintDC *result = 0 ;
0085ce49
RD
23711 void *argp1 = 0 ;
23712 int res1 = 0 ;
23713 PyObject * obj0 = 0 ;
23714 char * kwnames[] = {
23715 (char *) "win", NULL
23716 };
23717
72ef6efb 23718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
0085ce49
RD
23719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23720 if (!SWIG_IsOK(res1)) {
72ef6efb 23721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
0085ce49
RD
23722 }
23723 arg1 = reinterpret_cast< wxWindow * >(argp1);
23724 {
23725 if (!wxPyCheckForApp()) SWIG_fail;
23726 PyThreadState* __tstate = wxPyBeginAllowThreads();
72ef6efb 23727 result = (wxPaintDC *)new wxPaintDC(arg1);
0085ce49
RD
23728 wxPyEndAllowThreads(__tstate);
23729 if (PyErr_Occurred()) SWIG_fail;
23730 }
72ef6efb 23731 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
0085ce49
RD
23732 return resultobj;
23733fail:
23734 return NULL;
23735}
23736
23737
72ef6efb 23738SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
23739 PyObject *obj;
23740 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
72ef6efb 23741 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
0085ce49
RD
23742 return SWIG_Py_Void();
23743}
23744
72ef6efb 23745SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
23746 return SWIG_Python_InitShadowInstance(args);
23747}
23748
8e99bda9
RD
23749SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23750 PyObject *resultobj = 0;
23751 wxWindow *arg1 = (wxWindow *) 0 ;
23752 wxDC *result = 0 ;
23753 void *argp1 = 0 ;
23754 int res1 = 0 ;
23755 PyObject * obj0 = 0 ;
23756 char * kwnames[] = {
23757 (char *) "window", NULL
23758 };
23759
23760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
23761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23762 if (!SWIG_IsOK(res1)) {
23763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
23764 }
23765 arg1 = reinterpret_cast< wxWindow * >(argp1);
23766 {
23767 PyThreadState* __tstate = wxPyBeginAllowThreads();
23768 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
23769 wxPyEndAllowThreads(__tstate);
23770 if (PyErr_Occurred()) SWIG_fail;
23771 }
23772 {
23773 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
23774 }
23775 return resultobj;
23776fail:
23777 return NULL;
23778}
23779
23780
0085ce49
RD
23781SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23782 PyObject *resultobj = 0;
23783 wxDC *arg1 = 0 ;
23784 bool arg2 ;
23785 wxMirrorDC *result = 0 ;
23786 void *argp1 = 0 ;
23787 int res1 = 0 ;
23788 bool val2 ;
23789 int ecode2 = 0 ;
23790 PyObject * obj0 = 0 ;
23791 PyObject * obj1 = 0 ;
23792 char * kwnames[] = {
23793 (char *) "dc",(char *) "mirror", NULL
23794 };
23795
23796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
23797 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23798 if (!SWIG_IsOK(res1)) {
23799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
23800 }
23801 if (!argp1) {
23802 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
23803 }
23804 arg1 = reinterpret_cast< wxDC * >(argp1);
23805 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23806 if (!SWIG_IsOK(ecode2)) {
23807 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
23808 }
23809 arg2 = static_cast< bool >(val2);
23810 {
23811 if (!wxPyCheckForApp()) SWIG_fail;
23812 PyThreadState* __tstate = wxPyBeginAllowThreads();
23813 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
23814 wxPyEndAllowThreads(__tstate);
23815 if (PyErr_Occurred()) SWIG_fail;
23816 }
23817 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
23818 return resultobj;
23819fail:
23820 return NULL;
23821}
23822
23823
23824SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23825 PyObject *obj;
23826 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23827 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
23828 return SWIG_Py_Void();
23829}
23830
23831SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23832 return SWIG_Python_InitShadowInstance(args);
23833}
23834
23835SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23836 PyObject *resultobj = 0;
23837 wxPrintData *arg1 = 0 ;
23838 wxPostScriptDC *result = 0 ;
23839 void *argp1 = 0 ;
23840 int res1 = 0 ;
23841 PyObject * obj0 = 0 ;
23842 char * kwnames[] = {
23843 (char *) "printData", NULL
23844 };
23845
23846 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
23847 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
23848 if (!SWIG_IsOK(res1)) {
23849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
23850 }
23851 if (!argp1) {
23852 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
23853 }
23854 arg1 = reinterpret_cast< wxPrintData * >(argp1);
23855 {
23856 if (!wxPyCheckForApp()) SWIG_fail;
23857 PyThreadState* __tstate = wxPyBeginAllowThreads();
23858 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
23859 wxPyEndAllowThreads(__tstate);
23860 if (PyErr_Occurred()) SWIG_fail;
23861 }
23862 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
23863 return resultobj;
23864fail:
23865 return NULL;
23866}
23867
23868
23869SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23870 PyObject *resultobj = 0;
23871 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
23872 wxPrintData *result = 0 ;
23873 void *argp1 = 0 ;
23874 int res1 = 0 ;
23875 PyObject *swig_obj[1] ;
23876
23877 if (!args) SWIG_fail;
23878 swig_obj[0] = args;
23879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
23880 if (!SWIG_IsOK(res1)) {
23881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
23882 }
23883 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
23884 {
23885 PyThreadState* __tstate = wxPyBeginAllowThreads();
e2950dbb 23886 {
0085ce49
RD
23887 wxPrintData &_result_ref = (arg1)->GetPrintData();
23888 result = (wxPrintData *) &_result_ref;
e2950dbb 23889 }
0085ce49
RD
23890 wxPyEndAllowThreads(__tstate);
23891 if (PyErr_Occurred()) SWIG_fail;
23892 }
23893 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
23894 return resultobj;
23895fail:
23896 return NULL;
23897}
23898
23899
23900SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23901 PyObject *resultobj = 0;
23902 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
23903 wxPrintData *arg2 = 0 ;
23904 void *argp1 = 0 ;
23905 int res1 = 0 ;
23906 void *argp2 = 0 ;
23907 int res2 = 0 ;
23908 PyObject * obj0 = 0 ;
23909 PyObject * obj1 = 0 ;
23910 char * kwnames[] = {
23911 (char *) "self",(char *) "data", NULL
23912 };
23913
23914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
23915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
23916 if (!SWIG_IsOK(res1)) {
23917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
23918 }
23919 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
23920 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
23921 if (!SWIG_IsOK(res2)) {
23922 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
23923 }
23924 if (!argp2) {
23925 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
23926 }
23927 arg2 = reinterpret_cast< wxPrintData * >(argp2);
23928 {
23929 PyThreadState* __tstate = wxPyBeginAllowThreads();
23930 (arg1)->SetPrintData((wxPrintData const &)*arg2);
23931 wxPyEndAllowThreads(__tstate);
23932 if (PyErr_Occurred()) SWIG_fail;
23933 }
23934 resultobj = SWIG_Py_Void();
23935 return resultobj;
23936fail:
23937 return NULL;
23938}
23939
23940
23941SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23942 PyObject *resultobj = 0;
23943 int arg1 ;
23944 int val1 ;
23945 int ecode1 = 0 ;
23946 PyObject * obj0 = 0 ;
23947 char * kwnames[] = {
23948 (char *) "ppi", NULL
23949 };
23950
23951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
23952 ecode1 = SWIG_AsVal_int(obj0, &val1);
23953 if (!SWIG_IsOK(ecode1)) {
23954 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
23955 }
23956 arg1 = static_cast< int >(val1);
23957 {
23958 PyThreadState* __tstate = wxPyBeginAllowThreads();
23959 wxPostScriptDC::SetResolution(arg1);
23960 wxPyEndAllowThreads(__tstate);
23961 if (PyErr_Occurred()) SWIG_fail;
23962 }
23963 resultobj = SWIG_Py_Void();
23964 return resultobj;
23965fail:
23966 return NULL;
23967}
23968
23969
23970SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23971 PyObject *resultobj = 0;
23972 int result;
23973
23974 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
23975 {
23976 PyThreadState* __tstate = wxPyBeginAllowThreads();
23977 result = (int)wxPostScriptDC::GetResolution();
23978 wxPyEndAllowThreads(__tstate);
23979 if (PyErr_Occurred()) SWIG_fail;
23980 }
23981 resultobj = SWIG_From_int(static_cast< int >(result));
23982 return resultobj;
23983fail:
23984 return NULL;
23985}
23986
23987
23988SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23989 PyObject *obj;
23990 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23991 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
23992 return SWIG_Py_Void();
23993}
23994
23995SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23996 return SWIG_Python_InitShadowInstance(args);
23997}
23998
23999SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24000 PyObject *resultobj = 0;
24001 wxString const &arg1_defvalue = wxPyEmptyString ;
24002 wxString *arg1 = (wxString *) &arg1_defvalue ;
24003 wxMetaFile *result = 0 ;
24004 bool temp1 = false ;
24005 PyObject * obj0 = 0 ;
24006 char * kwnames[] = {
24007 (char *) "filename", NULL
24008 };
24009
24010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
24011 if (obj0) {
093d3ff1 24012 {
0085ce49
RD
24013 arg1 = wxString_in_helper(obj0);
24014 if (arg1 == NULL) SWIG_fail;
24015 temp1 = true;
093d3ff1 24016 }
0085ce49
RD
24017 }
24018 {
24019 if (!wxPyCheckForApp()) SWIG_fail;
24020 PyThreadState* __tstate = wxPyBeginAllowThreads();
24021 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
24022 wxPyEndAllowThreads(__tstate);
24023 if (PyErr_Occurred()) SWIG_fail;
24024 }
24025 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
24026 {
24027 if (temp1)
24028 delete arg1;
24029 }
24030 return resultobj;
24031fail:
24032 {
24033 if (temp1)
24034 delete arg1;
24035 }
24036 return NULL;
24037}
24038
24039
24040SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24041 PyObject *obj;
24042 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24043 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
24044 return SWIG_Py_Void();
24045}
24046
24047SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24048 return SWIG_Python_InitShadowInstance(args);
24049}
24050
24051SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24052 PyObject *resultobj = 0;
24053 wxString const &arg1_defvalue = wxPyEmptyString ;
24054 wxString *arg1 = (wxString *) &arg1_defvalue ;
24055 int arg2 = (int) 0 ;
24056 int arg3 = (int) 0 ;
24057 wxString const &arg4_defvalue = wxPyEmptyString ;
24058 wxString *arg4 = (wxString *) &arg4_defvalue ;
24059 wxMetaFileDC *result = 0 ;
24060 bool temp1 = false ;
24061 int val2 ;
24062 int ecode2 = 0 ;
24063 int val3 ;
24064 int ecode3 = 0 ;
24065 bool temp4 = false ;
24066 PyObject * obj0 = 0 ;
24067 PyObject * obj1 = 0 ;
24068 PyObject * obj2 = 0 ;
24069 PyObject * obj3 = 0 ;
24070 char * kwnames[] = {
24071 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
24072 };
24073
24074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24075 if (obj0) {
093d3ff1 24076 {
0085ce49
RD
24077 arg1 = wxString_in_helper(obj0);
24078 if (arg1 == NULL) SWIG_fail;
24079 temp1 = true;
093d3ff1 24080 }
0085ce49
RD
24081 }
24082 if (obj1) {
24083 ecode2 = SWIG_AsVal_int(obj1, &val2);
24084 if (!SWIG_IsOK(ecode2)) {
24085 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
24086 }
24087 arg2 = static_cast< int >(val2);
24088 }
24089 if (obj2) {
24090 ecode3 = SWIG_AsVal_int(obj2, &val3);
24091 if (!SWIG_IsOK(ecode3)) {
24092 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
24093 }
24094 arg3 = static_cast< int >(val3);
24095 }
24096 if (obj3) {
093d3ff1 24097 {
0085ce49
RD
24098 arg4 = wxString_in_helper(obj3);
24099 if (arg4 == NULL) SWIG_fail;
24100 temp4 = true;
093d3ff1 24101 }
0085ce49
RD
24102 }
24103 {
24104 if (!wxPyCheckForApp()) SWIG_fail;
24105 PyThreadState* __tstate = wxPyBeginAllowThreads();
24106 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
24107 wxPyEndAllowThreads(__tstate);
24108 if (PyErr_Occurred()) SWIG_fail;
24109 }
24110 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
24111 {
24112 if (temp1)
24113 delete arg1;
24114 }
24115 {
24116 if (temp4)
24117 delete arg4;
24118 }
24119 return resultobj;
24120fail:
24121 {
24122 if (temp1)
24123 delete arg1;
24124 }
24125 {
24126 if (temp4)
24127 delete arg4;
24128 }
24129 return NULL;
24130}
24131
24132
24133SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24134 PyObject *obj;
24135 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24136 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
24137 return SWIG_Py_Void();
24138}
24139
24140SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24141 return SWIG_Python_InitShadowInstance(args);
24142}
24143
24144SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24145 PyObject *resultobj = 0;
24146 wxPrintData *arg1 = 0 ;
24147 wxPrinterDC *result = 0 ;
24148 void *argp1 = 0 ;
24149 int res1 = 0 ;
24150 PyObject * obj0 = 0 ;
24151 char * kwnames[] = {
24152 (char *) "printData", NULL
24153 };
24154
24155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
24156 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24157 if (!SWIG_IsOK(res1)) {
24158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24159 }
24160 if (!argp1) {
24161 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24162 }
24163 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24164 {
24165 if (!wxPyCheckForApp()) SWIG_fail;
24166 PyThreadState* __tstate = wxPyBeginAllowThreads();
24167 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
24168 wxPyEndAllowThreads(__tstate);
24169 if (PyErr_Occurred()) SWIG_fail;
24170 }
24171 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
24172 return resultobj;
24173fail:
24174 return NULL;
24175}
24176
24177
24178SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24179 PyObject *obj;
24180 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24181 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
24182 return SWIG_Py_Void();
24183}
24184
24185SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24186 return SWIG_Python_InitShadowInstance(args);
24187}
24188
72ef6efb 24189SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 24190 PyObject *resultobj = 0;
72ef6efb 24191 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
0085ce49
RD
24192 void *argp1 = 0 ;
24193 int res1 = 0 ;
24194 PyObject *swig_obj[1] ;
24195
24196 if (!args) SWIG_fail;
24197 swig_obj[0] = args;
72ef6efb 24198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
0085ce49 24199 if (!SWIG_IsOK(res1)) {
72ef6efb 24200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
0085ce49 24201 }
72ef6efb 24202 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
0085ce49 24203 {
0085ce49
RD
24204 delete arg1;
24205
0085ce49
RD
24206 if (PyErr_Occurred()) SWIG_fail;
24207 }
24208 resultobj = SWIG_Py_Void();
24209 return resultobj;
24210fail:
24211 return NULL;
24212}
24213
24214
72ef6efb 24215SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 24216 PyObject *resultobj = 0;
72ef6efb
RD
24217 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24218 wxDouble arg2 ;
24219 wxDouble arg3 ;
0085ce49
RD
24220 void *argp1 = 0 ;
24221 int res1 = 0 ;
72ef6efb
RD
24222 double val2 ;
24223 int ecode2 = 0 ;
24224 double val3 ;
24225 int ecode3 = 0 ;
0085ce49
RD
24226 PyObject * obj0 = 0 ;
24227 PyObject * obj1 = 0 ;
24228 PyObject * obj2 = 0 ;
24229 char * kwnames[] = {
72ef6efb 24230 (char *) "self",(char *) "x",(char *) "y", NULL
0085ce49
RD
24231 };
24232
72ef6efb
RD
24233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsPath_MoveToPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
0085ce49 24235 if (!SWIG_IsOK(res1)) {
72ef6efb 24236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
0085ce49 24237 }
72ef6efb
RD
24238 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24239 ecode2 = SWIG_AsVal_double(obj1, &val2);
24240 if (!SWIG_IsOK(ecode2)) {
24241 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24242 }
24243 arg2 = static_cast< wxDouble >(val2);
24244 ecode3 = SWIG_AsVal_double(obj2, &val3);
24245 if (!SWIG_IsOK(ecode3)) {
24246 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24247 }
24248 arg3 = static_cast< wxDouble >(val3);
0085ce49 24249 {
72ef6efb 24250 (arg1)->MoveToPoint(arg2,arg3);
0085ce49
RD
24251 if (PyErr_Occurred()) SWIG_fail;
24252 }
72ef6efb 24253 resultobj = SWIG_Py_Void();
0085ce49
RD
24254 return resultobj;
24255fail:
24256 return NULL;
24257}
24258
24259
72ef6efb 24260SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 24261 PyObject *resultobj = 0;
72ef6efb
RD
24262 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24263 wxDouble arg2 ;
24264 wxDouble arg3 ;
0085ce49
RD
24265 void *argp1 = 0 ;
24266 int res1 = 0 ;
72ef6efb
RD
24267 double val2 ;
24268 int ecode2 = 0 ;
24269 double val3 ;
24270 int ecode3 = 0 ;
0085ce49
RD
24271 PyObject * obj0 = 0 ;
24272 PyObject * obj1 = 0 ;
24273 PyObject * obj2 = 0 ;
24274 char * kwnames[] = {
72ef6efb 24275 (char *) "self",(char *) "x",(char *) "y", NULL
0085ce49
RD
24276 };
24277
72ef6efb
RD
24278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsPath_AddLineToPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
0085ce49 24280 if (!SWIG_IsOK(res1)) {
72ef6efb 24281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
0085ce49 24282 }
72ef6efb
RD
24283 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24284 ecode2 = SWIG_AsVal_double(obj1, &val2);
24285 if (!SWIG_IsOK(ecode2)) {
24286 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24287 }
24288 arg2 = static_cast< wxDouble >(val2);
24289 ecode3 = SWIG_AsVal_double(obj2, &val3);
24290 if (!SWIG_IsOK(ecode3)) {
24291 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24292 }
24293 arg3 = static_cast< wxDouble >(val3);
0085ce49 24294 {
72ef6efb 24295 (arg1)->AddLineToPoint(arg2,arg3);
0085ce49
RD
24296 if (PyErr_Occurred()) SWIG_fail;
24297 }
72ef6efb 24298 resultobj = SWIG_Py_Void();
0085ce49
RD
24299 return resultobj;
24300fail:
24301 return NULL;
24302}
24303
24304
72ef6efb 24305SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 24306 PyObject *resultobj = 0;
72ef6efb
RD
24307 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24308 wxDouble arg2 ;
24309 wxDouble arg3 ;
24310 wxDouble arg4 ;
24311 wxDouble arg5 ;
24312 wxDouble arg6 ;
24313 wxDouble arg7 ;
0085ce49
RD
24314 void *argp1 = 0 ;
24315 int res1 = 0 ;
72ef6efb
RD
24316 double val2 ;
24317 int ecode2 = 0 ;
24318 double val3 ;
24319 int ecode3 = 0 ;
24320 double val4 ;
24321 int ecode4 = 0 ;
24322 double val5 ;
24323 int ecode5 = 0 ;
24324 double val6 ;
24325 int ecode6 = 0 ;
24326 double val7 ;
24327 int ecode7 = 0 ;
24328 PyObject * obj0 = 0 ;
24329 PyObject * obj1 = 0 ;
24330 PyObject * obj2 = 0 ;
24331 PyObject * obj3 = 0 ;
24332 PyObject * obj4 = 0 ;
24333 PyObject * obj5 = 0 ;
24334 PyObject * obj6 = 0 ;
24335 char * kwnames[] = {
24336 (char *) "self",(char *) "cx1",(char *) "cy1",(char *) "cx2",(char *) "cy2",(char *) "x",(char *) "y", NULL
24337 };
24338
24339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsPath_AddCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
24340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24341 if (!SWIG_IsOK(res1)) {
24342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24343 }
24344 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24345 ecode2 = SWIG_AsVal_double(obj1, &val2);
24346 if (!SWIG_IsOK(ecode2)) {
24347 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24348 }
24349 arg2 = static_cast< wxDouble >(val2);
24350 ecode3 = SWIG_AsVal_double(obj2, &val3);
24351 if (!SWIG_IsOK(ecode3)) {
24352 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24353 }
24354 arg3 = static_cast< wxDouble >(val3);
24355 ecode4 = SWIG_AsVal_double(obj3, &val4);
24356 if (!SWIG_IsOK(ecode4)) {
24357 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
24358 }
24359 arg4 = static_cast< wxDouble >(val4);
24360 ecode5 = SWIG_AsVal_double(obj4, &val5);
24361 if (!SWIG_IsOK(ecode5)) {
24362 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
24363 }
24364 arg5 = static_cast< wxDouble >(val5);
24365 ecode6 = SWIG_AsVal_double(obj5, &val6);
24366 if (!SWIG_IsOK(ecode6)) {
24367 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
24368 }
24369 arg6 = static_cast< wxDouble >(val6);
24370 ecode7 = SWIG_AsVal_double(obj6, &val7);
24371 if (!SWIG_IsOK(ecode7)) {
24372 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
24373 }
24374 arg7 = static_cast< wxDouble >(val7);
24375 {
72ef6efb 24376 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
24377 if (PyErr_Occurred()) SWIG_fail;
24378 }
24379 resultobj = SWIG_Py_Void();
24380 return resultobj;
24381fail:
24382 return NULL;
24383}
24384
24385
24386SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24387 PyObject *resultobj = 0;
24388 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24389 void *argp1 = 0 ;
24390 int res1 = 0 ;
24391 PyObject *swig_obj[1] ;
24392
24393 if (!args) SWIG_fail;
24394 swig_obj[0] = args;
24395 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24396 if (!SWIG_IsOK(res1)) {
24397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24398 }
24399 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24400 {
72ef6efb 24401 (arg1)->CloseSubpath();
72ef6efb
RD
24402 if (PyErr_Occurred()) SWIG_fail;
24403 }
24404 resultobj = SWIG_Py_Void();
24405 return resultobj;
24406fail:
24407 return NULL;
24408}
24409
24410
24411SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24412 PyObject *resultobj = 0;
24413 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24414 wxPoint2D result;
24415 void *argp1 = 0 ;
24416 int res1 = 0 ;
24417 PyObject *swig_obj[1] ;
24418
24419 if (!args) SWIG_fail;
24420 swig_obj[0] = args;
24421 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24422 if (!SWIG_IsOK(res1)) {
24423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24424 }
24425 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24426 {
72ef6efb 24427 result = (arg1)->GetCurrentPoint();
72ef6efb
RD
24428 if (PyErr_Occurred()) SWIG_fail;
24429 }
24430 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
24431 return resultobj;
24432fail:
24433 return NULL;
24434}
24435
24436
24437SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24438 PyObject *resultobj = 0;
24439 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24440 wxDouble arg2 ;
24441 wxDouble arg3 ;
24442 wxDouble arg4 ;
24443 wxDouble arg5 ;
24444 wxDouble arg6 ;
24445 bool arg7 ;
24446 void *argp1 = 0 ;
24447 int res1 = 0 ;
24448 double val2 ;
24449 int ecode2 = 0 ;
24450 double val3 ;
24451 int ecode3 = 0 ;
24452 double val4 ;
24453 int ecode4 = 0 ;
24454 double val5 ;
24455 int ecode5 = 0 ;
24456 double val6 ;
24457 int ecode6 = 0 ;
24458 bool val7 ;
24459 int ecode7 = 0 ;
24460 PyObject * obj0 = 0 ;
24461 PyObject * obj1 = 0 ;
24462 PyObject * obj2 = 0 ;
24463 PyObject * obj3 = 0 ;
24464 PyObject * obj4 = 0 ;
24465 PyObject * obj5 = 0 ;
24466 PyObject * obj6 = 0 ;
24467 char * kwnames[] = {
24468 (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "startAngle",(char *) "endAngle",(char *) "clockwise", NULL
24469 };
24470
24471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsPath_AddArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
24472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24473 if (!SWIG_IsOK(res1)) {
24474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24475 }
24476 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24477 ecode2 = SWIG_AsVal_double(obj1, &val2);
24478 if (!SWIG_IsOK(ecode2)) {
24479 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
24480 }
24481 arg2 = static_cast< wxDouble >(val2);
24482 ecode3 = SWIG_AsVal_double(obj2, &val3);
24483 if (!SWIG_IsOK(ecode3)) {
24484 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
24485 }
24486 arg3 = static_cast< wxDouble >(val3);
24487 ecode4 = SWIG_AsVal_double(obj3, &val4);
24488 if (!SWIG_IsOK(ecode4)) {
24489 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
24490 }
24491 arg4 = static_cast< wxDouble >(val4);
24492 ecode5 = SWIG_AsVal_double(obj4, &val5);
24493 if (!SWIG_IsOK(ecode5)) {
24494 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
24495 }
24496 arg5 = static_cast< wxDouble >(val5);
24497 ecode6 = SWIG_AsVal_double(obj5, &val6);
24498 if (!SWIG_IsOK(ecode6)) {
24499 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
24500 }
24501 arg6 = static_cast< wxDouble >(val6);
24502 ecode7 = SWIG_AsVal_bool(obj6, &val7);
24503 if (!SWIG_IsOK(ecode7)) {
24504 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
24505 }
24506 arg7 = static_cast< bool >(val7);
24507 {
72ef6efb 24508 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
24509 if (PyErr_Occurred()) SWIG_fail;
24510 }
24511 resultobj = SWIG_Py_Void();
24512 return resultobj;
24513fail:
24514 return NULL;
24515}
24516
24517
24518SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24519 PyObject *resultobj = 0;
24520 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24521 wxDouble arg2 ;
24522 wxDouble arg3 ;
24523 wxDouble arg4 ;
24524 wxDouble arg5 ;
24525 void *argp1 = 0 ;
24526 int res1 = 0 ;
24527 double val2 ;
24528 int ecode2 = 0 ;
24529 double val3 ;
24530 int ecode3 = 0 ;
24531 double val4 ;
24532 int ecode4 = 0 ;
24533 double val5 ;
24534 int ecode5 = 0 ;
24535 PyObject * obj0 = 0 ;
24536 PyObject * obj1 = 0 ;
24537 PyObject * obj2 = 0 ;
24538 PyObject * obj3 = 0 ;
24539 PyObject * obj4 = 0 ;
24540 char * kwnames[] = {
24541 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
24542 };
24543
24544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24546 if (!SWIG_IsOK(res1)) {
24547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24548 }
24549 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24550 ecode2 = SWIG_AsVal_double(obj1, &val2);
24551 if (!SWIG_IsOK(ecode2)) {
24552 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24553 }
24554 arg2 = static_cast< wxDouble >(val2);
24555 ecode3 = SWIG_AsVal_double(obj2, &val3);
24556 if (!SWIG_IsOK(ecode3)) {
24557 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24558 }
24559 arg3 = static_cast< wxDouble >(val3);
24560 ecode4 = SWIG_AsVal_double(obj3, &val4);
24561 if (!SWIG_IsOK(ecode4)) {
24562 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
24563 }
24564 arg4 = static_cast< wxDouble >(val4);
24565 ecode5 = SWIG_AsVal_double(obj4, &val5);
24566 if (!SWIG_IsOK(ecode5)) {
24567 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
24568 }
24569 arg5 = static_cast< wxDouble >(val5);
24570 {
72ef6efb 24571 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
72ef6efb
RD
24572 if (PyErr_Occurred()) SWIG_fail;
24573 }
24574 resultobj = SWIG_Py_Void();
24575 return resultobj;
24576fail:
24577 return NULL;
24578}
24579
24580
24581SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24582 PyObject *resultobj = 0;
24583 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24584 wxDouble arg2 ;
24585 wxDouble arg3 ;
24586 wxDouble arg4 ;
24587 wxDouble arg5 ;
24588 void *argp1 = 0 ;
24589 int res1 = 0 ;
24590 double val2 ;
24591 int ecode2 = 0 ;
24592 double val3 ;
24593 int ecode3 = 0 ;
24594 double val4 ;
24595 int ecode4 = 0 ;
24596 double val5 ;
24597 int ecode5 = 0 ;
24598 PyObject * obj0 = 0 ;
24599 PyObject * obj1 = 0 ;
24600 PyObject * obj2 = 0 ;
24601 PyObject * obj3 = 0 ;
24602 PyObject * obj4 = 0 ;
24603 char * kwnames[] = {
24604 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
24605 };
24606
24607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24609 if (!SWIG_IsOK(res1)) {
24610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24611 }
24612 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24613 ecode2 = SWIG_AsVal_double(obj1, &val2);
24614 if (!SWIG_IsOK(ecode2)) {
24615 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
24616 }
24617 arg2 = static_cast< wxDouble >(val2);
24618 ecode3 = SWIG_AsVal_double(obj2, &val3);
24619 if (!SWIG_IsOK(ecode3)) {
24620 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
24621 }
24622 arg3 = static_cast< wxDouble >(val3);
24623 ecode4 = SWIG_AsVal_double(obj3, &val4);
24624 if (!SWIG_IsOK(ecode4)) {
24625 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
24626 }
24627 arg4 = static_cast< wxDouble >(val4);
24628 ecode5 = SWIG_AsVal_double(obj4, &val5);
24629 if (!SWIG_IsOK(ecode5)) {
24630 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
24631 }
24632 arg5 = static_cast< wxDouble >(val5);
24633 {
72ef6efb 24634 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
72ef6efb
RD
24635 if (PyErr_Occurred()) SWIG_fail;
24636 }
24637 resultobj = SWIG_Py_Void();
24638 return resultobj;
24639fail:
24640 return NULL;
24641}
24642
24643
24644SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24645 PyObject *resultobj = 0;
24646 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24647 wxDouble arg2 ;
24648 wxDouble arg3 ;
24649 wxDouble arg4 ;
24650 void *argp1 = 0 ;
24651 int res1 = 0 ;
24652 double val2 ;
24653 int ecode2 = 0 ;
24654 double val3 ;
24655 int ecode3 = 0 ;
24656 double val4 ;
24657 int ecode4 = 0 ;
24658 PyObject * obj0 = 0 ;
24659 PyObject * obj1 = 0 ;
24660 PyObject * obj2 = 0 ;
24661 PyObject * obj3 = 0 ;
24662 char * kwnames[] = {
24663 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
24664 };
24665
24666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24668 if (!SWIG_IsOK(res1)) {
24669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24670 }
24671 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24672 ecode2 = SWIG_AsVal_double(obj1, &val2);
24673 if (!SWIG_IsOK(ecode2)) {
24674 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
24675 }
24676 arg2 = static_cast< wxDouble >(val2);
24677 ecode3 = SWIG_AsVal_double(obj2, &val3);
24678 if (!SWIG_IsOK(ecode3)) {
24679 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
24680 }
24681 arg3 = static_cast< wxDouble >(val3);
24682 ecode4 = SWIG_AsVal_double(obj3, &val4);
24683 if (!SWIG_IsOK(ecode4)) {
24684 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
24685 }
24686 arg4 = static_cast< wxDouble >(val4);
24687 {
72ef6efb 24688 (arg1)->AddCircle(arg2,arg3,arg4);
72ef6efb
RD
24689 if (PyErr_Occurred()) SWIG_fail;
24690 }
24691 resultobj = SWIG_Py_Void();
24692 return resultobj;
24693fail:
24694 return NULL;
24695}
24696
24697
24698SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24699 PyObject *resultobj = 0;
24700 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24701 wxDouble arg2 ;
24702 wxDouble arg3 ;
24703 wxDouble arg4 ;
24704 wxDouble arg5 ;
24705 wxDouble arg6 ;
24706 void *argp1 = 0 ;
24707 int res1 = 0 ;
24708 double val2 ;
24709 int ecode2 = 0 ;
24710 double val3 ;
24711 int ecode3 = 0 ;
24712 double val4 ;
24713 int ecode4 = 0 ;
24714 double val5 ;
24715 int ecode5 = 0 ;
24716 double val6 ;
24717 int ecode6 = 0 ;
24718 PyObject * obj0 = 0 ;
24719 PyObject * obj1 = 0 ;
24720 PyObject * obj2 = 0 ;
24721 PyObject * obj3 = 0 ;
24722 PyObject * obj4 = 0 ;
24723 PyObject * obj5 = 0 ;
24724 char * kwnames[] = {
24725 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
24726 };
24727
24728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
24729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24730 if (!SWIG_IsOK(res1)) {
24731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24732 }
24733 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24734 ecode2 = SWIG_AsVal_double(obj1, &val2);
24735 if (!SWIG_IsOK(ecode2)) {
24736 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24737 }
24738 arg2 = static_cast< wxDouble >(val2);
24739 ecode3 = SWIG_AsVal_double(obj2, &val3);
24740 if (!SWIG_IsOK(ecode3)) {
24741 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24742 }
24743 arg3 = static_cast< wxDouble >(val3);
24744 ecode4 = SWIG_AsVal_double(obj3, &val4);
24745 if (!SWIG_IsOK(ecode4)) {
24746 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
24747 }
24748 arg4 = static_cast< wxDouble >(val4);
24749 ecode5 = SWIG_AsVal_double(obj4, &val5);
24750 if (!SWIG_IsOK(ecode5)) {
24751 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
24752 }
24753 arg5 = static_cast< wxDouble >(val5);
24754 ecode6 = SWIG_AsVal_double(obj5, &val6);
24755 if (!SWIG_IsOK(ecode6)) {
24756 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
24757 }
24758 arg6 = static_cast< wxDouble >(val6);
24759 {
72ef6efb 24760 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
24761 if (PyErr_Occurred()) SWIG_fail;
24762 }
24763 resultobj = SWIG_Py_Void();
24764 return resultobj;
24765fail:
24766 return NULL;
24767}
24768
24769
24770SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24771 PyObject *obj;
24772 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24773 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
24774 return SWIG_Py_Void();
24775}
24776
24777SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24778 PyObject *resultobj = 0;
24779 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
24780 void *argp1 = 0 ;
24781 int res1 = 0 ;
24782 PyObject *swig_obj[1] ;
24783
24784 if (!args) SWIG_fail;
24785 swig_obj[0] = args;
24786 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
24787 if (!SWIG_IsOK(res1)) {
24788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
24789 }
24790 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
24791 {
72ef6efb
RD
24792 delete arg1;
24793
72ef6efb
RD
24794 if (PyErr_Occurred()) SWIG_fail;
24795 }
24796 resultobj = SWIG_Py_Void();
24797 return resultobj;
24798fail:
24799 return NULL;
24800}
24801
24802
24803SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24804 PyObject *resultobj = 0;
24805 wxWindowDC *arg1 = 0 ;
24806 wxGraphicsContext *result = 0 ;
24807 void *argp1 = 0 ;
24808 int res1 = 0 ;
24809 PyObject * obj0 = 0 ;
24810 char * kwnames[] = {
24811 (char *) "dc", NULL
24812 };
24813
24814 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_Create",kwnames,&obj0)) SWIG_fail;
24815 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
24816 if (!SWIG_IsOK(res1)) {
24817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
24818 }
24819 if (!argp1) {
24820 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
24821 }
24822 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
24823 {
72ef6efb 24824 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
72ef6efb
RD
24825 if (PyErr_Occurred()) SWIG_fail;
24826 }
24827 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
24828 return resultobj;
24829fail:
24830 return NULL;
24831}
24832
24833
24834SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24835 PyObject *resultobj = 0;
24836 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
24837 wxGraphicsPath *result = 0 ;
24838 void *argp1 = 0 ;
24839 int res1 = 0 ;
24840 PyObject *swig_obj[1] ;
24841
24842 if (!args) SWIG_fail;
24843 swig_obj[0] = args;
24844 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
24845 if (!SWIG_IsOK(res1)) {
24846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
24847 }
24848 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
24849 {
72ef6efb 24850 result = (wxGraphicsPath *)(arg1)->CreatePath();
72ef6efb
RD
24851 if (PyErr_Occurred()) SWIG_fail;
24852 }
24853 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24854 return resultobj;
24855fail:
24856 return NULL;
24857}
24858
24859
24860SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24861 PyObject *resultobj = 0;
24862 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
24863 void *argp1 = 0 ;
24864 int res1 = 0 ;
24865 PyObject *swig_obj[1] ;
24866
24867 if (!args) SWIG_fail;
24868 swig_obj[0] = args;
24869 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
24870 if (!SWIG_IsOK(res1)) {
24871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
24872 }
24873 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
24874 {
72ef6efb 24875 (arg1)->PushState();
72ef6efb
RD
24876 if (PyErr_Occurred()) SWIG_fail;
24877 }
24878 resultobj = SWIG_Py_Void();
24879 return resultobj;
24880fail:
24881 return NULL;
24882}
24883
24884
24885SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24886 PyObject *resultobj = 0;
24887 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
24888 void *argp1 = 0 ;
24889 int res1 = 0 ;
24890 PyObject *swig_obj[1] ;
24891
24892 if (!args) SWIG_fail;
24893 swig_obj[0] = args;
24894 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
24895 if (!SWIG_IsOK(res1)) {
24896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
24897 }
24898 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
24899 {
72ef6efb 24900 (arg1)->PopState();
72ef6efb
RD
24901 if (PyErr_Occurred()) SWIG_fail;
24902 }
24903 resultobj = SWIG_Py_Void();
24904 return resultobj;
24905fail:
24906 return NULL;
24907}
24908
24909
24910SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24911 PyObject *resultobj = 0;
24912 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
24913 wxRegion *arg2 = 0 ;
24914 void *argp1 = 0 ;
24915 int res1 = 0 ;
24916 void *argp2 = 0 ;
24917 int res2 = 0 ;
24918 PyObject * obj0 = 0 ;
24919 PyObject * obj1 = 0 ;
24920 char * kwnames[] = {
24921 (char *) "self",(char *) "region", NULL
24922 };
24923
24924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Clip",kwnames,&obj0,&obj1)) SWIG_fail;
24925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
24926 if (!SWIG_IsOK(res1)) {
24927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
24928 }
24929 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
24930 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
24931 if (!SWIG_IsOK(res2)) {
24932 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxRegion const &""'");
24933 }
24934 if (!argp2) {
24935 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxRegion const &""'");
24936 }
24937 arg2 = reinterpret_cast< wxRegion * >(argp2);
24938 {
72ef6efb 24939 (arg1)->Clip((wxRegion const &)*arg2);
72ef6efb
RD
24940 if (PyErr_Occurred()) SWIG_fail;
24941 }
24942 resultobj = SWIG_Py_Void();
24943 return resultobj;
24944fail:
24945 return NULL;
24946}
24947
24948
24949SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24950 PyObject *resultobj = 0;
24951 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
24952 wxDouble arg2 ;
24953 wxDouble arg3 ;
24954 void *argp1 = 0 ;
24955 int res1 = 0 ;
24956 double val2 ;
24957 int ecode2 = 0 ;
24958 double val3 ;
24959 int ecode3 = 0 ;
24960 PyObject * obj0 = 0 ;
24961 PyObject * obj1 = 0 ;
24962 PyObject * obj2 = 0 ;
24963 char * kwnames[] = {
24964 (char *) "self",(char *) "dx",(char *) "dy", NULL
24965 };
24966
24967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
24969 if (!SWIG_IsOK(res1)) {
24970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
24971 }
24972 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
24973 ecode2 = SWIG_AsVal_double(obj1, &val2);
24974 if (!SWIG_IsOK(ecode2)) {
24975 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
24976 }
24977 arg2 = static_cast< wxDouble >(val2);
24978 ecode3 = SWIG_AsVal_double(obj2, &val3);
24979 if (!SWIG_IsOK(ecode3)) {
24980 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
24981 }
24982 arg3 = static_cast< wxDouble >(val3);
24983 {
72ef6efb 24984 (arg1)->Translate(arg2,arg3);
72ef6efb
RD
24985 if (PyErr_Occurred()) SWIG_fail;
24986 }
24987 resultobj = SWIG_Py_Void();
24988 return resultobj;
24989fail:
24990 return NULL;
24991}
24992
24993
24994SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24995 PyObject *resultobj = 0;
24996 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
24997 wxDouble arg2 ;
24998 wxDouble arg3 ;
24999 void *argp1 = 0 ;
25000 int res1 = 0 ;
25001 double val2 ;
25002 int ecode2 = 0 ;
25003 double val3 ;
25004 int ecode3 = 0 ;
25005 PyObject * obj0 = 0 ;
25006 PyObject * obj1 = 0 ;
25007 PyObject * obj2 = 0 ;
25008 char * kwnames[] = {
25009 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
25010 };
25011
25012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25014 if (!SWIG_IsOK(res1)) {
25015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25016 }
25017 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25018 ecode2 = SWIG_AsVal_double(obj1, &val2);
25019 if (!SWIG_IsOK(ecode2)) {
25020 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
25021 }
25022 arg2 = static_cast< wxDouble >(val2);
25023 ecode3 = SWIG_AsVal_double(obj2, &val3);
25024 if (!SWIG_IsOK(ecode3)) {
25025 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
25026 }
25027 arg3 = static_cast< wxDouble >(val3);
25028 {
72ef6efb 25029 (arg1)->Scale(arg2,arg3);
72ef6efb
RD
25030 if (PyErr_Occurred()) SWIG_fail;
25031 }
25032 resultobj = SWIG_Py_Void();
25033 return resultobj;
25034fail:
25035 return NULL;
25036}
25037
25038
25039SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25040 PyObject *resultobj = 0;
25041 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25042 wxDouble arg2 ;
25043 void *argp1 = 0 ;
25044 int res1 = 0 ;
25045 double val2 ;
25046 int ecode2 = 0 ;
25047 PyObject * obj0 = 0 ;
25048 PyObject * obj1 = 0 ;
25049 char * kwnames[] = {
25050 (char *) "self",(char *) "angle", NULL
25051 };
25052
25053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
25054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25055 if (!SWIG_IsOK(res1)) {
25056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25057 }
25058 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25059 ecode2 = SWIG_AsVal_double(obj1, &val2);
25060 if (!SWIG_IsOK(ecode2)) {
25061 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
25062 }
25063 arg2 = static_cast< wxDouble >(val2);
25064 {
72ef6efb 25065 (arg1)->Rotate(arg2);
72ef6efb
RD
25066 if (PyErr_Occurred()) SWIG_fail;
25067 }
25068 resultobj = SWIG_Py_Void();
25069 return resultobj;
25070fail:
25071 return NULL;
25072}
25073
25074
25075SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25076 PyObject *resultobj = 0;
25077 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25078 wxPen *arg2 = 0 ;
25079 void *argp1 = 0 ;
25080 int res1 = 0 ;
25081 void *argp2 = 0 ;
25082 int res2 = 0 ;
25083 PyObject * obj0 = 0 ;
25084 PyObject * obj1 = 0 ;
25085 char * kwnames[] = {
25086 (char *) "self",(char *) "pen", NULL
25087 };
25088
25089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
25090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25091 if (!SWIG_IsOK(res1)) {
25092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25093 }
25094 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25095 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
25096 if (!SWIG_IsOK(res2)) {
25097 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
25098 }
25099 if (!argp2) {
25100 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
25101 }
25102 arg2 = reinterpret_cast< wxPen * >(argp2);
25103 {
72ef6efb 25104 (arg1)->SetPen((wxPen const &)*arg2);
72ef6efb
RD
25105 if (PyErr_Occurred()) SWIG_fail;
25106 }
25107 resultobj = SWIG_Py_Void();
25108 return resultobj;
25109fail:
25110 return NULL;
25111}
25112
25113
25114SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25115 PyObject *resultobj = 0;
25116 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25117 wxBrush *arg2 = 0 ;
25118 void *argp1 = 0 ;
25119 int res1 = 0 ;
25120 void *argp2 = 0 ;
25121 int res2 = 0 ;
25122 PyObject * obj0 = 0 ;
25123 PyObject * obj1 = 0 ;
25124 char * kwnames[] = {
25125 (char *) "self",(char *) "brush", NULL
25126 };
25127
25128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
25129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25130 if (!SWIG_IsOK(res1)) {
25131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25132 }
25133 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25134 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
25135 if (!SWIG_IsOK(res2)) {
25136 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
25137 }
25138 if (!argp2) {
25139 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
25140 }
25141 arg2 = reinterpret_cast< wxBrush * >(argp2);
25142 {
72ef6efb 25143 (arg1)->SetBrush((wxBrush const &)*arg2);
72ef6efb
RD
25144 if (PyErr_Occurred()) SWIG_fail;
25145 }
25146 resultobj = SWIG_Py_Void();
25147 return resultobj;
25148fail:
25149 return NULL;
25150}
25151
25152
25153SWIGINTERN PyObject *_wrap_GraphicsContext_SetLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25154 PyObject *resultobj = 0;
25155 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25156 wxDouble arg2 ;
25157 wxDouble arg3 ;
25158 wxDouble arg4 ;
25159 wxDouble arg5 ;
25160 wxColour *arg6 = 0 ;
25161 wxColour *arg7 = 0 ;
25162 void *argp1 = 0 ;
25163 int res1 = 0 ;
25164 double val2 ;
25165 int ecode2 = 0 ;
25166 double val3 ;
25167 int ecode3 = 0 ;
25168 double val4 ;
25169 int ecode4 = 0 ;
25170 double val5 ;
25171 int ecode5 = 0 ;
25172 wxColour temp6 ;
25173 wxColour temp7 ;
25174 PyObject * obj0 = 0 ;
25175 PyObject * obj1 = 0 ;
25176 PyObject * obj2 = 0 ;
25177 PyObject * obj3 = 0 ;
25178 PyObject * obj4 = 0 ;
25179 PyObject * obj5 = 0 ;
25180 PyObject * obj6 = 0 ;
25181 char * kwnames[] = {
25182 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
25183 };
25184
25185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_SetLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25187 if (!SWIG_IsOK(res1)) {
25188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25189 }
25190 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25191 ecode2 = SWIG_AsVal_double(obj1, &val2);
25192 if (!SWIG_IsOK(ecode2)) {
25193 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
25194 }
25195 arg2 = static_cast< wxDouble >(val2);
25196 ecode3 = SWIG_AsVal_double(obj2, &val3);
25197 if (!SWIG_IsOK(ecode3)) {
25198 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
25199 }
25200 arg3 = static_cast< wxDouble >(val3);
25201 ecode4 = SWIG_AsVal_double(obj3, &val4);
25202 if (!SWIG_IsOK(ecode4)) {
25203 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
25204 }
25205 arg4 = static_cast< wxDouble >(val4);
25206 ecode5 = SWIG_AsVal_double(obj4, &val5);
25207 if (!SWIG_IsOK(ecode5)) {
25208 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
25209 }
25210 arg5 = static_cast< wxDouble >(val5);
25211 {
25212 arg6 = &temp6;
25213 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
25214 }
25215 {
25216 arg7 = &temp7;
25217 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
25218 }
25219 {
72ef6efb 25220 (arg1)->SetLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
25221 if (PyErr_Occurred()) SWIG_fail;
25222 }
25223 resultobj = SWIG_Py_Void();
25224 return resultobj;
25225fail:
25226 return NULL;
25227}
25228
25229
25230SWIGINTERN PyObject *_wrap_GraphicsContext_SetRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25231 PyObject *resultobj = 0;
25232 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25233 wxDouble arg2 ;
25234 wxDouble arg3 ;
25235 wxDouble arg4 ;
25236 wxDouble arg5 ;
25237 wxDouble arg6 ;
25238 wxColour *arg7 = 0 ;
25239 wxColour *arg8 = 0 ;
25240 void *argp1 = 0 ;
25241 int res1 = 0 ;
25242 double val2 ;
25243 int ecode2 = 0 ;
25244 double val3 ;
25245 int ecode3 = 0 ;
25246 double val4 ;
25247 int ecode4 = 0 ;
25248 double val5 ;
25249 int ecode5 = 0 ;
25250 double val6 ;
25251 int ecode6 = 0 ;
25252 wxColour temp7 ;
25253 wxColour temp8 ;
25254 PyObject * obj0 = 0 ;
25255 PyObject * obj1 = 0 ;
25256 PyObject * obj2 = 0 ;
25257 PyObject * obj3 = 0 ;
25258 PyObject * obj4 = 0 ;
25259 PyObject * obj5 = 0 ;
25260 PyObject * obj6 = 0 ;
25261 PyObject * obj7 = 0 ;
25262 char * kwnames[] = {
25263 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
25264 };
25265
25266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_SetRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
25267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25268 if (!SWIG_IsOK(res1)) {
25269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25270 }
25271 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25272 ecode2 = SWIG_AsVal_double(obj1, &val2);
25273 if (!SWIG_IsOK(ecode2)) {
25274 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
25275 }
25276 arg2 = static_cast< wxDouble >(val2);
25277 ecode3 = SWIG_AsVal_double(obj2, &val3);
25278 if (!SWIG_IsOK(ecode3)) {
25279 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
25280 }
25281 arg3 = static_cast< wxDouble >(val3);
25282 ecode4 = SWIG_AsVal_double(obj3, &val4);
25283 if (!SWIG_IsOK(ecode4)) {
25284 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
25285 }
25286 arg4 = static_cast< wxDouble >(val4);
25287 ecode5 = SWIG_AsVal_double(obj4, &val5);
25288 if (!SWIG_IsOK(ecode5)) {
25289 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
25290 }
25291 arg5 = static_cast< wxDouble >(val5);
25292 ecode6 = SWIG_AsVal_double(obj5, &val6);
25293 if (!SWIG_IsOK(ecode6)) {
25294 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
25295 }
25296 arg6 = static_cast< wxDouble >(val6);
25297 {
25298 arg7 = &temp7;
25299 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
25300 }
25301 {
25302 arg8 = &temp8;
25303 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
25304 }
25305 {
72ef6efb 25306 (arg1)->SetRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
25307 if (PyErr_Occurred()) SWIG_fail;
25308 }
25309 resultobj = SWIG_Py_Void();
25310 return resultobj;
25311fail:
25312 return NULL;
25313}
25314
25315
25316SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25317 PyObject *resultobj = 0;
25318 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25319 wxFont *arg2 = 0 ;
25320 void *argp1 = 0 ;
25321 int res1 = 0 ;
25322 void *argp2 = 0 ;
25323 int res2 = 0 ;
25324 PyObject * obj0 = 0 ;
25325 PyObject * obj1 = 0 ;
25326 char * kwnames[] = {
25327 (char *) "self",(char *) "font", NULL
25328 };
25329
25330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
25331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25332 if (!SWIG_IsOK(res1)) {
25333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25334 }
25335 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25336 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
25337 if (!SWIG_IsOK(res2)) {
25338 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25339 }
25340 if (!argp2) {
25341 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25342 }
25343 arg2 = reinterpret_cast< wxFont * >(argp2);
25344 {
72ef6efb 25345 (arg1)->SetFont((wxFont const &)*arg2);
72ef6efb
RD
25346 if (PyErr_Occurred()) SWIG_fail;
25347 }
25348 resultobj = SWIG_Py_Void();
25349 return resultobj;
25350fail:
25351 return NULL;
25352}
25353
25354
25355SWIGINTERN PyObject *_wrap_GraphicsContext_SetTextColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25356 PyObject *resultobj = 0;
25357 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25358 wxColour *arg2 = 0 ;
25359 void *argp1 = 0 ;
25360 int res1 = 0 ;
25361 wxColour temp2 ;
25362 PyObject * obj0 = 0 ;
25363 PyObject * obj1 = 0 ;
25364 char * kwnames[] = {
25365 (char *) "self",(char *) "col", NULL
25366 };
25367
25368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTextColor",kwnames,&obj0,&obj1)) SWIG_fail;
25369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25370 if (!SWIG_IsOK(res1)) {
25371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTextColor" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25372 }
25373 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25374 {
25375 arg2 = &temp2;
25376 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25377 }
25378 {
72ef6efb 25379 (arg1)->SetTextColor((wxColour const &)*arg2);
72ef6efb
RD
25380 if (PyErr_Occurred()) SWIG_fail;
25381 }
25382 resultobj = SWIG_Py_Void();
25383 return resultobj;
25384fail:
25385 return NULL;
25386}
25387
25388
25389SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25390 PyObject *resultobj = 0;
25391 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25392 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
25393 void *argp1 = 0 ;
25394 int res1 = 0 ;
25395 void *argp2 = 0 ;
25396 int res2 = 0 ;
25397 PyObject * obj0 = 0 ;
25398 PyObject * obj1 = 0 ;
25399 char * kwnames[] = {
25400 (char *) "self",(char *) "path", NULL
25401 };
25402
25403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
25404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25405 if (!SWIG_IsOK(res1)) {
25406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25407 }
25408 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25409 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25410 if (!SWIG_IsOK(res2)) {
25411 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
25412 }
25413 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
25414 {
72ef6efb 25415 (arg1)->StrokePath((wxGraphicsPath const *)arg2);
72ef6efb
RD
25416 if (PyErr_Occurred()) SWIG_fail;
25417 }
25418 resultobj = SWIG_Py_Void();
25419 return resultobj;
25420fail:
25421 return NULL;
25422}
25423
25424
25425SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25426 PyObject *resultobj = 0;
25427 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25428 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
25429 int arg3 = (int) wxWINDING_RULE ;
25430 void *argp1 = 0 ;
25431 int res1 = 0 ;
25432 void *argp2 = 0 ;
25433 int res2 = 0 ;
25434 int val3 ;
25435 int ecode3 = 0 ;
25436 PyObject * obj0 = 0 ;
25437 PyObject * obj1 = 0 ;
25438 PyObject * obj2 = 0 ;
25439 char * kwnames[] = {
25440 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
25441 };
25442
25443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25445 if (!SWIG_IsOK(res1)) {
25446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25447 }
25448 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25449 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25450 if (!SWIG_IsOK(res2)) {
25451 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
25452 }
25453 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
25454 if (obj2) {
25455 ecode3 = SWIG_AsVal_int(obj2, &val3);
25456 if (!SWIG_IsOK(ecode3)) {
25457 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
25458 }
25459 arg3 = static_cast< int >(val3);
25460 }
25461 {
72ef6efb 25462 (arg1)->FillPath((wxGraphicsPath const *)arg2,arg3);
72ef6efb
RD
25463 if (PyErr_Occurred()) SWIG_fail;
25464 }
25465 resultobj = SWIG_Py_Void();
25466 return resultobj;
25467fail:
25468 return NULL;
25469}
25470
25471
25472SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25473 PyObject *resultobj = 0;
25474 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25475 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
25476 int arg3 = (int) wxWINDING_RULE ;
25477 void *argp1 = 0 ;
25478 int res1 = 0 ;
25479 void *argp2 = 0 ;
25480 int res2 = 0 ;
25481 int val3 ;
25482 int ecode3 = 0 ;
25483 PyObject * obj0 = 0 ;
25484 PyObject * obj1 = 0 ;
25485 PyObject * obj2 = 0 ;
25486 char * kwnames[] = {
25487 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
25488 };
25489
25490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25492 if (!SWIG_IsOK(res1)) {
25493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25494 }
25495 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25496 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25497 if (!SWIG_IsOK(res2)) {
25498 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
25499 }
25500 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
25501 if (obj2) {
25502 ecode3 = SWIG_AsVal_int(obj2, &val3);
25503 if (!SWIG_IsOK(ecode3)) {
25504 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
25505 }
25506 arg3 = static_cast< int >(val3);
25507 }
25508 {
72ef6efb 25509 (arg1)->DrawPath((wxGraphicsPath const *)arg2,arg3);
72ef6efb
RD
25510 if (PyErr_Occurred()) SWIG_fail;
25511 }
25512 resultobj = SWIG_Py_Void();
25513 return resultobj;
25514fail:
25515 return NULL;
25516}
25517
25518
b39fe951 25519SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
25520 PyObject *resultobj = 0;
25521 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25522 wxString *arg2 = 0 ;
25523 wxDouble arg3 ;
25524 wxDouble arg4 ;
25525 void *argp1 = 0 ;
25526 int res1 = 0 ;
25527 bool temp2 = false ;
25528 double val3 ;
25529 int ecode3 = 0 ;
25530 double val4 ;
25531 int ecode4 = 0 ;
b39fe951
RD
25532 PyObject * obj0 = 0 ;
25533 PyObject * obj1 = 0 ;
25534 PyObject * obj2 = 0 ;
25535 PyObject * obj3 = 0 ;
25536 char * kwnames[] = {
25537 (char *) "self",(char *) "str",(char *) "x",(char *) "y", NULL
25538 };
72ef6efb 25539
b39fe951
RD
25540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
25542 if (!SWIG_IsOK(res1)) {
25543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25544 }
25545 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25546 {
b39fe951 25547 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
25548 if (arg2 == NULL) SWIG_fail;
25549 temp2 = true;
25550 }
b39fe951 25551 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb
RD
25552 if (!SWIG_IsOK(ecode3)) {
25553 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
25554 }
25555 arg3 = static_cast< wxDouble >(val3);
b39fe951 25556 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb
RD
25557 if (!SWIG_IsOK(ecode4)) {
25558 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
25559 }
25560 arg4 = static_cast< wxDouble >(val4);
25561 {
72ef6efb 25562 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
72ef6efb
RD
25563 if (PyErr_Occurred()) SWIG_fail;
25564 }
25565 resultobj = SWIG_Py_Void();
25566 {
25567 if (temp2)
25568 delete arg2;
25569 }
25570 return resultobj;
25571fail:
25572 {
25573 if (temp2)
25574 delete arg2;
25575 }
25576 return NULL;
25577}
25578
25579
b39fe951 25580SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
25581 PyObject *resultobj = 0;
25582 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25583 wxString *arg2 = 0 ;
25584 wxDouble arg3 ;
25585 wxDouble arg4 ;
25586 wxDouble arg5 ;
25587 void *argp1 = 0 ;
25588 int res1 = 0 ;
25589 bool temp2 = false ;
25590 double val3 ;
25591 int ecode3 = 0 ;
25592 double val4 ;
25593 int ecode4 = 0 ;
25594 double val5 ;
25595 int ecode5 = 0 ;
b39fe951
RD
25596 PyObject * obj0 = 0 ;
25597 PyObject * obj1 = 0 ;
25598 PyObject * obj2 = 0 ;
25599 PyObject * obj3 = 0 ;
25600 PyObject * obj4 = 0 ;
25601 char * kwnames[] = {
25602 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle", NULL
25603 };
72ef6efb 25604
b39fe951
RD
25605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 25607 if (!SWIG_IsOK(res1)) {
b39fe951 25608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
25609 }
25610 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25611 {
b39fe951 25612 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
25613 if (arg2 == NULL) SWIG_fail;
25614 temp2 = true;
25615 }
b39fe951 25616 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb 25617 if (!SWIG_IsOK(ecode3)) {
b39fe951 25618 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
25619 }
25620 arg3 = static_cast< wxDouble >(val3);
b39fe951 25621 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb 25622 if (!SWIG_IsOK(ecode4)) {
b39fe951 25623 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
25624 }
25625 arg4 = static_cast< wxDouble >(val4);
b39fe951 25626 ecode5 = SWIG_AsVal_double(obj4, &val5);
72ef6efb 25627 if (!SWIG_IsOK(ecode5)) {
b39fe951 25628 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
25629 }
25630 arg5 = static_cast< wxDouble >(val5);
25631 {
72ef6efb 25632 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4,arg5);
72ef6efb
RD
25633 if (PyErr_Occurred()) SWIG_fail;
25634 }
25635 resultobj = SWIG_Py_Void();
25636 {
25637 if (temp2)
25638 delete arg2;
25639 }
25640 return resultobj;
25641fail:
25642 {
25643 if (temp2)
25644 delete arg2;
25645 }
25646 return NULL;
25647}
25648
25649
72ef6efb
RD
25650SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25651 PyObject *resultobj = 0;
25652 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25653 wxString *arg2 = 0 ;
25654 wxDouble *arg3 = (wxDouble *) 0 ;
25655 wxDouble *arg4 = (wxDouble *) 0 ;
25656 wxDouble *arg5 = (wxDouble *) 0 ;
25657 wxDouble *arg6 = (wxDouble *) 0 ;
25658 void *argp1 = 0 ;
25659 int res1 = 0 ;
25660 bool temp2 = false ;
25661 wxDouble temp3 ;
25662 int res3 = SWIG_TMPOBJ ;
25663 wxDouble temp4 ;
25664 int res4 = SWIG_TMPOBJ ;
25665 wxDouble temp5 ;
25666 int res5 = SWIG_TMPOBJ ;
25667 wxDouble temp6 ;
25668 int res6 = SWIG_TMPOBJ ;
25669 PyObject * obj0 = 0 ;
25670 PyObject * obj1 = 0 ;
25671 char * kwnames[] = {
25672 (char *) "self",(char *) "text", NULL
25673 };
25674
25675 arg3 = &temp3;
25676 arg4 = &temp4;
25677 arg5 = &temp5;
25678 arg6 = &temp6;
25679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
25680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25681 if (!SWIG_IsOK(res1)) {
25682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
25683 }
25684 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25685 {
25686 arg2 = wxString_in_helper(obj1);
25687 if (arg2 == NULL) SWIG_fail;
25688 temp2 = true;
25689 }
25690 {
72ef6efb 25691 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
25692 if (PyErr_Occurred()) SWIG_fail;
25693 }
25694 resultobj = SWIG_Py_Void();
25695 if (SWIG_IsTmpObj(res3)) {
25696 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
25697 } else {
25698 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25699 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
25700 }
25701 if (SWIG_IsTmpObj(res4)) {
25702 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
25703 } else {
25704 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25705 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
25706 }
25707 if (SWIG_IsTmpObj(res5)) {
25708 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
25709 } else {
25710 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25711 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
25712 }
25713 if (SWIG_IsTmpObj(res6)) {
25714 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
25715 } else {
25716 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25717 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
25718 }
25719 {
25720 if (temp2)
25721 delete arg2;
25722 }
25723 return resultobj;
25724fail:
25725 {
25726 if (temp2)
25727 delete arg2;
25728 }
25729 return NULL;
25730}
25731
25732
25733SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25734 PyObject *resultobj = 0;
25735 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25736 wxString *arg2 = 0 ;
b39fe951 25737 wxArrayDouble result;
72ef6efb
RD
25738 void *argp1 = 0 ;
25739 int res1 = 0 ;
25740 bool temp2 = false ;
72ef6efb
RD
25741 PyObject * obj0 = 0 ;
25742 PyObject * obj1 = 0 ;
72ef6efb 25743 char * kwnames[] = {
b39fe951 25744 (char *) "self",(char *) "text", NULL
72ef6efb
RD
25745 };
25746
b39fe951 25747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
25748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25749 if (!SWIG_IsOK(res1)) {
b39fe951 25750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
25751 }
25752 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25753 {
25754 arg2 = wxString_in_helper(obj1);
25755 if (arg2 == NULL) SWIG_fail;
25756 temp2 = true;
25757 }
72ef6efb 25758 {
b39fe951 25759 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
72ef6efb
RD
25760 if (PyErr_Occurred()) SWIG_fail;
25761 }
b39fe951
RD
25762 {
25763 resultobj = wxArrayDouble2PyList_helper(result);
25764 }
72ef6efb
RD
25765 {
25766 if (temp2)
25767 delete arg2;
25768 }
25769 return resultobj;
25770fail:
25771 {
25772 if (temp2)
25773 delete arg2;
25774 }
25775 return NULL;
25776}
25777
25778
25779SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25780 PyObject *resultobj = 0;
25781 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25782 wxBitmap *arg2 = 0 ;
25783 wxDouble arg3 ;
25784 wxDouble arg4 ;
25785 wxDouble arg5 ;
25786 wxDouble arg6 ;
25787 void *argp1 = 0 ;
25788 int res1 = 0 ;
25789 void *argp2 = 0 ;
25790 int res2 = 0 ;
25791 double val3 ;
25792 int ecode3 = 0 ;
25793 double val4 ;
25794 int ecode4 = 0 ;
25795 double val5 ;
25796 int ecode5 = 0 ;
25797 double val6 ;
25798 int ecode6 = 0 ;
25799 PyObject * obj0 = 0 ;
25800 PyObject * obj1 = 0 ;
25801 PyObject * obj2 = 0 ;
25802 PyObject * obj3 = 0 ;
25803 PyObject * obj4 = 0 ;
25804 PyObject * obj5 = 0 ;
25805 char * kwnames[] = {
25806 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
25807 };
25808
25809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25811 if (!SWIG_IsOK(res1)) {
25812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25813 }
25814 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25815 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
25816 if (!SWIG_IsOK(res2)) {
25817 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
25818 }
25819 if (!argp2) {
25820 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
25821 }
25822 arg2 = reinterpret_cast< wxBitmap * >(argp2);
25823 ecode3 = SWIG_AsVal_double(obj2, &val3);
25824 if (!SWIG_IsOK(ecode3)) {
25825 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
25826 }
25827 arg3 = static_cast< wxDouble >(val3);
25828 ecode4 = SWIG_AsVal_double(obj3, &val4);
25829 if (!SWIG_IsOK(ecode4)) {
25830 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
25831 }
25832 arg4 = static_cast< wxDouble >(val4);
25833 ecode5 = SWIG_AsVal_double(obj4, &val5);
25834 if (!SWIG_IsOK(ecode5)) {
25835 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
25836 }
25837 arg5 = static_cast< wxDouble >(val5);
25838 ecode6 = SWIG_AsVal_double(obj5, &val6);
25839 if (!SWIG_IsOK(ecode6)) {
25840 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
25841 }
25842 arg6 = static_cast< wxDouble >(val6);
25843 {
72ef6efb 25844 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
25845 if (PyErr_Occurred()) SWIG_fail;
25846 }
25847 resultobj = SWIG_Py_Void();
25848 return resultobj;
25849fail:
25850 return NULL;
25851}
25852
25853
25854SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25855 PyObject *resultobj = 0;
25856 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25857 wxIcon *arg2 = 0 ;
25858 wxDouble arg3 ;
25859 wxDouble arg4 ;
25860 wxDouble arg5 ;
25861 wxDouble arg6 ;
25862 void *argp1 = 0 ;
25863 int res1 = 0 ;
25864 void *argp2 = 0 ;
25865 int res2 = 0 ;
25866 double val3 ;
25867 int ecode3 = 0 ;
25868 double val4 ;
25869 int ecode4 = 0 ;
25870 double val5 ;
25871 int ecode5 = 0 ;
25872 double val6 ;
25873 int ecode6 = 0 ;
25874 PyObject * obj0 = 0 ;
25875 PyObject * obj1 = 0 ;
25876 PyObject * obj2 = 0 ;
25877 PyObject * obj3 = 0 ;
25878 PyObject * obj4 = 0 ;
25879 PyObject * obj5 = 0 ;
25880 char * kwnames[] = {
25881 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
25882 };
25883
25884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25886 if (!SWIG_IsOK(res1)) {
25887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25888 }
25889 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25890 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
25891 if (!SWIG_IsOK(res2)) {
25892 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
25893 }
25894 if (!argp2) {
25895 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
25896 }
25897 arg2 = reinterpret_cast< wxIcon * >(argp2);
25898 ecode3 = SWIG_AsVal_double(obj2, &val3);
25899 if (!SWIG_IsOK(ecode3)) {
25900 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
25901 }
25902 arg3 = static_cast< wxDouble >(val3);
25903 ecode4 = SWIG_AsVal_double(obj3, &val4);
25904 if (!SWIG_IsOK(ecode4)) {
25905 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
25906 }
25907 arg4 = static_cast< wxDouble >(val4);
25908 ecode5 = SWIG_AsVal_double(obj4, &val5);
25909 if (!SWIG_IsOK(ecode5)) {
25910 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
25911 }
25912 arg5 = static_cast< wxDouble >(val5);
25913 ecode6 = SWIG_AsVal_double(obj5, &val6);
25914 if (!SWIG_IsOK(ecode6)) {
25915 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
25916 }
25917 arg6 = static_cast< wxDouble >(val6);
25918 {
72ef6efb 25919 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
25920 if (PyErr_Occurred()) SWIG_fail;
25921 }
25922 resultobj = SWIG_Py_Void();
25923 return resultobj;
25924fail:
25925 return NULL;
25926}
25927
25928
25929SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25930 PyObject *resultobj = 0;
25931 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25932 wxDouble arg2 ;
25933 wxDouble arg3 ;
25934 wxDouble arg4 ;
25935 wxDouble arg5 ;
25936 void *argp1 = 0 ;
25937 int res1 = 0 ;
25938 double val2 ;
25939 int ecode2 = 0 ;
25940 double val3 ;
25941 int ecode3 = 0 ;
25942 double val4 ;
25943 int ecode4 = 0 ;
25944 double val5 ;
25945 int ecode5 = 0 ;
25946 PyObject * obj0 = 0 ;
25947 PyObject * obj1 = 0 ;
25948 PyObject * obj2 = 0 ;
25949 PyObject * obj3 = 0 ;
25950 PyObject * obj4 = 0 ;
25951 char * kwnames[] = {
25952 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
25953 };
25954
25955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25957 if (!SWIG_IsOK(res1)) {
25958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25959 }
25960 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25961 ecode2 = SWIG_AsVal_double(obj1, &val2);
25962 if (!SWIG_IsOK(ecode2)) {
25963 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
25964 }
25965 arg2 = static_cast< wxDouble >(val2);
25966 ecode3 = SWIG_AsVal_double(obj2, &val3);
25967 if (!SWIG_IsOK(ecode3)) {
25968 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
25969 }
25970 arg3 = static_cast< wxDouble >(val3);
25971 ecode4 = SWIG_AsVal_double(obj3, &val4);
25972 if (!SWIG_IsOK(ecode4)) {
25973 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
25974 }
25975 arg4 = static_cast< wxDouble >(val4);
25976 ecode5 = SWIG_AsVal_double(obj4, &val5);
25977 if (!SWIG_IsOK(ecode5)) {
25978 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
25979 }
25980 arg5 = static_cast< wxDouble >(val5);
25981 {
72ef6efb 25982 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
72ef6efb
RD
25983 if (PyErr_Occurred()) SWIG_fail;
25984 }
25985 resultobj = SWIG_Py_Void();
25986 return resultobj;
25987fail:
25988 return NULL;
25989}
25990
25991
b39fe951 25992SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
25993 PyObject *resultobj = 0;
25994 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25995 size_t arg2 ;
25996 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
25997 void *argp1 = 0 ;
25998 int res1 = 0 ;
b39fe951
RD
25999 PyObject * obj0 = 0 ;
26000 PyObject * obj1 = 0 ;
26001 char * kwnames[] = {
26002 (char *) "self",(char *) "points", NULL
26003 };
72ef6efb 26004
b39fe951
RD
26005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
26006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
26007 if (!SWIG_IsOK(res1)) {
26008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26009 }
26010 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
b39fe951
RD
26011 {
26012 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
26013 if (arg3 == NULL) SWIG_fail;
72ef6efb 26014 }
72ef6efb 26015 {
72ef6efb 26016 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
72ef6efb
RD
26017 if (PyErr_Occurred()) SWIG_fail;
26018 }
26019 resultobj = SWIG_Py_Void();
b39fe951
RD
26020 {
26021 if (arg3) delete [] arg3;
26022 }
72ef6efb
RD
26023 return resultobj;
26024fail:
b39fe951
RD
26025 {
26026 if (arg3) delete [] arg3;
26027 }
72ef6efb
RD
26028 return NULL;
26029}
26030
26031
f8eb59b9 26032SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
26033 PyObject *resultobj = 0;
26034 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
b39fe951
RD
26035 PyObject *arg2 = (PyObject *) 0 ;
26036 PyObject *arg3 = (PyObject *) 0 ;
72ef6efb
RD
26037 void *argp1 = 0 ;
26038 int res1 = 0 ;
b39fe951
RD
26039 PyObject * obj0 = 0 ;
26040 PyObject * obj1 = 0 ;
26041 PyObject * obj2 = 0 ;
26042 char * kwnames[] = {
26043 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
26044 };
72ef6efb 26045
f8eb59b9 26046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
b39fe951 26047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 26048 if (!SWIG_IsOK(res1)) {
f8eb59b9 26049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
26050 }
26051 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
b39fe951
RD
26052 arg2 = obj1;
26053 arg3 = obj2;
72ef6efb 26054 {
f8eb59b9 26055 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
72ef6efb
RD
26056 if (PyErr_Occurred()) SWIG_fail;
26057 }
26058 resultobj = SWIG_Py_Void();
26059 return resultobj;
26060fail:
26061 return NULL;
26062}
26063
26064
72ef6efb
RD
26065SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26066 PyObject *resultobj = 0;
26067 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26068 size_t arg2 ;
26069 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
26070 int arg4 = (int) wxWINDING_RULE ;
26071 void *argp1 = 0 ;
26072 int res1 = 0 ;
72ef6efb
RD
26073 int val4 ;
26074 int ecode4 = 0 ;
26075 PyObject * obj0 = 0 ;
26076 PyObject * obj1 = 0 ;
26077 PyObject * obj2 = 0 ;
72ef6efb 26078 char * kwnames[] = {
b39fe951 26079 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
72ef6efb
RD
26080 };
26081
b39fe951 26082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
72ef6efb
RD
26083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26084 if (!SWIG_IsOK(res1)) {
26085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26086 }
26087 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
b39fe951
RD
26088 {
26089 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
26090 if (arg3 == NULL) SWIG_fail;
72ef6efb 26091 }
b39fe951
RD
26092 if (obj2) {
26093 ecode4 = SWIG_AsVal_int(obj2, &val4);
72ef6efb
RD
26094 if (!SWIG_IsOK(ecode4)) {
26095 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
26096 }
26097 arg4 = static_cast< int >(val4);
26098 }
26099 {
72ef6efb 26100 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
72ef6efb
RD
26101 if (PyErr_Occurred()) SWIG_fail;
26102 }
26103 resultobj = SWIG_Py_Void();
b39fe951
RD
26104 {
26105 if (arg3) delete [] arg3;
26106 }
72ef6efb
RD
26107 return resultobj;
26108fail:
b39fe951
RD
26109 {
26110 if (arg3) delete [] arg3;
26111 }
72ef6efb
RD
26112 return NULL;
26113}
26114
26115
26116SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26117 PyObject *resultobj = 0;
26118 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26119 wxDouble arg2 ;
26120 wxDouble arg3 ;
26121 wxDouble arg4 ;
26122 wxDouble arg5 ;
26123 void *argp1 = 0 ;
26124 int res1 = 0 ;
26125 double val2 ;
26126 int ecode2 = 0 ;
26127 double val3 ;
26128 int ecode3 = 0 ;
26129 double val4 ;
26130 int ecode4 = 0 ;
26131 double val5 ;
26132 int ecode5 = 0 ;
26133 PyObject * obj0 = 0 ;
26134 PyObject * obj1 = 0 ;
26135 PyObject * obj2 = 0 ;
26136 PyObject * obj3 = 0 ;
26137 PyObject * obj4 = 0 ;
26138 char * kwnames[] = {
26139 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26140 };
26141
26142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26144 if (!SWIG_IsOK(res1)) {
26145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26146 }
26147 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26148 ecode2 = SWIG_AsVal_double(obj1, &val2);
26149 if (!SWIG_IsOK(ecode2)) {
26150 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26151 }
26152 arg2 = static_cast< wxDouble >(val2);
26153 ecode3 = SWIG_AsVal_double(obj2, &val3);
26154 if (!SWIG_IsOK(ecode3)) {
26155 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26156 }
26157 arg3 = static_cast< wxDouble >(val3);
26158 ecode4 = SWIG_AsVal_double(obj3, &val4);
26159 if (!SWIG_IsOK(ecode4)) {
26160 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26161 }
26162 arg4 = static_cast< wxDouble >(val4);
26163 ecode5 = SWIG_AsVal_double(obj4, &val5);
26164 if (!SWIG_IsOK(ecode5)) {
26165 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26166 }
26167 arg5 = static_cast< wxDouble >(val5);
26168 {
72ef6efb 26169 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
72ef6efb
RD
26170 if (PyErr_Occurred()) SWIG_fail;
26171 }
26172 resultobj = SWIG_Py_Void();
26173 return resultobj;
26174fail:
26175 return NULL;
26176}
26177
26178
26179SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26180 PyObject *resultobj = 0;
26181 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26182 wxDouble arg2 ;
26183 wxDouble arg3 ;
26184 wxDouble arg4 ;
26185 wxDouble arg5 ;
26186 void *argp1 = 0 ;
26187 int res1 = 0 ;
26188 double val2 ;
26189 int ecode2 = 0 ;
26190 double val3 ;
26191 int ecode3 = 0 ;
26192 double val4 ;
26193 int ecode4 = 0 ;
26194 double val5 ;
26195 int ecode5 = 0 ;
26196 PyObject * obj0 = 0 ;
26197 PyObject * obj1 = 0 ;
26198 PyObject * obj2 = 0 ;
26199 PyObject * obj3 = 0 ;
26200 PyObject * obj4 = 0 ;
26201 char * kwnames[] = {
26202 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26203 };
26204
26205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26207 if (!SWIG_IsOK(res1)) {
26208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26209 }
26210 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26211 ecode2 = SWIG_AsVal_double(obj1, &val2);
26212 if (!SWIG_IsOK(ecode2)) {
26213 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
26214 }
26215 arg2 = static_cast< wxDouble >(val2);
26216 ecode3 = SWIG_AsVal_double(obj2, &val3);
26217 if (!SWIG_IsOK(ecode3)) {
26218 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
26219 }
26220 arg3 = static_cast< wxDouble >(val3);
26221 ecode4 = SWIG_AsVal_double(obj3, &val4);
26222 if (!SWIG_IsOK(ecode4)) {
26223 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
26224 }
26225 arg4 = static_cast< wxDouble >(val4);
26226 ecode5 = SWIG_AsVal_double(obj4, &val5);
26227 if (!SWIG_IsOK(ecode5)) {
26228 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
26229 }
26230 arg5 = static_cast< wxDouble >(val5);
26231 {
72ef6efb 26232 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
72ef6efb
RD
26233 if (PyErr_Occurred()) SWIG_fail;
26234 }
26235 resultobj = SWIG_Py_Void();
26236 return resultobj;
26237fail:
26238 return NULL;
26239}
26240
26241
26242SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26243 PyObject *resultobj = 0;
26244 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26245 wxDouble arg2 ;
26246 wxDouble arg3 ;
26247 wxDouble arg4 ;
26248 wxDouble arg5 ;
26249 wxDouble arg6 ;
26250 void *argp1 = 0 ;
26251 int res1 = 0 ;
26252 double val2 ;
26253 int ecode2 = 0 ;
26254 double val3 ;
26255 int ecode3 = 0 ;
26256 double val4 ;
26257 int ecode4 = 0 ;
26258 double val5 ;
26259 int ecode5 = 0 ;
26260 double val6 ;
26261 int ecode6 = 0 ;
26262 PyObject * obj0 = 0 ;
26263 PyObject * obj1 = 0 ;
26264 PyObject * obj2 = 0 ;
26265 PyObject * obj3 = 0 ;
26266 PyObject * obj4 = 0 ;
26267 PyObject * obj5 = 0 ;
26268 char * kwnames[] = {
26269 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
26270 };
26271
26272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26274 if (!SWIG_IsOK(res1)) {
26275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26276 }
26277 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26278 ecode2 = SWIG_AsVal_double(obj1, &val2);
26279 if (!SWIG_IsOK(ecode2)) {
26280 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26281 }
26282 arg2 = static_cast< wxDouble >(val2);
26283 ecode3 = SWIG_AsVal_double(obj2, &val3);
26284 if (!SWIG_IsOK(ecode3)) {
26285 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26286 }
26287 arg3 = static_cast< wxDouble >(val3);
26288 ecode4 = SWIG_AsVal_double(obj3, &val4);
26289 if (!SWIG_IsOK(ecode4)) {
26290 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26291 }
26292 arg4 = static_cast< wxDouble >(val4);
26293 ecode5 = SWIG_AsVal_double(obj4, &val5);
26294 if (!SWIG_IsOK(ecode5)) {
26295 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26296 }
26297 arg5 = static_cast< wxDouble >(val5);
26298 ecode6 = SWIG_AsVal_double(obj5, &val6);
26299 if (!SWIG_IsOK(ecode6)) {
26300 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
26301 }
26302 arg6 = static_cast< wxDouble >(val6);
26303 {
72ef6efb 26304 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
26305 if (PyErr_Occurred()) SWIG_fail;
26306 }
26307 resultobj = SWIG_Py_Void();
26308 return resultobj;
26309fail:
26310 return NULL;
26311}
26312
26313
26314SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26315 PyObject *obj;
26316 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26317 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
26318 return SWIG_Py_Void();
26319}
26320
26321SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26322 PyObject *resultobj = 0;
26323 wxWindowDC *arg1 = 0 ;
26324 wxGCDC *result = 0 ;
26325 void *argp1 = 0 ;
26326 int res1 = 0 ;
26327 PyObject * obj0 = 0 ;
26328 char * kwnames[] = {
26329 (char *) "dc", NULL
26330 };
26331
26332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_GCDC",kwnames,&obj0)) SWIG_fail;
26333 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
26334 if (!SWIG_IsOK(res1)) {
26335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
26336 }
26337 if (!argp1) {
26338 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
26339 }
26340 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
26341 {
26342 if (!wxPyCheckForApp()) SWIG_fail;
26343 PyThreadState* __tstate = wxPyBeginAllowThreads();
26344 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
26345 wxPyEndAllowThreads(__tstate);
26346 if (PyErr_Occurred()) SWIG_fail;
26347 }
26348 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
26349 return resultobj;
26350fail:
26351 return NULL;
26352}
26353
26354
26355SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26356 PyObject *resultobj = 0;
26357 wxGCDC *arg1 = (wxGCDC *) 0 ;
26358 void *argp1 = 0 ;
26359 int res1 = 0 ;
26360 PyObject *swig_obj[1] ;
26361
26362 if (!args) SWIG_fail;
26363 swig_obj[0] = args;
26364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
26365 if (!SWIG_IsOK(res1)) {
26366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
26367 }
26368 arg1 = reinterpret_cast< wxGCDC * >(argp1);
26369 {
72ef6efb
RD
26370 delete arg1;
26371
72ef6efb
RD
26372 if (PyErr_Occurred()) SWIG_fail;
26373 }
26374 resultobj = SWIG_Py_Void();
26375 return resultobj;
26376fail:
26377 return NULL;
26378}
26379
26380
26381SWIGINTERN PyObject *_wrap_GCDC_GetGraphicContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26382 PyObject *resultobj = 0;
26383 wxGCDC *arg1 = (wxGCDC *) 0 ;
26384 wxGraphicsContext *result = 0 ;
26385 void *argp1 = 0 ;
26386 int res1 = 0 ;
26387 PyObject *swig_obj[1] ;
26388
26389 if (!args) SWIG_fail;
26390 swig_obj[0] = args;
26391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
26392 if (!SWIG_IsOK(res1)) {
26393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
26394 }
26395 arg1 = reinterpret_cast< wxGCDC * >(argp1);
26396 {
72ef6efb 26397 result = (wxGraphicsContext *)(arg1)->GetGraphicContext();
72ef6efb
RD
26398 if (PyErr_Occurred()) SWIG_fail;
26399 }
26400 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26401 return resultobj;
26402fail:
26403 return NULL;
26404}
26405
26406
26407SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26408 PyObject *obj;
26409 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26410 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
26411 return SWIG_Py_Void();
26412}
26413
26414SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26415 return SWIG_Python_InitShadowInstance(args);
26416}
26417
b39fe951
RD
26418SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26419 PyObject *resultobj = 0;
26420 wxOverlay *result = 0 ;
26421
26422 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
26423 {
26424 PyThreadState* __tstate = wxPyBeginAllowThreads();
26425 result = (wxOverlay *)new wxOverlay();
26426 wxPyEndAllowThreads(__tstate);
26427 if (PyErr_Occurred()) SWIG_fail;
26428 }
26429 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
26430 return resultobj;
26431fail:
26432 return NULL;
26433}
26434
26435
26436SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26437 PyObject *resultobj = 0;
26438 wxOverlay *arg1 = (wxOverlay *) 0 ;
26439 void *argp1 = 0 ;
26440 int res1 = 0 ;
26441 PyObject *swig_obj[1] ;
26442
26443 if (!args) SWIG_fail;
26444 swig_obj[0] = args;
26445 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
26446 if (!SWIG_IsOK(res1)) {
26447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
26448 }
26449 arg1 = reinterpret_cast< wxOverlay * >(argp1);
26450 {
26451 PyThreadState* __tstate = wxPyBeginAllowThreads();
26452 delete arg1;
26453
26454 wxPyEndAllowThreads(__tstate);
26455 if (PyErr_Occurred()) SWIG_fail;
26456 }
26457 resultobj = SWIG_Py_Void();
26458 return resultobj;
26459fail:
26460 return NULL;
26461}
26462
26463
26464SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26465 PyObject *resultobj = 0;
26466 wxOverlay *arg1 = (wxOverlay *) 0 ;
26467 void *argp1 = 0 ;
26468 int res1 = 0 ;
26469 PyObject *swig_obj[1] ;
26470
26471 if (!args) SWIG_fail;
26472 swig_obj[0] = args;
26473 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
26474 if (!SWIG_IsOK(res1)) {
26475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
26476 }
26477 arg1 = reinterpret_cast< wxOverlay * >(argp1);
26478 {
26479 PyThreadState* __tstate = wxPyBeginAllowThreads();
26480 (arg1)->Reset();
26481 wxPyEndAllowThreads(__tstate);
26482 if (PyErr_Occurred()) SWIG_fail;
26483 }
26484 resultobj = SWIG_Py_Void();
26485 return resultobj;
26486fail:
26487 return NULL;
26488}
26489
26490
26491SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26492 PyObject *obj;
26493 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26494 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
26495 return SWIG_Py_Void();
26496}
26497
26498SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26499 return SWIG_Python_InitShadowInstance(args);
26500}
26501
26502SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26503 PyObject *resultobj = 0;
26504 wxOverlay *arg1 = 0 ;
26505 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
26506 int arg3 ;
26507 int arg4 ;
26508 int arg5 ;
26509 int arg6 ;
26510 wxDCOverlay *result = 0 ;
26511 void *argp1 = 0 ;
26512 int res1 = 0 ;
26513 void *argp2 = 0 ;
26514 int res2 = 0 ;
26515 int val3 ;
26516 int ecode3 = 0 ;
26517 int val4 ;
26518 int ecode4 = 0 ;
26519 int val5 ;
26520 int ecode5 = 0 ;
26521 int val6 ;
26522 int ecode6 = 0 ;
26523
26524 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
26525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
26526 if (!SWIG_IsOK(res1)) {
26527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
26528 }
26529 if (!argp1) {
26530 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
26531 }
26532 arg1 = reinterpret_cast< wxOverlay * >(argp1);
26533 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
26534 if (!SWIG_IsOK(res2)) {
26535 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
26536 }
26537 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
26538 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
26539 if (!SWIG_IsOK(ecode3)) {
26540 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
26541 }
26542 arg3 = static_cast< int >(val3);
26543 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
26544 if (!SWIG_IsOK(ecode4)) {
26545 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
26546 }
26547 arg4 = static_cast< int >(val4);
26548 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
26549 if (!SWIG_IsOK(ecode5)) {
26550 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
26551 }
26552 arg5 = static_cast< int >(val5);
26553 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
26554 if (!SWIG_IsOK(ecode6)) {
26555 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
26556 }
26557 arg6 = static_cast< int >(val6);
26558 {
26559 PyThreadState* __tstate = wxPyBeginAllowThreads();
26560 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
26561 wxPyEndAllowThreads(__tstate);
26562 if (PyErr_Occurred()) SWIG_fail;
26563 }
26564 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
26565 return resultobj;
26566fail:
26567 return NULL;
26568}
26569
26570
26571SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26572 PyObject *resultobj = 0;
26573 wxOverlay *arg1 = 0 ;
26574 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
26575 wxDCOverlay *result = 0 ;
26576 void *argp1 = 0 ;
26577 int res1 = 0 ;
26578 void *argp2 = 0 ;
26579 int res2 = 0 ;
26580
26581 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26582 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
26583 if (!SWIG_IsOK(res1)) {
26584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
26585 }
26586 if (!argp1) {
26587 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
26588 }
26589 arg1 = reinterpret_cast< wxOverlay * >(argp1);
26590 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
26591 if (!SWIG_IsOK(res2)) {
26592 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
26593 }
26594 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
26595 {
26596 PyThreadState* __tstate = wxPyBeginAllowThreads();
26597 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
26598 wxPyEndAllowThreads(__tstate);
26599 if (PyErr_Occurred()) SWIG_fail;
26600 }
26601 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
26602 return resultobj;
26603fail:
26604 return NULL;
26605}
26606
26607
26608SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
26609 int argc;
26610 PyObject *argv[7];
26611
26612 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
26613 --argc;
26614 if (argc == 2) {
26615 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
26616 }
26617 if (argc == 6) {
26618 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
26619 }
26620
26621fail:
26622 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
26623 return NULL;
26624}
26625
26626
26627SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26628 PyObject *resultobj = 0;
26629 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
26630 void *argp1 = 0 ;
26631 int res1 = 0 ;
26632 PyObject *swig_obj[1] ;
26633
26634 if (!args) SWIG_fail;
26635 swig_obj[0] = args;
26636 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
26637 if (!SWIG_IsOK(res1)) {
26638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
26639 }
26640 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
26641 {
26642 PyThreadState* __tstate = wxPyBeginAllowThreads();
26643 delete arg1;
26644
26645 wxPyEndAllowThreads(__tstate);
26646 if (PyErr_Occurred()) SWIG_fail;
26647 }
26648 resultobj = SWIG_Py_Void();
26649 return resultobj;
26650fail:
26651 return NULL;
26652}
26653
26654
26655SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26656 PyObject *resultobj = 0;
26657 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
26658 void *argp1 = 0 ;
26659 int res1 = 0 ;
26660 PyObject *swig_obj[1] ;
26661
26662 if (!args) SWIG_fail;
26663 swig_obj[0] = args;
26664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
26665 if (!SWIG_IsOK(res1)) {
26666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
26667 }
26668 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
26669 {
26670 PyThreadState* __tstate = wxPyBeginAllowThreads();
26671 (arg1)->Clear();
26672 wxPyEndAllowThreads(__tstate);
26673 if (PyErr_Occurred()) SWIG_fail;
26674 }
26675 resultobj = SWIG_Py_Void();
26676 return resultobj;
26677fail:
26678 return NULL;
26679}
26680
26681
26682SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26683 PyObject *obj;
26684 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26685 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
26686 return SWIG_Py_Void();
26687}
26688
26689SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26690 return SWIG_Python_InitShadowInstance(args);
26691}
26692
72ef6efb
RD
26693SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26694 PyObject *resultobj = 0;
26695 int arg1 ;
26696 int arg2 ;
26697 int arg3 = (int) true ;
26698 int arg4 = (int) 1 ;
26699 wxImageList *result = 0 ;
26700 int val1 ;
26701 int ecode1 = 0 ;
26702 int val2 ;
26703 int ecode2 = 0 ;
26704 int val3 ;
26705 int ecode3 = 0 ;
26706 int val4 ;
26707 int ecode4 = 0 ;
26708 PyObject * obj0 = 0 ;
26709 PyObject * obj1 = 0 ;
26710 PyObject * obj2 = 0 ;
26711 PyObject * obj3 = 0 ;
26712 char * kwnames[] = {
26713 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
26714 };
26715
26716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26717 ecode1 = SWIG_AsVal_int(obj0, &val1);
26718 if (!SWIG_IsOK(ecode1)) {
26719 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
26720 }
26721 arg1 = static_cast< int >(val1);
26722 ecode2 = SWIG_AsVal_int(obj1, &val2);
26723 if (!SWIG_IsOK(ecode2)) {
26724 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
26725 }
26726 arg2 = static_cast< int >(val2);
26727 if (obj2) {
26728 ecode3 = SWIG_AsVal_int(obj2, &val3);
26729 if (!SWIG_IsOK(ecode3)) {
26730 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
26731 }
26732 arg3 = static_cast< int >(val3);
26733 }
26734 if (obj3) {
26735 ecode4 = SWIG_AsVal_int(obj3, &val4);
26736 if (!SWIG_IsOK(ecode4)) {
26737 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
26738 }
26739 arg4 = static_cast< int >(val4);
26740 }
26741 {
26742 if (!wxPyCheckForApp()) SWIG_fail;
26743 PyThreadState* __tstate = wxPyBeginAllowThreads();
26744 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
26745 wxPyEndAllowThreads(__tstate);
26746 if (PyErr_Occurred()) SWIG_fail;
26747 }
26748 {
26749 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
26750 }
26751 return resultobj;
26752fail:
26753 return NULL;
26754}
26755
26756
26757SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26758 PyObject *resultobj = 0;
26759 wxImageList *arg1 = (wxImageList *) 0 ;
26760 void *argp1 = 0 ;
26761 int res1 = 0 ;
26762 PyObject *swig_obj[1] ;
26763
26764 if (!args) SWIG_fail;
26765 swig_obj[0] = args;
26766 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
26767 if (!SWIG_IsOK(res1)) {
26768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
26769 }
26770 arg1 = reinterpret_cast< wxImageList * >(argp1);
26771 {
26772 PyThreadState* __tstate = wxPyBeginAllowThreads();
26773 delete arg1;
26774
26775 wxPyEndAllowThreads(__tstate);
26776 if (PyErr_Occurred()) SWIG_fail;
26777 }
26778 resultobj = SWIG_Py_Void();
26779 return resultobj;
26780fail:
26781 return NULL;
26782}
26783
26784
26785SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26786 PyObject *resultobj = 0;
26787 wxImageList *arg1 = (wxImageList *) 0 ;
26788 wxBitmap *arg2 = 0 ;
26789 wxBitmap const &arg3_defvalue = wxNullBitmap ;
26790 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
26791 int result;
26792 void *argp1 = 0 ;
26793 int res1 = 0 ;
26794 void *argp2 = 0 ;
26795 int res2 = 0 ;
26796 void *argp3 = 0 ;
26797 int res3 = 0 ;
26798 PyObject * obj0 = 0 ;
26799 PyObject * obj1 = 0 ;
26800 PyObject * obj2 = 0 ;
26801 char * kwnames[] = {
26802 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
26803 };
26804
26805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
26807 if (!SWIG_IsOK(res1)) {
26808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
26809 }
26810 arg1 = reinterpret_cast< wxImageList * >(argp1);
26811 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
26812 if (!SWIG_IsOK(res2)) {
26813 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
26814 }
26815 if (!argp2) {
26816 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
26817 }
26818 arg2 = reinterpret_cast< wxBitmap * >(argp2);
26819 if (obj2) {
26820 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
26821 if (!SWIG_IsOK(res3)) {
26822 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
26823 }
26824 if (!argp3) {
26825 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
26826 }
26827 arg3 = reinterpret_cast< wxBitmap * >(argp3);
26828 }
26829 {
26830 PyThreadState* __tstate = wxPyBeginAllowThreads();
26831 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
26832 wxPyEndAllowThreads(__tstate);
26833 if (PyErr_Occurred()) SWIG_fail;
26834 }
26835 resultobj = SWIG_From_int(static_cast< int >(result));
26836 return resultobj;
26837fail:
26838 return NULL;
26839}
26840
26841
26842SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26843 PyObject *resultobj = 0;
26844 wxImageList *arg1 = (wxImageList *) 0 ;
26845 wxBitmap *arg2 = 0 ;
26846 wxColour *arg3 = 0 ;
26847 int result;
26848 void *argp1 = 0 ;
26849 int res1 = 0 ;
26850 void *argp2 = 0 ;
26851 int res2 = 0 ;
26852 wxColour temp3 ;
26853 PyObject * obj0 = 0 ;
26854 PyObject * obj1 = 0 ;
26855 PyObject * obj2 = 0 ;
26856 char * kwnames[] = {
26857 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
26858 };
26859
26860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
26862 if (!SWIG_IsOK(res1)) {
26863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
26864 }
26865 arg1 = reinterpret_cast< wxImageList * >(argp1);
26866 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
26867 if (!SWIG_IsOK(res2)) {
26868 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
26869 }
26870 if (!argp2) {
26871 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
26872 }
26873 arg2 = reinterpret_cast< wxBitmap * >(argp2);
26874 {
26875 arg3 = &temp3;
26876 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
26877 }
26878 {
26879 PyThreadState* __tstate = wxPyBeginAllowThreads();
26880 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
26881 wxPyEndAllowThreads(__tstate);
26882 if (PyErr_Occurred()) SWIG_fail;
26883 }
26884 resultobj = SWIG_From_int(static_cast< int >(result));
26885 return resultobj;
26886fail:
26887 return NULL;
26888}
26889
26890
26891SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26892 PyObject *resultobj = 0;
26893 wxImageList *arg1 = (wxImageList *) 0 ;
26894 wxIcon *arg2 = 0 ;
26895 int result;
26896 void *argp1 = 0 ;
26897 int res1 = 0 ;
26898 void *argp2 = 0 ;
26899 int res2 = 0 ;
26900 PyObject * obj0 = 0 ;
26901 PyObject * obj1 = 0 ;
26902 char * kwnames[] = {
26903 (char *) "self",(char *) "icon", NULL
26904 };
26905
26906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
26907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
26908 if (!SWIG_IsOK(res1)) {
26909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
26910 }
0085ce49
RD
26911 arg1 = reinterpret_cast< wxImageList * >(argp1);
26912 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
26913 if (!SWIG_IsOK(res2)) {
26914 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
26915 }
26916 if (!argp2) {
26917 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
26918 }
26919 arg2 = reinterpret_cast< wxIcon * >(argp2);
26920 {
26921 PyThreadState* __tstate = wxPyBeginAllowThreads();
26922 result = (int)(arg1)->Add((wxIcon const &)*arg2);
26923 wxPyEndAllowThreads(__tstate);
26924 if (PyErr_Occurred()) SWIG_fail;
26925 }
26926 resultobj = SWIG_From_int(static_cast< int >(result));
26927 return resultobj;
26928fail:
26929 return NULL;
26930}
26931
26932
26933SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26934 PyObject *resultobj = 0;
26935 wxImageList *arg1 = (wxImageList *) 0 ;
26936 int arg2 ;
26937 SwigValueWrapper<wxBitmap > result;
26938 void *argp1 = 0 ;
26939 int res1 = 0 ;
26940 int val2 ;
26941 int ecode2 = 0 ;
26942 PyObject * obj0 = 0 ;
26943 PyObject * obj1 = 0 ;
26944 char * kwnames[] = {
26945 (char *) "self",(char *) "index", NULL
26946 };
26947
26948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
26949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
26950 if (!SWIG_IsOK(res1)) {
26951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
26952 }
26953 arg1 = reinterpret_cast< wxImageList * >(argp1);
26954 ecode2 = SWIG_AsVal_int(obj1, &val2);
26955 if (!SWIG_IsOK(ecode2)) {
26956 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
26957 }
26958 arg2 = static_cast< int >(val2);
26959 {
26960 PyThreadState* __tstate = wxPyBeginAllowThreads();
26961 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
26962 wxPyEndAllowThreads(__tstate);
26963 if (PyErr_Occurred()) SWIG_fail;
26964 }
26965 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
26966 return resultobj;
26967fail:
26968 return NULL;
26969}
26970
26971
26972SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26973 PyObject *resultobj = 0;
26974 wxImageList *arg1 = (wxImageList *) 0 ;
26975 int arg2 ;
26976 wxIcon result;
26977 void *argp1 = 0 ;
26978 int res1 = 0 ;
26979 int val2 ;
26980 int ecode2 = 0 ;
26981 PyObject * obj0 = 0 ;
26982 PyObject * obj1 = 0 ;
26983 char * kwnames[] = {
26984 (char *) "self",(char *) "index", NULL
26985 };
26986
26987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
26988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
26989 if (!SWIG_IsOK(res1)) {
26990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
26991 }
26992 arg1 = reinterpret_cast< wxImageList * >(argp1);
26993 ecode2 = SWIG_AsVal_int(obj1, &val2);
26994 if (!SWIG_IsOK(ecode2)) {
26995 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
26996 }
26997 arg2 = static_cast< int >(val2);
26998 {
26999 PyThreadState* __tstate = wxPyBeginAllowThreads();
27000 result = ((wxImageList const *)arg1)->GetIcon(arg2);
27001 wxPyEndAllowThreads(__tstate);
27002 if (PyErr_Occurred()) SWIG_fail;
27003 }
27004 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
27005 return resultobj;
27006fail:
27007 return NULL;
27008}
27009
27010
27011SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27012 PyObject *resultobj = 0;
27013 wxImageList *arg1 = (wxImageList *) 0 ;
27014 int arg2 ;
27015 wxBitmap *arg3 = 0 ;
01f6b6d3
RD
27016 wxBitmap const &arg4_defvalue = wxNullBitmap ;
27017 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
0085ce49
RD
27018 bool result;
27019 void *argp1 = 0 ;
27020 int res1 = 0 ;
27021 int val2 ;
27022 int ecode2 = 0 ;
27023 void *argp3 = 0 ;
27024 int res3 = 0 ;
01f6b6d3
RD
27025 void *argp4 = 0 ;
27026 int res4 = 0 ;
0085ce49
RD
27027 PyObject * obj0 = 0 ;
27028 PyObject * obj1 = 0 ;
27029 PyObject * obj2 = 0 ;
01f6b6d3 27030 PyObject * obj3 = 0 ;
0085ce49 27031 char * kwnames[] = {
01f6b6d3 27032 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
0085ce49
RD
27033 };
27034
01f6b6d3 27035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
0085ce49
RD
27036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27037 if (!SWIG_IsOK(res1)) {
27038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
27039 }
27040 arg1 = reinterpret_cast< wxImageList * >(argp1);
27041 ecode2 = SWIG_AsVal_int(obj1, &val2);
27042 if (!SWIG_IsOK(ecode2)) {
27043 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
27044 }
27045 arg2 = static_cast< int >(val2);
27046 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
27047 if (!SWIG_IsOK(res3)) {
27048 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27049 }
27050 if (!argp3) {
27051 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27052 }
27053 arg3 = reinterpret_cast< wxBitmap * >(argp3);
01f6b6d3
RD
27054 if (obj3) {
27055 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
27056 if (!SWIG_IsOK(res4)) {
27057 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
27058 }
27059 if (!argp4) {
27060 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
27061 }
27062 arg4 = reinterpret_cast< wxBitmap * >(argp4);
27063 }
0085ce49
RD
27064 {
27065 PyThreadState* __tstate = wxPyBeginAllowThreads();
01f6b6d3 27066 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
0085ce49
RD
27067 wxPyEndAllowThreads(__tstate);
27068 if (PyErr_Occurred()) SWIG_fail;
27069 }
27070 {
27071 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27072 }
27073 return resultobj;
27074fail:
27075 return NULL;
27076}
27077
27078
27079SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27080 PyObject *resultobj = 0;
27081 wxImageList *arg1 = (wxImageList *) 0 ;
27082 int arg2 ;
27083 wxDC *arg3 = 0 ;
27084 int arg4 ;
27085 int arg5 ;
27086 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
27087 bool arg7 = (bool) (bool)false ;
27088 bool result;
27089 void *argp1 = 0 ;
27090 int res1 = 0 ;
27091 int val2 ;
27092 int ecode2 = 0 ;
27093 void *argp3 = 0 ;
27094 int res3 = 0 ;
27095 int val4 ;
27096 int ecode4 = 0 ;
27097 int val5 ;
27098 int ecode5 = 0 ;
27099 int val6 ;
27100 int ecode6 = 0 ;
27101 bool val7 ;
27102 int ecode7 = 0 ;
27103 PyObject * obj0 = 0 ;
27104 PyObject * obj1 = 0 ;
27105 PyObject * obj2 = 0 ;
27106 PyObject * obj3 = 0 ;
27107 PyObject * obj4 = 0 ;
27108 PyObject * obj5 = 0 ;
27109 PyObject * obj6 = 0 ;
27110 char * kwnames[] = {
27111 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
27112 };
27113
27114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27116 if (!SWIG_IsOK(res1)) {
27117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
27118 }
27119 arg1 = reinterpret_cast< wxImageList * >(argp1);
27120 ecode2 = SWIG_AsVal_int(obj1, &val2);
27121 if (!SWIG_IsOK(ecode2)) {
27122 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
27123 }
27124 arg2 = static_cast< int >(val2);
27125 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27126 if (!SWIG_IsOK(res3)) {
27127 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
27128 }
27129 if (!argp3) {
27130 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
27131 }
27132 arg3 = reinterpret_cast< wxDC * >(argp3);
27133 ecode4 = SWIG_AsVal_int(obj3, &val4);
27134 if (!SWIG_IsOK(ecode4)) {
27135 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
27136 }
27137 arg4 = static_cast< int >(val4);
27138 ecode5 = SWIG_AsVal_int(obj4, &val5);
27139 if (!SWIG_IsOK(ecode5)) {
27140 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
27141 }
27142 arg5 = static_cast< int >(val5);
27143 if (obj5) {
27144 ecode6 = SWIG_AsVal_int(obj5, &val6);
27145 if (!SWIG_IsOK(ecode6)) {
27146 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
27147 }
27148 arg6 = static_cast< int >(val6);
27149 }
27150 if (obj6) {
27151 ecode7 = SWIG_AsVal_bool(obj6, &val7);
27152 if (!SWIG_IsOK(ecode7)) {
27153 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
27154 }
27155 arg7 = static_cast< bool >(val7);
27156 }
27157 {
27158 PyThreadState* __tstate = wxPyBeginAllowThreads();
27159 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
27160 wxPyEndAllowThreads(__tstate);
27161 if (PyErr_Occurred()) SWIG_fail;
27162 }
27163 {
27164 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27165 }
27166 return resultobj;
27167fail:
27168 return NULL;
27169}
27170
27171
27172SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27173 PyObject *resultobj = 0;
27174 wxImageList *arg1 = (wxImageList *) 0 ;
27175 int result;
27176 void *argp1 = 0 ;
27177 int res1 = 0 ;
27178 PyObject *swig_obj[1] ;
27179
27180 if (!args) SWIG_fail;
27181 swig_obj[0] = args;
27182 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27183 if (!SWIG_IsOK(res1)) {
27184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
27185 }
27186 arg1 = reinterpret_cast< wxImageList * >(argp1);
27187 {
27188 PyThreadState* __tstate = wxPyBeginAllowThreads();
27189 result = (int)(arg1)->GetImageCount();
27190 wxPyEndAllowThreads(__tstate);
27191 if (PyErr_Occurred()) SWIG_fail;
27192 }
27193 resultobj = SWIG_From_int(static_cast< int >(result));
27194 return resultobj;
27195fail:
27196 return NULL;
27197}
27198
27199
27200SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27201 PyObject *resultobj = 0;
27202 wxImageList *arg1 = (wxImageList *) 0 ;
27203 int arg2 ;
27204 bool result;
27205 void *argp1 = 0 ;
27206 int res1 = 0 ;
27207 int val2 ;
27208 int ecode2 = 0 ;
27209 PyObject * obj0 = 0 ;
27210 PyObject * obj1 = 0 ;
27211 char * kwnames[] = {
27212 (char *) "self",(char *) "index", NULL
27213 };
27214
27215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
27216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27217 if (!SWIG_IsOK(res1)) {
27218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
27219 }
27220 arg1 = reinterpret_cast< wxImageList * >(argp1);
27221 ecode2 = SWIG_AsVal_int(obj1, &val2);
27222 if (!SWIG_IsOK(ecode2)) {
27223 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
27224 }
27225 arg2 = static_cast< int >(val2);
27226 {
27227 PyThreadState* __tstate = wxPyBeginAllowThreads();
27228 result = (bool)(arg1)->Remove(arg2);
27229 wxPyEndAllowThreads(__tstate);
27230 if (PyErr_Occurred()) SWIG_fail;
27231 }
27232 {
27233 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27234 }
27235 return resultobj;
27236fail:
27237 return NULL;
27238}
27239
27240
27241SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27242 PyObject *resultobj = 0;
27243 wxImageList *arg1 = (wxImageList *) 0 ;
27244 bool result;
27245 void *argp1 = 0 ;
27246 int res1 = 0 ;
27247 PyObject *swig_obj[1] ;
27248
27249 if (!args) SWIG_fail;
27250 swig_obj[0] = args;
27251 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27252 if (!SWIG_IsOK(res1)) {
27253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
27254 }
27255 arg1 = reinterpret_cast< wxImageList * >(argp1);
27256 {
27257 PyThreadState* __tstate = wxPyBeginAllowThreads();
27258 result = (bool)(arg1)->RemoveAll();
27259 wxPyEndAllowThreads(__tstate);
27260 if (PyErr_Occurred()) SWIG_fail;
27261 }
27262 {
27263 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27264 }
27265 return resultobj;
27266fail:
27267 return NULL;
27268}
27269
27270
27271SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27272 PyObject *resultobj = 0;
27273 wxImageList *arg1 = (wxImageList *) 0 ;
27274 int arg2 ;
27275 int *arg3 = 0 ;
27276 int *arg4 = 0 ;
27277 void *argp1 = 0 ;
27278 int res1 = 0 ;
27279 int val2 ;
27280 int ecode2 = 0 ;
27281 int temp3 ;
27282 int res3 = SWIG_TMPOBJ ;
27283 int temp4 ;
27284 int res4 = SWIG_TMPOBJ ;
27285 PyObject * obj0 = 0 ;
27286 PyObject * obj1 = 0 ;
27287 char * kwnames[] = {
27288 (char *) "self",(char *) "index", NULL
27289 };
27290
27291 arg3 = &temp3;
27292 arg4 = &temp4;
27293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
27294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27295 if (!SWIG_IsOK(res1)) {
27296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
27297 }
27298 arg1 = reinterpret_cast< wxImageList * >(argp1);
27299 ecode2 = SWIG_AsVal_int(obj1, &val2);
27300 if (!SWIG_IsOK(ecode2)) {
27301 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
27302 }
27303 arg2 = static_cast< int >(val2);
27304 {
27305 PyThreadState* __tstate = wxPyBeginAllowThreads();
27306 (arg1)->GetSize(arg2,*arg3,*arg4);
27307 wxPyEndAllowThreads(__tstate);
27308 if (PyErr_Occurred()) SWIG_fail;
27309 }
27310 resultobj = SWIG_Py_Void();
27311 if (SWIG_IsTmpObj(res3)) {
27312 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
27313 } else {
27314 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27315 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
27316 }
27317 if (SWIG_IsTmpObj(res4)) {
27318 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
27319 } else {
27320 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27321 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
27322 }
27323 return resultobj;
27324fail:
27325 return NULL;
27326}
27327
27328
27329SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27330 PyObject *obj;
27331 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27332 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
27333 return SWIG_Py_Void();
27334}
27335
27336SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27337 return SWIG_Python_InitShadowInstance(args);
27338}
27339
50efceee
RD
27340SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27341 PyObject *resultobj = 0;
27342 wxStockGDI *result = 0 ;
0085ce49 27343
50efceee
RD
27344 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
27345 {
27346 PyThreadState* __tstate = wxPyBeginAllowThreads();
27347 result = (wxStockGDI *)new wxStockGDI();
27348 wxPyEndAllowThreads(__tstate);
27349 if (PyErr_Occurred()) SWIG_fail;
27350 }
27351 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
27352 return resultobj;
27353fail:
27354 return NULL;
0085ce49
RD
27355}
27356
27357
50efceee
RD
27358SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27359 PyObject *resultobj = 0;
27360 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
27361 void *argp1 = 0 ;
27362 int res1 = 0 ;
27363 PyObject *swig_obj[1] ;
0085ce49 27364
50efceee
RD
27365 if (!args) SWIG_fail;
27366 swig_obj[0] = args;
27367 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
27368 if (!SWIG_IsOK(res1)) {
27369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
27370 }
27371 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
27372 {
27373 PyThreadState* __tstate = wxPyBeginAllowThreads();
27374 delete arg1;
27375
27376 wxPyEndAllowThreads(__tstate);
27377 if (PyErr_Occurred()) SWIG_fail;
27378 }
27379 resultobj = SWIG_Py_Void();
27380 return resultobj;
27381fail:
27382 return NULL;
0085ce49
RD
27383}
27384
27385
50efceee
RD
27386SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27387 PyObject *resultobj = 0;
0085ce49 27388
50efceee
RD
27389 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
27390 {
27391 PyThreadState* __tstate = wxPyBeginAllowThreads();
27392 wxStockGDI::DeleteAll();
27393 wxPyEndAllowThreads(__tstate);
27394 if (PyErr_Occurred()) SWIG_fail;
27395 }
27396 resultobj = SWIG_Py_Void();
27397 return resultobj;
27398fail:
27399 return NULL;
0085ce49
RD
27400}
27401
27402
50efceee
RD
27403SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27404 PyObject *resultobj = 0;
27405 wxStockGDI *result = 0 ;
0085ce49 27406
50efceee
RD
27407 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
27408 {
27409 PyThreadState* __tstate = wxPyBeginAllowThreads();
27410 {
27411 wxStockGDI &_result_ref = wxStockGDI::instance();
27412 result = (wxStockGDI *) &_result_ref;
27413 }
27414 wxPyEndAllowThreads(__tstate);
27415 if (PyErr_Occurred()) SWIG_fail;
27416 }
27417 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
27418 return resultobj;
27419fail:
27420 return NULL;
0085ce49
RD
27421}
27422
27423
50efceee
RD
27424SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27425 PyObject *resultobj = 0;
27426 wxStockGDI::Item arg1 ;
27427 wxBrush *result = 0 ;
27428 int val1 ;
27429 int ecode1 = 0 ;
27430 PyObject * obj0 = 0 ;
27431 char * kwnames[] = {
27432 (char *) "item", NULL
27433 };
27434
27435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
27436 ecode1 = SWIG_AsVal_int(obj0, &val1);
27437 if (!SWIG_IsOK(ecode1)) {
27438 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27439 }
27440 arg1 = static_cast< wxStockGDI::Item >(val1);
27441 {
27442 PyThreadState* __tstate = wxPyBeginAllowThreads();
27443 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
27444 wxPyEndAllowThreads(__tstate);
27445 if (PyErr_Occurred()) SWIG_fail;
27446 }
27447 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
27448 return resultobj;
27449fail:
27450 return NULL;
0085ce49
RD
27451}
27452
27453
50efceee
RD
27454SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27455 PyObject *resultobj = 0;
27456 wxStockGDI::Item arg1 ;
27457 wxColour *result = 0 ;
27458 int val1 ;
27459 int ecode1 = 0 ;
27460 PyObject * obj0 = 0 ;
27461 char * kwnames[] = {
27462 (char *) "item", NULL
27463 };
0085ce49 27464
50efceee
RD
27465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
27466 ecode1 = SWIG_AsVal_int(obj0, &val1);
27467 if (!SWIG_IsOK(ecode1)) {
27468 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27469 }
27470 arg1 = static_cast< wxStockGDI::Item >(val1);
27471 {
27472 PyThreadState* __tstate = wxPyBeginAllowThreads();
27473 result = (wxColour *)wxStockGDI::GetColour(arg1);
27474 wxPyEndAllowThreads(__tstate);
27475 if (PyErr_Occurred()) SWIG_fail;
27476 }
27477 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
27478 return resultobj;
27479fail:
27480 return NULL;
0085ce49
RD
27481}
27482
27483
50efceee
RD
27484SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27485 PyObject *resultobj = 0;
27486 wxStockGDI::Item arg1 ;
27487 wxCursor *result = 0 ;
27488 int val1 ;
27489 int ecode1 = 0 ;
27490 PyObject * obj0 = 0 ;
27491 char * kwnames[] = {
27492 (char *) "item", NULL
27493 };
27494
27495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
27496 ecode1 = SWIG_AsVal_int(obj0, &val1);
27497 if (!SWIG_IsOK(ecode1)) {
27498 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27499 }
27500 arg1 = static_cast< wxStockGDI::Item >(val1);
27501 {
27502 PyThreadState* __tstate = wxPyBeginAllowThreads();
27503 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
27504 wxPyEndAllowThreads(__tstate);
27505 if (PyErr_Occurred()) SWIG_fail;
27506 }
27507 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
27508 return resultobj;
27509fail:
27510 return NULL;
0085ce49
RD
27511}
27512
27513
50efceee
RD
27514SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27515 PyObject *resultobj = 0;
27516 wxStockGDI::Item arg1 ;
27517 wxPen *result = 0 ;
27518 int val1 ;
27519 int ecode1 = 0 ;
27520 PyObject * obj0 = 0 ;
27521 char * kwnames[] = {
27522 (char *) "item", NULL
27523 };
27524
27525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
27526 ecode1 = SWIG_AsVal_int(obj0, &val1);
27527 if (!SWIG_IsOK(ecode1)) {
27528 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27529 }
27530 arg1 = static_cast< wxStockGDI::Item >(val1);
27531 {
27532 PyThreadState* __tstate = wxPyBeginAllowThreads();
27533 result = (wxPen *)wxStockGDI::GetPen(arg1);
27534 wxPyEndAllowThreads(__tstate);
27535 if (PyErr_Occurred()) SWIG_fail;
27536 }
27537 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
27538 return resultobj;
27539fail:
27540 return NULL;
0085ce49
RD
27541}
27542
27543
50efceee
RD
27544SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27545 PyObject *resultobj = 0;
27546 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
27547 wxStockGDI::Item arg2 ;
27548 wxFont *result = 0 ;
27549 void *argp1 = 0 ;
27550 int res1 = 0 ;
27551 int val2 ;
27552 int ecode2 = 0 ;
27553 PyObject * obj0 = 0 ;
27554 PyObject * obj1 = 0 ;
27555 char * kwnames[] = {
27556 (char *) "self",(char *) "item", NULL
27557 };
0085ce49 27558
50efceee
RD
27559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
27560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
27561 if (!SWIG_IsOK(res1)) {
27562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
27563 }
27564 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
27565 ecode2 = SWIG_AsVal_int(obj1, &val2);
27566 if (!SWIG_IsOK(ecode2)) {
27567 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
27568 }
27569 arg2 = static_cast< wxStockGDI::Item >(val2);
27570 {
27571 PyThreadState* __tstate = wxPyBeginAllowThreads();
27572 result = (wxFont *)(arg1)->GetFont(arg2);
27573 wxPyEndAllowThreads(__tstate);
27574 if (PyErr_Occurred()) SWIG_fail;
27575 }
27576 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
27577 return resultobj;
27578fail:
27579 return NULL;
0085ce49
RD
27580}
27581
27582
50efceee
RD
27583SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27584 PyObject *obj;
27585 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27586 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
27587 return SWIG_Py_Void();
0085ce49
RD
27588}
27589
50efceee
RD
27590SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27591 return SWIG_Python_InitShadowInstance(args);
0085ce49
RD
27592}
27593
0085ce49
RD
27594SWIGINTERN int NullBitmap_set(PyObject *) {
27595 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
27596 return 1;
27597}
27598
27599
27600SWIGINTERN PyObject *NullBitmap_get(void) {
27601 PyObject *pyobj = 0;
27602
27603 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
27604 return pyobj;
27605}
27606
27607
27608SWIGINTERN int NullIcon_set(PyObject *) {
27609 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
27610 return 1;
27611}
27612
27613
27614SWIGINTERN PyObject *NullIcon_get(void) {
27615 PyObject *pyobj = 0;
27616
27617 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
27618 return pyobj;
27619}
27620
27621
27622SWIGINTERN int NullCursor_set(PyObject *) {
27623 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
27624 return 1;
27625}
27626
27627
27628SWIGINTERN PyObject *NullCursor_get(void) {
27629 PyObject *pyobj = 0;
27630
27631 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
27632 return pyobj;
27633}
27634
27635
27636SWIGINTERN int NullPen_set(PyObject *) {
27637 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
27638 return 1;
27639}
27640
27641
27642SWIGINTERN PyObject *NullPen_get(void) {
27643 PyObject *pyobj = 0;
27644
27645 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
27646 return pyobj;
27647}
27648
27649
27650SWIGINTERN int NullBrush_set(PyObject *) {
27651 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
27652 return 1;
27653}
27654
27655
27656SWIGINTERN PyObject *NullBrush_get(void) {
27657 PyObject *pyobj = 0;
27658
27659 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
27660 return pyobj;
27661}
27662
27663
27664SWIGINTERN int NullPalette_set(PyObject *) {
27665 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
27666 return 1;
27667}
27668
27669
27670SWIGINTERN PyObject *NullPalette_get(void) {
27671 PyObject *pyobj = 0;
27672
27673 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
27674 return pyobj;
27675}
27676
27677
27678SWIGINTERN int NullFont_set(PyObject *) {
27679 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
27680 return 1;
27681}
27682
27683
27684SWIGINTERN PyObject *NullFont_get(void) {
27685 PyObject *pyobj = 0;
27686
27687 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
27688 return pyobj;
27689}
27690
27691
27692SWIGINTERN int NullColour_set(PyObject *) {
27693 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
27694 return 1;
27695}
27696
27697
27698SWIGINTERN PyObject *NullColour_get(void) {
27699 PyObject *pyobj = 0;
27700
27701 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
27702 return pyobj;
27703}
27704
27705
50efceee 27706SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 27707 PyObject *resultobj = 0;
50efceee
RD
27708 wxGDIObjListBase *result = 0 ;
27709
27710 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
27711 {
27712 PyThreadState* __tstate = wxPyBeginAllowThreads();
27713 result = (wxGDIObjListBase *)new wxGDIObjListBase();
27714 wxPyEndAllowThreads(__tstate);
27715 if (PyErr_Occurred()) SWIG_fail;
27716 }
27717 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
27718 return resultobj;
27719fail:
27720 return NULL;
27721}
27722
27723
27724SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27725 PyObject *resultobj = 0;
27726 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
0085ce49
RD
27727 void *argp1 = 0 ;
27728 int res1 = 0 ;
50efceee 27729 PyObject *swig_obj[1] ;
0085ce49 27730
50efceee
RD
27731 if (!args) SWIG_fail;
27732 swig_obj[0] = args;
27733 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
0085ce49 27734 if (!SWIG_IsOK(res1)) {
50efceee 27735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
0085ce49 27736 }
50efceee 27737 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
0085ce49
RD
27738 {
27739 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee
RD
27740 delete arg1;
27741
0085ce49
RD
27742 wxPyEndAllowThreads(__tstate);
27743 if (PyErr_Occurred()) SWIG_fail;
27744 }
27745 resultobj = SWIG_Py_Void();
27746 return resultobj;
27747fail:
27748 return NULL;
27749}
27750
27751
50efceee
RD
27752SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27753 PyObject *obj;
27754 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27755 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
27756 return SWIG_Py_Void();
27757}
27758
27759SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27760 return SWIG_Python_InitShadowInstance(args);
27761}
27762
0085ce49
RD
27763SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27764 PyObject *resultobj = 0;
27765 wxPenList *arg1 = (wxPenList *) 0 ;
27766 wxColour *arg2 = 0 ;
27767 int arg3 ;
27768 int arg4 ;
27769 wxPen *result = 0 ;
27770 void *argp1 = 0 ;
27771 int res1 = 0 ;
27772 wxColour temp2 ;
27773 int val3 ;
27774 int ecode3 = 0 ;
27775 int val4 ;
27776 int ecode4 = 0 ;
27777 PyObject * obj0 = 0 ;
27778 PyObject * obj1 = 0 ;
27779 PyObject * obj2 = 0 ;
27780 PyObject * obj3 = 0 ;
27781 char * kwnames[] = {
27782 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
27783 };
27784
27785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
27787 if (!SWIG_IsOK(res1)) {
27788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
27789 }
27790 arg1 = reinterpret_cast< wxPenList * >(argp1);
27791 {
27792 arg2 = &temp2;
27793 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27794 }
27795 ecode3 = SWIG_AsVal_int(obj2, &val3);
27796 if (!SWIG_IsOK(ecode3)) {
27797 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
27798 }
27799 arg3 = static_cast< int >(val3);
27800 ecode4 = SWIG_AsVal_int(obj3, &val4);
27801 if (!SWIG_IsOK(ecode4)) {
27802 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
27803 }
27804 arg4 = static_cast< int >(val4);
27805 {
27806 PyThreadState* __tstate = wxPyBeginAllowThreads();
27807 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
27808 wxPyEndAllowThreads(__tstate);
27809 if (PyErr_Occurred()) SWIG_fail;
27810 }
27811 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
27812 return resultobj;
27813fail:
27814 return NULL;
27815}
27816
27817
50efceee 27818SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
27819 PyObject *resultobj = 0;
27820 wxPenList *arg1 = (wxPenList *) 0 ;
27821 wxPen *arg2 = (wxPen *) 0 ;
27822 void *argp1 = 0 ;
27823 int res1 = 0 ;
27824 void *argp2 = 0 ;
27825 int res2 = 0 ;
27826 PyObject * obj0 = 0 ;
27827 PyObject * obj1 = 0 ;
27828 char * kwnames[] = {
27829 (char *) "self",(char *) "pen", NULL
27830 };
27831
50efceee 27832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
0085ce49
RD
27833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
27834 if (!SWIG_IsOK(res1)) {
50efceee 27835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
0085ce49
RD
27836 }
27837 arg1 = reinterpret_cast< wxPenList * >(argp1);
27838 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
27839 if (!SWIG_IsOK(res2)) {
50efceee 27840 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
0085ce49
RD
27841 }
27842 arg2 = reinterpret_cast< wxPen * >(argp2);
27843 {
27844 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 27845 (arg1)->AddPen(arg2);
0085ce49
RD
27846 wxPyEndAllowThreads(__tstate);
27847 if (PyErr_Occurred()) SWIG_fail;
27848 }
27849 resultobj = SWIG_Py_Void();
27850 return resultobj;
27851fail:
27852 return NULL;
27853}
27854
27855
50efceee 27856SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
27857 PyObject *resultobj = 0;
27858 wxPenList *arg1 = (wxPenList *) 0 ;
50efceee 27859 wxPen *arg2 = (wxPen *) 0 ;
0085ce49
RD
27860 void *argp1 = 0 ;
27861 int res1 = 0 ;
50efceee
RD
27862 void *argp2 = 0 ;
27863 int res2 = 0 ;
27864 PyObject * obj0 = 0 ;
27865 PyObject * obj1 = 0 ;
27866 char * kwnames[] = {
27867 (char *) "self",(char *) "pen", NULL
27868 };
0085ce49 27869
50efceee
RD
27870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
27871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
0085ce49 27872 if (!SWIG_IsOK(res1)) {
50efceee 27873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
0085ce49
RD
27874 }
27875 arg1 = reinterpret_cast< wxPenList * >(argp1);
50efceee
RD
27876 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
27877 if (!SWIG_IsOK(res2)) {
27878 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
27879 }
27880 arg2 = reinterpret_cast< wxPen * >(argp2);
0085ce49
RD
27881 {
27882 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 27883 (arg1)->RemovePen(arg2);
0085ce49
RD
27884 wxPyEndAllowThreads(__tstate);
27885 if (PyErr_Occurred()) SWIG_fail;
27886 }
50efceee 27887 resultobj = SWIG_Py_Void();
0085ce49
RD
27888 return resultobj;
27889fail:
27890 return NULL;
27891}
27892
27893
27894SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27895 PyObject *obj;
27896 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27897 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
27898 return SWIG_Py_Void();
27899}
27900
50efceee
RD
27901SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27902 PyObject *resultobj = 0;
27903 wxBrushList *arg1 = (wxBrushList *) 0 ;
27904 wxColour *arg2 = 0 ;
27905 int arg3 = (int) wxSOLID ;
27906 wxBrush *result = 0 ;
27907 void *argp1 = 0 ;
27908 int res1 = 0 ;
27909 wxColour temp2 ;
27910 int val3 ;
27911 int ecode3 = 0 ;
27912 PyObject * obj0 = 0 ;
27913 PyObject * obj1 = 0 ;
27914 PyObject * obj2 = 0 ;
27915 char * kwnames[] = {
27916 (char *) "self",(char *) "colour",(char *) "style", NULL
27917 };
27918
27919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
27921 if (!SWIG_IsOK(res1)) {
27922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
27923 }
27924 arg1 = reinterpret_cast< wxBrushList * >(argp1);
27925 {
27926 arg2 = &temp2;
27927 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
27928 }
27929 if (obj2) {
27930 ecode3 = SWIG_AsVal_int(obj2, &val3);
27931 if (!SWIG_IsOK(ecode3)) {
27932 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
27933 }
27934 arg3 = static_cast< int >(val3);
27935 }
27936 {
27937 PyThreadState* __tstate = wxPyBeginAllowThreads();
27938 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
27939 wxPyEndAllowThreads(__tstate);
27940 if (PyErr_Occurred()) SWIG_fail;
27941 }
27942 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
27943 return resultobj;
27944fail:
27945 return NULL;
27946}
27947
27948
0085ce49
RD
27949SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27950 PyObject *resultobj = 0;
27951 wxBrushList *arg1 = (wxBrushList *) 0 ;
27952 wxBrush *arg2 = (wxBrush *) 0 ;
27953 void *argp1 = 0 ;
27954 int res1 = 0 ;
27955 void *argp2 = 0 ;
27956 int res2 = 0 ;
27957 PyObject * obj0 = 0 ;
27958 PyObject * obj1 = 0 ;
27959 char * kwnames[] = {
27960 (char *) "self",(char *) "brush", NULL
27961 };
27962
27963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
27964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
27965 if (!SWIG_IsOK(res1)) {
27966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
27967 }
27968 arg1 = reinterpret_cast< wxBrushList * >(argp1);
27969 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
27970 if (!SWIG_IsOK(res2)) {
27971 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
27972 }
27973 arg2 = reinterpret_cast< wxBrush * >(argp2);
27974 {
27975 PyThreadState* __tstate = wxPyBeginAllowThreads();
27976 (arg1)->AddBrush(arg2);
27977 wxPyEndAllowThreads(__tstate);
27978 if (PyErr_Occurred()) SWIG_fail;
27979 }
27980 resultobj = SWIG_Py_Void();
27981 return resultobj;
27982fail:
27983 return NULL;
27984}
27985
27986
50efceee 27987SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49
RD
27988 PyObject *resultobj = 0;
27989 wxBrushList *arg1 = (wxBrushList *) 0 ;
50efceee 27990 wxBrush *arg2 = (wxBrush *) 0 ;
0085ce49
RD
27991 void *argp1 = 0 ;
27992 int res1 = 0 ;
50efceee
RD
27993 void *argp2 = 0 ;
27994 int res2 = 0 ;
27995 PyObject * obj0 = 0 ;
27996 PyObject * obj1 = 0 ;
27997 char * kwnames[] = {
27998 (char *) "self",(char *) "brush", NULL
27999 };
28000
28001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
28002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
28003 if (!SWIG_IsOK(res1)) {
28004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
28005 }
28006 arg1 = reinterpret_cast< wxBrushList * >(argp1);
28007 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
28008 if (!SWIG_IsOK(res2)) {
28009 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
28010 }
28011 arg2 = reinterpret_cast< wxBrush * >(argp2);
28012 {
28013 PyThreadState* __tstate = wxPyBeginAllowThreads();
28014 (arg1)->RemoveBrush(arg2);
28015 wxPyEndAllowThreads(__tstate);
28016 if (PyErr_Occurred()) SWIG_fail;
28017 }
28018 resultobj = SWIG_Py_Void();
28019 return resultobj;
28020fail:
28021 return NULL;
28022}
28023
28024
28025SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28026 PyObject *obj;
28027 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28028 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
28029 return SWIG_Py_Void();
28030}
28031
28032SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28033 PyObject *resultobj = 0;
28034 wxFontList *arg1 = (wxFontList *) 0 ;
28035 int arg2 ;
28036 int arg3 ;
28037 int arg4 ;
28038 int arg5 ;
28039 bool arg6 = (bool) false ;
28040 wxString const &arg7_defvalue = wxPyEmptyString ;
28041 wxString *arg7 = (wxString *) &arg7_defvalue ;
28042 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
28043 wxFont *result = 0 ;
28044 void *argp1 = 0 ;
28045 int res1 = 0 ;
28046 int val2 ;
28047 int ecode2 = 0 ;
0085ce49
RD
28048 int val3 ;
28049 int ecode3 = 0 ;
50efceee
RD
28050 int val4 ;
28051 int ecode4 = 0 ;
28052 int val5 ;
28053 int ecode5 = 0 ;
28054 bool val6 ;
28055 int ecode6 = 0 ;
28056 bool temp7 = false ;
28057 int val8 ;
28058 int ecode8 = 0 ;
0085ce49
RD
28059 PyObject * obj0 = 0 ;
28060 PyObject * obj1 = 0 ;
28061 PyObject * obj2 = 0 ;
50efceee
RD
28062 PyObject * obj3 = 0 ;
28063 PyObject * obj4 = 0 ;
28064 PyObject * obj5 = 0 ;
28065 PyObject * obj6 = 0 ;
28066 PyObject * obj7 = 0 ;
0085ce49 28067 char * kwnames[] = {
50efceee 28068 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
0085ce49
RD
28069 };
28070
50efceee
RD
28071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
0085ce49 28073 if (!SWIG_IsOK(res1)) {
50efceee 28074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
0085ce49 28075 }
50efceee
RD
28076 arg1 = reinterpret_cast< wxFontList * >(argp1);
28077 ecode2 = SWIG_AsVal_int(obj1, &val2);
28078 if (!SWIG_IsOK(ecode2)) {
28079 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
28080 }
28081 arg2 = static_cast< int >(val2);
28082 ecode3 = SWIG_AsVal_int(obj2, &val3);
28083 if (!SWIG_IsOK(ecode3)) {
28084 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
28085 }
28086 arg3 = static_cast< int >(val3);
28087 ecode4 = SWIG_AsVal_int(obj3, &val4);
28088 if (!SWIG_IsOK(ecode4)) {
28089 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
28090 }
28091 arg4 = static_cast< int >(val4);
28092 ecode5 = SWIG_AsVal_int(obj4, &val5);
28093 if (!SWIG_IsOK(ecode5)) {
28094 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
28095 }
28096 arg5 = static_cast< int >(val5);
28097 if (obj5) {
28098 ecode6 = SWIG_AsVal_bool(obj5, &val6);
28099 if (!SWIG_IsOK(ecode6)) {
28100 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
28101 }
28102 arg6 = static_cast< bool >(val6);
0085ce49 28103 }
50efceee
RD
28104 if (obj6) {
28105 {
28106 arg7 = wxString_in_helper(obj6);
28107 if (arg7 == NULL) SWIG_fail;
28108 temp7 = true;
28109 }
28110 }
28111 if (obj7) {
28112 ecode8 = SWIG_AsVal_int(obj7, &val8);
28113 if (!SWIG_IsOK(ecode8)) {
28114 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
0085ce49 28115 }
50efceee 28116 arg8 = static_cast< wxFontEncoding >(val8);
0085ce49
RD
28117 }
28118 {
28119 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 28120 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
0085ce49
RD
28121 wxPyEndAllowThreads(__tstate);
28122 if (PyErr_Occurred()) SWIG_fail;
28123 }
50efceee
RD
28124 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
28125 {
28126 if (temp7)
28127 delete arg7;
28128 }
0085ce49
RD
28129 return resultobj;
28130fail:
50efceee
RD
28131 {
28132 if (temp7)
28133 delete arg7;
28134 }
0085ce49
RD
28135 return NULL;
28136}
28137
28138
50efceee 28139SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 28140 PyObject *resultobj = 0;
50efceee
RD
28141 wxFontList *arg1 = (wxFontList *) 0 ;
28142 wxFont *arg2 = (wxFont *) 0 ;
0085ce49
RD
28143 void *argp1 = 0 ;
28144 int res1 = 0 ;
28145 void *argp2 = 0 ;
28146 int res2 = 0 ;
28147 PyObject * obj0 = 0 ;
28148 PyObject * obj1 = 0 ;
28149 char * kwnames[] = {
50efceee 28150 (char *) "self",(char *) "font", NULL
0085ce49
RD
28151 };
28152
50efceee
RD
28153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
28154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
0085ce49 28155 if (!SWIG_IsOK(res1)) {
50efceee 28156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
0085ce49 28157 }
50efceee
RD
28158 arg1 = reinterpret_cast< wxFontList * >(argp1);
28159 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
0085ce49 28160 if (!SWIG_IsOK(res2)) {
50efceee 28161 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
0085ce49 28162 }
50efceee 28163 arg2 = reinterpret_cast< wxFont * >(argp2);
0085ce49
RD
28164 {
28165 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 28166 (arg1)->AddFont(arg2);
0085ce49
RD
28167 wxPyEndAllowThreads(__tstate);
28168 if (PyErr_Occurred()) SWIG_fail;
28169 }
28170 resultobj = SWIG_Py_Void();
28171 return resultobj;
28172fail:
28173 return NULL;
28174}
28175
28176
50efceee 28177SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0085ce49 28178 PyObject *resultobj = 0;
50efceee
RD
28179 wxFontList *arg1 = (wxFontList *) 0 ;
28180 wxFont *arg2 = (wxFont *) 0 ;
0085ce49
RD
28181 void *argp1 = 0 ;
28182 int res1 = 0 ;
50efceee
RD
28183 void *argp2 = 0 ;
28184 int res2 = 0 ;
28185 PyObject * obj0 = 0 ;
28186 PyObject * obj1 = 0 ;
28187 char * kwnames[] = {
28188 (char *) "self",(char *) "font", NULL
28189 };
0085ce49 28190
50efceee
RD
28191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
28192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
0085ce49 28193 if (!SWIG_IsOK(res1)) {
50efceee 28194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
0085ce49 28195 }
50efceee
RD
28196 arg1 = reinterpret_cast< wxFontList * >(argp1);
28197 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
28198 if (!SWIG_IsOK(res2)) {
28199 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
28200 }
28201 arg2 = reinterpret_cast< wxFont * >(argp2);
0085ce49
RD
28202 {
28203 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 28204 (arg1)->RemoveFont(arg2);
0085ce49
RD
28205 wxPyEndAllowThreads(__tstate);
28206 if (PyErr_Occurred()) SWIG_fail;
28207 }
50efceee 28208 resultobj = SWIG_Py_Void();
0085ce49
RD
28209 return resultobj;
28210fail:
28211 return NULL;
28212}
28213
28214
50efceee 28215SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49
RD
28216 PyObject *obj;
28217 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
50efceee 28218 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
0085ce49
RD
28219 return SWIG_Py_Void();
28220}
28221
28222SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28223 PyObject *resultobj = 0;
28224 wxColourDatabase *result = 0 ;
28225
28226 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
28227 {
28228 if (!wxPyCheckForApp()) SWIG_fail;
28229 PyThreadState* __tstate = wxPyBeginAllowThreads();
28230 result = (wxColourDatabase *)new wxColourDatabase();
28231 wxPyEndAllowThreads(__tstate);
28232 if (PyErr_Occurred()) SWIG_fail;
28233 }
28234 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
28235 return resultobj;
28236fail:
28237 return NULL;
28238}
28239
28240
28241SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28242 PyObject *resultobj = 0;
28243 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28244 void *argp1 = 0 ;
28245 int res1 = 0 ;
28246 PyObject *swig_obj[1] ;
28247
28248 if (!args) SWIG_fail;
28249 swig_obj[0] = args;
28250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
28251 if (!SWIG_IsOK(res1)) {
28252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
28253 }
28254 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28255 {
28256 PyThreadState* __tstate = wxPyBeginAllowThreads();
28257 delete arg1;
28258
28259 wxPyEndAllowThreads(__tstate);
28260 if (PyErr_Occurred()) SWIG_fail;
28261 }
28262 resultobj = SWIG_Py_Void();
28263 return resultobj;
28264fail:
28265 return NULL;
28266}
28267
28268
28269SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28270 PyObject *resultobj = 0;
28271 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28272 wxString *arg2 = 0 ;
28273 wxColour result;
28274 void *argp1 = 0 ;
28275 int res1 = 0 ;
28276 bool temp2 = false ;
28277 PyObject * obj0 = 0 ;
28278 PyObject * obj1 = 0 ;
28279 char * kwnames[] = {
28280 (char *) "self",(char *) "name", NULL
28281 };
28282
28283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
28284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28285 if (!SWIG_IsOK(res1)) {
28286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
28287 }
28288 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28289 {
28290 arg2 = wxString_in_helper(obj1);
28291 if (arg2 == NULL) SWIG_fail;
28292 temp2 = true;
28293 }
28294 {
28295 PyThreadState* __tstate = wxPyBeginAllowThreads();
28296 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
28297 wxPyEndAllowThreads(__tstate);
28298 if (PyErr_Occurred()) SWIG_fail;
28299 }
28300 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28301 {
28302 if (temp2)
28303 delete arg2;
28304 }
28305 return resultobj;
28306fail:
28307 {
28308 if (temp2)
28309 delete arg2;
28310 }
28311 return NULL;
28312}
28313
28314
28315SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28316 PyObject *resultobj = 0;
28317 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28318 wxColour *arg2 = 0 ;
28319 wxString result;
28320 void *argp1 = 0 ;
28321 int res1 = 0 ;
28322 wxColour temp2 ;
28323 PyObject * obj0 = 0 ;
28324 PyObject * obj1 = 0 ;
28325 char * kwnames[] = {
28326 (char *) "self",(char *) "colour", NULL
28327 };
28328
28329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
28330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28331 if (!SWIG_IsOK(res1)) {
28332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
28333 }
28334 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28335 {
28336 arg2 = &temp2;
28337 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28338 }
28339 {
28340 PyThreadState* __tstate = wxPyBeginAllowThreads();
28341 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
28342 wxPyEndAllowThreads(__tstate);
28343 if (PyErr_Occurred()) SWIG_fail;
28344 }
28345 {
28346#if wxUSE_UNICODE
28347 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28348#else
28349 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28350#endif
28351 }
28352 return resultobj;
28353fail:
28354 return NULL;
28355}
28356
28357
28358SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28359 PyObject *resultobj = 0;
28360 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28361 wxString *arg2 = 0 ;
28362 wxColour *arg3 = 0 ;
28363 void *argp1 = 0 ;
28364 int res1 = 0 ;
28365 bool temp2 = false ;
28366 wxColour temp3 ;
28367 PyObject * obj0 = 0 ;
28368 PyObject * obj1 = 0 ;
28369 PyObject * obj2 = 0 ;
28370 char * kwnames[] = {
28371 (char *) "self",(char *) "name",(char *) "colour", NULL
28372 };
28373
28374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28376 if (!SWIG_IsOK(res1)) {
28377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
28378 }
28379 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28380 {
28381 arg2 = wxString_in_helper(obj1);
28382 if (arg2 == NULL) SWIG_fail;
28383 temp2 = true;
28384 }
28385 {
28386 arg3 = &temp3;
28387 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28388 }
28389 {
28390 PyThreadState* __tstate = wxPyBeginAllowThreads();
28391 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
28392 wxPyEndAllowThreads(__tstate);
28393 if (PyErr_Occurred()) SWIG_fail;
28394 }
28395 resultobj = SWIG_Py_Void();
28396 {
28397 if (temp2)
28398 delete arg2;
28399 }
28400 return resultobj;
28401fail:
28402 {
28403 if (temp2)
28404 delete arg2;
28405 }
28406 return NULL;
28407}
28408
28409
28410SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28411 PyObject *resultobj = 0;
28412 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28413 wxString *arg2 = 0 ;
28414 int arg3 ;
28415 int arg4 ;
28416 int arg5 ;
28417 void *argp1 = 0 ;
28418 int res1 = 0 ;
28419 bool temp2 = false ;
28420 int val3 ;
28421 int ecode3 = 0 ;
28422 int val4 ;
28423 int ecode4 = 0 ;
50efceee
RD
28424 int val5 ;
28425 int ecode5 = 0 ;
0085ce49
RD
28426 PyObject * obj0 = 0 ;
28427 PyObject * obj1 = 0 ;
28428 PyObject * obj2 = 0 ;
28429 PyObject * obj3 = 0 ;
28430 PyObject * obj4 = 0 ;
0085ce49 28431 char * kwnames[] = {
50efceee 28432 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
0085ce49
RD
28433 };
28434
50efceee
RD
28435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
0085ce49 28437 if (!SWIG_IsOK(res1)) {
50efceee
RD
28438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
28439 }
28440 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28441 {
28442 arg2 = wxString_in_helper(obj1);
28443 if (arg2 == NULL) SWIG_fail;
28444 temp2 = true;
0085ce49 28445 }
0085ce49
RD
28446 ecode3 = SWIG_AsVal_int(obj2, &val3);
28447 if (!SWIG_IsOK(ecode3)) {
50efceee 28448 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
0085ce49
RD
28449 }
28450 arg3 = static_cast< int >(val3);
28451 ecode4 = SWIG_AsVal_int(obj3, &val4);
28452 if (!SWIG_IsOK(ecode4)) {
50efceee 28453 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
0085ce49
RD
28454 }
28455 arg4 = static_cast< int >(val4);
28456 ecode5 = SWIG_AsVal_int(obj4, &val5);
28457 if (!SWIG_IsOK(ecode5)) {
50efceee 28458 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
0085ce49
RD
28459 }
28460 arg5 = static_cast< int >(val5);
0085ce49
RD
28461 {
28462 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 28463 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
0085ce49
RD
28464 wxPyEndAllowThreads(__tstate);
28465 if (PyErr_Occurred()) SWIG_fail;
28466 }
50efceee 28467 resultobj = SWIG_Py_Void();
0085ce49 28468 {
50efceee
RD
28469 if (temp2)
28470 delete arg2;
0085ce49
RD
28471 }
28472 return resultobj;
28473fail:
28474 {
50efceee
RD
28475 if (temp2)
28476 delete arg2;
0085ce49
RD
28477 }
28478 return NULL;
28479}
28480
28481
50efceee
RD
28482SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28483 PyObject *obj;
28484 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28485 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
28486 return SWIG_Py_Void();
28487}
28488
28489SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28490 return SWIG_Python_InitShadowInstance(args);
28491}
28492
28493SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 28494 PyObject *resultobj = 0;
50efceee 28495 wxFontList *result = 0 ;
0085ce49 28496
50efceee 28497 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
0085ce49
RD
28498 {
28499 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 28500 result = (wxFontList *)_wxPyInitTheFontList();
0085ce49
RD
28501 wxPyEndAllowThreads(__tstate);
28502 if (PyErr_Occurred()) SWIG_fail;
28503 }
50efceee 28504 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
0085ce49
RD
28505 return resultobj;
28506fail:
28507 return NULL;
28508}
28509
28510
50efceee 28511SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
0085ce49 28512 PyObject *resultobj = 0;
50efceee 28513 wxPenList *result = 0 ;
0085ce49 28514
50efceee 28515 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
0085ce49
RD
28516 {
28517 PyThreadState* __tstate = wxPyBeginAllowThreads();
50efceee 28518 result = (wxPenList *)_wxPyInitThePenList();
0085ce49
RD
28519 wxPyEndAllowThreads(__tstate);
28520 if (PyErr_Occurred()) SWIG_fail;
28521 }
50efceee 28522 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
0085ce49
RD
28523 return resultobj;
28524fail:
28525 return NULL;
28526}
28527
28528
50efceee
RD
28529SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28530 PyObject *resultobj = 0;
28531 wxBrushList *result = 0 ;
0085ce49 28532
50efceee
RD
28533 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
28534 {
28535 PyThreadState* __tstate = wxPyBeginAllowThreads();
28536 result = (wxBrushList *)_wxPyInitTheBrushList();
28537 wxPyEndAllowThreads(__tstate);
28538 if (PyErr_Occurred()) SWIG_fail;
28539 }
28540 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
28541 return resultobj;
28542fail:
28543 return NULL;
0085ce49
RD
28544}
28545
28546
50efceee
RD
28547SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28548 PyObject *resultobj = 0;
28549 wxColourDatabase *result = 0 ;
0085ce49 28550
50efceee
RD
28551 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
28552 {
28553 PyThreadState* __tstate = wxPyBeginAllowThreads();
28554 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
28555 wxPyEndAllowThreads(__tstate);
28556 if (PyErr_Occurred()) SWIG_fail;
28557 }
28558 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28559 return resultobj;
28560fail:
28561 return NULL;
0085ce49
RD
28562}
28563
28564
28565SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28566 PyObject *resultobj = 0;
28567 wxEffects *result = 0 ;
28568
28569 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
28570 {
28571 PyThreadState* __tstate = wxPyBeginAllowThreads();
28572 result = (wxEffects *)new wxEffects();
28573 wxPyEndAllowThreads(__tstate);
28574 if (PyErr_Occurred()) SWIG_fail;
28575 }
28576 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
28577 return resultobj;
28578fail:
28579 return NULL;
28580}
28581
28582
28583SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28584 PyObject *resultobj = 0;
28585 wxEffects *arg1 = (wxEffects *) 0 ;
28586 wxColour result;
28587 void *argp1 = 0 ;
28588 int res1 = 0 ;
28589 PyObject *swig_obj[1] ;
28590
28591 if (!args) SWIG_fail;
28592 swig_obj[0] = args;
28593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28594 if (!SWIG_IsOK(res1)) {
28595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
28596 }
28597 arg1 = reinterpret_cast< wxEffects * >(argp1);
28598 {
28599 PyThreadState* __tstate = wxPyBeginAllowThreads();
28600 result = ((wxEffects const *)arg1)->GetHighlightColour();
28601 wxPyEndAllowThreads(__tstate);
28602 if (PyErr_Occurred()) SWIG_fail;
28603 }
28604 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28605 return resultobj;
28606fail:
28607 return NULL;
28608}
28609
28610
28611SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28612 PyObject *resultobj = 0;
28613 wxEffects *arg1 = (wxEffects *) 0 ;
28614 wxColour result;
28615 void *argp1 = 0 ;
28616 int res1 = 0 ;
28617 PyObject *swig_obj[1] ;
28618
28619 if (!args) SWIG_fail;
28620 swig_obj[0] = args;
28621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28622 if (!SWIG_IsOK(res1)) {
28623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
28624 }
28625 arg1 = reinterpret_cast< wxEffects * >(argp1);
28626 {
28627 PyThreadState* __tstate = wxPyBeginAllowThreads();
28628 result = ((wxEffects const *)arg1)->GetLightShadow();
28629 wxPyEndAllowThreads(__tstate);
28630 if (PyErr_Occurred()) SWIG_fail;
28631 }
28632 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28633 return resultobj;
28634fail:
28635 return NULL;
28636}
28637
28638
28639SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28640 PyObject *resultobj = 0;
28641 wxEffects *arg1 = (wxEffects *) 0 ;
28642 wxColour result;
28643 void *argp1 = 0 ;
28644 int res1 = 0 ;
28645 PyObject *swig_obj[1] ;
28646
28647 if (!args) SWIG_fail;
28648 swig_obj[0] = args;
28649 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28650 if (!SWIG_IsOK(res1)) {
28651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
28652 }
28653 arg1 = reinterpret_cast< wxEffects * >(argp1);
28654 {
28655 PyThreadState* __tstate = wxPyBeginAllowThreads();
28656 result = ((wxEffects const *)arg1)->GetFaceColour();
28657 wxPyEndAllowThreads(__tstate);
28658 if (PyErr_Occurred()) SWIG_fail;
28659 }
28660 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28661 return resultobj;
28662fail:
28663 return NULL;
28664}
28665
28666
28667SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28668 PyObject *resultobj = 0;
28669 wxEffects *arg1 = (wxEffects *) 0 ;
28670 wxColour result;
28671 void *argp1 = 0 ;
28672 int res1 = 0 ;
28673 PyObject *swig_obj[1] ;
28674
28675 if (!args) SWIG_fail;
28676 swig_obj[0] = args;
28677 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28678 if (!SWIG_IsOK(res1)) {
28679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
28680 }
28681 arg1 = reinterpret_cast< wxEffects * >(argp1);
28682 {
28683 PyThreadState* __tstate = wxPyBeginAllowThreads();
28684 result = ((wxEffects const *)arg1)->GetMediumShadow();
28685 wxPyEndAllowThreads(__tstate);
28686 if (PyErr_Occurred()) SWIG_fail;
28687 }
28688 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28689 return resultobj;
28690fail:
28691 return NULL;
28692}
28693
28694
28695SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28696 PyObject *resultobj = 0;
28697 wxEffects *arg1 = (wxEffects *) 0 ;
28698 wxColour result;
28699 void *argp1 = 0 ;
28700 int res1 = 0 ;
28701 PyObject *swig_obj[1] ;
28702
28703 if (!args) SWIG_fail;
28704 swig_obj[0] = args;
28705 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28706 if (!SWIG_IsOK(res1)) {
28707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
28708 }
28709 arg1 = reinterpret_cast< wxEffects * >(argp1);
28710 {
28711 PyThreadState* __tstate = wxPyBeginAllowThreads();
28712 result = ((wxEffects const *)arg1)->GetDarkShadow();
28713 wxPyEndAllowThreads(__tstate);
28714 if (PyErr_Occurred()) SWIG_fail;
28715 }
28716 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28717 return resultobj;
28718fail:
28719 return NULL;
28720}
28721
28722
28723SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28724 PyObject *resultobj = 0;
28725 wxEffects *arg1 = (wxEffects *) 0 ;
28726 wxColour *arg2 = 0 ;
28727 void *argp1 = 0 ;
28728 int res1 = 0 ;
28729 wxColour temp2 ;
28730 PyObject * obj0 = 0 ;
28731 PyObject * obj1 = 0 ;
28732 char * kwnames[] = {
28733 (char *) "self",(char *) "c", NULL
28734 };
28735
28736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
28737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28738 if (!SWIG_IsOK(res1)) {
28739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
28740 }
28741 arg1 = reinterpret_cast< wxEffects * >(argp1);
28742 {
28743 arg2 = &temp2;
28744 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28745 }
28746 {
28747 PyThreadState* __tstate = wxPyBeginAllowThreads();
28748 (arg1)->SetHighlightColour((wxColour const &)*arg2);
28749 wxPyEndAllowThreads(__tstate);
28750 if (PyErr_Occurred()) SWIG_fail;
28751 }
28752 resultobj = SWIG_Py_Void();
28753 return resultobj;
28754fail:
28755 return NULL;
28756}
28757
28758
28759SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28760 PyObject *resultobj = 0;
28761 wxEffects *arg1 = (wxEffects *) 0 ;
28762 wxColour *arg2 = 0 ;
28763 void *argp1 = 0 ;
28764 int res1 = 0 ;
28765 wxColour temp2 ;
28766 PyObject * obj0 = 0 ;
28767 PyObject * obj1 = 0 ;
28768 char * kwnames[] = {
28769 (char *) "self",(char *) "c", NULL
28770 };
28771
28772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
28773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28774 if (!SWIG_IsOK(res1)) {
28775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
28776 }
28777 arg1 = reinterpret_cast< wxEffects * >(argp1);
28778 {
28779 arg2 = &temp2;
28780 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28781 }
28782 {
28783 PyThreadState* __tstate = wxPyBeginAllowThreads();
28784 (arg1)->SetLightShadow((wxColour const &)*arg2);
28785 wxPyEndAllowThreads(__tstate);
28786 if (PyErr_Occurred()) SWIG_fail;
28787 }
28788 resultobj = SWIG_Py_Void();
28789 return resultobj;
28790fail:
28791 return NULL;
28792}
28793
28794
28795SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28796 PyObject *resultobj = 0;
28797 wxEffects *arg1 = (wxEffects *) 0 ;
28798 wxColour *arg2 = 0 ;
28799 void *argp1 = 0 ;
28800 int res1 = 0 ;
28801 wxColour temp2 ;
28802 PyObject * obj0 = 0 ;
28803 PyObject * obj1 = 0 ;
28804 char * kwnames[] = {
28805 (char *) "self",(char *) "c", NULL
28806 };
28807
28808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
28809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28810 if (!SWIG_IsOK(res1)) {
28811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
28812 }
28813 arg1 = reinterpret_cast< wxEffects * >(argp1);
28814 {
28815 arg2 = &temp2;
28816 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28817 }
28818 {
28819 PyThreadState* __tstate = wxPyBeginAllowThreads();
28820 (arg1)->SetFaceColour((wxColour const &)*arg2);
28821 wxPyEndAllowThreads(__tstate);
28822 if (PyErr_Occurred()) SWIG_fail;
28823 }
28824 resultobj = SWIG_Py_Void();
28825 return resultobj;
28826fail:
28827 return NULL;
28828}
28829
28830
28831SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28832 PyObject *resultobj = 0;
28833 wxEffects *arg1 = (wxEffects *) 0 ;
28834 wxColour *arg2 = 0 ;
28835 void *argp1 = 0 ;
28836 int res1 = 0 ;
28837 wxColour temp2 ;
28838 PyObject * obj0 = 0 ;
28839 PyObject * obj1 = 0 ;
28840 char * kwnames[] = {
28841 (char *) "self",(char *) "c", NULL
28842 };
28843
28844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
28845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28846 if (!SWIG_IsOK(res1)) {
28847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
28848 }
28849 arg1 = reinterpret_cast< wxEffects * >(argp1);
28850 {
28851 arg2 = &temp2;
28852 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28853 }
28854 {
28855 PyThreadState* __tstate = wxPyBeginAllowThreads();
28856 (arg1)->SetMediumShadow((wxColour const &)*arg2);
28857 wxPyEndAllowThreads(__tstate);
28858 if (PyErr_Occurred()) SWIG_fail;
28859 }
28860 resultobj = SWIG_Py_Void();
28861 return resultobj;
28862fail:
28863 return NULL;
28864}
28865
28866
28867SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28868 PyObject *resultobj = 0;
28869 wxEffects *arg1 = (wxEffects *) 0 ;
28870 wxColour *arg2 = 0 ;
28871 void *argp1 = 0 ;
28872 int res1 = 0 ;
28873 wxColour temp2 ;
28874 PyObject * obj0 = 0 ;
28875 PyObject * obj1 = 0 ;
28876 char * kwnames[] = {
28877 (char *) "self",(char *) "c", NULL
28878 };
28879
28880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
28881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28882 if (!SWIG_IsOK(res1)) {
28883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
28884 }
28885 arg1 = reinterpret_cast< wxEffects * >(argp1);
28886 {
28887 arg2 = &temp2;
28888 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28889 }
28890 {
28891 PyThreadState* __tstate = wxPyBeginAllowThreads();
28892 (arg1)->SetDarkShadow((wxColour const &)*arg2);
28893 wxPyEndAllowThreads(__tstate);
28894 if (PyErr_Occurred()) SWIG_fail;
28895 }
28896 resultobj = SWIG_Py_Void();
28897 return resultobj;
28898fail:
28899 return NULL;
28900}
28901
28902
28903SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28904 PyObject *resultobj = 0;
28905 wxEffects *arg1 = (wxEffects *) 0 ;
28906 wxColour *arg2 = 0 ;
28907 wxColour *arg3 = 0 ;
28908 wxColour *arg4 = 0 ;
28909 wxColour *arg5 = 0 ;
28910 wxColour *arg6 = 0 ;
28911 void *argp1 = 0 ;
28912 int res1 = 0 ;
28913 wxColour temp2 ;
28914 wxColour temp3 ;
28915 wxColour temp4 ;
28916 wxColour temp5 ;
28917 wxColour temp6 ;
28918 PyObject * obj0 = 0 ;
28919 PyObject * obj1 = 0 ;
28920 PyObject * obj2 = 0 ;
28921 PyObject * obj3 = 0 ;
28922 PyObject * obj4 = 0 ;
28923 PyObject * obj5 = 0 ;
28924 char * kwnames[] = {
28925 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
28926 };
28927
28928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
28929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28930 if (!SWIG_IsOK(res1)) {
28931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
28932 }
28933 arg1 = reinterpret_cast< wxEffects * >(argp1);
28934 {
28935 arg2 = &temp2;
28936 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28937 }
28938 {
28939 arg3 = &temp3;
28940 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28941 }
28942 {
28943 arg4 = &temp4;
28944 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
28945 }
28946 {
28947 arg5 = &temp5;
28948 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
28949 }
28950 {
28951 arg6 = &temp6;
28952 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
28953 }
28954 {
28955 PyThreadState* __tstate = wxPyBeginAllowThreads();
28956 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
28957 wxPyEndAllowThreads(__tstate);
28958 if (PyErr_Occurred()) SWIG_fail;
28959 }
28960 resultobj = SWIG_Py_Void();
28961 return resultobj;
28962fail:
28963 return NULL;
28964}
28965
28966
28967SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28968 PyObject *resultobj = 0;
28969 wxEffects *arg1 = (wxEffects *) 0 ;
28970 wxDC *arg2 = 0 ;
28971 wxRect *arg3 = 0 ;
28972 int arg4 = (int) 1 ;
28973 void *argp1 = 0 ;
28974 int res1 = 0 ;
28975 void *argp2 = 0 ;
28976 int res2 = 0 ;
28977 wxRect temp3 ;
28978 int val4 ;
28979 int ecode4 = 0 ;
28980 PyObject * obj0 = 0 ;
28981 PyObject * obj1 = 0 ;
28982 PyObject * obj2 = 0 ;
28983 PyObject * obj3 = 0 ;
28984 char * kwnames[] = {
28985 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
28986 };
28987
28988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28989 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
28990 if (!SWIG_IsOK(res1)) {
28991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
28992 }
28993 arg1 = reinterpret_cast< wxEffects * >(argp1);
28994 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
28995 if (!SWIG_IsOK(res2)) {
28996 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
28997 }
28998 if (!argp2) {
28999 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
29000 }
29001 arg2 = reinterpret_cast< wxDC * >(argp2);
29002 {
29003 arg3 = &temp3;
29004 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
29005 }
29006 if (obj3) {
29007 ecode4 = SWIG_AsVal_int(obj3, &val4);
29008 if (!SWIG_IsOK(ecode4)) {
29009 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
29010 }
29011 arg4 = static_cast< int >(val4);
29012 }
29013 {
29014 PyThreadState* __tstate = wxPyBeginAllowThreads();
29015 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
29016 wxPyEndAllowThreads(__tstate);
29017 if (PyErr_Occurred()) SWIG_fail;
29018 }
29019 resultobj = SWIG_Py_Void();
29020 return resultobj;
29021fail:
29022 return NULL;
29023}
29024
29025
29026SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29027 PyObject *resultobj = 0;
29028 wxEffects *arg1 = (wxEffects *) 0 ;
29029 wxRect *arg2 = 0 ;
29030 wxDC *arg3 = 0 ;
29031 wxBitmap *arg4 = 0 ;
29032 bool result;
29033 void *argp1 = 0 ;
29034 int res1 = 0 ;
29035 wxRect temp2 ;
29036 void *argp3 = 0 ;
29037 int res3 = 0 ;
29038 void *argp4 = 0 ;
29039 int res4 = 0 ;
29040 PyObject * obj0 = 0 ;
29041 PyObject * obj1 = 0 ;
29042 PyObject * obj2 = 0 ;
29043 PyObject * obj3 = 0 ;
29044 char * kwnames[] = {
29045 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
29046 };
29047
29048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29050 if (!SWIG_IsOK(res1)) {
29051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
29052 }
29053 arg1 = reinterpret_cast< wxEffects * >(argp1);
29054 {
29055 arg2 = &temp2;
29056 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
29057 }
29058 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
29059 if (!SWIG_IsOK(res3)) {
29060 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
29061 }
29062 if (!argp3) {
29063 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
29064 }
29065 arg3 = reinterpret_cast< wxDC * >(argp3);
29066 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
29067 if (!SWIG_IsOK(res4)) {
29068 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
29069 }
29070 if (!argp4) {
29071 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
29072 }
29073 arg4 = reinterpret_cast< wxBitmap * >(argp4);
29074 {
29075 PyThreadState* __tstate = wxPyBeginAllowThreads();
29076 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
29077 wxPyEndAllowThreads(__tstate);
29078 if (PyErr_Occurred()) SWIG_fail;
29079 }
29080 {
29081 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29082 }
29083 return resultobj;
29084fail:
29085 return NULL;
29086}
29087
29088
29089SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29090 PyObject *obj;
29091 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29092 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
29093 return SWIG_Py_Void();
29094}
29095
29096SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29097 return SWIG_Python_InitShadowInstance(args);
29098}
29099
29100SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29101 PyObject *resultobj = 0;
29102 int arg1 ;
29103 int arg2 ;
29104 bool arg3 ;
29105 wxSplitterRenderParams *result = 0 ;
29106 int val1 ;
29107 int ecode1 = 0 ;
29108 int val2 ;
29109 int ecode2 = 0 ;
29110 bool val3 ;
29111 int ecode3 = 0 ;
29112 PyObject * obj0 = 0 ;
29113 PyObject * obj1 = 0 ;
29114 PyObject * obj2 = 0 ;
29115 char * kwnames[] = {
29116 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
29117 };
29118
29119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29120 ecode1 = SWIG_AsVal_int(obj0, &val1);
29121 if (!SWIG_IsOK(ecode1)) {
29122 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
29123 }
29124 arg1 = static_cast< int >(val1);
29125 ecode2 = SWIG_AsVal_int(obj1, &val2);
29126 if (!SWIG_IsOK(ecode2)) {
29127 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
29128 }
29129 arg2 = static_cast< int >(val2);
29130 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29131 if (!SWIG_IsOK(ecode3)) {
29132 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
29133 }
29134 arg3 = static_cast< bool >(val3);
29135 {
29136 PyThreadState* __tstate = wxPyBeginAllowThreads();
29137 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
29138 wxPyEndAllowThreads(__tstate);
29139 if (PyErr_Occurred()) SWIG_fail;
29140 }
29141 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
29142 return resultobj;
29143fail:
29144 return NULL;
29145}
29146
29147
29148SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29149 PyObject *resultobj = 0;
29150 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29151 void *argp1 = 0 ;
29152 int res1 = 0 ;
29153 PyObject *swig_obj[1] ;
29154
29155 if (!args) SWIG_fail;
29156 swig_obj[0] = args;
29157 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
29158 if (!SWIG_IsOK(res1)) {
29159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29160 }
29161 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29162 {
29163 PyThreadState* __tstate = wxPyBeginAllowThreads();
29164 delete arg1;
29165
29166 wxPyEndAllowThreads(__tstate);
29167 if (PyErr_Occurred()) SWIG_fail;
29168 }
29169 resultobj = SWIG_Py_Void();
29170 return resultobj;
29171fail:
29172 return NULL;
29173}
29174
29175
29176SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29177 PyObject *resultobj = 0;
29178 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29179 int result;
29180 void *argp1 = 0 ;
29181 int res1 = 0 ;
29182 PyObject *swig_obj[1] ;
29183
29184 if (!args) SWIG_fail;
29185 swig_obj[0] = args;
29186 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
29187 if (!SWIG_IsOK(res1)) {
29188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29189 }
29190 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29191 result = (int)(int) ((arg1)->widthSash);
29192 resultobj = SWIG_From_int(static_cast< int >(result));
29193 return resultobj;
29194fail:
29195 return NULL;
29196}
29197
29198
29199SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29200 PyObject *resultobj = 0;
29201 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29202 int result;
29203 void *argp1 = 0 ;
29204 int res1 = 0 ;
29205 PyObject *swig_obj[1] ;
29206
29207 if (!args) SWIG_fail;
29208 swig_obj[0] = args;
29209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
29210 if (!SWIG_IsOK(res1)) {
29211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29212 }
29213 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29214 result = (int)(int) ((arg1)->border);
29215 resultobj = SWIG_From_int(static_cast< int >(result));
29216 return resultobj;
29217fail:
29218 return NULL;
29219}
29220
29221
29222SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29223 PyObject *resultobj = 0;
29224 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29225 bool result;
29226 void *argp1 = 0 ;
29227 int res1 = 0 ;
29228 PyObject *swig_obj[1] ;
29229
29230 if (!args) SWIG_fail;
29231 swig_obj[0] = args;
29232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
29233 if (!SWIG_IsOK(res1)) {
29234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29235 }
29236 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29237 result = (bool)(bool) ((arg1)->isHotSensitive);
29238 resultobj = SWIG_From_bool(static_cast< bool >(result));
29239 return resultobj;
29240fail:
29241 return NULL;
29242}
29243
29244
29245SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29246 PyObject *obj;
29247 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29248 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
29249 return SWIG_Py_Void();
29250}
29251
29252SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29253 return SWIG_Python_InitShadowInstance(args);
29254}
29255
33d6fd3b
RD
29256SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29257 PyObject *resultobj = 0;
29258 wxHeaderButtonParams *result = 0 ;
29259
29260 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
29261 {
29262 PyThreadState* __tstate = wxPyBeginAllowThreads();
29263 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
29264 wxPyEndAllowThreads(__tstate);
29265 if (PyErr_Occurred()) SWIG_fail;
29266 }
29267 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
29268 return resultobj;
29269fail:
29270 return NULL;
29271}
29272
29273
29274SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29275 PyObject *resultobj = 0;
29276 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29277 void *argp1 = 0 ;
29278 int res1 = 0 ;
29279 PyObject *swig_obj[1] ;
29280
29281 if (!args) SWIG_fail;
29282 swig_obj[0] = args;
29283 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
29284 if (!SWIG_IsOK(res1)) {
29285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29286 }
29287 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29288 {
29289 PyThreadState* __tstate = wxPyBeginAllowThreads();
29290 delete arg1;
29291
29292 wxPyEndAllowThreads(__tstate);
29293 if (PyErr_Occurred()) SWIG_fail;
29294 }
29295 resultobj = SWIG_Py_Void();
29296 return resultobj;
29297fail:
29298 return NULL;
29299}
29300
29301
29302SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29303 PyObject *resultobj = 0;
29304 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29305 wxColour *arg2 = (wxColour *) 0 ;
29306 void *argp1 = 0 ;
29307 int res1 = 0 ;
29308 wxColour temp2 ;
29309 PyObject *swig_obj[2] ;
29310
29311 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
29312 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29313 if (!SWIG_IsOK(res1)) {
29314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29315 }
29316 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29317 {
29318 arg2 = &temp2;
29319 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
29320 }
29321 if (arg1) (arg1)->m_arrowColour = *arg2;
29322
29323 resultobj = SWIG_Py_Void();
29324 return resultobj;
29325fail:
29326 return NULL;
29327}
29328
29329
29330SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29331 PyObject *resultobj = 0;
29332 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29333 wxColour *result = 0 ;
29334 void *argp1 = 0 ;
29335 int res1 = 0 ;
29336 PyObject *swig_obj[1] ;
29337
29338 if (!args) SWIG_fail;
29339 swig_obj[0] = args;
29340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29341 if (!SWIG_IsOK(res1)) {
29342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29343 }
29344 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29345 result = (wxColour *)& ((arg1)->m_arrowColour);
29346 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
29347 return resultobj;
29348fail:
29349 return NULL;
29350}
29351
29352
29353SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29354 PyObject *resultobj = 0;
29355 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29356 wxColour *arg2 = (wxColour *) 0 ;
29357 void *argp1 = 0 ;
29358 int res1 = 0 ;
29359 wxColour temp2 ;
29360 PyObject *swig_obj[2] ;
29361
29362 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
29363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29364 if (!SWIG_IsOK(res1)) {
29365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29366 }
29367 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29368 {
29369 arg2 = &temp2;
29370 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
29371 }
29372 if (arg1) (arg1)->m_selectionColour = *arg2;
29373
29374 resultobj = SWIG_Py_Void();
29375 return resultobj;
29376fail:
29377 return NULL;
29378}
29379
29380
29381SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29382 PyObject *resultobj = 0;
29383 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29384 wxColour *result = 0 ;
29385 void *argp1 = 0 ;
29386 int res1 = 0 ;
29387 PyObject *swig_obj[1] ;
29388
29389 if (!args) SWIG_fail;
29390 swig_obj[0] = args;
29391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29392 if (!SWIG_IsOK(res1)) {
29393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29394 }
29395 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29396 result = (wxColour *)& ((arg1)->m_selectionColour);
29397 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
29398 return resultobj;
29399fail:
29400 return NULL;
29401}
29402
29403
29404SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29405 PyObject *resultobj = 0;
29406 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29407 wxString *arg2 = (wxString *) 0 ;
29408 void *argp1 = 0 ;
29409 int res1 = 0 ;
29410 bool temp2 = false ;
29411 PyObject *swig_obj[2] ;
29412
29413 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
29414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29415 if (!SWIG_IsOK(res1)) {
29416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29417 }
29418 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29419 {
29420 arg2 = wxString_in_helper(swig_obj[1]);
29421 if (arg2 == NULL) SWIG_fail;
29422 temp2 = true;
29423 }
29424 if (arg1) (arg1)->m_labelText = *arg2;
29425
29426 resultobj = SWIG_Py_Void();
29427 {
29428 if (temp2)
29429 delete arg2;
29430 }
29431 return resultobj;
29432fail:
29433 {
29434 if (temp2)
29435 delete arg2;
29436 }
29437 return NULL;
29438}
29439
29440
29441SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29442 PyObject *resultobj = 0;
29443 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29444 wxString *result = 0 ;
29445 void *argp1 = 0 ;
29446 int res1 = 0 ;
29447 PyObject *swig_obj[1] ;
29448
29449 if (!args) SWIG_fail;
29450 swig_obj[0] = args;
29451 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29452 if (!SWIG_IsOK(res1)) {
29453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29454 }
29455 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29456 result = (wxString *)& ((arg1)->m_labelText);
29457 {
29458#if wxUSE_UNICODE
29459 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
29460#else
29461 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
29462#endif
29463 }
29464 return resultobj;
29465fail:
29466 return NULL;
29467}
29468
29469
29470SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29471 PyObject *resultobj = 0;
29472 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29473 wxFont *arg2 = (wxFont *) 0 ;
29474 void *argp1 = 0 ;
29475 int res1 = 0 ;
29476 void *argp2 = 0 ;
29477 int res2 = 0 ;
29478 PyObject *swig_obj[2] ;
29479
29480 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
29481 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29482 if (!SWIG_IsOK(res1)) {
29483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29484 }
29485 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29486 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
29487 if (!SWIG_IsOK(res2)) {
29488 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
29489 }
29490 arg2 = reinterpret_cast< wxFont * >(argp2);
29491 if (arg1) (arg1)->m_labelFont = *arg2;
29492
29493 resultobj = SWIG_Py_Void();
29494 return resultobj;
29495fail:
29496 return NULL;
29497}
29498
29499
29500SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29501 PyObject *resultobj = 0;
29502 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29503 wxFont *result = 0 ;
29504 void *argp1 = 0 ;
29505 int res1 = 0 ;
29506 PyObject *swig_obj[1] ;
29507
29508 if (!args) SWIG_fail;
29509 swig_obj[0] = args;
29510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29511 if (!SWIG_IsOK(res1)) {
29512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29513 }
29514 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29515 result = (wxFont *)& ((arg1)->m_labelFont);
29516 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
29517 return resultobj;
29518fail:
29519 return NULL;
29520}
29521
29522
29523SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29524 PyObject *resultobj = 0;
29525 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29526 wxColour *arg2 = (wxColour *) 0 ;
29527 void *argp1 = 0 ;
29528 int res1 = 0 ;
29529 wxColour temp2 ;
29530 PyObject *swig_obj[2] ;
29531
29532 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
29533 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29534 if (!SWIG_IsOK(res1)) {
29535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29536 }
29537 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29538 {
29539 arg2 = &temp2;
29540 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
29541 }
29542 if (arg1) (arg1)->m_labelColour = *arg2;
29543
29544 resultobj = SWIG_Py_Void();
29545 return resultobj;
29546fail:
29547 return NULL;
29548}
29549
29550
29551SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29552 PyObject *resultobj = 0;
29553 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29554 wxColour *result = 0 ;
29555 void *argp1 = 0 ;
29556 int res1 = 0 ;
29557 PyObject *swig_obj[1] ;
29558
29559 if (!args) SWIG_fail;
29560 swig_obj[0] = args;
29561 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29562 if (!SWIG_IsOK(res1)) {
29563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29564 }
29565 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29566 result = (wxColour *)& ((arg1)->m_labelColour);
29567 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
29568 return resultobj;
29569fail:
29570 return NULL;
29571}
29572
29573
29574SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29575 PyObject *resultobj = 0;
29576 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29577 wxBitmap *arg2 = (wxBitmap *) 0 ;
29578 void *argp1 = 0 ;
29579 int res1 = 0 ;
29580 void *argp2 = 0 ;
29581 int res2 = 0 ;
29582 PyObject *swig_obj[2] ;
29583
29584 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
29585 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29586 if (!SWIG_IsOK(res1)) {
29587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29588 }
29589 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29590 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
29591 if (!SWIG_IsOK(res2)) {
29592 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
29593 }
29594 arg2 = reinterpret_cast< wxBitmap * >(argp2);
29595 if (arg1) (arg1)->m_labelBitmap = *arg2;
29596
29597 resultobj = SWIG_Py_Void();
29598 return resultobj;
29599fail:
29600 return NULL;
29601}
29602
29603
29604SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29605 PyObject *resultobj = 0;
29606 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29607 wxBitmap *result = 0 ;
29608 void *argp1 = 0 ;
29609 int res1 = 0 ;
29610 PyObject *swig_obj[1] ;
29611
29612 if (!args) SWIG_fail;
29613 swig_obj[0] = args;
29614 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29615 if (!SWIG_IsOK(res1)) {
29616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29617 }
29618 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29619 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
29620 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
29621 return resultobj;
29622fail:
29623 return NULL;
29624}
29625
29626
29627SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29628 PyObject *resultobj = 0;
29629 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29630 int arg2 ;
29631 void *argp1 = 0 ;
29632 int res1 = 0 ;
29633 int val2 ;
29634 int ecode2 = 0 ;
29635 PyObject *swig_obj[2] ;
29636
29637 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
29638 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29639 if (!SWIG_IsOK(res1)) {
29640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29641 }
29642 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29643 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
29644 if (!SWIG_IsOK(ecode2)) {
29645 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
29646 }
29647 arg2 = static_cast< int >(val2);
29648 if (arg1) (arg1)->m_labelAlignment = arg2;
29649
29650 resultobj = SWIG_Py_Void();
29651 return resultobj;
29652fail:
29653 return NULL;
29654}
29655
29656
29657SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29658 PyObject *resultobj = 0;
29659 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29660 int result;
29661 void *argp1 = 0 ;
29662 int res1 = 0 ;
29663 PyObject *swig_obj[1] ;
29664
29665 if (!args) SWIG_fail;
29666 swig_obj[0] = args;
29667 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29668 if (!SWIG_IsOK(res1)) {
29669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29670 }
29671 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29672 result = (int) ((arg1)->m_labelAlignment);
29673 resultobj = SWIG_From_int(static_cast< int >(result));
29674 return resultobj;
29675fail:
29676 return NULL;
29677}
29678
29679
29680SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29681 PyObject *obj;
29682 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29683 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
29684 return SWIG_Py_Void();
29685}
29686
29687SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29688 return SWIG_Python_InitShadowInstance(args);
29689}
29690
0085ce49
RD
29691SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29692 PyObject *resultobj = 0;
29693 int arg1 ;
29694 int arg2 ;
29695 wxRendererVersion *result = 0 ;
29696 int val1 ;
29697 int ecode1 = 0 ;
29698 int val2 ;
29699 int ecode2 = 0 ;
29700 PyObject * obj0 = 0 ;
29701 PyObject * obj1 = 0 ;
29702 char * kwnames[] = {
29703 (char *) "version_",(char *) "age_", NULL
29704 };
29705
29706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
29707 ecode1 = SWIG_AsVal_int(obj0, &val1);
29708 if (!SWIG_IsOK(ecode1)) {
29709 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
29710 }
29711 arg1 = static_cast< int >(val1);
29712 ecode2 = SWIG_AsVal_int(obj1, &val2);
29713 if (!SWIG_IsOK(ecode2)) {
29714 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
29715 }
29716 arg2 = static_cast< int >(val2);
29717 {
29718 PyThreadState* __tstate = wxPyBeginAllowThreads();
29719 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
29720 wxPyEndAllowThreads(__tstate);
29721 if (PyErr_Occurred()) SWIG_fail;
29722 }
29723 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
29724 return resultobj;
29725fail:
29726 return NULL;
29727}
29728
29729
29730SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29731 PyObject *resultobj = 0;
29732 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
29733 void *argp1 = 0 ;
29734 int res1 = 0 ;
29735 PyObject *swig_obj[1] ;
29736
29737 if (!args) SWIG_fail;
29738 swig_obj[0] = args;
29739 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
29740 if (!SWIG_IsOK(res1)) {
29741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
29742 }
29743 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
29744 {
29745 PyThreadState* __tstate = wxPyBeginAllowThreads();
29746 delete arg1;
29747
29748 wxPyEndAllowThreads(__tstate);
29749 if (PyErr_Occurred()) SWIG_fail;
29750 }
29751 resultobj = SWIG_Py_Void();
29752 return resultobj;
29753fail:
29754 return NULL;
29755}
29756
29757
29758SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29759 PyObject *resultobj = 0;
29760 wxRendererVersion *arg1 = 0 ;
29761 bool result;
29762 void *argp1 = 0 ;
29763 int res1 = 0 ;
29764 PyObject * obj0 = 0 ;
29765 char * kwnames[] = {
29766 (char *) "ver", NULL
29767 };
29768
29769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
29770 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
29771 if (!SWIG_IsOK(res1)) {
29772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
29773 }
29774 if (!argp1) {
29775 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
29776 }
29777 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
29778 {
29779 PyThreadState* __tstate = wxPyBeginAllowThreads();
29780 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
29781 wxPyEndAllowThreads(__tstate);
29782 if (PyErr_Occurred()) SWIG_fail;
29783 }
29784 {
29785 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29786 }
29787 return resultobj;
29788fail:
29789 return NULL;
29790}
29791
29792
29793SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29794 PyObject *resultobj = 0;
29795 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
29796 int result;
29797 void *argp1 = 0 ;
29798 int res1 = 0 ;
29799 PyObject *swig_obj[1] ;
29800
29801 if (!args) SWIG_fail;
29802 swig_obj[0] = args;
29803 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
29804 if (!SWIG_IsOK(res1)) {
29805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
29806 }
29807 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
29808 result = (int)(int) ((arg1)->version);
29809 resultobj = SWIG_From_int(static_cast< int >(result));
29810 return resultobj;
29811fail:
29812 return NULL;
29813}
29814
29815
29816SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29817 PyObject *resultobj = 0;
29818 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
29819 int result;
29820 void *argp1 = 0 ;
29821 int res1 = 0 ;
29822 PyObject *swig_obj[1] ;
29823
29824 if (!args) SWIG_fail;
29825 swig_obj[0] = args;
29826 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
29827 if (!SWIG_IsOK(res1)) {
29828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
29829 }
29830 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
29831 result = (int)(int) ((arg1)->age);
29832 resultobj = SWIG_From_int(static_cast< int >(result));
29833 return resultobj;
29834fail:
29835 return NULL;
29836}
29837
29838
29839SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29840 PyObject *obj;
29841 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29842 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
29843 return SWIG_Py_Void();
29844}
29845
29846SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29847 return SWIG_Python_InitShadowInstance(args);
29848}
29849
29850SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29851 PyObject *resultobj = 0;
29852 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
29853 wxWindow *arg2 = (wxWindow *) 0 ;
29854 wxDC *arg3 = 0 ;
29855 wxRect *arg4 = 0 ;
29856 int arg5 = (int) 0 ;
33d6fd3b
RD
29857 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
29858 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
0085ce49
RD
29859 void *argp1 = 0 ;
29860 int res1 = 0 ;
29861 void *argp2 = 0 ;
29862 int res2 = 0 ;
29863 void *argp3 = 0 ;
29864 int res3 = 0 ;
29865 wxRect temp4 ;
29866 int val5 ;
29867 int ecode5 = 0 ;
33d6fd3b
RD
29868 int val6 ;
29869 int ecode6 = 0 ;
29870 void *argp7 = 0 ;
29871 int res7 = 0 ;
0085ce49
RD
29872 PyObject * obj0 = 0 ;
29873 PyObject * obj1 = 0 ;
29874 PyObject * obj2 = 0 ;
29875 PyObject * obj3 = 0 ;
29876 PyObject * obj4 = 0 ;
33d6fd3b
RD
29877 PyObject * obj5 = 0 ;
29878 PyObject * obj6 = 0 ;
0085ce49 29879 char * kwnames[] = {
33d6fd3b 29880 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
0085ce49
RD
29881 };
29882
33d6fd3b 29883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
0085ce49
RD
29884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
29885 if (!SWIG_IsOK(res1)) {
29886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
29887 }
29888 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
29889 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
29890 if (!SWIG_IsOK(res2)) {
29891 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
29892 }
29893 arg2 = reinterpret_cast< wxWindow * >(argp2);
29894 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
29895 if (!SWIG_IsOK(res3)) {
29896 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
29897 }
29898 if (!argp3) {
29899 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
29900 }
29901 arg3 = reinterpret_cast< wxDC * >(argp3);
29902 {
29903 arg4 = &temp4;
29904 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
29905 }
29906 if (obj4) {
29907 ecode5 = SWIG_AsVal_int(obj4, &val5);
29908 if (!SWIG_IsOK(ecode5)) {
29909 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
29910 }
29911 arg5 = static_cast< int >(val5);
29912 }
33d6fd3b
RD
29913 if (obj5) {
29914 ecode6 = SWIG_AsVal_int(obj5, &val6);
29915 if (!SWIG_IsOK(ecode6)) {
29916 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
29917 }
29918 arg6 = static_cast< wxHeaderSortIconType >(val6);
29919 }
29920 if (obj6) {
29921 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29922 if (!SWIG_IsOK(res7)) {
29923 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
29924 }
29925 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
29926 }
29927 {
29928 PyThreadState* __tstate = wxPyBeginAllowThreads();
29929 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
29930 wxPyEndAllowThreads(__tstate);
29931 if (PyErr_Occurred()) SWIG_fail;
29932 }
29933 resultobj = SWIG_Py_Void();
29934 return resultobj;
29935fail:
29936 return NULL;
29937}
29938
29939
29940SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29941 PyObject *resultobj = 0;
29942 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
29943 wxWindow *arg2 = (wxWindow *) 0 ;
29944 wxDC *arg3 = 0 ;
29945 wxRect *arg4 = 0 ;
29946 int arg5 = (int) 0 ;
29947 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
29948 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
29949 void *argp1 = 0 ;
29950 int res1 = 0 ;
29951 void *argp2 = 0 ;
29952 int res2 = 0 ;
29953 void *argp3 = 0 ;
29954 int res3 = 0 ;
29955 wxRect temp4 ;
29956 int val5 ;
29957 int ecode5 = 0 ;
29958 int val6 ;
29959 int ecode6 = 0 ;
29960 void *argp7 = 0 ;
29961 int res7 = 0 ;
29962 PyObject * obj0 = 0 ;
29963 PyObject * obj1 = 0 ;
29964 PyObject * obj2 = 0 ;
29965 PyObject * obj3 = 0 ;
29966 PyObject * obj4 = 0 ;
29967 PyObject * obj5 = 0 ;
29968 PyObject * obj6 = 0 ;
29969 char * kwnames[] = {
29970 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
29971 };
29972
29973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
29974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
29975 if (!SWIG_IsOK(res1)) {
29976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
29977 }
29978 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
29979 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
29980 if (!SWIG_IsOK(res2)) {
29981 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
29982 }
29983 arg2 = reinterpret_cast< wxWindow * >(argp2);
29984 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
29985 if (!SWIG_IsOK(res3)) {
29986 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
29987 }
29988 if (!argp3) {
29989 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
29990 }
29991 arg3 = reinterpret_cast< wxDC * >(argp3);
29992 {
29993 arg4 = &temp4;
29994 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
29995 }
29996 if (obj4) {
29997 ecode5 = SWIG_AsVal_int(obj4, &val5);
29998 if (!SWIG_IsOK(ecode5)) {
29999 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
30000 }
30001 arg5 = static_cast< int >(val5);
30002 }
30003 if (obj5) {
30004 ecode6 = SWIG_AsVal_int(obj5, &val6);
30005 if (!SWIG_IsOK(ecode6)) {
30006 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
30007 }
30008 arg6 = static_cast< wxHeaderSortIconType >(val6);
30009 }
30010 if (obj6) {
30011 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30012 if (!SWIG_IsOK(res7)) {
30013 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
30014 }
30015 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
30016 }
0085ce49
RD
30017 {
30018 PyThreadState* __tstate = wxPyBeginAllowThreads();
33d6fd3b 30019 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
0085ce49
RD
30020 wxPyEndAllowThreads(__tstate);
30021 if (PyErr_Occurred()) SWIG_fail;
30022 }
30023 resultobj = SWIG_Py_Void();
30024 return resultobj;
30025fail:
30026 return NULL;
30027}
30028
30029
33d6fd3b
RD
30030SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30031 PyObject *resultobj = 0;
30032 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30033 wxWindow *arg2 = (wxWindow *) 0 ;
30034 int result;
30035 void *argp1 = 0 ;
30036 int res1 = 0 ;
30037 void *argp2 = 0 ;
30038 int res2 = 0 ;
30039 PyObject * obj0 = 0 ;
30040 PyObject * obj1 = 0 ;
30041 char * kwnames[] = {
30042 (char *) "self",(char *) "win", NULL
30043 };
30044
30045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
30046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30047 if (!SWIG_IsOK(res1)) {
30048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30049 }
30050 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30051 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30052 if (!SWIG_IsOK(res2)) {
30053 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
30054 }
30055 arg2 = reinterpret_cast< wxWindow * >(argp2);
30056 {
30057 PyThreadState* __tstate = wxPyBeginAllowThreads();
30058 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
30059 wxPyEndAllowThreads(__tstate);
30060 if (PyErr_Occurred()) SWIG_fail;
30061 }
30062 resultobj = SWIG_From_int(static_cast< int >(result));
30063 return resultobj;
30064fail:
30065 return NULL;
30066}
30067
30068
0085ce49
RD
30069SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30070 PyObject *resultobj = 0;
30071 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30072 wxWindow *arg2 = (wxWindow *) 0 ;
30073 wxDC *arg3 = 0 ;
30074 wxRect *arg4 = 0 ;
30075 int arg5 = (int) 0 ;
30076 void *argp1 = 0 ;
30077 int res1 = 0 ;
30078 void *argp2 = 0 ;
30079 int res2 = 0 ;
30080 void *argp3 = 0 ;
30081 int res3 = 0 ;
30082 wxRect temp4 ;
30083 int val5 ;
30084 int ecode5 = 0 ;
30085 PyObject * obj0 = 0 ;
30086 PyObject * obj1 = 0 ;
30087 PyObject * obj2 = 0 ;
30088 PyObject * obj3 = 0 ;
30089 PyObject * obj4 = 0 ;
30090 char * kwnames[] = {
30091 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30092 };
30093
30094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30096 if (!SWIG_IsOK(res1)) {
30097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30098 }
30099 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30100 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30101 if (!SWIG_IsOK(res2)) {
30102 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30103 }
30104 arg2 = reinterpret_cast< wxWindow * >(argp2);
30105 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30106 if (!SWIG_IsOK(res3)) {
30107 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
30108 }
30109 if (!argp3) {
30110 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
30111 }
30112 arg3 = reinterpret_cast< wxDC * >(argp3);
30113 {
30114 arg4 = &temp4;
30115 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30116 }
30117 if (obj4) {
30118 ecode5 = SWIG_AsVal_int(obj4, &val5);
30119 if (!SWIG_IsOK(ecode5)) {
30120 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
30121 }
30122 arg5 = static_cast< int >(val5);
30123 }
30124 {
30125 PyThreadState* __tstate = wxPyBeginAllowThreads();
30126 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
30127 wxPyEndAllowThreads(__tstate);
30128 if (PyErr_Occurred()) SWIG_fail;
30129 }
30130 resultobj = SWIG_Py_Void();
30131 return resultobj;
30132fail:
30133 return NULL;
30134}
30135
30136
30137SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30138 PyObject *resultobj = 0;
30139 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30140 wxWindow *arg2 = (wxWindow *) 0 ;
30141 wxDC *arg3 = 0 ;
30142 wxRect *arg4 = 0 ;
30143 int arg5 = (int) 0 ;
30144 void *argp1 = 0 ;
30145 int res1 = 0 ;
30146 void *argp2 = 0 ;
30147 int res2 = 0 ;
30148 void *argp3 = 0 ;
30149 int res3 = 0 ;
30150 wxRect temp4 ;
30151 int val5 ;
30152 int ecode5 = 0 ;
30153 PyObject * obj0 = 0 ;
30154 PyObject * obj1 = 0 ;
30155 PyObject * obj2 = 0 ;
30156 PyObject * obj3 = 0 ;
30157 PyObject * obj4 = 0 ;
30158 char * kwnames[] = {
30159 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30160 };
30161
30162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30164 if (!SWIG_IsOK(res1)) {
30165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30166 }
30167 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30168 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30169 if (!SWIG_IsOK(res2)) {
30170 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
30171 }
30172 arg2 = reinterpret_cast< wxWindow * >(argp2);
30173 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30174 if (!SWIG_IsOK(res3)) {
30175 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
30176 }
30177 if (!argp3) {
30178 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
30179 }
30180 arg3 = reinterpret_cast< wxDC * >(argp3);
30181 {
30182 arg4 = &temp4;
30183 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30184 }
30185 if (obj4) {
30186 ecode5 = SWIG_AsVal_int(obj4, &val5);
30187 if (!SWIG_IsOK(ecode5)) {
30188 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
30189 }
30190 arg5 = static_cast< int >(val5);
30191 }
30192 {
30193 PyThreadState* __tstate = wxPyBeginAllowThreads();
30194 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
30195 wxPyEndAllowThreads(__tstate);
30196 if (PyErr_Occurred()) SWIG_fail;
30197 }
30198 resultobj = SWIG_Py_Void();
30199 return resultobj;
30200fail:
30201 return NULL;
30202}
30203
30204
30205SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30206 PyObject *resultobj = 0;
30207 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30208 wxWindow *arg2 = (wxWindow *) 0 ;
30209 wxDC *arg3 = 0 ;
30210 wxSize *arg4 = 0 ;
30211 int arg5 ;
30212 wxOrientation arg6 ;
30213 int arg7 = (int) 0 ;
30214 void *argp1 = 0 ;
30215 int res1 = 0 ;
30216 void *argp2 = 0 ;
30217 int res2 = 0 ;
30218 void *argp3 = 0 ;
30219 int res3 = 0 ;
30220 wxSize temp4 ;
30221 int val5 ;
30222 int ecode5 = 0 ;
30223 int val6 ;
30224 int ecode6 = 0 ;
30225 int val7 ;
30226 int ecode7 = 0 ;
30227 PyObject * obj0 = 0 ;
30228 PyObject * obj1 = 0 ;
30229 PyObject * obj2 = 0 ;
30230 PyObject * obj3 = 0 ;
30231 PyObject * obj4 = 0 ;
30232 PyObject * obj5 = 0 ;
30233 PyObject * obj6 = 0 ;
30234 char * kwnames[] = {
30235 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
30236 };
30237
30238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30240 if (!SWIG_IsOK(res1)) {
30241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30242 }
30243 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30244 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30245 if (!SWIG_IsOK(res2)) {
30246 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
30247 }
30248 arg2 = reinterpret_cast< wxWindow * >(argp2);
30249 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30250 if (!SWIG_IsOK(res3)) {
30251 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
30252 }
30253 if (!argp3) {
30254 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
30255 }
30256 arg3 = reinterpret_cast< wxDC * >(argp3);
30257 {
30258 arg4 = &temp4;
30259 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
30260 }
30261 ecode5 = SWIG_AsVal_int(obj4, &val5);
30262 if (!SWIG_IsOK(ecode5)) {
30263 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
30264 }
30265 arg5 = static_cast< int >(val5);
30266 ecode6 = SWIG_AsVal_int(obj5, &val6);
30267 if (!SWIG_IsOK(ecode6)) {
30268 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
30269 }
30270 arg6 = static_cast< wxOrientation >(val6);
30271 if (obj6) {
30272 ecode7 = SWIG_AsVal_int(obj6, &val7);
30273 if (!SWIG_IsOK(ecode7)) {
30274 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
30275 }
30276 arg7 = static_cast< int >(val7);
30277 }
30278 {
30279 PyThreadState* __tstate = wxPyBeginAllowThreads();
30280 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
30281 wxPyEndAllowThreads(__tstate);
30282 if (PyErr_Occurred()) SWIG_fail;
30283 }
30284 resultobj = SWIG_Py_Void();
30285 return resultobj;
30286fail:
30287 return NULL;
30288}
30289
30290
30291SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30292 PyObject *resultobj = 0;
30293 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30294 wxWindow *arg2 = (wxWindow *) 0 ;
30295 wxDC *arg3 = 0 ;
30296 wxRect *arg4 = 0 ;
30297 int arg5 = (int) 0 ;
30298 void *argp1 = 0 ;
30299 int res1 = 0 ;
30300 void *argp2 = 0 ;
30301 int res2 = 0 ;
30302 void *argp3 = 0 ;
30303 int res3 = 0 ;
30304 wxRect temp4 ;
30305 int val5 ;
30306 int ecode5 = 0 ;
30307 PyObject * obj0 = 0 ;
30308 PyObject * obj1 = 0 ;
30309 PyObject * obj2 = 0 ;
30310 PyObject * obj3 = 0 ;
30311 PyObject * obj4 = 0 ;
30312 char * kwnames[] = {
30313 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30314 };
30315
30316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30318 if (!SWIG_IsOK(res1)) {
30319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30320 }
30321 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30322 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30323 if (!SWIG_IsOK(res2)) {
30324 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30325 }
30326 arg2 = reinterpret_cast< wxWindow * >(argp2);
30327 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30328 if (!SWIG_IsOK(res3)) {
30329 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
30330 }
30331 if (!argp3) {
30332 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
30333 }
30334 arg3 = reinterpret_cast< wxDC * >(argp3);
30335 {
30336 arg4 = &temp4;
30337 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30338 }
30339 if (obj4) {
30340 ecode5 = SWIG_AsVal_int(obj4, &val5);
30341 if (!SWIG_IsOK(ecode5)) {
30342 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
30343 }
30344 arg5 = static_cast< int >(val5);
30345 }
30346 {
30347 PyThreadState* __tstate = wxPyBeginAllowThreads();
30348 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
30349 wxPyEndAllowThreads(__tstate);
30350 if (PyErr_Occurred()) SWIG_fail;
30351 }
30352 resultobj = SWIG_Py_Void();
30353 return resultobj;
30354fail:
30355 return NULL;
30356}
30357
30358
30359SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30360 PyObject *resultobj = 0;
30361 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30362 wxWindow *arg2 = (wxWindow *) 0 ;
30363 wxDC *arg3 = 0 ;
30364 wxRect *arg4 = 0 ;
30365 int arg5 = (int) 0 ;
30366 void *argp1 = 0 ;
30367 int res1 = 0 ;
30368 void *argp2 = 0 ;
30369 int res2 = 0 ;
30370 void *argp3 = 0 ;
30371 int res3 = 0 ;
30372 wxRect temp4 ;
30373 int val5 ;
30374 int ecode5 = 0 ;
30375 PyObject * obj0 = 0 ;
30376 PyObject * obj1 = 0 ;
30377 PyObject * obj2 = 0 ;
30378 PyObject * obj3 = 0 ;
30379 PyObject * obj4 = 0 ;
30380 char * kwnames[] = {
30381 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30382 };
30383
30384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30386 if (!SWIG_IsOK(res1)) {
30387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30388 }
30389 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30390 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30391 if (!SWIG_IsOK(res2)) {
30392 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
30393 }
30394 arg2 = reinterpret_cast< wxWindow * >(argp2);
30395 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30396 if (!SWIG_IsOK(res3)) {
30397 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
30398 }
30399 if (!argp3) {
30400 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
30401 }
30402 arg3 = reinterpret_cast< wxDC * >(argp3);
30403 {
30404 arg4 = &temp4;
30405 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30406 }
30407 if (obj4) {
30408 ecode5 = SWIG_AsVal_int(obj4, &val5);
30409 if (!SWIG_IsOK(ecode5)) {
30410 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
30411 }
30412 arg5 = static_cast< int >(val5);
30413 }
30414 {
30415 PyThreadState* __tstate = wxPyBeginAllowThreads();
30416 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
30417 wxPyEndAllowThreads(__tstate);
30418 if (PyErr_Occurred()) SWIG_fail;
30419 }
30420 resultobj = SWIG_Py_Void();
30421 return resultobj;
30422fail:
30423 return NULL;
30424}
30425
30426
01f6b6d3
RD
30427SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30428 PyObject *resultobj = 0;
30429 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30430 wxWindow *arg2 = (wxWindow *) 0 ;
30431 wxDC *arg3 = 0 ;
30432 wxRect *arg4 = 0 ;
30433 int arg5 = (int) 0 ;
30434 void *argp1 = 0 ;
30435 int res1 = 0 ;
30436 void *argp2 = 0 ;
30437 int res2 = 0 ;
30438 void *argp3 = 0 ;
30439 int res3 = 0 ;
30440 wxRect temp4 ;
30441 int val5 ;
30442 int ecode5 = 0 ;
30443 PyObject * obj0 = 0 ;
30444 PyObject * obj1 = 0 ;
30445 PyObject * obj2 = 0 ;
30446 PyObject * obj3 = 0 ;
30447 PyObject * obj4 = 0 ;
30448 char * kwnames[] = {
30449 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30450 };
30451
30452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30454 if (!SWIG_IsOK(res1)) {
30455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30456 }
30457 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30458 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30459 if (!SWIG_IsOK(res2)) {
30460 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
30461 }
30462 arg2 = reinterpret_cast< wxWindow * >(argp2);
30463 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30464 if (!SWIG_IsOK(res3)) {
30465 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
30466 }
30467 if (!argp3) {
30468 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
30469 }
30470 arg3 = reinterpret_cast< wxDC * >(argp3);
30471 {
30472 arg4 = &temp4;
30473 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30474 }
30475 if (obj4) {
30476 ecode5 = SWIG_AsVal_int(obj4, &val5);
30477 if (!SWIG_IsOK(ecode5)) {
30478 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
30479 }
30480 arg5 = static_cast< int >(val5);
30481 }
30482 {
30483 PyThreadState* __tstate = wxPyBeginAllowThreads();
30484 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
30485 wxPyEndAllowThreads(__tstate);
30486 if (PyErr_Occurred()) SWIG_fail;
30487 }
30488 resultobj = SWIG_Py_Void();
30489 return resultobj;
30490fail:
30491 return NULL;
30492}
30493
30494
30495SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30496 PyObject *resultobj = 0;
30497 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30498 wxWindow *arg2 = (wxWindow *) 0 ;
30499 wxDC *arg3 = 0 ;
30500 wxRect *arg4 = 0 ;
30501 int arg5 = (int) 0 ;
30502 void *argp1 = 0 ;
30503 int res1 = 0 ;
30504 void *argp2 = 0 ;
30505 int res2 = 0 ;
30506 void *argp3 = 0 ;
30507 int res3 = 0 ;
30508 wxRect temp4 ;
30509 int val5 ;
30510 int ecode5 = 0 ;
30511 PyObject * obj0 = 0 ;
30512 PyObject * obj1 = 0 ;
30513 PyObject * obj2 = 0 ;
30514 PyObject * obj3 = 0 ;
30515 PyObject * obj4 = 0 ;
30516 char * kwnames[] = {
30517 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30518 };
30519
30520 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30521 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30522 if (!SWIG_IsOK(res1)) {
30523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30524 }
30525 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30526 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30527 if (!SWIG_IsOK(res2)) {
30528 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30529 }
30530 arg2 = reinterpret_cast< wxWindow * >(argp2);
30531 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30532 if (!SWIG_IsOK(res3)) {
30533 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
30534 }
30535 if (!argp3) {
30536 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
30537 }
30538 arg3 = reinterpret_cast< wxDC * >(argp3);
30539 {
30540 arg4 = &temp4;
30541 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30542 }
30543 if (obj4) {
30544 ecode5 = SWIG_AsVal_int(obj4, &val5);
30545 if (!SWIG_IsOK(ecode5)) {
30546 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
30547 }
30548 arg5 = static_cast< int >(val5);
30549 }
30550 {
30551 PyThreadState* __tstate = wxPyBeginAllowThreads();
30552 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
30553 wxPyEndAllowThreads(__tstate);
30554 if (PyErr_Occurred()) SWIG_fail;
30555 }
30556 resultobj = SWIG_Py_Void();
30557 return resultobj;
30558fail:
30559 return NULL;
30560}
30561
30562
30563SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
50efceee
RD
30564 PyObject *resultobj = 0;
30565 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30566 wxWindow *arg2 = (wxWindow *) 0 ;
30567 wxDC *arg3 = 0 ;
30568 wxRect *arg4 = 0 ;
30569 int arg5 = (int) 0 ;
30570 void *argp1 = 0 ;
30571 int res1 = 0 ;
30572 void *argp2 = 0 ;
30573 int res2 = 0 ;
30574 void *argp3 = 0 ;
30575 int res3 = 0 ;
30576 wxRect temp4 ;
30577 int val5 ;
30578 int ecode5 = 0 ;
30579 PyObject * obj0 = 0 ;
30580 PyObject * obj1 = 0 ;
30581 PyObject * obj2 = 0 ;
30582 PyObject * obj3 = 0 ;
30583 PyObject * obj4 = 0 ;
30584 char * kwnames[] = {
30585 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30586 };
30587
01f6b6d3 30588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
50efceee
RD
30589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30590 if (!SWIG_IsOK(res1)) {
01f6b6d3 30591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
50efceee
RD
30592 }
30593 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30594 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30595 if (!SWIG_IsOK(res2)) {
01f6b6d3 30596 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
50efceee
RD
30597 }
30598 arg2 = reinterpret_cast< wxWindow * >(argp2);
30599 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30600 if (!SWIG_IsOK(res3)) {
01f6b6d3 30601 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
50efceee
RD
30602 }
30603 if (!argp3) {
01f6b6d3 30604 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
50efceee
RD
30605 }
30606 arg3 = reinterpret_cast< wxDC * >(argp3);
30607 {
30608 arg4 = &temp4;
30609 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30610 }
30611 if (obj4) {
30612 ecode5 = SWIG_AsVal_int(obj4, &val5);
30613 if (!SWIG_IsOK(ecode5)) {
01f6b6d3 30614 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
50efceee
RD
30615 }
30616 arg5 = static_cast< int >(val5);
30617 }
30618 {
30619 PyThreadState* __tstate = wxPyBeginAllowThreads();
01f6b6d3 30620 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
50efceee
RD
30621 wxPyEndAllowThreads(__tstate);
30622 if (PyErr_Occurred()) SWIG_fail;
30623 }
30624 resultobj = SWIG_Py_Void();
30625 return resultobj;
30626fail:
30627 return NULL;
30628}
30629
30630
0085ce49
RD
30631SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30632 PyObject *resultobj = 0;
30633 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30634 wxWindow *arg2 = (wxWindow *) 0 ;
30635 SwigValueWrapper<wxSplitterRenderParams > result;
30636 void *argp1 = 0 ;
30637 int res1 = 0 ;
30638 void *argp2 = 0 ;
30639 int res2 = 0 ;
30640 PyObject * obj0 = 0 ;
30641 PyObject * obj1 = 0 ;
30642 char * kwnames[] = {
30643 (char *) "self",(char *) "win", NULL
30644 };
30645
30646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
30647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30648 if (!SWIG_IsOK(res1)) {
30649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30650 }
30651 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30652 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30653 if (!SWIG_IsOK(res2)) {
30654 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
30655 }
30656 arg2 = reinterpret_cast< wxWindow * >(argp2);
30657 {
30658 PyThreadState* __tstate = wxPyBeginAllowThreads();
30659 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
30660 wxPyEndAllowThreads(__tstate);
30661 if (PyErr_Occurred()) SWIG_fail;
30662 }
30663 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
30664 return resultobj;
30665fail:
30666 return NULL;
30667}
30668
30669
30670SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30671 PyObject *resultobj = 0;
30672 wxRendererNative *result = 0 ;
30673
30674 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
30675 {
704eda0c 30676 if (!wxPyCheckForApp()) SWIG_fail;
0085ce49 30677 PyThreadState* __tstate = wxPyBeginAllowThreads();
093d3ff1 30678 {
0085ce49
RD
30679 wxRendererNative &_result_ref = wxRendererNative::Get();
30680 result = (wxRendererNative *) &_result_ref;
093d3ff1 30681 }
0085ce49
RD
30682 wxPyEndAllowThreads(__tstate);
30683 if (PyErr_Occurred()) SWIG_fail;
30684 }
30685 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
30686 return resultobj;
30687fail:
30688 return NULL;
30689}
30690
30691
30692SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30693 PyObject *resultobj = 0;
30694 wxRendererNative *result = 0 ;
30695
30696 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
30697 {
704eda0c 30698 if (!wxPyCheckForApp()) SWIG_fail;
0085ce49 30699 PyThreadState* __tstate = wxPyBeginAllowThreads();
8d38bd1d 30700 {
0085ce49
RD
30701 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
30702 result = (wxRendererNative *) &_result_ref;
8d38bd1d 30703 }
0085ce49
RD
30704 wxPyEndAllowThreads(__tstate);
30705 if (PyErr_Occurred()) SWIG_fail;
30706 }
30707 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
30708 return resultobj;
30709fail:
30710 return NULL;
30711}
30712
30713
30714SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30715 PyObject *resultobj = 0;
30716 wxRendererNative *result = 0 ;
30717
30718 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
30719 {
704eda0c 30720 if (!wxPyCheckForApp()) SWIG_fail;
0085ce49 30721 PyThreadState* __tstate = wxPyBeginAllowThreads();
8d38bd1d 30722 {
0085ce49
RD
30723 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
30724 result = (wxRendererNative *) &_result_ref;
8d38bd1d 30725 }
0085ce49
RD
30726 wxPyEndAllowThreads(__tstate);
30727 if (PyErr_Occurred()) SWIG_fail;
30728 }
30729 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
30730 return resultobj;
30731fail:
30732 return NULL;
30733}
30734
30735
30736SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30737 PyObject *resultobj = 0;
30738 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30739 wxRendererNative *result = 0 ;
30740 void *argp1 = 0 ;
30741 int res1 = 0 ;
30742 PyObject * obj0 = 0 ;
30743 char * kwnames[] = {
30744 (char *) "renderer", NULL
30745 };
30746
30747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
30748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30749 if (!SWIG_IsOK(res1)) {
30750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30751 }
30752 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30753 {
704eda0c 30754 if (!wxPyCheckForApp()) SWIG_fail;
0085ce49
RD
30755 PyThreadState* __tstate = wxPyBeginAllowThreads();
30756 result = (wxRendererNative *)wxRendererNative::Set(arg1);
30757 wxPyEndAllowThreads(__tstate);
30758 if (PyErr_Occurred()) SWIG_fail;
30759 }
30760 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
30761 return resultobj;
30762fail:
30763 return NULL;
30764}
30765
30766
30767SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30768 PyObject *resultobj = 0;
30769 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30770 SwigValueWrapper<wxRendererVersion > result;
30771 void *argp1 = 0 ;
30772 int res1 = 0 ;
30773 PyObject *swig_obj[1] ;
30774
30775 if (!args) SWIG_fail;
30776 swig_obj[0] = args;
30777 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30778 if (!SWIG_IsOK(res1)) {
30779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
30780 }
30781 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30782 {
30783 PyThreadState* __tstate = wxPyBeginAllowThreads();
30784 result = ((wxRendererNative const *)arg1)->GetVersion();
30785 wxPyEndAllowThreads(__tstate);
30786 if (PyErr_Occurred()) SWIG_fail;
30787 }
30788 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
30789 return resultobj;
30790fail:
30791 return NULL;
30792}
30793
30794
30795SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30796 PyObject *obj;
30797 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30798 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
30799 return SWIG_Py_Void();
30800}
30801
27e45892
RD
30802SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30803 PyObject *resultobj = 0;
30804 wxPseudoDC *result = 0 ;
30805
30806 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
30807 {
30808 PyThreadState* __tstate = wxPyBeginAllowThreads();
30809 result = (wxPseudoDC *)new wxPseudoDC();
30810 wxPyEndAllowThreads(__tstate);
30811 if (PyErr_Occurred()) SWIG_fail;
30812 }
30813 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
30814 return resultobj;
30815fail:
30816 return NULL;
30817}
30818
30819
30820SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30821 PyObject *resultobj = 0;
30822 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30823 void *argp1 = 0 ;
30824 int res1 = 0 ;
30825 PyObject *swig_obj[1] ;
30826
30827 if (!args) SWIG_fail;
30828 swig_obj[0] = args;
30829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30830 if (!SWIG_IsOK(res1)) {
30831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30832 }
30833 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30834 {
30835 PyThreadState* __tstate = wxPyBeginAllowThreads();
30836 (arg1)->BeginDrawing();
30837 wxPyEndAllowThreads(__tstate);
30838 if (PyErr_Occurred()) SWIG_fail;
30839 }
30840 resultobj = SWIG_Py_Void();
30841 return resultobj;
30842fail:
30843 return NULL;
30844}
30845
30846
30847SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30848 PyObject *resultobj = 0;
30849 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30850 void *argp1 = 0 ;
30851 int res1 = 0 ;
30852 PyObject *swig_obj[1] ;
30853
30854 if (!args) SWIG_fail;
30855 swig_obj[0] = args;
30856 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30857 if (!SWIG_IsOK(res1)) {
30858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30859 }
30860 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30861 {
30862 PyThreadState* __tstate = wxPyBeginAllowThreads();
30863 (arg1)->EndDrawing();
30864 wxPyEndAllowThreads(__tstate);
30865 if (PyErr_Occurred()) SWIG_fail;
30866 }
30867 resultobj = SWIG_Py_Void();
30868 return resultobj;
30869fail:
30870 return NULL;
30871}
30872
30873
30874SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30875 PyObject *resultobj = 0;
30876 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30877 void *argp1 = 0 ;
30878 int res1 = 0 ;
30879 PyObject *swig_obj[1] ;
30880
30881 if (!args) SWIG_fail;
30882 swig_obj[0] = args;
30883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
30884 if (!SWIG_IsOK(res1)) {
30885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30886 }
30887 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30888 {
30889 PyThreadState* __tstate = wxPyBeginAllowThreads();
30890 delete arg1;
30891
30892 wxPyEndAllowThreads(__tstate);
30893 if (PyErr_Occurred()) SWIG_fail;
30894 }
30895 resultobj = SWIG_Py_Void();
30896 return resultobj;
30897fail:
30898 return NULL;
30899}
30900
30901
30902SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30903 PyObject *resultobj = 0;
30904 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30905 void *argp1 = 0 ;
30906 int res1 = 0 ;
30907 PyObject *swig_obj[1] ;
30908
30909 if (!args) SWIG_fail;
30910 swig_obj[0] = args;
30911 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30912 if (!SWIG_IsOK(res1)) {
30913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30914 }
30915 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30916 {
30917 PyThreadState* __tstate = wxPyBeginAllowThreads();
30918 (arg1)->RemoveAll();
30919 wxPyEndAllowThreads(__tstate);
30920 if (PyErr_Occurred()) SWIG_fail;
30921 }
30922 resultobj = SWIG_Py_Void();
30923 return resultobj;
30924fail:
30925 return NULL;
30926}
30927
30928
30929SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30930 PyObject *resultobj = 0;
30931 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30932 int result;
30933 void *argp1 = 0 ;
30934 int res1 = 0 ;
30935 PyObject *swig_obj[1] ;
30936
30937 if (!args) SWIG_fail;
30938 swig_obj[0] = args;
30939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30940 if (!SWIG_IsOK(res1)) {
30941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30942 }
30943 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30944 {
30945 PyThreadState* __tstate = wxPyBeginAllowThreads();
30946 result = (int)(arg1)->GetLen();
30947 wxPyEndAllowThreads(__tstate);
30948 if (PyErr_Occurred()) SWIG_fail;
30949 }
30950 resultobj = SWIG_From_int(static_cast< int >(result));
30951 return resultobj;
30952fail:
30953 return NULL;
30954}
30955
30956
30957SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30958 PyObject *resultobj = 0;
30959 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30960 int arg2 ;
30961 void *argp1 = 0 ;
30962 int res1 = 0 ;
30963 int val2 ;
30964 int ecode2 = 0 ;
30965 PyObject * obj0 = 0 ;
30966 PyObject * obj1 = 0 ;
30967 char * kwnames[] = {
30968 (char *) "self",(char *) "id", NULL
30969 };
30970
30971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
30972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30973 if (!SWIG_IsOK(res1)) {
30974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30975 }
30976 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30977 ecode2 = SWIG_AsVal_int(obj1, &val2);
30978 if (!SWIG_IsOK(ecode2)) {
30979 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
30980 }
30981 arg2 = static_cast< int >(val2);
30982 {
30983 PyThreadState* __tstate = wxPyBeginAllowThreads();
30984 (arg1)->SetId(arg2);
30985 wxPyEndAllowThreads(__tstate);
30986 if (PyErr_Occurred()) SWIG_fail;
30987 }
30988 resultobj = SWIG_Py_Void();
30989 return resultobj;
30990fail:
30991 return NULL;
30992}
30993
30994
30995SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30996 PyObject *resultobj = 0;
30997 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30998 int arg2 ;
30999 void *argp1 = 0 ;
31000 int res1 = 0 ;
31001 int val2 ;
31002 int ecode2 = 0 ;
31003 PyObject * obj0 = 0 ;
31004 PyObject * obj1 = 0 ;
31005 char * kwnames[] = {
31006 (char *) "self",(char *) "id", NULL
31007 };
31008
31009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
31010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31011 if (!SWIG_IsOK(res1)) {
31012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31013 }
31014 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31015 ecode2 = SWIG_AsVal_int(obj1, &val2);
31016 if (!SWIG_IsOK(ecode2)) {
31017 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
31018 }
31019 arg2 = static_cast< int >(val2);
31020 {
31021 PyThreadState* __tstate = wxPyBeginAllowThreads();
31022 (arg1)->ClearId(arg2);
31023 wxPyEndAllowThreads(__tstate);
31024 if (PyErr_Occurred()) SWIG_fail;
31025 }
31026 resultobj = SWIG_Py_Void();
31027 return resultobj;
31028fail:
31029 return NULL;
31030}
31031
31032
31033SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31034 PyObject *resultobj = 0;
31035 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31036 int arg2 ;
31037 void *argp1 = 0 ;
31038 int res1 = 0 ;
31039 int val2 ;
31040 int ecode2 = 0 ;
31041 PyObject * obj0 = 0 ;
31042 PyObject * obj1 = 0 ;
31043 char * kwnames[] = {
31044 (char *) "self",(char *) "id", NULL
31045 };
31046
31047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
31048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31049 if (!SWIG_IsOK(res1)) {
31050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31051 }
31052 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31053 ecode2 = SWIG_AsVal_int(obj1, &val2);
31054 if (!SWIG_IsOK(ecode2)) {
31055 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
31056 }
31057 arg2 = static_cast< int >(val2);
31058 {
31059 PyThreadState* __tstate = wxPyBeginAllowThreads();
31060 (arg1)->RemoveId(arg2);
31061 wxPyEndAllowThreads(__tstate);
31062 if (PyErr_Occurred()) SWIG_fail;
31063 }
31064 resultobj = SWIG_Py_Void();
31065 return resultobj;
31066fail:
31067 return NULL;
31068}
31069
31070
31071SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31072 PyObject *resultobj = 0;
31073 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31074 int arg2 ;
31075 int arg3 ;
31076 int arg4 ;
31077 void *argp1 = 0 ;
31078 int res1 = 0 ;
31079 int val2 ;
31080 int ecode2 = 0 ;
31081 int val3 ;
31082 int ecode3 = 0 ;
31083 int val4 ;
31084 int ecode4 = 0 ;
31085 PyObject * obj0 = 0 ;
31086 PyObject * obj1 = 0 ;
31087 PyObject * obj2 = 0 ;
31088 PyObject * obj3 = 0 ;
31089 char * kwnames[] = {
31090 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
31091 };
31092
31093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31095 if (!SWIG_IsOK(res1)) {
31096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31097 }
31098 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31099 ecode2 = SWIG_AsVal_int(obj1, &val2);
31100 if (!SWIG_IsOK(ecode2)) {
31101 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
31102 }
31103 arg2 = static_cast< int >(val2);
31104 ecode3 = SWIG_AsVal_int(obj2, &val3);
31105 if (!SWIG_IsOK(ecode3)) {
31106 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
31107 }
31108 arg3 = static_cast< int >(val3);
31109 ecode4 = SWIG_AsVal_int(obj3, &val4);
31110 if (!SWIG_IsOK(ecode4)) {
31111 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
31112 }
31113 arg4 = static_cast< int >(val4);
31114 {
31115 PyThreadState* __tstate = wxPyBeginAllowThreads();
31116 (arg1)->TranslateId(arg2,arg3,arg4);
31117 wxPyEndAllowThreads(__tstate);
31118 if (PyErr_Occurred()) SWIG_fail;
31119 }
31120 resultobj = SWIG_Py_Void();
31121 return resultobj;
31122fail:
31123 return NULL;
31124}
31125
31126
72ef6efb
RD
31127SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31128 PyObject *resultobj = 0;
31129 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31130 int arg2 ;
31131 bool arg3 = (bool) true ;
31132 void *argp1 = 0 ;
31133 int res1 = 0 ;
31134 int val2 ;
31135 int ecode2 = 0 ;
31136 bool val3 ;
31137 int ecode3 = 0 ;
31138 PyObject * obj0 = 0 ;
31139 PyObject * obj1 = 0 ;
31140 PyObject * obj2 = 0 ;
31141 char * kwnames[] = {
31142 (char *) "self",(char *) "id",(char *) "greyout", NULL
31143 };
31144
31145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31147 if (!SWIG_IsOK(res1)) {
31148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31149 }
31150 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31151 ecode2 = SWIG_AsVal_int(obj1, &val2);
31152 if (!SWIG_IsOK(ecode2)) {
31153 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
31154 }
31155 arg2 = static_cast< int >(val2);
31156 if (obj2) {
31157 ecode3 = SWIG_AsVal_bool(obj2, &val3);
31158 if (!SWIG_IsOK(ecode3)) {
31159 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
31160 }
31161 arg3 = static_cast< bool >(val3);
31162 }
31163 {
31164 PyThreadState* __tstate = wxPyBeginAllowThreads();
31165 (arg1)->SetIdGreyedOut(arg2,arg3);
31166 wxPyEndAllowThreads(__tstate);
31167 if (PyErr_Occurred()) SWIG_fail;
31168 }
31169 resultobj = SWIG_Py_Void();
31170 return resultobj;
31171fail:
31172 return NULL;
31173}
31174
31175
31176SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31177 PyObject *resultobj = 0;
31178 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31179 int arg2 ;
31180 bool result;
31181 void *argp1 = 0 ;
31182 int res1 = 0 ;
31183 int val2 ;
31184 int ecode2 = 0 ;
31185 PyObject * obj0 = 0 ;
31186 PyObject * obj1 = 0 ;
31187 char * kwnames[] = {
31188 (char *) "self",(char *) "id", NULL
31189 };
31190
31191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
31192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31193 if (!SWIG_IsOK(res1)) {
31194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31195 }
31196 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31197 ecode2 = SWIG_AsVal_int(obj1, &val2);
31198 if (!SWIG_IsOK(ecode2)) {
31199 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
31200 }
31201 arg2 = static_cast< int >(val2);
31202 {
31203 PyThreadState* __tstate = wxPyBeginAllowThreads();
31204 result = (bool)(arg1)->GetIdGreyedOut(arg2);
31205 wxPyEndAllowThreads(__tstate);
31206 if (PyErr_Occurred()) SWIG_fail;
31207 }
31208 {
31209 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31210 }
31211 return resultobj;
31212fail:
31213 return NULL;
31214}
31215
31216
31217SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31218 PyObject *resultobj = 0;
31219 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31220 int arg2 ;
31221 int arg3 ;
31222 int arg4 = (int) 1 ;
31223 wxColor const &arg5_defvalue = *wxWHITE ;
31224 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
31225 PyObject *result = 0 ;
31226 void *argp1 = 0 ;
31227 int res1 = 0 ;
31228 int val2 ;
31229 int ecode2 = 0 ;
31230 int val3 ;
31231 int ecode3 = 0 ;
31232 int val4 ;
31233 int ecode4 = 0 ;
31234 void *argp5 = 0 ;
31235 int res5 = 0 ;
31236 PyObject * obj0 = 0 ;
31237 PyObject * obj1 = 0 ;
31238 PyObject * obj2 = 0 ;
31239 PyObject * obj3 = 0 ;
31240 PyObject * obj4 = 0 ;
31241 char * kwnames[] = {
31242 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
31243 };
31244
31245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31247 if (!SWIG_IsOK(res1)) {
31248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31249 }
31250 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31251 ecode2 = SWIG_AsVal_int(obj1, &val2);
31252 if (!SWIG_IsOK(ecode2)) {
31253 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
31254 }
31255 arg2 = static_cast< int >(val2);
31256 ecode3 = SWIG_AsVal_int(obj2, &val3);
31257 if (!SWIG_IsOK(ecode3)) {
31258 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
31259 }
31260 arg3 = static_cast< int >(val3);
31261 if (obj3) {
31262 ecode4 = SWIG_AsVal_int(obj3, &val4);
31263 if (!SWIG_IsOK(ecode4)) {
31264 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
31265 }
31266 arg4 = static_cast< int >(val4);
31267 }
31268 if (obj4) {
31269 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
31270 if (!SWIG_IsOK(res5)) {
31271 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
31272 }
31273 if (!argp5) {
31274 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
31275 }
31276 arg5 = reinterpret_cast< wxColor * >(argp5);
31277 }
31278 {
31279 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
31280 if (PyErr_Occurred()) SWIG_fail;
31281 }
31282 resultobj = result;
31283 return resultobj;
31284fail:
31285 return NULL;
31286}
31287
31288
31289SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31290 PyObject *resultobj = 0;
31291 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31292 int arg2 ;
31293 int arg3 ;
31294 PyObject *result = 0 ;
31295 void *argp1 = 0 ;
31296 int res1 = 0 ;
31297 int val2 ;
31298 int ecode2 = 0 ;
31299 int val3 ;
31300 int ecode3 = 0 ;
31301 PyObject * obj0 = 0 ;
31302 PyObject * obj1 = 0 ;
31303 PyObject * obj2 = 0 ;
31304 char * kwnames[] = {
31305 (char *) "self",(char *) "x",(char *) "y", NULL
31306 };
31307
31308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31310 if (!SWIG_IsOK(res1)) {
31311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31312 }
31313 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31314 ecode2 = SWIG_AsVal_int(obj1, &val2);
31315 if (!SWIG_IsOK(ecode2)) {
31316 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
31317 }
31318 arg2 = static_cast< int >(val2);
31319 ecode3 = SWIG_AsVal_int(obj2, &val3);
31320 if (!SWIG_IsOK(ecode3)) {
31321 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
31322 }
31323 arg3 = static_cast< int >(val3);
31324 {
31325 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
31326 if (PyErr_Occurred()) SWIG_fail;
31327 }
31328 resultobj = result;
31329 return resultobj;
31330fail:
31331 return NULL;
31332}
31333
31334
27e45892
RD
31335SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31336 PyObject *resultobj = 0;
31337 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31338 int arg2 ;
31339 wxDC *arg3 = (wxDC *) 0 ;
31340 void *argp1 = 0 ;
31341 int res1 = 0 ;
31342 int val2 ;
31343 int ecode2 = 0 ;
31344 void *argp3 = 0 ;
31345 int res3 = 0 ;
31346 PyObject * obj0 = 0 ;
31347 PyObject * obj1 = 0 ;
31348 PyObject * obj2 = 0 ;
31349 char * kwnames[] = {
31350 (char *) "self",(char *) "id",(char *) "dc", NULL
31351 };
31352
31353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31355 if (!SWIG_IsOK(res1)) {
31356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31357 }
31358 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31359 ecode2 = SWIG_AsVal_int(obj1, &val2);
31360 if (!SWIG_IsOK(ecode2)) {
31361 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
31362 }
31363 arg2 = static_cast< int >(val2);
31364 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
31365 if (!SWIG_IsOK(res3)) {
31366 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
31367 }
31368 arg3 = reinterpret_cast< wxDC * >(argp3);
31369 {
31370 PyThreadState* __tstate = wxPyBeginAllowThreads();
31371 (arg1)->DrawIdToDC(arg2,arg3);
31372 wxPyEndAllowThreads(__tstate);
31373 if (PyErr_Occurred()) SWIG_fail;
31374 }
31375 resultobj = SWIG_Py_Void();
31376 return resultobj;
31377fail:
31378 return NULL;
31379}
31380
31381
31382SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31383 PyObject *resultobj = 0;
31384 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31385 int arg2 ;
31386 wxRect *arg3 = 0 ;
31387 void *argp1 = 0 ;
31388 int res1 = 0 ;
31389 int val2 ;
31390 int ecode2 = 0 ;
31391 wxRect temp3 ;
31392 PyObject * obj0 = 0 ;
31393 PyObject * obj1 = 0 ;
31394 PyObject * obj2 = 0 ;
31395 char * kwnames[] = {
31396 (char *) "self",(char *) "id",(char *) "rect", NULL
31397 };
31398
31399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31401 if (!SWIG_IsOK(res1)) {
31402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31403 }
31404 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31405 ecode2 = SWIG_AsVal_int(obj1, &val2);
31406 if (!SWIG_IsOK(ecode2)) {
31407 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
31408 }
31409 arg2 = static_cast< int >(val2);
31410 {
31411 arg3 = &temp3;
31412 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
31413 }
31414 {
31415 PyThreadState* __tstate = wxPyBeginAllowThreads();
31416 (arg1)->SetIdBounds(arg2,*arg3);
31417 wxPyEndAllowThreads(__tstate);
31418 if (PyErr_Occurred()) SWIG_fail;
31419 }
31420 resultobj = SWIG_Py_Void();
31421 return resultobj;
31422fail:
31423 return NULL;
31424}
31425
31426
31427SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31428 PyObject *resultobj = 0;
31429 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31430 int arg2 ;
31431 wxRect result;
31432 void *argp1 = 0 ;
31433 int res1 = 0 ;
31434 int val2 ;
31435 int ecode2 = 0 ;
31436 PyObject * obj0 = 0 ;
31437 PyObject * obj1 = 0 ;
31438 char * kwnames[] = {
31439 (char *) "self",(char *) "id", NULL
31440 };
31441
31442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
31443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31444 if (!SWIG_IsOK(res1)) {
31445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31446 }
31447 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31448 ecode2 = SWIG_AsVal_int(obj1, &val2);
31449 if (!SWIG_IsOK(ecode2)) {
31450 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
31451 }
31452 arg2 = static_cast< int >(val2);
31453 {
31454 PyThreadState* __tstate = wxPyBeginAllowThreads();
31455 result = wxPseudoDC_GetIdBounds(arg1,arg2);
31456 wxPyEndAllowThreads(__tstate);
31457 if (PyErr_Occurred()) SWIG_fail;
31458 }
31459 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
31460 return resultobj;
31461fail:
31462 return NULL;
31463}
31464
31465
31466SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31467 PyObject *resultobj = 0;
31468 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31469 wxDC *arg2 = (wxDC *) 0 ;
31470 wxRect *arg3 = 0 ;
31471 void *argp1 = 0 ;
31472 int res1 = 0 ;
31473 void *argp2 = 0 ;
31474 int res2 = 0 ;
31475 wxRect temp3 ;
31476 PyObject * obj0 = 0 ;
31477 PyObject * obj1 = 0 ;
31478 PyObject * obj2 = 0 ;
31479 char * kwnames[] = {
31480 (char *) "self",(char *) "dc",(char *) "rect", NULL
31481 };
31482
31483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31485 if (!SWIG_IsOK(res1)) {
31486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31487 }
31488 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31489 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
31490 if (!SWIG_IsOK(res2)) {
31491 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
31492 }
31493 arg2 = reinterpret_cast< wxDC * >(argp2);
31494 {
31495 arg3 = &temp3;
31496 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
31497 }
31498 {
31499 PyThreadState* __tstate = wxPyBeginAllowThreads();
31500 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
31501 wxPyEndAllowThreads(__tstate);
31502 if (PyErr_Occurred()) SWIG_fail;
31503 }
31504 resultobj = SWIG_Py_Void();
31505 return resultobj;
31506fail:
31507 return NULL;
31508}
31509
31510
31511SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31512 PyObject *resultobj = 0;
31513 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31514 wxDC *arg2 = (wxDC *) 0 ;
31515 wxRegion *arg3 = 0 ;
31516 void *argp1 = 0 ;
31517 int res1 = 0 ;
31518 void *argp2 = 0 ;
31519 int res2 = 0 ;
31520 void *argp3 = 0 ;
31521 int res3 = 0 ;
31522 PyObject * obj0 = 0 ;
31523 PyObject * obj1 = 0 ;
31524 PyObject * obj2 = 0 ;
31525 char * kwnames[] = {
31526 (char *) "self",(char *) "dc",(char *) "region", NULL
31527 };
31528
31529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31531 if (!SWIG_IsOK(res1)) {
31532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31533 }
31534 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31535 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
31536 if (!SWIG_IsOK(res2)) {
31537 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
31538 }
31539 arg2 = reinterpret_cast< wxDC * >(argp2);
31540 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
31541 if (!SWIG_IsOK(res3)) {
31542 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
31543 }
31544 if (!argp3) {
31545 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
31546 }
31547 arg3 = reinterpret_cast< wxRegion * >(argp3);
31548 {
31549 PyThreadState* __tstate = wxPyBeginAllowThreads();
31550 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
31551 wxPyEndAllowThreads(__tstate);
31552 if (PyErr_Occurred()) SWIG_fail;
31553 }
31554 resultobj = SWIG_Py_Void();
31555 return resultobj;
31556fail:
31557 return NULL;
31558}
31559
31560
31561SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31562 PyObject *resultobj = 0;
31563 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31564 wxDC *arg2 = (wxDC *) 0 ;
31565 void *argp1 = 0 ;
31566 int res1 = 0 ;
31567 void *argp2 = 0 ;
31568 int res2 = 0 ;
31569 PyObject * obj0 = 0 ;
31570 PyObject * obj1 = 0 ;
31571 char * kwnames[] = {
31572 (char *) "self",(char *) "dc", NULL
31573 };
31574
31575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
31576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31577 if (!SWIG_IsOK(res1)) {
31578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31579 }
31580 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31581 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
31582 if (!SWIG_IsOK(res2)) {
31583 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
31584 }
31585 arg2 = reinterpret_cast< wxDC * >(argp2);
31586 {
31587 PyThreadState* __tstate = wxPyBeginAllowThreads();
31588 (arg1)->DrawToDC(arg2);
31589 wxPyEndAllowThreads(__tstate);
31590 if (PyErr_Occurred()) SWIG_fail;
31591 }
31592 resultobj = SWIG_Py_Void();
31593 return resultobj;
31594fail:
31595 return NULL;
31596}
31597
31598
31599SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31600 PyObject *resultobj = 0;
31601 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31602 int arg2 ;
31603 int arg3 ;
31604 wxColour *arg4 = 0 ;
31605 int arg5 = (int) wxFLOOD_SURFACE ;
31606 void *argp1 = 0 ;
31607 int res1 = 0 ;
31608 int val2 ;
31609 int ecode2 = 0 ;
31610 int val3 ;
31611 int ecode3 = 0 ;
31612 wxColour temp4 ;
31613 int val5 ;
31614 int ecode5 = 0 ;
31615 PyObject * obj0 = 0 ;
31616 PyObject * obj1 = 0 ;
31617 PyObject * obj2 = 0 ;
31618 PyObject * obj3 = 0 ;
31619 PyObject * obj4 = 0 ;
31620 char * kwnames[] = {
31621 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
31622 };
31623
31624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31626 if (!SWIG_IsOK(res1)) {
31627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31628 }
31629 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31630 ecode2 = SWIG_AsVal_int(obj1, &val2);
31631 if (!SWIG_IsOK(ecode2)) {
31632 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
31633 }
31634 arg2 = static_cast< int >(val2);
31635 ecode3 = SWIG_AsVal_int(obj2, &val3);
31636 if (!SWIG_IsOK(ecode3)) {
31637 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
31638 }
31639 arg3 = static_cast< int >(val3);
31640 {
31641 arg4 = &temp4;
31642 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
31643 }
31644 if (obj4) {
31645 ecode5 = SWIG_AsVal_int(obj4, &val5);
31646 if (!SWIG_IsOK(ecode5)) {
31647 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
31648 }
31649 arg5 = static_cast< int >(val5);
31650 }
31651 {
31652 PyThreadState* __tstate = wxPyBeginAllowThreads();
31653 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
31654 wxPyEndAllowThreads(__tstate);
31655 if (PyErr_Occurred()) SWIG_fail;
31656 }
31657 resultobj = SWIG_Py_Void();
31658 return resultobj;
31659fail:
31660 return NULL;
31661}
31662
31663
31664SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31665 PyObject *resultobj = 0;
31666 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31667 wxPoint *arg2 = 0 ;
31668 wxColour *arg3 = 0 ;
31669 int arg4 = (int) wxFLOOD_SURFACE ;
31670 void *argp1 = 0 ;
31671 int res1 = 0 ;
31672 wxPoint temp2 ;
31673 wxColour temp3 ;
31674 int val4 ;
31675 int ecode4 = 0 ;
31676 PyObject * obj0 = 0 ;
31677 PyObject * obj1 = 0 ;
31678 PyObject * obj2 = 0 ;
31679 PyObject * obj3 = 0 ;
31680 char * kwnames[] = {
31681 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
31682 };
31683
31684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31686 if (!SWIG_IsOK(res1)) {
31687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31688 }
31689 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31690 {
31691 arg2 = &temp2;
31692 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31693 }
31694 {
31695 arg3 = &temp3;
31696 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31697 }
31698 if (obj3) {
31699 ecode4 = SWIG_AsVal_int(obj3, &val4);
31700 if (!SWIG_IsOK(ecode4)) {
31701 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
31702 }
31703 arg4 = static_cast< int >(val4);
31704 }
31705 {
31706 PyThreadState* __tstate = wxPyBeginAllowThreads();
31707 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
31708 wxPyEndAllowThreads(__tstate);
31709 if (PyErr_Occurred()) SWIG_fail;
31710 }
31711 resultobj = SWIG_Py_Void();
31712 return resultobj;
31713fail:
31714 return NULL;
31715}
31716
31717
31718SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31719 PyObject *resultobj = 0;
31720 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31721 int arg2 ;
31722 int arg3 ;
31723 int arg4 ;
31724 int arg5 ;
31725 void *argp1 = 0 ;
31726 int res1 = 0 ;
31727 int val2 ;
31728 int ecode2 = 0 ;
31729 int val3 ;
31730 int ecode3 = 0 ;
31731 int val4 ;
31732 int ecode4 = 0 ;
31733 int val5 ;
31734 int ecode5 = 0 ;
31735 PyObject * obj0 = 0 ;
31736 PyObject * obj1 = 0 ;
31737 PyObject * obj2 = 0 ;
31738 PyObject * obj3 = 0 ;
31739 PyObject * obj4 = 0 ;
31740 char * kwnames[] = {
31741 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
31742 };
31743
31744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31746 if (!SWIG_IsOK(res1)) {
31747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31748 }
31749 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31750 ecode2 = SWIG_AsVal_int(obj1, &val2);
31751 if (!SWIG_IsOK(ecode2)) {
31752 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
31753 }
31754 arg2 = static_cast< int >(val2);
31755 ecode3 = SWIG_AsVal_int(obj2, &val3);
31756 if (!SWIG_IsOK(ecode3)) {
31757 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
31758 }
31759 arg3 = static_cast< int >(val3);
31760 ecode4 = SWIG_AsVal_int(obj3, &val4);
31761 if (!SWIG_IsOK(ecode4)) {
31762 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
31763 }
31764 arg4 = static_cast< int >(val4);
31765 ecode5 = SWIG_AsVal_int(obj4, &val5);
31766 if (!SWIG_IsOK(ecode5)) {
31767 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
31768 }
31769 arg5 = static_cast< int >(val5);
31770 {
31771 PyThreadState* __tstate = wxPyBeginAllowThreads();
31772 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
31773 wxPyEndAllowThreads(__tstate);
31774 if (PyErr_Occurred()) SWIG_fail;
31775 }
31776 resultobj = SWIG_Py_Void();
31777 return resultobj;
31778fail:
31779 return NULL;
31780}
31781
31782
31783SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31784 PyObject *resultobj = 0;
31785 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31786 wxPoint *arg2 = 0 ;
31787 wxPoint *arg3 = 0 ;
31788 void *argp1 = 0 ;
31789 int res1 = 0 ;
31790 wxPoint temp2 ;
31791 wxPoint temp3 ;
31792 PyObject * obj0 = 0 ;
31793 PyObject * obj1 = 0 ;
31794 PyObject * obj2 = 0 ;
31795 char * kwnames[] = {
31796 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
31797 };
31798
31799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31801 if (!SWIG_IsOK(res1)) {
31802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31803 }
31804 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31805 {
31806 arg2 = &temp2;
31807 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31808 }
31809 {
31810 arg3 = &temp3;
31811 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31812 }
31813 {
31814 PyThreadState* __tstate = wxPyBeginAllowThreads();
31815 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
31816 wxPyEndAllowThreads(__tstate);
31817 if (PyErr_Occurred()) SWIG_fail;
31818 }
31819 resultobj = SWIG_Py_Void();
31820 return resultobj;
31821fail:
31822 return NULL;
31823}
31824
31825
31826SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31827 PyObject *resultobj = 0;
31828 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31829 int arg2 ;
31830 int arg3 ;
31831 void *argp1 = 0 ;
31832 int res1 = 0 ;
31833 int val2 ;
31834 int ecode2 = 0 ;
31835 int val3 ;
31836 int ecode3 = 0 ;
31837 PyObject * obj0 = 0 ;
31838 PyObject * obj1 = 0 ;
31839 PyObject * obj2 = 0 ;
31840 char * kwnames[] = {
31841 (char *) "self",(char *) "x",(char *) "y", NULL
31842 };
31843
31844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31846 if (!SWIG_IsOK(res1)) {
31847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31848 }
31849 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31850 ecode2 = SWIG_AsVal_int(obj1, &val2);
31851 if (!SWIG_IsOK(ecode2)) {
31852 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
31853 }
31854 arg2 = static_cast< int >(val2);
31855 ecode3 = SWIG_AsVal_int(obj2, &val3);
31856 if (!SWIG_IsOK(ecode3)) {
31857 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
31858 }
31859 arg3 = static_cast< int >(val3);
31860 {
31861 PyThreadState* __tstate = wxPyBeginAllowThreads();
31862 (arg1)->CrossHair(arg2,arg3);
31863 wxPyEndAllowThreads(__tstate);
31864 if (PyErr_Occurred()) SWIG_fail;
31865 }
31866 resultobj = SWIG_Py_Void();
31867 return resultobj;
31868fail:
31869 return NULL;
31870}
31871
31872
31873SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31874 PyObject *resultobj = 0;
31875 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31876 wxPoint *arg2 = 0 ;
31877 void *argp1 = 0 ;
31878 int res1 = 0 ;
31879 wxPoint temp2 ;
31880 PyObject * obj0 = 0 ;
31881 PyObject * obj1 = 0 ;
31882 char * kwnames[] = {
31883 (char *) "self",(char *) "pt", NULL
31884 };
31885
31886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
31887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31888 if (!SWIG_IsOK(res1)) {
31889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31890 }
31891 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31892 {
31893 arg2 = &temp2;
31894 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31895 }
31896 {
31897 PyThreadState* __tstate = wxPyBeginAllowThreads();
31898 (arg1)->CrossHair((wxPoint const &)*arg2);
31899 wxPyEndAllowThreads(__tstate);
31900 if (PyErr_Occurred()) SWIG_fail;
31901 }
31902 resultobj = SWIG_Py_Void();
31903 return resultobj;
31904fail:
31905 return NULL;
31906}
31907
31908
31909SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31910 PyObject *resultobj = 0;
31911 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31912 int arg2 ;
31913 int arg3 ;
31914 int arg4 ;
31915 int arg5 ;
31916 int arg6 ;
31917 int arg7 ;
31918 void *argp1 = 0 ;
31919 int res1 = 0 ;
31920 int val2 ;
31921 int ecode2 = 0 ;
31922 int val3 ;
31923 int ecode3 = 0 ;
31924 int val4 ;
31925 int ecode4 = 0 ;
31926 int val5 ;
31927 int ecode5 = 0 ;
31928 int val6 ;
31929 int ecode6 = 0 ;
31930 int val7 ;
31931 int ecode7 = 0 ;
31932 PyObject * obj0 = 0 ;
31933 PyObject * obj1 = 0 ;
31934 PyObject * obj2 = 0 ;
31935 PyObject * obj3 = 0 ;
31936 PyObject * obj4 = 0 ;
31937 PyObject * obj5 = 0 ;
31938 PyObject * obj6 = 0 ;
31939 char * kwnames[] = {
31940 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
31941 };
31942
31943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31945 if (!SWIG_IsOK(res1)) {
31946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31947 }
31948 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31949 ecode2 = SWIG_AsVal_int(obj1, &val2);
31950 if (!SWIG_IsOK(ecode2)) {
31951 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
31952 }
31953 arg2 = static_cast< int >(val2);
31954 ecode3 = SWIG_AsVal_int(obj2, &val3);
31955 if (!SWIG_IsOK(ecode3)) {
31956 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
31957 }
31958 arg3 = static_cast< int >(val3);
31959 ecode4 = SWIG_AsVal_int(obj3, &val4);
31960 if (!SWIG_IsOK(ecode4)) {
31961 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
31962 }
31963 arg4 = static_cast< int >(val4);
31964 ecode5 = SWIG_AsVal_int(obj4, &val5);
31965 if (!SWIG_IsOK(ecode5)) {
31966 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
31967 }
31968 arg5 = static_cast< int >(val5);
31969 ecode6 = SWIG_AsVal_int(obj5, &val6);
31970 if (!SWIG_IsOK(ecode6)) {
31971 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
31972 }
31973 arg6 = static_cast< int >(val6);
31974 ecode7 = SWIG_AsVal_int(obj6, &val7);
31975 if (!SWIG_IsOK(ecode7)) {
31976 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
31977 }
31978 arg7 = static_cast< int >(val7);
31979 {
31980 PyThreadState* __tstate = wxPyBeginAllowThreads();
31981 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
31982 wxPyEndAllowThreads(__tstate);
31983 if (PyErr_Occurred()) SWIG_fail;
31984 }
31985 resultobj = SWIG_Py_Void();
31986 return resultobj;
31987fail:
31988 return NULL;
31989}
31990
31991
31992SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31993 PyObject *resultobj = 0;
31994 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31995 wxPoint *arg2 = 0 ;
31996 wxPoint *arg3 = 0 ;
31997 wxPoint *arg4 = 0 ;
31998 void *argp1 = 0 ;
31999 int res1 = 0 ;
32000 wxPoint temp2 ;
32001 wxPoint temp3 ;
32002 wxPoint temp4 ;
32003 PyObject * obj0 = 0 ;
32004 PyObject * obj1 = 0 ;
32005 PyObject * obj2 = 0 ;
32006 PyObject * obj3 = 0 ;
32007 char * kwnames[] = {
32008 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
32009 };
32010
32011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32013 if (!SWIG_IsOK(res1)) {
32014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32015 }
32016 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32017 {
32018 arg2 = &temp2;
32019 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32020 }
32021 {
32022 arg3 = &temp3;
32023 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
32024 }
32025 {
32026 arg4 = &temp4;
32027 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
32028 }
32029 {
32030 PyThreadState* __tstate = wxPyBeginAllowThreads();
32031 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
32032 wxPyEndAllowThreads(__tstate);
32033 if (PyErr_Occurred()) SWIG_fail;
32034 }
32035 resultobj = SWIG_Py_Void();
32036 return resultobj;
32037fail:
32038 return NULL;
32039}
32040
32041
32042SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32043 PyObject *resultobj = 0;
32044 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32045 int arg2 ;
32046 int arg3 ;
32047 int arg4 ;
32048 int arg5 ;
32049 void *argp1 = 0 ;
32050 int res1 = 0 ;
32051 int val2 ;
32052 int ecode2 = 0 ;
32053 int val3 ;
32054 int ecode3 = 0 ;
32055 int val4 ;
32056 int ecode4 = 0 ;
32057 int val5 ;
32058 int ecode5 = 0 ;
32059 PyObject * obj0 = 0 ;
32060 PyObject * obj1 = 0 ;
32061 PyObject * obj2 = 0 ;
32062 PyObject * obj3 = 0 ;
32063 PyObject * obj4 = 0 ;
32064 char * kwnames[] = {
32065 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
32066 };
32067
32068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32070 if (!SWIG_IsOK(res1)) {
32071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32072 }
32073 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32074 ecode2 = SWIG_AsVal_int(obj1, &val2);
32075 if (!SWIG_IsOK(ecode2)) {
32076 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
32077 }
32078 arg2 = static_cast< int >(val2);
32079 ecode3 = SWIG_AsVal_int(obj2, &val3);
32080 if (!SWIG_IsOK(ecode3)) {
32081 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
32082 }
32083 arg3 = static_cast< int >(val3);
32084 ecode4 = SWIG_AsVal_int(obj3, &val4);
32085 if (!SWIG_IsOK(ecode4)) {
32086 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
32087 }
32088 arg4 = static_cast< int >(val4);
32089 ecode5 = SWIG_AsVal_int(obj4, &val5);
32090 if (!SWIG_IsOK(ecode5)) {
32091 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
32092 }
32093 arg5 = static_cast< int >(val5);
32094 {
32095 PyThreadState* __tstate = wxPyBeginAllowThreads();
32096 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
32097 wxPyEndAllowThreads(__tstate);
32098 if (PyErr_Occurred()) SWIG_fail;
32099 }
32100 resultobj = SWIG_Py_Void();
32101 return resultobj;
32102fail:
32103 return NULL;
32104}
32105
32106
32107SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32108 PyObject *resultobj = 0;
32109 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32110 wxRect *arg2 = 0 ;
32111 void *argp1 = 0 ;
32112 int res1 = 0 ;
32113 wxRect temp2 ;
32114 PyObject * obj0 = 0 ;
32115 PyObject * obj1 = 0 ;
32116 char * kwnames[] = {
32117 (char *) "self",(char *) "rect", NULL
32118 };
32119
32120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
32121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32122 if (!SWIG_IsOK(res1)) {
32123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32124 }
32125 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32126 {
32127 arg2 = &temp2;
32128 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
32129 }
32130 {
32131 PyThreadState* __tstate = wxPyBeginAllowThreads();
32132 (arg1)->DrawCheckMark((wxRect const &)*arg2);
32133 wxPyEndAllowThreads(__tstate);
32134 if (PyErr_Occurred()) SWIG_fail;
32135 }
32136 resultobj = SWIG_Py_Void();
32137 return resultobj;
32138fail:
32139 return NULL;
32140}
32141
32142
32143SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32144 PyObject *resultobj = 0;
32145 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32146 int arg2 ;
32147 int arg3 ;
32148 int arg4 ;
32149 int arg5 ;
32150 double arg6 ;
32151 double arg7 ;
32152 void *argp1 = 0 ;
32153 int res1 = 0 ;
32154 int val2 ;
32155 int ecode2 = 0 ;
32156 int val3 ;
32157 int ecode3 = 0 ;
32158 int val4 ;
32159 int ecode4 = 0 ;
32160 int val5 ;
32161 int ecode5 = 0 ;
32162 double val6 ;
32163 int ecode6 = 0 ;
32164 double val7 ;
32165 int ecode7 = 0 ;
32166 PyObject * obj0 = 0 ;
32167 PyObject * obj1 = 0 ;
32168 PyObject * obj2 = 0 ;
32169 PyObject * obj3 = 0 ;
32170 PyObject * obj4 = 0 ;
32171 PyObject * obj5 = 0 ;
32172 PyObject * obj6 = 0 ;
32173 char * kwnames[] = {
32174 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
32175 };
32176
32177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32179 if (!SWIG_IsOK(res1)) {
32180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32181 }
32182 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32183 ecode2 = SWIG_AsVal_int(obj1, &val2);
32184 if (!SWIG_IsOK(ecode2)) {
32185 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
32186 }
32187 arg2 = static_cast< int >(val2);
32188 ecode3 = SWIG_AsVal_int(obj2, &val3);
32189 if (!SWIG_IsOK(ecode3)) {
32190 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
32191 }
32192 arg3 = static_cast< int >(val3);
32193 ecode4 = SWIG_AsVal_int(obj3, &val4);
32194 if (!SWIG_IsOK(ecode4)) {
32195 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
32196 }
32197 arg4 = static_cast< int >(val4);
32198 ecode5 = SWIG_AsVal_int(obj4, &val5);
32199 if (!SWIG_IsOK(ecode5)) {
32200 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
32201 }
32202 arg5 = static_cast< int >(val5);
32203 ecode6 = SWIG_AsVal_double(obj5, &val6);
32204 if (!SWIG_IsOK(ecode6)) {
32205 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
32206 }
32207 arg6 = static_cast< double >(val6);
32208 ecode7 = SWIG_AsVal_double(obj6, &val7);
32209 if (!SWIG_IsOK(ecode7)) {
32210 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
32211 }
32212 arg7 = static_cast< double >(val7);
32213 {
32214 PyThreadState* __tstate = wxPyBeginAllowThreads();
32215 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
32216 wxPyEndAllowThreads(__tstate);
32217 if (PyErr_Occurred()) SWIG_fail;
32218 }
32219 resultobj = SWIG_Py_Void();
32220 return resultobj;
32221fail:
32222 return NULL;
32223}
32224
32225
32226SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32227 PyObject *resultobj = 0;
32228 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32229 wxPoint *arg2 = 0 ;
32230 wxSize *arg3 = 0 ;
32231 double arg4 ;
32232 double arg5 ;
32233 void *argp1 = 0 ;
32234 int res1 = 0 ;
32235 wxPoint temp2 ;
32236 wxSize temp3 ;
32237 double val4 ;
32238 int ecode4 = 0 ;
32239 double val5 ;
32240 int ecode5 = 0 ;
32241 PyObject * obj0 = 0 ;
32242 PyObject * obj1 = 0 ;
32243 PyObject * obj2 = 0 ;
32244 PyObject * obj3 = 0 ;
32245 PyObject * obj4 = 0 ;
32246 char * kwnames[] = {
32247 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
32248 };
32249
32250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32252 if (!SWIG_IsOK(res1)) {
32253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32254 }
32255 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32256 {
32257 arg2 = &temp2;
32258 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32259 }
32260 {
32261 arg3 = &temp3;
32262 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
32263 }
32264 ecode4 = SWIG_AsVal_double(obj3, &val4);
32265 if (!SWIG_IsOK(ecode4)) {
32266 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
32267 }
32268 arg4 = static_cast< double >(val4);
32269 ecode5 = SWIG_AsVal_double(obj4, &val5);
32270 if (!SWIG_IsOK(ecode5)) {
32271 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
32272 }
32273 arg5 = static_cast< double >(val5);
32274 {
32275 PyThreadState* __tstate = wxPyBeginAllowThreads();
32276 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
32277 wxPyEndAllowThreads(__tstate);
32278 if (PyErr_Occurred()) SWIG_fail;
32279 }
32280 resultobj = SWIG_Py_Void();
32281 return resultobj;
32282fail:
32283 return NULL;
32284}
32285
32286
32287SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32288 PyObject *resultobj = 0;
32289 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32290 int arg2 ;
32291 int arg3 ;
32292 void *argp1 = 0 ;
32293 int res1 = 0 ;
32294 int val2 ;
32295 int ecode2 = 0 ;
32296 int val3 ;
32297 int ecode3 = 0 ;
32298 PyObject * obj0 = 0 ;
32299 PyObject * obj1 = 0 ;
32300 PyObject * obj2 = 0 ;
32301 char * kwnames[] = {
32302 (char *) "self",(char *) "x",(char *) "y", NULL
32303 };
32304
32305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32307 if (!SWIG_IsOK(res1)) {
32308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32309 }
32310 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32311 ecode2 = SWIG_AsVal_int(obj1, &val2);
32312 if (!SWIG_IsOK(ecode2)) {
32313 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
32314 }
32315 arg2 = static_cast< int >(val2);
32316 ecode3 = SWIG_AsVal_int(obj2, &val3);
32317 if (!SWIG_IsOK(ecode3)) {
32318 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
32319 }
32320 arg3 = static_cast< int >(val3);
32321 {
32322 PyThreadState* __tstate = wxPyBeginAllowThreads();
32323 (arg1)->DrawPoint(arg2,arg3);
32324 wxPyEndAllowThreads(__tstate);
32325 if (PyErr_Occurred()) SWIG_fail;
32326 }
32327 resultobj = SWIG_Py_Void();
32328 return resultobj;
32329fail:
32330 return NULL;
32331}
32332
32333
32334SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32335 PyObject *resultobj = 0;
32336 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32337 wxPoint *arg2 = 0 ;
32338 void *argp1 = 0 ;
32339 int res1 = 0 ;
32340 wxPoint temp2 ;
32341 PyObject * obj0 = 0 ;
32342 PyObject * obj1 = 0 ;
32343 char * kwnames[] = {
32344 (char *) "self",(char *) "pt", NULL
32345 };
32346
32347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
32348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32349 if (!SWIG_IsOK(res1)) {
32350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32351 }
32352 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32353 {
32354 arg2 = &temp2;
32355 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32356 }
32357 {
32358 PyThreadState* __tstate = wxPyBeginAllowThreads();
32359 (arg1)->DrawPoint((wxPoint const &)*arg2);
32360 wxPyEndAllowThreads(__tstate);
32361 if (PyErr_Occurred()) SWIG_fail;
32362 }
32363 resultobj = SWIG_Py_Void();
32364 return resultobj;
32365fail:
32366 return NULL;
32367}
32368
32369
32370SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32371 PyObject *resultobj = 0;
32372 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32373 int arg2 ;
32374 int arg3 ;
32375 int arg4 ;
32376 int arg5 ;
32377 void *argp1 = 0 ;
32378 int res1 = 0 ;
32379 int val2 ;
32380 int ecode2 = 0 ;
32381 int val3 ;
32382 int ecode3 = 0 ;
32383 int val4 ;
32384 int ecode4 = 0 ;
32385 int val5 ;
32386 int ecode5 = 0 ;
32387 PyObject * obj0 = 0 ;
32388 PyObject * obj1 = 0 ;
32389 PyObject * obj2 = 0 ;
32390 PyObject * obj3 = 0 ;
32391 PyObject * obj4 = 0 ;
32392 char * kwnames[] = {
32393 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
32394 };
32395
32396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32398 if (!SWIG_IsOK(res1)) {
32399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32400 }
32401 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32402 ecode2 = SWIG_AsVal_int(obj1, &val2);
32403 if (!SWIG_IsOK(ecode2)) {
32404 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
32405 }
32406 arg2 = static_cast< int >(val2);
32407 ecode3 = SWIG_AsVal_int(obj2, &val3);
32408 if (!SWIG_IsOK(ecode3)) {
32409 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
32410 }
32411 arg3 = static_cast< int >(val3);
32412 ecode4 = SWIG_AsVal_int(obj3, &val4);
32413 if (!SWIG_IsOK(ecode4)) {
32414 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
32415 }
32416 arg4 = static_cast< int >(val4);
32417 ecode5 = SWIG_AsVal_int(obj4, &val5);
32418 if (!SWIG_IsOK(ecode5)) {
32419 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
32420 }
32421 arg5 = static_cast< int >(val5);
32422 {
32423 PyThreadState* __tstate = wxPyBeginAllowThreads();
32424 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
32425 wxPyEndAllowThreads(__tstate);
32426 if (PyErr_Occurred()) SWIG_fail;
32427 }
32428 resultobj = SWIG_Py_Void();
32429 return resultobj;
32430fail:
32431 return NULL;
32432}
32433
32434
32435SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32436 PyObject *resultobj = 0;
32437 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32438 wxRect *arg2 = 0 ;
32439 void *argp1 = 0 ;
32440 int res1 = 0 ;
32441 wxRect temp2 ;
32442 PyObject * obj0 = 0 ;
32443 PyObject * obj1 = 0 ;
32444 char * kwnames[] = {
32445 (char *) "self",(char *) "rect", NULL
32446 };
32447
32448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
32449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32450 if (!SWIG_IsOK(res1)) {
32451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32452 }
32453 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32454 {
32455 arg2 = &temp2;
32456 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
32457 }
32458 {
32459 PyThreadState* __tstate = wxPyBeginAllowThreads();
32460 (arg1)->DrawRectangle((wxRect const &)*arg2);
32461 wxPyEndAllowThreads(__tstate);
32462 if (PyErr_Occurred()) SWIG_fail;
32463 }
32464 resultobj = SWIG_Py_Void();
32465 return resultobj;
32466fail:
32467 return NULL;
32468}
32469
32470
32471SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32472 PyObject *resultobj = 0;
32473 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32474 wxPoint *arg2 = 0 ;
32475 wxSize *arg3 = 0 ;
32476 void *argp1 = 0 ;
32477 int res1 = 0 ;
32478 wxPoint temp2 ;
32479 wxSize temp3 ;
32480 PyObject * obj0 = 0 ;
32481 PyObject * obj1 = 0 ;
32482 PyObject * obj2 = 0 ;
32483 char * kwnames[] = {
32484 (char *) "self",(char *) "pt",(char *) "sz", NULL
32485 };
32486
32487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32489 if (!SWIG_IsOK(res1)) {
32490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32491 }
32492 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32493 {
32494 arg2 = &temp2;
32495 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32496 }
32497 {
32498 arg3 = &temp3;
32499 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
32500 }
32501 {
32502 PyThreadState* __tstate = wxPyBeginAllowThreads();
32503 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
32504 wxPyEndAllowThreads(__tstate);
32505 if (PyErr_Occurred()) SWIG_fail;
32506 }
32507 resultobj = SWIG_Py_Void();
32508 return resultobj;
32509fail:
32510 return NULL;
32511}
32512
32513
32514SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32515 PyObject *resultobj = 0;
32516 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32517 int arg2 ;
32518 int arg3 ;
32519 int arg4 ;
32520 int arg5 ;
32521 double arg6 ;
32522 void *argp1 = 0 ;
32523 int res1 = 0 ;
32524 int val2 ;
32525 int ecode2 = 0 ;
32526 int val3 ;
32527 int ecode3 = 0 ;
32528 int val4 ;
32529 int ecode4 = 0 ;
32530 int val5 ;
32531 int ecode5 = 0 ;
32532 double val6 ;
32533 int ecode6 = 0 ;
32534 PyObject * obj0 = 0 ;
32535 PyObject * obj1 = 0 ;
32536 PyObject * obj2 = 0 ;
32537 PyObject * obj3 = 0 ;
32538 PyObject * obj4 = 0 ;
32539 PyObject * obj5 = 0 ;
32540 char * kwnames[] = {
32541 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
32542 };
32543
32544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
32545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32546 if (!SWIG_IsOK(res1)) {
32547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32548 }
32549 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32550 ecode2 = SWIG_AsVal_int(obj1, &val2);
32551 if (!SWIG_IsOK(ecode2)) {
32552 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
32553 }
32554 arg2 = static_cast< int >(val2);
32555 ecode3 = SWIG_AsVal_int(obj2, &val3);
32556 if (!SWIG_IsOK(ecode3)) {
32557 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
32558 }
32559 arg3 = static_cast< int >(val3);
32560 ecode4 = SWIG_AsVal_int(obj3, &val4);
32561 if (!SWIG_IsOK(ecode4)) {
32562 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
32563 }
32564 arg4 = static_cast< int >(val4);
32565 ecode5 = SWIG_AsVal_int(obj4, &val5);
32566 if (!SWIG_IsOK(ecode5)) {
32567 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
32568 }
32569 arg5 = static_cast< int >(val5);
32570 ecode6 = SWIG_AsVal_double(obj5, &val6);
32571 if (!SWIG_IsOK(ecode6)) {
32572 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
32573 }
32574 arg6 = static_cast< double >(val6);
32575 {
32576 PyThreadState* __tstate = wxPyBeginAllowThreads();
32577 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
32578 wxPyEndAllowThreads(__tstate);
32579 if (PyErr_Occurred()) SWIG_fail;
32580 }
32581 resultobj = SWIG_Py_Void();
32582 return resultobj;
32583fail:
32584 return NULL;
32585}
32586
32587
32588SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32589 PyObject *resultobj = 0;
32590 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32591 wxRect *arg2 = 0 ;
32592 double arg3 ;
32593 void *argp1 = 0 ;
32594 int res1 = 0 ;
32595 wxRect temp2 ;
32596 double val3 ;
32597 int ecode3 = 0 ;
32598 PyObject * obj0 = 0 ;
32599 PyObject * obj1 = 0 ;
32600 PyObject * obj2 = 0 ;
32601 char * kwnames[] = {
32602 (char *) "self",(char *) "r",(char *) "radius", NULL
32603 };
32604
32605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32607 if (!SWIG_IsOK(res1)) {
32608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32609 }
32610 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32611 {
32612 arg2 = &temp2;
32613 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
32614 }
32615 ecode3 = SWIG_AsVal_double(obj2, &val3);
32616 if (!SWIG_IsOK(ecode3)) {
32617 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
32618 }
32619 arg3 = static_cast< double >(val3);
32620 {
32621 PyThreadState* __tstate = wxPyBeginAllowThreads();
32622 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
32623 wxPyEndAllowThreads(__tstate);
32624 if (PyErr_Occurred()) SWIG_fail;
32625 }
32626 resultobj = SWIG_Py_Void();
32627 return resultobj;
32628fail:
32629 return NULL;
32630}
32631
32632
32633SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32634 PyObject *resultobj = 0;
32635 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32636 wxPoint *arg2 = 0 ;
32637 wxSize *arg3 = 0 ;
32638 double arg4 ;
32639 void *argp1 = 0 ;
32640 int res1 = 0 ;
32641 wxPoint temp2 ;
32642 wxSize temp3 ;
32643 double val4 ;
32644 int ecode4 = 0 ;
32645 PyObject * obj0 = 0 ;
32646 PyObject * obj1 = 0 ;
32647 PyObject * obj2 = 0 ;
32648 PyObject * obj3 = 0 ;
32649 char * kwnames[] = {
32650 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
32651 };
32652
32653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32655 if (!SWIG_IsOK(res1)) {
32656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32657 }
32658 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32659 {
32660 arg2 = &temp2;
32661 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32662 }
32663 {
32664 arg3 = &temp3;
32665 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
32666 }
32667 ecode4 = SWIG_AsVal_double(obj3, &val4);
32668 if (!SWIG_IsOK(ecode4)) {
32669 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
32670 }
32671 arg4 = static_cast< double >(val4);
32672 {
32673 PyThreadState* __tstate = wxPyBeginAllowThreads();
32674 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
32675 wxPyEndAllowThreads(__tstate);
32676 if (PyErr_Occurred()) SWIG_fail;
32677 }
32678 resultobj = SWIG_Py_Void();
32679 return resultobj;
32680fail:
32681 return NULL;
32682}
32683
32684
32685SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32686 PyObject *resultobj = 0;
32687 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32688 int arg2 ;
32689 int arg3 ;
32690 int arg4 ;
32691 void *argp1 = 0 ;
32692 int res1 = 0 ;
32693 int val2 ;
32694 int ecode2 = 0 ;
32695 int val3 ;
32696 int ecode3 = 0 ;
32697 int val4 ;
32698 int ecode4 = 0 ;
32699 PyObject * obj0 = 0 ;
32700 PyObject * obj1 = 0 ;
32701 PyObject * obj2 = 0 ;
32702 PyObject * obj3 = 0 ;
32703 char * kwnames[] = {
32704 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
32705 };
32706
32707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32709 if (!SWIG_IsOK(res1)) {
32710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32711 }
32712 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32713 ecode2 = SWIG_AsVal_int(obj1, &val2);
32714 if (!SWIG_IsOK(ecode2)) {
32715 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
32716 }
32717 arg2 = static_cast< int >(val2);
32718 ecode3 = SWIG_AsVal_int(obj2, &val3);
32719 if (!SWIG_IsOK(ecode3)) {
32720 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
32721 }
32722 arg3 = static_cast< int >(val3);
32723 ecode4 = SWIG_AsVal_int(obj3, &val4);
32724 if (!SWIG_IsOK(ecode4)) {
32725 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
32726 }
32727 arg4 = static_cast< int >(val4);
32728 {
32729 PyThreadState* __tstate = wxPyBeginAllowThreads();
32730 (arg1)->DrawCircle(arg2,arg3,arg4);
32731 wxPyEndAllowThreads(__tstate);
32732 if (PyErr_Occurred()) SWIG_fail;
32733 }
32734 resultobj = SWIG_Py_Void();
32735 return resultobj;
32736fail:
32737 return NULL;
32738}
32739
32740
32741SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32742 PyObject *resultobj = 0;
32743 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32744 wxPoint *arg2 = 0 ;
32745 int arg3 ;
32746 void *argp1 = 0 ;
32747 int res1 = 0 ;
32748 wxPoint temp2 ;
32749 int val3 ;
32750 int ecode3 = 0 ;
32751 PyObject * obj0 = 0 ;
32752 PyObject * obj1 = 0 ;
32753 PyObject * obj2 = 0 ;
32754 char * kwnames[] = {
32755 (char *) "self",(char *) "pt",(char *) "radius", NULL
32756 };
32757
32758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32760 if (!SWIG_IsOK(res1)) {
32761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32762 }
32763 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32764 {
32765 arg2 = &temp2;
32766 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32767 }
32768 ecode3 = SWIG_AsVal_int(obj2, &val3);
32769 if (!SWIG_IsOK(ecode3)) {
32770 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
32771 }
32772 arg3 = static_cast< int >(val3);
32773 {
32774 PyThreadState* __tstate = wxPyBeginAllowThreads();
32775 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
32776 wxPyEndAllowThreads(__tstate);
32777 if (PyErr_Occurred()) SWIG_fail;
32778 }
32779 resultobj = SWIG_Py_Void();
32780 return resultobj;
32781fail:
32782 return NULL;
32783}
32784
32785
32786SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32787 PyObject *resultobj = 0;
32788 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32789 int arg2 ;
32790 int arg3 ;
32791 int arg4 ;
32792 int arg5 ;
32793 void *argp1 = 0 ;
32794 int res1 = 0 ;
32795 int val2 ;
32796 int ecode2 = 0 ;
32797 int val3 ;
32798 int ecode3 = 0 ;
32799 int val4 ;
32800 int ecode4 = 0 ;
32801 int val5 ;
32802 int ecode5 = 0 ;
32803 PyObject * obj0 = 0 ;
32804 PyObject * obj1 = 0 ;
32805 PyObject * obj2 = 0 ;
32806 PyObject * obj3 = 0 ;
32807 PyObject * obj4 = 0 ;
32808 char * kwnames[] = {
32809 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
32810 };
32811
32812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32814 if (!SWIG_IsOK(res1)) {
32815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32816 }
32817 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32818 ecode2 = SWIG_AsVal_int(obj1, &val2);
32819 if (!SWIG_IsOK(ecode2)) {
32820 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
32821 }
32822 arg2 = static_cast< int >(val2);
32823 ecode3 = SWIG_AsVal_int(obj2, &val3);
32824 if (!SWIG_IsOK(ecode3)) {
32825 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
32826 }
32827 arg3 = static_cast< int >(val3);
32828 ecode4 = SWIG_AsVal_int(obj3, &val4);
32829 if (!SWIG_IsOK(ecode4)) {
32830 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
32831 }
32832 arg4 = static_cast< int >(val4);
32833 ecode5 = SWIG_AsVal_int(obj4, &val5);
32834 if (!SWIG_IsOK(ecode5)) {
32835 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
32836 }
32837 arg5 = static_cast< int >(val5);
32838 {
32839 PyThreadState* __tstate = wxPyBeginAllowThreads();
32840 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
32841 wxPyEndAllowThreads(__tstate);
32842 if (PyErr_Occurred()) SWIG_fail;
32843 }
32844 resultobj = SWIG_Py_Void();
32845 return resultobj;
32846fail:
32847 return NULL;
32848}
32849
32850
32851SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32852 PyObject *resultobj = 0;
32853 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32854 wxRect *arg2 = 0 ;
32855 void *argp1 = 0 ;
32856 int res1 = 0 ;
32857 wxRect temp2 ;
32858 PyObject * obj0 = 0 ;
32859 PyObject * obj1 = 0 ;
32860 char * kwnames[] = {
32861 (char *) "self",(char *) "rect", NULL
32862 };
32863
32864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
32865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32866 if (!SWIG_IsOK(res1)) {
32867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32868 }
32869 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32870 {
32871 arg2 = &temp2;
32872 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
32873 }
32874 {
32875 PyThreadState* __tstate = wxPyBeginAllowThreads();
32876 (arg1)->DrawEllipse((wxRect const &)*arg2);
32877 wxPyEndAllowThreads(__tstate);
32878 if (PyErr_Occurred()) SWIG_fail;
32879 }
32880 resultobj = SWIG_Py_Void();
32881 return resultobj;
32882fail:
32883 return NULL;
32884}
32885
32886
32887SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32888 PyObject *resultobj = 0;
32889 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32890 wxPoint *arg2 = 0 ;
32891 wxSize *arg3 = 0 ;
32892 void *argp1 = 0 ;
32893 int res1 = 0 ;
32894 wxPoint temp2 ;
32895 wxSize temp3 ;
32896 PyObject * obj0 = 0 ;
32897 PyObject * obj1 = 0 ;
32898 PyObject * obj2 = 0 ;
32899 char * kwnames[] = {
32900 (char *) "self",(char *) "pt",(char *) "sz", NULL
32901 };
32902
32903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32905 if (!SWIG_IsOK(res1)) {
32906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32907 }
32908 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32909 {
32910 arg2 = &temp2;
32911 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32912 }
32913 {
32914 arg3 = &temp3;
32915 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
32916 }
32917 {
32918 PyThreadState* __tstate = wxPyBeginAllowThreads();
32919 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
32920 wxPyEndAllowThreads(__tstate);
32921 if (PyErr_Occurred()) SWIG_fail;
32922 }
32923 resultobj = SWIG_Py_Void();
32924 return resultobj;
32925fail:
32926 return NULL;
32927}
32928
32929
32930SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32931 PyObject *resultobj = 0;
32932 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32933 wxIcon *arg2 = 0 ;
32934 int arg3 ;
32935 int arg4 ;
32936 void *argp1 = 0 ;
32937 int res1 = 0 ;
32938 void *argp2 = 0 ;
32939 int res2 = 0 ;
32940 int val3 ;
32941 int ecode3 = 0 ;
32942 int val4 ;
32943 int ecode4 = 0 ;
32944 PyObject * obj0 = 0 ;
32945 PyObject * obj1 = 0 ;
32946 PyObject * obj2 = 0 ;
32947 PyObject * obj3 = 0 ;
32948 char * kwnames[] = {
32949 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
32950 };
32951
32952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32954 if (!SWIG_IsOK(res1)) {
32955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32956 }
32957 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32958 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
32959 if (!SWIG_IsOK(res2)) {
32960 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
32961 }
32962 if (!argp2) {
32963 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
32964 }
32965 arg2 = reinterpret_cast< wxIcon * >(argp2);
32966 ecode3 = SWIG_AsVal_int(obj2, &val3);
32967 if (!SWIG_IsOK(ecode3)) {
32968 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
32969 }
32970 arg3 = static_cast< int >(val3);
32971 ecode4 = SWIG_AsVal_int(obj3, &val4);
32972 if (!SWIG_IsOK(ecode4)) {
32973 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
32974 }
32975 arg4 = static_cast< int >(val4);
32976 {
32977 PyThreadState* __tstate = wxPyBeginAllowThreads();
32978 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
32979 wxPyEndAllowThreads(__tstate);
32980 if (PyErr_Occurred()) SWIG_fail;
32981 }
32982 resultobj = SWIG_Py_Void();
32983 return resultobj;
32984fail:
32985 return NULL;
32986}
32987
32988
32989SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32990 PyObject *resultobj = 0;
32991 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32992 wxIcon *arg2 = 0 ;
32993 wxPoint *arg3 = 0 ;
32994 void *argp1 = 0 ;
32995 int res1 = 0 ;
32996 void *argp2 = 0 ;
32997 int res2 = 0 ;
32998 wxPoint temp3 ;
32999 PyObject * obj0 = 0 ;
33000 PyObject * obj1 = 0 ;
33001 PyObject * obj2 = 0 ;
33002 char * kwnames[] = {
33003 (char *) "self",(char *) "icon",(char *) "pt", NULL
33004 };
33005
33006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33008 if (!SWIG_IsOK(res1)) {
33009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33010 }
33011 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33012 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
33013 if (!SWIG_IsOK(res2)) {
33014 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
33015 }
33016 if (!argp2) {
33017 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
33018 }
33019 arg2 = reinterpret_cast< wxIcon * >(argp2);
33020 {
33021 arg3 = &temp3;
33022 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33023 }
33024 {
33025 PyThreadState* __tstate = wxPyBeginAllowThreads();
33026 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
33027 wxPyEndAllowThreads(__tstate);
33028 if (PyErr_Occurred()) SWIG_fail;
33029 }
33030 resultobj = SWIG_Py_Void();
33031 return resultobj;
33032fail:
33033 return NULL;
33034}
33035
33036
33037SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33038 PyObject *resultobj = 0;
33039 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33040 wxBitmap *arg2 = 0 ;
33041 int arg3 ;
33042 int arg4 ;
33043 bool arg5 = (bool) false ;
33044 void *argp1 = 0 ;
33045 int res1 = 0 ;
33046 void *argp2 = 0 ;
33047 int res2 = 0 ;
33048 int val3 ;
33049 int ecode3 = 0 ;
33050 int val4 ;
33051 int ecode4 = 0 ;
33052 bool val5 ;
33053 int ecode5 = 0 ;
33054 PyObject * obj0 = 0 ;
33055 PyObject * obj1 = 0 ;
33056 PyObject * obj2 = 0 ;
33057 PyObject * obj3 = 0 ;
33058 PyObject * obj4 = 0 ;
33059 char * kwnames[] = {
33060 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
33061 };
33062
33063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33065 if (!SWIG_IsOK(res1)) {
33066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33067 }
33068 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33069 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
33070 if (!SWIG_IsOK(res2)) {
33071 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33072 }
33073 if (!argp2) {
33074 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33075 }
33076 arg2 = reinterpret_cast< wxBitmap * >(argp2);
33077 ecode3 = SWIG_AsVal_int(obj2, &val3);
33078 if (!SWIG_IsOK(ecode3)) {
33079 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
33080 }
33081 arg3 = static_cast< int >(val3);
33082 ecode4 = SWIG_AsVal_int(obj3, &val4);
33083 if (!SWIG_IsOK(ecode4)) {
33084 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
33085 }
33086 arg4 = static_cast< int >(val4);
33087 if (obj4) {
33088 ecode5 = SWIG_AsVal_bool(obj4, &val5);
33089 if (!SWIG_IsOK(ecode5)) {
33090 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
33091 }
33092 arg5 = static_cast< bool >(val5);
33093 }
33094 {
33095 PyThreadState* __tstate = wxPyBeginAllowThreads();
33096 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
33097 wxPyEndAllowThreads(__tstate);
33098 if (PyErr_Occurred()) SWIG_fail;
33099 }
33100 resultobj = SWIG_Py_Void();
33101 return resultobj;
33102fail:
33103 return NULL;
33104}
33105
33106
33107SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33108 PyObject *resultobj = 0;
33109 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33110 wxBitmap *arg2 = 0 ;
33111 wxPoint *arg3 = 0 ;
33112 bool arg4 = (bool) false ;
33113 void *argp1 = 0 ;
33114 int res1 = 0 ;
33115 void *argp2 = 0 ;
33116 int res2 = 0 ;
33117 wxPoint temp3 ;
33118 bool val4 ;
33119 int ecode4 = 0 ;
33120 PyObject * obj0 = 0 ;
33121 PyObject * obj1 = 0 ;
33122 PyObject * obj2 = 0 ;
33123 PyObject * obj3 = 0 ;
33124 char * kwnames[] = {
33125 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
33126 };
33127
33128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33130 if (!SWIG_IsOK(res1)) {
33131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33132 }
33133 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33134 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
33135 if (!SWIG_IsOK(res2)) {
33136 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33137 }
33138 if (!argp2) {
33139 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33140 }
33141 arg2 = reinterpret_cast< wxBitmap * >(argp2);
33142 {
33143 arg3 = &temp3;
33144 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33145 }
33146 if (obj3) {
33147 ecode4 = SWIG_AsVal_bool(obj3, &val4);
33148 if (!SWIG_IsOK(ecode4)) {
33149 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
33150 }
33151 arg4 = static_cast< bool >(val4);
33152 }
33153 {
33154 PyThreadState* __tstate = wxPyBeginAllowThreads();
33155 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
33156 wxPyEndAllowThreads(__tstate);
33157 if (PyErr_Occurred()) SWIG_fail;
33158 }
33159 resultobj = SWIG_Py_Void();
33160 return resultobj;
33161fail:
33162 return NULL;
33163}
33164
33165
33166SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33167 PyObject *resultobj = 0;
33168 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33169 wxString *arg2 = 0 ;
33170 int arg3 ;
33171 int arg4 ;
33172 void *argp1 = 0 ;
33173 int res1 = 0 ;
33174 bool temp2 = false ;
33175 int val3 ;
33176 int ecode3 = 0 ;
33177 int val4 ;
33178 int ecode4 = 0 ;
33179 PyObject * obj0 = 0 ;
33180 PyObject * obj1 = 0 ;
33181 PyObject * obj2 = 0 ;
33182 PyObject * obj3 = 0 ;
33183 char * kwnames[] = {
33184 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
33185 };
33186
33187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33189 if (!SWIG_IsOK(res1)) {
33190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33191 }
33192 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33193 {
33194 arg2 = wxString_in_helper(obj1);
33195 if (arg2 == NULL) SWIG_fail;
33196 temp2 = true;
33197 }
33198 ecode3 = SWIG_AsVal_int(obj2, &val3);
33199 if (!SWIG_IsOK(ecode3)) {
33200 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
33201 }
33202 arg3 = static_cast< int >(val3);
33203 ecode4 = SWIG_AsVal_int(obj3, &val4);
33204 if (!SWIG_IsOK(ecode4)) {
33205 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
33206 }
33207 arg4 = static_cast< int >(val4);
33208 {
33209 PyThreadState* __tstate = wxPyBeginAllowThreads();
33210 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
33211 wxPyEndAllowThreads(__tstate);
33212 if (PyErr_Occurred()) SWIG_fail;
33213 }
33214 resultobj = SWIG_Py_Void();
33215 {
33216 if (temp2)
33217 delete arg2;
33218 }
33219 return resultobj;
33220fail:
33221 {
33222 if (temp2)
33223 delete arg2;
33224 }
33225 return NULL;
33226}
33227
33228
33229SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33230 PyObject *resultobj = 0;
33231 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33232 wxString *arg2 = 0 ;
33233 wxPoint *arg3 = 0 ;
33234 void *argp1 = 0 ;
33235 int res1 = 0 ;
33236 bool temp2 = false ;
33237 wxPoint temp3 ;
33238 PyObject * obj0 = 0 ;
33239 PyObject * obj1 = 0 ;
33240 PyObject * obj2 = 0 ;
33241 char * kwnames[] = {
33242 (char *) "self",(char *) "text",(char *) "pt", NULL
33243 };
33244
33245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33247 if (!SWIG_IsOK(res1)) {
33248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33249 }
33250 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33251 {
33252 arg2 = wxString_in_helper(obj1);
33253 if (arg2 == NULL) SWIG_fail;
33254 temp2 = true;
33255 }
33256 {
33257 arg3 = &temp3;
33258 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33259 }
33260 {
33261 PyThreadState* __tstate = wxPyBeginAllowThreads();
33262 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
33263 wxPyEndAllowThreads(__tstate);
33264 if (PyErr_Occurred()) SWIG_fail;
33265 }
33266 resultobj = SWIG_Py_Void();
33267 {
33268 if (temp2)
33269 delete arg2;
33270 }
33271 return resultobj;
33272fail:
33273 {
33274 if (temp2)
33275 delete arg2;
33276 }
33277 return NULL;
33278}
33279
33280
33281SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33282 PyObject *resultobj = 0;
33283 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33284 wxString *arg2 = 0 ;
33285 int arg3 ;
33286 int arg4 ;
33287 double arg5 ;
33288 void *argp1 = 0 ;
33289 int res1 = 0 ;
33290 bool temp2 = false ;
33291 int val3 ;
33292 int ecode3 = 0 ;
33293 int val4 ;
33294 int ecode4 = 0 ;
33295 double val5 ;
33296 int ecode5 = 0 ;
33297 PyObject * obj0 = 0 ;
33298 PyObject * obj1 = 0 ;
33299 PyObject * obj2 = 0 ;
33300 PyObject * obj3 = 0 ;
33301 PyObject * obj4 = 0 ;
33302 char * kwnames[] = {
33303 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
33304 };
33305
33306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33308 if (!SWIG_IsOK(res1)) {
33309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33310 }
33311 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33312 {
33313 arg2 = wxString_in_helper(obj1);
33314 if (arg2 == NULL) SWIG_fail;
33315 temp2 = true;
33316 }
33317 ecode3 = SWIG_AsVal_int(obj2, &val3);
33318 if (!SWIG_IsOK(ecode3)) {
33319 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
33320 }
33321 arg3 = static_cast< int >(val3);
33322 ecode4 = SWIG_AsVal_int(obj3, &val4);
33323 if (!SWIG_IsOK(ecode4)) {
33324 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
33325 }
33326 arg4 = static_cast< int >(val4);
33327 ecode5 = SWIG_AsVal_double(obj4, &val5);
33328 if (!SWIG_IsOK(ecode5)) {
33329 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
33330 }
33331 arg5 = static_cast< double >(val5);
33332 {
33333 PyThreadState* __tstate = wxPyBeginAllowThreads();
33334 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
33335 wxPyEndAllowThreads(__tstate);
33336 if (PyErr_Occurred()) SWIG_fail;
33337 }
33338 resultobj = SWIG_Py_Void();
33339 {
33340 if (temp2)
33341 delete arg2;
33342 }
33343 return resultobj;
33344fail:
33345 {
33346 if (temp2)
33347 delete arg2;
33348 }
33349 return NULL;
33350}
33351
33352
33353SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33354 PyObject *resultobj = 0;
33355 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33356 wxString *arg2 = 0 ;
33357 wxPoint *arg3 = 0 ;
33358 double arg4 ;
33359 void *argp1 = 0 ;
33360 int res1 = 0 ;
33361 bool temp2 = false ;
33362 wxPoint temp3 ;
33363 double val4 ;
33364 int ecode4 = 0 ;
33365 PyObject * obj0 = 0 ;
33366 PyObject * obj1 = 0 ;
33367 PyObject * obj2 = 0 ;
33368 PyObject * obj3 = 0 ;
33369 char * kwnames[] = {
33370 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
33371 };
33372
33373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33375 if (!SWIG_IsOK(res1)) {
33376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33377 }
33378 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33379 {
33380 arg2 = wxString_in_helper(obj1);
33381 if (arg2 == NULL) SWIG_fail;
33382 temp2 = true;
33383 }
33384 {
33385 arg3 = &temp3;
33386 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33387 }
33388 ecode4 = SWIG_AsVal_double(obj3, &val4);
33389 if (!SWIG_IsOK(ecode4)) {
33390 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
33391 }
33392 arg4 = static_cast< double >(val4);
33393 {
33394 PyThreadState* __tstate = wxPyBeginAllowThreads();
33395 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
33396 wxPyEndAllowThreads(__tstate);
33397 if (PyErr_Occurred()) SWIG_fail;
33398 }
33399 resultobj = SWIG_Py_Void();
33400 {
33401 if (temp2)
33402 delete arg2;
33403 }
33404 return resultobj;
33405fail:
33406 {
33407 if (temp2)
33408 delete arg2;
33409 }
33410 return NULL;
33411}
33412
33413
33414SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33415 PyObject *resultobj = 0;
33416 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33417 int arg2 ;
33418 wxPoint *arg3 = (wxPoint *) 0 ;
33419 int arg4 = (int) 0 ;
33420 int arg5 = (int) 0 ;
33421 void *argp1 = 0 ;
33422 int res1 = 0 ;
33423 int val4 ;
33424 int ecode4 = 0 ;
33425 int val5 ;
33426 int ecode5 = 0 ;
33427 PyObject * obj0 = 0 ;
33428 PyObject * obj1 = 0 ;
33429 PyObject * obj2 = 0 ;
33430 PyObject * obj3 = 0 ;
33431 char * kwnames[] = {
33432 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
33433 };
33434
33435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33437 if (!SWIG_IsOK(res1)) {
33438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33439 }
33440 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33441 {
33442 arg3 = wxPoint_LIST_helper(obj1, &arg2);
33443 if (arg3 == NULL) SWIG_fail;
33444 }
33445 if (obj2) {
33446 ecode4 = SWIG_AsVal_int(obj2, &val4);
33447 if (!SWIG_IsOK(ecode4)) {
33448 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
33449 }
33450 arg4 = static_cast< int >(val4);
33451 }
33452 if (obj3) {
33453 ecode5 = SWIG_AsVal_int(obj3, &val5);
33454 if (!SWIG_IsOK(ecode5)) {
33455 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
33456 }
33457 arg5 = static_cast< int >(val5);
33458 }
33459 {
33460 PyThreadState* __tstate = wxPyBeginAllowThreads();
33461 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
33462 wxPyEndAllowThreads(__tstate);
33463 if (PyErr_Occurred()) SWIG_fail;
33464 }
33465 resultobj = SWIG_Py_Void();
33466 {
33467 if (arg3) delete [] arg3;
33468 }
33469 return resultobj;
33470fail:
33471 {
33472 if (arg3) delete [] arg3;
33473 }
33474 return NULL;
33475}
33476
33477
33478SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33479 PyObject *resultobj = 0;
33480 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33481 int arg2 ;
33482 wxPoint *arg3 = (wxPoint *) 0 ;
33483 int arg4 = (int) 0 ;
33484 int arg5 = (int) 0 ;
33485 int arg6 = (int) wxODDEVEN_RULE ;
33486 void *argp1 = 0 ;
33487 int res1 = 0 ;
33488 int val4 ;
33489 int ecode4 = 0 ;
33490 int val5 ;
33491 int ecode5 = 0 ;
33492 int val6 ;
33493 int ecode6 = 0 ;
33494 PyObject * obj0 = 0 ;
33495 PyObject * obj1 = 0 ;
33496 PyObject * obj2 = 0 ;
33497 PyObject * obj3 = 0 ;
33498 PyObject * obj4 = 0 ;
33499 char * kwnames[] = {
33500 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
33501 };
33502
33503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33505 if (!SWIG_IsOK(res1)) {
33506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33507 }
33508 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33509 {
33510 arg3 = wxPoint_LIST_helper(obj1, &arg2);
33511 if (arg3 == NULL) SWIG_fail;
33512 }
33513 if (obj2) {
33514 ecode4 = SWIG_AsVal_int(obj2, &val4);
33515 if (!SWIG_IsOK(ecode4)) {
33516 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
33517 }
33518 arg4 = static_cast< int >(val4);
33519 }
33520 if (obj3) {
33521 ecode5 = SWIG_AsVal_int(obj3, &val5);
33522 if (!SWIG_IsOK(ecode5)) {
33523 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
33524 }
33525 arg5 = static_cast< int >(val5);
33526 }
33527 if (obj4) {
33528 ecode6 = SWIG_AsVal_int(obj4, &val6);
33529 if (!SWIG_IsOK(ecode6)) {
33530 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
33531 }
33532 arg6 = static_cast< int >(val6);
33533 }
33534 {
33535 PyThreadState* __tstate = wxPyBeginAllowThreads();
33536 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
33537 wxPyEndAllowThreads(__tstate);
33538 if (PyErr_Occurred()) SWIG_fail;
33539 }
33540 resultobj = SWIG_Py_Void();
33541 {
33542 if (arg3) delete [] arg3;
33543 }
33544 return resultobj;
33545fail:
33546 {
33547 if (arg3) delete [] arg3;
33548 }
33549 return NULL;
33550}
33551
33552
33553SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33554 PyObject *resultobj = 0;
33555 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33556 wxString *arg2 = 0 ;
33557 wxRect *arg3 = 0 ;
33558 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
33559 int arg5 = (int) -1 ;
33560 void *argp1 = 0 ;
33561 int res1 = 0 ;
33562 bool temp2 = false ;
33563 wxRect temp3 ;
33564 int val4 ;
33565 int ecode4 = 0 ;
33566 int val5 ;
33567 int ecode5 = 0 ;
33568 PyObject * obj0 = 0 ;
33569 PyObject * obj1 = 0 ;
33570 PyObject * obj2 = 0 ;
33571 PyObject * obj3 = 0 ;
33572 PyObject * obj4 = 0 ;
33573 char * kwnames[] = {
33574 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
33575 };
33576
33577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33579 if (!SWIG_IsOK(res1)) {
33580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33581 }
33582 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33583 {
33584 arg2 = wxString_in_helper(obj1);
33585 if (arg2 == NULL) SWIG_fail;
33586 temp2 = true;
33587 }
33588 {
33589 arg3 = &temp3;
33590 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
33591 }
33592 if (obj3) {
33593 ecode4 = SWIG_AsVal_int(obj3, &val4);
33594 if (!SWIG_IsOK(ecode4)) {
33595 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
33596 }
33597 arg4 = static_cast< int >(val4);
33598 }
33599 if (obj4) {
33600 ecode5 = SWIG_AsVal_int(obj4, &val5);
33601 if (!SWIG_IsOK(ecode5)) {
33602 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
33603 }
33604 arg5 = static_cast< int >(val5);
33605 }
33606 {
33607 PyThreadState* __tstate = wxPyBeginAllowThreads();
33608 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
33609 wxPyEndAllowThreads(__tstate);
33610 if (PyErr_Occurred()) SWIG_fail;
33611 }
33612 resultobj = SWIG_Py_Void();
33613 {
33614 if (temp2)
33615 delete arg2;
33616 }
33617 return resultobj;
33618fail:
33619 {
33620 if (temp2)
33621 delete arg2;
33622 }
33623 return NULL;
33624}
33625
33626
33627SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33628 PyObject *resultobj = 0;
33629 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33630 wxString *arg2 = 0 ;
33631 wxBitmap *arg3 = 0 ;
33632 wxRect *arg4 = 0 ;
33633 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
33634 int arg6 = (int) -1 ;
33635 void *argp1 = 0 ;
33636 int res1 = 0 ;
33637 bool temp2 = false ;
33638 void *argp3 = 0 ;
33639 int res3 = 0 ;
33640 wxRect temp4 ;
33641 int val5 ;
33642 int ecode5 = 0 ;
33643 int val6 ;
33644 int ecode6 = 0 ;
33645 PyObject * obj0 = 0 ;
33646 PyObject * obj1 = 0 ;
33647 PyObject * obj2 = 0 ;
33648 PyObject * obj3 = 0 ;
33649 PyObject * obj4 = 0 ;
33650 PyObject * obj5 = 0 ;
33651 char * kwnames[] = {
33652 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
33653 };
33654
33655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33657 if (!SWIG_IsOK(res1)) {
33658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33659 }
33660 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33661 {
33662 arg2 = wxString_in_helper(obj1);
33663 if (arg2 == NULL) SWIG_fail;
33664 temp2 = true;
33665 }
33666 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
33667 if (!SWIG_IsOK(res3)) {
33668 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
33669 }
33670 if (!argp3) {
33671 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
33672 }
33673 arg3 = reinterpret_cast< wxBitmap * >(argp3);
33674 {
33675 arg4 = &temp4;
33676 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
33677 }
33678 if (obj4) {
33679 ecode5 = SWIG_AsVal_int(obj4, &val5);
33680 if (!SWIG_IsOK(ecode5)) {
33681 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
33682 }
33683 arg5 = static_cast< int >(val5);
33684 }
33685 if (obj5) {
33686 ecode6 = SWIG_AsVal_int(obj5, &val6);
33687 if (!SWIG_IsOK(ecode6)) {
33688 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
33689 }
33690 arg6 = static_cast< int >(val6);
33691 }
33692 {
33693 PyThreadState* __tstate = wxPyBeginAllowThreads();
33694 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
33695 wxPyEndAllowThreads(__tstate);
33696 if (PyErr_Occurred()) SWIG_fail;
33697 }
33698 resultobj = SWIG_Py_Void();
33699 {
33700 if (temp2)
33701 delete arg2;
33702 }
33703 return resultobj;
33704fail:
33705 {
33706 if (temp2)
33707 delete arg2;
33708 }
33709 return NULL;
33710}
33711
33712
33713SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33714 PyObject *resultobj = 0;
33715 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33716 int arg2 ;
33717 wxPoint *arg3 = (wxPoint *) 0 ;
33718 void *argp1 = 0 ;
33719 int res1 = 0 ;
33720 PyObject * obj0 = 0 ;
33721 PyObject * obj1 = 0 ;
33722 char * kwnames[] = {
33723 (char *) "self",(char *) "points", NULL
33724 };
33725
33726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
33727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33728 if (!SWIG_IsOK(res1)) {
33729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33730 }
33731 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33732 {
33733 arg3 = wxPoint_LIST_helper(obj1, &arg2);
33734 if (arg3 == NULL) SWIG_fail;
33735 }
33736 {
33737 PyThreadState* __tstate = wxPyBeginAllowThreads();
33738 (arg1)->DrawSpline(arg2,arg3);
33739 wxPyEndAllowThreads(__tstate);
33740 if (PyErr_Occurred()) SWIG_fail;
33741 }
33742 resultobj = SWIG_Py_Void();
33743 {
33744 if (arg3) delete [] arg3;
33745 }
33746 return resultobj;
33747fail:
33748 {
33749 if (arg3) delete [] arg3;
33750 }
33751 return NULL;
33752}
33753
33754
33755SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33756 PyObject *resultobj = 0;
33757 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33758 void *argp1 = 0 ;
33759 int res1 = 0 ;
33760 PyObject *swig_obj[1] ;
33761
33762 if (!args) SWIG_fail;
33763 swig_obj[0] = args;
33764 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33765 if (!SWIG_IsOK(res1)) {
33766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33767 }
33768 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33769 {
33770 PyThreadState* __tstate = wxPyBeginAllowThreads();
33771 (arg1)->Clear();
33772 wxPyEndAllowThreads(__tstate);
33773 if (PyErr_Occurred()) SWIG_fail;
33774 }
33775 resultobj = SWIG_Py_Void();
33776 return resultobj;
33777fail:
33778 return NULL;
33779}
33780
33781
33782SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33783 PyObject *resultobj = 0;
33784 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33785 wxFont *arg2 = 0 ;
33786 void *argp1 = 0 ;
33787 int res1 = 0 ;
33788 void *argp2 = 0 ;
33789 int res2 = 0 ;
33790 PyObject * obj0 = 0 ;
33791 PyObject * obj1 = 0 ;
33792 char * kwnames[] = {
33793 (char *) "self",(char *) "font", NULL
33794 };
33795
33796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
33797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33798 if (!SWIG_IsOK(res1)) {
33799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33800 }
33801 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33802 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
33803 if (!SWIG_IsOK(res2)) {
33804 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
33805 }
33806 if (!argp2) {
33807 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
33808 }
33809 arg2 = reinterpret_cast< wxFont * >(argp2);
33810 {
33811 PyThreadState* __tstate = wxPyBeginAllowThreads();
33812 (arg1)->SetFont((wxFont const &)*arg2);
33813 wxPyEndAllowThreads(__tstate);
33814 if (PyErr_Occurred()) SWIG_fail;
33815 }
33816 resultobj = SWIG_Py_Void();
33817 return resultobj;
33818fail:
33819 return NULL;
33820}
33821
33822
33823SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33824 PyObject *resultobj = 0;
33825 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33826 wxPen *arg2 = 0 ;
33827 void *argp1 = 0 ;
33828 int res1 = 0 ;
33829 void *argp2 = 0 ;
33830 int res2 = 0 ;
33831 PyObject * obj0 = 0 ;
33832 PyObject * obj1 = 0 ;
33833 char * kwnames[] = {
33834 (char *) "self",(char *) "pen", NULL
33835 };
33836
33837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
33838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33839 if (!SWIG_IsOK(res1)) {
33840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33841 }
33842 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33843 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
33844 if (!SWIG_IsOK(res2)) {
33845 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
33846 }
33847 if (!argp2) {
33848 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
33849 }
33850 arg2 = reinterpret_cast< wxPen * >(argp2);
33851 {
33852 PyThreadState* __tstate = wxPyBeginAllowThreads();
33853 (arg1)->SetPen((wxPen const &)*arg2);
33854 wxPyEndAllowThreads(__tstate);
33855 if (PyErr_Occurred()) SWIG_fail;
33856 }
33857 resultobj = SWIG_Py_Void();
33858 return resultobj;
33859fail:
33860 return NULL;
33861}
33862
33863
33864SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33865 PyObject *resultobj = 0;
33866 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33867 wxBrush *arg2 = 0 ;
33868 void *argp1 = 0 ;
33869 int res1 = 0 ;
33870 void *argp2 = 0 ;
33871 int res2 = 0 ;
33872 PyObject * obj0 = 0 ;
33873 PyObject * obj1 = 0 ;
33874 char * kwnames[] = {
33875 (char *) "self",(char *) "brush", NULL
33876 };
33877
33878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
33879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33880 if (!SWIG_IsOK(res1)) {
33881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33882 }
33883 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33884 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
33885 if (!SWIG_IsOK(res2)) {
33886 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
33887 }
33888 if (!argp2) {
33889 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
33890 }
33891 arg2 = reinterpret_cast< wxBrush * >(argp2);
33892 {
33893 PyThreadState* __tstate = wxPyBeginAllowThreads();
33894 (arg1)->SetBrush((wxBrush const &)*arg2);
33895 wxPyEndAllowThreads(__tstate);
33896 if (PyErr_Occurred()) SWIG_fail;
33897 }
33898 resultobj = SWIG_Py_Void();
33899 return resultobj;
33900fail:
33901 return NULL;
33902}
33903
33904
33905SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33906 PyObject *resultobj = 0;
33907 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33908 wxBrush *arg2 = 0 ;
33909 void *argp1 = 0 ;
33910 int res1 = 0 ;
33911 void *argp2 = 0 ;
33912 int res2 = 0 ;
33913 PyObject * obj0 = 0 ;
33914 PyObject * obj1 = 0 ;
33915 char * kwnames[] = {
33916 (char *) "self",(char *) "brush", NULL
33917 };
33918
33919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
33920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33921 if (!SWIG_IsOK(res1)) {
33922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33923 }
33924 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33925 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
33926 if (!SWIG_IsOK(res2)) {
33927 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
33928 }
33929 if (!argp2) {
33930 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
33931 }
33932 arg2 = reinterpret_cast< wxBrush * >(argp2);
33933 {
33934 PyThreadState* __tstate = wxPyBeginAllowThreads();
33935 (arg1)->SetBackground((wxBrush const &)*arg2);
33936 wxPyEndAllowThreads(__tstate);
33937 if (PyErr_Occurred()) SWIG_fail;
33938 }
33939 resultobj = SWIG_Py_Void();
33940 return resultobj;
33941fail:
33942 return NULL;
33943}
33944
33945
33946SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33947 PyObject *resultobj = 0;
33948 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33949 int arg2 ;
33950 void *argp1 = 0 ;
33951 int res1 = 0 ;
33952 int val2 ;
33953 int ecode2 = 0 ;
33954 PyObject * obj0 = 0 ;
33955 PyObject * obj1 = 0 ;
33956 char * kwnames[] = {
33957 (char *) "self",(char *) "mode", NULL
33958 };
33959
33960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
33961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33962 if (!SWIG_IsOK(res1)) {
33963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33964 }
33965 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33966 ecode2 = SWIG_AsVal_int(obj1, &val2);
33967 if (!SWIG_IsOK(ecode2)) {
33968 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
33969 }
33970 arg2 = static_cast< int >(val2);
33971 {
33972 PyThreadState* __tstate = wxPyBeginAllowThreads();
33973 (arg1)->SetBackgroundMode(arg2);
33974 wxPyEndAllowThreads(__tstate);
33975 if (PyErr_Occurred()) SWIG_fail;
33976 }
33977 resultobj = SWIG_Py_Void();
33978 return resultobj;
33979fail:
33980 return NULL;
33981}
33982
33983
33984SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33985 PyObject *resultobj = 0;
33986 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33987 wxPalette *arg2 = 0 ;
33988 void *argp1 = 0 ;
33989 int res1 = 0 ;
33990 void *argp2 = 0 ;
33991 int res2 = 0 ;
33992 PyObject * obj0 = 0 ;
33993 PyObject * obj1 = 0 ;
33994 char * kwnames[] = {
33995 (char *) "self",(char *) "palette", NULL
33996 };
33997
33998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
33999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34000 if (!SWIG_IsOK(res1)) {
34001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34002 }
34003 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34004 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
34005 if (!SWIG_IsOK(res2)) {
34006 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
34007 }
34008 if (!argp2) {
34009 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
34010 }
34011 arg2 = reinterpret_cast< wxPalette * >(argp2);
34012 {
34013 PyThreadState* __tstate = wxPyBeginAllowThreads();
34014 (arg1)->SetPalette((wxPalette const &)*arg2);
34015 wxPyEndAllowThreads(__tstate);
34016 if (PyErr_Occurred()) SWIG_fail;
34017 }
34018 resultobj = SWIG_Py_Void();
34019 return resultobj;
34020fail:
34021 return NULL;
34022}
34023
34024
34025SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34026 PyObject *resultobj = 0;
34027 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34028 wxColour *arg2 = 0 ;
34029 void *argp1 = 0 ;
34030 int res1 = 0 ;
34031 wxColour temp2 ;
34032 PyObject * obj0 = 0 ;
34033 PyObject * obj1 = 0 ;
34034 char * kwnames[] = {
34035 (char *) "self",(char *) "colour", NULL
34036 };
34037
34038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
34039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34040 if (!SWIG_IsOK(res1)) {
34041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34042 }
34043 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34044 {
34045 arg2 = &temp2;
34046 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34047 }
34048 {
34049 PyThreadState* __tstate = wxPyBeginAllowThreads();
34050 (arg1)->SetTextForeground((wxColour const &)*arg2);
34051 wxPyEndAllowThreads(__tstate);
34052 if (PyErr_Occurred()) SWIG_fail;
34053 }
34054 resultobj = SWIG_Py_Void();
34055 return resultobj;
34056fail:
34057 return NULL;
34058}
34059
34060
34061SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34062 PyObject *resultobj = 0;
34063 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34064 wxColour *arg2 = 0 ;
34065 void *argp1 = 0 ;
34066 int res1 = 0 ;
34067 wxColour temp2 ;
34068 PyObject * obj0 = 0 ;
34069 PyObject * obj1 = 0 ;
34070 char * kwnames[] = {
34071 (char *) "self",(char *) "colour", NULL
34072 };
34073
34074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
34075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34076 if (!SWIG_IsOK(res1)) {
34077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34078 }
34079 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34080 {
34081 arg2 = &temp2;
34082 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34083 }
34084 {
34085 PyThreadState* __tstate = wxPyBeginAllowThreads();
34086 (arg1)->SetTextBackground((wxColour const &)*arg2);
34087 wxPyEndAllowThreads(__tstate);
34088 if (PyErr_Occurred()) SWIG_fail;
34089 }
34090 resultobj = SWIG_Py_Void();
34091 return resultobj;
34092fail:
34093 return NULL;
34094}
34095
34096
34097SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34098 PyObject *resultobj = 0;
34099 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34100 int arg2 ;
34101 void *argp1 = 0 ;
34102 int res1 = 0 ;
34103 int val2 ;
34104 int ecode2 = 0 ;
34105 PyObject * obj0 = 0 ;
34106 PyObject * obj1 = 0 ;
34107 char * kwnames[] = {
34108 (char *) "self",(char *) "function", NULL
34109 };
34110
34111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
34112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34113 if (!SWIG_IsOK(res1)) {
34114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34115 }
34116 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34117 ecode2 = SWIG_AsVal_int(obj1, &val2);
34118 if (!SWIG_IsOK(ecode2)) {
34119 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
34120 }
34121 arg2 = static_cast< int >(val2);
34122 {
34123 PyThreadState* __tstate = wxPyBeginAllowThreads();
34124 (arg1)->SetLogicalFunction(arg2);
34125 wxPyEndAllowThreads(__tstate);
34126 if (PyErr_Occurred()) SWIG_fail;
34127 }
34128 resultobj = SWIG_Py_Void();
34129 return resultobj;
34130fail:
34131 return NULL;
34132}
34133
34134
34135SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34136 PyObject *obj;
34137 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34138 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
34139 return SWIG_Py_Void();
34140}
34141
34142SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34143 return SWIG_Python_InitShadowInstance(args);
34144}
34145
34146static PyMethodDef SwigMethods[] = {
34147 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
34148 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
34149 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
34150 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
34151 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
34152 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
34153 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
34154 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
34155 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
34156 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
34157 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
34158 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
fc46b7f3 34159 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
b39fe951 34160 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
27e45892
RD
34161 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34162 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
34163 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
34164 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
34165 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
34166 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
34167 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
fc46b7f3 34168 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
34169 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
34170 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
34171 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
34172 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
34173 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
34174 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
34175 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
34176 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
b39fe951 34177 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
27e45892
RD
34178 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
34179 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
34180 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
34181 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
34182 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
34183 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
34184 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
34185 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
34186 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
b39fe951 34187 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
27e45892
RD
34188 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
34189 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
34190 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
34191 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34192 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
34193 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
34194 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
34195 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
34196 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
34197 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
34198 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34199 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
34200 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
34201 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
34202 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34203 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
34204 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
34205 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34206 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
34207 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
34208 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
34209 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
34210 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
b39fe951 34211 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
27e45892
RD
34212 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
34213 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
34214 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34215 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
34216 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34217 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34218 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
34219 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
34220 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 34221 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
27e45892
RD
34222 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
34223 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
34224 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
34225 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
34226 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
34227 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
34228 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
34229 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
34230 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34231 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
34232 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
34233 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
34234 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34235 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
34236 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
34237 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
34238 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
34239 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
34240 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34241 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
34242 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
34243 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
34244 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
34245 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
34246 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
34247 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
34248 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
34249 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
34250 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
34251 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
34252 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
34253 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
34254 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
34255 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
34256 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
34257 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
34258 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
34259 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
34260 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
34261 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
34262 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
34263 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
34264 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
34265 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
34266 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
34267 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
34268 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34269 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
34270 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
34271 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
34272 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
34273 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
34274 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
34275 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
34276 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
34277 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
34278 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
34279 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
34280 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
34281 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
34282 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
34283 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
34284 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
34285 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
34286 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
34287 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
34288 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34289 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
34290 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
34291 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
27e45892
RD
34292 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
34293 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
34294 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
34295 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
34296 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
34297 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
34298 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
34299 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
34300 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34301 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
34302 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 34303 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
27e45892
RD
34304 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
34305 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
34306 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
34307 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
34308 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
34309 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
34310 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34311 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
34312 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
34313 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
34314 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
34315 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
34316 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
34317 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
34318 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
34319 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
34320 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
34321 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
34322 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
34323 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
34324 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34325 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
34326 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34327 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
34328 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34329 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
34330 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
34331 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
34332 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
34333 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
34334 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 34335 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
27e45892
RD
34336 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
34337 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
34338 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
34339 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34340 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
34341 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
34342 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
34343 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
34344 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
34345 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
34346 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34347 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
34348 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
34349 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
34350 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
34351 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
34352 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34353 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
f5263701 34354 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
34355 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
34356 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
34357 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34358 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
34359 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
34360 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34361 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
34362 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
34363 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34364 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
34365 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34366 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
34367 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
34368 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
34369 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
34370 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
34371 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
34372 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
34373 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
34374 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
34375 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
34376 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
34377 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
34378 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
34379 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
34380 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
34381 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
34382 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
34383 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
34384 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
34385 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
34386 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
34387 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
34388 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
34389 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
34390 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
34391 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
34392 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
34393 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
34394 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
34395 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34396 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34397 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
34398 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
34399 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
34400 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
34401 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34402 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
34403 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
34404 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
34405 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
34406 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
34407 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
34408 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
34409 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
34410 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
34411 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
34412 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
34413 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
34414 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
34415 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
34416 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
34417 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
34418 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
34419 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34420 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34421 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
34422 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
34423 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
34424 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34425 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34426 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
34427 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34428 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
34429 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
34430 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
34431 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
34432 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
34433 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34434 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
34435 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
34436 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
34437 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
34438 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
34439 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
34440 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
34441 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34442 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
34443 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
34444 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
34445 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 34446 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
27e45892 34447 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
34448 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34449 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
34450 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
34451 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
34452 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
34453 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
34454 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
34455 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
34456 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
34457 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
34458 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
34459 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
34460 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
34461 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
34462 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34463 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
34464 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
34465 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34466 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
34467 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
34468 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
34469 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34470 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34471 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
34472 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
34473 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
34474 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
34475 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
34476 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
34477 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
34478 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
34479 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34480 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
34481 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
34482 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
34483 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
34484 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34485 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
34486 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
34487 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
34488 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
34489 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
34490 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
34491 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
34492 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
34493 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
34494 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
34495 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
34496 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
34497 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
34498 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
34499 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
34500 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
34501 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
34502 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
34503 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
34504 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
34505 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
34506 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
34507 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
34508 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
34509 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
34510 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
34511 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
34512 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b 34513 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
34514 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
34515 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34516 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
34517 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34518 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
34519 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
34520 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
34521 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
34522 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
34523 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
34524 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
34525 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34526 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
34527 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
34528 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
34529 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
0085ce49
RD
34530 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
34531 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
34532 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
34533 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
34534 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
34535 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
34536 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
34537 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
34538 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
34539 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
34540 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
34541 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
34542 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
34543 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34544 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
34545 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
34546 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
34547 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34548 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
34549 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
34550 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
34551 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34552 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
34553 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34554 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
34555 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
34556 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
34557 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34558 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34559 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34560 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34561 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
34562 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34563 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34564 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
34565 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34566 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
34567 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
34568 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
34569 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
34570 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34571 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34572 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34573 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34574 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34575 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
34576 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34577 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
34578 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34579 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
34580 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34581 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34582 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34583 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34584 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
34585 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
34586 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
34587 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
34588 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
34589 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
34590 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
34591 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
34592 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
34593 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
34594 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
34595 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
34596 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
34597 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
34598 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
34599 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
34600 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
34601 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
34602 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
34603 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
34604 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
34605 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
34606 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
34607 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
34608 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
34609 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
34610 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
34611 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
34612 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
34613 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
34614 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
34615 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
34616 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
34617 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
34618 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
34619 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
34620 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
34621 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
34622 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
34623 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
34624 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
34625 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
b39fe951 34626 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
0085ce49
RD
34627 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
34628 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
34629 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
34630 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
34631 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
34632 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
34633 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
34634 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
34635 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
34636 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
34637 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
34638 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
34639 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
34640 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
34641 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
34642 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
34643 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
34644 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
34645 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34646 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
34647 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
34648 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
34649 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34650 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
34651 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
34652 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
34653 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
34654 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
34655 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34656 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
34657 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
34658 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
34659 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
34660 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
34661 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
b39fe951
RD
34662 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
34663 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
34664 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
34665 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
34666 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
34667 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
34668 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
34669 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
34670 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
8e99bda9 34671 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
34672 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
34673 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
34674 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
34675 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
34676 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
34677 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
34678 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
34679 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
34680 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
34681 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
34682 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
34683 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
34684 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
34685 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
34686 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
34687 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
34688 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
34689 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
72ef6efb
RD
34690 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
34691 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
34692 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
0085ce49
RD
34693 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
34694 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
34695 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
34696 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
34697 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
34698 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
8e99bda9 34699 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
34700 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
34701 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
34702 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
34703 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
34704 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
34705 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
34706 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
34707 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
34708 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
34709 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
34710 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
34711 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
34712 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
34713 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
34714 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
34715 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
34716 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
34717 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
34718 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
72ef6efb
RD
34719 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
34720 { (char *)"GraphicsPath_MoveToPoint", (PyCFunction) _wrap_GraphicsPath_MoveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34721 { (char *)"GraphicsPath_AddLineToPoint", (PyCFunction) _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34722 { (char *)"GraphicsPath_AddCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34723 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
34724 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
34725 { (char *)"GraphicsPath_AddArc", (PyCFunction) _wrap_GraphicsPath_AddArc, METH_VARARGS | METH_KEYWORDS, NULL},
34726 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34727 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34728 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
34729 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34730 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
34731 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
34732 { (char *)"GraphicsContext_Create", (PyCFunction) _wrap_GraphicsContext_Create, METH_VARARGS | METH_KEYWORDS, NULL},
34733 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
34734 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
34735 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
34736 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
34737 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
34738 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
34739 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
34740 { (char *)"GraphicsContext_SetPen", (PyCFunction) _wrap_GraphicsContext_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
34741 { (char *)"GraphicsContext_SetBrush", (PyCFunction) _wrap_GraphicsContext_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
34742 { (char *)"GraphicsContext_SetLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_SetLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
34743 { (char *)"GraphicsContext_SetRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_SetRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
34744 { (char *)"GraphicsContext_SetFont", (PyCFunction) _wrap_GraphicsContext_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
34745 { (char *)"GraphicsContext_SetTextColor", (PyCFunction) _wrap_GraphicsContext_SetTextColor, METH_VARARGS | METH_KEYWORDS, NULL},
34746 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
34747 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
34748 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951
RD
34749 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
34750 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
34751 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
34752 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
34753 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34754 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34755 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 34756 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
f8eb59b9 34757 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
34758 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
34759 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34760 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
34761 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34762 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
34763 { (char *)"new_GCDC", (PyCFunction) _wrap_new_GCDC, METH_VARARGS | METH_KEYWORDS, NULL},
34764 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
34765 { (char *)"GCDC_GetGraphicContext", (PyCFunction)_wrap_GCDC_GetGraphicContext, METH_O, NULL},
34766 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
34767 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
b39fe951
RD
34768 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
34769 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
34770 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
34771 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
34772 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
34773 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
34774 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
34775 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
34776 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
34777 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
0085ce49
RD
34778 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
34779 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
34780 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
34781 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
34782 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34783 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34784 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34785 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
34786 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
34787 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
34788 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
34789 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
34790 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
34791 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
34792 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
50efceee
RD
34793 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
34794 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
34795 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
34796 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
34797 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
34798 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
34799 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
34800 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
34801 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
34802 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
34803 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
34804 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
34805 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
34806 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
34807 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
0085ce49 34808 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
50efceee 34809 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49 34810 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49 34811 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
0085ce49 34812 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
50efceee 34813 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49 34814 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49 34815 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
50efceee
RD
34816 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
34817 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
34818 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
34819 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
0085ce49
RD
34820 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
34821 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
34822 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
34823 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
34824 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
34825 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
34826 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
34827 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
50efceee
RD
34828 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
34829 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
34830 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
34831 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
0085ce49
RD
34832 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
34833 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
34834 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
34835 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
34836 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
34837 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
34838 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
34839 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
34840 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
34841 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
34842 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
34843 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34844 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
34845 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34846 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
34847 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
34848 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
34849 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
34850 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
34851 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
34852 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
34853 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
34854 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
33d6fd3b
RD
34855 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
34856 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
34857 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
34858 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
34859 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
34860 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
34861 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
34862 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
34863 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
34864 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
34865 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
34866 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
34867 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
34868 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
34869 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
34870 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
34871 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
34872 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
0085ce49
RD
34873 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
34874 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
34875 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
34876 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
34877 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
34878 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
34879 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
34880 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b
RD
34881 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
34882 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
34883 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
34884 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
34885 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
34886 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
34887 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
01f6b6d3
RD
34888 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
34889 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
34890 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
0085ce49
RD
34891 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
34892 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
34893 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
34894 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
34895 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34896 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
34897 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
27e45892
RD
34898 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
34899 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
34900 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
34901 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
34902 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
34903 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
34904 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
34905 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
34906 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
34907 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
34908 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
34909 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
34910 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
34911 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
34912 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
34913 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
34914 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
34915 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
34916 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
34917 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
34918 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
34919 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34920 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
34921 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
34922 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
34923 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34924 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
34925 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34926 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
34927 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
34928 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
34929 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34930 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34931 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34932 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34933 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
34934 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34935 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
34936 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
34937 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34938 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
34939 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
34940 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
34941 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
34942 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34943 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34944 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34945 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34946 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34947 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
34948 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34949 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
34950 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34951 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
34952 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
34953 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
34954 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
34955 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
34956 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
34957 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
34958 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
34959 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
34960 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
34961 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
34962 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
34963 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
34964 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
34965 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
34966 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
34967 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
0085ce49
RD
34968 { NULL, NULL, 0, NULL }
34969};
34970
34971
34972/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
34973
72ef6efb
RD
34974static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
34975 return (void *)((wxClientDC *) ((wxPaintDC *) x));
34976}
8e99bda9
RD
34977static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
34978 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
34979}
34980static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
34981 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
34982}
72ef6efb
RD
34983static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
34984 return (void *)((wxWindowDC *) ((wxClientDC *) x));
34985}
34986static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
34987 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
34988}
fc46b7f3
RD
34989static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
34990 return (void *)((wxLocale *) ((wxPyLocale *) x));
34991}
0085ce49
RD
34992static void *_p_wxIconTo_p_wxGDIObject(void *x) {
34993 return (void *)((wxGDIObject *) ((wxIcon *) x));
34994}
34995static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
34996 return (void *)((wxGDIObject *) ((wxPalette *) x));
34997}
34998static void *_p_wxPenTo_p_wxGDIObject(void *x) {
34999 return (void *)((wxGDIObject *) ((wxPen *) x));
35000}
35001static void *_p_wxFontTo_p_wxGDIObject(void *x) {
35002 return (void *)((wxGDIObject *) ((wxFont *) x));
35003}
35004static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
35005 return (void *)((wxGDIObject *) ((wxCursor *) x));
35006}
35007static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
35008 return (void *)((wxGDIObject *) ((wxBitmap *) x));
35009}
35010static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
35011 return (void *)((wxGDIObject *) ((wxRegion *) x));
35012}
35013static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
35014 return (void *)((wxGDIObject *) ((wxBrush *) x));
35015}
72ef6efb
RD
35016static void *_p_wxGCDCTo_p_wxDC(void *x) {
35017 return (void *)((wxDC *) ((wxGCDC *) x));
35018}
0085ce49 35019static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
8e99bda9 35020 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
0085ce49
RD
35021}
35022static void *_p_wxScreenDCTo_p_wxDC(void *x) {
35023 return (void *)((wxDC *) ((wxScreenDC *) x));
35024}
35025static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
35026 return (void *)((wxDC *) ((wxMirrorDC *) x));
35027}
35028static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
35029 return (void *)((wxDC *) ((wxMemoryDC *) x));
35030}
35031static void *_p_wxWindowDCTo_p_wxDC(void *x) {
35032 return (void *)((wxDC *) ((wxWindowDC *) x));
35033}
35034static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
35035 return (void *)((wxDC *) ((wxMetaFileDC *) x));
35036}
35037static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
8e99bda9 35038 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
0085ce49
RD
35039}
35040static void *_p_wxClientDCTo_p_wxDC(void *x) {
72ef6efb 35041 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
0085ce49
RD
35042}
35043static void *_p_wxPaintDCTo_p_wxDC(void *x) {
72ef6efb 35044 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
0085ce49
RD
35045}
35046static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
35047 return (void *)((wxDC *) ((wxPostScriptDC *) x));
35048}
35049static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
35050 return (void *)((wxDC *) ((wxPrinterDC *) x));
35051}
50efceee
RD
35052static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
35053 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
35054}
35055static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
35056 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
35057}
35058static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
35059 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
35060}
0085ce49
RD
35061static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
35062 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
35063}
35064static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
35065 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
35066}
35067static void *_p_wxPenTo_p_wxObject(void *x) {
35068 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
35069}
35070static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
35071 return (void *)((wxObject *) ((wxRegionIterator *) x));
35072}
0085ce49
RD
35073static void *_p_wxSizerItemTo_p_wxObject(void *x) {
35074 return (void *)((wxObject *) ((wxSizerItem *) x));
35075}
34e0a3bb
RD
35076static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
35077 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
35078}
0085ce49
RD
35079static void *_p_wxScrollEventTo_p_wxObject(void *x) {
35080 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
35081}
35082static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
35083 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
35084}
35085static void *_p_wxIconTo_p_wxObject(void *x) {
35086 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
35087}
35088static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
35089 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
35090}
35091static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
35092 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
35093}
35094static void *_p_wxSizerTo_p_wxObject(void *x) {
35095 return (void *)((wxObject *) ((wxSizer *) x));
35096}
35097static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
35098 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
35099}
35100static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
35101 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
35102}
0085ce49
RD
35103static void *_p_wxEventTo_p_wxObject(void *x) {
35104 return (void *)((wxObject *) ((wxEvent *) x));
35105}
35106static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
35107 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
35108}
35109static void *_p_wxGridSizerTo_p_wxObject(void *x) {
35110 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
35111}
35112static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
35113 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
35114}
27e45892
RD
35115static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
35116 return (void *)((wxObject *) ((wxPseudoDC *) x));
35117}
2131d850
RD
35118static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
35119 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
35120}
0085ce49
RD
35121static void *_p_wxPaintEventTo_p_wxObject(void *x) {
35122 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
35123}
35124static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
35125 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
35126}
35127static void *_p_wxDCTo_p_wxObject(void *x) {
35128 return (void *)((wxObject *) ((wxDC *) x));
35129}
35130static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
35131 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
35132}
35133static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
35134 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
35135}
35136static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
35137 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
35138}
35139static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
35140 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
35141}
35142static void *_p_wxControlTo_p_wxObject(void *x) {
35143 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
35144}
35145static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
35146 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
35147}
35148static void *_p_wxClientDCTo_p_wxObject(void *x) {
72ef6efb 35149 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
0085ce49
RD
35150}
35151static void *_p_wxFSFileTo_p_wxObject(void *x) {
35152 return (void *)((wxObject *) ((wxFSFile *) x));
35153}
35154static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
35155 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
35156}
35157static void *_p_wxRegionTo_p_wxObject(void *x) {
35158 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
35159}
35160static void *_p_wxPySizerTo_p_wxObject(void *x) {
35161 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
35162}
35163static void *_p_wxWindowDCTo_p_wxObject(void *x) {
35164 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
35165}
35166static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
35167 return (void *)((wxObject *) ((wxGDIObject *) x));
35168}
35169static void *_p_wxEffectsTo_p_wxObject(void *x) {
35170 return (void *)((wxObject *) ((wxEffects *) x));
35171}
35172static void *_p_wxPyEventTo_p_wxObject(void *x) {
35173 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
35174}
35175static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
35176 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
35177}
35178static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
35179 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
35180}
35181static void *_p_wxShowEventTo_p_wxObject(void *x) {
35182 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
35183}
35184static void *_p_wxMenuItemTo_p_wxObject(void *x) {
35185 return (void *)((wxObject *) ((wxMenuItem *) x));
35186}
35187static void *_p_wxDateEventTo_p_wxObject(void *x) {
35188 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
35189}
35190static void *_p_wxIdleEventTo_p_wxObject(void *x) {
35191 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
35192}
35193static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
35194 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
35195}
35196static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
35197 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
35198}
35199static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
35200 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
35201}
35202static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
35203 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
35204}
35205static void *_p_wxSizeEventTo_p_wxObject(void *x) {
35206 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
35207}
35208static void *_p_wxMoveEventTo_p_wxObject(void *x) {
35209 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
35210}
35211static void *_p_wxActivateEventTo_p_wxObject(void *x) {
35212 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
35213}
35214static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
35215 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
35216}
35217static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
35218 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
35219}
35220static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
35221 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
35222}
35223static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
35224 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
35225}
35226static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
35227 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
35228}
35229static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
35230 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
35231}
35232static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
35233 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
35234}
35235static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
35236 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
35237}
35238static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
35239 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
35240}
35241static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
35242 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
35243}
35244static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
35245 return (void *)((wxObject *) ((wxImageHandler *) x));
35246}
35247static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
35248 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
35249}
35250static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
35251 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
35252}
35253static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
35254 return (void *)((wxObject *) ((wxEvtHandler *) x));
35255}
34e0a3bb
RD
35256static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
35257 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
35258}
0085ce49 35259static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
8e99bda9 35260 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
0085ce49
RD
35261}
35262static void *_p_wxPaintDCTo_p_wxObject(void *x) {
72ef6efb 35263 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
0085ce49
RD
35264}
35265static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
35266 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
35267}
35268static void *_p_wxScreenDCTo_p_wxObject(void *x) {
35269 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
35270}
35271static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
35272 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
35273}
35274static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
35275 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
35276}
35277static void *_p_wxImageTo_p_wxObject(void *x) {
35278 return (void *)((wxObject *) ((wxImage *) x));
35279}
35280static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
35281 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
35282}
35283static void *_p_wxPaletteTo_p_wxObject(void *x) {
35284 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
35285}
35286static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
8e99bda9 35287 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
0085ce49
RD
35288}
35289static void *_p_wxImageListTo_p_wxObject(void *x) {
35290 return (void *)((wxObject *) ((wxImageList *) x));
35291}
72ef6efb
RD
35292static void *_p_wxGCDCTo_p_wxObject(void *x) {
35293 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
35294}
0085ce49
RD
35295static void *_p_wxCursorTo_p_wxObject(void *x) {
35296 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
35297}
35298static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
35299 return (void *)((wxObject *) ((wxEncodingConverter *) x));
35300}
35301static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
35302 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
35303}
35304static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
35305 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
35306}
35307static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
35308 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
35309}
35310static void *_p_wxKeyEventTo_p_wxObject(void *x) {
35311 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
35312}
35313static void *_p_wxWindowTo_p_wxObject(void *x) {
35314 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
35315}
35316static void *_p_wxMenuTo_p_wxObject(void *x) {
35317 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
35318}
35319static void *_p_wxMenuBarTo_p_wxObject(void *x) {
35320 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
35321}
35322static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
35323 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
35324}
0085ce49
RD
35325static void *_p_wxFileSystemTo_p_wxObject(void *x) {
35326 return (void *)((wxObject *) ((wxFileSystem *) x));
35327}
35328static void *_p_wxBitmapTo_p_wxObject(void *x) {
35329 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
35330}
35331static void *_p_wxMaskTo_p_wxObject(void *x) {
35332 return (void *)((wxObject *) ((wxMask *) x));
35333}
35334static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
35335 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
35336}
35337static void *_p_wxMenuEventTo_p_wxObject(void *x) {
35338 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
35339}
35340static void *_p_wxPyAppTo_p_wxObject(void *x) {
35341 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
35342}
35343static void *_p_wxCloseEventTo_p_wxObject(void *x) {
35344 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
35345}
35346static void *_p_wxMouseEventTo_p_wxObject(void *x) {
35347 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
35348}
35349static void *_p_wxEraseEventTo_p_wxObject(void *x) {
35350 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
35351}
35352static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
35353 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
35354}
35355static void *_p_wxCommandEventTo_p_wxObject(void *x) {
35356 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
35357}
35358static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
35359 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
35360}
35361static void *_p_wxFocusEventTo_p_wxObject(void *x) {
35362 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
35363}
35364static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
35365 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
35366}
35367static void *_p_wxFontTo_p_wxObject(void *x) {
35368 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
35369}
35370static void *_p_wxBrushTo_p_wxObject(void *x) {
35371 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
35372}
35373static void *_p_wxMetaFileTo_p_wxObject(void *x) {
35374 return (void *)((wxObject *) ((wxMetaFile *) x));
35375}
35376static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
35377 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
35378}
35379static void *_p_wxColourTo_p_wxObject(void *x) {
35380 return (void *)((wxObject *) ((wxColour *) x));
35381}
0085ce49
RD
35382static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
35383 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
35384}
35385static void *_p_wxValidatorTo_p_wxObject(void *x) {
35386 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
35387}
35388static void *_p_wxControlTo_p_wxWindow(void *x) {
35389 return (void *)((wxWindow *) ((wxControl *) x));
35390}
35391static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
35392 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
35393}
35394static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
35395 return (void *)((wxWindow *) ((wxMenuBar *) x));
35396}
fc46b7f3
RD
35397static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
35398 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
35399}
35400static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
35401 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
35402}
35403static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
0085ce49 35404static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
72ef6efb 35405static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
0085ce49
RD
35406static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
35407static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
35408static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
35409static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
35410static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
fc46b7f3
RD
35411static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
35412static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
0085ce49
RD
35413static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
35414static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
35415static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
35416static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
35417static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
fc46b7f3 35418static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
0085ce49 35419static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
72ef6efb 35420static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
0085ce49
RD
35421static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
35422static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
35423static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
35424static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
b39fe951 35425static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
0085ce49
RD
35426static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
35427static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
35428static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
35429static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
35430static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
35431static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
35432static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
72ef6efb 35433static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
50efceee 35434static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
0085ce49 35435static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
72ef6efb
RD
35436static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
35437static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
33d6fd3b 35438static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
0085ce49
RD
35439static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
35440static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
35441static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
35442static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
35443static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
35444static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
35445static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
35446static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
35447static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
35448static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
35449static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
35450static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
35451static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
35452static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
fc46b7f3
RD
35453static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
35454static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
0085ce49
RD
35455static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
35456static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
0085ce49 35457static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
34e0a3bb 35458static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
0085ce49
RD
35459static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
35460static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
35461static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
35462static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
35463static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
35464static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
35465static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
35466static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
35467static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
35468static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
35469static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
35470static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
2131d850 35471static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
0085ce49
RD
35472static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
35473static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
35474static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
35475static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
35476static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
35477static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
35478static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
35479static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
35480static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
35481static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
35482static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
35483static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
35484static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
35485static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
35486static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
35487static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
35488static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
35489static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
35490static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
35491static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
35492static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
35493static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
35494static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
0085ce49
RD
35495static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
35496static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
35497static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
35498static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
35499static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
35500static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
35501static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
35502static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
72ef6efb 35503static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
27e45892 35504static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
2131d850 35505static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
0085ce49
RD
35506static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
35507static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
35508static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
34e0a3bb 35509static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
0085ce49
RD
35510static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
35511static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
35512static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
35513static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
35514static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
35515static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
35516static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
35517static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
35518static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
35519static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
35520static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
35521static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
35522static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
35523static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
35524static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
35525static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
35526static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
35527static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
35528static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
35529static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
35530static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
35531static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
b39fe951 35532static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
0085ce49
RD
35533static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
35534static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
35535static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
35536static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
35537static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
fc46b7f3 35538static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
0085ce49 35539static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
72ef6efb 35540static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
0085ce49
RD
35541static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
35542static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
35543static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
27e45892 35544static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
0085ce49 35545static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
fc46b7f3 35546static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
0085ce49
RD
35547static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
35548static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
35549static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
35550static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
35551static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
35552static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
35553static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
35554static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
50efceee 35555static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
0085ce49
RD
35556static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
35557static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
35558static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
35559
35560static swig_type_info *swig_type_initial[] = {
fc46b7f3 35561 &_swigt__p_buffer,
0085ce49
RD
35562 &_swigt__p_char,
35563 &_swigt__p_double,
35564 &_swigt__p_form_ops_t,
35565 &_swigt__p_int,
35566 &_swigt__p_unsigned_char,
35567 &_swigt__p_unsigned_int,
35568 &_swigt__p_unsigned_long,
35569 &_swigt__p_wxANIHandler,
35570 &_swigt__p_wxAcceleratorTable,
35571 &_swigt__p_wxActivateEvent,
fc46b7f3
RD
35572 &_swigt__p_wxAlphaPixelData,
35573 &_swigt__p_wxAlphaPixelData_Accessor,
0085ce49
RD
35574 &_swigt__p_wxBMPHandler,
35575 &_swigt__p_wxBitmap,
35576 &_swigt__p_wxBoxSizer,
35577 &_swigt__p_wxBrush,
35578 &_swigt__p_wxBrushList,
35579 &_swigt__p_wxBufferedDC,
35580 &_swigt__p_wxBufferedPaintDC,
35581 &_swigt__p_wxCURHandler,
fc46b7f3 35582 &_swigt__p_wxChar,
0085ce49
RD
35583 &_swigt__p_wxChildFocusEvent,
35584 &_swigt__p_wxClientDC,
2131d850 35585 &_swigt__p_wxClipboardTextEvent,
0085ce49 35586 &_swigt__p_wxCloseEvent,
72ef6efb 35587 &_swigt__p_wxColor,
0085ce49
RD
35588 &_swigt__p_wxColour,
35589 &_swigt__p_wxColourDatabase,
35590 &_swigt__p_wxCommandEvent,
35591 &_swigt__p_wxContextMenuEvent,
35592 &_swigt__p_wxControl,
35593 &_swigt__p_wxControlWithItems,
35594 &_swigt__p_wxCursor,
35595 &_swigt__p_wxDC,
b39fe951 35596 &_swigt__p_wxDCOverlay,
0085ce49
RD
35597 &_swigt__p_wxDash,
35598 &_swigt__p_wxDateEvent,
35599 &_swigt__p_wxDisplayChangedEvent,
35600 &_swigt__p_wxDropFilesEvent,
35601 &_swigt__p_wxDuplexMode,
35602 &_swigt__p_wxEffects,
35603 &_swigt__p_wxEncodingConverter,
35604 &_swigt__p_wxEraseEvent,
35605 &_swigt__p_wxEvent,
35606 &_swigt__p_wxEvtHandler,
35607 &_swigt__p_wxFSFile,
35608 &_swigt__p_wxFileSystem,
35609 &_swigt__p_wxFlexGridSizer,
35610 &_swigt__p_wxFocusEvent,
35611 &_swigt__p_wxFont,
35612 &_swigt__p_wxFontList,
35613 &_swigt__p_wxFontMapper,
35614 &_swigt__p_wxGBSizerItem,
72ef6efb 35615 &_swigt__p_wxGCDC,
50efceee 35616 &_swigt__p_wxGDIObjListBase,
0085ce49
RD
35617 &_swigt__p_wxGDIObject,
35618 &_swigt__p_wxGIFHandler,
72ef6efb
RD
35619 &_swigt__p_wxGraphicsContext,
35620 &_swigt__p_wxGraphicsPath,
0085ce49
RD
35621 &_swigt__p_wxGridBagSizer,
35622 &_swigt__p_wxGridSizer,
33d6fd3b 35623 &_swigt__p_wxHeaderButtonParams,
0085ce49
RD
35624 &_swigt__p_wxICOHandler,
35625 &_swigt__p_wxIcon,
35626 &_swigt__p_wxIconBundle,
35627 &_swigt__p_wxIconLocation,
35628 &_swigt__p_wxIconizeEvent,
35629 &_swigt__p_wxIdleEvent,
35630 &_swigt__p_wxImage,
35631 &_swigt__p_wxImageHandler,
35632 &_swigt__p_wxImageList,
35633 &_swigt__p_wxIndividualLayoutConstraint,
35634 &_swigt__p_wxInitDialogEvent,
35635 &_swigt__p_wxJPEGHandler,
35636 &_swigt__p_wxKeyEvent,
35637 &_swigt__p_wxLanguageInfo,
35638 &_swigt__p_wxLayoutConstraints,
35639 &_swigt__p_wxLocale,
35640 &_swigt__p_wxMask,
35641 &_swigt__p_wxMaximizeEvent,
35642 &_swigt__p_wxMemoryDC,
35643 &_swigt__p_wxMenu,
35644 &_swigt__p_wxMenuBar,
35645 &_swigt__p_wxMenuEvent,
35646 &_swigt__p_wxMenuItem,
35647 &_swigt__p_wxMetaFile,
35648 &_swigt__p_wxMetaFileDC,
35649 &_swigt__p_wxMirrorDC,
35650 &_swigt__p_wxMouseCaptureChangedEvent,
34e0a3bb 35651 &_swigt__p_wxMouseCaptureLostEvent,
0085ce49
RD
35652 &_swigt__p_wxMouseEvent,
35653 &_swigt__p_wxMoveEvent,
35654 &_swigt__p_wxNativeEncodingInfo,
35655 &_swigt__p_wxNativeFontInfo,
fc46b7f3
RD
35656 &_swigt__p_wxNativePixelData,
35657 &_swigt__p_wxNativePixelData_Accessor,
0085ce49
RD
35658 &_swigt__p_wxNavigationKeyEvent,
35659 &_swigt__p_wxNcPaintEvent,
35660 &_swigt__p_wxNotifyEvent,
35661 &_swigt__p_wxObject,
b39fe951 35662 &_swigt__p_wxOverlay,
0085ce49
RD
35663 &_swigt__p_wxPCXHandler,
35664 &_swigt__p_wxPNGHandler,
35665 &_swigt__p_wxPNMHandler,
35666 &_swigt__p_wxPaintDC,
35667 &_swigt__p_wxPaintEvent,
35668 &_swigt__p_wxPalette,
35669 &_swigt__p_wxPaletteChangedEvent,
35670 &_swigt__p_wxPaperSize,
35671 &_swigt__p_wxPen,
35672 &_swigt__p_wxPenList,
fc46b7f3 35673 &_swigt__p_wxPixelDataBase,
0085ce49 35674 &_swigt__p_wxPoint,
72ef6efb 35675 &_swigt__p_wxPoint2D,
0085ce49
RD
35676 &_swigt__p_wxPostScriptDC,
35677 &_swigt__p_wxPrintData,
35678 &_swigt__p_wxPrinterDC,
27e45892 35679 &_swigt__p_wxPseudoDC,
0085ce49
RD
35680 &_swigt__p_wxPyApp,
35681 &_swigt__p_wxPyCommandEvent,
35682 &_swigt__p_wxPyEvent,
35683 &_swigt__p_wxPyFontEnumerator,
35684 &_swigt__p_wxPyImageHandler,
fc46b7f3 35685 &_swigt__p_wxPyLocale,
0085ce49
RD
35686 &_swigt__p_wxPySizer,
35687 &_swigt__p_wxPyValidator,
35688 &_swigt__p_wxQueryNewPaletteEvent,
35689 &_swigt__p_wxRect,
35690 &_swigt__p_wxRegion,
35691 &_swigt__p_wxRegionIterator,
35692 &_swigt__p_wxRendererNative,
35693 &_swigt__p_wxRendererVersion,
35694 &_swigt__p_wxScreenDC,
35695 &_swigt__p_wxScrollEvent,
35696 &_swigt__p_wxScrollWinEvent,
35697 &_swigt__p_wxSetCursorEvent,
35698 &_swigt__p_wxShowEvent,
35699 &_swigt__p_wxSize,
35700 &_swigt__p_wxSizeEvent,
35701 &_swigt__p_wxSizer,
35702 &_swigt__p_wxSizerItem,
35703 &_swigt__p_wxSplitterRenderParams,
35704 &_swigt__p_wxStaticBoxSizer,
35705 &_swigt__p_wxStdDialogButtonSizer,
50efceee 35706 &_swigt__p_wxStockGDI,
0085ce49
RD
35707 &_swigt__p_wxString,
35708 &_swigt__p_wxSysColourChangedEvent,
35709 &_swigt__p_wxTIFFHandler,
35710 &_swigt__p_wxUpdateUIEvent,
35711 &_swigt__p_wxValidator,
35712 &_swigt__p_wxWindow,
35713 &_swigt__p_wxWindowCreateEvent,
35714 &_swigt__p_wxWindowDC,
35715 &_swigt__p_wxWindowDestroyEvent,
35716 &_swigt__p_wxXPMHandler,
35717};
35718
fc46b7f3 35719static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
35720static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
35721static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
35722static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
35723static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
35724static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
35725static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
35726static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
35727static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
35728static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
35729static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
35730static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
35731static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
35732static 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}};
35733static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 35734static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb
RD
35735static swig_cast_info _swigc__p_wxClientDC[] = { {&_swigt__p_wxClientDC, 0, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxClientDC, 0, 0},{0, 0, 0, 0}};
35736static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
35737static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
35738static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
35739static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 35740static 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}, {&_swigt__p_wxGCDC, _p_wxGCDCTo_p_wxDC, 0, 0},{0, 0, 0, 0}};
b39fe951 35741static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
35742static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
35743static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
35744static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
35745static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
35746static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
35747static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
35748static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 35749static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
50efceee 35750static 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 35751static 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}};
72ef6efb
RD
35752static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
35753static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
33d6fd3b 35754static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
35755static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
35756static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
35757static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
35758static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
35759static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
35760static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 35761static swig_cast_info _swigc__p_wxLocale[] = { {&_swigt__p_wxPyLocale, _p_wxPyLocaleTo_p_wxLocale, 0, 0}, {&_swigt__p_wxLocale, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 35762static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
8e99bda9 35763static 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}};
0085ce49
RD
35764static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
35765static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
35766static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
35767static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
35768static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
35769static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
35770static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 35771static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 35772static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 35773static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
35774static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
35775static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
35776static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
35777static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
35778static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
35779static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
35780static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
35781static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
35782static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
35783static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
35784static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
35785static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 35786static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
35787static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
35788static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
35789static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
35790static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
35791static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
35792static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
35793static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
35794static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
35795static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
35796static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
35797static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
35798static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
35799static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
35800static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
35801static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
35802static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
35803static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
35804static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
35805static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
35806static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
35807static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
35808static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
35809static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
35810static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
35811static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
35812static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
35813static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
35814static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
35815static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
35816static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
35817static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 35818static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
27e45892 35819static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 35820static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
35821static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
35822static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
35823static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 35824static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
35825static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
35826static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
35827static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
35828static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
35829static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
35830static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
35831static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
35832static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
35833static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
35834static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
35835static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
35836static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
35837static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
35838static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
35839static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
35840static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
35841static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
35842static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
35843static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
35844static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
35845static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
35846static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 35847static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegionIterator, _p_wxRegionIteratorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPen, _p_wxPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGCDC, _p_wxGCDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMask, _p_wxMaskTo_p_wxObject, 0, 0}, {&_swigt__p_wxPseudoDC, _p_wxPseudoDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFont, _p_wxFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegion, _p_wxRegionTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxDC, _p_wxDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxIcon, _p_wxIconTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGDIObject, _p_wxGDIObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxEffects, _p_wxEffectsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_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_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_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}};
b39fe951 35848static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
35849static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
35850static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
35851static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
35852static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
35853static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 35854static swig_cast_info _swigc__p_wxPixelDataBase[] = { {&_swigt__p_wxPixelDataBase, 0, 0, 0}, {&_swigt__p_wxNativePixelData, _p_wxNativePixelDataTo_p_wxPixelDataBase, 0, 0}, {&_swigt__p_wxAlphaPixelData, _p_wxAlphaPixelDataTo_p_wxPixelDataBase, 0, 0},{0, 0, 0, 0}};
0085ce49 35855static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 35856static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
35857static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
35858static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
35859static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
27e45892 35860static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
0085ce49 35861static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 35862static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
35863static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
35864static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
35865static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
35866static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
35867static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
35868static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
35869static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
35870static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
50efceee 35871static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
35872static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
35873static 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}};
72ef6efb 35874static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxWindowDC, 0, 0},{0, 0, 0, 0}};
0085ce49
RD
35875
35876static swig_cast_info *swig_cast_initial[] = {
fc46b7f3 35877 _swigc__p_buffer,
0085ce49
RD
35878 _swigc__p_char,
35879 _swigc__p_double,
35880 _swigc__p_form_ops_t,
35881 _swigc__p_int,
35882 _swigc__p_unsigned_char,
35883 _swigc__p_unsigned_int,
35884 _swigc__p_unsigned_long,
35885 _swigc__p_wxANIHandler,
35886 _swigc__p_wxAcceleratorTable,
35887 _swigc__p_wxActivateEvent,
fc46b7f3
RD
35888 _swigc__p_wxAlphaPixelData,
35889 _swigc__p_wxAlphaPixelData_Accessor,
0085ce49
RD
35890 _swigc__p_wxBMPHandler,
35891 _swigc__p_wxBitmap,
35892 _swigc__p_wxBoxSizer,
35893 _swigc__p_wxBrush,
35894 _swigc__p_wxBrushList,
35895 _swigc__p_wxBufferedDC,
35896 _swigc__p_wxBufferedPaintDC,
35897 _swigc__p_wxCURHandler,
fc46b7f3 35898 _swigc__p_wxChar,
0085ce49
RD
35899 _swigc__p_wxChildFocusEvent,
35900 _swigc__p_wxClientDC,
2131d850 35901 _swigc__p_wxClipboardTextEvent,
0085ce49 35902 _swigc__p_wxCloseEvent,
72ef6efb 35903 _swigc__p_wxColor,
0085ce49
RD
35904 _swigc__p_wxColour,
35905 _swigc__p_wxColourDatabase,
35906 _swigc__p_wxCommandEvent,
35907 _swigc__p_wxContextMenuEvent,
35908 _swigc__p_wxControl,
35909 _swigc__p_wxControlWithItems,
35910 _swigc__p_wxCursor,
35911 _swigc__p_wxDC,
b39fe951 35912 _swigc__p_wxDCOverlay,
0085ce49
RD
35913 _swigc__p_wxDash,
35914 _swigc__p_wxDateEvent,
35915 _swigc__p_wxDisplayChangedEvent,
35916 _swigc__p_wxDropFilesEvent,
35917 _swigc__p_wxDuplexMode,
35918 _swigc__p_wxEffects,
35919 _swigc__p_wxEncodingConverter,
35920 _swigc__p_wxEraseEvent,
35921 _swigc__p_wxEvent,
35922 _swigc__p_wxEvtHandler,
35923 _swigc__p_wxFSFile,
35924 _swigc__p_wxFileSystem,
35925 _swigc__p_wxFlexGridSizer,
35926 _swigc__p_wxFocusEvent,
35927 _swigc__p_wxFont,
35928 _swigc__p_wxFontList,
35929 _swigc__p_wxFontMapper,
35930 _swigc__p_wxGBSizerItem,
72ef6efb 35931 _swigc__p_wxGCDC,
50efceee 35932 _swigc__p_wxGDIObjListBase,
0085ce49
RD
35933 _swigc__p_wxGDIObject,
35934 _swigc__p_wxGIFHandler,
72ef6efb
RD
35935 _swigc__p_wxGraphicsContext,
35936 _swigc__p_wxGraphicsPath,
0085ce49
RD
35937 _swigc__p_wxGridBagSizer,
35938 _swigc__p_wxGridSizer,
33d6fd3b 35939 _swigc__p_wxHeaderButtonParams,
0085ce49
RD
35940 _swigc__p_wxICOHandler,
35941 _swigc__p_wxIcon,
35942 _swigc__p_wxIconBundle,
35943 _swigc__p_wxIconLocation,
35944 _swigc__p_wxIconizeEvent,
35945 _swigc__p_wxIdleEvent,
35946 _swigc__p_wxImage,
35947 _swigc__p_wxImageHandler,
35948 _swigc__p_wxImageList,
35949 _swigc__p_wxIndividualLayoutConstraint,
35950 _swigc__p_wxInitDialogEvent,
35951 _swigc__p_wxJPEGHandler,
35952 _swigc__p_wxKeyEvent,
35953 _swigc__p_wxLanguageInfo,
35954 _swigc__p_wxLayoutConstraints,
35955 _swigc__p_wxLocale,
35956 _swigc__p_wxMask,
35957 _swigc__p_wxMaximizeEvent,
35958 _swigc__p_wxMemoryDC,
35959 _swigc__p_wxMenu,
35960 _swigc__p_wxMenuBar,
35961 _swigc__p_wxMenuEvent,
35962 _swigc__p_wxMenuItem,
35963 _swigc__p_wxMetaFile,
35964 _swigc__p_wxMetaFileDC,
35965 _swigc__p_wxMirrorDC,
35966 _swigc__p_wxMouseCaptureChangedEvent,
34e0a3bb 35967 _swigc__p_wxMouseCaptureLostEvent,
0085ce49
RD
35968 _swigc__p_wxMouseEvent,
35969 _swigc__p_wxMoveEvent,
35970 _swigc__p_wxNativeEncodingInfo,
35971 _swigc__p_wxNativeFontInfo,
fc46b7f3
RD
35972 _swigc__p_wxNativePixelData,
35973 _swigc__p_wxNativePixelData_Accessor,
0085ce49
RD
35974 _swigc__p_wxNavigationKeyEvent,
35975 _swigc__p_wxNcPaintEvent,
35976 _swigc__p_wxNotifyEvent,
35977 _swigc__p_wxObject,
b39fe951 35978 _swigc__p_wxOverlay,
0085ce49
RD
35979 _swigc__p_wxPCXHandler,
35980 _swigc__p_wxPNGHandler,
35981 _swigc__p_wxPNMHandler,
35982 _swigc__p_wxPaintDC,
35983 _swigc__p_wxPaintEvent,
35984 _swigc__p_wxPalette,
35985 _swigc__p_wxPaletteChangedEvent,
35986 _swigc__p_wxPaperSize,
35987 _swigc__p_wxPen,
35988 _swigc__p_wxPenList,
fc46b7f3 35989 _swigc__p_wxPixelDataBase,
0085ce49 35990 _swigc__p_wxPoint,
72ef6efb 35991 _swigc__p_wxPoint2D,
0085ce49
RD
35992 _swigc__p_wxPostScriptDC,
35993 _swigc__p_wxPrintData,
35994 _swigc__p_wxPrinterDC,
27e45892 35995 _swigc__p_wxPseudoDC,
0085ce49
RD
35996 _swigc__p_wxPyApp,
35997 _swigc__p_wxPyCommandEvent,
35998 _swigc__p_wxPyEvent,
35999 _swigc__p_wxPyFontEnumerator,
36000 _swigc__p_wxPyImageHandler,
fc46b7f3 36001 _swigc__p_wxPyLocale,
0085ce49
RD
36002 _swigc__p_wxPySizer,
36003 _swigc__p_wxPyValidator,
36004 _swigc__p_wxQueryNewPaletteEvent,
36005 _swigc__p_wxRect,
36006 _swigc__p_wxRegion,
36007 _swigc__p_wxRegionIterator,
36008 _swigc__p_wxRendererNative,
36009 _swigc__p_wxRendererVersion,
36010 _swigc__p_wxScreenDC,
36011 _swigc__p_wxScrollEvent,
36012 _swigc__p_wxScrollWinEvent,
36013 _swigc__p_wxSetCursorEvent,
36014 _swigc__p_wxShowEvent,
36015 _swigc__p_wxSize,
36016 _swigc__p_wxSizeEvent,
36017 _swigc__p_wxSizer,
36018 _swigc__p_wxSizerItem,
36019 _swigc__p_wxSplitterRenderParams,
36020 _swigc__p_wxStaticBoxSizer,
36021 _swigc__p_wxStdDialogButtonSizer,
50efceee 36022 _swigc__p_wxStockGDI,
0085ce49
RD
36023 _swigc__p_wxString,
36024 _swigc__p_wxSysColourChangedEvent,
36025 _swigc__p_wxTIFFHandler,
36026 _swigc__p_wxUpdateUIEvent,
36027 _swigc__p_wxValidator,
36028 _swigc__p_wxWindow,
36029 _swigc__p_wxWindowCreateEvent,
36030 _swigc__p_wxWindowDC,
36031 _swigc__p_wxWindowDestroyEvent,
36032 _swigc__p_wxXPMHandler,
36033};
36034
36035
36036/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
36037
36038static swig_const_info swig_const_table[] = {
36039{0, 0, 0, 0.0, 0, 0}};
36040
36041#ifdef __cplusplus
36042}
36043#endif
36044/* -----------------------------------------------------------------------------
36045 * Type initialization:
36046 * This problem is tough by the requirement that no dynamic
36047 * memory is used. Also, since swig_type_info structures store pointers to
36048 * swig_cast_info structures and swig_cast_info structures store pointers back
36049 * to swig_type_info structures, we need some lookup code at initialization.
36050 * The idea is that swig generates all the structures that are needed.
36051 * The runtime then collects these partially filled structures.
36052 * The SWIG_InitializeModule function takes these initial arrays out of
36053 * swig_module, and does all the lookup, filling in the swig_module.types
36054 * array with the correct data and linking the correct swig_cast_info
36055 * structures together.
36056 *
36057 * The generated swig_type_info structures are assigned staticly to an initial
36058 * array. We just loop though that array, and handle each type individually.
36059 * First we lookup if this type has been already loaded, and if so, use the
36060 * loaded structure instead of the generated one. Then we have to fill in the
36061 * cast linked list. The cast data is initially stored in something like a
36062 * two-dimensional array. Each row corresponds to a type (there are the same
36063 * number of rows as there are in the swig_type_initial array). Each entry in
36064 * a column is one of the swig_cast_info structures for that type.
36065 * The cast_initial array is actually an array of arrays, because each row has
36066 * a variable number of columns. So to actually build the cast linked list,
36067 * we find the array of casts associated with the type, and loop through it
36068 * adding the casts to the list. The one last trick we need to do is making
36069 * sure the type pointer in the swig_cast_info struct is correct.
36070 *
36071 * First off, we lookup the cast->type name to see if it is already loaded.
36072 * There are three cases to handle:
36073 * 1) If the cast->type has already been loaded AND the type we are adding
36074 * casting info to has not been loaded (it is in this module), THEN we
36075 * replace the cast->type pointer with the type pointer that has already
36076 * been loaded.
36077 * 2) If BOTH types (the one we are adding casting info to, and the
36078 * cast->type) are loaded, THEN the cast info has already been loaded by
36079 * the previous module so we just ignore it.
36080 * 3) Finally, if cast->type has not already been loaded, then we add that
36081 * swig_cast_info to the linked list (because the cast->type) pointer will
36082 * be correct.
36083 * ----------------------------------------------------------------------------- */
36084
36085#ifdef __cplusplus
36086extern "C" {
36087#if 0
36088} /* c-mode */
36089#endif
36090#endif
36091
36092#if 0
36093#define SWIGRUNTIME_DEBUG
36094#endif
36095
36096SWIGRUNTIME void
36097SWIG_InitializeModule(void *clientdata) {
36098 size_t i;
36099 swig_module_info *module_head;
36100 static int init_run = 0;
36101
36102 clientdata = clientdata;
36103
36104 if (init_run) return;
36105 init_run = 1;
36106
36107 /* Initialize the swig_module */
36108 swig_module.type_initial = swig_type_initial;
36109 swig_module.cast_initial = swig_cast_initial;
36110
36111 /* Try and load any already created modules */
36112 module_head = SWIG_GetModule(clientdata);
36113 if (module_head) {
36114 swig_module.next = module_head->next;
36115 module_head->next = &swig_module;
36116 } else {
36117 /* This is the first module loaded */
36118 swig_module.next = &swig_module;
36119 SWIG_SetModule(clientdata, &swig_module);
36120 }
36121
36122 /* Now work on filling in swig_module.types */
36123#ifdef SWIGRUNTIME_DEBUG
36124 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
36125#endif
36126 for (i = 0; i < swig_module.size; ++i) {
36127 swig_type_info *type = 0;
36128 swig_type_info *ret;
36129 swig_cast_info *cast;
36130
36131#ifdef SWIGRUNTIME_DEBUG
36132 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
36133#endif
36134
36135 /* if there is another module already loaded */
36136 if (swig_module.next != &swig_module) {
36137 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
8d38bd1d 36138 }
0085ce49
RD
36139 if (type) {
36140 /* Overwrite clientdata field */
36141#ifdef SWIGRUNTIME_DEBUG
36142 printf("SWIG_InitializeModule: found type %s\n", type->name);
36143#endif
36144 if (swig_module.type_initial[i]->clientdata) {
36145 type->clientdata = swig_module.type_initial[i]->clientdata;
36146#ifdef SWIGRUNTIME_DEBUG
36147 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
36148#endif
36149 }
36150 } else {
36151 type = swig_module.type_initial[i];
8d38bd1d 36152 }
0085ce49
RD
36153
36154 /* Insert casting types */
36155 cast = swig_module.cast_initial[i];
36156 while (cast->type) {
36157 /* Don't need to add information already in the list */
36158 ret = 0;
36159#ifdef SWIGRUNTIME_DEBUG
36160 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
36161#endif
36162 if (swig_module.next != &swig_module) {
36163 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
36164#ifdef SWIGRUNTIME_DEBUG
36165 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
36166#endif
36167 }
36168 if (ret) {
36169 if (type == swig_module.type_initial[i]) {
36170#ifdef SWIGRUNTIME_DEBUG
36171 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
36172#endif
36173 cast->type = ret;
36174 ret = 0;
36175 } else {
36176 /* Check for casting already in the list */
36177 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
36178#ifdef SWIGRUNTIME_DEBUG
36179 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
36180#endif
36181 if (!ocast) ret = 0;
36182 }
36183 }
36184
36185 if (!ret) {
36186#ifdef SWIGRUNTIME_DEBUG
36187 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
36188#endif
36189 if (type->cast) {
36190 type->cast->prev = cast;
36191 cast->next = type->cast;
36192 }
36193 type->cast = cast;
36194 }
36195 cast++;
8d38bd1d 36196 }
0085ce49
RD
36197 /* Set entry in modules->types array equal to the type */
36198 swig_module.types[i] = type;
36199 }
36200 swig_module.types[i] = 0;
36201
36202#ifdef SWIGRUNTIME_DEBUG
36203 printf("**** SWIG_InitializeModule: Cast List ******\n");
36204 for (i = 0; i < swig_module.size; ++i) {
36205 int j = 0;
36206 swig_cast_info *cast = swig_module.cast_initial[i];
36207 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
36208 while (cast->type) {
36209 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
36210 cast++;
36211 ++j;
36212 }
36213 printf("---- Total casts: %d\n",j);
36214 }
36215 printf("**** SWIG_InitializeModule: Cast List ******\n");
36216#endif
36217}
36218
36219/* This function will propagate the clientdata field of type to
36220* any new swig_type_info structures that have been added into the list
36221* of equivalent types. It is like calling
36222* SWIG_TypeClientData(type, clientdata) a second time.
36223*/
36224SWIGRUNTIME void
36225SWIG_PropagateClientData(void) {
36226 size_t i;
36227 swig_cast_info *equiv;
36228 static int init_run = 0;
36229
36230 if (init_run) return;
36231 init_run = 1;
36232
36233 for (i = 0; i < swig_module.size; i++) {
36234 if (swig_module.types[i]->clientdata) {
36235 equiv = swig_module.types[i]->cast;
36236 while (equiv) {
36237 if (!equiv->converter) {
36238 if (equiv->type && !equiv->type->clientdata)
36239 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
36240 }
36241 equiv = equiv->next;
36242 }
8d38bd1d 36243 }
0085ce49
RD
36244 }
36245}
36246
36247#ifdef __cplusplus
36248#if 0
36249{
36250 /* c-mode */
36251#endif
36252}
36253#endif
36254
36255
36256
36257#ifdef __cplusplus
36258extern "C" {
36259#endif
36260
36261 /* Python-specific SWIG API */
36262#define SWIG_newvarlink() SWIG_Python_newvarlink()
36263#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
36264#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
36265
36266 /* -----------------------------------------------------------------------------
36267 * global variable support code.
36268 * ----------------------------------------------------------------------------- */
36269
36270 typedef struct swig_globalvar {
36271 char *name; /* Name of global variable */
36272 PyObject *(*get_attr)(void); /* Return the current value */
36273 int (*set_attr)(PyObject *); /* Set the value */
36274 struct swig_globalvar *next;
36275 } swig_globalvar;
36276
36277 typedef struct swig_varlinkobject {
36278 PyObject_HEAD
36279 swig_globalvar *vars;
36280 } swig_varlinkobject;
36281
36282 SWIGINTERN PyObject *
36283 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
36284 return PyString_FromString("<Swig global variables>");
36285 }
36286
36287 SWIGINTERN PyObject *
36288 swig_varlink_str(swig_varlinkobject *v) {
36289 PyObject *str = PyString_FromString("(");
36290 swig_globalvar *var;
36291 for (var = v->vars; var; var=var->next) {
36292 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
36293 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
36294 }
36295 PyString_ConcatAndDel(&str,PyString_FromString(")"));
36296 return str;
36297 }
36298
36299 SWIGINTERN int
36300 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
36301 PyObject *str = swig_varlink_str(v);
36302 fprintf(fp,"Swig global variables ");
36303 fprintf(fp,"%s\n", PyString_AsString(str));
36304 Py_DECREF(str);
36305 return 0;
36306 }
36307
36308 SWIGINTERN void
36309 swig_varlink_dealloc(swig_varlinkobject *v) {
36310 swig_globalvar *var = v->vars;
36311 while (var) {
36312 swig_globalvar *n = var->next;
36313 free(var->name);
36314 free(var);
36315 var = n;
8d38bd1d 36316 }
0085ce49
RD
36317 }
36318
36319 SWIGINTERN PyObject *
36320 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
36321 PyObject *res = NULL;
36322 swig_globalvar *var = v->vars;
36323 while (var) {
36324 if (strcmp(var->name,n) == 0) {
36325 res = (*var->get_attr)();
36326 break;
36327 }
36328 var = var->next;
8d38bd1d 36329 }
0085ce49
RD
36330 if (res == NULL && !PyErr_Occurred()) {
36331 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
8d38bd1d 36332 }
0085ce49
RD
36333 return res;
36334 }
36335
36336 SWIGINTERN int
36337 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
36338 int res = 1;
36339 swig_globalvar *var = v->vars;
36340 while (var) {
36341 if (strcmp(var->name,n) == 0) {
36342 res = (*var->set_attr)(p);
36343 break;
36344 }
36345 var = var->next;
8d38bd1d 36346 }
0085ce49
RD
36347 if (res == 1 && !PyErr_Occurred()) {
36348 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
8d38bd1d 36349 }
0085ce49
RD
36350 return res;
36351 }
36352
36353 SWIGINTERN PyTypeObject*
36354 swig_varlink_type(void) {
36355 static char varlink__doc__[] = "Swig var link object";
36356 static PyTypeObject varlink_type;
36357 static int type_init = 0;
36358 if (!type_init) {
36359 const PyTypeObject tmp
36360 = {
36361 PyObject_HEAD_INIT(NULL)
36362 0, /* Number of items in variable part (ob_size) */
36363 (char *)"swigvarlink", /* Type name (tp_name) */
36364 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
36365 0, /* Itemsize (tp_itemsize) */
36366 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
36367 (printfunc) swig_varlink_print, /* Print (tp_print) */
36368 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
36369 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
36370 0, /* tp_compare */
36371 (reprfunc) swig_varlink_repr, /* tp_repr */
36372 0, /* tp_as_number */
36373 0, /* tp_as_sequence */
36374 0, /* tp_as_mapping */
36375 0, /* tp_hash */
36376 0, /* tp_call */
36377 (reprfunc)swig_varlink_str, /* tp_str */
36378 0, /* tp_getattro */
36379 0, /* tp_setattro */
36380 0, /* tp_as_buffer */
36381 0, /* tp_flags */
36382 varlink__doc__, /* tp_doc */
36383 0, /* tp_traverse */
36384 0, /* tp_clear */
36385 0, /* tp_richcompare */
36386 0, /* tp_weaklistoffset */
36387#if PY_VERSION_HEX >= 0x02020000
36388 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
36389#endif
36390#if PY_VERSION_HEX >= 0x02030000
36391 0, /* tp_del */
36392#endif
36393#ifdef COUNT_ALLOCS
36394 0,0,0,0 /* tp_alloc -> tp_next */
36395#endif
36396 };
36397 varlink_type = tmp;
36398 varlink_type.ob_type = &PyType_Type;
36399 type_init = 1;
8d38bd1d 36400 }
0085ce49
RD
36401 return &varlink_type;
36402 }
36403
36404 /* Create a variable linking object for use later */
36405 SWIGINTERN PyObject *
36406 SWIG_Python_newvarlink(void) {
36407 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
36408 if (result) {
36409 result->vars = 0;
36410 }
36411 return ((PyObject*) result);
36412 }
36413
36414 SWIGINTERN void
36415 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
36416 swig_varlinkobject *v = (swig_varlinkobject *) p;
36417 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
36418 if (gv) {
36419 size_t size = strlen(name)+1;
36420 gv->name = (char *)malloc(size);
36421 if (gv->name) {
36422 strncpy(gv->name,name,size);
36423 gv->get_attr = get_attr;
36424 gv->set_attr = set_attr;
36425 gv->next = v->vars;
36426 }
8d38bd1d 36427 }
0085ce49
RD
36428 v->vars = gv;
36429 }
36430
36431 SWIGINTERN PyObject *
36432 SWIG_globals() {
36433 static PyObject *_SWIG_globals = 0;
36434 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
36435 return _SWIG_globals;
36436 }
36437
36438 /* -----------------------------------------------------------------------------
36439 * constants/methods manipulation
36440 * ----------------------------------------------------------------------------- */
36441
36442 /* Install Constants */
36443 SWIGINTERN void
36444 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
36445 PyObject *obj = 0;
36446 size_t i;
36447 for (i = 0; constants[i].type; ++i) {
36448 switch(constants[i].type) {
36449 case SWIG_PY_POINTER:
36450 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
36451 break;
36452 case SWIG_PY_BINARY:
36453 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
36454 break;
36455 default:
36456 obj = 0;
36457 break;
36458 }
36459 if (obj) {
36460 PyDict_SetItemString(d, constants[i].name, obj);
36461 Py_DECREF(obj);
36462 }
8d38bd1d 36463 }
0085ce49
RD
36464 }
36465
36466 /* -----------------------------------------------------------------------------*/
36467 /* Fix SwigMethods to carry the callback ptrs when needed */
36468 /* -----------------------------------------------------------------------------*/
36469
36470 SWIGINTERN void
36471 SWIG_Python_FixMethods(PyMethodDef *methods,
36472 swig_const_info *const_table,
36473 swig_type_info **types,
36474 swig_type_info **types_initial) {
36475 size_t i;
36476 for (i = 0; methods[i].ml_name; ++i) {
453fb36b 36477 const char *c = methods[i].ml_doc;
0085ce49
RD
36478 if (c && (c = strstr(c, "swig_ptr: "))) {
36479 int j;
36480 swig_const_info *ci = 0;
453fb36b 36481 const char *name = c + 10;
0085ce49
RD
36482 for (j = 0; const_table[j].type; ++j) {
36483 if (strncmp(const_table[j].name, name,
36484 strlen(const_table[j].name)) == 0) {
36485 ci = &(const_table[j]);
36486 break;
36487 }
36488 }
36489 if (ci) {
36490 size_t shift = (ci->ptype) - types;
36491 swig_type_info *ty = types_initial[shift];
36492 size_t ldoc = (c - methods[i].ml_doc);
36493 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
36494 char *ndoc = (char*)malloc(ldoc + lptr + 10);
36495 if (ndoc) {
36496 char *buff = ndoc;
36497 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
36498 if (ptr) {
36499 strncpy(buff, methods[i].ml_doc, ldoc);
36500 buff += ldoc;
36501 strncpy(buff, "swig_ptr: ", 10);
36502 buff += 10;
36503 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
36504 methods[i].ml_doc = ndoc;
36505 }
36506 }
36507 }
36508 }
8d38bd1d 36509 }
0085ce49
RD
36510 }
36511
36512#ifdef __cplusplus
36513}
36514#endif
36515
36516/* -----------------------------------------------------------------------------*
36517 * Partial Init method
36518 * -----------------------------------------------------------------------------*/
36519
36520#ifdef __cplusplus
36521extern "C"
36522#endif
36523SWIGEXPORT void SWIG_init(void) {
36524 PyObject *m, *d;
36525
36526 /* Fix SwigMethods to carry the callback ptrs when needed */
36527 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
36528
36529 m = Py_InitModule((char *) SWIG_name, SwigMethods);
36530 d = PyModule_GetDict(m);
36531
36532 SWIG_InitializeModule(0);
36533 SWIG_InstallConstants(d,swig_const_table);
36534
36535
01f6b6d3
RD
36536 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
36537 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
36538 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
fc46b7f3
RD
36539 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
36540 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
0085ce49
RD
36541 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
36542 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
36543 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
36544 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
36545 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
36546 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
36547 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
36548 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
36549 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
36550 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
36551 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
36552 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
36553 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
36554 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
36555 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
36556 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
36557 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
36558 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
36559 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
36560 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
36561 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
36562 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
36563 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
36564 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
36565 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
36566 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
36567 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
36568 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
36569 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
36570 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
36571 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
36572 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
36573 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
36574 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
36575 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
36576 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
36577 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
36578 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
36579 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
36580 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
36581 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
36582 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
36583 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
36584 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
36585 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
36586 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
36587 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
36588 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
36589 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
36590 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
36591 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
36592 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
36593 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
36594 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
36595 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
36596 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
36597 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
36598 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
36599 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
36600 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
36601 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
36602 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
36603 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
36604 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
36605 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
36606 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
36607 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
36608 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
36609 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
36610 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
36611 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
36612 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
36613 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
36614 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
36615 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
36616 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
36617 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
36618 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
36619 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
36620 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
36621 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
36622 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
36623 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
36624 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
36625 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
36626 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
36627 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
36628 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
36629 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
36630 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
36631 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
36632 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
36633 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
36634 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
36635 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
36636 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
36637 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
36638 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
36639 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
36640 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
36641 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
36642 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
36643 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
36644 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
36645 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
36646 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
36647 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
36648 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
36649 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
36650 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
36651 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
36652 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
36653 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
36654 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
36655 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
36656 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
36657 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
36658 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
36659 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
36660 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
36661 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
36662 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
36663 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
36664 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
36665 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
36666 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
36667 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
36668
36669 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
36670
36671 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
36672 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
36673 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
36674 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
36675 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
36676 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
36677 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
36678 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
36679 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
36680 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
36681 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
36682 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
36683 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
36684 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
36685 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
36686 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
36687 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
36688 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
36689 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
36690 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
36691 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
36692 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
36693 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
36694 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
36695 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
36696 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
36697 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
36698 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
36699 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
36700 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
36701 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
36702 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
36703 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
36704 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
36705 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
36706 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
36707 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
36708 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
36709 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
36710 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
36711 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
36712 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
36713 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
36714 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
36715 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
36716 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
36717 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
36718 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
36719 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
36720 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
36721 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
36722 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
36723 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
36724 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
36725 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
36726 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
36727 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
36728 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
36729 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
36730 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
36731 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
36732 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
36733 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
36734 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
36735 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
36736 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
36737 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
36738 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
36739 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
36740 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
36741 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
36742 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
36743 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
36744 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
36745 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
36746 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
36747 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
36748 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
36749 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
36750 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
36751 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
36752 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
36753 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
36754 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
36755 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
36756 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
36757 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
36758 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
36759 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
36760 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
36761 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
36762 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
36763 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
36764 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
36765 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
36766 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
36767 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
36768 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
36769 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
36770 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
36771 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
36772 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
36773 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
36774 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
36775 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
36776 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
36777 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
36778 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
36779 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
36780 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
36781 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
36782 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
36783 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
36784 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
36785 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
36786 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
36787 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
36788 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
36789 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
36790 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
36791 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
36792 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
36793 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
36794 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
36795 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
36796 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
36797 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
36798 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
36799 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
36800 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
36801 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
36802 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
36803 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
36804 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
36805 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
36806 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
36807 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
36808 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
36809 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
36810 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
36811 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
36812 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
36813 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
36814 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
36815 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
36816 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
36817 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
36818 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
36819 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
36820 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
36821 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
36822 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
36823 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
36824 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
36825 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
36826 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
36827 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
36828 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
36829 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
36830 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
36831 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
36832 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
36833 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
36834 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
36835 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
36836 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
36837 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
36838 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
36839 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
36840 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
36841 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
36842 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
36843 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
36844 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
36845 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
36846 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
36847 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
36848 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
36849 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
36850 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
36851 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
36852 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
36853 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
36854 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
36855 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
36856 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
36857 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
36858 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
36859 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
36860 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
36861 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
36862 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
36863 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
36864 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
36865 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
36866 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
36867 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
36868 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
36869 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
36870 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
36871 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
36872 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
36873 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
36874 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
36875 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
36876 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
36877 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
36878 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
36879 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
36880 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
36881 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
36882 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
36883 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
36884 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
36885 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
36886 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
36887 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
36888 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
36889 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
36890 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
36891 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
36892 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
36893 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
36894 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
36895 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
36896 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
36897 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
36898 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
36899 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
36900 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
36901 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
36902 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
36903 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
36904 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
36905 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
36906 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
36907 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
36908 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
36909 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
36910 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
36911 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
36912 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
36913 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
36914 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
36915 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
36916 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
36917 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
36918 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
36919 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
36920 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
36921 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
36922 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
36923 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
36924 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
36925 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
50efceee
RD
36926 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
36927 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
36928 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
36929 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
36930 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
36931 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
36932 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
36933 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
36934 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
36935 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
36936 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
36937 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
36938 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
36939 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
36940 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
36941 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
36942 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
36943 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
36944 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
36945 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
36946 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
36947 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
36948 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
36949 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
36950 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
36951 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
36952 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
36953 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
36954 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
36955 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
36956 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
36957 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
36958 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
36959 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
36960 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
0085ce49 36961 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
0085ce49
RD
36962 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
36963 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
36964 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
36965 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
36966 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
36967 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
36968 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
36969 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
0085ce49
RD
36970 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
36971 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
36972 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
79df624a 36973 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
0085ce49
RD
36974 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
36975 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
36976 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
79df624a 36977 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
0085ce49
RD
36978 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
36979 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
36980 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
36981 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
36982 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
36983 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
36984 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
33d6fd3b
RD
36985 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
36986 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
36987 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
0085ce49
RD
36988 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
36989 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
36990
36991 // Work around a chicken/egg problem in drawlist.cpp
36992 wxPyDrawList_SetAPIPtr();
36993
d14a1e28
RD
36994}
36995