]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/_gdi_wrap.cpp
Generic fix for full row highlight
[wxWidgets.git] / wxPython / src / mac / _gdi_wrap.cpp
CommitLineData
d55e5bfc
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
1bd55598 3 * Version 1.3.29
d55e5bfc
RD
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11#define SWIGPYTHON
1bd55598 12#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
d55e5bfc
RD
13
14#ifdef __cplusplus
15template<class T> class SwigValueWrapper {
16 T *tt;
17public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
36ed4f51 27};
d55e5bfc
RD
28#endif
29
1bd55598 30/* -----------------------------------------------------------------------------
32fe5131
RD
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
1bd55598 33 * ----------------------------------------------------------------------------- */
d55e5bfc 34
32fe5131
RD
35/* template workaround for compilers that cannot correctly implement the C++ standard */
36#ifndef SWIGTEMPLATEDISAMBIGUATOR
1bd55598
RD
37# if defined(__SUNPRO_CC)
38# if (__SUNPRO_CC <= 0x560)
39# define SWIGTEMPLATEDISAMBIGUATOR template
40# else
41# define SWIGTEMPLATEDISAMBIGUATOR
42# endif
43# else
44# define SWIGTEMPLATEDISAMBIGUATOR
45# endif
36ed4f51 46#endif
d55e5bfc 47
32fe5131
RD
48/* inline attribute */
49#ifndef SWIGINLINE
50# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51# define SWIGINLINE inline
52# else
53# define SWIGINLINE
54# endif
55#endif
56
57/* attribute recognised by some compilers to avoid 'unused' warnings */
58#ifndef SWIGUNUSED
1bd55598
RD
59# if defined(__GNUC__)
60# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61# define SWIGUNUSED __attribute__ ((__unused__))
62# else
63# define SWIGUNUSED
64# endif
65# elif defined(__ICC)
66# define SWIGUNUSED __attribute__ ((__unused__))
32fe5131
RD
67# else
68# define SWIGUNUSED
69# endif
70#endif
71
1bd55598
RD
72#ifndef SWIGUNUSEDPARM
73# ifdef __cplusplus
74# define SWIGUNUSEDPARM(p)
75# else
76# define SWIGUNUSEDPARM(p) p SWIGUNUSED
77# endif
78#endif
79
32fe5131
RD
80/* internal SWIG method */
81#ifndef SWIGINTERN
82# define SWIGINTERN static SWIGUNUSED
83#endif
84
85/* internal inline SWIG method */
86#ifndef SWIGINTERNINLINE
87# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88#endif
89
1bd55598
RD
90/* exporting methods */
91#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92# ifndef GCC_HASCLASSVISIBILITY
93# define GCC_HASCLASSVISIBILITY
94# endif
95#endif
96
32fe5131
RD
97#ifndef SWIGEXPORT
98# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99# if defined(STATIC_LINKED)
100# define SWIGEXPORT
101# else
102# define SWIGEXPORT __declspec(dllexport)
103# endif
104# else
1bd55598
RD
105# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106# define SWIGEXPORT __attribute__ ((visibility("default")))
107# else
108# define SWIGEXPORT
109# endif
32fe5131
RD
110# endif
111#endif
112
113/* calling conventions for Windows */
114#ifndef SWIGSTDCALL
115# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116# define SWIGSTDCALL __stdcall
117# else
118# define SWIGSTDCALL
119# endif
120#endif
121
1bd55598
RD
122/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124# define _CRT_SECURE_NO_DEPRECATE
125#endif
32fe5131 126
d55e5bfc 127
1bd55598 128/* Python.h has to appear first */
36ed4f51 129#include <Python.h>
d55e5bfc 130
1bd55598 131/* -----------------------------------------------------------------------------
36ed4f51 132 * swigrun.swg
d55e5bfc 133 *
1bd55598
RD
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
d55e5bfc 137
36ed4f51
RD
138/* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
32fe5131 140#define SWIG_RUNTIME_VERSION "2"
d55e5bfc 141
36ed4f51
RD
142/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143#ifdef SWIG_TYPE_TABLE
32fe5131
RD
144# define SWIG_QUOTE_STRING(x) #x
145# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
d55e5bfc 147#else
32fe5131 148# define SWIG_TYPE_TABLE_NAME
36ed4f51
RD
149#endif
150
151/*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158*/
32fe5131 159
36ed4f51 160#ifndef SWIGRUNTIME
32fe5131 161# define SWIGRUNTIME SWIGINTERN
36ed4f51 162#endif
32fe5131 163
36ed4f51 164#ifndef SWIGRUNTIMEINLINE
32fe5131 165# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
d55e5bfc
RD
166#endif
167
1bd55598
RD
168/* Generic buffer size */
169#ifndef SWIG_BUFFER_SIZE
170# define SWIG_BUFFER_SIZE 1024
171#endif
172
173/* Flags for pointer conversions */
174#define SWIG_POINTER_DISOWN 0x1
175
176/* Flags for new pointer objects */
177#define SWIG_POINTER_OWN 0x1
178
179
180/*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260#define SWIG_OK (0)
261#define SWIG_ERROR (-1)
262#define SWIG_IsOK(r) (r >= 0)
263#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265/* The CastRankLimit says how many bits are used for the cast rank */
266#define SWIG_CASTRANKLIMIT (1 << 8)
267/* The NewMask denotes the object was created (using new/malloc) */
268#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269/* The TmpMask is for in/out typemaps that use temporal objects */
270#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271/* Simple returning values */
272#define SWIG_BADOBJ (SWIG_ERROR)
273#define SWIG_OLDOBJ (SWIG_OK)
274#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276/* Check, add and del mask methods */
277#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285/* Cast-Rank Mode */
286#if defined(SWIG_CASTRANK_MODE)
287# ifndef SWIG_TypeRank
288# define SWIG_TypeRank unsigned long
289# endif
290# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291# define SWIG_MAXCASTRANK (2)
292# endif
293# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297}
298SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300}
301#else /* no cast-rank mode */
302# define SWIG_AddCast
303# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304#endif
305
306
307
308
32fe5131
RD
309#include <string.h>
310
d55e5bfc
RD
311#ifdef __cplusplus
312extern "C" {
313#endif
314
315typedef void *(*swig_converter_func)(void *);
316typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
32fe5131 318/* Structure to store inforomation on one type */
d55e5bfc 319typedef struct swig_type_info {
32fe5131
RD
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
1bd55598 325 int owndata; /* flag if the structure owns the clientdata */
d55e5bfc
RD
326} swig_type_info;
327
32fe5131
RD
328/* Structure to store a type and conversion function used for casting */
329typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334} swig_cast_info;
335
336/* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346} swig_module_info;
347
36ed4f51
RD
348/*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354*/
355SWIGRUNTIME int
356SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
1bd55598 361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
36ed4f51
RD
362 }
363 return (l1 - f1) - (l2 - f2);
364}
365
366/*
367 Check type equivalence in a name list like <name1>|<name2>|...
32fe5131 368 Return 0 if not equal, 1 if equal
36ed4f51
RD
369*/
370SWIGRUNTIME int
371SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
32fe5131 379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
36ed4f51
RD
380 if (*ne) ++ne;
381 }
382 return equiv;
383}
384
385/*
32fe5131
RD
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
36ed4f51 388*/
32fe5131
RD
389SWIGRUNTIME int
390SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
36ed4f51 397 }
32fe5131
RD
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
36ed4f51 400 }
32fe5131 401 return equiv;
36ed4f51
RD
402}
403
32fe5131
RD
404
405/* think of this as a c++ template<> or a scheme macro */
406#define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
36ed4f51
RD
427/*
428 Check the typename
429*/
32fe5131 430SWIGRUNTIME swig_cast_info *
36ed4f51 431SWIG_TypeCheck(const char *c, swig_type_info *ty) {
32fe5131
RD
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433}
434
435/* Same as previous function, except strcmp is replaced with a pointer comparison */
436SWIGRUNTIME swig_cast_info *
437SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
36ed4f51
RD
439}
440
441/*
442 Cast a pointer up an inheritance hierarchy
443*/
444SWIGRUNTIMEINLINE void *
32fe5131 445SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
36ed4f51
RD
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447}
448
449/*
450 Dynamic pointer casting. Down an inheritance hierarchy
451*/
452SWIGRUNTIME swig_type_info *
453SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461}
462
463/*
464 Return the name associated with this type
465*/
466SWIGRUNTIMEINLINE const char *
467SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469}
470
471/*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474*/
475SWIGRUNTIME const char *
476SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
1bd55598 481 if (!type) return NULL;
36ed4f51
RD
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491}
492
36ed4f51
RD
493/*
494 Set the clientdata field for a type
495*/
496SWIGRUNTIME void
32fe5131
RD
497SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
36ed4f51
RD
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
32fe5131
RD
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
36ed4f51 507 }
32fe5131
RD
508 }
509 cast = cast->next;
510 }
511}
1bd55598
RD
512SWIGRUNTIME void
513SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516}
517
32fe5131
RD
518/*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525*/
526SWIGRUNTIME swig_type_info *
527SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
36ed4f51 556 }
32fe5131
RD
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560}
561
562/*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570*/
571SWIGRUNTIME swig_type_info *
572SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
36ed4f51 591 }
32fe5131
RD
592
593 /* neither found a match */
594 return 0;
36ed4f51
RD
595}
596
597/*
598 Pack binary data into a string
599*/
600SWIGRUNTIME char *
601SWIG_PackData(char *c, void *ptr, size_t sz) {
32fe5131
RD
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
36ed4f51 605 for (; u != eu; ++u) {
32fe5131 606 register unsigned char uu = *u;
36ed4f51
RD
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611}
612
613/*
614 Unpack binary data from a string
615*/
616SWIGRUNTIME const char *
617SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
32fe5131 619 register const unsigned char *eu = u + sz;
36ed4f51 620 for (; u != eu; ++u) {
32fe5131 621 register char d = *(c++);
1bd55598 622 register unsigned char uu;
36ed4f51
RD
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639}
640
36ed4f51
RD
641/*
642 Pack 'void *' into a string buffer.
643*/
644SWIGRUNTIME char *
645SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653}
654
655SWIGRUNTIME const char *
656SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666}
667
668SWIGRUNTIME char *
669SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681}
d55e5bfc 682
36ed4f51
RD
683SWIGRUNTIME const char *
684SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694}
d55e5bfc
RD
695
696#ifdef __cplusplus
697}
698#endif
699
1bd55598
RD
700/* Errors in SWIG */
701#define SWIG_UnknownError -1
702#define SWIG_IOError -2
703#define SWIG_RuntimeError -3
704#define SWIG_IndexError -4
705#define SWIG_TypeError -5
706#define SWIG_DivisionByZero -6
707#define SWIG_OverflowError -7
708#define SWIG_SyntaxError -8
709#define SWIG_ValueError -9
710#define SWIG_SystemError -10
711#define SWIG_AttributeError -11
712#define SWIG_MemoryError -12
713#define SWIG_NullReferenceError -13
d55e5bfc 714
1bd55598
RD
715
716
717/* Python.h has to appear first */
718#include <Python.h>
719
720/* Add PyOS_snprintf for old Pythons */
721#if PY_VERSION_HEX < 0x02020000
722# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723# define PyOS_snprintf _snprintf
724# else
725# define PyOS_snprintf snprintf
726# endif
727#endif
728
729/* A crude PyString_FromFormat implementation for old Pythons */
730#if PY_VERSION_HEX < 0x02020000
731
732#ifndef SWIG_PYBUFFER_SIZE
733# define SWIG_PYBUFFER_SIZE 1024
734#endif
735
736static PyObject *
737PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745}
746#endif
747
748/* Add PyObject_Del for old Pythons */
749#if PY_VERSION_HEX < 0x01060000
750# define PyObject_Del(op) PyMem_DEL((op))
751#endif
752#ifndef PyObject_DEL
753# define PyObject_DEL PyObject_Del
754#endif
755
756/* A crude PyExc_StopIteration exception for old Pythons */
757#if PY_VERSION_HEX < 0x02020000
758# ifndef PyExc_StopIteration
759# define PyExc_StopIteration PyExc_RuntimeError
760# endif
761# ifndef PyObject_GenericGetAttr
762# define PyObject_GenericGetAttr 0
763# endif
36ed4f51 764#endif
1bd55598
RD
765/* Py_NotImplemented is defined in 2.1 and up. */
766#if PY_VERSION_HEX < 0x02010000
767# ifndef Py_NotImplemented
768# define Py_NotImplemented PyExc_RuntimeError
769# endif
770#endif
771
772
773/* A crude PyString_AsStringAndSize implementation for old Pythons */
774#if PY_VERSION_HEX < 0x02010000
775# ifndef PyString_AsStringAndSize
776# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777# endif
778#endif
779
780/* PySequence_Size for old Pythons */
781#if PY_VERSION_HEX < 0x02000000
782# ifndef PySequence_Size
783# define PySequence_Size PySequence_Length
784# endif
785#endif
786
787
788/* PyBool_FromLong for old Pythons */
789#if PY_VERSION_HEX < 0x02030000
790static
791PyObject *PyBool_FromLong(long ok)
792{
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796}
797#endif
798
c370783e 799
36ed4f51 800/* -----------------------------------------------------------------------------
1bd55598 801 * error manipulation
36ed4f51 802 * ----------------------------------------------------------------------------- */
d55e5bfc 803
1bd55598
RD
804SWIGRUNTIME PyObject*
805SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845}
d55e5bfc 846
1bd55598
RD
847
848SWIGRUNTIME void
849SWIG_Python_AddErrorMsg(const char* mesg)
850{
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866}
867
868
869
870#if defined(SWIG_PYTHON_NO_THREADS)
871# if defined(SWIG_PYTHON_THREADS)
872# undef SWIG_PYTHON_THREADS
873# endif
874#endif
875#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877# if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878# define SWIG_PYTHON_USE_GIL
879# endif
880# endif
881# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882# ifndef SWIG_PYTHON_INITIALIZE_THREADS
883# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884# endif
885# ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906# else /* C code */
907# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911# endif
912# else /* Old thread way, not implemented, user must provide it */
913# if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914# define SWIG_PYTHON_INITIALIZE_THREADS
915# endif
916# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918# endif
919# if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920# define SWIG_PYTHON_THREAD_END_BLOCK
921# endif
922# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924# endif
925# if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926# define SWIG_PYTHON_THREAD_END_ALLOW
927# endif
928# endif
929#else /* No thread support */
930# define SWIG_PYTHON_INITIALIZE_THREADS
931# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932# define SWIG_PYTHON_THREAD_END_BLOCK
933# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934# define SWIG_PYTHON_THREAD_END_ALLOW
36ed4f51 935#endif
d55e5bfc 936
1bd55598
RD
937/* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
36ed4f51 940
1bd55598
RD
941#ifdef __cplusplus
942extern "C" {
943#if 0
944} /* cc-mode */
945#endif
946#endif
36ed4f51
RD
947
948/* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
d55e5bfc 951
36ed4f51 952/* Constant Types */
36ed4f51
RD
953#define SWIG_PY_POINTER 4
954#define SWIG_PY_BINARY 5
955
956/* Constant information structure */
957typedef struct swig_const_info {
1bd55598
RD
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
36ed4f51 964} swig_const_info;
d55e5bfc 965
d55e5bfc 966#ifdef __cplusplus
1bd55598
RD
967#if 0
968{ /* cc-mode */
969#endif
36ed4f51
RD
970}
971#endif
d55e5bfc 972
d55e5bfc 973
1bd55598
RD
974/* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
36ed4f51
RD
978 * pyrun.swg
979 *
1bd55598
RD
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
36ed4f51 983 *
1bd55598 984 * ----------------------------------------------------------------------------- */
d55e5bfc 985
36ed4f51 986/* Common SWIG API */
d55e5bfc 987
4f89b6b7
RD
988#if PY_VERSION_HEX < 0x02050000
989typedef int Py_ssize_t;
990#endif
991
1bd55598
RD
992/* for raw pointers */
993#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999#define swig_owntype int
d55e5bfc 1000
1bd55598
RD
1001/* for raw packed data */
1002#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
d55e5bfc 1004
1bd55598
RD
1005/* for class or struct pointers */
1006#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
d55e5bfc 1008
1bd55598
RD
1009/* for C or C++ function pointers */
1010#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
d55e5bfc 1012
1bd55598
RD
1013/* for C++ member pointers, ie, member methods */
1014#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
32fe5131 1016
c370783e 1017
1bd55598 1018/* Runtime API */
d55e5bfc 1019
1bd55598
RD
1020#define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022#define SWIG_NewClientData(obj) PySwigClientData_New(obj)
32fe5131 1023
1bd55598
RD
1024#define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026#define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027#define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028#define SWIG_fail goto fail
32fe5131 1029
d55e5bfc 1030
1bd55598 1031/* Runtime API implementation */
c370783e 1032
1bd55598 1033/* Error manipulation */
c370783e 1034
1bd55598
RD
1035SWIGINTERN void
1036SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
c370783e 1041}
d55e5bfc 1042
1bd55598
RD
1043SWIGINTERN void
1044SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
c370783e 1048}
d55e5bfc 1049
1bd55598 1050#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
32fe5131 1051
1bd55598 1052/* Set a constant value */
d55e5bfc 1053
1bd55598
RD
1054SWIGINTERN void
1055SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
d55e5bfc
RD
1058}
1059
1bd55598 1060/* Append a value to the result obj */
d55e5bfc 1061
1bd55598
RD
1062SWIGINTERN PyObject*
1063SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064#if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080#else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
36ed4f51 1088 } else {
1bd55598
RD
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
36ed4f51 1100 }
1bd55598
RD
1101 return result;
1102#endif
36ed4f51 1103}
c370783e 1104
1bd55598 1105/* Unpack the argument tuple */
d55e5bfc 1106
1bd55598
RD
1107SWIGINTERN int
1108SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109{
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143}
1144
1145/* A functor is a function object with one single object argument */
1146#if PY_VERSION_HEX >= 0x02020000
1147#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148#else
1149#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150#endif
1151
1152/*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155*/
1156#ifdef __cplusplus
1157#define SWIG_STATIC_POINTER(var) var
1158#else
1159#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160#endif
1161
1162/* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166/* Flags for new pointer objects */
1167#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172#ifdef __cplusplus
1173extern "C" {
1174#if 0
1175} /* cc-mode */
1176#endif
1177#endif
1178
1179/* How to access Py_None */
1180#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181# ifndef SWIG_PYTHON_NO_BUILD_NONE
1182# ifndef SWIG_PYTHON_BUILD_NONE
1183# define SWIG_PYTHON_BUILD_NONE
1184# endif
1185# endif
1186#endif
1187
1188#ifdef SWIG_PYTHON_BUILD_NONE
1189# ifdef Py_None
1190# undef Py_None
1191# define Py_None SWIG_Py_None()
1192# endif
1193SWIGRUNTIMEINLINE PyObject *
1194_SWIG_Py_None(void)
1195{
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199}
1200SWIGRUNTIME PyObject *
1201SWIG_Py_None(void)
1202{
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205}
1206#endif
1207
1208/* The python void return value */
1209
1210SWIGRUNTIMEINLINE PyObject *
1211SWIG_Py_Void(void)
1212{
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216}
1217
1218/* PySwigClientData */
1219
1220typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227} PySwigClientData;
1228
1229SWIGRUNTIMEINLINE int
1230SWIG_Python_CheckImplicit(swig_type_info *ty)
1231{
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234}
1235
1236SWIGRUNTIMEINLINE PyObject *
1237SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241}
1242
1243
1244SWIGRUNTIME PySwigClientData *
1245PySwigClientData_New(PyObject* obj)
1246{
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260#if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262#else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264#endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284#ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286#else
1287 data->delargs = 0;
1288#endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295}
1296
1297SWIGRUNTIME void
1298PySwigClientData_Del(PySwigClientData* data)
1299{
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303}
1304
1305/* =============== PySwigObject =====================*/
1306
1307typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313} PySwigObject;
1314
1315SWIGRUNTIME PyObject *
1316PySwigObject_long(PySwigObject *v)
1317{
1318 return PyLong_FromVoidPtr(v->ptr);
1319}
1320
1321SWIGRUNTIME PyObject *
1322PySwigObject_format(const char* fmt, PySwigObject *v)
1323{
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337}
1338
1339SWIGRUNTIME PyObject *
1340PySwigObject_oct(PySwigObject *v)
1341{
1342 return PySwigObject_format("%o",v);
1343}
1344
1345SWIGRUNTIME PyObject *
1346PySwigObject_hex(PySwigObject *v)
1347{
1348 return PySwigObject_format("%x",v);
1349}
1350
1351SWIGRUNTIME PyObject *
1352#ifdef METH_NOARGS
1353PySwigObject_repr(PySwigObject *v)
1354#else
1355PySwigObject_repr(PySwigObject *v, PyObject *args)
1356#endif
1357{
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363#ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365#else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367#endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371}
1372
1373SWIGRUNTIME int
1374PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375{
1376#ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378#else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380#endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388}
1389
1390SWIGRUNTIME PyObject *
1391PySwigObject_str(PySwigObject *v)
1392{
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396}
1397
1398SWIGRUNTIME int
1399PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400{
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404}
1405
1406SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408SWIGRUNTIME PyTypeObject*
1409PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412}
1413
1414SWIGRUNTIMEINLINE int
1415PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418}
1419
1420SWIGRUNTIME PyObject *
1421PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423SWIGRUNTIME void
1424PySwigObject_dealloc(PyObject *v)
1425{
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450#endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455}
1456
1457SWIGRUNTIME PyObject*
1458PySwigObject_append(PyObject* v, PyObject* next)
1459{
1460 PySwigObject *sobj = (PySwigObject *) v;
1461#ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465#endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472}
1473
1474SWIGRUNTIME PyObject*
1475#ifdef METH_NOARGS
1476PySwigObject_next(PyObject* v)
1477#else
1478PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479#endif
1480{
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488}
1489
1490SWIGINTERN PyObject*
1491#ifdef METH_NOARGS
1492PySwigObject_disown(PyObject *v)
1493#else
1494PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495#endif
1496{
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500}
1501
1502SWIGINTERN PyObject*
1503#ifdef METH_NOARGS
1504PySwigObject_acquire(PyObject *v)
1505#else
1506PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507#endif
1508{
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512}
1513
1514SWIGINTERN PyObject*
1515PySwigObject_own(PyObject *v, PyObject *args)
1516{
1517 PyObject *val = 0;
1518#if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520#else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522#endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531#ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537#else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543#endif
1544 }
1545 return obj;
1546 }
1547}
1548
1549#ifdef METH_O
1550static PyMethodDef
1551swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559};
1560#else
1561static PyMethodDef
1562swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570};
1571#endif
1572
1573#if PY_VERSION_HEX < 0x02020000
1574SWIGINTERN PyObject *
1575PySwigObject_getattr(PySwigObject *sobj,char *name)
1576{
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578}
1579#endif
1580
1581SWIGRUNTIME PyTypeObject*
1582_PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
36ed4f51
RD
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
32fe5131 1609#if PY_VERSION_HEX >= 0x02020000
36ed4f51 1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
32fe5131
RD
1611#elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
36ed4f51
RD
1613#endif
1614 };
1615
1bd55598 1616 static PyTypeObject pyswigobject_type;
32fe5131 1617 static int type_init = 0;
36ed4f51 1618 if (!type_init) {
1bd55598
RD
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628#if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630#else
1631 (getattrfunc)0, /* tp_getattr */
36ed4f51 1632#endif
1bd55598
RD
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
36ed4f51 1651#if PY_VERSION_HEX >= 0x02020000
1bd55598
RD
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
36ed4f51
RD
1672#endif
1673#if PY_VERSION_HEX >= 0x02030000
1bd55598 1674 0, /* tp_del */
36ed4f51
RD
1675#endif
1676#ifdef COUNT_ALLOCS
1bd55598 1677 0,0,0,0 /* tp_alloc -> tp_next */
36ed4f51 1678#endif
1bd55598 1679 };
32fe5131 1680 pyswigobject_type = tmp;
1bd55598 1681 pyswigobject_type.ob_type = &PyType_Type;
36ed4f51 1682 type_init = 1;
d55e5bfc 1683 }
32fe5131 1684 return &pyswigobject_type;
d55e5bfc
RD
1685}
1686
36ed4f51 1687SWIGRUNTIME PyObject *
1bd55598 1688PySwigObject_New(void *ptr, swig_type_info *ty, int own)
36ed4f51 1689{
1bd55598
RD
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
32fe5131 1696 }
1bd55598 1697 return (PyObject *)sobj;
36ed4f51 1698}
c370783e 1699
36ed4f51
RD
1700/* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1bd55598 1707 swig_type_info *ty;
36ed4f51
RD
1708 size_t size;
1709} PySwigPacked;
1710
1711SWIGRUNTIME int
1bd55598 1712PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
c370783e 1713{
36ed4f51
RD
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
d55e5bfc 1719 }
1bd55598 1720 fputs(v->ty->name,fp);
36ed4f51
RD
1721 fputs(">", fp);
1722 return 0;
c370783e 1723}
c370783e 1724
36ed4f51
RD
1725SWIGRUNTIME PyObject *
1726PySwigPacked_repr(PySwigPacked *v)
c370783e 1727{
36ed4f51
RD
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1bd55598 1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
36ed4f51 1731 } else {
1bd55598 1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
36ed4f51 1733 }
d55e5bfc
RD
1734}
1735
36ed4f51
RD
1736SWIGRUNTIME PyObject *
1737PySwigPacked_str(PySwigPacked *v)
1738{
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1bd55598 1741 return PyString_FromFormat("%s%s", result, v->ty->name);
36ed4f51 1742 } else {
1bd55598 1743 return PyString_FromString(v->ty->name);
36ed4f51
RD
1744 }
1745}
d55e5bfc 1746
36ed4f51
RD
1747SWIGRUNTIME int
1748PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
d55e5bfc 1749{
1bd55598
RD
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
d55e5bfc
RD
1754}
1755
1bd55598 1756SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
d55e5bfc 1757
36ed4f51 1758SWIGRUNTIME PyTypeObject*
32fe5131 1759PySwigPacked_type(void) {
1bd55598
RD
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762}
1763
1764SWIGRUNTIMEINLINE int
1765PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768}
1769
1770SWIGRUNTIME void
1771PySwigPacked_dealloc(PyObject *v)
1772{
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778}
1779
1780SWIGRUNTIME PyTypeObject*
1781_PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814#if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
36ed4f51
RD
1835#endif
1836#if PY_VERSION_HEX >= 0x02030000
1bd55598 1837 0, /* tp_del */
36ed4f51
RD
1838#endif
1839#ifdef COUNT_ALLOCS
1bd55598 1840 0,0,0,0 /* tp_alloc -> tp_next */
36ed4f51 1841#endif
1bd55598 1842 };
32fe5131 1843 pyswigpacked_type = tmp;
1bd55598 1844 pyswigpacked_type.ob_type = &PyType_Type;
36ed4f51
RD
1845 type_init = 1;
1846 }
32fe5131 1847 return &pyswigpacked_type;
36ed4f51
RD
1848}
1849
1850SWIGRUNTIME PyObject *
1bd55598 1851PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
d55e5bfc 1852{
1bd55598
RD
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
36ed4f51 1855 void *pack = malloc(size);
32fe5131
RD
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1bd55598
RD
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
32fe5131 1864 }
d55e5bfc 1865 }
1bd55598 1866 return (PyObject *) sobj;
d55e5bfc
RD
1867}
1868
1bd55598 1869SWIGRUNTIME swig_type_info *
36ed4f51 1870PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
d55e5bfc 1871{
1bd55598
RD
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
36ed4f51 1880}
d55e5bfc 1881
36ed4f51 1882/* -----------------------------------------------------------------------------
1bd55598 1883 * pointers/data manipulation
36ed4f51 1884 * ----------------------------------------------------------------------------- */
d55e5bfc 1885
1bd55598
RD
1886SWIGRUNTIMEINLINE PyObject *
1887_SWIG_This(void)
1888{
1889 return PyString_FromString("this");
1890}
d6c14a4c 1891
1bd55598
RD
1892SWIGRUNTIME PyObject *
1893SWIG_This(void)
1894{
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897}
d55e5bfc 1898
1bd55598 1899/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
36ed4f51 1900
1bd55598
RD
1901SWIGRUNTIME PySwigObject *
1902SWIG_Python_GetSwigThis(PyObject *pyobj)
36ed4f51 1903{
1bd55598
RD
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917#ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922#endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
36ed4f51 1926 } else {
1bd55598
RD
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
36ed4f51 1929 }
36ed4f51 1930 }
1bd55598
RD
1931 }
1932#else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940#endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
c370783e 1947 }
d55e5bfc
RD
1948}
1949
1bd55598
RD
1950/* Acquire a pointer value */
1951
1952SWIGRUNTIME int
1953SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
36ed4f51 1961 }
1bd55598 1962 return 0;
36ed4f51 1963}
d55e5bfc 1964
1bd55598
RD
1965/* Convert a pointer value */
1966
36ed4f51 1967SWIGRUNTIME int
1bd55598
RD
1968SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
36ed4f51 1992 } else {
1bd55598
RD
1993 if (ptr) *ptr = vptr;
1994 break;
36ed4f51 1995 }
36ed4f51 1996 }
1bd55598
RD
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
d55e5bfc 2042 }
c370783e
RD
2043}
2044
1bd55598
RD
2045/* Convert a function ptr value */
2046
36ed4f51 2047SWIGRUNTIME int
1bd55598
RD
2048SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
36ed4f51 2051 } else {
1bd55598
RD
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
4f89b6b7 2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
1bd55598
RD
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
36ed4f51 2069 }
d55e5bfc
RD
2070}
2071
1bd55598 2072/* Convert a packed value value */
d55e5bfc 2073
36ed4f51 2074SWIGRUNTIME int
1bd55598
RD
2075SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
36ed4f51 2084 }
1bd55598
RD
2085 return SWIG_OK;
2086}
d55e5bfc 2087
1bd55598
RD
2088/* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
d55e5bfc 2091
1bd55598
RD
2092/*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095*/
d55e5bfc 2096
1bd55598
RD
2097SWIGRUNTIME PyObject*
2098SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099{
2100#if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
36ed4f51 2115 }
1bd55598
RD
2116#else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119#endif
36ed4f51 2120 }
1bd55598
RD
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
36ed4f51 2126 }
1bd55598
RD
2127 return inst;
2128#else
2129#if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136#else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
36ed4f51 2140 }
1bd55598
RD
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
36ed4f51 2147 }
1bd55598
RD
2148#ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150#endif
2151#ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153#endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156#endif
2157#endif
36ed4f51 2158}
d55e5bfc 2159
1bd55598
RD
2160SWIGRUNTIME void
2161SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162{
2163 PyObject *dict;
2164#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
36ed4f51 2175#endif
1bd55598
RD
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179}
d55e5bfc 2180
1bd55598
RD
2181
2182SWIGINTERN PyObject *
2183SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
36ed4f51 2191 } else {
1bd55598 2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
36ed4f51 2193 }
1bd55598 2194 return SWIG_Py_Void();
d55e5bfc 2195 }
1bd55598
RD
2196}
2197
2198/* Create a new pointer object */
36ed4f51 2199
36ed4f51 2200SWIGRUNTIME PyObject *
1bd55598 2201SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
36ed4f51 2202 if (!ptr) {
1bd55598
RD
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
36ed4f51 2213 }
36ed4f51 2214 }
1bd55598 2215 return robj;
36ed4f51 2216 }
c370783e
RD
2217}
2218
1bd55598
RD
2219/* Create a new packed object */
2220
2221SWIGRUNTIMEINLINE PyObject *
36ed4f51 2222SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
1bd55598 2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
d55e5bfc
RD
2224}
2225
36ed4f51
RD
2226/* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230#ifdef SWIG_LINK_RUNTIME
2231void *SWIG_ReturnGlobalTypeList(void *);
2232#endif
2233
32fe5131
RD
2234SWIGRUNTIME swig_module_info *
2235SWIG_Python_GetModule(void) {
36ed4f51
RD
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239#ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
d55e5bfc 2241#else
36ed4f51
RD
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
d55e5bfc 2248#endif
32fe5131
RD
2249 }
2250 return (swig_module_info *) type_pointer;
36ed4f51 2251}
d55e5bfc 2252
32fe5131
RD
2253#if PY_MAJOR_VERSION < 2
2254/* PyModule_AddObject function was introduced in Python 2.0. The following function
1bd55598 2255 is copied out of Python/modsupport.c in python version 2.3.4 */
32fe5131
RD
2256SWIGINTERN int
2257PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258{
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
1bd55598 2263 return SWIG_ERROR;
32fe5131
RD
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
1bd55598 2268 return SWIG_ERROR;
32fe5131
RD
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
1bd55598 2276 return SWIG_ERROR;
32fe5131
RD
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
1bd55598 2279 return SWIG_ERROR;
32fe5131 2280 Py_DECREF(o);
1bd55598 2281 return SWIG_OK;
36ed4f51 2282}
32fe5131 2283#endif
d55e5bfc 2284
1bd55598
RD
2285SWIGRUNTIME void
2286SWIG_Python_DestroyModule(void *vptr)
2287{
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299}
2300
32fe5131
RD
2301SWIGRUNTIME void
2302SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
1bd55598 2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
32fe5131
RD
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
1bd55598
RD
2310 } else {
2311 Py_XDECREF(pointer);
32fe5131
RD
2312 }
2313}
d55e5bfc 2314
1bd55598
RD
2315/* The python cached type query */
2316SWIGRUNTIME PyObject *
2317SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
36ed4f51 2320}
d55e5bfc 2321
1bd55598
RD
2322SWIGRUNTIME swig_type_info *
2323SWIG_Python_TypeQuery(const char *type)
2324{
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342}
2343
2344/*
2345 For backward compatibility only
2346*/
2347#define SWIG_POINTER_EXCEPTION 0
2348#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351SWIGRUNTIME int
2352SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353{
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374}
2375
2376SWIGRUNTIME int
2377SWIG_Python_ArgFail(int argnum)
2378{
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387}
2388
2389SWIGRUNTIMEINLINE const char *
2390PySwigObject_GetDesc(PyObject *self)
2391{
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395}
2396
2397SWIGRUNTIME void
2398SWIG_Python_TypeError(const char *type, PyObject *obj)
2399{
2400 if (type) {
2401#if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410#endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431}
2432
2433
2434/* Convert a pointer value, signal an exception on a type mismatch */
2435SWIGRUNTIME void *
2436SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446}
2447
2448
2449#ifdef __cplusplus
2450#if 0
2451{ /* cc-mode */
2452#endif
2453}
2454#endif
2455
2456
2457
2458#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464/* -------- TYPES TABLE (BEGIN) -------- */
2465
fc46b7f3
RD
2466#define SWIGTYPE_p_buffer swig_types[0]
2467#define SWIGTYPE_p_char swig_types[1]
2468#define SWIGTYPE_p_double swig_types[2]
2469#define SWIGTYPE_p_form_ops_t swig_types[3]
2470#define SWIGTYPE_p_int swig_types[4]
2471#define SWIGTYPE_p_unsigned_char swig_types[5]
2472#define SWIGTYPE_p_unsigned_int swig_types[6]
2473#define SWIGTYPE_p_unsigned_long swig_types[7]
0a27f394
RD
2474#define SWIGTYPE_p_void swig_types[8]
2475#define SWIGTYPE_p_wxANIHandler swig_types[9]
2476#define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477#define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478#define SWIGTYPE_p_wxAlphaPixelData swig_types[12]
2479#define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[13]
2480#define SWIGTYPE_p_wxAutoBufferedPaintDC swig_types[14]
2481#define SWIGTYPE_p_wxBMPHandler swig_types[15]
2482#define SWIGTYPE_p_wxBitmap swig_types[16]
2483#define SWIGTYPE_p_wxBoxSizer swig_types[17]
2484#define SWIGTYPE_p_wxBrush swig_types[18]
2485#define SWIGTYPE_p_wxBrushList swig_types[19]
2486#define SWIGTYPE_p_wxBufferedDC swig_types[20]
2487#define SWIGTYPE_p_wxBufferedPaintDC swig_types[21]
2488#define SWIGTYPE_p_wxCURHandler swig_types[22]
2489#define SWIGTYPE_p_wxChar swig_types[23]
2490#define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491#define SWIGTYPE_p_wxClientDC swig_types[25]
2492#define SWIGTYPE_p_wxClipboardTextEvent swig_types[26]
2493#define SWIGTYPE_p_wxCloseEvent swig_types[27]
2494#define SWIGTYPE_p_wxColor swig_types[28]
2495#define SWIGTYPE_p_wxColour swig_types[29]
2496#define SWIGTYPE_p_wxColourDatabase swig_types[30]
2497#define SWIGTYPE_p_wxCommandEvent swig_types[31]
2498#define SWIGTYPE_p_wxContextMenuEvent swig_types[32]
2499#define SWIGTYPE_p_wxControl swig_types[33]
2500#define SWIGTYPE_p_wxControlWithItems swig_types[34]
2501#define SWIGTYPE_p_wxCursor swig_types[35]
2502#define SWIGTYPE_p_wxDC swig_types[36]
70d7cb34
RD
2503#define SWIGTYPE_p_wxDCBrushChanger swig_types[37]
2504#define SWIGTYPE_p_wxDCClipper swig_types[38]
2505#define SWIGTYPE_p_wxDCOverlay swig_types[39]
2506#define SWIGTYPE_p_wxDCPenChanger swig_types[40]
2507#define SWIGTYPE_p_wxDCTextColourChanger swig_types[41]
2508#define SWIGTYPE_p_wxDash swig_types[42]
2509#define SWIGTYPE_p_wxDateEvent swig_types[43]
2510#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[44]
2511#define SWIGTYPE_p_wxDropFilesEvent swig_types[45]
2512#define SWIGTYPE_p_wxDuplexMode swig_types[46]
2513#define SWIGTYPE_p_wxEffects swig_types[47]
2514#define SWIGTYPE_p_wxEncodingConverter swig_types[48]
2515#define SWIGTYPE_p_wxEraseEvent swig_types[49]
2516#define SWIGTYPE_p_wxEvent swig_types[50]
2517#define SWIGTYPE_p_wxEvtHandler swig_types[51]
2518#define SWIGTYPE_p_wxFSFile swig_types[52]
2519#define SWIGTYPE_p_wxFileSystem swig_types[53]
2520#define SWIGTYPE_p_wxFlexGridSizer swig_types[54]
2521#define SWIGTYPE_p_wxFocusEvent swig_types[55]
2522#define SWIGTYPE_p_wxFont swig_types[56]
2523#define SWIGTYPE_p_wxFontList swig_types[57]
2524#define SWIGTYPE_p_wxFontMapper swig_types[58]
2525#define SWIGTYPE_p_wxGBSizerItem swig_types[59]
2526#define SWIGTYPE_p_wxGCDC swig_types[60]
2527#define SWIGTYPE_p_wxGDIObjListBase swig_types[61]
2528#define SWIGTYPE_p_wxGDIObject swig_types[62]
2529#define SWIGTYPE_p_wxGIFHandler swig_types[63]
2530#define SWIGTYPE_p_wxGraphicsBrush swig_types[64]
2531#define SWIGTYPE_p_wxGraphicsContext swig_types[65]
2532#define SWIGTYPE_p_wxGraphicsFont swig_types[66]
2533#define SWIGTYPE_p_wxGraphicsMatrix swig_types[67]
2534#define SWIGTYPE_p_wxGraphicsObject swig_types[68]
2535#define SWIGTYPE_p_wxGraphicsPath swig_types[69]
2536#define SWIGTYPE_p_wxGraphicsPen swig_types[70]
2537#define SWIGTYPE_p_wxGraphicsRenderer swig_types[71]
2538#define SWIGTYPE_p_wxGridBagSizer swig_types[72]
2539#define SWIGTYPE_p_wxGridSizer swig_types[73]
2540#define SWIGTYPE_p_wxHeaderButtonParams swig_types[74]
2541#define SWIGTYPE_p_wxICOHandler swig_types[75]
2542#define SWIGTYPE_p_wxIcon swig_types[76]
2543#define SWIGTYPE_p_wxIconBundle swig_types[77]
2544#define SWIGTYPE_p_wxIconLocation swig_types[78]
2545#define SWIGTYPE_p_wxIconizeEvent swig_types[79]
2546#define SWIGTYPE_p_wxIdleEvent swig_types[80]
2547#define SWIGTYPE_p_wxImage swig_types[81]
2548#define SWIGTYPE_p_wxImageHandler swig_types[82]
2549#define SWIGTYPE_p_wxImageList swig_types[83]
2550#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[84]
2551#define SWIGTYPE_p_wxInitDialogEvent swig_types[85]
2552#define SWIGTYPE_p_wxJPEGHandler swig_types[86]
2553#define SWIGTYPE_p_wxKeyEvent swig_types[87]
2554#define SWIGTYPE_p_wxLanguageInfo swig_types[88]
2555#define SWIGTYPE_p_wxLayoutConstraints swig_types[89]
2556#define SWIGTYPE_p_wxLocale swig_types[90]
2557#define SWIGTYPE_p_wxMask swig_types[91]
2558#define SWIGTYPE_p_wxMaximizeEvent swig_types[92]
2559#define SWIGTYPE_p_wxMemoryDC swig_types[93]
2560#define SWIGTYPE_p_wxMenu swig_types[94]
2561#define SWIGTYPE_p_wxMenuBar swig_types[95]
2562#define SWIGTYPE_p_wxMenuEvent swig_types[96]
2563#define SWIGTYPE_p_wxMenuItem swig_types[97]
2564#define SWIGTYPE_p_wxMetaFile swig_types[98]
2565#define SWIGTYPE_p_wxMetaFileDC swig_types[99]
2566#define SWIGTYPE_p_wxMirrorDC swig_types[100]
2567#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[101]
2568#define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[102]
2569#define SWIGTYPE_p_wxMouseEvent swig_types[103]
2570#define SWIGTYPE_p_wxMoveEvent swig_types[104]
2571#define SWIGTYPE_p_wxNativeEncodingInfo swig_types[105]
2572#define SWIGTYPE_p_wxNativeFontInfo swig_types[106]
2573#define SWIGTYPE_p_wxNativePixelData swig_types[107]
2574#define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[108]
2575#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[109]
2576#define SWIGTYPE_p_wxNcPaintEvent swig_types[110]
2577#define SWIGTYPE_p_wxNotifyEvent swig_types[111]
2578#define SWIGTYPE_p_wxObject swig_types[112]
2579#define SWIGTYPE_p_wxOverlay swig_types[113]
2580#define SWIGTYPE_p_wxPCXHandler swig_types[114]
2581#define SWIGTYPE_p_wxPNGHandler swig_types[115]
2582#define SWIGTYPE_p_wxPNMHandler swig_types[116]
2583#define SWIGTYPE_p_wxPaintDC swig_types[117]
2584#define SWIGTYPE_p_wxPaintEvent swig_types[118]
2585#define SWIGTYPE_p_wxPalette swig_types[119]
2586#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[120]
2587#define SWIGTYPE_p_wxPaperSize swig_types[121]
2588#define SWIGTYPE_p_wxPen swig_types[122]
2589#define SWIGTYPE_p_wxPenList swig_types[123]
2590#define SWIGTYPE_p_wxPixelDataBase swig_types[124]
2591#define SWIGTYPE_p_wxPoint swig_types[125]
2592#define SWIGTYPE_p_wxPoint2D swig_types[126]
2593#define SWIGTYPE_p_wxPoint2DDouble swig_types[127]
2594#define SWIGTYPE_p_wxPostScriptDC swig_types[128]
2595#define SWIGTYPE_p_wxPrintData swig_types[129]
2596#define SWIGTYPE_p_wxPrinterDC swig_types[130]
2597#define SWIGTYPE_p_wxPseudoDC swig_types[131]
2598#define SWIGTYPE_p_wxPyApp swig_types[132]
2599#define SWIGTYPE_p_wxPyCommandEvent swig_types[133]
2600#define SWIGTYPE_p_wxPyEvent swig_types[134]
2601#define SWIGTYPE_p_wxPyFontEnumerator swig_types[135]
2602#define SWIGTYPE_p_wxPyImageHandler swig_types[136]
2603#define SWIGTYPE_p_wxPyLocale swig_types[137]
2604#define SWIGTYPE_p_wxPySizer swig_types[138]
2605#define SWIGTYPE_p_wxPyValidator swig_types[139]
2606#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[140]
2607#define SWIGTYPE_p_wxRect swig_types[141]
2608#define SWIGTYPE_p_wxRect2DDouble swig_types[142]
2609#define SWIGTYPE_p_wxRegion swig_types[143]
2610#define SWIGTYPE_p_wxRegionIterator swig_types[144]
2611#define SWIGTYPE_p_wxRendererNative swig_types[145]
2612#define SWIGTYPE_p_wxRendererVersion swig_types[146]
2613#define SWIGTYPE_p_wxScreenDC swig_types[147]
2614#define SWIGTYPE_p_wxScrollEvent swig_types[148]
2615#define SWIGTYPE_p_wxScrollWinEvent swig_types[149]
2616#define SWIGTYPE_p_wxSetCursorEvent swig_types[150]
2617#define SWIGTYPE_p_wxShowEvent swig_types[151]
2618#define SWIGTYPE_p_wxSize swig_types[152]
2619#define SWIGTYPE_p_wxSizeEvent swig_types[153]
2620#define SWIGTYPE_p_wxSizer swig_types[154]
2621#define SWIGTYPE_p_wxSizerItem swig_types[155]
2622#define SWIGTYPE_p_wxSplitterRenderParams swig_types[156]
2623#define SWIGTYPE_p_wxStaticBoxSizer swig_types[157]
2624#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[158]
2625#define SWIGTYPE_p_wxStockGDI swig_types[159]
2626#define SWIGTYPE_p_wxString swig_types[160]
2627#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[161]
580080c5
RD
2628#define SWIGTYPE_p_wxTGAHandler swig_types[162]
2629#define SWIGTYPE_p_wxTIFFHandler swig_types[163]
2630#define SWIGTYPE_p_wxUpdateUIEvent swig_types[164]
2631#define SWIGTYPE_p_wxValidator swig_types[165]
2632#define SWIGTYPE_p_wxWindow swig_types[166]
2633#define SWIGTYPE_p_wxWindowCreateEvent swig_types[167]
2634#define SWIGTYPE_p_wxWindowDC swig_types[168]
2635#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[169]
2636#define SWIGTYPE_p_wxXPMHandler swig_types[170]
2637static swig_type_info *swig_types[172];
2638static swig_module_info swig_module = {swig_types, 171, 0, 0, 0, 0};
32fe5131
RD
2639#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2640#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
d55e5bfc 2641
36ed4f51 2642/* -------- TYPES TABLE (END) -------- */
d55e5bfc 2643
1bd55598
RD
2644#if (PY_VERSION_HEX <= 0x02000000)
2645# if !defined(SWIG_PYTHON_CLASSIC)
2646# error "This python version requires to use swig with the '-classic' option"
2647# endif
2648#endif
2649#if (PY_VERSION_HEX <= 0x02020000)
2650# error "This python version requires to use swig with the '-nomodern' option"
2651#endif
2652#if (PY_VERSION_HEX <= 0x02020000)
2653# error "This python version requires to use swig with the '-nomodernargs' option"
2654#endif
2655#ifndef METH_O
2656# error "This python version requires to use swig with the '-nofastunpack' option"
2657#endif
d55e5bfc 2658
36ed4f51
RD
2659/*-----------------------------------------------
2660 @(target):= _gdi_.so
2661 ------------------------------------------------*/
2662#define SWIG_init init_gdi_
d55e5bfc 2663
36ed4f51 2664#define SWIG_name "_gdi_"
d55e5bfc 2665
1bd55598 2666#define SWIGVERSION 0x010329
d55e5bfc 2667
d55e5bfc 2668
1bd55598
RD
2669#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2670#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
d55e5bfc
RD
2671
2672
1bd55598
RD
2673#include <stdexcept>
2674
2675
2676namespace swig {
2677 class PyObject_ptr {
2678 protected:
2679 PyObject *_obj;
2680
2681 public:
2682 PyObject_ptr() :_obj(0)
2683 {
36ed4f51 2684 }
1bd55598
RD
2685
2686 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2687 {
2688 Py_XINCREF(_obj);
36ed4f51 2689 }
1bd55598
RD
2690
2691 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2692 {
2693 if (initial_ref) Py_XINCREF(_obj);
2694 }
2695
2696 PyObject_ptr & operator=(const PyObject_ptr& item)
2697 {
2698 Py_XINCREF(item._obj);
2699 Py_XDECREF(_obj);
2700 _obj = item._obj;
2701 return *this;
2702 }
2703
2704 ~PyObject_ptr()
2705 {
2706 Py_XDECREF(_obj);
2707 }
2708
2709 operator PyObject *() const
2710 {
2711 return _obj;
2712 }
2713
2714 PyObject *operator->() const
2715 {
2716 return _obj;
2717 }
2718 };
36ed4f51 2719}
d55e5bfc 2720
d55e5bfc 2721
1bd55598
RD
2722namespace swig {
2723 struct PyObject_var : PyObject_ptr {
2724 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2725
2726 PyObject_var & operator = (PyObject* obj)
2727 {
2728 Py_XDECREF(_obj);
2729 _obj = obj;
2730 return *this;
d55e5bfc 2731 }
1bd55598 2732 };
d55e5bfc
RD
2733}
2734
2735
1bd55598
RD
2736#include "wx/wxPython/wxPython.h"
2737#include "wx/wxPython/pyclasses.h"
2738
2739
2740 static const wxString wxPyEmptyString(wxEmptyString);
2741
2131d850
RD
2742 #define SWIG_From_long PyInt_FromLong
2743
2744
2745SWIGINTERNINLINE PyObject *
2746SWIG_From_int (int value)
2747{
2748 return SWIG_From_long (value);
2749}
2750
2751
1bd55598
RD
2752#include <limits.h>
2753#ifndef LLONG_MIN
2754# define LLONG_MIN LONG_LONG_MIN
2755#endif
2756#ifndef LLONG_MAX
2757# define LLONG_MAX LONG_LONG_MAX
2758#endif
2759#ifndef ULLONG_MAX
2760# define ULLONG_MAX ULONG_LONG_MAX
2761#endif
d55e5bfc
RD
2762
2763
da91cb0f
RD
2764SWIGINTERN int
2765SWIG_AsVal_long (PyObject* obj, long* val)
2766{
2767 if (PyNumber_Check(obj)) {
2768 if (val) *val = PyInt_AsLong(obj);
2769 return SWIG_OK;
2770 }
2771 return SWIG_TypeError;
2772}
2773
2774
36ed4f51 2775SWIGINTERN int
1bd55598 2776SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
36ed4f51
RD
2777{
2778 long v = 0;
2779 if (SWIG_AsVal_long(obj, &v) && v < 0) {
1bd55598 2780 return SWIG_TypeError;
36ed4f51
RD
2781 }
2782 else if (val)
2783 *val = (unsigned long)v;
1bd55598 2784 return SWIG_OK;
36ed4f51 2785}
d55e5bfc
RD
2786
2787
36ed4f51 2788SWIGINTERN int
1bd55598
RD
2789SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2790{
36ed4f51 2791 unsigned long v;
1bd55598
RD
2792 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2793 if (SWIG_IsOK(res)) {
2794 if ((v > UCHAR_MAX)) {
2795 return SWIG_OverflowError;
36ed4f51 2796 } else {
1bd55598 2797 if (val) *val = static_cast< unsigned char >(v);
36ed4f51 2798 }
1bd55598
RD
2799 }
2800 return res;
36ed4f51 2801}
d55e5bfc 2802
d55e5bfc 2803
1bd55598
RD
2804SWIGINTERNINLINE PyObject*
2805SWIG_From_unsigned_SS_long (unsigned long value)
36ed4f51 2806{
1bd55598
RD
2807 return (value > LONG_MAX) ?
2808 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
d55e5bfc
RD
2809}
2810
2811
1bd55598
RD
2812SWIGINTERNINLINE PyObject *
2813SWIG_From_unsigned_SS_char (unsigned char value)
2814{
2815 return SWIG_From_unsigned_SS_long (value);
2816}
d55e5bfc 2817
e9d6f3a4
RD
2818SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2819 wxColour temp, *obj = &temp;
2820 if ( other == Py_None ) return false;
2821 if ( ! wxColour_helper(other, &obj) ) {
2822 PyErr_Clear();
2823 return false;
2824 }
2825 return self->operator==(*obj);
2826 }
2827SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2828 wxColour temp, *obj = &temp;
2829 if ( other == Py_None ) return true;
2830 if ( ! wxColour_helper(other, &obj)) {
2831 PyErr_Clear();
2832 return true;
2833 }
2834 return self->operator!=(*obj);
2835 }
fc46b7f3
RD
2836
2837SWIGINTERN int
2838SWIG_AsVal_bool (PyObject *obj, bool *val)
2839{
2840 if (obj == Py_True) {
2841 if (val) *val = true;
2842 return SWIG_OK;
2843 } else if (obj == Py_False) {
2844 if (val) *val = false;
2845 return SWIG_OK;
2846 } else {
2847 long v = 0;
2848 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2849 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2850 return res;
2851 }
2852}
2853
2854SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2855 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
36ed4f51
RD
2856 int red = -1;
2857 int green = -1;
2858 int blue = -1;
fc46b7f3 2859 int alpha = wxALPHA_OPAQUE;
b39fe951 2860 if (self->IsOk()) {
36ed4f51
RD
2861 red = self->Red();
2862 green = self->Green();
2863 blue = self->Blue();
fc46b7f3 2864 alpha = self->Alpha();
36ed4f51
RD
2865 }
2866 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2867 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2868 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
fc46b7f3
RD
2869 if (includeAlpha)
2870 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
36ed4f51
RD
2871 return rv;
2872 }
1bd55598 2873SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
36ed4f51
RD
2874 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2875 }
d55e5bfc 2876
1bd55598
RD
2877SWIGINTERN int
2878SWIG_AsVal_int (PyObject * obj, int *val)
36ed4f51 2879{
1bd55598
RD
2880 long v;
2881 int res = SWIG_AsVal_long (obj, &v);
2882 if (SWIG_IsOK(res)) {
2883 if ((v < INT_MIN || v > INT_MAX)) {
2884 return SWIG_OverflowError;
2885 } else {
2886 if (val) *val = static_cast< int >(v);
2887 }
2888 }
2889 return res;
d55e5bfc
RD
2890}
2891
1bd55598 2892SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
36ed4f51
RD
2893 wxDash* dashes;
2894 int count = self->GetDashes(&dashes);
5a446332 2895 wxPyBlock_t blocked = wxPyBeginBlockThreads();
36ed4f51
RD
2896 PyObject* retval = PyList_New(0);
2897 for (int x=0; x<count; x++) {
2898 PyObject* pyint = PyInt_FromLong(dashes[x]);
2899 PyList_Append(retval, pyint);
2900 Py_DECREF(pyint);
2901 }
2902 wxPyEndBlockThreads(blocked);
2903 return retval;
2904 }
1bd55598 2905SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
5a446332 2906 wxPyBlock_t blocked = wxPyBeginBlockThreads();
36ed4f51
RD
2907 int size = PyList_Size(pyDashes);
2908 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
d55e5bfc 2909
36ed4f51
RD
2910 // black magic warning! The array of wxDashes needs to exist as
2911 // long as the pen does because wxPen does not copy the array. So
2912 // stick a copy in a Python string object and attach it to _self,
2913 // and then call SetDashes with a pointer to that array. Then
2914 // when the Python pen object is destroyed the array will be
2915 // cleaned up too.
2916 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2917 PyObject_SetAttrString(_self, "_dashes", strDashes);
2918
2919 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2920 delete [] dashes;
2921 Py_DECREF(strDashes);
2922 wxPyEndBlockThreads(blocked);
2923 }
1bd55598
RD
2924SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2925SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
d55e5bfc 2926
1bd55598
RD
2927SWIGINTERNINLINE PyObject *
2928SWIG_From_short (short value)
2929{
2930 return SWIG_From_long (value);
2931}
d55e5bfc
RD
2932
2933
36ed4f51 2934SWIGINTERN int
1bd55598
RD
2935SWIG_AsVal_short (PyObject * obj, short *val)
2936{
36ed4f51 2937 long v;
1bd55598
RD
2938 int res = SWIG_AsVal_long (obj, &v);
2939 if (SWIG_IsOK(res)) {
2940 if ((v < SHRT_MIN || v > SHRT_MAX)) {
2941 return SWIG_OverflowError;
36ed4f51 2942 } else {
1bd55598
RD
2943 if (val) *val = static_cast< short >(v);
2944 }
2945 }
2946 return res;
d55e5bfc
RD
2947}
2948
2949
fc46b7f3
RD
2950#include <wx/rawbmp.h>
2951
2952
8f514ab4
RD
2953// See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2954// appears to me that the other platforms are already doing it, so I'll just
2955// automatically do it for wxMSW here.
2956#ifdef __WXMSW__
2957#define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2958#define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2959#else
2960#define wxPy_premultiply(p, a) (p)
2961#define wxPy_unpremultiply(p, a) (p)
2962#endif
2963
2964
36ed4f51 2965#include <wx/image.h>
d55e5bfc 2966
36ed4f51
RD
2967 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2968 char** cArray = NULL;
2969 int count;
d55e5bfc 2970
36ed4f51
RD
2971 if (!PyList_Check(listOfStrings)) {
2972 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2973 return NULL;
2974 }
2975 count = PyList_Size(listOfStrings);
2976 cArray = new char*[count];
d55e5bfc 2977
36ed4f51
RD
2978 for(int x=0; x<count; x++) {
2979 // TODO: Need some validation and error checking here
2980 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2981 }
2982 return cArray;
d55e5bfc 2983 }
d55e5bfc
RD
2984
2985
1bd55598 2986SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
fc46b7f3
RD
2987 char** cArray = NULL;
2988 wxBitmap* bmp;
2989
2990 cArray = ConvertListOfStrings(listOfStrings);
2991 if (! cArray)
2992 return NULL;
2993 bmp = new wxBitmap(cArray);
2994 delete [] cArray;
2995 return bmp;
2996 }
1bd55598 2997SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
fc46b7f3
RD
2998 char* buf;
2999 Py_ssize_t length;
3000 PyString_AsStringAndSize(bits, &buf, &length);
3001 return new wxBitmap(buf, width, height, depth);
3002 }
1bd55598 3003SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
36ed4f51
RD
3004 wxSize size(self->GetWidth(), self->GetHeight());
3005 return size;
3006 }
1bd55598 3007SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
36ed4f51
RD
3008 wxMask *mask = new wxMask(*self, colour);
3009 self->SetMask(mask);
3010 }
1bd55598 3011SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
36ed4f51
RD
3012 self->SetWidth(size.x);
3013 self->SetHeight(size.y);
3014 }
8f514ab4
RD
3015SWIGINTERN void wxBitmap_CopyFromBuffer(wxBitmap *self,buffer data,int DATASIZE){
3016 int height=self->GetHeight();
3017 int width=self->GetWidth();
fc46b7f3 3018
8f514ab4
RD
3019 if (DATASIZE != width * height * 3) {
3020 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3021 }
3022 wxNativePixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3023 if (! pixData) {
3024 // raise an exception...
3025 wxPyErr_SetString(PyExc_RuntimeError,
3026 "Failed to gain raw access to bitmap data.");
3027 return;
3028 }
fc46b7f3 3029
8f514ab4
RD
3030 wxNativePixelData::Iterator p(pixData);
3031 for (int y=0; y<height; y++) {
3032 wxNativePixelData::Iterator rowStart = p;
3033 for (int x=0; x<width; x++) {
3034 p.Red() = *(data++);
3035 p.Green() = *(data++);
3036 p.Blue() = *(data++);
3037 ++p;
3038 }
3039 p = rowStart;
3040 p.OffsetY(pixData, 1);
3041 }
3042 }
3043SWIGINTERN void wxBitmap_CopyFromBufferRGBA(wxBitmap *self,buffer data,int DATASIZE){
3044 int height=self->GetHeight();
3045 int width=self->GetWidth();
3046
3047 if (DATASIZE != width * height * 4) {
3048 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3049 }
3050 wxAlphaPixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3051 if (! pixData) {
3052 // raise an exception...
3053 wxPyErr_SetString(PyExc_RuntimeError,
3054 "Failed to gain raw access to bitmap data.");
3055 return;
3056 }
3057
3058 pixData.UseAlpha();
3059 wxAlphaPixelData::Iterator p(pixData);
3060 for (int y=0; y<height; y++) {
3061 wxAlphaPixelData::Iterator rowStart = p;
3062 for (int x=0; x<width; x++) {
3063 byte a = data[3];
3064 p.Red() = wxPy_premultiply(*(data++), a);
3065 p.Green() = wxPy_premultiply(*(data++), a);
3066 p.Blue() = wxPy_premultiply(*(data++), a);
3067 p.Alpha() = a; data++;
3068 ++p;
3069 }
3070 p = rowStart;
3071 p.OffsetY(pixData, 1);
3072 }
3073 }
3074SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? self->IsSameAs(*other) : false; }
3075SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? !self->IsSameAs(*other) : true; }
fc46b7f3
RD
3076
3077 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
3078 buffer data, int DATASIZE,
3079 buffer alpha, int ALPHASIZE)
3080 {
3081 if (DATASIZE != width*height*3) {
3082 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3083 return NULL;
3084 }
3085
3086 if (ALPHASIZE != width*height) {
3087 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3088 return NULL;
3089 }
3090
3091 wxBitmap* bmp = new wxBitmap(width, height, 32);
3092 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3093 if (! pixData) {
3094 // raise an exception...
3095 wxPyErr_SetString(PyExc_RuntimeError,
3096 "Failed to gain raw access to bitmap data.");
3097 return NULL;
3098 }
3099
3100 pixData.UseAlpha();
3101 wxAlphaPixelData::Iterator p(pixData);
3102 for (int y=0; y<height; y++) {
3103 wxAlphaPixelData::Iterator rowStart = p;
3104 for (int x=0; x<width; x++) {
3105 byte a = *(alpha++);
3106 p.Red() = wxPy_premultiply(*(data++), a);
3107 p.Green() = wxPy_premultiply(*(data++), a);
3108 p.Blue() = wxPy_premultiply(*(data++), a);
3109 p.Alpha() = a;
3110 ++p;
3111 }
3112 p = rowStart;
3113 p.OffsetY(pixData, 1);
3114 }
3115 return bmp;
3116 }
3117
3118 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3119 {
3120 if (DATASIZE != width*height*3) {
3121 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3122 return NULL;
3123 }
3124
3125 wxBitmap* bmp = new wxBitmap(width, height, 24);
3126 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3127 if (! pixData) {
3128 // raise an exception...
3129 wxPyErr_SetString(PyExc_RuntimeError,
3130 "Failed to gain raw access to bitmap data.");
3131 return NULL;
3132 }
3133
3134 wxNativePixelData::Iterator p(pixData);
3135 for (int y=0; y<height; y++) {
3136 wxNativePixelData::Iterator rowStart = p;
3137 for (int x=0; x<width; x++) {
3138 p.Red() = *(data++);
3139 p.Green() = *(data++);
3140 p.Blue() = *(data++);
3141 ++p;
3142 }
3143 p = rowStart;
3144 p.OffsetY(pixData, 1);
3145 }
3146 return bmp;
3147 }
3148
3149
3150 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3151 {
3152 if (DATASIZE != width*height*4) {
3153 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3154 return NULL;
3155 }
3156
3157 wxBitmap* bmp = new wxBitmap(width, height, 32);
3158 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3159 if (! pixData) {
3160 // raise an exception...
3161 wxPyErr_SetString(PyExc_RuntimeError,
3162 "Failed to gain raw access to bitmap data.");
3163 return NULL;
3164 }
3165
3166 pixData.UseAlpha();
3167 wxAlphaPixelData::Iterator p(pixData);
3168 for (int y=0; y<height; y++) {
3169 wxAlphaPixelData::Iterator rowStart = p;
3170 for (int x=0; x<width; x++) {
3171 byte a = data[3];
3172 p.Red() = wxPy_premultiply(*(data++), a);
3173 p.Green() = wxPy_premultiply(*(data++), a);
3174 p.Blue() = wxPy_premultiply(*(data++), a);
3175 p.Alpha() = a; data++;
3176 ++p;
3177 }
3178 p = rowStart;
3179 p.OffsetY(pixData, 1);
3180 }
3181 return bmp;
3182 }
3183
3184
3185 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3186
3187SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3188SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3189SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3190 self->Red() = red;
3191 self->Green() = green;
3192 self->Blue() = blue;
3193 }
3194SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3195 PyObject* rv = PyTuple_New(3);
3196 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3197 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3198 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3199 return rv;
3200 }
3201
3202 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3203
3204SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3205SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3206SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3207 self->Red() = wxPy_premultiply(red, alpha);
3208 self->Green() = wxPy_premultiply(green, alpha);
3209 self->Blue() = wxPy_premultiply(blue, alpha);
3210 self->Alpha() = alpha;
3211 }
3212SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3213 PyObject* rv = PyTuple_New(4);
3214 int red = self->Red();
3215 int green = self->Green();
3216 int blue = self->Blue();
3217 int alpha = self->Alpha();
3218
3219 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3220 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3221 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3222 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3223 return rv;
3224 }
1bd55598 3225SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
b39fe951 3226 if ( !colour.IsOk() )
36ed4f51
RD
3227 return new wxMask(bitmap, *wxBLACK);
3228 else
3229 return new wxMask(bitmap, colour);
3230 }
d55e5bfc 3231
36ed4f51 3232#include <wx/iconbndl.h>
d55e5bfc 3233
1bd55598 3234SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
36ed4f51
RD
3235 wxIcon* icon = new wxIcon();
3236 icon->CopyFromBitmap(bmp);
3237 return icon;
3238 }
1bd55598 3239SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
36ed4f51
RD
3240 char** cArray = NULL;
3241 wxIcon* icon;
d55e5bfc 3242
36ed4f51
RD
3243 cArray = ConvertListOfStrings(listOfStrings);
3244 if (! cArray)
3245 return NULL;
3246 icon = new wxIcon(cArray);
3247 delete [] cArray;
3248 return icon;
3249 }
1bd55598 3250SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
d55e5bfc
RD
3251
3252
d55e5bfc 3253
36ed4f51 3254 return new wxIconLocation(*filename);
d55e5bfc 3255
36ed4f51 3256 }
1bd55598 3257SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
d55e5bfc
RD
3258
3259
d55e5bfc 3260
36ed4f51 3261 // do nothing
d55e5bfc 3262
36ed4f51 3263 }
1bd55598 3264SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
5cbf236d
RD
3265
3266
d55e5bfc 3267
36ed4f51 3268 return -1;
d55e5bfc 3269
36ed4f51 3270 }
1bd55598 3271SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
36ed4f51 3272#ifdef __WXGTK__
fef4c27a
RD
3273 wxImage img(cursorName, type);
3274 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3275 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3276 return new wxCursor(img);
36ed4f51 3277#else
fef4c27a 3278 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
36ed4f51
RD
3279#endif
3280 }
d55e5bfc 3281
d55e5bfc 3282
1bd55598 3283SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
36ed4f51
RD
3284 (*self) ++;
3285 }
1bd55598 3286SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
36ed4f51
RD
3287 return self->operator bool();
3288 }
d55e5bfc 3289
36ed4f51
RD
3290#include <wx/fontutil.h>
3291#include <wx/fontmap.h>
3292#include <wx/fontenum.h>
d55e5bfc 3293
1bd55598 3294SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
36ed4f51
RD
3295 return self->ToString();
3296 }
d55e5bfc 3297
36ed4f51
RD
3298 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3299 static wxNativeEncodingInfo info;
3300 if ( wxGetNativeFontEncoding(encoding, &info) )
3301 return &info;
3302 else
3303 return NULL;
d55e5bfc 3304 }
d55e5bfc 3305
1bd55598
RD
3306
3307SWIGINTERNINLINE PyObject *
3308SWIG_From_size_t (size_t value)
3309{
3310 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3311}
3312
3313
3314SWIGINTERNINLINE int
3315SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3316{
3317 unsigned long v;
3318 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3319 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3320 return res;
3321}
3322
3323SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
36ed4f51
RD
3324 wxFontEncoding alt_enc;
3325 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3326 return PyInt_FromLong(alt_enc);
3327 else {
3328 Py_INCREF(Py_None);
3329 return Py_None;
3330 }
3331 }
1bd55598 3332SWIGINTERN wxFont *new_wxFont(wxString const &info){
a97cefba
RD
3333 wxNativeFontInfo nfi;
3334 nfi.FromString(info);
3335 return new wxFont(nfi);
3336 }
1bd55598 3337SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3338 return wxFont::New(pointSize, family, flags, face, encoding);
3339 }
1bd55598 3340SWIGINTERN 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
3341 return wxFontBase::New(pixelSize, family,
3342 style, weight, underlined,
3343 face, encoding);
3344 }
1bd55598 3345SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3346 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3347 }
1bd55598
RD
3348SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3349SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
d55e5bfc 3350
36ed4f51
RD
3351class wxPyFontEnumerator : public wxFontEnumerator {
3352public:
3353 wxPyFontEnumerator() {}
3354 ~wxPyFontEnumerator() {}
d55e5bfc 3355
36ed4f51
RD
3356 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3357 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
d55e5bfc 3358
36ed4f51
RD
3359 PYPRIVATE;
3360};
d55e5bfc 3361
36ed4f51
RD
3362IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3363IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
d55e5bfc 3364
36ed4f51 3365
704eda0c 3366SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
e9d6f3a4 3367 PyObject* ret;
704eda0c 3368 wxArrayString arr = wxFontEnumerator::GetEncodings();
e9d6f3a4 3369 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3370 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3371 wxPyEndBlockThreads(blocked);
3372 return ret;
36ed4f51 3373 }
704eda0c 3374SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
e9d6f3a4 3375 PyObject* ret;
704eda0c 3376 wxArrayString arr = wxFontEnumerator::GetFacenames();
e9d6f3a4 3377 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3378 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3379 wxPyEndBlockThreads(blocked);
3380 return ret;
36ed4f51
RD
3381 }
3382
3383#include <locale.h>
3384
1bd55598 3385SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
36ed4f51
RD
3386 wxLocale* loc;
3387 if (language == -1)
3388 loc = new wxLocale();
3389 else
3390 loc = new wxLocale(language, flags);
3391 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3392 // for the floating point conversions and such to work right.
3393#if PY_VERSION_HEX < 0x02040000
3394 setlocale(LC_NUMERIC, "C");
3395#endif
3396 return loc;
3397 }
1bd55598 3398SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
36ed4f51
RD
3399 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3400 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3401 // for the floating point conversions and such to work right.
3402#if PY_VERSION_HEX < 0x02040000
3403 setlocale(LC_NUMERIC, "C");
3404#endif
3405 return rc;
3406 }
1bd55598 3407SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
36ed4f51
RD
3408 bool rc = self->Init(language, flags);
3409 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3410 // for the floating point conversions and such to work right.
3411#if PY_VERSION_HEX < 0x02040000
3412 setlocale(LC_NUMERIC, "C");
3413#endif
3414 return rc;
3415 }
3416
fc46b7f3
RD
3417class wxPyLocale : public wxLocale
3418{
3419public:
3420 wxPyLocale();
3421
3422 wxPyLocale(const wxChar *szName, // name (for messages)
3423 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3424 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3425 bool bLoadDefault = true, // preload wxstd.mo?
3426 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3427
3428 wxPyLocale(int language, // wxLanguage id or custom language
3429 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3430
3431 ~wxPyLocale();
3432
3433 virtual const wxChar *GetString(const wxChar *szOrigString,
3434 const wxChar *szDomain = NULL) const;
3435 virtual const wxChar *GetString(const wxChar *szOrigString,
3436 const wxChar *szOrigString2, size_t n,
3437 const wxChar *szDomain = NULL) const;
3438
3439 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3440 const wxChar *szDomain = NULL) const;
3441 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3442 const wxChar *szOrigString2, size_t n,
3443 const wxChar *szDomain = NULL) const;
3444
3445 PYPRIVATE;
3446private:
3447 DECLARE_NO_COPY_CLASS(wxPyLocale)
3448};
3449
3450wxPyLocale::wxPyLocale() : wxLocale()
3451{
3452}
3453
3454wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3455 const wxChar *szShort, // dir prefix (for msg files)
3456 const wxChar *szLocale, // locale (for setlocale)
3457 bool bLoadDefault, // preload wxstd.mo?
3458 bool bConvertEncoding) // convert Win<->Unix if necessary?
3459 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3460{
3461}
3462
3463wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3464 int flags) : wxLocale(language, flags)
3465{
3466}
3467
3468wxPyLocale::~wxPyLocale()
3469{
3470}
3471
3472const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3473 const wxChar *szDomain) const
3474{
3475 wxChar *str = GetSingularString(szOrigString, szDomain);
3476 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3477}
3478
3479const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3480 const wxChar *szOrigString2, size_t n,
3481 const wxChar *szDomain) const
3482{
3483 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3484 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3485}
3486
3487wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3488 const wxChar *szDomain) const
3489{
3490 bool found;
3491 static wxString str;
3492 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.
3493 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3494 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3495 PyObject* param1 = wx2PyString(szOrigString);
3496 PyObject* param2 = wx2PyString(szDomain);
3497 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3498 Py_DECREF(param1);
3499 Py_DECREF(param2);
3500 if (ret) {
3501 str = Py2wxString(ret);
3502 Py_DECREF(ret);
3503 }
3504 }
3505 wxPyEndBlockThreads(blocked);
3506 return (found ? (wxChar*)str.c_str() : NULL);
3507}
3508
3509wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3510 const wxChar *szOrigString2, size_t n,
3511 const wxChar *szDomain) const
3512{
3513 bool found;
3514 static wxString str;
3515 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.
3516 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3517 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3518 PyObject* param1 = wx2PyString(szOrigString);
3519 PyObject* param2 = wx2PyString(szOrigString2);
3520 PyObject* param4 = wx2PyString(szDomain);
3521 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3522 Py_DECREF(param1);
3523 Py_DECREF(param2);
3524 Py_DECREF(param4);
3525 if( ret) {
3526 str = Py2wxString(ret);
3527 Py_DECREF(ret);
3528 }
3529 }
3530 wxPyEndBlockThreads(blocked);
3531 return (found ? (wxChar*)str.c_str() : NULL);
3532}
3533
3534SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3535 wxPyLocale* loc;
3536 if (language == -1)
3537 loc = new wxPyLocale();
3538 else
3539 loc = new wxPyLocale(language, flags);
3540 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3541 // for the floating point conversions and such to work right.
3542#if PY_VERSION_HEX < 0x02040000
3543 setlocale(LC_NUMERIC, "C");
3544#endif
3545 return loc;
3546 }
3547
36ed4f51
RD
3548#include "wx/wxPython/pydrawxxx.h"
3549
1bd55598 3550SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
36ed4f51
RD
3551 wxColour col;
3552 self->GetPixel(x, y, &col);
3553 return col;
3554 }
1bd55598 3555SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
36ed4f51
RD
3556 wxColour col;
3557 self->GetPixel(pt, &col);
3558 return col;
3559 }
3560
3561SWIGINTERN int
1bd55598 3562SWIG_AsVal_double (PyObject *obj, double* val)
36ed4f51
RD
3563{
3564 if (PyNumber_Check(obj)) {
3565 if (val) *val = PyFloat_AsDouble(obj);
1bd55598 3566 return SWIG_OK;
d55e5bfc 3567 }
1bd55598 3568 return SWIG_TypeError;
36ed4f51
RD
3569}
3570
1bd55598 3571SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
36ed4f51
RD
3572 wxRect rv;
3573 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3574 return rv;
3575 }
1bd55598 3576SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
36ed4f51
RD
3577 wxRect rect;
3578 self->GetClippingBox(rect);
3579 return rect;
3580 }
1bd55598 3581SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
36ed4f51
RD
3582 wxArrayInt widths;
3583 self->GetPartialTextExtents(text, widths);
3584 return widths;
3585 }
3586
1bd55598 3587 #define SWIG_From_double PyFloat_FromDouble
36ed4f51 3588
1bd55598 3589SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3590 self->SetLogicalOrigin(point.x, point.y);
3591 }
1bd55598 3592SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3593 self->SetDeviceOrigin(point.x, point.y);
3594 }
1bd55598 3595SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3596 self->CalcBoundingBox(point.x, point.y);
3597 }
1bd55598 3598SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3599 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3600 }
1bd55598 3601SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3602 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3603 }
1bd55598 3604SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3605 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3606 }
1bd55598 3607SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3608 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3609 }
1bd55598 3610SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3611 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3612 }
1bd55598 3613SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
36ed4f51
RD
3614 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3615 }
3616
3617static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3618 *x1 = dc->MinX();
3619 *y1 = dc->MinY();
3620 *x2 = dc->MaxX();
3621 *y2 = dc->MaxY();
3622}
3623
3624
3625#include <wx/dcbuffer.h>
3626
3627
3628#include <wx/dcps.h>
3629
3630
3631#include <wx/metafile.h>
3632
3633
72ef6efb
RD
3634#include <wx/graphics.h>
3635
3636
3637#if !wxUSE_GRAPHICS_CONTEXT
70d7cb34
RD
3638// C++ stub classes for platforms or build configurations that don't have
3639// wxGraphicsContext yet.
72ef6efb 3640
70d7cb34
RD
3641
3642class wxGraphicsObject : public wxObject
72ef6efb
RD
3643{
3644public :
70d7cb34 3645 wxGraphicsObject( wxGraphicsRenderer* ) {
72ef6efb 3646 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34
RD
3647 "wx.GraphicsObject is not available on this platform.");
3648 }
3649 wxGraphicsObject( const wxGraphicsObject& ) {}
3650 virtual ~wxGraphicsObject() {}
3651 bool IsNull() const { return false; }
3652 wxGraphicsRenderer* GetRenderer() const { return NULL; }
3653} ;
3654
3655
3656
3657class wxGraphicsPen : public wxGraphicsObject
3658{
3659 wxGraphicsPen() {}
3660 virtual ~wxGraphicsPen() {}
3661} ;
3662wxGraphicsPen wxNullGraphicsPen;
3663
3664
3665
3666class wxGraphicsBrush : public wxGraphicsObject
3667{
3668public :
3669 wxGraphicsBrush() {}
3670 virtual ~wxGraphicsBrush() {}
3671} ;
3672wxGraphicsBrush wxNullGraphicsBrush;
3673
3674
3675
3676class wxGraphicsFont : public wxGraphicsObject
3677{
3678public :
3679 wxGraphicsFont() {}
3680 virtual ~wxGraphicsFont() {}
3681} ;
3682wxGraphicsFont wxNullGraphicsFont;
3683
3684
3685
3686class wxGraphicsPath : public wxGraphicsObject
3687{
3688public :
3689 wxGraphicsPath(wxGraphicsRenderer* ) {
3690 PyErr_SetString(PyExc_NotImplementedError,
3691 "wx.GraphicsPath is not available on this platform.");
72ef6efb
RD
3692 }
3693 virtual ~wxGraphicsPath() {}
70d7cb34 3694
72ef6efb 3695 void MoveToPoint( wxDouble, wxDouble ) {}
70d7cb34
RD
3696 void MoveToPoint( const wxPoint2DDouble& ) {}
3697 void AddLineToPoint( wxDouble, wxDouble ) {}
3698 void AddLineToPoint( const wxPoint2DDouble& ) {}
72ef6efb 3699 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
70d7cb34
RD
3700 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3701 void AddPath( const wxGraphicsPath* ) {}
72ef6efb
RD
3702 void CloseSubpath() {}
3703 void GetCurrentPoint( wxDouble&, wxDouble&) {}
70d7cb34 3704 wxPoint2DDouble GetCurrentPoint() { reutrn wxPoint2D(0,0); }
72ef6efb 3705 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
70d7cb34 3706 void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {}
72ef6efb
RD
3707
3708 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3709 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3710 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3711 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3712
70d7cb34
RD
3713 void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3714 void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3715 void * GetNativePath() const { return NULL; }
3716 void UnGetNativePath(void *) {}
3717 void Transform( wxGraphicsMatrix* ) {}
3718 void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) {}
3719 wxRect2D GetBox() { return wxRect2D(0,0,0,0); }
3720
3721 bool Contains( wxDouble , wxDouble , int ) { return false; }
3722 bool Contains( const wxPoint2DDouble& , int ) { return false; }
3723};
5c8c7dd3 3724wxGraphicsPath wxNullGraphicsPath;
70d7cb34
RD
3725
3726
3727class wxGraphicsMatrix : public wxGraphicsObject
3728{
3729public :
3730 wxGraphicsMatrix(wxGraphicsRenderer* ) {
3731 PyErr_SetString(PyExc_NotImplementedError,
3732 "wx.GraphicsMatrix is not available on this platform.");
3733 }
3734 virtual ~wxGraphicsMatrix() {}
70d7cb34
RD
3735 virtual void Concat( const wxGraphicsMatrix * ) {}
3736 virtual void Copy( const wxGraphicsMatrix * ) {}
3737 virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble ,
3738 wxDouble , wxDouble ) {}
3739 virtual void Invert() {}
3740 virtual bool IsEqual( const wxGraphicsMatrix* t) const {}
3741 virtual bool IsIdentity() { return false; }
3742 virtual void Translate( wxDouble , wxDouble ) {}
3743 virtual void Scale( wxDouble , wxDouble ) {}
3744 virtual void Rotate( wxDouble ) {}
3745 virtual void TransformPoint( wxDouble *, wxDouble * ) {}
3746 virtual void TransformDistance( wxDouble *, wxDouble * ) {}
3747 virtual void * GetNativeMatrix() const { return NULL; }
72ef6efb 3748};
5c8c7dd3 3749wxGraphicsMatrix wxNullGraphicsMatrix;
72ef6efb 3750
70d7cb34
RD
3751
3752class wxGraphicsContext : public wxGraphicsObject
72ef6efb
RD
3753{
3754public:
70d7cb34
RD
3755
3756 wxGraphicsContext(wxGraphicsRenderer* ) {
72ef6efb 3757 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3758 "wx.GraphicsContext is not available on this platform.");
72ef6efb 3759 }
70d7cb34 3760
72ef6efb 3761 virtual ~wxGraphicsContext() {}
70d7cb34
RD
3762
3763 static wxGraphicsContext* Create( const wxWindowDC& ) {
72ef6efb 3764 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3765 "wx.GraphicsContext is not available on this platform.");
72ef6efb 3766 }
b876c1e4 3767
70d7cb34 3768 static wxGraphicsContext* CreateFromNative( void * ) {
b876c1e4 3769 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34
RD
3770 "wx.GraphicsContext is not available on this platform.");
3771 }
b876c1e4 3772
70d7cb34
RD
3773 static wxGraphicsContext* CreateFromNativeWindow( void * ) {
3774 PyErr_SetString(PyExc_NotImplementedError,
3775 "wx.GraphicsContext is not available on this platform.");
3776 }
3777
3778 static wxGraphicsContext* Create( wxWindow* ) {
3779 PyErr_SetString(PyExc_NotImplementedError,
3780 "wx.GraphicsContext is not available on this platform.");
3781 }
3782
3783 wxGraphicsPath * CreatePath() { return NULL; }
3784
3785 virtual wxGraphicsPen CreatePen(const wxPen& ) { return NULL; }
3786
3787 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return NULL; }
3788
3789 virtual wxGraphicsBrush CreateLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3790 const wxColour&, const wxColour&) { return NULL; }
3791
3792 virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo, wxDouble yo,
3793 wxDouble xc, wxDouble yc, wxDouble radius,
3794 const wxColour &oColor, const wxColour &cColor) { return NULL; }
3795
3796 virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & ) { return NULL; }
3797
3798 virtual wxGraphicsMatrix* CreateMatrix( wxDouble, wxDouble, wxDouble, wxDouble,
3799 wxDouble, wxDouble) { return NULL; }
3800
3801 virtual void PushState() {}
3802 virtual void PopState() {}
3803 virtual void Clip( const wxRegion & ) {}
3804 virtual void Clip( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3805 virtual void ResetClip() {}
3806 virtual void * GetNativeContext() { return NULL; }
3807 virtual void Translate( wxDouble , wxDouble ) {}
3808 virtual void Scale( wxDouble , wxDouble ) {}
3809 virtual void Rotate( wxDouble ) {}
3810 virtual void ConcatTransform( const wxGraphicsMatrix* ) {}
3811 virtual void SetTransform( const wxGraphicsMatrix* ) {}
3812 virtual void GetTransform( wxGraphicsMatrix* ) {}
3813
3814 virtual void SetPen( const wxGraphicsPen& ) {}
3815 void SetPen( const wxPen& ) {}
3816
3817 virtual void SetBrush( const wxGraphicsBrush& ) {}
3818 void SetBrush( const wxBrush& ) {}
3819
3820 virtual void SetFont( const wxGraphicsFont& ) {}
3821 void SetFont( const wxFont&, const wxColour& ) {}
3822
3823 virtual void StrokePath( const wxGraphicsPath * ) {}
3824 virtual void FillPath( const wxGraphicsPath *, int ) {}
3825 virtual void DrawPath( const wxGraphicsPath *, int ) {}
3826
3827 virtual void DrawText( const wxString &, wxDouble , wxDouble ) {}
3828 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3829 virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3830 wxDouble *, wxDouble * ) const {}
3831 virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3832
3833 virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3834 virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3835
3836 virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3837 virtual void StrokeLines( size_t , const wxPoint2DDouble *) {}
3838 virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3839 virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3840 virtual void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3841 virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3842 virtual void DrawRoundedRectangle( wxDouble wxDouble , wxDouble , wxDouble , wxDouble ) {}
3843 virtual bool ShouldOffset() const { return false; }
3844};
3845
3846
3847class wxGraphicsRenderer : public wxObject
3848{
3849public :
3850 wxGraphicsRenderer() {
3851 PyErr_SetString(PyExc_NotImplementedError,
3852 "wx.GraphicsRenderer is not available on this platform.");
3853 }
3854
3855 virtual ~wxGraphicsRenderer() {}
3856
3857 static wxGraphicsRenderer* GetDefaultRenderer(
3858 PyErr_SetString(PyExc_NotImplementedError,
3859 "wx.GraphicsRenderer is not available on this platform.");
3860 );
3861
3862 virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; }
3863 virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; }
3864 virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; }
3865 virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; }
3866
3867 virtual wxGraphicsPath * CreatePath() { return NULL; }
3868
3869 virtual wxGraphicsMatrix * CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble ,
3870 wxDouble , wxDouble ) { return NULL; }
3871
3872 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGaphicsPen; }
3873 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGaphicsBrush; }
3874 virtual wxGraphicsBrush CreateLinearGradientBrush(xDouble , wxDouble , wxDouble , wxDouble ,
3875 const wxColour&, const wxColour&) { return wxNullGaphicsBrush; }
3876 virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3877 const wxColour &, const wxColour &) { return wxNullGaphicsBrush; }
3878 virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGaphicsFont; }
72ef6efb
RD
3879};
3880
3881
70d7cb34 3882
72ef6efb
RD
3883class wxGCDC: public wxWindowDC
3884{
3885public:
3886 wxGCDC(const wxWindowDC&) {
3887 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3888 PyErr_SetString(PyExc_NotImplementedError,
3889 "wxGCDC is not available on this platform.");
3890 wxPyEndBlockThreads(blocked);
3891 }
70d7cb34 3892
72ef6efb
RD
3893 wxGCDC() {
3894 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3895 PyErr_SetString(PyExc_NotImplementedError,
3896 "wxGCDC is not available on this platform.");
3897 wxPyEndBlockThreads(blocked);
3898 }
70d7cb34 3899
72ef6efb
RD
3900 virtual ~wxGCDC() {}
3901
b876c1e4
RD
3902 wxGraphicsContext* GetGraphicsContext() { return NULL; }
3903 void SetGraphicsContext( wxGraphicsContext* ) {}
72ef6efb
RD
3904};
3905
3906#endif
3907
be68621e
RD
3908SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){
3909 wxDouble width = 0.0,
3910 height = 0.0;
3911 self->GetTextExtent(text, &width, &height, NULL, NULL);
3912 // thread wrapers are turned off for this .i file, so no need to acquire GIL...
3913 PyObject* rv = PyTuple_New(2);
3914 PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width));
3915 PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height));
3916 return rv;
3917 }
b39fe951
RD
3918SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3919 wxArrayDouble widths;
3920 self->GetPartialTextExtents(text, widths);
3921 return widths;
3922 }
f8eb59b9 3923SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
b39fe951
RD
3924 size_t c1, c2, count;
3925 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3926 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3927
3928 if ( beginP != NULL && endP != NULL )
3929 {
3930 count = wxMin(c1, c2);
3931 self->StrokeLines(count, beginP, endP);
3932 }
3933 delete [] beginP;
3934 delete [] endP;
3935 }
72ef6efb 3936
0a27f394
RD
3937#include "wx/dcgraph.h"
3938
3939
66493fc7
RD
3940#include <wx/overlay.h>
3941
3942
36ed4f51 3943
1bd55598 3944SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
36ed4f51
RD
3945 self->AddColour(name, wxColour(red, green, blue));
3946 }
3947
da91cb0f
RD
3948 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3949 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3950 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3951 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3952
3953
36ed4f51
RD
3954#include <wx/effects.h>
3955
be9b1dca
RD
3956
3957#include "wx/renderer.h"
3958
3959
32fe5131 3960SWIGINTERNINLINE PyObject*
1bd55598 3961 SWIG_From_bool (bool value)
be9b1dca 3962{
1bd55598 3963 return PyBool_FromLong(value ? 1 : 0);
be9b1dca
RD
3964}
3965
27e45892
RD
3966
3967#include "wx/wxPython/pseudodc.h"
3968
3969SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3970 wxRect rect;
3971 self->GetIdBounds(id, rect);
3972 return rect;
3973 }
36ed4f51
RD
3974#ifdef __cplusplus
3975extern "C" {
3976#endif
1bd55598
RD
3977SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3978 PyObject *resultobj = 0;
3979 wxGDIObject *result = 0 ;
3980
3981 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3982 {
3983 if (!wxPyCheckForApp()) SWIG_fail;
3984 PyThreadState* __tstate = wxPyBeginAllowThreads();
3985 result = (wxGDIObject *)new wxGDIObject();
3986 wxPyEndAllowThreads(__tstate);
3987 if (PyErr_Occurred()) SWIG_fail;
3988 }
3989 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3990 return resultobj;
3991fail:
3992 return NULL;
d55e5bfc
RD
3993}
3994
3995
1bd55598
RD
3996SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3997 PyObject *resultobj = 0;
3998 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3999 void *argp1 = 0 ;
4000 int res1 = 0 ;
4001 PyObject *swig_obj[1] ;
4002
4003 if (!args) SWIG_fail;
4004 swig_obj[0] = args;
4005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
4006 if (!SWIG_IsOK(res1)) {
4007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4008 }
4009 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4010 {
4011 PyThreadState* __tstate = wxPyBeginAllowThreads();
4012 delete arg1;
d55e5bfc 4013
1bd55598
RD
4014 wxPyEndAllowThreads(__tstate);
4015 if (PyErr_Occurred()) SWIG_fail;
4016 }
4017 resultobj = SWIG_Py_Void();
4018 return resultobj;
4019fail:
4020 return NULL;
d55e5bfc
RD
4021}
4022
4023
1bd55598
RD
4024SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4025 PyObject *resultobj = 0;
4026 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4027 bool result;
4028 void *argp1 = 0 ;
4029 int res1 = 0 ;
4030 PyObject *swig_obj[1] ;
4031
4032 if (!args) SWIG_fail;
4033 swig_obj[0] = args;
4034 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
4035 if (!SWIG_IsOK(res1)) {
4036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4037 }
4038 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4039 {
4040 PyThreadState* __tstate = wxPyBeginAllowThreads();
4041 result = (bool)(arg1)->IsNull();
4042 wxPyEndAllowThreads(__tstate);
4043 if (PyErr_Occurred()) SWIG_fail;
4044 }
4045 {
4046 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4047 }
4048 return resultobj;
4049fail:
4050 return NULL;
4051}
4052
4053
4054SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4055 PyObject *obj;
4056 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4057 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
4058 return SWIG_Py_Void();
4059}
4060
4061SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4062 return SWIG_Python_InitShadowInstance(args);
4063}
4064
4065SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4066 PyObject *resultobj = 0;
4067 byte arg1 = (byte) 0 ;
4068 byte arg2 = (byte) 0 ;
4069 byte arg3 = (byte) 0 ;
fc46b7f3 4070 byte arg4 = (byte) wxALPHA_OPAQUE ;
1bd55598
RD
4071 wxColour *result = 0 ;
4072 unsigned char val1 ;
4073 int ecode1 = 0 ;
4074 unsigned char val2 ;
4075 int ecode2 = 0 ;
4076 unsigned char val3 ;
4077 int ecode3 = 0 ;
fc46b7f3
RD
4078 unsigned char val4 ;
4079 int ecode4 = 0 ;
1bd55598
RD
4080 PyObject * obj0 = 0 ;
4081 PyObject * obj1 = 0 ;
4082 PyObject * obj2 = 0 ;
fc46b7f3 4083 PyObject * obj3 = 0 ;
1bd55598 4084 char * kwnames[] = {
fc46b7f3 4085 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
1bd55598
RD
4086 };
4087
fc46b7f3 4088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
4089 if (obj0) {
4090 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
4091 if (!SWIG_IsOK(ecode1)) {
4092 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
4093 }
4094 arg1 = static_cast< byte >(val1);
4095 }
4096 if (obj1) {
4097 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4098 if (!SWIG_IsOK(ecode2)) {
4099 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
4100 }
4101 arg2 = static_cast< byte >(val2);
4102 }
4103 if (obj2) {
4104 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4105 if (!SWIG_IsOK(ecode3)) {
4106 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
4107 }
4108 arg3 = static_cast< byte >(val3);
4109 }
fc46b7f3
RD
4110 if (obj3) {
4111 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4112 if (!SWIG_IsOK(ecode4)) {
4113 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
4114 }
4115 arg4 = static_cast< byte >(val4);
4116 }
1bd55598
RD
4117 {
4118 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4119 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
1bd55598
RD
4120 wxPyEndAllowThreads(__tstate);
4121 if (PyErr_Occurred()) SWIG_fail;
4122 }
4123 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
4124 return resultobj;
4125fail:
4126 return NULL;
d55e5bfc
RD
4127}
4128
4129
1bd55598
RD
4130SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4131 PyObject *resultobj = 0;
4132 wxString *arg1 = 0 ;
4133 wxColour *result = 0 ;
4134 bool temp1 = false ;
4135 PyObject * obj0 = 0 ;
4136 char * kwnames[] = {
4137 (char *) "colorName", NULL
4138 };
4139
4140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
4141 {
4142 arg1 = wxString_in_helper(obj0);
4143 if (arg1 == NULL) SWIG_fail;
4144 temp1 = true;
4145 }
4146 {
4147 if (!wxPyCheckForApp()) SWIG_fail;
4148 PyThreadState* __tstate = wxPyBeginAllowThreads();
4149 result = (wxColour *)new wxColour((wxString const &)*arg1);
4150 wxPyEndAllowThreads(__tstate);
4151 if (PyErr_Occurred()) SWIG_fail;
4152 }
4153 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4154 {
4155 if (temp1)
4156 delete arg1;
4157 }
4158 return resultobj;
4159fail:
4160 {
4161 if (temp1)
4162 delete arg1;
4163 }
4164 return NULL;
36ed4f51
RD
4165}
4166
4167
1bd55598
RD
4168SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4169 PyObject *resultobj = 0;
4170 unsigned long arg1 ;
4171 wxColour *result = 0 ;
4172 unsigned long val1 ;
4173 int ecode1 = 0 ;
4174 PyObject * obj0 = 0 ;
4175 char * kwnames[] = {
4176 (char *) "colRGB", NULL
4177 };
4178
4179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
4180 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
4181 if (!SWIG_IsOK(ecode1)) {
4182 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
4183 }
4184 arg1 = static_cast< unsigned long >(val1);
4185 {
4186 PyThreadState* __tstate = wxPyBeginAllowThreads();
4187 result = (wxColour *)new wxColour(arg1);
4188 wxPyEndAllowThreads(__tstate);
4189 if (PyErr_Occurred()) SWIG_fail;
4190 }
4191 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4192 return resultobj;
4193fail:
4194 return NULL;
d55e5bfc
RD
4195}
4196
4197
1bd55598
RD
4198SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4199 PyObject *resultobj = 0;
4200 wxColour *arg1 = (wxColour *) 0 ;
4201 void *argp1 = 0 ;
4202 int res1 = 0 ;
4203 PyObject *swig_obj[1] ;
4204
4205 if (!args) SWIG_fail;
4206 swig_obj[0] = args;
4207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
4208 if (!SWIG_IsOK(res1)) {
4209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
4210 }
4211 arg1 = reinterpret_cast< wxColour * >(argp1);
4212 {
4213 PyThreadState* __tstate = wxPyBeginAllowThreads();
4214 delete arg1;
d55e5bfc 4215
1bd55598
RD
4216 wxPyEndAllowThreads(__tstate);
4217 if (PyErr_Occurred()) SWIG_fail;
4218 }
4219 resultobj = SWIG_Py_Void();
4220 return resultobj;
4221fail:
4222 return NULL;
d55e5bfc
RD
4223}
4224
4225
1bd55598
RD
4226SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4227 PyObject *resultobj = 0;
4228 wxColour *arg1 = (wxColour *) 0 ;
4229 byte result;
4230 void *argp1 = 0 ;
4231 int res1 = 0 ;
4232 PyObject *swig_obj[1] ;
4233
4234 if (!args) SWIG_fail;
4235 swig_obj[0] = args;
4236 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4237 if (!SWIG_IsOK(res1)) {
4238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
4239 }
4240 arg1 = reinterpret_cast< wxColour * >(argp1);
4241 {
4242 PyThreadState* __tstate = wxPyBeginAllowThreads();
4243 result = (byte)(arg1)->Red();
4244 wxPyEndAllowThreads(__tstate);
4245 if (PyErr_Occurred()) SWIG_fail;
4246 }
4247 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4248 return resultobj;
4249fail:
4250 return NULL;
d55e5bfc
RD
4251}
4252
4253
1bd55598
RD
4254SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4255 PyObject *resultobj = 0;
4256 wxColour *arg1 = (wxColour *) 0 ;
4257 byte result;
4258 void *argp1 = 0 ;
4259 int res1 = 0 ;
4260 PyObject *swig_obj[1] ;
4261
4262 if (!args) SWIG_fail;
4263 swig_obj[0] = args;
4264 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4265 if (!SWIG_IsOK(res1)) {
4266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4267 }
4268 arg1 = reinterpret_cast< wxColour * >(argp1);
4269 {
4270 PyThreadState* __tstate = wxPyBeginAllowThreads();
4271 result = (byte)(arg1)->Green();
4272 wxPyEndAllowThreads(__tstate);
4273 if (PyErr_Occurred()) SWIG_fail;
4274 }
4275 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4276 return resultobj;
4277fail:
4278 return NULL;
d55e5bfc
RD
4279}
4280
4281
1bd55598
RD
4282SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4283 PyObject *resultobj = 0;
4284 wxColour *arg1 = (wxColour *) 0 ;
4285 byte result;
4286 void *argp1 = 0 ;
4287 int res1 = 0 ;
4288 PyObject *swig_obj[1] ;
4289
4290 if (!args) SWIG_fail;
4291 swig_obj[0] = args;
4292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4293 if (!SWIG_IsOK(res1)) {
4294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4295 }
4296 arg1 = reinterpret_cast< wxColour * >(argp1);
4297 {
4298 PyThreadState* __tstate = wxPyBeginAllowThreads();
4299 result = (byte)(arg1)->Blue();
4300 wxPyEndAllowThreads(__tstate);
4301 if (PyErr_Occurred()) SWIG_fail;
4302 }
4303 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4304 return resultobj;
4305fail:
4306 return NULL;
d55e5bfc
RD
4307}
4308
4309
fc46b7f3
RD
4310SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4311 PyObject *resultobj = 0;
4312 wxColour *arg1 = (wxColour *) 0 ;
4313 byte result;
4314 void *argp1 = 0 ;
4315 int res1 = 0 ;
4316 PyObject *swig_obj[1] ;
4317
4318 if (!args) SWIG_fail;
4319 swig_obj[0] = args;
4320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4321 if (!SWIG_IsOK(res1)) {
4322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4323 }
4324 arg1 = reinterpret_cast< wxColour * >(argp1);
4325 {
4326 PyThreadState* __tstate = wxPyBeginAllowThreads();
4327 result = (byte)(arg1)->Alpha();
4328 wxPyEndAllowThreads(__tstate);
4329 if (PyErr_Occurred()) SWIG_fail;
4330 }
4331 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4332 return resultobj;
4333fail:
4334 return NULL;
4335}
4336
4337
b39fe951 4338SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
4339 PyObject *resultobj = 0;
4340 wxColour *arg1 = (wxColour *) 0 ;
4341 bool result;
4342 void *argp1 = 0 ;
4343 int res1 = 0 ;
4344 PyObject *swig_obj[1] ;
4345
4346 if (!args) SWIG_fail;
4347 swig_obj[0] = args;
4348 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4349 if (!SWIG_IsOK(res1)) {
b39fe951 4350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
1bd55598
RD
4351 }
4352 arg1 = reinterpret_cast< wxColour * >(argp1);
4353 {
4354 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 4355 result = (bool)(arg1)->IsOk();
1bd55598
RD
4356 wxPyEndAllowThreads(__tstate);
4357 if (PyErr_Occurred()) SWIG_fail;
4358 }
4359 {
4360 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4361 }
4362 return resultobj;
4363fail:
4364 return NULL;
4365}
4366
4367
4368SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4369 PyObject *resultobj = 0;
4370 wxColour *arg1 = (wxColour *) 0 ;
4371 byte arg2 ;
4372 byte arg3 ;
4373 byte arg4 ;
fc46b7f3 4374 byte arg5 = (byte) wxALPHA_OPAQUE ;
1bd55598
RD
4375 void *argp1 = 0 ;
4376 int res1 = 0 ;
4377 unsigned char val2 ;
4378 int ecode2 = 0 ;
4379 unsigned char val3 ;
4380 int ecode3 = 0 ;
4381 unsigned char val4 ;
4382 int ecode4 = 0 ;
fc46b7f3
RD
4383 unsigned char val5 ;
4384 int ecode5 = 0 ;
1bd55598
RD
4385 PyObject * obj0 = 0 ;
4386 PyObject * obj1 = 0 ;
4387 PyObject * obj2 = 0 ;
4388 PyObject * obj3 = 0 ;
fc46b7f3 4389 PyObject * obj4 = 0 ;
1bd55598 4390 char * kwnames[] = {
fc46b7f3 4391 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
1bd55598
RD
4392 };
4393
fc46b7f3 4394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
1bd55598
RD
4395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4396 if (!SWIG_IsOK(res1)) {
4397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4398 }
4399 arg1 = reinterpret_cast< wxColour * >(argp1);
4400 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4401 if (!SWIG_IsOK(ecode2)) {
4402 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4403 }
4404 arg2 = static_cast< byte >(val2);
4405 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4406 if (!SWIG_IsOK(ecode3)) {
4407 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4408 }
4409 arg3 = static_cast< byte >(val3);
4410 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4411 if (!SWIG_IsOK(ecode4)) {
4412 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4413 }
4414 arg4 = static_cast< byte >(val4);
fc46b7f3
RD
4415 if (obj4) {
4416 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4417 if (!SWIG_IsOK(ecode5)) {
4418 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4419 }
4420 arg5 = static_cast< byte >(val5);
4421 }
1bd55598
RD
4422 {
4423 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4424 (arg1)->Set(arg2,arg3,arg4,arg5);
1bd55598
RD
4425 wxPyEndAllowThreads(__tstate);
4426 if (PyErr_Occurred()) SWIG_fail;
4427 }
4428 resultobj = SWIG_Py_Void();
4429 return resultobj;
4430fail:
4431 return NULL;
4432}
4433
4434
4435SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4436 PyObject *resultobj = 0;
4437 wxColour *arg1 = (wxColour *) 0 ;
4438 unsigned long arg2 ;
4439 void *argp1 = 0 ;
4440 int res1 = 0 ;
4441 unsigned long val2 ;
4442 int ecode2 = 0 ;
4443 PyObject * obj0 = 0 ;
4444 PyObject * obj1 = 0 ;
4445 char * kwnames[] = {
4446 (char *) "self",(char *) "colRGB", NULL
4447 };
4448
4449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4451 if (!SWIG_IsOK(res1)) {
4452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4453 }
4454 arg1 = reinterpret_cast< wxColour * >(argp1);
4455 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4456 if (!SWIG_IsOK(ecode2)) {
4457 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4458 }
4459 arg2 = static_cast< unsigned long >(val2);
4460 {
4461 PyThreadState* __tstate = wxPyBeginAllowThreads();
4462 (arg1)->Set(arg2);
4463 wxPyEndAllowThreads(__tstate);
4464 if (PyErr_Occurred()) SWIG_fail;
4465 }
4466 resultobj = SWIG_Py_Void();
4467 return resultobj;
4468fail:
4469 return NULL;
4470}
4471
4472
4473SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4474 PyObject *resultobj = 0;
4475 wxColour *arg1 = (wxColour *) 0 ;
4476 wxString *arg2 = 0 ;
4477 void *argp1 = 0 ;
4478 int res1 = 0 ;
4479 bool temp2 = false ;
4480 PyObject * obj0 = 0 ;
4481 PyObject * obj1 = 0 ;
4482 char * kwnames[] = {
4483 (char *) "self",(char *) "colourName", NULL
4484 };
4485
4486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4487 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4488 if (!SWIG_IsOK(res1)) {
4489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4490 }
4491 arg1 = reinterpret_cast< wxColour * >(argp1);
4492 {
4493 arg2 = wxString_in_helper(obj1);
4494 if (arg2 == NULL) SWIG_fail;
4495 temp2 = true;
4496 }
4497 {
4498 PyThreadState* __tstate = wxPyBeginAllowThreads();
72ef6efb 4499 (arg1)->Set((wxString const &)*arg2);
1bd55598
RD
4500 wxPyEndAllowThreads(__tstate);
4501 if (PyErr_Occurred()) SWIG_fail;
4502 }
4503 resultobj = SWIG_Py_Void();
4504 {
4505 if (temp2)
4506 delete arg2;
4507 }
4508 return resultobj;
4509fail:
4510 {
4511 if (temp2)
4512 delete arg2;
4513 }
4514 return NULL;
d55e5bfc
RD
4515}
4516
4517
2131d850
RD
4518SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4519 PyObject *resultobj = 0;
4520 wxColour *arg1 = (wxColour *) 0 ;
4521 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4522 wxString result;
4523 void *argp1 = 0 ;
4524 int res1 = 0 ;
4525 long val2 ;
4526 int ecode2 = 0 ;
4527 PyObject * obj0 = 0 ;
4528 PyObject * obj1 = 0 ;
4529 char * kwnames[] = {
4530 (char *) "self",(char *) "flags", NULL
4531 };
4532
4533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4535 if (!SWIG_IsOK(res1)) {
4536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4537 }
4538 arg1 = reinterpret_cast< wxColour * >(argp1);
4539 if (obj1) {
4540 ecode2 = SWIG_AsVal_long(obj1, &val2);
4541 if (!SWIG_IsOK(ecode2)) {
4542 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4543 }
4544 arg2 = static_cast< long >(val2);
4545 }
4546 {
4547 PyThreadState* __tstate = wxPyBeginAllowThreads();
4548 result = ((wxColour const *)arg1)->GetAsString(arg2);
4549 wxPyEndAllowThreads(__tstate);
4550 if (PyErr_Occurred()) SWIG_fail;
4551 }
4552 {
4553#if wxUSE_UNICODE
4554 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4555#else
4556 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4557#endif
4558 }
4559 return resultobj;
4560fail:
4561 return NULL;
4562}
4563
4564
1bd55598
RD
4565SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4566 PyObject *resultobj = 0;
4567 wxColour *arg1 = (wxColour *) 0 ;
4568 long result;
4569 void *argp1 = 0 ;
4570 int res1 = 0 ;
4571 PyObject *swig_obj[1] ;
4572
4573 if (!args) SWIG_fail;
4574 swig_obj[0] = args;
4575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4576 if (!SWIG_IsOK(res1)) {
4577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4578 }
4579 arg1 = reinterpret_cast< wxColour * >(argp1);
4580 {
4581 PyThreadState* __tstate = wxPyBeginAllowThreads();
4582 result = (long)((wxColour const *)arg1)->GetPixel();
4583 wxPyEndAllowThreads(__tstate);
4584 if (PyErr_Occurred()) SWIG_fail;
4585 }
4586 resultobj = SWIG_From_long(static_cast< long >(result));
4587 return resultobj;
4588fail:
4589 return NULL;
4590}
4591
4592
4593SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4594 PyObject *resultobj = 0;
4595 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4596 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
4597 bool result;
4598 void *argp1 = 0 ;
4599 int res1 = 0 ;
1bd55598
RD
4600 PyObject * obj0 = 0 ;
4601 PyObject * obj1 = 0 ;
4602 char * kwnames[] = {
e9d6f3a4 4603 (char *) "self",(char *) "other", NULL
1bd55598
RD
4604 };
4605
4606 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4607 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4608 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
1bd55598
RD
4610 }
4611 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4612 arg2 = obj1;
1bd55598 4613 {
e9d6f3a4 4614 result = (bool)wxColour___eq__(arg1,arg2);
1bd55598
RD
4615 if (PyErr_Occurred()) SWIG_fail;
4616 }
4617 {
4618 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4619 }
4620 return resultobj;
4621fail:
4622 return NULL;
4623}
4624
4625
4626SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4627 PyObject *resultobj = 0;
4628 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4629 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
4630 bool result;
4631 void *argp1 = 0 ;
4632 int res1 = 0 ;
1bd55598
RD
4633 PyObject * obj0 = 0 ;
4634 PyObject * obj1 = 0 ;
4635 char * kwnames[] = {
e9d6f3a4 4636 (char *) "self",(char *) "other", NULL
1bd55598
RD
4637 };
4638
4639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4641 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
1bd55598
RD
4643 }
4644 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4645 arg2 = obj1;
1bd55598 4646 {
e9d6f3a4 4647 result = (bool)wxColour___ne__(arg1,arg2);
1bd55598
RD
4648 if (PyErr_Occurred()) SWIG_fail;
4649 }
4650 {
4651 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4652 }
4653 return resultobj;
4654fail:
4655 return NULL;
d55e5bfc
RD
4656}
4657
4658
fc46b7f3 4659SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
4660 PyObject *resultobj = 0;
4661 wxColour *arg1 = (wxColour *) 0 ;
fc46b7f3 4662 bool arg2 = (bool) false ;
1bd55598
RD
4663 PyObject *result = 0 ;
4664 void *argp1 = 0 ;
4665 int res1 = 0 ;
fc46b7f3
RD
4666 bool val2 ;
4667 int ecode2 = 0 ;
4668 PyObject * obj0 = 0 ;
4669 PyObject * obj1 = 0 ;
4670 char * kwnames[] = {
4671 (char *) "self",(char *) "includeAlpha", NULL
4672 };
1bd55598 4673
fc46b7f3
RD
4674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
1bd55598
RD
4676 if (!SWIG_IsOK(res1)) {
4677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4678 }
4679 arg1 = reinterpret_cast< wxColour * >(argp1);
fc46b7f3
RD
4680 if (obj1) {
4681 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4682 if (!SWIG_IsOK(ecode2)) {
4683 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4684 }
4685 arg2 = static_cast< bool >(val2);
4686 }
1bd55598 4687 {
fc46b7f3 4688 result = (PyObject *)wxColour_Get(arg1,arg2);
1bd55598
RD
4689 if (PyErr_Occurred()) SWIG_fail;
4690 }
4691 resultobj = result;
4692 return resultobj;
4693fail:
4694 return NULL;
d55e5bfc
RD
4695}
4696
4697
1bd55598
RD
4698SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4699 PyObject *resultobj = 0;
4700 wxColour *arg1 = (wxColour *) 0 ;
4701 unsigned long result;
4702 void *argp1 = 0 ;
4703 int res1 = 0 ;
4704 PyObject *swig_obj[1] ;
4705
4706 if (!args) SWIG_fail;
4707 swig_obj[0] = args;
4708 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4709 if (!SWIG_IsOK(res1)) {
4710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4711 }
4712 arg1 = reinterpret_cast< wxColour * >(argp1);
4713 {
1bd55598 4714 result = (unsigned long)wxColour_GetRGB(arg1);
1bd55598
RD
4715 if (PyErr_Occurred()) SWIG_fail;
4716 }
4717 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4718 return resultobj;
4719fail:
4720 return NULL;
4721}
4722
4723
4724SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4725 PyObject *obj;
4726 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4727 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4728 return SWIG_Py_Void();
4729}
4730
4731SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4732 return SWIG_Python_InitShadowInstance(args);
4733}
4734
4735SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4736 PyObject *resultobj = 0;
4737 int arg1 ;
4738 unsigned char *arg2 = (unsigned char *) 0 ;
4739 unsigned char *arg3 = (unsigned char *) 0 ;
4740 unsigned char *arg4 = (unsigned char *) 0 ;
4741 wxPalette *result = 0 ;
4742 int val1 ;
4743 int ecode1 = 0 ;
4744 void *argp2 = 0 ;
4745 int res2 = 0 ;
4746 void *argp3 = 0 ;
4747 int res3 = 0 ;
4748 void *argp4 = 0 ;
4749 int res4 = 0 ;
4750 PyObject * obj0 = 0 ;
4751 PyObject * obj1 = 0 ;
4752 PyObject * obj2 = 0 ;
4753 PyObject * obj3 = 0 ;
4754 char * kwnames[] = {
4755 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4756 };
4757
4758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4759 ecode1 = SWIG_AsVal_int(obj0, &val1);
4760 if (!SWIG_IsOK(ecode1)) {
4761 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4762 }
4763 arg1 = static_cast< int >(val1);
4764 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4765 if (!SWIG_IsOK(res2)) {
4766 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4767 }
4768 arg2 = reinterpret_cast< unsigned char * >(argp2);
4769 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4770 if (!SWIG_IsOK(res3)) {
4771 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4772 }
4773 arg3 = reinterpret_cast< unsigned char * >(argp3);
4774 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4775 if (!SWIG_IsOK(res4)) {
4776 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4777 }
4778 arg4 = reinterpret_cast< unsigned char * >(argp4);
4779 {
4780 if (!wxPyCheckForApp()) SWIG_fail;
4781 PyThreadState* __tstate = wxPyBeginAllowThreads();
4782 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4783 wxPyEndAllowThreads(__tstate);
4784 if (PyErr_Occurred()) SWIG_fail;
4785 }
4786 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4787 return resultobj;
4788fail:
4789 return NULL;
d55e5bfc
RD
4790}
4791
4792
1bd55598
RD
4793SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4794 PyObject *resultobj = 0;
4795 wxPalette *arg1 = (wxPalette *) 0 ;
4796 void *argp1 = 0 ;
4797 int res1 = 0 ;
4798 PyObject *swig_obj[1] ;
4799
4800 if (!args) SWIG_fail;
4801 swig_obj[0] = args;
4802 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4803 if (!SWIG_IsOK(res1)) {
4804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4805 }
4806 arg1 = reinterpret_cast< wxPalette * >(argp1);
4807 {
4808 PyThreadState* __tstate = wxPyBeginAllowThreads();
4809 delete arg1;
d55e5bfc 4810
1bd55598
RD
4811 wxPyEndAllowThreads(__tstate);
4812 if (PyErr_Occurred()) SWIG_fail;
4813 }
4814 resultobj = SWIG_Py_Void();
4815 return resultobj;
4816fail:
4817 return NULL;
4818}
4819
4820
4821SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4822 PyObject *resultobj = 0;
4823 wxPalette *arg1 = (wxPalette *) 0 ;
4824 byte arg2 ;
4825 byte arg3 ;
4826 byte arg4 ;
4827 int result;
4828 void *argp1 = 0 ;
4829 int res1 = 0 ;
4830 unsigned char val2 ;
4831 int ecode2 = 0 ;
4832 unsigned char val3 ;
4833 int ecode3 = 0 ;
4834 unsigned char val4 ;
4835 int ecode4 = 0 ;
4836 PyObject * obj0 = 0 ;
4837 PyObject * obj1 = 0 ;
4838 PyObject * obj2 = 0 ;
4839 PyObject * obj3 = 0 ;
4840 char * kwnames[] = {
4841 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4842 };
4843
4844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4846 if (!SWIG_IsOK(res1)) {
4847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4848 }
4849 arg1 = reinterpret_cast< wxPalette * >(argp1);
4850 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4851 if (!SWIG_IsOK(ecode2)) {
4852 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4853 }
4854 arg2 = static_cast< byte >(val2);
4855 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4856 if (!SWIG_IsOK(ecode3)) {
4857 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4858 }
4859 arg3 = static_cast< byte >(val3);
4860 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4861 if (!SWIG_IsOK(ecode4)) {
4862 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4863 }
4864 arg4 = static_cast< byte >(val4);
4865 {
4866 PyThreadState* __tstate = wxPyBeginAllowThreads();
4867 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4868 wxPyEndAllowThreads(__tstate);
4869 if (PyErr_Occurred()) SWIG_fail;
4870 }
4871 resultobj = SWIG_From_int(static_cast< int >(result));
4872 return resultobj;
4873fail:
4874 return NULL;
4875}
4876
4877
4878SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4879 PyObject *resultobj = 0;
4880 wxPalette *arg1 = (wxPalette *) 0 ;
4881 int arg2 ;
4882 byte *arg3 = (byte *) 0 ;
4883 byte *arg4 = (byte *) 0 ;
4884 byte *arg5 = (byte *) 0 ;
4885 bool result;
4886 void *argp1 = 0 ;
4887 int res1 = 0 ;
4888 int val2 ;
4889 int ecode2 = 0 ;
4890 byte temp3 ;
4891 int res3 = SWIG_TMPOBJ ;
4892 byte temp4 ;
4893 int res4 = SWIG_TMPOBJ ;
4894 byte temp5 ;
4895 int res5 = SWIG_TMPOBJ ;
4896 PyObject * obj0 = 0 ;
4897 PyObject * obj1 = 0 ;
4898 char * kwnames[] = {
4899 (char *) "self",(char *) "pixel", NULL
4900 };
4901
4902 arg3 = &temp3;
4903 arg4 = &temp4;
4904 arg5 = &temp5;
4905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4907 if (!SWIG_IsOK(res1)) {
4908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4909 }
4910 arg1 = reinterpret_cast< wxPalette * >(argp1);
4911 ecode2 = SWIG_AsVal_int(obj1, &val2);
4912 if (!SWIG_IsOK(ecode2)) {
4913 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4914 }
4915 arg2 = static_cast< int >(val2);
4916 {
4917 PyThreadState* __tstate = wxPyBeginAllowThreads();
4918 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4919 wxPyEndAllowThreads(__tstate);
4920 if (PyErr_Occurred()) SWIG_fail;
4921 }
4922 {
4923 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4924 }
4925 if (SWIG_IsTmpObj(res3)) {
4926 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4927 } else {
4928 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4929 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4930 }
4931 if (SWIG_IsTmpObj(res4)) {
4932 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4933 } else {
4934 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4935 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4936 }
4937 if (SWIG_IsTmpObj(res5)) {
4938 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4939 } else {
4940 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4941 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4942 }
4943 return resultobj;
4944fail:
4945 return NULL;
d55e5bfc
RD
4946}
4947
4948
1bd55598
RD
4949SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4950 PyObject *resultobj = 0;
4951 wxPalette *arg1 = (wxPalette *) 0 ;
4952 int result;
4953 void *argp1 = 0 ;
4954 int res1 = 0 ;
4955 PyObject *swig_obj[1] ;
4956
4957 if (!args) SWIG_fail;
4958 swig_obj[0] = args;
4959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4960 if (!SWIG_IsOK(res1)) {
4961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4962 }
4963 arg1 = reinterpret_cast< wxPalette * >(argp1);
4964 {
4965 PyThreadState* __tstate = wxPyBeginAllowThreads();
4966 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4967 wxPyEndAllowThreads(__tstate);
4968 if (PyErr_Occurred()) SWIG_fail;
4969 }
4970 resultobj = SWIG_From_int(static_cast< int >(result));
4971 return resultobj;
4972fail:
4973 return NULL;
d55e5bfc
RD
4974}
4975
4976
b39fe951 4977SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
4978 PyObject *resultobj = 0;
4979 wxPalette *arg1 = (wxPalette *) 0 ;
4980 bool result;
4981 void *argp1 = 0 ;
4982 int res1 = 0 ;
4983 PyObject *swig_obj[1] ;
4984
4985 if (!args) SWIG_fail;
4986 swig_obj[0] = args;
4987 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4988 if (!SWIG_IsOK(res1)) {
b39fe951 4989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
1bd55598
RD
4990 }
4991 arg1 = reinterpret_cast< wxPalette * >(argp1);
4992 {
4993 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 4994 result = (bool)(arg1)->IsOk();
1bd55598
RD
4995 wxPyEndAllowThreads(__tstate);
4996 if (PyErr_Occurred()) SWIG_fail;
4997 }
4998 {
4999 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5000 }
5001 return resultobj;
5002fail:
5003 return NULL;
5004}
5005
5006
5007SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5008 PyObject *obj;
5009 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5010 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
5011 return SWIG_Py_Void();
5012}
5013
5014SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5015 return SWIG_Python_InitShadowInstance(args);
5016}
5017
5018SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5019 PyObject *resultobj = 0;
5020 wxColour *arg1 = 0 ;
5021 int arg2 = (int) 1 ;
5022 int arg3 = (int) wxSOLID ;
5023 wxPen *result = 0 ;
5024 wxColour temp1 ;
5025 int val2 ;
5026 int ecode2 = 0 ;
5027 int val3 ;
5028 int ecode3 = 0 ;
5029 PyObject * obj0 = 0 ;
5030 PyObject * obj1 = 0 ;
5031 PyObject * obj2 = 0 ;
5032 char * kwnames[] = {
5033 (char *) "colour",(char *) "width",(char *) "style", NULL
5034 };
5035
5036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5037 {
5038 arg1 = &temp1;
5039 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5040 }
5041 if (obj1) {
5042 ecode2 = SWIG_AsVal_int(obj1, &val2);
5043 if (!SWIG_IsOK(ecode2)) {
5044 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
5045 }
5046 arg2 = static_cast< int >(val2);
5047 }
5048 if (obj2) {
5049 ecode3 = SWIG_AsVal_int(obj2, &val3);
5050 if (!SWIG_IsOK(ecode3)) {
5051 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
5052 }
5053 arg3 = static_cast< int >(val3);
5054 }
5055 {
5056 if (!wxPyCheckForApp()) SWIG_fail;
5057 PyThreadState* __tstate = wxPyBeginAllowThreads();
5058 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
5059 wxPyEndAllowThreads(__tstate);
5060 if (PyErr_Occurred()) SWIG_fail;
5061 }
5062 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
5063 return resultobj;
5064fail:
5065 return NULL;
d55e5bfc
RD
5066}
5067
5068
1bd55598
RD
5069SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5070 PyObject *resultobj = 0;
5071 wxPen *arg1 = (wxPen *) 0 ;
5072 void *argp1 = 0 ;
5073 int res1 = 0 ;
5074 PyObject *swig_obj[1] ;
5075
5076 if (!args) SWIG_fail;
5077 swig_obj[0] = args;
5078 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
5079 if (!SWIG_IsOK(res1)) {
5080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
5081 }
5082 arg1 = reinterpret_cast< wxPen * >(argp1);
5083 {
5084 PyThreadState* __tstate = wxPyBeginAllowThreads();
5085 delete arg1;
f78cc896 5086
1bd55598
RD
5087 wxPyEndAllowThreads(__tstate);
5088 if (PyErr_Occurred()) SWIG_fail;
5089 }
5090 resultobj = SWIG_Py_Void();
5091 return resultobj;
5092fail:
5093 return NULL;
f78cc896
RD
5094}
5095
5096
1bd55598
RD
5097SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5098 PyObject *resultobj = 0;
5099 wxPen *arg1 = (wxPen *) 0 ;
5100 int result;
5101 void *argp1 = 0 ;
5102 int res1 = 0 ;
5103 PyObject *swig_obj[1] ;
5104
5105 if (!args) SWIG_fail;
5106 swig_obj[0] = args;
5107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5108 if (!SWIG_IsOK(res1)) {
5109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5110 }
5111 arg1 = reinterpret_cast< wxPen * >(argp1);
5112 {
5113 PyThreadState* __tstate = wxPyBeginAllowThreads();
5114 result = (int)(arg1)->GetCap();
5115 wxPyEndAllowThreads(__tstate);
5116 if (PyErr_Occurred()) SWIG_fail;
5117 }
5118 resultobj = SWIG_From_int(static_cast< int >(result));
5119 return resultobj;
5120fail:
5121 return NULL;
d55e5bfc
RD
5122}
5123
5124
1bd55598
RD
5125SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5126 PyObject *resultobj = 0;
5127 wxPen *arg1 = (wxPen *) 0 ;
5128 wxColour result;
5129 void *argp1 = 0 ;
5130 int res1 = 0 ;
5131 PyObject *swig_obj[1] ;
5132
5133 if (!args) SWIG_fail;
5134 swig_obj[0] = args;
5135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5136 if (!SWIG_IsOK(res1)) {
5137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5138 }
5139 arg1 = reinterpret_cast< wxPen * >(argp1);
5140 {
5141 PyThreadState* __tstate = wxPyBeginAllowThreads();
5142 result = (arg1)->GetColour();
5143 wxPyEndAllowThreads(__tstate);
5144 if (PyErr_Occurred()) SWIG_fail;
5145 }
5146 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5147 return resultobj;
5148fail:
5149 return NULL;
d55e5bfc
RD
5150}
5151
5152
1bd55598
RD
5153SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5154 PyObject *resultobj = 0;
5155 wxPen *arg1 = (wxPen *) 0 ;
5156 int result;
5157 void *argp1 = 0 ;
5158 int res1 = 0 ;
5159 PyObject *swig_obj[1] ;
5160
5161 if (!args) SWIG_fail;
5162 swig_obj[0] = args;
5163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5164 if (!SWIG_IsOK(res1)) {
5165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5166 }
5167 arg1 = reinterpret_cast< wxPen * >(argp1);
5168 {
5169 PyThreadState* __tstate = wxPyBeginAllowThreads();
5170 result = (int)(arg1)->GetJoin();
5171 wxPyEndAllowThreads(__tstate);
5172 if (PyErr_Occurred()) SWIG_fail;
5173 }
5174 resultobj = SWIG_From_int(static_cast< int >(result));
5175 return resultobj;
5176fail:
5177 return NULL;
d55e5bfc
RD
5178}
5179
5180
1bd55598
RD
5181SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5182 PyObject *resultobj = 0;
5183 wxPen *arg1 = (wxPen *) 0 ;
5184 int result;
5185 void *argp1 = 0 ;
5186 int res1 = 0 ;
5187 PyObject *swig_obj[1] ;
5188
5189 if (!args) SWIG_fail;
5190 swig_obj[0] = args;
5191 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5192 if (!SWIG_IsOK(res1)) {
5193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5194 }
5195 arg1 = reinterpret_cast< wxPen * >(argp1);
5196 {
5197 PyThreadState* __tstate = wxPyBeginAllowThreads();
5198 result = (int)(arg1)->GetStyle();
5199 wxPyEndAllowThreads(__tstate);
5200 if (PyErr_Occurred()) SWIG_fail;
5201 }
5202 resultobj = SWIG_From_int(static_cast< int >(result));
5203 return resultobj;
5204fail:
5205 return NULL;
d55e5bfc
RD
5206}
5207
5208
1bd55598
RD
5209SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5210 PyObject *resultobj = 0;
5211 wxPen *arg1 = (wxPen *) 0 ;
5212 int result;
5213 void *argp1 = 0 ;
5214 int res1 = 0 ;
5215 PyObject *swig_obj[1] ;
5216
5217 if (!args) SWIG_fail;
5218 swig_obj[0] = args;
5219 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5220 if (!SWIG_IsOK(res1)) {
5221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5222 }
5223 arg1 = reinterpret_cast< wxPen * >(argp1);
5224 {
5225 PyThreadState* __tstate = wxPyBeginAllowThreads();
5226 result = (int)(arg1)->GetWidth();
5227 wxPyEndAllowThreads(__tstate);
5228 if (PyErr_Occurred()) SWIG_fail;
5229 }
5230 resultobj = SWIG_From_int(static_cast< int >(result));
5231 return resultobj;
5232fail:
5233 return NULL;
d55e5bfc
RD
5234}
5235
5236
b39fe951 5237SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
5238 PyObject *resultobj = 0;
5239 wxPen *arg1 = (wxPen *) 0 ;
5240 bool result;
5241 void *argp1 = 0 ;
5242 int res1 = 0 ;
5243 PyObject *swig_obj[1] ;
5244
5245 if (!args) SWIG_fail;
5246 swig_obj[0] = args;
5247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5248 if (!SWIG_IsOK(res1)) {
b39fe951 5249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
1bd55598
RD
5250 }
5251 arg1 = reinterpret_cast< wxPen * >(argp1);
5252 {
5253 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 5254 result = (bool)(arg1)->IsOk();
1bd55598
RD
5255 wxPyEndAllowThreads(__tstate);
5256 if (PyErr_Occurred()) SWIG_fail;
5257 }
5258 {
5259 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5260 }
5261 return resultobj;
5262fail:
5263 return NULL;
5264}
5265
5266
5267SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5268 PyObject *resultobj = 0;
5269 wxPen *arg1 = (wxPen *) 0 ;
5270 int arg2 ;
5271 void *argp1 = 0 ;
5272 int res1 = 0 ;
5273 int val2 ;
5274 int ecode2 = 0 ;
5275 PyObject * obj0 = 0 ;
5276 PyObject * obj1 = 0 ;
5277 char * kwnames[] = {
5278 (char *) "self",(char *) "cap_style", NULL
5279 };
5280
5281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5283 if (!SWIG_IsOK(res1)) {
5284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5285 }
5286 arg1 = reinterpret_cast< wxPen * >(argp1);
5287 ecode2 = SWIG_AsVal_int(obj1, &val2);
5288 if (!SWIG_IsOK(ecode2)) {
5289 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5290 }
5291 arg2 = static_cast< int >(val2);
5292 {
5293 PyThreadState* __tstate = wxPyBeginAllowThreads();
5294 (arg1)->SetCap(arg2);
5295 wxPyEndAllowThreads(__tstate);
5296 if (PyErr_Occurred()) SWIG_fail;
5297 }
5298 resultobj = SWIG_Py_Void();
5299 return resultobj;
5300fail:
5301 return NULL;
5302}
5303
5304
5305SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5306 PyObject *resultobj = 0;
5307 wxPen *arg1 = (wxPen *) 0 ;
5308 wxColour *arg2 = 0 ;
5309 void *argp1 = 0 ;
5310 int res1 = 0 ;
5311 wxColour temp2 ;
5312 PyObject * obj0 = 0 ;
5313 PyObject * obj1 = 0 ;
5314 char * kwnames[] = {
5315 (char *) "self",(char *) "colour", NULL
5316 };
5317
5318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5320 if (!SWIG_IsOK(res1)) {
5321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5322 }
5323 arg1 = reinterpret_cast< wxPen * >(argp1);
5324 {
5325 arg2 = &temp2;
5326 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5327 }
5328 {
5329 PyThreadState* __tstate = wxPyBeginAllowThreads();
5330 (arg1)->SetColour(*arg2);
5331 wxPyEndAllowThreads(__tstate);
5332 if (PyErr_Occurred()) SWIG_fail;
5333 }
5334 resultobj = SWIG_Py_Void();
5335 return resultobj;
5336fail:
5337 return NULL;
5338}
5339
5340
5341SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5342 PyObject *resultobj = 0;
5343 wxPen *arg1 = (wxPen *) 0 ;
5344 int arg2 ;
5345 void *argp1 = 0 ;
5346 int res1 = 0 ;
5347 int val2 ;
5348 int ecode2 = 0 ;
5349 PyObject * obj0 = 0 ;
5350 PyObject * obj1 = 0 ;
5351 char * kwnames[] = {
5352 (char *) "self",(char *) "join_style", NULL
5353 };
5354
5355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5357 if (!SWIG_IsOK(res1)) {
5358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5359 }
5360 arg1 = reinterpret_cast< wxPen * >(argp1);
5361 ecode2 = SWIG_AsVal_int(obj1, &val2);
5362 if (!SWIG_IsOK(ecode2)) {
5363 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5364 }
5365 arg2 = static_cast< int >(val2);
5366 {
5367 PyThreadState* __tstate = wxPyBeginAllowThreads();
5368 (arg1)->SetJoin(arg2);
5369 wxPyEndAllowThreads(__tstate);
5370 if (PyErr_Occurred()) SWIG_fail;
5371 }
5372 resultobj = SWIG_Py_Void();
5373 return resultobj;
5374fail:
5375 return NULL;
5376}
5377
5378
5379SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5380 PyObject *resultobj = 0;
5381 wxPen *arg1 = (wxPen *) 0 ;
5382 int arg2 ;
5383 void *argp1 = 0 ;
5384 int res1 = 0 ;
5385 int val2 ;
5386 int ecode2 = 0 ;
5387 PyObject * obj0 = 0 ;
5388 PyObject * obj1 = 0 ;
5389 char * kwnames[] = {
5390 (char *) "self",(char *) "style", NULL
5391 };
5392
5393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5395 if (!SWIG_IsOK(res1)) {
5396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5397 }
5398 arg1 = reinterpret_cast< wxPen * >(argp1);
5399 ecode2 = SWIG_AsVal_int(obj1, &val2);
5400 if (!SWIG_IsOK(ecode2)) {
5401 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5402 }
5403 arg2 = static_cast< int >(val2);
5404 {
5405 PyThreadState* __tstate = wxPyBeginAllowThreads();
5406 (arg1)->SetStyle(arg2);
5407 wxPyEndAllowThreads(__tstate);
5408 if (PyErr_Occurred()) SWIG_fail;
5409 }
5410 resultobj = SWIG_Py_Void();
5411 return resultobj;
5412fail:
5413 return NULL;
5414}
5415
5416
5417SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5418 PyObject *resultobj = 0;
5419 wxPen *arg1 = (wxPen *) 0 ;
5420 int arg2 ;
5421 void *argp1 = 0 ;
5422 int res1 = 0 ;
5423 int val2 ;
5424 int ecode2 = 0 ;
5425 PyObject * obj0 = 0 ;
5426 PyObject * obj1 = 0 ;
5427 char * kwnames[] = {
5428 (char *) "self",(char *) "width", NULL
5429 };
5430
5431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5433 if (!SWIG_IsOK(res1)) {
5434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5435 }
5436 arg1 = reinterpret_cast< wxPen * >(argp1);
5437 ecode2 = SWIG_AsVal_int(obj1, &val2);
5438 if (!SWIG_IsOK(ecode2)) {
5439 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5440 }
5441 arg2 = static_cast< int >(val2);
5442 {
5443 PyThreadState* __tstate = wxPyBeginAllowThreads();
5444 (arg1)->SetWidth(arg2);
5445 wxPyEndAllowThreads(__tstate);
5446 if (PyErr_Occurred()) SWIG_fail;
5447 }
5448 resultobj = SWIG_Py_Void();
5449 return resultobj;
5450fail:
5451 return NULL;
5452}
5453
5454
5455SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5456 PyObject *resultobj = 0;
5457 wxPen *arg1 = (wxPen *) 0 ;
5458 int arg2 ;
5459 wxDash *arg3 = (wxDash *) 0 ;
5460 void *argp1 = 0 ;
5461 int res1 = 0 ;
5462 PyObject * obj0 = 0 ;
5463 PyObject * obj1 = 0 ;
5464 char * kwnames[] = {
5465 (char *) "self",(char *) "dashes", NULL
5466 };
5467
5468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5470 if (!SWIG_IsOK(res1)) {
5471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5472 }
5473 arg1 = reinterpret_cast< wxPen * >(argp1);
5474 {
5475 arg2 = PyList_Size(obj1);
5476 arg3 = (wxDash*)byte_LIST_helper(obj1);
5477 if (arg3 == NULL) SWIG_fail;
5478 }
5479 {
5480 PyThreadState* __tstate = wxPyBeginAllowThreads();
5481 (arg1)->SetDashes(arg2,arg3);
5482 wxPyEndAllowThreads(__tstate);
5483 if (PyErr_Occurred()) SWIG_fail;
5484 }
5485 resultobj = SWIG_Py_Void();
5486 {
5487 if (arg3) delete [] arg3;
5488 }
5489 return resultobj;
5490fail:
5491 {
5492 if (arg3) delete [] arg3;
5493 }
5494 return NULL;
d6c14a4c
RD
5495}
5496
5497
1bd55598
RD
5498SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5499 PyObject *resultobj = 0;
5500 wxPen *arg1 = (wxPen *) 0 ;
5501 PyObject *result = 0 ;
5502 void *argp1 = 0 ;
5503 int res1 = 0 ;
5504 PyObject *swig_obj[1] ;
5505
5506 if (!args) SWIG_fail;
5507 swig_obj[0] = args;
5508 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5509 if (!SWIG_IsOK(res1)) {
5510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5511 }
5512 arg1 = reinterpret_cast< wxPen * >(argp1);
5513 {
5514 PyThreadState* __tstate = wxPyBeginAllowThreads();
5515 result = (PyObject *)wxPen_GetDashes(arg1);
5516 wxPyEndAllowThreads(__tstate);
5517 if (PyErr_Occurred()) SWIG_fail;
5518 }
5519 resultobj = result;
5520 return resultobj;
5521fail:
5522 return NULL;
5523}
5524
5525
5526SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5527 PyObject *resultobj = 0;
5528 wxPen *arg1 = (wxPen *) 0 ;
5529 PyObject *arg2 = (PyObject *) 0 ;
5530 PyObject *arg3 = (PyObject *) 0 ;
5531 void *argp1 = 0 ;
5532 int res1 = 0 ;
5533 PyObject * obj0 = 0 ;
5534 PyObject * obj1 = 0 ;
5535 PyObject * obj2 = 0 ;
5536 char * kwnames[] = {
5537 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5538 };
5539
5540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5542 if (!SWIG_IsOK(res1)) {
5543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5544 }
5545 arg1 = reinterpret_cast< wxPen * >(argp1);
5546 arg2 = obj1;
5547 arg3 = obj2;
5548 {
5549 PyThreadState* __tstate = wxPyBeginAllowThreads();
5550 wxPen__SetDashes(arg1,arg2,arg3);
5551 wxPyEndAllowThreads(__tstate);
5552 if (PyErr_Occurred()) SWIG_fail;
5553 }
5554 resultobj = SWIG_Py_Void();
5555 return resultobj;
5556fail:
5557 return NULL;
5558}
5559
5560
5561SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5562 PyObject *resultobj = 0;
5563 wxPen *arg1 = (wxPen *) 0 ;
5564 wxPen *arg2 = (wxPen *) 0 ;
5565 bool result;
5566 void *argp1 = 0 ;
5567 int res1 = 0 ;
5568 void *argp2 = 0 ;
5569 int res2 = 0 ;
5570 PyObject * obj0 = 0 ;
5571 PyObject * obj1 = 0 ;
5572 char * kwnames[] = {
5573 (char *) "self",(char *) "other", NULL
5574 };
5575
5576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5578 if (!SWIG_IsOK(res1)) {
5579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5580 }
5581 arg1 = reinterpret_cast< wxPen * >(argp1);
5582 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5583 if (!SWIG_IsOK(res2)) {
5584 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5585 }
5586 arg2 = reinterpret_cast< wxPen * >(argp2);
5587 {
5588 PyThreadState* __tstate = wxPyBeginAllowThreads();
5589 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5590 wxPyEndAllowThreads(__tstate);
5591 if (PyErr_Occurred()) SWIG_fail;
5592 }
5593 {
5594 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5595 }
5596 return resultobj;
5597fail:
5598 return NULL;
5599}
5600
5601
5602SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5603 PyObject *resultobj = 0;
5604 wxPen *arg1 = (wxPen *) 0 ;
5605 wxPen *arg2 = (wxPen *) 0 ;
5606 bool result;
5607 void *argp1 = 0 ;
5608 int res1 = 0 ;
5609 void *argp2 = 0 ;
5610 int res2 = 0 ;
5611 PyObject * obj0 = 0 ;
5612 PyObject * obj1 = 0 ;
5613 char * kwnames[] = {
5614 (char *) "self",(char *) "other", NULL
5615 };
5616
5617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5619 if (!SWIG_IsOK(res1)) {
5620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5621 }
5622 arg1 = reinterpret_cast< wxPen * >(argp1);
5623 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5624 if (!SWIG_IsOK(res2)) {
5625 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5626 }
5627 arg2 = reinterpret_cast< wxPen * >(argp2);
5628 {
5629 PyThreadState* __tstate = wxPyBeginAllowThreads();
5630 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5631 wxPyEndAllowThreads(__tstate);
5632 if (PyErr_Occurred()) SWIG_fail;
5633 }
5634 {
5635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5636 }
5637 return resultobj;
5638fail:
5639 return NULL;
5640}
d55e5bfc
RD
5641
5642
1bd55598
RD
5643SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5644 PyObject *obj;
5645 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5646 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5647 return SWIG_Py_Void();
d55e5bfc
RD
5648}
5649
1bd55598
RD
5650SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5651 return SWIG_Python_InitShadowInstance(args);
5652}
d55e5bfc 5653
1bd55598
RD
5654SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5655 PyObject *resultobj = 0;
5656 wxColour *arg1 = 0 ;
5657 int arg2 = (int) wxSOLID ;
5658 wxBrush *result = 0 ;
5659 wxColour temp1 ;
5660 int val2 ;
5661 int ecode2 = 0 ;
5662 PyObject * obj0 = 0 ;
5663 PyObject * obj1 = 0 ;
5664 char * kwnames[] = {
5665 (char *) "colour",(char *) "style", NULL
5666 };
5667
5668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5669 {
5670 arg1 = &temp1;
5671 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5672 }
5673 if (obj1) {
5674 ecode2 = SWIG_AsVal_int(obj1, &val2);
5675 if (!SWIG_IsOK(ecode2)) {
5676 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5677 }
5678 arg2 = static_cast< int >(val2);
5679 }
5680 {
5681 if (!wxPyCheckForApp()) SWIG_fail;
5682 PyThreadState* __tstate = wxPyBeginAllowThreads();
5683 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5684 wxPyEndAllowThreads(__tstate);
5685 if (PyErr_Occurred()) SWIG_fail;
5686 }
5687 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5688 return resultobj;
5689fail:
5690 return NULL;
5691}
5692
5693
5694SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5695 PyObject *resultobj = 0;
5696 wxBitmap *arg1 = 0 ;
5697 wxBrush *result = 0 ;
5698 void *argp1 = 0 ;
5699 int res1 = 0 ;
5700 PyObject * obj0 = 0 ;
5701 char * kwnames[] = {
5702 (char *) "stippleBitmap", NULL
5703 };
5704
5705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5706 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5707 if (!SWIG_IsOK(res1)) {
5708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5709 }
5710 if (!argp1) {
5711 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5712 }
5713 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5714 {
5715 if (!wxPyCheckForApp()) SWIG_fail;
5716 PyThreadState* __tstate = wxPyBeginAllowThreads();
5717 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5718 wxPyEndAllowThreads(__tstate);
5719 if (PyErr_Occurred()) SWIG_fail;
5720 }
5721 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5722 return resultobj;
5723fail:
5724 return NULL;
d55e5bfc
RD
5725}
5726
5727
1bd55598
RD
5728SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5729 PyObject *resultobj = 0;
5730 wxBrush *arg1 = (wxBrush *) 0 ;
5731 void *argp1 = 0 ;
5732 int res1 = 0 ;
5733 PyObject *swig_obj[1] ;
5734
5735 if (!args) SWIG_fail;
5736 swig_obj[0] = args;
5737 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5738 if (!SWIG_IsOK(res1)) {
5739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5740 }
5741 arg1 = reinterpret_cast< wxBrush * >(argp1);
5742 {
5743 PyThreadState* __tstate = wxPyBeginAllowThreads();
5744 delete arg1;
d55e5bfc 5745
1bd55598
RD
5746 wxPyEndAllowThreads(__tstate);
5747 if (PyErr_Occurred()) SWIG_fail;
5748 }
5749 resultobj = SWIG_Py_Void();
5750 return resultobj;
5751fail:
5752 return NULL;
5753}
5754
5755
5756SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5757 PyObject *resultobj = 0;
5758 wxBrush *arg1 = (wxBrush *) 0 ;
5759 wxColour *arg2 = 0 ;
5760 void *argp1 = 0 ;
5761 int res1 = 0 ;
5762 wxColour temp2 ;
5763 PyObject * obj0 = 0 ;
5764 PyObject * obj1 = 0 ;
5765 char * kwnames[] = {
5766 (char *) "self",(char *) "col", NULL
5767 };
5768
5769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5771 if (!SWIG_IsOK(res1)) {
5772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5773 }
5774 arg1 = reinterpret_cast< wxBrush * >(argp1);
5775 {
5776 arg2 = &temp2;
5777 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5778 }
5779 {
5780 PyThreadState* __tstate = wxPyBeginAllowThreads();
5781 (arg1)->SetColour((wxColour const &)*arg2);
5782 wxPyEndAllowThreads(__tstate);
5783 if (PyErr_Occurred()) SWIG_fail;
5784 }
5785 resultobj = SWIG_Py_Void();
5786 return resultobj;
5787fail:
5788 return NULL;
5789}
5790
5791
5792SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5793 PyObject *resultobj = 0;
5794 wxBrush *arg1 = (wxBrush *) 0 ;
5795 int arg2 ;
5796 void *argp1 = 0 ;
5797 int res1 = 0 ;
5798 int val2 ;
5799 int ecode2 = 0 ;
5800 PyObject * obj0 = 0 ;
5801 PyObject * obj1 = 0 ;
5802 char * kwnames[] = {
5803 (char *) "self",(char *) "style", NULL
5804 };
5805
5806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5808 if (!SWIG_IsOK(res1)) {
5809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5810 }
5811 arg1 = reinterpret_cast< wxBrush * >(argp1);
5812 ecode2 = SWIG_AsVal_int(obj1, &val2);
5813 if (!SWIG_IsOK(ecode2)) {
5814 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5815 }
5816 arg2 = static_cast< int >(val2);
5817 {
5818 PyThreadState* __tstate = wxPyBeginAllowThreads();
5819 (arg1)->SetStyle(arg2);
5820 wxPyEndAllowThreads(__tstate);
5821 if (PyErr_Occurred()) SWIG_fail;
5822 }
5823 resultobj = SWIG_Py_Void();
5824 return resultobj;
5825fail:
5826 return NULL;
5827}
5828
5829
5830SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5831 PyObject *resultobj = 0;
5832 wxBrush *arg1 = (wxBrush *) 0 ;
5833 wxBitmap *arg2 = 0 ;
5834 void *argp1 = 0 ;
5835 int res1 = 0 ;
5836 void *argp2 = 0 ;
5837 int res2 = 0 ;
5838 PyObject * obj0 = 0 ;
5839 PyObject * obj1 = 0 ;
5840 char * kwnames[] = {
5841 (char *) "self",(char *) "stipple", NULL
5842 };
5843
5844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5846 if (!SWIG_IsOK(res1)) {
5847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5848 }
5849 arg1 = reinterpret_cast< wxBrush * >(argp1);
5850 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5851 if (!SWIG_IsOK(res2)) {
5852 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5853 }
5854 if (!argp2) {
5855 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5856 }
5857 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5858 {
5859 PyThreadState* __tstate = wxPyBeginAllowThreads();
5860 (arg1)->SetStipple((wxBitmap const &)*arg2);
5861 wxPyEndAllowThreads(__tstate);
5862 if (PyErr_Occurred()) SWIG_fail;
5863 }
5864 resultobj = SWIG_Py_Void();
5865 return resultobj;
5866fail:
5867 return NULL;
d55e5bfc
RD
5868}
5869
5870
1bd55598
RD
5871SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5872 PyObject *resultobj = 0;
5873 wxBrush *arg1 = (wxBrush *) 0 ;
5874 wxColour result;
5875 void *argp1 = 0 ;
5876 int res1 = 0 ;
5877 PyObject *swig_obj[1] ;
5878
5879 if (!args) SWIG_fail;
5880 swig_obj[0] = args;
5881 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5882 if (!SWIG_IsOK(res1)) {
5883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5884 }
5885 arg1 = reinterpret_cast< wxBrush * >(argp1);
5886 {
5887 PyThreadState* __tstate = wxPyBeginAllowThreads();
5888 result = ((wxBrush const *)arg1)->GetColour();
5889 wxPyEndAllowThreads(__tstate);
5890 if (PyErr_Occurred()) SWIG_fail;
5891 }
5892 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5893 return resultobj;
5894fail:
5895 return NULL;
d55e5bfc
RD
5896}
5897
5898
1bd55598
RD
5899SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5900 PyObject *resultobj = 0;
5901 wxBrush *arg1 = (wxBrush *) 0 ;
5902 int result;
5903 void *argp1 = 0 ;
5904 int res1 = 0 ;
5905 PyObject *swig_obj[1] ;
5906
5907 if (!args) SWIG_fail;
5908 swig_obj[0] = args;
5909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5910 if (!SWIG_IsOK(res1)) {
5911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5912 }
5913 arg1 = reinterpret_cast< wxBrush * >(argp1);
5914 {
5915 PyThreadState* __tstate = wxPyBeginAllowThreads();
5916 result = (int)((wxBrush const *)arg1)->GetStyle();
5917 wxPyEndAllowThreads(__tstate);
5918 if (PyErr_Occurred()) SWIG_fail;
5919 }
5920 resultobj = SWIG_From_int(static_cast< int >(result));
5921 return resultobj;
5922fail:
5923 return NULL;
d55e5bfc
RD
5924}
5925
5926
1bd55598
RD
5927SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5928 PyObject *resultobj = 0;
5929 wxBrush *arg1 = (wxBrush *) 0 ;
5930 wxBitmap *result = 0 ;
5931 void *argp1 = 0 ;
5932 int res1 = 0 ;
5933 PyObject *swig_obj[1] ;
5934
5935 if (!args) SWIG_fail;
5936 swig_obj[0] = args;
5937 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5938 if (!SWIG_IsOK(res1)) {
5939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5940 }
5941 arg1 = reinterpret_cast< wxBrush * >(argp1);
5942 {
5943 PyThreadState* __tstate = wxPyBeginAllowThreads();
5944 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5945 wxPyEndAllowThreads(__tstate);
5946 if (PyErr_Occurred()) SWIG_fail;
5947 }
5948 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5949 return resultobj;
5950fail:
5951 return NULL;
d55e5bfc
RD
5952}
5953
5954
1bd55598
RD
5955SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5956 PyObject *resultobj = 0;
5957 wxBrush *arg1 = (wxBrush *) 0 ;
5958 bool result;
5959 void *argp1 = 0 ;
5960 int res1 = 0 ;
5961 PyObject *swig_obj[1] ;
5962
5963 if (!args) SWIG_fail;
5964 swig_obj[0] = args;
5965 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5966 if (!SWIG_IsOK(res1)) {
5967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5968 }
5969 arg1 = reinterpret_cast< wxBrush * >(argp1);
5970 {
5971 PyThreadState* __tstate = wxPyBeginAllowThreads();
5972 result = (bool)((wxBrush const *)arg1)->IsHatch();
5973 wxPyEndAllowThreads(__tstate);
5974 if (PyErr_Occurred()) SWIG_fail;
5975 }
5976 {
5977 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5978 }
5979 return resultobj;
5980fail:
5981 return NULL;
d55e5bfc
RD
5982}
5983
5984
b39fe951 5985SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
5986 PyObject *resultobj = 0;
5987 wxBrush *arg1 = (wxBrush *) 0 ;
5988 bool result;
5989 void *argp1 = 0 ;
5990 int res1 = 0 ;
5991 PyObject *swig_obj[1] ;
5992
5993 if (!args) SWIG_fail;
5994 swig_obj[0] = args;
5995 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5996 if (!SWIG_IsOK(res1)) {
b39fe951 5997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
1bd55598
RD
5998 }
5999 arg1 = reinterpret_cast< wxBrush * >(argp1);
6000 {
6001 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 6002 result = (bool)(arg1)->IsOk();
1bd55598
RD
6003 wxPyEndAllowThreads(__tstate);
6004 if (PyErr_Occurred()) SWIG_fail;
6005 }
6006 {
6007 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6008 }
6009 return resultobj;
6010fail:
6011 return NULL;
d55e5bfc
RD
6012}
6013
6014
1bd55598
RD
6015SWIGINTERN PyObject *_wrap_Brush_MacGetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6016 PyObject *resultobj = 0;
6017 wxBrush *arg1 = (wxBrush *) 0 ;
6018 short result;
6019 void *argp1 = 0 ;
6020 int res1 = 0 ;
6021 PyObject *swig_obj[1] ;
6022
6023 if (!args) SWIG_fail;
6024 swig_obj[0] = args;
6025 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6026 if (!SWIG_IsOK(res1)) {
6027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacGetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
6028 }
6029 arg1 = reinterpret_cast< wxBrush * >(argp1);
6030 {
6031 PyThreadState* __tstate = wxPyBeginAllowThreads();
6032 result = (short)(arg1)->MacGetTheme();
6033 wxPyEndAllowThreads(__tstate);
6034 if (PyErr_Occurred()) SWIG_fail;
6035 }
6036 resultobj = SWIG_From_short(static_cast< short >(result));
6037 return resultobj;
6038fail:
6039 return NULL;
6040}
6041
6042
6043SWIGINTERN PyObject *_wrap_Brush_MacSetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6044 PyObject *resultobj = 0;
6045 wxBrush *arg1 = (wxBrush *) 0 ;
6046 short arg2 ;
6047 void *argp1 = 0 ;
6048 int res1 = 0 ;
6049 short val2 ;
6050 int ecode2 = 0 ;
6051 PyObject * obj0 = 0 ;
6052 PyObject * obj1 = 0 ;
6053 char * kwnames[] = {
6054 (char *) "self",(char *) "macThemeBrush", NULL
6055 };
6056
6057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) SWIG_fail;
6058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6059 if (!SWIG_IsOK(res1)) {
6060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacSetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
6061 }
6062 arg1 = reinterpret_cast< wxBrush * >(argp1);
6063 ecode2 = SWIG_AsVal_short(obj1, &val2);
6064 if (!SWIG_IsOK(ecode2)) {
6065 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_MacSetTheme" "', expected argument " "2"" of type '" "short""'");
6066 }
6067 arg2 = static_cast< short >(val2);
6068 {
6069 PyThreadState* __tstate = wxPyBeginAllowThreads();
6070 (arg1)->MacSetTheme(arg2);
6071 wxPyEndAllowThreads(__tstate);
6072 if (PyErr_Occurred()) SWIG_fail;
6073 }
6074 resultobj = SWIG_Py_Void();
6075 return resultobj;
6076fail:
6077 return NULL;
d55e5bfc
RD
6078}
6079
6080
1bd55598
RD
6081SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6082 PyObject *obj;
6083 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6084 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
6085 return SWIG_Py_Void();
d55e5bfc
RD
6086}
6087
1bd55598
RD
6088SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6089 return SWIG_Python_InitShadowInstance(args);
6090}
d55e5bfc 6091
1bd55598
RD
6092SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6093 PyObject *resultobj = 0;
6094 wxString *arg1 = 0 ;
6095 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
6096 wxBitmap *result = 0 ;
6097 bool temp1 = false ;
6098 int val2 ;
6099 int ecode2 = 0 ;
6100 PyObject * obj0 = 0 ;
6101 PyObject * obj1 = 0 ;
6102 char * kwnames[] = {
6103 (char *) "name",(char *) "type", NULL
6104 };
6105
6106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6107 {
6108 arg1 = wxString_in_helper(obj0);
6109 if (arg1 == NULL) SWIG_fail;
6110 temp1 = true;
6111 }
6112 if (obj1) {
6113 ecode2 = SWIG_AsVal_int(obj1, &val2);
6114 if (!SWIG_IsOK(ecode2)) {
6115 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
6116 }
6117 arg2 = static_cast< wxBitmapType >(val2);
6118 }
6119 {
6120 if (!wxPyCheckForApp()) SWIG_fail;
6121 PyThreadState* __tstate = wxPyBeginAllowThreads();
6122 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
6123 wxPyEndAllowThreads(__tstate);
6124 if (PyErr_Occurred()) SWIG_fail;
6125 }
6126 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
6127 {
6128 if (temp1)
6129 delete arg1;
6130 }
6131 return resultobj;
6132fail:
6133 {
6134 if (temp1)
6135 delete arg1;
6136 }
6137 return NULL;
d55e5bfc
RD
6138}
6139
6140
1bd55598
RD
6141SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6142 PyObject *resultobj = 0;
6143 wxBitmap *arg1 = (wxBitmap *) 0 ;
6144 void *argp1 = 0 ;
6145 int res1 = 0 ;
6146 PyObject *swig_obj[1] ;
6147
6148 if (!args) SWIG_fail;
6149 swig_obj[0] = args;
6150 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
6151 if (!SWIG_IsOK(res1)) {
6152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
6153 }
6154 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6155 {
1bd55598 6156 delete arg1;
d55e5bfc 6157
1bd55598
RD
6158 if (PyErr_Occurred()) SWIG_fail;
6159 }
6160 resultobj = SWIG_Py_Void();
6161 return resultobj;
6162fail:
6163 return NULL;
6164}
6165
6166
6167SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6168 PyObject *resultobj = 0;
6169 int arg1 ;
6170 int arg2 ;
6171 int arg3 = (int) -1 ;
6172 wxBitmap *result = 0 ;
6173 int val1 ;
6174 int ecode1 = 0 ;
6175 int val2 ;
6176 int ecode2 = 0 ;
6177 int val3 ;
6178 int ecode3 = 0 ;
6179 PyObject * obj0 = 0 ;
6180 PyObject * obj1 = 0 ;
6181 PyObject * obj2 = 0 ;
6182 char * kwnames[] = {
6183 (char *) "width",(char *) "height",(char *) "depth", NULL
6184 };
6185
6186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6187 ecode1 = SWIG_AsVal_int(obj0, &val1);
6188 if (!SWIG_IsOK(ecode1)) {
6189 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
6190 }
6191 arg1 = static_cast< int >(val1);
6192 ecode2 = SWIG_AsVal_int(obj1, &val2);
6193 if (!SWIG_IsOK(ecode2)) {
6194 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
6195 }
6196 arg2 = static_cast< int >(val2);
6197 if (obj2) {
6198 ecode3 = SWIG_AsVal_int(obj2, &val3);
6199 if (!SWIG_IsOK(ecode3)) {
6200 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
6201 }
6202 arg3 = static_cast< int >(val3);
6203 }
6204 {
6205 if (!wxPyCheckForApp()) SWIG_fail;
6206 PyThreadState* __tstate = wxPyBeginAllowThreads();
6207 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
6208 wxPyEndAllowThreads(__tstate);
6209 if (PyErr_Occurred()) SWIG_fail;
6210 }
6211 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6212 return resultobj;
6213fail:
6214 return NULL;
6215}
6216
6217
6218SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6219 PyObject *resultobj = 0;
6220 wxIcon *arg1 = 0 ;
6221 wxBitmap *result = 0 ;
6222 void *argp1 = 0 ;
6223 int res1 = 0 ;
6224 PyObject * obj0 = 0 ;
6225 char * kwnames[] = {
6226 (char *) "icon", NULL
6227 };
6228
6229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
6230 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
6231 if (!SWIG_IsOK(res1)) {
6232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6233 }
6234 if (!argp1) {
6235 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6236 }
6237 arg1 = reinterpret_cast< wxIcon * >(argp1);
6238 {
6239 if (!wxPyCheckForApp()) SWIG_fail;
6240 PyThreadState* __tstate = wxPyBeginAllowThreads();
6241 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
6242 wxPyEndAllowThreads(__tstate);
6243 if (PyErr_Occurred()) SWIG_fail;
6244 }
6245 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6246 return resultobj;
6247fail:
6248 return NULL;
6249}
6250
6251
6252SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6253 PyObject *resultobj = 0;
6254 wxImage *arg1 = 0 ;
6255 int arg2 = (int) -1 ;
6256 wxBitmap *result = 0 ;
6257 void *argp1 = 0 ;
6258 int res1 = 0 ;
6259 int val2 ;
6260 int ecode2 = 0 ;
6261 PyObject * obj0 = 0 ;
6262 PyObject * obj1 = 0 ;
6263 char * kwnames[] = {
6264 (char *) "image",(char *) "depth", NULL
6265 };
6266
6267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6268 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6269 if (!SWIG_IsOK(res1)) {
6270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6271 }
6272 if (!argp1) {
6273 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6274 }
6275 arg1 = reinterpret_cast< wxImage * >(argp1);
6276 if (obj1) {
6277 ecode2 = SWIG_AsVal_int(obj1, &val2);
6278 if (!SWIG_IsOK(ecode2)) {
6279 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6280 }
6281 arg2 = static_cast< int >(val2);
6282 }
6283 {
6284 if (!wxPyCheckForApp()) SWIG_fail;
6285 PyThreadState* __tstate = wxPyBeginAllowThreads();
6286 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6287 wxPyEndAllowThreads(__tstate);
6288 if (PyErr_Occurred()) SWIG_fail;
6289 }
6290 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6291 return resultobj;
6292fail:
6293 return NULL;
d55e5bfc
RD
6294}
6295
6296
1bd55598
RD
6297SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6298 PyObject *resultobj = 0;
6299 PyObject *arg1 = (PyObject *) 0 ;
6300 wxBitmap *result = 0 ;
6301 PyObject * obj0 = 0 ;
6302 char * kwnames[] = {
6303 (char *) "listOfStrings", NULL
6304 };
6305
6306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6307 arg1 = obj0;
6308 {
6309 if (!wxPyCheckForApp()) SWIG_fail;
6310 PyThreadState* __tstate = wxPyBeginAllowThreads();
6311 result = (wxBitmap *)new_wxBitmap(arg1);
6312 wxPyEndAllowThreads(__tstate);
6313 if (PyErr_Occurred()) SWIG_fail;
6314 }
6315 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6316 return resultobj;
6317fail:
6318 return NULL;
6319}
6320
6321
6322SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6323 PyObject *resultobj = 0;
6324 PyObject *arg1 = (PyObject *) 0 ;
6325 int arg2 ;
6326 int arg3 ;
6327 int arg4 = (int) 1 ;
6328 wxBitmap *result = 0 ;
6329 int val2 ;
6330 int ecode2 = 0 ;
6331 int val3 ;
6332 int ecode3 = 0 ;
6333 int val4 ;
6334 int ecode4 = 0 ;
6335 PyObject * obj0 = 0 ;
6336 PyObject * obj1 = 0 ;
6337 PyObject * obj2 = 0 ;
6338 PyObject * obj3 = 0 ;
6339 char * kwnames[] = {
6340 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6341 };
6342
6343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6344 arg1 = obj0;
6345 ecode2 = SWIG_AsVal_int(obj1, &val2);
6346 if (!SWIG_IsOK(ecode2)) {
6347 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6348 }
6349 arg2 = static_cast< int >(val2);
6350 ecode3 = SWIG_AsVal_int(obj2, &val3);
6351 if (!SWIG_IsOK(ecode3)) {
6352 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6353 }
6354 arg3 = static_cast< int >(val3);
6355 if (obj3) {
6356 ecode4 = SWIG_AsVal_int(obj3, &val4);
6357 if (!SWIG_IsOK(ecode4)) {
6358 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6359 }
6360 arg4 = static_cast< int >(val4);
6361 }
6362 {
6363 if (!wxPyCheckForApp()) SWIG_fail;
6364 PyThreadState* __tstate = wxPyBeginAllowThreads();
6365 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6366 wxPyEndAllowThreads(__tstate);
6367 if (PyErr_Occurred()) SWIG_fail;
6368 }
6369 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6370 return resultobj;
6371fail:
6372 return NULL;
d55e5bfc
RD
6373}
6374
6375
b39fe951 6376SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
6377 PyObject *resultobj = 0;
6378 wxBitmap *arg1 = (wxBitmap *) 0 ;
6379 bool result;
6380 void *argp1 = 0 ;
6381 int res1 = 0 ;
6382 PyObject *swig_obj[1] ;
6383
6384 if (!args) SWIG_fail;
6385 swig_obj[0] = args;
6386 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6387 if (!SWIG_IsOK(res1)) {
b39fe951 6388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
1bd55598
RD
6389 }
6390 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6391 {
b39fe951 6392 result = (bool)(arg1)->IsOk();
1bd55598
RD
6393 if (PyErr_Occurred()) SWIG_fail;
6394 }
6395 {
6396 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6397 }
6398 return resultobj;
6399fail:
6400 return NULL;
d55e5bfc
RD
6401}
6402
6403
1bd55598
RD
6404SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6405 PyObject *resultobj = 0;
6406 wxBitmap *arg1 = (wxBitmap *) 0 ;
6407 int result;
6408 void *argp1 = 0 ;
6409 int res1 = 0 ;
6410 PyObject *swig_obj[1] ;
6411
6412 if (!args) SWIG_fail;
6413 swig_obj[0] = args;
6414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6415 if (!SWIG_IsOK(res1)) {
6416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6417 }
6418 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6419 {
1bd55598 6420 result = (int)(arg1)->GetWidth();
1bd55598
RD
6421 if (PyErr_Occurred()) SWIG_fail;
6422 }
6423 resultobj = SWIG_From_int(static_cast< int >(result));
6424 return resultobj;
6425fail:
6426 return NULL;
070c48b4
RD
6427}
6428
6429
1bd55598
RD
6430SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6431 PyObject *resultobj = 0;
6432 wxBitmap *arg1 = (wxBitmap *) 0 ;
6433 int result;
6434 void *argp1 = 0 ;
6435 int res1 = 0 ;
6436 PyObject *swig_obj[1] ;
6437
6438 if (!args) SWIG_fail;
6439 swig_obj[0] = args;
6440 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6441 if (!SWIG_IsOK(res1)) {
6442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6443 }
6444 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6445 {
1bd55598 6446 result = (int)(arg1)->GetHeight();
1bd55598
RD
6447 if (PyErr_Occurred()) SWIG_fail;
6448 }
6449 resultobj = SWIG_From_int(static_cast< int >(result));
6450 return resultobj;
6451fail:
6452 return NULL;
d55e5bfc
RD
6453}
6454
6455
1bd55598
RD
6456SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6457 PyObject *resultobj = 0;
6458 wxBitmap *arg1 = (wxBitmap *) 0 ;
6459 int result;
6460 void *argp1 = 0 ;
6461 int res1 = 0 ;
6462 PyObject *swig_obj[1] ;
6463
6464 if (!args) SWIG_fail;
6465 swig_obj[0] = args;
6466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6467 if (!SWIG_IsOK(res1)) {
6468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6469 }
6470 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6471 {
1bd55598 6472 result = (int)(arg1)->GetDepth();
1bd55598
RD
6473 if (PyErr_Occurred()) SWIG_fail;
6474 }
6475 resultobj = SWIG_From_int(static_cast< int >(result));
6476 return resultobj;
6477fail:
6478 return NULL;
d55e5bfc
RD
6479}
6480
6481
1bd55598
RD
6482SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6483 PyObject *resultobj = 0;
6484 wxBitmap *arg1 = (wxBitmap *) 0 ;
6485 wxSize result;
6486 void *argp1 = 0 ;
6487 int res1 = 0 ;
6488 PyObject *swig_obj[1] ;
6489
6490 if (!args) SWIG_fail;
6491 swig_obj[0] = args;
6492 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6493 if (!SWIG_IsOK(res1)) {
6494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6495 }
6496 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6497 {
1bd55598 6498 result = wxBitmap_GetSize(arg1);
1bd55598
RD
6499 if (PyErr_Occurred()) SWIG_fail;
6500 }
6501 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6502 return resultobj;
6503fail:
6504 return NULL;
d55e5bfc
RD
6505}
6506
6507
1bd55598
RD
6508SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6509 PyObject *resultobj = 0;
6510 wxBitmap *arg1 = (wxBitmap *) 0 ;
6511 SwigValueWrapper<wxImage > result;
6512 void *argp1 = 0 ;
6513 int res1 = 0 ;
6514 PyObject *swig_obj[1] ;
6515
6516 if (!args) SWIG_fail;
6517 swig_obj[0] = args;
6518 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6519 if (!SWIG_IsOK(res1)) {
6520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6521 }
6522 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6523 {
1bd55598 6524 result = ((wxBitmap const *)arg1)->ConvertToImage();
1bd55598
RD
6525 if (PyErr_Occurred()) SWIG_fail;
6526 }
6527 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6528 return resultobj;
6529fail:
6530 return NULL;
d55e5bfc
RD
6531}
6532
6533
1bd55598
RD
6534SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6535 PyObject *resultobj = 0;
6536 wxBitmap *arg1 = (wxBitmap *) 0 ;
6537 wxMask *result = 0 ;
6538 void *argp1 = 0 ;
6539 int res1 = 0 ;
6540 PyObject *swig_obj[1] ;
6541
6542 if (!args) SWIG_fail;
6543 swig_obj[0] = args;
6544 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6545 if (!SWIG_IsOK(res1)) {
6546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6547 }
6548 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6549 {
1bd55598 6550 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
1bd55598
RD
6551 if (PyErr_Occurred()) SWIG_fail;
6552 }
6553 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6554 return resultobj;
6555fail:
6556 return NULL;
6557}
6558
6559
6560SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6561 PyObject *resultobj = 0;
6562 wxBitmap *arg1 = (wxBitmap *) 0 ;
6563 wxMask *arg2 = (wxMask *) 0 ;
6564 void *argp1 = 0 ;
6565 int res1 = 0 ;
6566 int res2 = 0 ;
6567 PyObject * obj0 = 0 ;
6568 PyObject * obj1 = 0 ;
6569 char * kwnames[] = {
6570 (char *) "self",(char *) "mask", NULL
6571 };
6572
6573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6575 if (!SWIG_IsOK(res1)) {
6576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6577 }
6578 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6579 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6580 if (!SWIG_IsOK(res2)) {
6581 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6582 }
6583 {
1bd55598 6584 (arg1)->SetMask(arg2);
1bd55598
RD
6585 if (PyErr_Occurred()) SWIG_fail;
6586 }
6587 resultobj = SWIG_Py_Void();
6588 return resultobj;
6589fail:
6590 return NULL;
6591}
6592
6593
6594SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6595 PyObject *resultobj = 0;
6596 wxBitmap *arg1 = (wxBitmap *) 0 ;
6597 wxColour *arg2 = 0 ;
6598 void *argp1 = 0 ;
6599 int res1 = 0 ;
6600 wxColour temp2 ;
6601 PyObject * obj0 = 0 ;
6602 PyObject * obj1 = 0 ;
6603 char * kwnames[] = {
6604 (char *) "self",(char *) "colour", NULL
6605 };
6606
6607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6609 if (!SWIG_IsOK(res1)) {
6610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6611 }
6612 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6613 {
6614 arg2 = &temp2;
6615 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6616 }
6617 {
1bd55598 6618 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
1bd55598
RD
6619 if (PyErr_Occurred()) SWIG_fail;
6620 }
6621 resultobj = SWIG_Py_Void();
6622 return resultobj;
6623fail:
6624 return NULL;
6625}
6626
6627
6628SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6629 PyObject *resultobj = 0;
6630 wxBitmap *arg1 = (wxBitmap *) 0 ;
6631 wxRect *arg2 = 0 ;
6632 SwigValueWrapper<wxBitmap > result;
6633 void *argp1 = 0 ;
6634 int res1 = 0 ;
6635 wxRect temp2 ;
6636 PyObject * obj0 = 0 ;
6637 PyObject * obj1 = 0 ;
6638 char * kwnames[] = {
6639 (char *) "self",(char *) "rect", NULL
6640 };
6641
6642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6644 if (!SWIG_IsOK(res1)) {
6645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6646 }
6647 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6648 {
6649 arg2 = &temp2;
6650 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6651 }
6652 {
1bd55598 6653 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
1bd55598
RD
6654 if (PyErr_Occurred()) SWIG_fail;
6655 }
6656 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6657 return resultobj;
6658fail:
6659 return NULL;
6660}
6661
6662
6663SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6664 PyObject *resultobj = 0;
6665 wxBitmap *arg1 = (wxBitmap *) 0 ;
6666 wxString *arg2 = 0 ;
6667 wxBitmapType arg3 ;
6668 wxPalette *arg4 = (wxPalette *) NULL ;
6669 bool result;
6670 void *argp1 = 0 ;
6671 int res1 = 0 ;
6672 bool temp2 = false ;
6673 int val3 ;
6674 int ecode3 = 0 ;
6675 void *argp4 = 0 ;
6676 int res4 = 0 ;
6677 PyObject * obj0 = 0 ;
6678 PyObject * obj1 = 0 ;
6679 PyObject * obj2 = 0 ;
6680 PyObject * obj3 = 0 ;
6681 char * kwnames[] = {
6682 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6683 };
6684
6685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6687 if (!SWIG_IsOK(res1)) {
6688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6689 }
6690 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6691 {
6692 arg2 = wxString_in_helper(obj1);
6693 if (arg2 == NULL) SWIG_fail;
6694 temp2 = true;
6695 }
6696 ecode3 = SWIG_AsVal_int(obj2, &val3);
6697 if (!SWIG_IsOK(ecode3)) {
6698 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6699 }
6700 arg3 = static_cast< wxBitmapType >(val3);
6701 if (obj3) {
6702 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6703 if (!SWIG_IsOK(res4)) {
6704 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
d04418a7 6705 }
1bd55598
RD
6706 arg4 = reinterpret_cast< wxPalette * >(argp4);
6707 }
6708 {
1bd55598 6709 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
1bd55598
RD
6710 if (PyErr_Occurred()) SWIG_fail;
6711 }
6712 {
6713 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6714 }
6715 {
6716 if (temp2)
6717 delete arg2;
6718 }
6719 return resultobj;
6720fail:
6721 {
6722 if (temp2)
6723 delete arg2;
6724 }
6725 return NULL;
6726}
6727
6728
6729SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6730 PyObject *resultobj = 0;
6731 wxBitmap *arg1 = (wxBitmap *) 0 ;
6732 wxString *arg2 = 0 ;
6733 wxBitmapType arg3 ;
6734 bool result;
6735 void *argp1 = 0 ;
6736 int res1 = 0 ;
6737 bool temp2 = false ;
6738 int val3 ;
6739 int ecode3 = 0 ;
6740 PyObject * obj0 = 0 ;
6741 PyObject * obj1 = 0 ;
6742 PyObject * obj2 = 0 ;
6743 char * kwnames[] = {
6744 (char *) "self",(char *) "name",(char *) "type", NULL
6745 };
6746
6747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6749 if (!SWIG_IsOK(res1)) {
6750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6751 }
6752 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6753 {
6754 arg2 = wxString_in_helper(obj1);
6755 if (arg2 == NULL) SWIG_fail;
6756 temp2 = true;
6757 }
6758 ecode3 = SWIG_AsVal_int(obj2, &val3);
6759 if (!SWIG_IsOK(ecode3)) {
6760 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6761 }
6762 arg3 = static_cast< wxBitmapType >(val3);
6763 {
1bd55598 6764 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
1bd55598
RD
6765 if (PyErr_Occurred()) SWIG_fail;
6766 }
6767 {
6768 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6769 }
6770 {
6771 if (temp2)
6772 delete arg2;
6773 }
6774 return resultobj;
6775fail:
6776 {
6777 if (temp2)
6778 delete arg2;
6779 }
6780 return NULL;
d04418a7
RD
6781}
6782
6783
1bd55598
RD
6784SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6785 PyObject *resultobj = 0;
6786 wxBitmap *arg1 = (wxBitmap *) 0 ;
6787 wxPalette *result = 0 ;
6788 void *argp1 = 0 ;
6789 int res1 = 0 ;
6790 PyObject *swig_obj[1] ;
6791
6792 if (!args) SWIG_fail;
6793 swig_obj[0] = args;
6794 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6795 if (!SWIG_IsOK(res1)) {
6796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6797 }
6798 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6799 {
1bd55598 6800 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
1bd55598
RD
6801 if (PyErr_Occurred()) SWIG_fail;
6802 }
6803 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6804 return resultobj;
6805fail:
6806 return NULL;
6807}
6808
6809
6810SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6811 PyObject *resultobj = 0;
6812 wxBitmap *arg1 = (wxBitmap *) 0 ;
6813 wxIcon *arg2 = 0 ;
6814 bool result;
6815 void *argp1 = 0 ;
6816 int res1 = 0 ;
6817 void *argp2 = 0 ;
6818 int res2 = 0 ;
6819 PyObject * obj0 = 0 ;
6820 PyObject * obj1 = 0 ;
6821 char * kwnames[] = {
6822 (char *) "self",(char *) "icon", NULL
6823 };
6824
6825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6827 if (!SWIG_IsOK(res1)) {
6828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6829 }
6830 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6831 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6832 if (!SWIG_IsOK(res2)) {
6833 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6834 }
6835 if (!argp2) {
6836 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6837 }
6838 arg2 = reinterpret_cast< wxIcon * >(argp2);
6839 {
1bd55598 6840 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
1bd55598
RD
6841 if (PyErr_Occurred()) SWIG_fail;
6842 }
6843 {
6844 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6845 }
6846 return resultobj;
6847fail:
6848 return NULL;
6849}
6850
6851
6852SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6853 PyObject *resultobj = 0;
6854 wxBitmap *arg1 = (wxBitmap *) 0 ;
6855 int arg2 ;
6856 void *argp1 = 0 ;
6857 int res1 = 0 ;
6858 int val2 ;
6859 int ecode2 = 0 ;
6860 PyObject * obj0 = 0 ;
6861 PyObject * obj1 = 0 ;
6862 char * kwnames[] = {
6863 (char *) "self",(char *) "height", NULL
6864 };
6865
6866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6868 if (!SWIG_IsOK(res1)) {
6869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6870 }
6871 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6872 ecode2 = SWIG_AsVal_int(obj1, &val2);
6873 if (!SWIG_IsOK(ecode2)) {
6874 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6875 }
6876 arg2 = static_cast< int >(val2);
6877 {
1bd55598 6878 (arg1)->SetHeight(arg2);
1bd55598
RD
6879 if (PyErr_Occurred()) SWIG_fail;
6880 }
6881 resultobj = SWIG_Py_Void();
6882 return resultobj;
6883fail:
6884 return NULL;
6885}
6886
6887
6888SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6889 PyObject *resultobj = 0;
6890 wxBitmap *arg1 = (wxBitmap *) 0 ;
6891 int arg2 ;
6892 void *argp1 = 0 ;
6893 int res1 = 0 ;
6894 int val2 ;
6895 int ecode2 = 0 ;
6896 PyObject * obj0 = 0 ;
6897 PyObject * obj1 = 0 ;
6898 char * kwnames[] = {
6899 (char *) "self",(char *) "width", NULL
6900 };
6901
6902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6904 if (!SWIG_IsOK(res1)) {
6905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6906 }
6907 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6908 ecode2 = SWIG_AsVal_int(obj1, &val2);
6909 if (!SWIG_IsOK(ecode2)) {
6910 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6911 }
6912 arg2 = static_cast< int >(val2);
6913 {
1bd55598 6914 (arg1)->SetWidth(arg2);
1bd55598
RD
6915 if (PyErr_Occurred()) SWIG_fail;
6916 }
6917 resultobj = SWIG_Py_Void();
6918 return resultobj;
6919fail:
6920 return NULL;
6921}
6922
6923
6924SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6925 PyObject *resultobj = 0;
6926 wxBitmap *arg1 = (wxBitmap *) 0 ;
6927 int arg2 ;
6928 void *argp1 = 0 ;
6929 int res1 = 0 ;
6930 int val2 ;
6931 int ecode2 = 0 ;
6932 PyObject * obj0 = 0 ;
6933 PyObject * obj1 = 0 ;
6934 char * kwnames[] = {
6935 (char *) "self",(char *) "depth", NULL
6936 };
6937
6938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6940 if (!SWIG_IsOK(res1)) {
6941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6942 }
6943 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6944 ecode2 = SWIG_AsVal_int(obj1, &val2);
6945 if (!SWIG_IsOK(ecode2)) {
6946 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6947 }
6948 arg2 = static_cast< int >(val2);
6949 {
1bd55598 6950 (arg1)->SetDepth(arg2);
1bd55598
RD
6951 if (PyErr_Occurred()) SWIG_fail;
6952 }
6953 resultobj = SWIG_Py_Void();
6954 return resultobj;
6955fail:
6956 return NULL;
6957}
6958
6959
6960SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6961 PyObject *resultobj = 0;
6962 wxBitmap *arg1 = (wxBitmap *) 0 ;
6963 wxSize *arg2 = 0 ;
6964 void *argp1 = 0 ;
6965 int res1 = 0 ;
6966 wxSize temp2 ;
6967 PyObject * obj0 = 0 ;
6968 PyObject * obj1 = 0 ;
6969 char * kwnames[] = {
6970 (char *) "self",(char *) "size", NULL
6971 };
6972
6973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6975 if (!SWIG_IsOK(res1)) {
6976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6977 }
6978 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6979 {
6980 arg2 = &temp2;
6981 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6982 }
6983 {
1bd55598 6984 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
1bd55598
RD
6985 if (PyErr_Occurred()) SWIG_fail;
6986 }
6987 resultobj = SWIG_Py_Void();
6988 return resultobj;
6989fail:
6990 return NULL;
6991}
6992
6993
8f514ab4
RD
6994SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6995 PyObject *resultobj = 0;
6996 wxBitmap *arg1 = (wxBitmap *) 0 ;
6997 buffer arg2 ;
6998 int arg3 ;
6999 void *argp1 = 0 ;
7000 int res1 = 0 ;
7001 Py_ssize_t temp2 ;
7002 PyObject * obj0 = 0 ;
7003 PyObject * obj1 = 0 ;
7004 char * kwnames[] = {
7005 (char *) "self",(char *) "data", NULL
7006 };
7007
7008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBuffer",kwnames,&obj0,&obj1)) SWIG_fail;
7009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7010 if (!SWIG_IsOK(res1)) {
7011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBuffer" "', expected argument " "1"" of type '" "wxBitmap *""'");
7012 }
7013 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7014 {
7015 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7016 arg3 = (int)temp2;
7017 }
7018 {
7019 wxBitmap_CopyFromBuffer(arg1,arg2,arg3);
7020 if (PyErr_Occurred()) SWIG_fail;
7021 }
7022 resultobj = SWIG_Py_Void();
7023 return resultobj;
7024fail:
7025 return NULL;
7026}
7027
7028
7029SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7030 PyObject *resultobj = 0;
7031 wxBitmap *arg1 = (wxBitmap *) 0 ;
7032 buffer arg2 ;
7033 int arg3 ;
7034 void *argp1 = 0 ;
7035 int res1 = 0 ;
7036 Py_ssize_t temp2 ;
7037 PyObject * obj0 = 0 ;
7038 PyObject * obj1 = 0 ;
7039 char * kwnames[] = {
7040 (char *) "self",(char *) "data", NULL
7041 };
7042
7043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBufferRGBA",kwnames,&obj0,&obj1)) SWIG_fail;
7044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7045 if (!SWIG_IsOK(res1)) {
7046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBufferRGBA" "', expected argument " "1"" of type '" "wxBitmap *""'");
7047 }
7048 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7049 {
7050 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7051 arg3 = (int)temp2;
7052 }
7053 {
7054 wxBitmap_CopyFromBufferRGBA(arg1,arg2,arg3);
7055 if (PyErr_Occurred()) SWIG_fail;
7056 }
7057 resultobj = SWIG_Py_Void();
7058 return resultobj;
7059fail:
7060 return NULL;
7061}
7062
7063
1bd55598
RD
7064SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7065 PyObject *resultobj = 0;
7066 wxBitmap *arg1 = (wxBitmap *) 0 ;
7067 wxBitmap *arg2 = (wxBitmap *) 0 ;
7068 bool result;
7069 void *argp1 = 0 ;
7070 int res1 = 0 ;
7071 void *argp2 = 0 ;
7072 int res2 = 0 ;
7073 PyObject * obj0 = 0 ;
7074 PyObject * obj1 = 0 ;
7075 char * kwnames[] = {
7076 (char *) "self",(char *) "other", NULL
7077 };
7078
7079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
7080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7081 if (!SWIG_IsOK(res1)) {
7082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7083 }
7084 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7085 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7086 if (!SWIG_IsOK(res2)) {
7087 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7088 }
7089 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7090 {
1bd55598 7091 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
1bd55598
RD
7092 if (PyErr_Occurred()) SWIG_fail;
7093 }
7094 {
fc46b7f3
RD
7095 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7096 }
7097 return resultobj;
7098fail:
7099 return NULL;
7100}
7101
7102
7103SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7104 PyObject *resultobj = 0;
7105 wxBitmap *arg1 = (wxBitmap *) 0 ;
7106 wxBitmap *arg2 = (wxBitmap *) 0 ;
7107 bool result;
7108 void *argp1 = 0 ;
7109 int res1 = 0 ;
7110 void *argp2 = 0 ;
7111 int res2 = 0 ;
7112 PyObject * obj0 = 0 ;
7113 PyObject * obj1 = 0 ;
7114 char * kwnames[] = {
7115 (char *) "self",(char *) "other", NULL
7116 };
7117
7118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
7119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7120 if (!SWIG_IsOK(res1)) {
7121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7122 }
7123 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7124 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7125 if (!SWIG_IsOK(res2)) {
7126 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7127 }
7128 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7129 {
7130 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
7131 if (PyErr_Occurred()) SWIG_fail;
7132 }
7133 {
7134 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7135 }
7136 return resultobj;
7137fail:
7138 return NULL;
7139}
7140
7141
7142SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7143 PyObject *obj;
7144 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7145 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
7146 return SWIG_Py_Void();
7147}
7148
7149SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7150 return SWIG_Python_InitShadowInstance(args);
7151}
7152
7153SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7154 PyObject *resultobj = 0;
7155 int arg1 ;
7156 int arg2 ;
7157 buffer arg3 ;
7158 int arg4 ;
7159 buffer arg5 ;
7160 int arg6 ;
7161 wxBitmap *result = 0 ;
7162 int val1 ;
7163 int ecode1 = 0 ;
7164 int val2 ;
7165 int ecode2 = 0 ;
8c9c423b
RD
7166 Py_ssize_t temp3 ;
7167 Py_ssize_t temp5 ;
fc46b7f3
RD
7168 PyObject * obj0 = 0 ;
7169 PyObject * obj1 = 0 ;
7170 PyObject * obj2 = 0 ;
7171 PyObject * obj3 = 0 ;
7172 char * kwnames[] = {
7173 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
7174 };
7175
7176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7177 ecode1 = SWIG_AsVal_int(obj0, &val1);
7178 if (!SWIG_IsOK(ecode1)) {
7179 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
7180 }
7181 arg1 = static_cast< int >(val1);
7182 ecode2 = SWIG_AsVal_int(obj1, &val2);
7183 if (!SWIG_IsOK(ecode2)) {
7184 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
7185 }
7186 arg2 = static_cast< int >(val2);
7187 {
8c9c423b
RD
7188 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7189 arg4 = (int)temp3;
fc46b7f3
RD
7190 }
7191 {
7192 if (obj3 != Py_None) {
8c9c423b
RD
7193 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
7194 arg6 = (int)temp5;
fc46b7f3
RD
7195 }
7196 }
7197 {
7198 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
7199 if (PyErr_Occurred()) SWIG_fail;
7200 }
7201 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7202 return resultobj;
7203fail:
7204 return NULL;
7205}
7206
7207
7208SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7209 PyObject *resultobj = 0;
7210 int arg1 ;
7211 int arg2 ;
7212 buffer arg3 ;
7213 int arg4 ;
7214 wxBitmap *result = 0 ;
7215 int val1 ;
7216 int ecode1 = 0 ;
7217 int val2 ;
7218 int ecode2 = 0 ;
8c9c423b 7219 Py_ssize_t temp3 ;
fc46b7f3
RD
7220 PyObject * obj0 = 0 ;
7221 PyObject * obj1 = 0 ;
7222 PyObject * obj2 = 0 ;
7223 char * kwnames[] = {
7224 (char *) "width",(char *) "height",(char *) "data", NULL
7225 };
7226
7227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7228 ecode1 = SWIG_AsVal_int(obj0, &val1);
7229 if (!SWIG_IsOK(ecode1)) {
7230 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
7231 }
7232 arg1 = static_cast< int >(val1);
7233 ecode2 = SWIG_AsVal_int(obj1, &val2);
7234 if (!SWIG_IsOK(ecode2)) {
7235 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
7236 }
7237 arg2 = static_cast< int >(val2);
7238 {
8c9c423b
RD
7239 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7240 arg4 = (int)temp3;
fc46b7f3
RD
7241 }
7242 {
7243 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
7244 if (PyErr_Occurred()) SWIG_fail;
7245 }
7246 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7247 return resultobj;
7248fail:
7249 return NULL;
7250}
7251
7252
7253SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7254 PyObject *resultobj = 0;
7255 int arg1 ;
7256 int arg2 ;
7257 buffer arg3 ;
7258 int arg4 ;
7259 wxBitmap *result = 0 ;
7260 int val1 ;
7261 int ecode1 = 0 ;
7262 int val2 ;
7263 int ecode2 = 0 ;
8c9c423b 7264 Py_ssize_t temp3 ;
fc46b7f3
RD
7265 PyObject * obj0 = 0 ;
7266 PyObject * obj1 = 0 ;
7267 PyObject * obj2 = 0 ;
7268 char * kwnames[] = {
7269 (char *) "width",(char *) "height",(char *) "data", NULL
7270 };
7271
7272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7273 ecode1 = SWIG_AsVal_int(obj0, &val1);
7274 if (!SWIG_IsOK(ecode1)) {
7275 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
7276 }
7277 arg1 = static_cast< int >(val1);
7278 ecode2 = SWIG_AsVal_int(obj1, &val2);
7279 if (!SWIG_IsOK(ecode2)) {
7280 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
7281 }
7282 arg2 = static_cast< int >(val2);
7283 {
8c9c423b
RD
7284 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7285 arg4 = (int)temp3;
fc46b7f3
RD
7286 }
7287 {
7288 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
7289 if (PyErr_Occurred()) SWIG_fail;
7290 }
7291 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7292 return resultobj;
7293fail:
7294 return NULL;
7295}
7296
7297
7298SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7299 PyObject *resultobj = 0;
7300 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7301 wxPoint result;
7302 void *argp1 = 0 ;
7303 int res1 = 0 ;
7304 PyObject *swig_obj[1] ;
7305
7306 if (!args) SWIG_fail;
7307 swig_obj[0] = args;
7308 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7309 if (!SWIG_IsOK(res1)) {
7310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7311 }
7312 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7313 {
7314 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7315 if (PyErr_Occurred()) SWIG_fail;
7316 }
7317 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7318 return resultobj;
7319fail:
7320 return NULL;
7321}
7322
7323
7324SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7325 PyObject *resultobj = 0;
7326 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7327 int result;
7328 void *argp1 = 0 ;
7329 int res1 = 0 ;
7330 PyObject *swig_obj[1] ;
7331
7332 if (!args) SWIG_fail;
7333 swig_obj[0] = args;
7334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7335 if (!SWIG_IsOK(res1)) {
7336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7337 }
7338 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7339 {
7340 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7341 if (PyErr_Occurred()) SWIG_fail;
7342 }
7343 resultobj = SWIG_From_int(static_cast< int >(result));
7344 return resultobj;
7345fail:
7346 return NULL;
7347}
7348
7349
7350SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7351 PyObject *resultobj = 0;
7352 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7353 int result;
7354 void *argp1 = 0 ;
7355 int res1 = 0 ;
7356 PyObject *swig_obj[1] ;
7357
7358 if (!args) SWIG_fail;
7359 swig_obj[0] = args;
7360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7361 if (!SWIG_IsOK(res1)) {
7362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7363 }
7364 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7365 {
7366 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7367 if (PyErr_Occurred()) SWIG_fail;
7368 }
7369 resultobj = SWIG_From_int(static_cast< int >(result));
7370 return resultobj;
7371fail:
7372 return NULL;
7373}
7374
7375
7376SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7377 PyObject *resultobj = 0;
7378 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7379 wxSize result;
7380 void *argp1 = 0 ;
7381 int res1 = 0 ;
7382 PyObject *swig_obj[1] ;
7383
7384 if (!args) SWIG_fail;
7385 swig_obj[0] = args;
7386 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7387 if (!SWIG_IsOK(res1)) {
7388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7389 }
7390 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7391 {
7392 result = ((wxPixelDataBase const *)arg1)->GetSize();
7393 if (PyErr_Occurred()) SWIG_fail;
7394 }
7395 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7396 return resultobj;
7397fail:
7398 return NULL;
7399}
7400
7401
7402SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7403 PyObject *resultobj = 0;
7404 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7405 int result;
7406 void *argp1 = 0 ;
7407 int res1 = 0 ;
7408 PyObject *swig_obj[1] ;
7409
7410 if (!args) SWIG_fail;
7411 swig_obj[0] = args;
7412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7413 if (!SWIG_IsOK(res1)) {
7414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7415 }
7416 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7417 {
7418 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7419 if (PyErr_Occurred()) SWIG_fail;
7420 }
7421 resultobj = SWIG_From_int(static_cast< int >(result));
7422 return resultobj;
7423fail:
7424 return NULL;
7425}
7426
7427
7428SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7429 PyObject *obj;
7430 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7431 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7432 return SWIG_Py_Void();
7433}
7434
7435SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7436 PyObject *resultobj = 0;
7437 wxBitmap *arg1 = 0 ;
7438 wxNativePixelData *result = 0 ;
7439 void *argp1 = 0 ;
7440 int res1 = 0 ;
7441
7442 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7444 if (!SWIG_IsOK(res1)) {
7445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7446 }
7447 if (!argp1) {
7448 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7449 }
7450 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7451 {
7452 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7453 if (PyErr_Occurred()) SWIG_fail;
7454 }
7455 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7456 return resultobj;
7457fail:
7458 return NULL;
7459}
7460
7461
7462SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7463 PyObject *resultobj = 0;
7464 wxBitmap *arg1 = 0 ;
7465 wxRect *arg2 = 0 ;
7466 wxNativePixelData *result = 0 ;
7467 void *argp1 = 0 ;
7468 int res1 = 0 ;
7469 wxRect temp2 ;
7470
7471 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7472 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7473 if (!SWIG_IsOK(res1)) {
7474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7475 }
7476 if (!argp1) {
7477 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7478 }
7479 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7480 {
7481 arg2 = &temp2;
7482 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7483 }
7484 {
7485 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7486 if (PyErr_Occurred()) SWIG_fail;
7487 }
7488 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7489 return resultobj;
7490fail:
7491 return NULL;
7492}
7493
7494
7495SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7496 PyObject *resultobj = 0;
7497 wxBitmap *arg1 = 0 ;
7498 wxPoint *arg2 = 0 ;
7499 wxSize *arg3 = 0 ;
7500 wxNativePixelData *result = 0 ;
7501 void *argp1 = 0 ;
7502 int res1 = 0 ;
7503 wxPoint temp2 ;
7504 wxSize temp3 ;
7505
7506 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7508 if (!SWIG_IsOK(res1)) {
7509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7510 }
7511 if (!argp1) {
7512 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7513 }
7514 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7515 {
7516 arg2 = &temp2;
7517 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7518 }
7519 {
7520 arg3 = &temp3;
7521 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7522 }
7523 {
7524 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7525 if (PyErr_Occurred()) SWIG_fail;
7526 }
7527 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7528 return resultobj;
7529fail:
7530 return NULL;
7531}
7532
7533
7534SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7535 int argc;
7536 PyObject *argv[4];
7537
7538 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7539 --argc;
7540 if (argc == 1) {
7541 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7542 }
7543 if (argc == 2) {
7544 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7545 }
7546 if (argc == 3) {
7547 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7548 }
7549
7550fail:
7551 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7552 return NULL;
7553}
7554
7555
7556SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7557 PyObject *resultobj = 0;
7558 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7559 void *argp1 = 0 ;
7560 int res1 = 0 ;
7561 PyObject *swig_obj[1] ;
7562
7563 if (!args) SWIG_fail;
7564 swig_obj[0] = args;
7565 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7566 if (!SWIG_IsOK(res1)) {
7567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7568 }
7569 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7570 {
7571 delete arg1;
7572
7573 if (PyErr_Occurred()) SWIG_fail;
7574 }
7575 resultobj = SWIG_Py_Void();
7576 return resultobj;
7577fail:
7578 return NULL;
7579}
7580
7581
7582SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7583 PyObject *resultobj = 0;
7584 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7585 wxNativePixelData_Accessor result;
7586 void *argp1 = 0 ;
7587 int res1 = 0 ;
7588 PyObject *swig_obj[1] ;
7589
7590 if (!args) SWIG_fail;
7591 swig_obj[0] = args;
7592 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7593 if (!SWIG_IsOK(res1)) {
7594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7595 }
7596 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7597 {
7598 result = ((wxNativePixelData const *)arg1)->GetPixels();
7599 if (PyErr_Occurred()) SWIG_fail;
7600 }
7601 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7602 return resultobj;
7603fail:
7604 return NULL;
7605}
7606
7607
7608SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7609 PyObject *resultobj = 0;
7610 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7611 void *argp1 = 0 ;
7612 int res1 = 0 ;
7613 PyObject *swig_obj[1] ;
7614
7615 if (!args) SWIG_fail;
7616 swig_obj[0] = args;
7617 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7618 if (!SWIG_IsOK(res1)) {
7619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7620 }
7621 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7622 {
7623 (arg1)->UseAlpha();
7624 if (PyErr_Occurred()) SWIG_fail;
7625 }
7626 resultobj = SWIG_Py_Void();
7627 return resultobj;
7628fail:
7629 return NULL;
7630}
7631
7632
7633SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7634 PyObject *resultobj = 0;
7635 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7636 bool result;
7637 void *argp1 = 0 ;
7638 int res1 = 0 ;
7639 PyObject *swig_obj[1] ;
7640
7641 if (!args) SWIG_fail;
7642 swig_obj[0] = args;
7643 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7644 if (!SWIG_IsOK(res1)) {
7645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7646 }
7647 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7648 {
7649 result = (bool)wxNativePixelData___nonzero__(arg1);
7650 if (PyErr_Occurred()) SWIG_fail;
7651 }
7652 {
7653 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7654 }
7655 return resultobj;
7656fail:
7657 return NULL;
7658}
7659
7660
7661SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7662 PyObject *obj;
7663 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7664 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7665 return SWIG_Py_Void();
7666}
7667
7668SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7669 return SWIG_Python_InitShadowInstance(args);
7670}
7671
7672SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7673 PyObject *resultobj = 0;
7674 wxNativePixelData *arg1 = 0 ;
7675 wxNativePixelData_Accessor *result = 0 ;
7676 void *argp1 = 0 ;
7677 int res1 = 0 ;
7678
7679 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7680 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7681 if (!SWIG_IsOK(res1)) {
7682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7683 }
7684 if (!argp1) {
7685 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7686 }
7687 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7688 {
7689 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7690 if (PyErr_Occurred()) SWIG_fail;
7691 }
7692 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7693 return resultobj;
7694fail:
7695 return NULL;
7696}
7697
7698
7699SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7700 PyObject *resultobj = 0;
7701 wxBitmap *arg1 = 0 ;
7702 wxNativePixelData *arg2 = 0 ;
7703 wxNativePixelData_Accessor *result = 0 ;
7704 void *argp1 = 0 ;
7705 int res1 = 0 ;
7706 void *argp2 = 0 ;
7707 int res2 = 0 ;
7708
7709 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7710 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7711 if (!SWIG_IsOK(res1)) {
7712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7713 }
7714 if (!argp1) {
7715 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7716 }
7717 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7718 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7719 if (!SWIG_IsOK(res2)) {
7720 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7721 }
7722 if (!argp2) {
7723 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7724 }
7725 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7726 {
7727 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7728 if (PyErr_Occurred()) SWIG_fail;
7729 }
7730 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7731 return resultobj;
7732fail:
7733 return NULL;
7734}
7735
7736
7737SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7738 PyObject *resultobj = 0;
7739 wxNativePixelData_Accessor *result = 0 ;
7740
7741 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7742 {
7743 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7744 if (PyErr_Occurred()) SWIG_fail;
7745 }
7746 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7747 return resultobj;
7748fail:
7749 return NULL;
7750}
7751
7752
7753SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7754 int argc;
7755 PyObject *argv[3];
7756
7757 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7758 --argc;
7759 if (argc == 0) {
7760 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7761 }
7762 if (argc == 1) {
7763 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7764 }
7765 if (argc == 2) {
7766 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7767 }
7768
7769fail:
7770 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7771 return NULL;
7772}
7773
7774
7775SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7776 PyObject *resultobj = 0;
7777 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7778 void *argp1 = 0 ;
7779 int res1 = 0 ;
7780 PyObject *swig_obj[1] ;
7781
7782 if (!args) SWIG_fail;
7783 swig_obj[0] = args;
7784 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7785 if (!SWIG_IsOK(res1)) {
7786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7787 }
7788 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7789 {
7790 delete arg1;
7791
7792 if (PyErr_Occurred()) SWIG_fail;
7793 }
7794 resultobj = SWIG_Py_Void();
7795 return resultobj;
7796fail:
7797 return NULL;
7798}
7799
7800
7801SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7802 PyObject *resultobj = 0;
7803 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7804 wxNativePixelData *arg2 = 0 ;
7805 void *argp1 = 0 ;
7806 int res1 = 0 ;
7807 void *argp2 = 0 ;
7808 int res2 = 0 ;
7809 PyObject * obj0 = 0 ;
7810 PyObject * obj1 = 0 ;
7811 char * kwnames[] = {
7812 (char *) "self",(char *) "data", NULL
7813 };
7814
7815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7817 if (!SWIG_IsOK(res1)) {
7818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7819 }
7820 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7821 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7822 if (!SWIG_IsOK(res2)) {
7823 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7824 }
7825 if (!argp2) {
7826 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7827 }
7828 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7829 {
7830 (arg1)->Reset((wxNativePixelData const &)*arg2);
7831 if (PyErr_Occurred()) SWIG_fail;
7832 }
7833 resultobj = SWIG_Py_Void();
7834 return resultobj;
7835fail:
7836 return NULL;
7837}
7838
7839
7840SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7841 PyObject *resultobj = 0;
7842 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7843 bool result;
7844 void *argp1 = 0 ;
7845 int res1 = 0 ;
7846 PyObject *swig_obj[1] ;
7847
7848 if (!args) SWIG_fail;
7849 swig_obj[0] = args;
7850 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7851 if (!SWIG_IsOK(res1)) {
7852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7853 }
7854 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7855 {
7856 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7857 if (PyErr_Occurred()) SWIG_fail;
7858 }
7859 {
7860 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7861 }
7862 return resultobj;
7863fail:
7864 return NULL;
7865}
7866
7867
7868SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7869 PyObject *resultobj = 0;
7870 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7871 void *argp1 = 0 ;
7872 int res1 = 0 ;
7873 PyObject *swig_obj[1] ;
7874
7875 if (!args) SWIG_fail;
7876 swig_obj[0] = args;
7877 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7878 if (!SWIG_IsOK(res1)) {
7879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7880 }
7881 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7882 {
7883 wxNativePixelData_Accessor_nextPixel(arg1);
7884 if (PyErr_Occurred()) SWIG_fail;
7885 }
7886 resultobj = SWIG_Py_Void();
7887 return resultobj;
7888fail:
7889 return NULL;
7890}
7891
7892
7893SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7894 PyObject *resultobj = 0;
7895 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7896 wxNativePixelData *arg2 = 0 ;
7897 int arg3 ;
7898 int arg4 ;
7899 void *argp1 = 0 ;
7900 int res1 = 0 ;
7901 void *argp2 = 0 ;
7902 int res2 = 0 ;
7903 int val3 ;
7904 int ecode3 = 0 ;
7905 int val4 ;
7906 int ecode4 = 0 ;
7907 PyObject * obj0 = 0 ;
7908 PyObject * obj1 = 0 ;
7909 PyObject * obj2 = 0 ;
7910 PyObject * obj3 = 0 ;
7911 char * kwnames[] = {
7912 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7913 };
7914
7915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7917 if (!SWIG_IsOK(res1)) {
7918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7919 }
7920 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7921 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7922 if (!SWIG_IsOK(res2)) {
7923 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7924 }
7925 if (!argp2) {
7926 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7927 }
7928 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7929 ecode3 = SWIG_AsVal_int(obj2, &val3);
7930 if (!SWIG_IsOK(ecode3)) {
7931 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7932 }
7933 arg3 = static_cast< int >(val3);
7934 ecode4 = SWIG_AsVal_int(obj3, &val4);
7935 if (!SWIG_IsOK(ecode4)) {
7936 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7937 }
7938 arg4 = static_cast< int >(val4);
7939 {
7940 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7941 if (PyErr_Occurred()) SWIG_fail;
7942 }
7943 resultobj = SWIG_Py_Void();
7944 return resultobj;
7945fail:
7946 return NULL;
7947}
7948
7949
7950SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7951 PyObject *resultobj = 0;
7952 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7953 wxNativePixelData *arg2 = 0 ;
7954 int arg3 ;
7955 void *argp1 = 0 ;
7956 int res1 = 0 ;
7957 void *argp2 = 0 ;
7958 int res2 = 0 ;
7959 int val3 ;
7960 int ecode3 = 0 ;
7961 PyObject * obj0 = 0 ;
7962 PyObject * obj1 = 0 ;
7963 PyObject * obj2 = 0 ;
7964 char * kwnames[] = {
7965 (char *) "self",(char *) "data",(char *) "x", NULL
7966 };
7967
7968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7970 if (!SWIG_IsOK(res1)) {
7971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7972 }
7973 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7974 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7975 if (!SWIG_IsOK(res2)) {
7976 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7977 }
7978 if (!argp2) {
7979 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7980 }
7981 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7982 ecode3 = SWIG_AsVal_int(obj2, &val3);
7983 if (!SWIG_IsOK(ecode3)) {
7984 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7985 }
7986 arg3 = static_cast< int >(val3);
7987 {
7988 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
7989 if (PyErr_Occurred()) SWIG_fail;
7990 }
7991 resultobj = SWIG_Py_Void();
7992 return resultobj;
7993fail:
7994 return NULL;
7995}
7996
7997
7998SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7999 PyObject *resultobj = 0;
8000 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8001 wxNativePixelData *arg2 = 0 ;
8002 int arg3 ;
8003 void *argp1 = 0 ;
8004 int res1 = 0 ;
8005 void *argp2 = 0 ;
8006 int res2 = 0 ;
8007 int val3 ;
8008 int ecode3 = 0 ;
8009 PyObject * obj0 = 0 ;
8010 PyObject * obj1 = 0 ;
8011 PyObject * obj2 = 0 ;
8012 char * kwnames[] = {
8013 (char *) "self",(char *) "data",(char *) "y", NULL
8014 };
8015
8016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8018 if (!SWIG_IsOK(res1)) {
8019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8020 }
8021 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8022 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8023 if (!SWIG_IsOK(res2)) {
8024 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8025 }
8026 if (!argp2) {
8027 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8028 }
8029 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8030 ecode3 = SWIG_AsVal_int(obj2, &val3);
8031 if (!SWIG_IsOK(ecode3)) {
8032 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8033 }
8034 arg3 = static_cast< int >(val3);
8035 {
8036 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
8037 if (PyErr_Occurred()) SWIG_fail;
8038 }
8039 resultobj = SWIG_Py_Void();
8040 return resultobj;
8041fail:
8042 return NULL;
8043}
8044
8045
8046SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8047 PyObject *resultobj = 0;
8048 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8049 wxNativePixelData *arg2 = 0 ;
8050 int arg3 ;
8051 int arg4 ;
8052 void *argp1 = 0 ;
8053 int res1 = 0 ;
8054 void *argp2 = 0 ;
8055 int res2 = 0 ;
8056 int val3 ;
8057 int ecode3 = 0 ;
8058 int val4 ;
8059 int ecode4 = 0 ;
8060 PyObject * obj0 = 0 ;
8061 PyObject * obj1 = 0 ;
8062 PyObject * obj2 = 0 ;
8063 PyObject * obj3 = 0 ;
8064 char * kwnames[] = {
8065 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8066 };
8067
8068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8070 if (!SWIG_IsOK(res1)) {
8071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8072 }
8073 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8074 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8075 if (!SWIG_IsOK(res2)) {
8076 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8077 }
8078 if (!argp2) {
8079 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8080 }
8081 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8082 ecode3 = SWIG_AsVal_int(obj2, &val3);
8083 if (!SWIG_IsOK(ecode3)) {
8084 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8085 }
8086 arg3 = static_cast< int >(val3);
8087 ecode4 = SWIG_AsVal_int(obj3, &val4);
8088 if (!SWIG_IsOK(ecode4)) {
8089 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8090 }
8091 arg4 = static_cast< int >(val4);
8092 {
8093 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
8094 if (PyErr_Occurred()) SWIG_fail;
8095 }
8096 resultobj = SWIG_Py_Void();
8097 return resultobj;
8098fail:
8099 return NULL;
8100}
8101
8102
8103SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8104 PyObject *resultobj = 0;
8105 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8106 byte arg2 ;
8107 byte arg3 ;
8108 byte arg4 ;
8109 void *argp1 = 0 ;
8110 int res1 = 0 ;
8111 unsigned char val2 ;
8112 int ecode2 = 0 ;
8113 unsigned char val3 ;
8114 int ecode3 = 0 ;
8115 unsigned char val4 ;
8116 int ecode4 = 0 ;
8117 PyObject * obj0 = 0 ;
8118 PyObject * obj1 = 0 ;
8119 PyObject * obj2 = 0 ;
8120 PyObject * obj3 = 0 ;
8121 char * kwnames[] = {
8122 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
8123 };
8124
8125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8127 if (!SWIG_IsOK(res1)) {
8128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8129 }
8130 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8131 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8132 if (!SWIG_IsOK(ecode2)) {
8133 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8134 }
8135 arg2 = static_cast< byte >(val2);
8136 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8137 if (!SWIG_IsOK(ecode3)) {
8138 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8139 }
8140 arg3 = static_cast< byte >(val3);
8141 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8142 if (!SWIG_IsOK(ecode4)) {
8143 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8144 }
8145 arg4 = static_cast< byte >(val4);
8146 {
8147 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
8148 if (PyErr_Occurred()) SWIG_fail;
8149 }
8150 resultobj = SWIG_Py_Void();
8151 return resultobj;
8152fail:
8153 return NULL;
8154}
8155
8156
8157SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8158 PyObject *resultobj = 0;
8159 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8160 PyObject *result = 0 ;
8161 void *argp1 = 0 ;
8162 int res1 = 0 ;
8163 PyObject *swig_obj[1] ;
8164
8165 if (!args) SWIG_fail;
8166 swig_obj[0] = args;
8167 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8168 if (!SWIG_IsOK(res1)) {
8169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8170 }
8171 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8172 {
8173 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
8174 if (PyErr_Occurred()) SWIG_fail;
8175 }
8176 resultobj = result;
8177 return resultobj;
8178fail:
8179 return NULL;
8180}
8181
8182
8183SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8184 PyObject *obj;
8185 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8186 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
8187 return SWIG_Py_Void();
8188}
8189
8190SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8191 return SWIG_Python_InitShadowInstance(args);
8192}
8193
8194SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8195 PyObject *resultobj = 0;
8196 wxBitmap *arg1 = 0 ;
8197 wxAlphaPixelData *result = 0 ;
8198 void *argp1 = 0 ;
8199 int res1 = 0 ;
8200
8201 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8203 if (!SWIG_IsOK(res1)) {
8204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8205 }
8206 if (!argp1) {
8207 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8208 }
8209 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8210 {
8211 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
8212 if (PyErr_Occurred()) SWIG_fail;
8213 }
8214 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8215 return resultobj;
8216fail:
8217 return NULL;
8218}
8219
8220
8221SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8222 PyObject *resultobj = 0;
8223 wxBitmap *arg1 = 0 ;
8224 wxRect *arg2 = 0 ;
8225 wxAlphaPixelData *result = 0 ;
8226 void *argp1 = 0 ;
8227 int res1 = 0 ;
8228 wxRect temp2 ;
8229
8230 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8232 if (!SWIG_IsOK(res1)) {
8233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8234 }
8235 if (!argp1) {
8236 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8237 }
8238 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8239 {
8240 arg2 = &temp2;
8241 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
8242 }
8243 {
8244 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
8245 if (PyErr_Occurred()) SWIG_fail;
8246 }
8247 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8248 return resultobj;
8249fail:
8250 return NULL;
8251}
8252
8253
8254SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8255 PyObject *resultobj = 0;
8256 wxBitmap *arg1 = 0 ;
8257 wxPoint *arg2 = 0 ;
8258 wxSize *arg3 = 0 ;
8259 wxAlphaPixelData *result = 0 ;
8260 void *argp1 = 0 ;
8261 int res1 = 0 ;
8262 wxPoint temp2 ;
8263 wxSize temp3 ;
8264
8265 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8266 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8267 if (!SWIG_IsOK(res1)) {
8268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8269 }
8270 if (!argp1) {
8271 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8272 }
8273 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8274 {
8275 arg2 = &temp2;
8276 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
8277 }
8278 {
8279 arg3 = &temp3;
8280 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
8281 }
8282 {
8283 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
8284 if (PyErr_Occurred()) SWIG_fail;
8285 }
8286 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8287 return resultobj;
8288fail:
8289 return NULL;
8290}
8291
8292
8293SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
8294 int argc;
8295 PyObject *argv[4];
8296
8297 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
8298 --argc;
8299 if (argc == 1) {
8300 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
8301 }
8302 if (argc == 2) {
8303 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8304 }
8305 if (argc == 3) {
8306 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8307 }
8308
8309fail:
8310 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8311 return NULL;
8312}
8313
8314
8315SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8316 PyObject *resultobj = 0;
8317 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8318 void *argp1 = 0 ;
8319 int res1 = 0 ;
8320 PyObject *swig_obj[1] ;
8321
8322 if (!args) SWIG_fail;
8323 swig_obj[0] = args;
8324 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8325 if (!SWIG_IsOK(res1)) {
8326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8327 }
8328 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8329 {
8330 delete arg1;
8331
8332 if (PyErr_Occurred()) SWIG_fail;
8333 }
8334 resultobj = SWIG_Py_Void();
8335 return resultobj;
8336fail:
8337 return NULL;
8338}
8339
8340
8341SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8342 PyObject *resultobj = 0;
8343 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8344 wxAlphaPixelData_Accessor result;
8345 void *argp1 = 0 ;
8346 int res1 = 0 ;
8347 PyObject *swig_obj[1] ;
8348
8349 if (!args) SWIG_fail;
8350 swig_obj[0] = args;
8351 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8352 if (!SWIG_IsOK(res1)) {
8353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8354 }
8355 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8356 {
8357 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8358 if (PyErr_Occurred()) SWIG_fail;
8359 }
8360 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8361 return resultobj;
8362fail:
8363 return NULL;
8364}
8365
8366
8367SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8368 PyObject *resultobj = 0;
8369 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8370 void *argp1 = 0 ;
8371 int res1 = 0 ;
8372 PyObject *swig_obj[1] ;
8373
8374 if (!args) SWIG_fail;
8375 swig_obj[0] = args;
8376 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8377 if (!SWIG_IsOK(res1)) {
8378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8379 }
8380 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8381 {
8382 (arg1)->UseAlpha();
8383 if (PyErr_Occurred()) SWIG_fail;
8384 }
8385 resultobj = SWIG_Py_Void();
8386 return resultobj;
8387fail:
8388 return NULL;
8389}
8390
8391
8392SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8393 PyObject *resultobj = 0;
8394 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8395 bool result;
8396 void *argp1 = 0 ;
8397 int res1 = 0 ;
8398 PyObject *swig_obj[1] ;
8399
8400 if (!args) SWIG_fail;
8401 swig_obj[0] = args;
8402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8403 if (!SWIG_IsOK(res1)) {
8404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8405 }
8406 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8407 {
8408 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8409 if (PyErr_Occurred()) SWIG_fail;
8410 }
8411 {
8412 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8413 }
8414 return resultobj;
8415fail:
8416 return NULL;
8417}
8418
8419
8420SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8421 PyObject *obj;
8422 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8423 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8424 return SWIG_Py_Void();
8425}
8426
8427SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8428 return SWIG_Python_InitShadowInstance(args);
8429}
8430
8431SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8432 PyObject *resultobj = 0;
8433 wxAlphaPixelData *arg1 = 0 ;
8434 wxAlphaPixelData_Accessor *result = 0 ;
8435 void *argp1 = 0 ;
8436 int res1 = 0 ;
8437
8438 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8440 if (!SWIG_IsOK(res1)) {
8441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8442 }
8443 if (!argp1) {
8444 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8445 }
8446 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8447 {
8448 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8449 if (PyErr_Occurred()) SWIG_fail;
8450 }
8451 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8452 return resultobj;
8453fail:
8454 return NULL;
8455}
8456
8457
8458SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8459 PyObject *resultobj = 0;
8460 wxBitmap *arg1 = 0 ;
8461 wxAlphaPixelData *arg2 = 0 ;
8462 wxAlphaPixelData_Accessor *result = 0 ;
8463 void *argp1 = 0 ;
8464 int res1 = 0 ;
8465 void *argp2 = 0 ;
8466 int res2 = 0 ;
8467
8468 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8469 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8470 if (!SWIG_IsOK(res1)) {
8471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8472 }
8473 if (!argp1) {
8474 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8475 }
8476 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8477 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8478 if (!SWIG_IsOK(res2)) {
8479 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8480 }
8481 if (!argp2) {
8482 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8483 }
8484 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8485 {
8486 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8487 if (PyErr_Occurred()) SWIG_fail;
8488 }
8489 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8490 return resultobj;
8491fail:
8492 return NULL;
8493}
8494
8495
8496SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8497 PyObject *resultobj = 0;
8498 wxAlphaPixelData_Accessor *result = 0 ;
8499
8500 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8501 {
8502 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8503 if (PyErr_Occurred()) SWIG_fail;
8504 }
8505 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8506 return resultobj;
8507fail:
8508 return NULL;
8509}
8510
8511
8512SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8513 int argc;
8514 PyObject *argv[3];
8515
8516 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8517 --argc;
8518 if (argc == 0) {
8519 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8520 }
8521 if (argc == 1) {
8522 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8523 }
8524 if (argc == 2) {
8525 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8526 }
8527
8528fail:
8529 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8530 return NULL;
8531}
8532
8533
8534SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8535 PyObject *resultobj = 0;
8536 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8537 void *argp1 = 0 ;
8538 int res1 = 0 ;
8539 PyObject *swig_obj[1] ;
8540
8541 if (!args) SWIG_fail;
8542 swig_obj[0] = args;
8543 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8544 if (!SWIG_IsOK(res1)) {
8545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8546 }
8547 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8548 {
8549 delete arg1;
8550
8551 if (PyErr_Occurred()) SWIG_fail;
8552 }
8553 resultobj = SWIG_Py_Void();
8554 return resultobj;
8555fail:
8556 return NULL;
8557}
8558
8559
8560SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8561 PyObject *resultobj = 0;
8562 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8563 wxAlphaPixelData *arg2 = 0 ;
8564 void *argp1 = 0 ;
8565 int res1 = 0 ;
8566 void *argp2 = 0 ;
8567 int res2 = 0 ;
8568 PyObject * obj0 = 0 ;
8569 PyObject * obj1 = 0 ;
8570 char * kwnames[] = {
8571 (char *) "self",(char *) "data", NULL
8572 };
8573
8574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8576 if (!SWIG_IsOK(res1)) {
8577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8578 }
8579 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8580 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8581 if (!SWIG_IsOK(res2)) {
8582 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8583 }
8584 if (!argp2) {
8585 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8586 }
8587 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8588 {
8589 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8590 if (PyErr_Occurred()) SWIG_fail;
8591 }
8592 resultobj = SWIG_Py_Void();
8593 return resultobj;
8594fail:
8595 return NULL;
8596}
8597
8598
8599SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8600 PyObject *resultobj = 0;
8601 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8602 bool result;
8603 void *argp1 = 0 ;
8604 int res1 = 0 ;
8605 PyObject *swig_obj[1] ;
8606
8607 if (!args) SWIG_fail;
8608 swig_obj[0] = args;
8609 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8610 if (!SWIG_IsOK(res1)) {
8611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8612 }
8613 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8614 {
8615 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8616 if (PyErr_Occurred()) SWIG_fail;
8617 }
8618 {
8619 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8620 }
8621 return resultobj;
8622fail:
8623 return NULL;
8624}
8625
8626
8627SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8628 PyObject *resultobj = 0;
8629 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8630 void *argp1 = 0 ;
8631 int res1 = 0 ;
8632 PyObject *swig_obj[1] ;
8633
8634 if (!args) SWIG_fail;
8635 swig_obj[0] = args;
8636 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8637 if (!SWIG_IsOK(res1)) {
8638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8639 }
8640 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8641 {
8642 wxAlphaPixelData_Accessor_nextPixel(arg1);
8643 if (PyErr_Occurred()) SWIG_fail;
8644 }
8645 resultobj = SWIG_Py_Void();
8646 return resultobj;
8647fail:
8648 return NULL;
8649}
8650
8651
8652SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8653 PyObject *resultobj = 0;
8654 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8655 wxAlphaPixelData *arg2 = 0 ;
8656 int arg3 ;
8657 int arg4 ;
8658 void *argp1 = 0 ;
8659 int res1 = 0 ;
8660 void *argp2 = 0 ;
8661 int res2 = 0 ;
8662 int val3 ;
8663 int ecode3 = 0 ;
8664 int val4 ;
8665 int ecode4 = 0 ;
8666 PyObject * obj0 = 0 ;
8667 PyObject * obj1 = 0 ;
8668 PyObject * obj2 = 0 ;
8669 PyObject * obj3 = 0 ;
8670 char * kwnames[] = {
8671 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8672 };
8673
8674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8676 if (!SWIG_IsOK(res1)) {
8677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8678 }
8679 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8680 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8681 if (!SWIG_IsOK(res2)) {
8682 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8683 }
8684 if (!argp2) {
8685 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8686 }
8687 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8688 ecode3 = SWIG_AsVal_int(obj2, &val3);
8689 if (!SWIG_IsOK(ecode3)) {
8690 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8691 }
8692 arg3 = static_cast< int >(val3);
8693 ecode4 = SWIG_AsVal_int(obj3, &val4);
8694 if (!SWIG_IsOK(ecode4)) {
8695 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8696 }
8697 arg4 = static_cast< int >(val4);
8698 {
8699 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8700 if (PyErr_Occurred()) SWIG_fail;
8701 }
8702 resultobj = SWIG_Py_Void();
8703 return resultobj;
8704fail:
8705 return NULL;
8706}
8707
8708
8709SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8710 PyObject *resultobj = 0;
8711 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8712 wxAlphaPixelData *arg2 = 0 ;
8713 int arg3 ;
8714 void *argp1 = 0 ;
8715 int res1 = 0 ;
8716 void *argp2 = 0 ;
8717 int res2 = 0 ;
8718 int val3 ;
8719 int ecode3 = 0 ;
8720 PyObject * obj0 = 0 ;
8721 PyObject * obj1 = 0 ;
8722 PyObject * obj2 = 0 ;
8723 char * kwnames[] = {
8724 (char *) "self",(char *) "data",(char *) "x", NULL
8725 };
8726
8727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8729 if (!SWIG_IsOK(res1)) {
8730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8731 }
8732 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8733 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8734 if (!SWIG_IsOK(res2)) {
8735 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8736 }
8737 if (!argp2) {
8738 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8739 }
8740 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8741 ecode3 = SWIG_AsVal_int(obj2, &val3);
8742 if (!SWIG_IsOK(ecode3)) {
8743 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8744 }
8745 arg3 = static_cast< int >(val3);
8746 {
8747 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8748 if (PyErr_Occurred()) SWIG_fail;
8749 }
8750 resultobj = SWIG_Py_Void();
8751 return resultobj;
8752fail:
8753 return NULL;
8754}
8755
8756
8757SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8758 PyObject *resultobj = 0;
8759 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8760 wxAlphaPixelData *arg2 = 0 ;
8761 int arg3 ;
8762 void *argp1 = 0 ;
8763 int res1 = 0 ;
8764 void *argp2 = 0 ;
8765 int res2 = 0 ;
8766 int val3 ;
8767 int ecode3 = 0 ;
8768 PyObject * obj0 = 0 ;
8769 PyObject * obj1 = 0 ;
8770 PyObject * obj2 = 0 ;
8771 char * kwnames[] = {
8772 (char *) "self",(char *) "data",(char *) "y", NULL
8773 };
8774
8775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8777 if (!SWIG_IsOK(res1)) {
8778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8779 }
8780 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8781 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8782 if (!SWIG_IsOK(res2)) {
8783 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8784 }
8785 if (!argp2) {
8786 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8787 }
8788 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8789 ecode3 = SWIG_AsVal_int(obj2, &val3);
8790 if (!SWIG_IsOK(ecode3)) {
8791 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8792 }
8793 arg3 = static_cast< int >(val3);
8794 {
8795 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8796 if (PyErr_Occurred()) SWIG_fail;
8797 }
8798 resultobj = SWIG_Py_Void();
8799 return resultobj;
8800fail:
8801 return NULL;
8802}
8803
8804
8805SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8806 PyObject *resultobj = 0;
8807 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8808 wxAlphaPixelData *arg2 = 0 ;
8809 int arg3 ;
8810 int arg4 ;
8811 void *argp1 = 0 ;
8812 int res1 = 0 ;
8813 void *argp2 = 0 ;
8814 int res2 = 0 ;
8815 int val3 ;
8816 int ecode3 = 0 ;
8817 int val4 ;
8818 int ecode4 = 0 ;
8819 PyObject * obj0 = 0 ;
8820 PyObject * obj1 = 0 ;
8821 PyObject * obj2 = 0 ;
8822 PyObject * obj3 = 0 ;
8823 char * kwnames[] = {
8824 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8825 };
8826
8827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8829 if (!SWIG_IsOK(res1)) {
8830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8831 }
8832 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8833 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8834 if (!SWIG_IsOK(res2)) {
8835 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8836 }
8837 if (!argp2) {
8838 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8839 }
8840 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8841 ecode3 = SWIG_AsVal_int(obj2, &val3);
8842 if (!SWIG_IsOK(ecode3)) {
8843 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8844 }
8845 arg3 = static_cast< int >(val3);
8846 ecode4 = SWIG_AsVal_int(obj3, &val4);
8847 if (!SWIG_IsOK(ecode4)) {
8848 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8849 }
8850 arg4 = static_cast< int >(val4);
8851 {
8852 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8853 if (PyErr_Occurred()) SWIG_fail;
8854 }
8855 resultobj = SWIG_Py_Void();
8856 return resultobj;
8857fail:
8858 return NULL;
8859}
8860
8861
8862SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8863 PyObject *resultobj = 0;
8864 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8865 byte arg2 ;
8866 byte arg3 ;
8867 byte arg4 ;
8868 byte arg5 ;
8869 void *argp1 = 0 ;
8870 int res1 = 0 ;
8871 unsigned char val2 ;
8872 int ecode2 = 0 ;
8873 unsigned char val3 ;
8874 int ecode3 = 0 ;
8875 unsigned char val4 ;
8876 int ecode4 = 0 ;
8877 unsigned char val5 ;
8878 int ecode5 = 0 ;
8879 PyObject * obj0 = 0 ;
8880 PyObject * obj1 = 0 ;
8881 PyObject * obj2 = 0 ;
8882 PyObject * obj3 = 0 ;
8883 PyObject * obj4 = 0 ;
8884 char * kwnames[] = {
8885 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8886 };
8887
8888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8890 if (!SWIG_IsOK(res1)) {
8891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8892 }
8893 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8894 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8895 if (!SWIG_IsOK(ecode2)) {
8896 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8897 }
8898 arg2 = static_cast< byte >(val2);
8899 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8900 if (!SWIG_IsOK(ecode3)) {
8901 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8902 }
8903 arg3 = static_cast< byte >(val3);
8904 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8905 if (!SWIG_IsOK(ecode4)) {
8906 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8907 }
8908 arg4 = static_cast< byte >(val4);
8909 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8910 if (!SWIG_IsOK(ecode5)) {
8911 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8912 }
8913 arg5 = static_cast< byte >(val5);
8914 {
8915 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8916 if (PyErr_Occurred()) SWIG_fail;
1bd55598 8917 }
fc46b7f3 8918 resultobj = SWIG_Py_Void();
1bd55598
RD
8919 return resultobj;
8920fail:
8921 return NULL;
8922}
8923
8924
fc46b7f3 8925SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 8926 PyObject *resultobj = 0;
fc46b7f3
RD
8927 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8928 PyObject *result = 0 ;
1bd55598
RD
8929 void *argp1 = 0 ;
8930 int res1 = 0 ;
fc46b7f3 8931 PyObject *swig_obj[1] ;
1bd55598 8932
fc46b7f3
RD
8933 if (!args) SWIG_fail;
8934 swig_obj[0] = args;
8935 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
1bd55598 8936 if (!SWIG_IsOK(res1)) {
fc46b7f3 8937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
1bd55598 8938 }
fc46b7f3 8939 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
1bd55598 8940 {
fc46b7f3 8941 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
1bd55598
RD
8942 if (PyErr_Occurred()) SWIG_fail;
8943 }
fc46b7f3 8944 resultobj = result;
1bd55598
RD
8945 return resultobj;
8946fail:
8947 return NULL;
d55e5bfc
RD
8948}
8949
8950
fc46b7f3 8951SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
8952 PyObject *obj;
8953 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 8954 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
1bd55598 8955 return SWIG_Py_Void();
d55e5bfc
RD
8956}
8957
fc46b7f3 8958SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 8959 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
8960}
8961
1bd55598
RD
8962SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8963 PyObject *resultobj = 0;
8964 wxBitmap *arg1 = 0 ;
8965 wxColour const &arg2_defvalue = wxNullColour ;
8966 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8967 wxMask *result = 0 ;
8968 void *argp1 = 0 ;
8969 int res1 = 0 ;
8970 wxColour temp2 ;
8971 PyObject * obj0 = 0 ;
8972 PyObject * obj1 = 0 ;
8973 char * kwnames[] = {
8974 (char *) "bitmap",(char *) "colour", NULL
8975 };
8976
8977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8978 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8979 if (!SWIG_IsOK(res1)) {
8980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8981 }
8982 if (!argp1) {
8983 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8984 }
8985 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8986 if (obj1) {
d55e5bfc 8987 {
1bd55598
RD
8988 arg2 = &temp2;
8989 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 8990 }
1bd55598
RD
8991 }
8992 {
8993 if (!wxPyCheckForApp()) SWIG_fail;
8994 PyThreadState* __tstate = wxPyBeginAllowThreads();
8995 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
8996 wxPyEndAllowThreads(__tstate);
8997 if (PyErr_Occurred()) SWIG_fail;
8998 }
8999 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
9000 return resultobj;
9001fail:
9002 return NULL;
d55e5bfc
RD
9003}
9004
9005
1bd55598
RD
9006SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9007 PyObject *resultobj = 0;
9008 wxMask *arg1 = (wxMask *) 0 ;
9009 void *argp1 = 0 ;
9010 int res1 = 0 ;
9011 PyObject *swig_obj[1] ;
9012
9013 if (!args) SWIG_fail;
9014 swig_obj[0] = args;
9015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
9016 if (!SWIG_IsOK(res1)) {
9017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
9018 }
9019 arg1 = reinterpret_cast< wxMask * >(argp1);
9020 {
1bd55598 9021 delete arg1;
d55e5bfc 9022
1bd55598
RD
9023 if (PyErr_Occurred()) SWIG_fail;
9024 }
9025 resultobj = SWIG_Py_Void();
9026 return resultobj;
9027fail:
9028 return NULL;
9029}
9030
9031
9032SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9033 PyObject *obj;
9034 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9035 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
9036 return SWIG_Py_Void();
9037}
9038
9039SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9040 return SWIG_Python_InitShadowInstance(args);
9041}
9042
9043SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9044 PyObject *resultobj = 0;
9045 wxString *arg1 = 0 ;
9046 wxBitmapType arg2 ;
9047 int arg3 = (int) -1 ;
9048 int arg4 = (int) -1 ;
9049 wxIcon *result = 0 ;
9050 bool temp1 = false ;
9051 int val2 ;
9052 int ecode2 = 0 ;
9053 int val3 ;
9054 int ecode3 = 0 ;
9055 int val4 ;
9056 int ecode4 = 0 ;
9057 PyObject * obj0 = 0 ;
9058 PyObject * obj1 = 0 ;
9059 PyObject * obj2 = 0 ;
9060 PyObject * obj3 = 0 ;
9061 char * kwnames[] = {
9062 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
9063 };
9064
9065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9066 {
9067 arg1 = wxString_in_helper(obj0);
9068 if (arg1 == NULL) SWIG_fail;
9069 temp1 = true;
9070 }
9071 ecode2 = SWIG_AsVal_int(obj1, &val2);
9072 if (!SWIG_IsOK(ecode2)) {
9073 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
9074 }
9075 arg2 = static_cast< wxBitmapType >(val2);
9076 if (obj2) {
9077 ecode3 = SWIG_AsVal_int(obj2, &val3);
9078 if (!SWIG_IsOK(ecode3)) {
9079 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
9080 }
9081 arg3 = static_cast< int >(val3);
9082 }
9083 if (obj3) {
9084 ecode4 = SWIG_AsVal_int(obj3, &val4);
9085 if (!SWIG_IsOK(ecode4)) {
9086 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
9087 }
9088 arg4 = static_cast< int >(val4);
9089 }
9090 {
9091 if (!wxPyCheckForApp()) SWIG_fail;
9092 PyThreadState* __tstate = wxPyBeginAllowThreads();
9093 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
9094 wxPyEndAllowThreads(__tstate);
9095 if (PyErr_Occurred()) SWIG_fail;
9096 }
9097 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
9098 {
9099 if (temp1)
9100 delete arg1;
9101 }
9102 return resultobj;
9103fail:
9104 {
9105 if (temp1)
9106 delete arg1;
9107 }
9108 return NULL;
d55e5bfc
RD
9109}
9110
9111
1bd55598
RD
9112SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9113 PyObject *resultobj = 0;
9114 wxIcon *arg1 = (wxIcon *) 0 ;
9115 void *argp1 = 0 ;
9116 int res1 = 0 ;
9117 PyObject *swig_obj[1] ;
9118
9119 if (!args) SWIG_fail;
9120 swig_obj[0] = args;
9121 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
9122 if (!SWIG_IsOK(res1)) {
9123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
9124 }
9125 arg1 = reinterpret_cast< wxIcon * >(argp1);
9126 {
9127 PyThreadState* __tstate = wxPyBeginAllowThreads();
9128 delete arg1;
d55e5bfc 9129
1bd55598
RD
9130 wxPyEndAllowThreads(__tstate);
9131 if (PyErr_Occurred()) SWIG_fail;
9132 }
9133 resultobj = SWIG_Py_Void();
9134 return resultobj;
9135fail:
9136 return NULL;
d55e5bfc
RD
9137}
9138
9139
1bd55598
RD
9140SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9141 PyObject *resultobj = 0;
9142 wxIcon *result = 0 ;
9143
9144 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
9145 {
9146 if (!wxPyCheckForApp()) SWIG_fail;
9147 PyThreadState* __tstate = wxPyBeginAllowThreads();
9148 result = (wxIcon *)new wxIcon();
9149 wxPyEndAllowThreads(__tstate);
9150 if (PyErr_Occurred()) SWIG_fail;
9151 }
9152 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9153 return resultobj;
9154fail:
9155 return NULL;
9156}
9157
9158
9159SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9160 PyObject *resultobj = 0;
9161 wxIconLocation *arg1 = 0 ;
9162 wxIcon *result = 0 ;
9163 void *argp1 = 0 ;
9164 int res1 = 0 ;
9165 PyObject * obj0 = 0 ;
9166 char * kwnames[] = {
9167 (char *) "loc", NULL
9168 };
9169
9170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
9171 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
9172 if (!SWIG_IsOK(res1)) {
9173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9174 }
9175 if (!argp1) {
9176 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9177 }
9178 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9179 {
9180 if (!wxPyCheckForApp()) SWIG_fail;
9181 PyThreadState* __tstate = wxPyBeginAllowThreads();
9182 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
9183 wxPyEndAllowThreads(__tstate);
9184 if (PyErr_Occurred()) SWIG_fail;
9185 }
9186 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9187 return resultobj;
9188fail:
9189 return NULL;
9190}
9191
9192
9193SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9194 PyObject *resultobj = 0;
9195 wxBitmap *arg1 = 0 ;
9196 wxIcon *result = 0 ;
9197 void *argp1 = 0 ;
9198 int res1 = 0 ;
9199 PyObject * obj0 = 0 ;
9200 char * kwnames[] = {
9201 (char *) "bmp", NULL
9202 };
9203
9204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
9205 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9206 if (!SWIG_IsOK(res1)) {
9207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9208 }
9209 if (!argp1) {
9210 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9211 }
9212 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9213 {
9214 if (!wxPyCheckForApp()) SWIG_fail;
9215 PyThreadState* __tstate = wxPyBeginAllowThreads();
9216 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
9217 wxPyEndAllowThreads(__tstate);
9218 if (PyErr_Occurred()) SWIG_fail;
9219 }
9220 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9221 return resultobj;
9222fail:
9223 return NULL;
d55e5bfc
RD
9224}
9225
9226
1bd55598
RD
9227SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9228 PyObject *resultobj = 0;
9229 PyObject *arg1 = (PyObject *) 0 ;
9230 wxIcon *result = 0 ;
9231 PyObject * obj0 = 0 ;
9232 char * kwnames[] = {
9233 (char *) "listOfStrings", NULL
9234 };
9235
9236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
9237 arg1 = obj0;
9238 {
9239 if (!wxPyCheckForApp()) SWIG_fail;
9240 PyThreadState* __tstate = wxPyBeginAllowThreads();
9241 result = (wxIcon *)new_wxIcon(arg1);
9242 wxPyEndAllowThreads(__tstate);
9243 if (PyErr_Occurred()) SWIG_fail;
9244 }
9245 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9246 return resultobj;
9247fail:
9248 return NULL;
d55e5bfc
RD
9249}
9250
9251
b39fe951 9252SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
9253 PyObject *resultobj = 0;
9254 wxIcon *arg1 = (wxIcon *) 0 ;
9255 bool result;
9256 void *argp1 = 0 ;
9257 int res1 = 0 ;
9258 PyObject *swig_obj[1] ;
9259
9260 if (!args) SWIG_fail;
9261 swig_obj[0] = args;
9262 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9263 if (!SWIG_IsOK(res1)) {
b39fe951 9264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
1bd55598
RD
9265 }
9266 arg1 = reinterpret_cast< wxIcon * >(argp1);
9267 {
9268 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 9269 result = (bool)(arg1)->IsOk();
1bd55598
RD
9270 wxPyEndAllowThreads(__tstate);
9271 if (PyErr_Occurred()) SWIG_fail;
9272 }
9273 {
9274 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9275 }
9276 return resultobj;
9277fail:
9278 return NULL;
d55e5bfc
RD
9279}
9280
9281
1bd55598
RD
9282SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9283 PyObject *resultobj = 0;
9284 wxIcon *arg1 = (wxIcon *) 0 ;
9285 int result;
9286 void *argp1 = 0 ;
9287 int res1 = 0 ;
9288 PyObject *swig_obj[1] ;
9289
9290 if (!args) SWIG_fail;
9291 swig_obj[0] = args;
9292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9293 if (!SWIG_IsOK(res1)) {
9294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9295 }
9296 arg1 = reinterpret_cast< wxIcon * >(argp1);
9297 {
9298 PyThreadState* __tstate = wxPyBeginAllowThreads();
9299 result = (int)(arg1)->GetWidth();
9300 wxPyEndAllowThreads(__tstate);
9301 if (PyErr_Occurred()) SWIG_fail;
9302 }
9303 resultobj = SWIG_From_int(static_cast< int >(result));
9304 return resultobj;
9305fail:
9306 return NULL;
d55e5bfc
RD
9307}
9308
9309
1bd55598
RD
9310SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9311 PyObject *resultobj = 0;
9312 wxIcon *arg1 = (wxIcon *) 0 ;
9313 int result;
9314 void *argp1 = 0 ;
9315 int res1 = 0 ;
9316 PyObject *swig_obj[1] ;
9317
9318 if (!args) SWIG_fail;
9319 swig_obj[0] = args;
9320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9321 if (!SWIG_IsOK(res1)) {
9322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9323 }
9324 arg1 = reinterpret_cast< wxIcon * >(argp1);
9325 {
9326 PyThreadState* __tstate = wxPyBeginAllowThreads();
9327 result = (int)(arg1)->GetHeight();
9328 wxPyEndAllowThreads(__tstate);
9329 if (PyErr_Occurred()) SWIG_fail;
9330 }
9331 resultobj = SWIG_From_int(static_cast< int >(result));
9332 return resultobj;
9333fail:
9334 return NULL;
d55e5bfc
RD
9335}
9336
9337
1bd55598
RD
9338SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9339 PyObject *resultobj = 0;
9340 wxIcon *arg1 = (wxIcon *) 0 ;
9341 int result;
9342 void *argp1 = 0 ;
9343 int res1 = 0 ;
9344 PyObject *swig_obj[1] ;
9345
9346 if (!args) SWIG_fail;
9347 swig_obj[0] = args;
9348 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9349 if (!SWIG_IsOK(res1)) {
9350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9351 }
9352 arg1 = reinterpret_cast< wxIcon * >(argp1);
9353 {
9354 PyThreadState* __tstate = wxPyBeginAllowThreads();
9355 result = (int)(arg1)->GetDepth();
9356 wxPyEndAllowThreads(__tstate);
9357 if (PyErr_Occurred()) SWIG_fail;
9358 }
9359 resultobj = SWIG_From_int(static_cast< int >(result));
9360 return resultobj;
9361fail:
9362 return NULL;
9363}
9364
9365
9366SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9367 PyObject *resultobj = 0;
9368 wxIcon *arg1 = (wxIcon *) 0 ;
9369 int arg2 ;
9370 void *argp1 = 0 ;
9371 int res1 = 0 ;
9372 int val2 ;
9373 int ecode2 = 0 ;
9374 PyObject * obj0 = 0 ;
9375 PyObject * obj1 = 0 ;
9376 char * kwnames[] = {
9377 (char *) "self",(char *) "w", NULL
9378 };
9379
9380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9382 if (!SWIG_IsOK(res1)) {
9383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9384 }
9385 arg1 = reinterpret_cast< wxIcon * >(argp1);
9386 ecode2 = SWIG_AsVal_int(obj1, &val2);
9387 if (!SWIG_IsOK(ecode2)) {
9388 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9389 }
9390 arg2 = static_cast< int >(val2);
9391 {
9392 PyThreadState* __tstate = wxPyBeginAllowThreads();
9393 (arg1)->SetWidth(arg2);
9394 wxPyEndAllowThreads(__tstate);
9395 if (PyErr_Occurred()) SWIG_fail;
9396 }
9397 resultobj = SWIG_Py_Void();
9398 return resultobj;
9399fail:
9400 return NULL;
9401}
9402
9403
9404SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9405 PyObject *resultobj = 0;
9406 wxIcon *arg1 = (wxIcon *) 0 ;
9407 int arg2 ;
9408 void *argp1 = 0 ;
9409 int res1 = 0 ;
9410 int val2 ;
9411 int ecode2 = 0 ;
9412 PyObject * obj0 = 0 ;
9413 PyObject * obj1 = 0 ;
9414 char * kwnames[] = {
9415 (char *) "self",(char *) "h", NULL
9416 };
9417
9418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9420 if (!SWIG_IsOK(res1)) {
9421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9422 }
9423 arg1 = reinterpret_cast< wxIcon * >(argp1);
9424 ecode2 = SWIG_AsVal_int(obj1, &val2);
9425 if (!SWIG_IsOK(ecode2)) {
9426 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9427 }
9428 arg2 = static_cast< int >(val2);
9429 {
9430 PyThreadState* __tstate = wxPyBeginAllowThreads();
9431 (arg1)->SetHeight(arg2);
9432 wxPyEndAllowThreads(__tstate);
9433 if (PyErr_Occurred()) SWIG_fail;
9434 }
9435 resultobj = SWIG_Py_Void();
9436 return resultobj;
9437fail:
9438 return NULL;
9439}
9440
9441
9442SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9443 PyObject *resultobj = 0;
9444 wxIcon *arg1 = (wxIcon *) 0 ;
9445 int arg2 ;
9446 void *argp1 = 0 ;
9447 int res1 = 0 ;
9448 int val2 ;
9449 int ecode2 = 0 ;
9450 PyObject * obj0 = 0 ;
9451 PyObject * obj1 = 0 ;
9452 char * kwnames[] = {
9453 (char *) "self",(char *) "d", NULL
9454 };
9455
9456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9458 if (!SWIG_IsOK(res1)) {
9459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9460 }
9461 arg1 = reinterpret_cast< wxIcon * >(argp1);
9462 ecode2 = SWIG_AsVal_int(obj1, &val2);
9463 if (!SWIG_IsOK(ecode2)) {
9464 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9465 }
9466 arg2 = static_cast< int >(val2);
9467 {
9468 PyThreadState* __tstate = wxPyBeginAllowThreads();
9469 (arg1)->SetDepth(arg2);
9470 wxPyEndAllowThreads(__tstate);
9471 if (PyErr_Occurred()) SWIG_fail;
9472 }
9473 resultobj = SWIG_Py_Void();
9474 return resultobj;
9475fail:
9476 return NULL;
9477}
9478
9479
9480SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9481 PyObject *resultobj = 0;
9482 wxIcon *arg1 = (wxIcon *) 0 ;
9483 wxBitmap *arg2 = 0 ;
9484 void *argp1 = 0 ;
9485 int res1 = 0 ;
9486 void *argp2 = 0 ;
9487 int res2 = 0 ;
9488 PyObject * obj0 = 0 ;
9489 PyObject * obj1 = 0 ;
9490 char * kwnames[] = {
9491 (char *) "self",(char *) "bmp", NULL
9492 };
9493
9494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9496 if (!SWIG_IsOK(res1)) {
9497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9498 }
9499 arg1 = reinterpret_cast< wxIcon * >(argp1);
9500 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9501 if (!SWIG_IsOK(res2)) {
9502 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9503 }
9504 if (!argp2) {
9505 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9506 }
9507 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9508 {
9509 PyThreadState* __tstate = wxPyBeginAllowThreads();
9510 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9511 wxPyEndAllowThreads(__tstate);
9512 if (PyErr_Occurred()) SWIG_fail;
9513 }
9514 resultobj = SWIG_Py_Void();
9515 return resultobj;
9516fail:
9517 return NULL;
d55e5bfc
RD
9518}
9519
9520
1bd55598
RD
9521SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9522 PyObject *obj;
9523 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9524 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9525 return SWIG_Py_Void();
d55e5bfc
RD
9526}
9527
1bd55598
RD
9528SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9529 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
9530}
9531
1bd55598
RD
9532SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9533 PyObject *resultobj = 0;
9534 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9535 int arg2 = (int) 0 ;
9536 wxIconLocation *result = 0 ;
9537 bool temp1 = false ;
9538 int val2 ;
9539 int ecode2 = 0 ;
9540 PyObject * obj0 = 0 ;
9541 PyObject * obj1 = 0 ;
9542 char * kwnames[] = {
9543 (char *) "filename",(char *) "num", NULL
9544 };
9545
9546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9547 if (obj0) {
d55e5bfc 9548 {
1bd55598
RD
9549 arg1 = wxString_in_helper(obj0);
9550 if (arg1 == NULL) SWIG_fail;
9551 temp1 = true;
d55e5bfc 9552 }
1bd55598
RD
9553 }
9554 if (obj1) {
9555 ecode2 = SWIG_AsVal_int(obj1, &val2);
9556 if (!SWIG_IsOK(ecode2)) {
9557 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9558 }
9559 arg2 = static_cast< int >(val2);
9560 }
9561 {
9562 PyThreadState* __tstate = wxPyBeginAllowThreads();
9563 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9564 wxPyEndAllowThreads(__tstate);
9565 if (PyErr_Occurred()) SWIG_fail;
9566 }
9567 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9568 {
9569 if (temp1)
9570 delete arg1;
9571 }
9572 return resultobj;
9573fail:
9574 {
9575 if (temp1)
9576 delete arg1;
9577 }
9578 return NULL;
d55e5bfc
RD
9579}
9580
9581
1bd55598
RD
9582SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9583 PyObject *resultobj = 0;
9584 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9585 void *argp1 = 0 ;
9586 int res1 = 0 ;
9587 PyObject *swig_obj[1] ;
9588
9589 if (!args) SWIG_fail;
9590 swig_obj[0] = args;
9591 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9592 if (!SWIG_IsOK(res1)) {
9593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9594 }
9595 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9596 {
9597 PyThreadState* __tstate = wxPyBeginAllowThreads();
9598 delete arg1;
d55e5bfc 9599
1bd55598
RD
9600 wxPyEndAllowThreads(__tstate);
9601 if (PyErr_Occurred()) SWIG_fail;
9602 }
9603 resultobj = SWIG_Py_Void();
9604 return resultobj;
9605fail:
9606 return NULL;
d55e5bfc
RD
9607}
9608
9609
1bd55598
RD
9610SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9611 PyObject *resultobj = 0;
9612 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9613 bool result;
9614 void *argp1 = 0 ;
9615 int res1 = 0 ;
9616 PyObject *swig_obj[1] ;
9617
9618 if (!args) SWIG_fail;
9619 swig_obj[0] = args;
9620 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9621 if (!SWIG_IsOK(res1)) {
9622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9623 }
9624 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9625 {
9626 PyThreadState* __tstate = wxPyBeginAllowThreads();
9627 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9628 wxPyEndAllowThreads(__tstate);
9629 if (PyErr_Occurred()) SWIG_fail;
9630 }
9631 {
9632 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9633 }
9634 return resultobj;
9635fail:
9636 return NULL;
9637}
9638
9639
9640SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9641 PyObject *resultobj = 0;
9642 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9643 wxString *arg2 = 0 ;
9644 void *argp1 = 0 ;
9645 int res1 = 0 ;
9646 bool temp2 = false ;
9647 PyObject * obj0 = 0 ;
9648 PyObject * obj1 = 0 ;
9649 char * kwnames[] = {
9650 (char *) "self",(char *) "filename", NULL
9651 };
9652
9653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9655 if (!SWIG_IsOK(res1)) {
9656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9657 }
9658 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9659 {
9660 arg2 = wxString_in_helper(obj1);
9661 if (arg2 == NULL) SWIG_fail;
9662 temp2 = true;
9663 }
9664 {
9665 PyThreadState* __tstate = wxPyBeginAllowThreads();
9666 (arg1)->SetFileName((wxString const &)*arg2);
9667 wxPyEndAllowThreads(__tstate);
9668 if (PyErr_Occurred()) SWIG_fail;
9669 }
9670 resultobj = SWIG_Py_Void();
9671 {
9672 if (temp2)
9673 delete arg2;
9674 }
9675 return resultobj;
9676fail:
9677 {
9678 if (temp2)
9679 delete arg2;
9680 }
9681 return NULL;
d55e5bfc
RD
9682}
9683
9684
1bd55598
RD
9685SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9686 PyObject *resultobj = 0;
9687 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9688 wxString *result = 0 ;
9689 void *argp1 = 0 ;
9690 int res1 = 0 ;
9691 PyObject *swig_obj[1] ;
9692
9693 if (!args) SWIG_fail;
9694 swig_obj[0] = args;
9695 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9696 if (!SWIG_IsOK(res1)) {
9697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9698 }
9699 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9700 {
9701 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 9702 {
1bd55598
RD
9703 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9704 result = (wxString *) &_result_ref;
d55e5bfc 9705 }
1bd55598
RD
9706 wxPyEndAllowThreads(__tstate);
9707 if (PyErr_Occurred()) SWIG_fail;
9708 }
9709 {
9710#if wxUSE_UNICODE
9711 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9712#else
9713 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9714#endif
9715 }
9716 return resultobj;
9717fail:
9718 return NULL;
9719}
9720
9721
9722SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9723 PyObject *resultobj = 0;
9724 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9725 int arg2 ;
9726 void *argp1 = 0 ;
9727 int res1 = 0 ;
9728 int val2 ;
9729 int ecode2 = 0 ;
9730 PyObject * obj0 = 0 ;
9731 PyObject * obj1 = 0 ;
9732 char * kwnames[] = {
9733 (char *) "self",(char *) "num", NULL
9734 };
9735
9736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9738 if (!SWIG_IsOK(res1)) {
9739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9740 }
9741 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9742 ecode2 = SWIG_AsVal_int(obj1, &val2);
9743 if (!SWIG_IsOK(ecode2)) {
9744 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9745 }
9746 arg2 = static_cast< int >(val2);
9747 {
9748 PyThreadState* __tstate = wxPyBeginAllowThreads();
9749 wxIconLocation_SetIndex(arg1,arg2);
9750 wxPyEndAllowThreads(__tstate);
9751 if (PyErr_Occurred()) SWIG_fail;
9752 }
9753 resultobj = SWIG_Py_Void();
9754 return resultobj;
9755fail:
9756 return NULL;
d55e5bfc
RD
9757}
9758
9759
1bd55598
RD
9760SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9761 PyObject *resultobj = 0;
9762 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9763 int result;
9764 void *argp1 = 0 ;
9765 int res1 = 0 ;
9766 PyObject *swig_obj[1] ;
9767
9768 if (!args) SWIG_fail;
9769 swig_obj[0] = args;
9770 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9771 if (!SWIG_IsOK(res1)) {
9772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9773 }
9774 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9775 {
9776 PyThreadState* __tstate = wxPyBeginAllowThreads();
9777 result = (int)wxIconLocation_GetIndex(arg1);
9778 wxPyEndAllowThreads(__tstate);
9779 if (PyErr_Occurred()) SWIG_fail;
9780 }
9781 resultobj = SWIG_From_int(static_cast< int >(result));
9782 return resultobj;
9783fail:
9784 return NULL;
d55e5bfc
RD
9785}
9786
9787
1bd55598
RD
9788SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9789 PyObject *obj;
9790 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9791 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9792 return SWIG_Py_Void();
d55e5bfc
RD
9793}
9794
1bd55598
RD
9795SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9796 return SWIG_Python_InitShadowInstance(args);
9797}
d55e5bfc 9798
1bd55598
RD
9799SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9800 PyObject *resultobj = 0;
9801 wxIconBundle *result = 0 ;
9802
9803 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9804 {
9805 PyThreadState* __tstate = wxPyBeginAllowThreads();
9806 result = (wxIconBundle *)new wxIconBundle();
9807 wxPyEndAllowThreads(__tstate);
9808 if (PyErr_Occurred()) SWIG_fail;
9809 }
9810 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9811 return resultobj;
9812fail:
9813 return NULL;
9814}
9815
9816
9817SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9818 PyObject *resultobj = 0;
9819 wxString *arg1 = 0 ;
9820 long arg2 ;
9821 wxIconBundle *result = 0 ;
9822 bool temp1 = false ;
9823 long val2 ;
9824 int ecode2 = 0 ;
9825 PyObject * obj0 = 0 ;
9826 PyObject * obj1 = 0 ;
9827 char * kwnames[] = {
9828 (char *) "file",(char *) "type", NULL
9829 };
9830
9831 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9832 {
9833 arg1 = wxString_in_helper(obj0);
9834 if (arg1 == NULL) SWIG_fail;
9835 temp1 = true;
9836 }
9837 ecode2 = SWIG_AsVal_long(obj1, &val2);
9838 if (!SWIG_IsOK(ecode2)) {
9839 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9840 }
9841 arg2 = static_cast< long >(val2);
9842 {
9843 PyThreadState* __tstate = wxPyBeginAllowThreads();
9844 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9845 wxPyEndAllowThreads(__tstate);
9846 if (PyErr_Occurred()) SWIG_fail;
9847 }
9848 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9849 {
9850 if (temp1)
9851 delete arg1;
9852 }
9853 return resultobj;
9854fail:
9855 {
9856 if (temp1)
9857 delete arg1;
9858 }
9859 return NULL;
d55e5bfc
RD
9860}
9861
9862
1bd55598
RD
9863SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9864 PyObject *resultobj = 0;
9865 wxIcon *arg1 = 0 ;
9866 wxIconBundle *result = 0 ;
9867 void *argp1 = 0 ;
9868 int res1 = 0 ;
9869 PyObject * obj0 = 0 ;
9870 char * kwnames[] = {
9871 (char *) "icon", NULL
9872 };
9873
9874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9875 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9876 if (!SWIG_IsOK(res1)) {
9877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9878 }
9879 if (!argp1) {
9880 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9881 }
9882 arg1 = reinterpret_cast< wxIcon * >(argp1);
9883 {
9884 PyThreadState* __tstate = wxPyBeginAllowThreads();
9885 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9886 wxPyEndAllowThreads(__tstate);
9887 if (PyErr_Occurred()) SWIG_fail;
9888 }
9889 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9890 return resultobj;
9891fail:
9892 return NULL;
d55e5bfc
RD
9893}
9894
9895
1bd55598
RD
9896SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9897 PyObject *resultobj = 0;
9898 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9899 void *argp1 = 0 ;
9900 int res1 = 0 ;
9901 PyObject *swig_obj[1] ;
9902
9903 if (!args) SWIG_fail;
9904 swig_obj[0] = args;
9905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9906 if (!SWIG_IsOK(res1)) {
9907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9908 }
9909 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9910 {
9911 PyThreadState* __tstate = wxPyBeginAllowThreads();
9912 delete arg1;
d55e5bfc 9913
1bd55598
RD
9914 wxPyEndAllowThreads(__tstate);
9915 if (PyErr_Occurred()) SWIG_fail;
9916 }
9917 resultobj = SWIG_Py_Void();
9918 return resultobj;
9919fail:
9920 return NULL;
9921}
9922
9923
9924SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9925 PyObject *resultobj = 0;
9926 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9927 wxIcon *arg2 = 0 ;
9928 void *argp1 = 0 ;
9929 int res1 = 0 ;
9930 void *argp2 = 0 ;
9931 int res2 = 0 ;
9932 PyObject * obj0 = 0 ;
9933 PyObject * obj1 = 0 ;
9934 char * kwnames[] = {
9935 (char *) "self",(char *) "icon", NULL
9936 };
9937
9938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9940 if (!SWIG_IsOK(res1)) {
9941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9942 }
9943 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9944 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9945 if (!SWIG_IsOK(res2)) {
9946 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9947 }
9948 if (!argp2) {
9949 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9950 }
9951 arg2 = reinterpret_cast< wxIcon * >(argp2);
9952 {
9953 PyThreadState* __tstate = wxPyBeginAllowThreads();
9954 (arg1)->AddIcon((wxIcon const &)*arg2);
9955 wxPyEndAllowThreads(__tstate);
9956 if (PyErr_Occurred()) SWIG_fail;
9957 }
9958 resultobj = SWIG_Py_Void();
9959 return resultobj;
9960fail:
9961 return NULL;
9962}
9963
9964
9965SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9966 PyObject *resultobj = 0;
9967 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9968 wxString *arg2 = 0 ;
9969 long arg3 ;
9970 void *argp1 = 0 ;
9971 int res1 = 0 ;
9972 bool temp2 = false ;
9973 long val3 ;
9974 int ecode3 = 0 ;
9975 PyObject * obj0 = 0 ;
9976 PyObject * obj1 = 0 ;
9977 PyObject * obj2 = 0 ;
9978 char * kwnames[] = {
9979 (char *) "self",(char *) "file",(char *) "type", NULL
9980 };
9981
9982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9984 if (!SWIG_IsOK(res1)) {
9985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9986 }
9987 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9988 {
9989 arg2 = wxString_in_helper(obj1);
9990 if (arg2 == NULL) SWIG_fail;
9991 temp2 = true;
9992 }
9993 ecode3 = SWIG_AsVal_long(obj2, &val3);
9994 if (!SWIG_IsOK(ecode3)) {
9995 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
9996 }
9997 arg3 = static_cast< long >(val3);
9998 {
9999 PyThreadState* __tstate = wxPyBeginAllowThreads();
10000 (arg1)->AddIcon((wxString const &)*arg2,arg3);
10001 wxPyEndAllowThreads(__tstate);
10002 if (PyErr_Occurred()) SWIG_fail;
10003 }
10004 resultobj = SWIG_Py_Void();
10005 {
10006 if (temp2)
10007 delete arg2;
10008 }
10009 return resultobj;
10010fail:
10011 {
10012 if (temp2)
10013 delete arg2;
10014 }
10015 return NULL;
10016}
10017
10018
10019SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10020 PyObject *resultobj = 0;
10021 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10022 wxSize *arg2 = 0 ;
10023 wxIcon *result = 0 ;
10024 void *argp1 = 0 ;
10025 int res1 = 0 ;
10026 wxSize temp2 ;
10027 PyObject * obj0 = 0 ;
10028 PyObject * obj1 = 0 ;
10029 char * kwnames[] = {
10030 (char *) "self",(char *) "size", NULL
10031 };
10032
10033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10035 if (!SWIG_IsOK(res1)) {
10036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10037 }
10038 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10039 {
10040 arg2 = &temp2;
10041 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10042 }
10043 {
10044 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 10045 {
1bd55598
RD
10046 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
10047 result = (wxIcon *) &_result_ref;
d55e5bfc 10048 }
1bd55598
RD
10049 wxPyEndAllowThreads(__tstate);
10050 if (PyErr_Occurred()) SWIG_fail;
10051 }
10052 {
10053 wxIcon* resultptr = new wxIcon(*result);
10054 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
10055 }
10056 return resultobj;
10057fail:
10058 return NULL;
10059}
10060
10061
10062SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10063 PyObject *obj;
10064 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10065 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
10066 return SWIG_Py_Void();
10067}
10068
10069SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10070 return SWIG_Python_InitShadowInstance(args);
10071}
10072
10073SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10074 PyObject *resultobj = 0;
10075 wxString *arg1 = 0 ;
10076 long arg2 ;
10077 int arg3 = (int) 0 ;
10078 int arg4 = (int) 0 ;
10079 wxCursor *result = 0 ;
10080 bool temp1 = false ;
10081 long val2 ;
10082 int ecode2 = 0 ;
10083 int val3 ;
10084 int ecode3 = 0 ;
10085 int val4 ;
10086 int ecode4 = 0 ;
10087 PyObject * obj0 = 0 ;
10088 PyObject * obj1 = 0 ;
10089 PyObject * obj2 = 0 ;
10090 PyObject * obj3 = 0 ;
10091 char * kwnames[] = {
10092 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
10093 };
10094
10095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10096 {
10097 arg1 = wxString_in_helper(obj0);
10098 if (arg1 == NULL) SWIG_fail;
10099 temp1 = true;
10100 }
10101 ecode2 = SWIG_AsVal_long(obj1, &val2);
10102 if (!SWIG_IsOK(ecode2)) {
10103 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
10104 }
10105 arg2 = static_cast< long >(val2);
10106 if (obj2) {
10107 ecode3 = SWIG_AsVal_int(obj2, &val3);
10108 if (!SWIG_IsOK(ecode3)) {
10109 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
10110 }
10111 arg3 = static_cast< int >(val3);
10112 }
10113 if (obj3) {
10114 ecode4 = SWIG_AsVal_int(obj3, &val4);
10115 if (!SWIG_IsOK(ecode4)) {
10116 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
10117 }
10118 arg4 = static_cast< int >(val4);
10119 }
10120 {
10121 if (!wxPyCheckForApp()) SWIG_fail;
10122 PyThreadState* __tstate = wxPyBeginAllowThreads();
10123 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
10124 wxPyEndAllowThreads(__tstate);
10125 if (PyErr_Occurred()) SWIG_fail;
10126 }
10127 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
10128 {
10129 if (temp1)
10130 delete arg1;
10131 }
10132 return resultobj;
10133fail:
10134 {
10135 if (temp1)
10136 delete arg1;
10137 }
10138 return NULL;
d55e5bfc
RD
10139}
10140
10141
1bd55598
RD
10142SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10143 PyObject *resultobj = 0;
10144 wxCursor *arg1 = (wxCursor *) 0 ;
10145 void *argp1 = 0 ;
10146 int res1 = 0 ;
10147 PyObject *swig_obj[1] ;
10148
10149 if (!args) SWIG_fail;
10150 swig_obj[0] = args;
10151 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10152 if (!SWIG_IsOK(res1)) {
10153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10154 }
10155 arg1 = reinterpret_cast< wxCursor * >(argp1);
10156 {
10157 PyThreadState* __tstate = wxPyBeginAllowThreads();
10158 delete arg1;
d55e5bfc 10159
1bd55598
RD
10160 wxPyEndAllowThreads(__tstate);
10161 if (PyErr_Occurred()) SWIG_fail;
10162 }
10163 resultobj = SWIG_Py_Void();
10164 return resultobj;
10165fail:
10166 return NULL;
10167}
10168
10169
10170SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10171 PyObject *resultobj = 0;
10172 int arg1 ;
10173 wxCursor *result = 0 ;
10174 int val1 ;
10175 int ecode1 = 0 ;
10176 PyObject * obj0 = 0 ;
10177 char * kwnames[] = {
10178 (char *) "id", NULL
10179 };
10180
10181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10182 ecode1 = SWIG_AsVal_int(obj0, &val1);
10183 if (!SWIG_IsOK(ecode1)) {
10184 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10185 }
10186 arg1 = static_cast< int >(val1);
10187 {
10188 if (!wxPyCheckForApp()) SWIG_fail;
10189 PyThreadState* __tstate = wxPyBeginAllowThreads();
10190 result = (wxCursor *)new wxCursor(arg1);
10191 wxPyEndAllowThreads(__tstate);
10192 if (PyErr_Occurred()) SWIG_fail;
10193 }
10194 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10195 return resultobj;
10196fail:
10197 return NULL;
10198}
10199
10200
10201SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10202 PyObject *resultobj = 0;
10203 wxImage *arg1 = 0 ;
10204 wxCursor *result = 0 ;
10205 void *argp1 = 0 ;
10206 int res1 = 0 ;
10207 PyObject * obj0 = 0 ;
10208 char * kwnames[] = {
10209 (char *) "image", NULL
10210 };
10211
10212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10213 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10214 if (!SWIG_IsOK(res1)) {
10215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10216 }
10217 if (!argp1) {
10218 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10219 }
10220 arg1 = reinterpret_cast< wxImage * >(argp1);
10221 {
10222 if (!wxPyCheckForApp()) SWIG_fail;
10223 PyThreadState* __tstate = wxPyBeginAllowThreads();
10224 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10225 wxPyEndAllowThreads(__tstate);
10226 if (PyErr_Occurred()) SWIG_fail;
10227 }
10228 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10229 return resultobj;
10230fail:
10231 return NULL;
d55e5bfc
RD
10232}
10233
10234
b39fe951 10235SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
10236 PyObject *resultobj = 0;
10237 wxCursor *arg1 = (wxCursor *) 0 ;
10238 bool result;
10239 void *argp1 = 0 ;
10240 int res1 = 0 ;
10241 PyObject *swig_obj[1] ;
10242
10243 if (!args) SWIG_fail;
10244 swig_obj[0] = args;
10245 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10246 if (!SWIG_IsOK(res1)) {
b39fe951 10247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
1bd55598
RD
10248 }
10249 arg1 = reinterpret_cast< wxCursor * >(argp1);
10250 {
10251 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 10252 result = (bool)(arg1)->IsOk();
1bd55598
RD
10253 wxPyEndAllowThreads(__tstate);
10254 if (PyErr_Occurred()) SWIG_fail;
10255 }
10256 {
10257 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10258 }
10259 return resultobj;
10260fail:
10261 return NULL;
10262}
10263
10264
10265SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10266 PyObject *obj;
10267 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10268 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10269 return SWIG_Py_Void();
10270}
10271
10272SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10273 return SWIG_Python_InitShadowInstance(args);
10274}
10275
10276SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10277 PyObject *resultobj = 0;
10278 int arg1 = (int) 0 ;
10279 int arg2 = (int) 0 ;
10280 int arg3 = (int) 0 ;
10281 int arg4 = (int) 0 ;
10282 wxRegion *result = 0 ;
10283 int val1 ;
10284 int ecode1 = 0 ;
10285 int val2 ;
10286 int ecode2 = 0 ;
10287 int val3 ;
10288 int ecode3 = 0 ;
10289 int val4 ;
10290 int ecode4 = 0 ;
10291 PyObject * obj0 = 0 ;
10292 PyObject * obj1 = 0 ;
10293 PyObject * obj2 = 0 ;
10294 PyObject * obj3 = 0 ;
10295 char * kwnames[] = {
10296 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10297 };
10298
10299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10300 if (obj0) {
10301 ecode1 = SWIG_AsVal_int(obj0, &val1);
10302 if (!SWIG_IsOK(ecode1)) {
10303 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10304 }
10305 arg1 = static_cast< int >(val1);
10306 }
10307 if (obj1) {
10308 ecode2 = SWIG_AsVal_int(obj1, &val2);
10309 if (!SWIG_IsOK(ecode2)) {
10310 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10311 }
10312 arg2 = static_cast< int >(val2);
10313 }
10314 if (obj2) {
10315 ecode3 = SWIG_AsVal_int(obj2, &val3);
10316 if (!SWIG_IsOK(ecode3)) {
10317 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10318 }
10319 arg3 = static_cast< int >(val3);
10320 }
10321 if (obj3) {
10322 ecode4 = SWIG_AsVal_int(obj3, &val4);
10323 if (!SWIG_IsOK(ecode4)) {
10324 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10325 }
10326 arg4 = static_cast< int >(val4);
10327 }
10328 {
10329 if (!wxPyCheckForApp()) SWIG_fail;
10330 PyThreadState* __tstate = wxPyBeginAllowThreads();
10331 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10332 wxPyEndAllowThreads(__tstate);
10333 if (PyErr_Occurred()) SWIG_fail;
10334 }
10335 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10336 return resultobj;
10337fail:
10338 return NULL;
10339}
10340
10341
10342SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10343 PyObject *resultobj = 0;
10344 wxBitmap *arg1 = 0 ;
10345 wxRegion *result = 0 ;
10346 void *argp1 = 0 ;
10347 int res1 = 0 ;
10348 PyObject * obj0 = 0 ;
10349 char * kwnames[] = {
10350 (char *) "bmp", NULL
10351 };
10352
10353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10354 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10355 if (!SWIG_IsOK(res1)) {
10356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10357 }
10358 if (!argp1) {
10359 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10360 }
10361 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10362 {
10363 if (!wxPyCheckForApp()) SWIG_fail;
10364 PyThreadState* __tstate = wxPyBeginAllowThreads();
10365 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10366 wxPyEndAllowThreads(__tstate);
10367 if (PyErr_Occurred()) SWIG_fail;
10368 }
10369 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10370 return resultobj;
10371fail:
10372 return NULL;
10373}
10374
10375
10376SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10377 PyObject *resultobj = 0;
10378 wxBitmap *arg1 = 0 ;
10379 wxColour *arg2 = 0 ;
10380 int arg3 = (int) 0 ;
10381 wxRegion *result = 0 ;
10382 void *argp1 = 0 ;
10383 int res1 = 0 ;
10384 wxColour temp2 ;
10385 int val3 ;
10386 int ecode3 = 0 ;
10387 PyObject * obj0 = 0 ;
10388 PyObject * obj1 = 0 ;
10389 PyObject * obj2 = 0 ;
10390 char * kwnames[] = {
10391 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10392 };
10393
10394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10395 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10396 if (!SWIG_IsOK(res1)) {
10397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10398 }
10399 if (!argp1) {
10400 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10401 }
10402 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10403 {
10404 arg2 = &temp2;
10405 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10406 }
10407 if (obj2) {
10408 ecode3 = SWIG_AsVal_int(obj2, &val3);
10409 if (!SWIG_IsOK(ecode3)) {
10410 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10411 }
10412 arg3 = static_cast< int >(val3);
10413 }
10414 {
10415 if (!wxPyCheckForApp()) SWIG_fail;
10416 PyThreadState* __tstate = wxPyBeginAllowThreads();
10417 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10418 wxPyEndAllowThreads(__tstate);
10419 if (PyErr_Occurred()) SWIG_fail;
10420 }
10421 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10422 return resultobj;
10423fail:
10424 return NULL;
10425}
10426
10427
10428SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10429 PyObject *resultobj = 0;
10430 int arg1 ;
10431 wxPoint *arg2 = (wxPoint *) 0 ;
10432 int arg3 = (int) wxWINDING_RULE ;
10433 wxRegion *result = 0 ;
10434 int val3 ;
10435 int ecode3 = 0 ;
10436 PyObject * obj0 = 0 ;
10437 PyObject * obj1 = 0 ;
10438 char * kwnames[] = {
10439 (char *) "points",(char *) "fillStyle", NULL
10440 };
10441
10442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10443 {
10444 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10445 if (arg2 == NULL) SWIG_fail;
10446 }
10447 if (obj1) {
10448 ecode3 = SWIG_AsVal_int(obj1, &val3);
10449 if (!SWIG_IsOK(ecode3)) {
10450 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10451 }
10452 arg3 = static_cast< int >(val3);
10453 }
10454 {
10455 if (!wxPyCheckForApp()) SWIG_fail;
10456 PyThreadState* __tstate = wxPyBeginAllowThreads();
10457 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10458 wxPyEndAllowThreads(__tstate);
10459 if (PyErr_Occurred()) SWIG_fail;
10460 }
10461 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10462 {
10463 if (arg2) delete [] arg2;
10464 }
10465 return resultobj;
10466fail:
10467 {
10468 if (arg2) delete [] arg2;
10469 }
10470 return NULL;
d55e5bfc
RD
10471}
10472
10473
1bd55598
RD
10474SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10475 PyObject *resultobj = 0;
10476 wxRegion *arg1 = (wxRegion *) 0 ;
10477 void *argp1 = 0 ;
10478 int res1 = 0 ;
10479 PyObject *swig_obj[1] ;
10480
10481 if (!args) SWIG_fail;
10482 swig_obj[0] = args;
10483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10484 if (!SWIG_IsOK(res1)) {
10485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10486 }
10487 arg1 = reinterpret_cast< wxRegion * >(argp1);
10488 {
10489 PyThreadState* __tstate = wxPyBeginAllowThreads();
10490 delete arg1;
d55e5bfc 10491
1bd55598
RD
10492 wxPyEndAllowThreads(__tstate);
10493 if (PyErr_Occurred()) SWIG_fail;
10494 }
10495 resultobj = SWIG_Py_Void();
10496 return resultobj;
10497fail:
10498 return NULL;
d55e5bfc
RD
10499}
10500
10501
1bd55598
RD
10502SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10503 PyObject *resultobj = 0;
10504 wxRegion *arg1 = (wxRegion *) 0 ;
10505 void *argp1 = 0 ;
10506 int res1 = 0 ;
10507 PyObject *swig_obj[1] ;
10508
10509 if (!args) SWIG_fail;
10510 swig_obj[0] = args;
10511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10512 if (!SWIG_IsOK(res1)) {
10513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10514 }
10515 arg1 = reinterpret_cast< wxRegion * >(argp1);
10516 {
10517 PyThreadState* __tstate = wxPyBeginAllowThreads();
10518 (arg1)->Clear();
10519 wxPyEndAllowThreads(__tstate);
10520 if (PyErr_Occurred()) SWIG_fail;
10521 }
10522 resultobj = SWIG_Py_Void();
10523 return resultobj;
10524fail:
10525 return NULL;
10526}
10527
10528
10529SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10530 PyObject *resultobj = 0;
10531 wxRegion *arg1 = (wxRegion *) 0 ;
10532 int arg2 ;
10533 int arg3 ;
10534 bool result;
10535 void *argp1 = 0 ;
10536 int res1 = 0 ;
10537 int val2 ;
10538 int ecode2 = 0 ;
10539 int val3 ;
10540 int ecode3 = 0 ;
10541 PyObject * obj0 = 0 ;
10542 PyObject * obj1 = 0 ;
10543 PyObject * obj2 = 0 ;
10544 char * kwnames[] = {
10545 (char *) "self",(char *) "x",(char *) "y", NULL
10546 };
10547
10548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10550 if (!SWIG_IsOK(res1)) {
10551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10552 }
10553 arg1 = reinterpret_cast< wxRegion * >(argp1);
10554 ecode2 = SWIG_AsVal_int(obj1, &val2);
10555 if (!SWIG_IsOK(ecode2)) {
10556 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10557 }
10558 arg2 = static_cast< int >(val2);
10559 ecode3 = SWIG_AsVal_int(obj2, &val3);
10560 if (!SWIG_IsOK(ecode3)) {
10561 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10562 }
10563 arg3 = static_cast< int >(val3);
10564 {
10565 PyThreadState* __tstate = wxPyBeginAllowThreads();
10566 result = (bool)(arg1)->Offset(arg2,arg3);
10567 wxPyEndAllowThreads(__tstate);
10568 if (PyErr_Occurred()) SWIG_fail;
10569 }
10570 {
10571 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10572 }
10573 return resultobj;
10574fail:
10575 return NULL;
10576}
10577
10578
10579SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10580 PyObject *resultobj = 0;
10581 wxRegion *arg1 = (wxRegion *) 0 ;
10582 int arg2 ;
10583 int arg3 ;
10584 wxRegionContain result;
10585 void *argp1 = 0 ;
10586 int res1 = 0 ;
10587 int val2 ;
10588 int ecode2 = 0 ;
10589 int val3 ;
10590 int ecode3 = 0 ;
10591 PyObject * obj0 = 0 ;
10592 PyObject * obj1 = 0 ;
10593 PyObject * obj2 = 0 ;
10594 char * kwnames[] = {
10595 (char *) "self",(char *) "x",(char *) "y", NULL
10596 };
10597
10598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10600 if (!SWIG_IsOK(res1)) {
10601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10602 }
10603 arg1 = reinterpret_cast< wxRegion * >(argp1);
10604 ecode2 = SWIG_AsVal_int(obj1, &val2);
10605 if (!SWIG_IsOK(ecode2)) {
10606 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10607 }
10608 arg2 = static_cast< int >(val2);
10609 ecode3 = SWIG_AsVal_int(obj2, &val3);
10610 if (!SWIG_IsOK(ecode3)) {
10611 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10612 }
10613 arg3 = static_cast< int >(val3);
10614 {
10615 PyThreadState* __tstate = wxPyBeginAllowThreads();
10616 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10617 wxPyEndAllowThreads(__tstate);
10618 if (PyErr_Occurred()) SWIG_fail;
10619 }
10620 resultobj = SWIG_From_int(static_cast< int >(result));
10621 return resultobj;
10622fail:
10623 return NULL;
10624}
10625
10626
10627SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10628 PyObject *resultobj = 0;
10629 wxRegion *arg1 = (wxRegion *) 0 ;
10630 wxPoint *arg2 = 0 ;
10631 wxRegionContain result;
10632 void *argp1 = 0 ;
10633 int res1 = 0 ;
10634 wxPoint temp2 ;
10635 PyObject * obj0 = 0 ;
10636 PyObject * obj1 = 0 ;
10637 char * kwnames[] = {
10638 (char *) "self",(char *) "pt", NULL
10639 };
10640
10641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10643 if (!SWIG_IsOK(res1)) {
10644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10645 }
10646 arg1 = reinterpret_cast< wxRegion * >(argp1);
10647 {
10648 arg2 = &temp2;
10649 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10650 }
10651 {
10652 PyThreadState* __tstate = wxPyBeginAllowThreads();
10653 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10654 wxPyEndAllowThreads(__tstate);
10655 if (PyErr_Occurred()) SWIG_fail;
10656 }
10657 resultobj = SWIG_From_int(static_cast< int >(result));
10658 return resultobj;
10659fail:
10660 return NULL;
10661}
10662
10663
10664SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10665 PyObject *resultobj = 0;
10666 wxRegion *arg1 = (wxRegion *) 0 ;
10667 wxRect *arg2 = 0 ;
10668 wxRegionContain result;
10669 void *argp1 = 0 ;
10670 int res1 = 0 ;
10671 wxRect temp2 ;
10672 PyObject * obj0 = 0 ;
10673 PyObject * obj1 = 0 ;
10674 char * kwnames[] = {
10675 (char *) "self",(char *) "rect", NULL
10676 };
10677
10678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10680 if (!SWIG_IsOK(res1)) {
10681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10682 }
10683 arg1 = reinterpret_cast< wxRegion * >(argp1);
10684 {
10685 arg2 = &temp2;
10686 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10687 }
10688 {
10689 PyThreadState* __tstate = wxPyBeginAllowThreads();
10690 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10691 wxPyEndAllowThreads(__tstate);
10692 if (PyErr_Occurred()) SWIG_fail;
10693 }
10694 resultobj = SWIG_From_int(static_cast< int >(result));
10695 return resultobj;
10696fail:
10697 return NULL;
10698}
10699
10700
10701SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10702 PyObject *resultobj = 0;
10703 wxRegion *arg1 = (wxRegion *) 0 ;
10704 int arg2 ;
10705 int arg3 ;
10706 int arg4 ;
10707 int arg5 ;
10708 wxRegionContain result;
10709 void *argp1 = 0 ;
10710 int res1 = 0 ;
10711 int val2 ;
10712 int ecode2 = 0 ;
10713 int val3 ;
10714 int ecode3 = 0 ;
10715 int val4 ;
10716 int ecode4 = 0 ;
10717 int val5 ;
10718 int ecode5 = 0 ;
10719 PyObject * obj0 = 0 ;
10720 PyObject * obj1 = 0 ;
10721 PyObject * obj2 = 0 ;
10722 PyObject * obj3 = 0 ;
10723 PyObject * obj4 = 0 ;
10724 char * kwnames[] = {
10725 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10726 };
10727
10728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10730 if (!SWIG_IsOK(res1)) {
10731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10732 }
10733 arg1 = reinterpret_cast< wxRegion * >(argp1);
10734 ecode2 = SWIG_AsVal_int(obj1, &val2);
10735 if (!SWIG_IsOK(ecode2)) {
10736 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10737 }
10738 arg2 = static_cast< int >(val2);
10739 ecode3 = SWIG_AsVal_int(obj2, &val3);
10740 if (!SWIG_IsOK(ecode3)) {
10741 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10742 }
10743 arg3 = static_cast< int >(val3);
10744 ecode4 = SWIG_AsVal_int(obj3, &val4);
10745 if (!SWIG_IsOK(ecode4)) {
10746 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10747 }
10748 arg4 = static_cast< int >(val4);
10749 ecode5 = SWIG_AsVal_int(obj4, &val5);
10750 if (!SWIG_IsOK(ecode5)) {
10751 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10752 }
10753 arg5 = static_cast< int >(val5);
10754 {
10755 PyThreadState* __tstate = wxPyBeginAllowThreads();
10756 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10757 wxPyEndAllowThreads(__tstate);
10758 if (PyErr_Occurred()) SWIG_fail;
10759 }
10760 resultobj = SWIG_From_int(static_cast< int >(result));
10761 return resultobj;
10762fail:
10763 return NULL;
d55e5bfc
RD
10764}
10765
10766
1bd55598
RD
10767SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10768 PyObject *resultobj = 0;
10769 wxRegion *arg1 = (wxRegion *) 0 ;
10770 wxRect result;
10771 void *argp1 = 0 ;
10772 int res1 = 0 ;
10773 PyObject *swig_obj[1] ;
10774
10775 if (!args) SWIG_fail;
10776 swig_obj[0] = args;
10777 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10778 if (!SWIG_IsOK(res1)) {
10779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10780 }
10781 arg1 = reinterpret_cast< wxRegion * >(argp1);
10782 {
10783 PyThreadState* __tstate = wxPyBeginAllowThreads();
10784 result = (arg1)->GetBox();
10785 wxPyEndAllowThreads(__tstate);
10786 if (PyErr_Occurred()) SWIG_fail;
10787 }
10788 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10789 return resultobj;
10790fail:
10791 return NULL;
10792}
10793
10794
10795SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10796 PyObject *resultobj = 0;
10797 wxRegion *arg1 = (wxRegion *) 0 ;
10798 int arg2 ;
10799 int arg3 ;
10800 int arg4 ;
10801 int arg5 ;
10802 bool result;
10803 void *argp1 = 0 ;
10804 int res1 = 0 ;
10805 int val2 ;
10806 int ecode2 = 0 ;
10807 int val3 ;
10808 int ecode3 = 0 ;
10809 int val4 ;
10810 int ecode4 = 0 ;
10811 int val5 ;
10812 int ecode5 = 0 ;
10813 PyObject * obj0 = 0 ;
10814 PyObject * obj1 = 0 ;
10815 PyObject * obj2 = 0 ;
10816 PyObject * obj3 = 0 ;
10817 PyObject * obj4 = 0 ;
10818 char * kwnames[] = {
10819 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10820 };
10821
10822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10824 if (!SWIG_IsOK(res1)) {
10825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
10826 }
10827 arg1 = reinterpret_cast< wxRegion * >(argp1);
10828 ecode2 = SWIG_AsVal_int(obj1, &val2);
10829 if (!SWIG_IsOK(ecode2)) {
10830 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
10831 }
10832 arg2 = static_cast< int >(val2);
10833 ecode3 = SWIG_AsVal_int(obj2, &val3);
10834 if (!SWIG_IsOK(ecode3)) {
10835 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
10836 }
10837 arg3 = static_cast< int >(val3);
10838 ecode4 = SWIG_AsVal_int(obj3, &val4);
10839 if (!SWIG_IsOK(ecode4)) {
10840 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
10841 }
10842 arg4 = static_cast< int >(val4);
10843 ecode5 = SWIG_AsVal_int(obj4, &val5);
10844 if (!SWIG_IsOK(ecode5)) {
10845 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
10846 }
10847 arg5 = static_cast< int >(val5);
10848 {
10849 PyThreadState* __tstate = wxPyBeginAllowThreads();
10850 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
10851 wxPyEndAllowThreads(__tstate);
10852 if (PyErr_Occurred()) SWIG_fail;
10853 }
10854 {
10855 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10856 }
10857 return resultobj;
10858fail:
10859 return NULL;
10860}
10861
10862
10863SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10864 PyObject *resultobj = 0;
10865 wxRegion *arg1 = (wxRegion *) 0 ;
10866 wxRect *arg2 = 0 ;
10867 bool result;
10868 void *argp1 = 0 ;
10869 int res1 = 0 ;
10870 wxRect temp2 ;
10871 PyObject * obj0 = 0 ;
10872 PyObject * obj1 = 0 ;
10873 char * kwnames[] = {
10874 (char *) "self",(char *) "rect", NULL
10875 };
10876
10877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
10878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10879 if (!SWIG_IsOK(res1)) {
10880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10881 }
10882 arg1 = reinterpret_cast< wxRegion * >(argp1);
10883 {
10884 arg2 = &temp2;
10885 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10886 }
10887 {
10888 PyThreadState* __tstate = wxPyBeginAllowThreads();
10889 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
10890 wxPyEndAllowThreads(__tstate);
10891 if (PyErr_Occurred()) SWIG_fail;
10892 }
10893 {
10894 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10895 }
10896 return resultobj;
10897fail:
10898 return NULL;
10899}
10900
10901
10902SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10903 PyObject *resultobj = 0;
10904 wxRegion *arg1 = (wxRegion *) 0 ;
10905 wxRegion *arg2 = 0 ;
10906 bool result;
10907 void *argp1 = 0 ;
10908 int res1 = 0 ;
10909 void *argp2 = 0 ;
10910 int res2 = 0 ;
10911 PyObject * obj0 = 0 ;
10912 PyObject * obj1 = 0 ;
10913 char * kwnames[] = {
10914 (char *) "self",(char *) "region", NULL
10915 };
10916
10917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10919 if (!SWIG_IsOK(res1)) {
10920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10921 }
10922 arg1 = reinterpret_cast< wxRegion * >(argp1);
10923 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10924 if (!SWIG_IsOK(res2)) {
10925 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10926 }
10927 if (!argp2) {
10928 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10929 }
10930 arg2 = reinterpret_cast< wxRegion * >(argp2);
10931 {
10932 PyThreadState* __tstate = wxPyBeginAllowThreads();
10933 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
10934 wxPyEndAllowThreads(__tstate);
10935 if (PyErr_Occurred()) SWIG_fail;
10936 }
10937 {
10938 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10939 }
10940 return resultobj;
10941fail:
10942 return NULL;
d55e5bfc
RD
10943}
10944
10945
1bd55598
RD
10946SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10947 PyObject *resultobj = 0;
10948 wxRegion *arg1 = (wxRegion *) 0 ;
10949 bool result;
10950 void *argp1 = 0 ;
10951 int res1 = 0 ;
10952 PyObject *swig_obj[1] ;
10953
10954 if (!args) SWIG_fail;
10955 swig_obj[0] = args;
10956 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10957 if (!SWIG_IsOK(res1)) {
10958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
10959 }
10960 arg1 = reinterpret_cast< wxRegion * >(argp1);
10961 {
10962 PyThreadState* __tstate = wxPyBeginAllowThreads();
10963 result = (bool)(arg1)->IsEmpty();
10964 wxPyEndAllowThreads(__tstate);
10965 if (PyErr_Occurred()) SWIG_fail;
10966 }
10967 {
10968 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10969 }
10970 return resultobj;
10971fail:
10972 return NULL;
10973}
10974
10975
f5263701
RD
10976SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10977 PyObject *resultobj = 0;
10978 wxRegion *arg1 = (wxRegion *) 0 ;
10979 wxRegion *arg2 = 0 ;
10980 bool result;
10981 void *argp1 = 0 ;
10982 int res1 = 0 ;
10983 void *argp2 = 0 ;
10984 int res2 = 0 ;
10985 PyObject * obj0 = 0 ;
10986 PyObject * obj1 = 0 ;
10987 char * kwnames[] = {
10988 (char *) "self",(char *) "region", NULL
10989 };
10990
10991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
10992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10993 if (!SWIG_IsOK(res1)) {
10994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
10995 }
10996 arg1 = reinterpret_cast< wxRegion * >(argp1);
10997 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10998 if (!SWIG_IsOK(res2)) {
10999 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11000 }
11001 if (!argp2) {
11002 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11003 }
11004 arg2 = reinterpret_cast< wxRegion * >(argp2);
11005 {
11006 PyThreadState* __tstate = wxPyBeginAllowThreads();
11007 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
11008 wxPyEndAllowThreads(__tstate);
11009 if (PyErr_Occurred()) SWIG_fail;
11010 }
11011 {
11012 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11013 }
11014 return resultobj;
11015fail:
11016 return NULL;
11017}
11018
11019
1bd55598
RD
11020SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11021 PyObject *resultobj = 0;
11022 wxRegion *arg1 = (wxRegion *) 0 ;
11023 int arg2 ;
11024 int arg3 ;
11025 int arg4 ;
11026 int arg5 ;
11027 bool result;
11028 void *argp1 = 0 ;
11029 int res1 = 0 ;
11030 int val2 ;
11031 int ecode2 = 0 ;
11032 int val3 ;
11033 int ecode3 = 0 ;
11034 int val4 ;
11035 int ecode4 = 0 ;
11036 int val5 ;
11037 int ecode5 = 0 ;
11038 PyObject * obj0 = 0 ;
11039 PyObject * obj1 = 0 ;
11040 PyObject * obj2 = 0 ;
11041 PyObject * obj3 = 0 ;
11042 PyObject * obj4 = 0 ;
11043 char * kwnames[] = {
11044 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11045 };
11046
11047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11049 if (!SWIG_IsOK(res1)) {
11050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11051 }
11052 arg1 = reinterpret_cast< wxRegion * >(argp1);
11053 ecode2 = SWIG_AsVal_int(obj1, &val2);
11054 if (!SWIG_IsOK(ecode2)) {
11055 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11056 }
11057 arg2 = static_cast< int >(val2);
11058 ecode3 = SWIG_AsVal_int(obj2, &val3);
11059 if (!SWIG_IsOK(ecode3)) {
11060 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11061 }
11062 arg3 = static_cast< int >(val3);
11063 ecode4 = SWIG_AsVal_int(obj3, &val4);
11064 if (!SWIG_IsOK(ecode4)) {
11065 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11066 }
11067 arg4 = static_cast< int >(val4);
11068 ecode5 = SWIG_AsVal_int(obj4, &val5);
11069 if (!SWIG_IsOK(ecode5)) {
11070 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11071 }
11072 arg5 = static_cast< int >(val5);
11073 {
11074 PyThreadState* __tstate = wxPyBeginAllowThreads();
11075 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11076 wxPyEndAllowThreads(__tstate);
11077 if (PyErr_Occurred()) SWIG_fail;
11078 }
11079 {
11080 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11081 }
11082 return resultobj;
11083fail:
11084 return NULL;
11085}
11086
11087
11088SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11089 PyObject *resultobj = 0;
11090 wxRegion *arg1 = (wxRegion *) 0 ;
11091 wxRect *arg2 = 0 ;
11092 bool result;
11093 void *argp1 = 0 ;
11094 int res1 = 0 ;
11095 wxRect temp2 ;
11096 PyObject * obj0 = 0 ;
11097 PyObject * obj1 = 0 ;
11098 char * kwnames[] = {
11099 (char *) "self",(char *) "rect", NULL
11100 };
11101
11102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
11103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11104 if (!SWIG_IsOK(res1)) {
11105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11106 }
11107 arg1 = reinterpret_cast< wxRegion * >(argp1);
11108 {
11109 arg2 = &temp2;
11110 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11111 }
11112 {
11113 PyThreadState* __tstate = wxPyBeginAllowThreads();
11114 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11115 wxPyEndAllowThreads(__tstate);
11116 if (PyErr_Occurred()) SWIG_fail;
11117 }
11118 {
11119 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11120 }
11121 return resultobj;
11122fail:
11123 return NULL;
11124}
11125
11126
11127SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11128 PyObject *resultobj = 0;
11129 wxRegion *arg1 = (wxRegion *) 0 ;
11130 wxRegion *arg2 = 0 ;
11131 bool result;
11132 void *argp1 = 0 ;
11133 int res1 = 0 ;
11134 void *argp2 = 0 ;
11135 int res2 = 0 ;
11136 PyObject * obj0 = 0 ;
11137 PyObject * obj1 = 0 ;
11138 char * kwnames[] = {
11139 (char *) "self",(char *) "region", NULL
11140 };
11141
11142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11144 if (!SWIG_IsOK(res1)) {
11145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11146 }
11147 arg1 = reinterpret_cast< wxRegion * >(argp1);
11148 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11149 if (!SWIG_IsOK(res2)) {
11150 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11151 }
11152 if (!argp2) {
11153 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11154 }
11155 arg2 = reinterpret_cast< wxRegion * >(argp2);
11156 {
11157 PyThreadState* __tstate = wxPyBeginAllowThreads();
11158 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11159 wxPyEndAllowThreads(__tstate);
11160 if (PyErr_Occurred()) SWIG_fail;
11161 }
11162 {
11163 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11164 }
11165 return resultobj;
11166fail:
11167 return NULL;
11168}
11169
11170
11171SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11172 PyObject *resultobj = 0;
11173 wxRegion *arg1 = (wxRegion *) 0 ;
11174 int arg2 ;
11175 int arg3 ;
11176 int arg4 ;
11177 int arg5 ;
11178 bool result;
11179 void *argp1 = 0 ;
11180 int res1 = 0 ;
11181 int val2 ;
11182 int ecode2 = 0 ;
11183 int val3 ;
11184 int ecode3 = 0 ;
11185 int val4 ;
11186 int ecode4 = 0 ;
11187 int val5 ;
11188 int ecode5 = 0 ;
11189 PyObject * obj0 = 0 ;
11190 PyObject * obj1 = 0 ;
11191 PyObject * obj2 = 0 ;
11192 PyObject * obj3 = 0 ;
11193 PyObject * obj4 = 0 ;
11194 char * kwnames[] = {
11195 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11196 };
11197
11198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11200 if (!SWIG_IsOK(res1)) {
11201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11202 }
11203 arg1 = reinterpret_cast< wxRegion * >(argp1);
11204 ecode2 = SWIG_AsVal_int(obj1, &val2);
11205 if (!SWIG_IsOK(ecode2)) {
11206 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11207 }
11208 arg2 = static_cast< int >(val2);
11209 ecode3 = SWIG_AsVal_int(obj2, &val3);
11210 if (!SWIG_IsOK(ecode3)) {
11211 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11212 }
11213 arg3 = static_cast< int >(val3);
11214 ecode4 = SWIG_AsVal_int(obj3, &val4);
11215 if (!SWIG_IsOK(ecode4)) {
11216 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11217 }
11218 arg4 = static_cast< int >(val4);
11219 ecode5 = SWIG_AsVal_int(obj4, &val5);
11220 if (!SWIG_IsOK(ecode5)) {
11221 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11222 }
11223 arg5 = static_cast< int >(val5);
11224 {
11225 PyThreadState* __tstate = wxPyBeginAllowThreads();
11226 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11227 wxPyEndAllowThreads(__tstate);
11228 if (PyErr_Occurred()) SWIG_fail;
11229 }
11230 {
11231 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11232 }
11233 return resultobj;
11234fail:
11235 return NULL;
11236}
11237
11238
11239SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11240 PyObject *resultobj = 0;
11241 wxRegion *arg1 = (wxRegion *) 0 ;
11242 wxRect *arg2 = 0 ;
11243 bool result;
11244 void *argp1 = 0 ;
11245 int res1 = 0 ;
11246 wxRect temp2 ;
11247 PyObject * obj0 = 0 ;
11248 PyObject * obj1 = 0 ;
11249 char * kwnames[] = {
11250 (char *) "self",(char *) "rect", NULL
11251 };
11252
11253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
11254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11255 if (!SWIG_IsOK(res1)) {
11256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11257 }
11258 arg1 = reinterpret_cast< wxRegion * >(argp1);
11259 {
11260 arg2 = &temp2;
11261 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11262 }
11263 {
11264 PyThreadState* __tstate = wxPyBeginAllowThreads();
11265 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11266 wxPyEndAllowThreads(__tstate);
11267 if (PyErr_Occurred()) SWIG_fail;
11268 }
11269 {
11270 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11271 }
11272 return resultobj;
11273fail:
11274 return NULL;
11275}
11276
11277
11278SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11279 PyObject *resultobj = 0;
11280 wxRegion *arg1 = (wxRegion *) 0 ;
11281 wxRegion *arg2 = 0 ;
11282 bool result;
11283 void *argp1 = 0 ;
11284 int res1 = 0 ;
11285 void *argp2 = 0 ;
11286 int res2 = 0 ;
11287 PyObject * obj0 = 0 ;
11288 PyObject * obj1 = 0 ;
11289 char * kwnames[] = {
11290 (char *) "self",(char *) "region", NULL
11291 };
11292
11293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11295 if (!SWIG_IsOK(res1)) {
11296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11297 }
11298 arg1 = reinterpret_cast< wxRegion * >(argp1);
11299 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11300 if (!SWIG_IsOK(res2)) {
11301 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11302 }
11303 if (!argp2) {
11304 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11305 }
11306 arg2 = reinterpret_cast< wxRegion * >(argp2);
11307 {
11308 PyThreadState* __tstate = wxPyBeginAllowThreads();
11309 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11310 wxPyEndAllowThreads(__tstate);
11311 if (PyErr_Occurred()) SWIG_fail;
11312 }
11313 {
11314 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11315 }
11316 return resultobj;
11317fail:
11318 return NULL;
11319}
11320
11321
11322SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11323 PyObject *resultobj = 0;
11324 wxRegion *arg1 = (wxRegion *) 0 ;
11325 int arg2 ;
11326 int arg3 ;
11327 int arg4 ;
11328 int arg5 ;
11329 bool result;
11330 void *argp1 = 0 ;
11331 int res1 = 0 ;
11332 int val2 ;
11333 int ecode2 = 0 ;
11334 int val3 ;
11335 int ecode3 = 0 ;
11336 int val4 ;
11337 int ecode4 = 0 ;
11338 int val5 ;
11339 int ecode5 = 0 ;
11340 PyObject * obj0 = 0 ;
11341 PyObject * obj1 = 0 ;
11342 PyObject * obj2 = 0 ;
11343 PyObject * obj3 = 0 ;
11344 PyObject * obj4 = 0 ;
11345 char * kwnames[] = {
11346 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11347 };
11348
11349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11351 if (!SWIG_IsOK(res1)) {
11352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11353 }
11354 arg1 = reinterpret_cast< wxRegion * >(argp1);
11355 ecode2 = SWIG_AsVal_int(obj1, &val2);
11356 if (!SWIG_IsOK(ecode2)) {
11357 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11358 }
11359 arg2 = static_cast< int >(val2);
11360 ecode3 = SWIG_AsVal_int(obj2, &val3);
11361 if (!SWIG_IsOK(ecode3)) {
11362 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11363 }
11364 arg3 = static_cast< int >(val3);
11365 ecode4 = SWIG_AsVal_int(obj3, &val4);
11366 if (!SWIG_IsOK(ecode4)) {
11367 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11368 }
11369 arg4 = static_cast< int >(val4);
11370 ecode5 = SWIG_AsVal_int(obj4, &val5);
11371 if (!SWIG_IsOK(ecode5)) {
11372 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11373 }
11374 arg5 = static_cast< int >(val5);
11375 {
11376 PyThreadState* __tstate = wxPyBeginAllowThreads();
11377 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11378 wxPyEndAllowThreads(__tstate);
11379 if (PyErr_Occurred()) SWIG_fail;
11380 }
11381 {
11382 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11383 }
11384 return resultobj;
11385fail:
11386 return NULL;
11387}
11388
11389
11390SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11391 PyObject *resultobj = 0;
11392 wxRegion *arg1 = (wxRegion *) 0 ;
11393 wxRect *arg2 = 0 ;
11394 bool result;
11395 void *argp1 = 0 ;
11396 int res1 = 0 ;
11397 wxRect temp2 ;
11398 PyObject * obj0 = 0 ;
11399 PyObject * obj1 = 0 ;
11400 char * kwnames[] = {
11401 (char *) "self",(char *) "rect", NULL
11402 };
11403
11404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11406 if (!SWIG_IsOK(res1)) {
11407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11408 }
11409 arg1 = reinterpret_cast< wxRegion * >(argp1);
11410 {
11411 arg2 = &temp2;
11412 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11413 }
11414 {
11415 PyThreadState* __tstate = wxPyBeginAllowThreads();
11416 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11417 wxPyEndAllowThreads(__tstate);
11418 if (PyErr_Occurred()) SWIG_fail;
11419 }
11420 {
11421 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11422 }
11423 return resultobj;
11424fail:
11425 return NULL;
11426}
11427
11428
11429SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11430 PyObject *resultobj = 0;
11431 wxRegion *arg1 = (wxRegion *) 0 ;
11432 wxRegion *arg2 = 0 ;
11433 bool result;
11434 void *argp1 = 0 ;
11435 int res1 = 0 ;
11436 void *argp2 = 0 ;
11437 int res2 = 0 ;
11438 PyObject * obj0 = 0 ;
11439 PyObject * obj1 = 0 ;
11440 char * kwnames[] = {
11441 (char *) "self",(char *) "region", NULL
11442 };
11443
11444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11446 if (!SWIG_IsOK(res1)) {
11447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11448 }
11449 arg1 = reinterpret_cast< wxRegion * >(argp1);
11450 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11451 if (!SWIG_IsOK(res2)) {
11452 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11453 }
11454 if (!argp2) {
11455 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11456 }
11457 arg2 = reinterpret_cast< wxRegion * >(argp2);
11458 {
11459 PyThreadState* __tstate = wxPyBeginAllowThreads();
11460 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11461 wxPyEndAllowThreads(__tstate);
11462 if (PyErr_Occurred()) SWIG_fail;
11463 }
11464 {
11465 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11466 }
11467 return resultobj;
11468fail:
11469 return NULL;
d55e5bfc
RD
11470}
11471
11472
1bd55598
RD
11473SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11474 PyObject *resultobj = 0;
11475 wxRegion *arg1 = (wxRegion *) 0 ;
11476 SwigValueWrapper<wxBitmap > result;
11477 void *argp1 = 0 ;
11478 int res1 = 0 ;
11479 PyObject *swig_obj[1] ;
11480
11481 if (!args) SWIG_fail;
11482 swig_obj[0] = args;
11483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11484 if (!SWIG_IsOK(res1)) {
11485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11486 }
11487 arg1 = reinterpret_cast< wxRegion * >(argp1);
11488 {
11489 PyThreadState* __tstate = wxPyBeginAllowThreads();
11490 result = (arg1)->ConvertToBitmap();
11491 wxPyEndAllowThreads(__tstate);
11492 if (PyErr_Occurred()) SWIG_fail;
11493 }
11494 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11495 return resultobj;
11496fail:
11497 return NULL;
11498}
11499
11500
11501SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11502 PyObject *resultobj = 0;
11503 wxRegion *arg1 = (wxRegion *) 0 ;
11504 wxBitmap *arg2 = 0 ;
11505 bool result;
11506 void *argp1 = 0 ;
11507 int res1 = 0 ;
11508 void *argp2 = 0 ;
11509 int res2 = 0 ;
11510 PyObject * obj0 = 0 ;
11511 PyObject * obj1 = 0 ;
11512 char * kwnames[] = {
11513 (char *) "self",(char *) "bmp", NULL
11514 };
11515
11516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11518 if (!SWIG_IsOK(res1)) {
11519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11520 }
11521 arg1 = reinterpret_cast< wxRegion * >(argp1);
11522 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11523 if (!SWIG_IsOK(res2)) {
11524 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11525 }
11526 if (!argp2) {
11527 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11528 }
11529 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11530 {
11531 PyThreadState* __tstate = wxPyBeginAllowThreads();
11532 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11533 wxPyEndAllowThreads(__tstate);
11534 if (PyErr_Occurred()) SWIG_fail;
11535 }
11536 {
11537 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11538 }
11539 return resultobj;
11540fail:
11541 return NULL;
11542}
11543
11544
11545SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11546 PyObject *resultobj = 0;
11547 wxRegion *arg1 = (wxRegion *) 0 ;
11548 wxBitmap *arg2 = 0 ;
11549 wxColour *arg3 = 0 ;
11550 int arg4 = (int) 0 ;
11551 bool result;
11552 void *argp1 = 0 ;
11553 int res1 = 0 ;
11554 void *argp2 = 0 ;
11555 int res2 = 0 ;
11556 wxColour temp3 ;
11557 int val4 ;
11558 int ecode4 = 0 ;
11559 PyObject * obj0 = 0 ;
11560 PyObject * obj1 = 0 ;
11561 PyObject * obj2 = 0 ;
11562 PyObject * obj3 = 0 ;
11563 char * kwnames[] = {
11564 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11565 };
11566
11567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11569 if (!SWIG_IsOK(res1)) {
11570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11571 }
11572 arg1 = reinterpret_cast< wxRegion * >(argp1);
11573 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11574 if (!SWIG_IsOK(res2)) {
11575 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11576 }
11577 if (!argp2) {
11578 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11579 }
11580 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11581 {
11582 arg3 = &temp3;
11583 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11584 }
11585 if (obj3) {
11586 ecode4 = SWIG_AsVal_int(obj3, &val4);
11587 if (!SWIG_IsOK(ecode4)) {
11588 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11589 }
11590 arg4 = static_cast< int >(val4);
11591 }
11592 {
11593 PyThreadState* __tstate = wxPyBeginAllowThreads();
11594 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11595 wxPyEndAllowThreads(__tstate);
11596 if (PyErr_Occurred()) SWIG_fail;
11597 }
11598 {
11599 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11600 }
11601 return resultobj;
11602fail:
11603 return NULL;
d55e5bfc
RD
11604}
11605
11606
1bd55598
RD
11607SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11608 PyObject *obj;
11609 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11610 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11611 return SWIG_Py_Void();
d55e5bfc
RD
11612}
11613
1bd55598
RD
11614SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11615 return SWIG_Python_InitShadowInstance(args);
11616}
d55e5bfc 11617
1bd55598
RD
11618SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11619 PyObject *resultobj = 0;
11620 wxRegion *arg1 = 0 ;
11621 wxRegionIterator *result = 0 ;
11622 void *argp1 = 0 ;
11623 int res1 = 0 ;
11624 PyObject * obj0 = 0 ;
11625 char * kwnames[] = {
11626 (char *) "region", NULL
11627 };
11628
11629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11630 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11631 if (!SWIG_IsOK(res1)) {
11632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11633 }
11634 if (!argp1) {
11635 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11636 }
11637 arg1 = reinterpret_cast< wxRegion * >(argp1);
11638 {
11639 if (!wxPyCheckForApp()) SWIG_fail;
11640 PyThreadState* __tstate = wxPyBeginAllowThreads();
11641 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11642 wxPyEndAllowThreads(__tstate);
11643 if (PyErr_Occurred()) SWIG_fail;
11644 }
11645 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11646 return resultobj;
11647fail:
11648 return NULL;
d55e5bfc
RD
11649}
11650
11651
1bd55598
RD
11652SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11653 PyObject *resultobj = 0;
11654 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11655 void *argp1 = 0 ;
11656 int res1 = 0 ;
11657 PyObject *swig_obj[1] ;
11658
11659 if (!args) SWIG_fail;
11660 swig_obj[0] = args;
11661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11662 if (!SWIG_IsOK(res1)) {
11663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11664 }
11665 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11666 {
11667 PyThreadState* __tstate = wxPyBeginAllowThreads();
11668 delete arg1;
d55e5bfc 11669
1bd55598
RD
11670 wxPyEndAllowThreads(__tstate);
11671 if (PyErr_Occurred()) SWIG_fail;
11672 }
11673 resultobj = SWIG_Py_Void();
11674 return resultobj;
11675fail:
11676 return NULL;
d55e5bfc
RD
11677}
11678
11679
1bd55598
RD
11680SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11681 PyObject *resultobj = 0;
11682 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11683 int result;
11684 void *argp1 = 0 ;
11685 int res1 = 0 ;
11686 PyObject *swig_obj[1] ;
11687
11688 if (!args) SWIG_fail;
11689 swig_obj[0] = args;
11690 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11691 if (!SWIG_IsOK(res1)) {
11692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11693 }
11694 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11695 {
11696 PyThreadState* __tstate = wxPyBeginAllowThreads();
11697 result = (int)(arg1)->GetX();
11698 wxPyEndAllowThreads(__tstate);
11699 if (PyErr_Occurred()) SWIG_fail;
11700 }
11701 resultobj = SWIG_From_int(static_cast< int >(result));
11702 return resultobj;
11703fail:
11704 return NULL;
d55e5bfc
RD
11705}
11706
11707
1bd55598
RD
11708SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11709 PyObject *resultobj = 0;
11710 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11711 int result;
11712 void *argp1 = 0 ;
11713 int res1 = 0 ;
11714 PyObject *swig_obj[1] ;
11715
11716 if (!args) SWIG_fail;
11717 swig_obj[0] = args;
11718 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11719 if (!SWIG_IsOK(res1)) {
11720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11721 }
11722 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11723 {
11724 PyThreadState* __tstate = wxPyBeginAllowThreads();
11725 result = (int)(arg1)->GetY();
11726 wxPyEndAllowThreads(__tstate);
11727 if (PyErr_Occurred()) SWIG_fail;
11728 }
11729 resultobj = SWIG_From_int(static_cast< int >(result));
11730 return resultobj;
11731fail:
11732 return NULL;
d55e5bfc
RD
11733}
11734
11735
1bd55598
RD
11736SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11737 PyObject *resultobj = 0;
11738 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11739 int result;
11740 void *argp1 = 0 ;
11741 int res1 = 0 ;
11742 PyObject *swig_obj[1] ;
11743
11744 if (!args) SWIG_fail;
11745 swig_obj[0] = args;
11746 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11747 if (!SWIG_IsOK(res1)) {
11748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11749 }
11750 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11751 {
11752 PyThreadState* __tstate = wxPyBeginAllowThreads();
11753 result = (int)(arg1)->GetW();
11754 wxPyEndAllowThreads(__tstate);
11755 if (PyErr_Occurred()) SWIG_fail;
11756 }
11757 resultobj = SWIG_From_int(static_cast< int >(result));
11758 return resultobj;
11759fail:
11760 return NULL;
d55e5bfc
RD
11761}
11762
11763
1bd55598
RD
11764SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11765 PyObject *resultobj = 0;
11766 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11767 int result;
11768 void *argp1 = 0 ;
11769 int res1 = 0 ;
11770 PyObject *swig_obj[1] ;
11771
11772 if (!args) SWIG_fail;
11773 swig_obj[0] = args;
11774 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11775 if (!SWIG_IsOK(res1)) {
11776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11777 }
11778 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11779 {
11780 PyThreadState* __tstate = wxPyBeginAllowThreads();
11781 result = (int)(arg1)->GetWidth();
11782 wxPyEndAllowThreads(__tstate);
11783 if (PyErr_Occurred()) SWIG_fail;
11784 }
11785 resultobj = SWIG_From_int(static_cast< int >(result));
11786 return resultobj;
11787fail:
11788 return NULL;
d55e5bfc
RD
11789}
11790
11791
1bd55598
RD
11792SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11793 PyObject *resultobj = 0;
11794 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11795 int result;
11796 void *argp1 = 0 ;
11797 int res1 = 0 ;
11798 PyObject *swig_obj[1] ;
11799
11800 if (!args) SWIG_fail;
11801 swig_obj[0] = args;
11802 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11803 if (!SWIG_IsOK(res1)) {
11804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11805 }
11806 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11807 {
11808 PyThreadState* __tstate = wxPyBeginAllowThreads();
11809 result = (int)(arg1)->GetH();
11810 wxPyEndAllowThreads(__tstate);
11811 if (PyErr_Occurred()) SWIG_fail;
11812 }
11813 resultobj = SWIG_From_int(static_cast< int >(result));
11814 return resultobj;
11815fail:
11816 return NULL;
d07096ad
RD
11817}
11818
11819
1bd55598
RD
11820SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11821 PyObject *resultobj = 0;
11822 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11823 int result;
11824 void *argp1 = 0 ;
11825 int res1 = 0 ;
11826 PyObject *swig_obj[1] ;
11827
11828 if (!args) SWIG_fail;
11829 swig_obj[0] = args;
11830 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11831 if (!SWIG_IsOK(res1)) {
11832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11833 }
11834 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11835 {
11836 PyThreadState* __tstate = wxPyBeginAllowThreads();
11837 result = (int)(arg1)->GetHeight();
11838 wxPyEndAllowThreads(__tstate);
11839 if (PyErr_Occurred()) SWIG_fail;
11840 }
11841 resultobj = SWIG_From_int(static_cast< int >(result));
11842 return resultobj;
11843fail:
11844 return NULL;
d55e5bfc
RD
11845}
11846
11847
1bd55598
RD
11848SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11849 PyObject *resultobj = 0;
11850 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11851 wxRect result;
11852 void *argp1 = 0 ;
11853 int res1 = 0 ;
11854 PyObject *swig_obj[1] ;
11855
11856 if (!args) SWIG_fail;
11857 swig_obj[0] = args;
11858 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11859 if (!SWIG_IsOK(res1)) {
11860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11861 }
11862 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11863 {
11864 PyThreadState* __tstate = wxPyBeginAllowThreads();
11865 result = (arg1)->GetRect();
11866 wxPyEndAllowThreads(__tstate);
11867 if (PyErr_Occurred()) SWIG_fail;
11868 }
11869 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11870 return resultobj;
11871fail:
11872 return NULL;
d55e5bfc
RD
11873}
11874
11875
1bd55598
RD
11876SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11877 PyObject *resultobj = 0;
11878 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11879 bool result;
11880 void *argp1 = 0 ;
11881 int res1 = 0 ;
11882 PyObject *swig_obj[1] ;
11883
11884 if (!args) SWIG_fail;
11885 swig_obj[0] = args;
11886 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11887 if (!SWIG_IsOK(res1)) {
11888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11889 }
11890 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11891 {
11892 PyThreadState* __tstate = wxPyBeginAllowThreads();
11893 result = (bool)(arg1)->HaveRects();
11894 wxPyEndAllowThreads(__tstate);
11895 if (PyErr_Occurred()) SWIG_fail;
11896 }
11897 {
11898 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11899 }
11900 return resultobj;
11901fail:
11902 return NULL;
d55e5bfc
RD
11903}
11904
11905
1bd55598
RD
11906SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11907 PyObject *resultobj = 0;
11908 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11909 void *argp1 = 0 ;
11910 int res1 = 0 ;
11911 PyObject *swig_obj[1] ;
11912
11913 if (!args) SWIG_fail;
11914 swig_obj[0] = args;
11915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11916 if (!SWIG_IsOK(res1)) {
11917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11918 }
11919 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11920 {
11921 PyThreadState* __tstate = wxPyBeginAllowThreads();
11922 (arg1)->Reset();
11923 wxPyEndAllowThreads(__tstate);
11924 if (PyErr_Occurred()) SWIG_fail;
11925 }
11926 resultobj = SWIG_Py_Void();
11927 return resultobj;
11928fail:
11929 return NULL;
d55e5bfc
RD
11930}
11931
11932
1bd55598
RD
11933SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11934 PyObject *resultobj = 0;
11935 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11936 void *argp1 = 0 ;
11937 int res1 = 0 ;
11938 PyObject *swig_obj[1] ;
11939
11940 if (!args) SWIG_fail;
11941 swig_obj[0] = args;
11942 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11943 if (!SWIG_IsOK(res1)) {
11944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11945 }
11946 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11947 {
11948 PyThreadState* __tstate = wxPyBeginAllowThreads();
11949 wxRegionIterator_Next(arg1);
11950 wxPyEndAllowThreads(__tstate);
11951 if (PyErr_Occurred()) SWIG_fail;
11952 }
11953 resultobj = SWIG_Py_Void();
11954 return resultobj;
11955fail:
11956 return NULL;
070c48b4
RD
11957}
11958
11959
1bd55598
RD
11960SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11961 PyObject *resultobj = 0;
11962 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11963 bool result;
11964 void *argp1 = 0 ;
11965 int res1 = 0 ;
11966 PyObject *swig_obj[1] ;
11967
11968 if (!args) SWIG_fail;
11969 swig_obj[0] = args;
11970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11971 if (!SWIG_IsOK(res1)) {
11972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11973 }
11974 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11975 {
11976 PyThreadState* __tstate = wxPyBeginAllowThreads();
11977 result = (bool)wxRegionIterator___nonzero__(arg1);
11978 wxPyEndAllowThreads(__tstate);
11979 if (PyErr_Occurred()) SWIG_fail;
11980 }
11981 {
11982 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11983 }
11984 return resultobj;
11985fail:
11986 return NULL;
d55e5bfc
RD
11987}
11988
11989
1bd55598
RD
11990SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11991 PyObject *obj;
11992 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11993 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
11994 return SWIG_Py_Void();
d55e5bfc
RD
11995}
11996
1bd55598
RD
11997SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11998 return SWIG_Python_InitShadowInstance(args);
11999}
d55e5bfc 12000
1bd55598
RD
12001SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12002 PyObject *resultobj = 0;
12003 wxNativeFontInfo *result = 0 ;
12004
12005 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12006 {
12007 PyThreadState* __tstate = wxPyBeginAllowThreads();
12008 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12009 wxPyEndAllowThreads(__tstate);
12010 if (PyErr_Occurred()) SWIG_fail;
12011 }
12012 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12013 return resultobj;
12014fail:
12015 return NULL;
d55e5bfc
RD
12016}
12017
12018
1bd55598
RD
12019SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12020 PyObject *resultobj = 0;
12021 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12022 void *argp1 = 0 ;
12023 int res1 = 0 ;
12024 PyObject *swig_obj[1] ;
12025
12026 if (!args) SWIG_fail;
12027 swig_obj[0] = args;
12028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12029 if (!SWIG_IsOK(res1)) {
12030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12031 }
12032 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12033 {
12034 PyThreadState* __tstate = wxPyBeginAllowThreads();
12035 delete arg1;
d55e5bfc 12036
1bd55598
RD
12037 wxPyEndAllowThreads(__tstate);
12038 if (PyErr_Occurred()) SWIG_fail;
12039 }
12040 resultobj = SWIG_Py_Void();
12041 return resultobj;
12042fail:
12043 return NULL;
d55e5bfc
RD
12044}
12045
12046
1bd55598
RD
12047SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12048 PyObject *resultobj = 0;
12049 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12050 void *argp1 = 0 ;
12051 int res1 = 0 ;
12052 PyObject *swig_obj[1] ;
12053
12054 if (!args) SWIG_fail;
12055 swig_obj[0] = args;
12056 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12057 if (!SWIG_IsOK(res1)) {
12058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12059 }
12060 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12061 {
12062 PyThreadState* __tstate = wxPyBeginAllowThreads();
12063 (arg1)->Init();
12064 wxPyEndAllowThreads(__tstate);
12065 if (PyErr_Occurred()) SWIG_fail;
12066 }
12067 resultobj = SWIG_Py_Void();
12068 return resultobj;
12069fail:
12070 return NULL;
12071}
12072
12073
12074SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12075 PyObject *resultobj = 0;
12076 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12077 wxFont *arg2 = 0 ;
12078 void *argp1 = 0 ;
12079 int res1 = 0 ;
12080 void *argp2 = 0 ;
12081 int res2 = 0 ;
12082 PyObject * obj0 = 0 ;
12083 PyObject * obj1 = 0 ;
12084 char * kwnames[] = {
12085 (char *) "self",(char *) "font", NULL
12086 };
12087
12088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12090 if (!SWIG_IsOK(res1)) {
12091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12092 }
12093 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12094 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12095 if (!SWIG_IsOK(res2)) {
12096 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12097 }
12098 if (!argp2) {
12099 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12100 }
12101 arg2 = reinterpret_cast< wxFont * >(argp2);
12102 {
12103 PyThreadState* __tstate = wxPyBeginAllowThreads();
12104 (arg1)->InitFromFont((wxFont const &)*arg2);
12105 wxPyEndAllowThreads(__tstate);
12106 if (PyErr_Occurred()) SWIG_fail;
12107 }
12108 resultobj = SWIG_Py_Void();
12109 return resultobj;
12110fail:
12111 return NULL;
d55e5bfc
RD
12112}
12113
12114
1bd55598
RD
12115SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12116 PyObject *resultobj = 0;
12117 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12118 int result;
12119 void *argp1 = 0 ;
12120 int res1 = 0 ;
12121 PyObject *swig_obj[1] ;
12122
12123 if (!args) SWIG_fail;
12124 swig_obj[0] = args;
12125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12126 if (!SWIG_IsOK(res1)) {
12127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12128 }
12129 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12130 {
12131 PyThreadState* __tstate = wxPyBeginAllowThreads();
12132 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12133 wxPyEndAllowThreads(__tstate);
12134 if (PyErr_Occurred()) SWIG_fail;
12135 }
12136 resultobj = SWIG_From_int(static_cast< int >(result));
12137 return resultobj;
12138fail:
12139 return NULL;
d55e5bfc
RD
12140}
12141
12142
1bd55598
RD
12143SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12144 PyObject *resultobj = 0;
12145 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12146 wxFontStyle result;
12147 void *argp1 = 0 ;
12148 int res1 = 0 ;
12149 PyObject *swig_obj[1] ;
12150
12151 if (!args) SWIG_fail;
12152 swig_obj[0] = args;
12153 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12154 if (!SWIG_IsOK(res1)) {
12155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12156 }
12157 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12158 {
12159 PyThreadState* __tstate = wxPyBeginAllowThreads();
12160 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12161 wxPyEndAllowThreads(__tstate);
12162 if (PyErr_Occurred()) SWIG_fail;
12163 }
12164 resultobj = SWIG_From_int(static_cast< int >(result));
12165 return resultobj;
12166fail:
12167 return NULL;
d55e5bfc
RD
12168}
12169
12170
1bd55598
RD
12171SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12172 PyObject *resultobj = 0;
12173 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12174 wxFontWeight result;
12175 void *argp1 = 0 ;
12176 int res1 = 0 ;
12177 PyObject *swig_obj[1] ;
12178
12179 if (!args) SWIG_fail;
12180 swig_obj[0] = args;
12181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12182 if (!SWIG_IsOK(res1)) {
12183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12184 }
12185 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12186 {
12187 PyThreadState* __tstate = wxPyBeginAllowThreads();
12188 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12189 wxPyEndAllowThreads(__tstate);
12190 if (PyErr_Occurred()) SWIG_fail;
12191 }
12192 resultobj = SWIG_From_int(static_cast< int >(result));
12193 return resultobj;
12194fail:
12195 return NULL;
d55e5bfc
RD
12196}
12197
12198
1bd55598
RD
12199SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12200 PyObject *resultobj = 0;
12201 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12202 bool result;
12203 void *argp1 = 0 ;
12204 int res1 = 0 ;
12205 PyObject *swig_obj[1] ;
12206
12207 if (!args) SWIG_fail;
12208 swig_obj[0] = args;
12209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12210 if (!SWIG_IsOK(res1)) {
12211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12212 }
12213 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12214 {
12215 PyThreadState* __tstate = wxPyBeginAllowThreads();
12216 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12217 wxPyEndAllowThreads(__tstate);
12218 if (PyErr_Occurred()) SWIG_fail;
12219 }
12220 {
12221 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12222 }
12223 return resultobj;
12224fail:
12225 return NULL;
d55e5bfc
RD
12226}
12227
12228
1bd55598
RD
12229SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12230 PyObject *resultobj = 0;
12231 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12232 wxString result;
12233 void *argp1 = 0 ;
12234 int res1 = 0 ;
12235 PyObject *swig_obj[1] ;
12236
12237 if (!args) SWIG_fail;
12238 swig_obj[0] = args;
12239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12240 if (!SWIG_IsOK(res1)) {
12241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12242 }
12243 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12244 {
12245 PyThreadState* __tstate = wxPyBeginAllowThreads();
12246 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12247 wxPyEndAllowThreads(__tstate);
12248 if (PyErr_Occurred()) SWIG_fail;
12249 }
12250 {
12251#if wxUSE_UNICODE
12252 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12253#else
12254 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12255#endif
12256 }
12257 return resultobj;
12258fail:
12259 return NULL;
d55e5bfc
RD
12260}
12261
12262
1bd55598
RD
12263SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12264 PyObject *resultobj = 0;
12265 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12266 wxFontFamily result;
12267 void *argp1 = 0 ;
12268 int res1 = 0 ;
12269 PyObject *swig_obj[1] ;
12270
12271 if (!args) SWIG_fail;
12272 swig_obj[0] = args;
12273 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12274 if (!SWIG_IsOK(res1)) {
12275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12276 }
12277 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12278 {
12279 PyThreadState* __tstate = wxPyBeginAllowThreads();
12280 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12281 wxPyEndAllowThreads(__tstate);
12282 if (PyErr_Occurred()) SWIG_fail;
12283 }
12284 resultobj = SWIG_From_int(static_cast< int >(result));
12285 return resultobj;
12286fail:
12287 return NULL;
d55e5bfc
RD
12288}
12289
12290
1bd55598
RD
12291SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12292 PyObject *resultobj = 0;
12293 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12294 wxFontEncoding result;
12295 void *argp1 = 0 ;
12296 int res1 = 0 ;
12297 PyObject *swig_obj[1] ;
12298
12299 if (!args) SWIG_fail;
12300 swig_obj[0] = args;
12301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12302 if (!SWIG_IsOK(res1)) {
12303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12304 }
12305 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12306 {
12307 PyThreadState* __tstate = wxPyBeginAllowThreads();
12308 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12309 wxPyEndAllowThreads(__tstate);
12310 if (PyErr_Occurred()) SWIG_fail;
12311 }
12312 resultobj = SWIG_From_int(static_cast< int >(result));
12313 return resultobj;
12314fail:
12315 return NULL;
12316}
12317
12318
12319SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12320 PyObject *resultobj = 0;
12321 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12322 int arg2 ;
12323 void *argp1 = 0 ;
12324 int res1 = 0 ;
12325 int val2 ;
12326 int ecode2 = 0 ;
12327 PyObject * obj0 = 0 ;
12328 PyObject * obj1 = 0 ;
12329 char * kwnames[] = {
12330 (char *) "self",(char *) "pointsize", NULL
12331 };
12332
12333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12335 if (!SWIG_IsOK(res1)) {
12336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12337 }
12338 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12339 ecode2 = SWIG_AsVal_int(obj1, &val2);
12340 if (!SWIG_IsOK(ecode2)) {
12341 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12342 }
12343 arg2 = static_cast< int >(val2);
12344 {
12345 PyThreadState* __tstate = wxPyBeginAllowThreads();
12346 (arg1)->SetPointSize(arg2);
12347 wxPyEndAllowThreads(__tstate);
12348 if (PyErr_Occurred()) SWIG_fail;
12349 }
12350 resultobj = SWIG_Py_Void();
12351 return resultobj;
12352fail:
12353 return NULL;
12354}
12355
12356
12357SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12358 PyObject *resultobj = 0;
12359 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12360 wxFontStyle arg2 ;
12361 void *argp1 = 0 ;
12362 int res1 = 0 ;
12363 int val2 ;
12364 int ecode2 = 0 ;
12365 PyObject * obj0 = 0 ;
12366 PyObject * obj1 = 0 ;
12367 char * kwnames[] = {
12368 (char *) "self",(char *) "style", NULL
12369 };
12370
12371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12373 if (!SWIG_IsOK(res1)) {
12374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12375 }
12376 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12377 ecode2 = SWIG_AsVal_int(obj1, &val2);
12378 if (!SWIG_IsOK(ecode2)) {
12379 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12380 }
12381 arg2 = static_cast< wxFontStyle >(val2);
12382 {
12383 PyThreadState* __tstate = wxPyBeginAllowThreads();
12384 (arg1)->SetStyle(arg2);
12385 wxPyEndAllowThreads(__tstate);
12386 if (PyErr_Occurred()) SWIG_fail;
12387 }
12388 resultobj = SWIG_Py_Void();
12389 return resultobj;
12390fail:
12391 return NULL;
12392}
12393
12394
12395SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12396 PyObject *resultobj = 0;
12397 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12398 wxFontWeight arg2 ;
12399 void *argp1 = 0 ;
12400 int res1 = 0 ;
12401 int val2 ;
12402 int ecode2 = 0 ;
12403 PyObject * obj0 = 0 ;
12404 PyObject * obj1 = 0 ;
12405 char * kwnames[] = {
12406 (char *) "self",(char *) "weight", NULL
12407 };
12408
12409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12411 if (!SWIG_IsOK(res1)) {
12412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12413 }
12414 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12415 ecode2 = SWIG_AsVal_int(obj1, &val2);
12416 if (!SWIG_IsOK(ecode2)) {
12417 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12418 }
12419 arg2 = static_cast< wxFontWeight >(val2);
12420 {
12421 PyThreadState* __tstate = wxPyBeginAllowThreads();
12422 (arg1)->SetWeight(arg2);
12423 wxPyEndAllowThreads(__tstate);
12424 if (PyErr_Occurred()) SWIG_fail;
12425 }
12426 resultobj = SWIG_Py_Void();
12427 return resultobj;
12428fail:
12429 return NULL;
12430}
12431
12432
12433SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12434 PyObject *resultobj = 0;
12435 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12436 bool arg2 ;
12437 void *argp1 = 0 ;
12438 int res1 = 0 ;
12439 bool val2 ;
12440 int ecode2 = 0 ;
12441 PyObject * obj0 = 0 ;
12442 PyObject * obj1 = 0 ;
12443 char * kwnames[] = {
12444 (char *) "self",(char *) "underlined", NULL
12445 };
12446
12447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12449 if (!SWIG_IsOK(res1)) {
12450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12451 }
12452 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12453 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12454 if (!SWIG_IsOK(ecode2)) {
12455 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12456 }
12457 arg2 = static_cast< bool >(val2);
12458 {
12459 PyThreadState* __tstate = wxPyBeginAllowThreads();
12460 (arg1)->SetUnderlined(arg2);
12461 wxPyEndAllowThreads(__tstate);
12462 if (PyErr_Occurred()) SWIG_fail;
12463 }
12464 resultobj = SWIG_Py_Void();
12465 return resultobj;
12466fail:
12467 return NULL;
12468}
12469
12470
12471SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12472 PyObject *resultobj = 0;
12473 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12474 wxString arg2 ;
704eda0c 12475 bool result;
1bd55598
RD
12476 void *argp1 = 0 ;
12477 int res1 = 0 ;
12478 PyObject * obj0 = 0 ;
12479 PyObject * obj1 = 0 ;
12480 char * kwnames[] = {
12481 (char *) "self",(char *) "facename", NULL
12482 };
12483
12484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12486 if (!SWIG_IsOK(res1)) {
12487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12488 }
12489 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12490 {
12491 wxString* sptr = wxString_in_helper(obj1);
12492 if (sptr == NULL) SWIG_fail;
12493 arg2 = *sptr;
12494 delete sptr;
12495 }
12496 {
12497 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 12498 result = (bool)(arg1)->SetFaceName(arg2);
1bd55598
RD
12499 wxPyEndAllowThreads(__tstate);
12500 if (PyErr_Occurred()) SWIG_fail;
12501 }
704eda0c
RD
12502 {
12503 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12504 }
1bd55598
RD
12505 return resultobj;
12506fail:
12507 return NULL;
12508}
12509
12510
12511SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12512 PyObject *resultobj = 0;
12513 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12514 wxFontFamily arg2 ;
12515 void *argp1 = 0 ;
12516 int res1 = 0 ;
12517 int val2 ;
12518 int ecode2 = 0 ;
12519 PyObject * obj0 = 0 ;
12520 PyObject * obj1 = 0 ;
12521 char * kwnames[] = {
12522 (char *) "self",(char *) "family", NULL
12523 };
12524
12525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12526 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12527 if (!SWIG_IsOK(res1)) {
12528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12529 }
12530 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12531 ecode2 = SWIG_AsVal_int(obj1, &val2);
12532 if (!SWIG_IsOK(ecode2)) {
12533 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12534 }
12535 arg2 = static_cast< wxFontFamily >(val2);
12536 {
12537 PyThreadState* __tstate = wxPyBeginAllowThreads();
12538 (arg1)->SetFamily(arg2);
12539 wxPyEndAllowThreads(__tstate);
12540 if (PyErr_Occurred()) SWIG_fail;
12541 }
12542 resultobj = SWIG_Py_Void();
12543 return resultobj;
12544fail:
12545 return NULL;
12546}
12547
12548
12549SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12550 PyObject *resultobj = 0;
12551 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12552 wxFontEncoding arg2 ;
12553 void *argp1 = 0 ;
12554 int res1 = 0 ;
12555 int val2 ;
12556 int ecode2 = 0 ;
12557 PyObject * obj0 = 0 ;
12558 PyObject * obj1 = 0 ;
12559 char * kwnames[] = {
12560 (char *) "self",(char *) "encoding", NULL
12561 };
12562
12563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12565 if (!SWIG_IsOK(res1)) {
12566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12567 }
12568 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12569 ecode2 = SWIG_AsVal_int(obj1, &val2);
12570 if (!SWIG_IsOK(ecode2)) {
12571 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12572 }
12573 arg2 = static_cast< wxFontEncoding >(val2);
12574 {
12575 PyThreadState* __tstate = wxPyBeginAllowThreads();
12576 (arg1)->SetEncoding(arg2);
12577 wxPyEndAllowThreads(__tstate);
12578 if (PyErr_Occurred()) SWIG_fail;
12579 }
12580 resultobj = SWIG_Py_Void();
12581 return resultobj;
12582fail:
12583 return NULL;
12584}
12585
12586
12587SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12588 PyObject *resultobj = 0;
12589 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12590 wxString *arg2 = 0 ;
12591 bool result;
12592 void *argp1 = 0 ;
12593 int res1 = 0 ;
12594 bool temp2 = false ;
12595 PyObject * obj0 = 0 ;
12596 PyObject * obj1 = 0 ;
12597 char * kwnames[] = {
12598 (char *) "self",(char *) "s", NULL
12599 };
12600
12601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12603 if (!SWIG_IsOK(res1)) {
12604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12605 }
12606 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12607 {
12608 arg2 = wxString_in_helper(obj1);
12609 if (arg2 == NULL) SWIG_fail;
12610 temp2 = true;
12611 }
12612 {
12613 PyThreadState* __tstate = wxPyBeginAllowThreads();
12614 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12615 wxPyEndAllowThreads(__tstate);
12616 if (PyErr_Occurred()) SWIG_fail;
12617 }
12618 {
12619 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12620 }
12621 {
12622 if (temp2)
12623 delete arg2;
12624 }
12625 return resultobj;
12626fail:
12627 {
12628 if (temp2)
12629 delete arg2;
12630 }
12631 return NULL;
d55e5bfc
RD
12632}
12633
12634
1bd55598
RD
12635SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12636 PyObject *resultobj = 0;
12637 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12638 wxString result;
12639 void *argp1 = 0 ;
12640 int res1 = 0 ;
12641 PyObject *swig_obj[1] ;
12642
12643 if (!args) SWIG_fail;
12644 swig_obj[0] = args;
12645 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12646 if (!SWIG_IsOK(res1)) {
12647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12648 }
12649 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12650 {
12651 PyThreadState* __tstate = wxPyBeginAllowThreads();
12652 result = ((wxNativeFontInfo const *)arg1)->ToString();
12653 wxPyEndAllowThreads(__tstate);
12654 if (PyErr_Occurred()) SWIG_fail;
12655 }
12656 {
12657#if wxUSE_UNICODE
12658 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12659#else
12660 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12661#endif
12662 }
12663 return resultobj;
12664fail:
12665 return NULL;
d55e5bfc
RD
12666}
12667
12668
1bd55598
RD
12669SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12670 PyObject *resultobj = 0;
12671 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12672 wxString result;
12673 void *argp1 = 0 ;
12674 int res1 = 0 ;
12675 PyObject *swig_obj[1] ;
12676
12677 if (!args) SWIG_fail;
12678 swig_obj[0] = args;
12679 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12680 if (!SWIG_IsOK(res1)) {
12681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12682 }
12683 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12684 {
12685 PyThreadState* __tstate = wxPyBeginAllowThreads();
12686 result = wxNativeFontInfo___str__(arg1);
12687 wxPyEndAllowThreads(__tstate);
12688 if (PyErr_Occurred()) SWIG_fail;
12689 }
12690 {
12691#if wxUSE_UNICODE
12692 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12693#else
12694 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12695#endif
12696 }
12697 return resultobj;
12698fail:
12699 return NULL;
12700}
12701
12702
12703SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12704 PyObject *resultobj = 0;
12705 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12706 wxString *arg2 = 0 ;
12707 bool result;
12708 void *argp1 = 0 ;
12709 int res1 = 0 ;
12710 bool temp2 = false ;
12711 PyObject * obj0 = 0 ;
12712 PyObject * obj1 = 0 ;
12713 char * kwnames[] = {
12714 (char *) "self",(char *) "s", NULL
12715 };
12716
12717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12719 if (!SWIG_IsOK(res1)) {
12720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12721 }
12722 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12723 {
12724 arg2 = wxString_in_helper(obj1);
12725 if (arg2 == NULL) SWIG_fail;
12726 temp2 = true;
12727 }
12728 {
12729 PyThreadState* __tstate = wxPyBeginAllowThreads();
12730 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12731 wxPyEndAllowThreads(__tstate);
12732 if (PyErr_Occurred()) SWIG_fail;
12733 }
12734 {
12735 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12736 }
12737 {
12738 if (temp2)
12739 delete arg2;
12740 }
12741 return resultobj;
12742fail:
12743 {
12744 if (temp2)
12745 delete arg2;
12746 }
12747 return NULL;
d55e5bfc
RD
12748}
12749
12750
1bd55598
RD
12751SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12752 PyObject *resultobj = 0;
12753 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12754 wxString result;
12755 void *argp1 = 0 ;
12756 int res1 = 0 ;
12757 PyObject *swig_obj[1] ;
12758
12759 if (!args) SWIG_fail;
12760 swig_obj[0] = args;
12761 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12762 if (!SWIG_IsOK(res1)) {
12763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12764 }
12765 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12766 {
12767 PyThreadState* __tstate = wxPyBeginAllowThreads();
12768 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12769 wxPyEndAllowThreads(__tstate);
12770 if (PyErr_Occurred()) SWIG_fail;
12771 }
12772 {
36ed4f51 12773#if wxUSE_UNICODE
1bd55598 12774 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 12775#else
1bd55598 12776 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 12777#endif
1bd55598
RD
12778 }
12779 return resultobj;
12780fail:
12781 return NULL;
d55e5bfc
RD
12782}
12783
12784
1bd55598
RD
12785SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12786 PyObject *obj;
12787 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12788 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
12789 return SWIG_Py_Void();
d55e5bfc
RD
12790}
12791
1bd55598
RD
12792SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12793 return SWIG_Python_InitShadowInstance(args);
12794}
d55e5bfc 12795
1bd55598
RD
12796SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12797 PyObject *resultobj = 0;
12798 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12799 wxString *arg2 = (wxString *) 0 ;
12800 void *argp1 = 0 ;
12801 int res1 = 0 ;
12802 bool temp2 = false ;
12803 PyObject *swig_obj[2] ;
12804
12805 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
12806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12807 if (!SWIG_IsOK(res1)) {
12808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12809 }
12810 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12811 {
12812 arg2 = wxString_in_helper(swig_obj[1]);
12813 if (arg2 == NULL) SWIG_fail;
12814 temp2 = true;
12815 }
12816 if (arg1) (arg1)->facename = *arg2;
12817
12818 resultobj = SWIG_Py_Void();
12819 {
12820 if (temp2)
12821 delete arg2;
12822 }
12823 return resultobj;
12824fail:
12825 {
12826 if (temp2)
12827 delete arg2;
12828 }
12829 return NULL;
d55e5bfc
RD
12830}
12831
12832
1bd55598
RD
12833SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12834 PyObject *resultobj = 0;
12835 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12836 wxString *result = 0 ;
12837 void *argp1 = 0 ;
12838 int res1 = 0 ;
12839 PyObject *swig_obj[1] ;
12840
12841 if (!args) SWIG_fail;
12842 swig_obj[0] = args;
12843 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12844 if (!SWIG_IsOK(res1)) {
12845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12846 }
12847 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12848 result = (wxString *)& ((arg1)->facename);
12849 {
12850#if wxUSE_UNICODE
12851 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12852#else
12853 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12854#endif
12855 }
12856 return resultobj;
12857fail:
12858 return NULL;
d55e5bfc
RD
12859}
12860
12861
1bd55598
RD
12862SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12863 PyObject *resultobj = 0;
12864 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12865 wxFontEncoding arg2 ;
12866 void *argp1 = 0 ;
12867 int res1 = 0 ;
12868 int val2 ;
12869 int ecode2 = 0 ;
12870 PyObject *swig_obj[2] ;
12871
12872 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
12873 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12874 if (!SWIG_IsOK(res1)) {
12875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12876 }
12877 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12878 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12879 if (!SWIG_IsOK(ecode2)) {
12880 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12881 }
12882 arg2 = static_cast< wxFontEncoding >(val2);
12883 if (arg1) (arg1)->encoding = arg2;
12884
12885 resultobj = SWIG_Py_Void();
12886 return resultobj;
12887fail:
12888 return NULL;
d55e5bfc
RD
12889}
12890
12891
1bd55598
RD
12892SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12893 PyObject *resultobj = 0;
12894 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12895 wxFontEncoding result;
12896 void *argp1 = 0 ;
12897 int res1 = 0 ;
12898 PyObject *swig_obj[1] ;
12899
12900 if (!args) SWIG_fail;
12901 swig_obj[0] = args;
12902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12903 if (!SWIG_IsOK(res1)) {
12904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12905 }
12906 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12907 result = (wxFontEncoding) ((arg1)->encoding);
12908 resultobj = SWIG_From_int(static_cast< int >(result));
12909 return resultobj;
12910fail:
12911 return NULL;
d07096ad
RD
12912}
12913
12914
1bd55598
RD
12915SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12916 PyObject *resultobj = 0;
12917 wxNativeEncodingInfo *result = 0 ;
12918
12919 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
12920 {
12921 PyThreadState* __tstate = wxPyBeginAllowThreads();
12922 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
12923 wxPyEndAllowThreads(__tstate);
12924 if (PyErr_Occurred()) SWIG_fail;
12925 }
12926 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
12927 return resultobj;
12928fail:
12929 return NULL;
d55e5bfc
RD
12930}
12931
12932
1bd55598
RD
12933SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12934 PyObject *resultobj = 0;
12935 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12936 void *argp1 = 0 ;
12937 int res1 = 0 ;
12938 PyObject *swig_obj[1] ;
12939
12940 if (!args) SWIG_fail;
12941 swig_obj[0] = args;
12942 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
12943 if (!SWIG_IsOK(res1)) {
12944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12945 }
12946 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12947 {
12948 PyThreadState* __tstate = wxPyBeginAllowThreads();
12949 delete arg1;
d55e5bfc 12950
1bd55598
RD
12951 wxPyEndAllowThreads(__tstate);
12952 if (PyErr_Occurred()) SWIG_fail;
12953 }
12954 resultobj = SWIG_Py_Void();
12955 return resultobj;
12956fail:
12957 return NULL;
12958}
12959
12960
12961SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12962 PyObject *resultobj = 0;
12963 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12964 wxString *arg2 = 0 ;
12965 bool result;
12966 void *argp1 = 0 ;
12967 int res1 = 0 ;
12968 bool temp2 = false ;
12969 PyObject * obj0 = 0 ;
12970 PyObject * obj1 = 0 ;
12971 char * kwnames[] = {
12972 (char *) "self",(char *) "s", NULL
12973 };
12974
12975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12977 if (!SWIG_IsOK(res1)) {
12978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12979 }
12980 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12981 {
12982 arg2 = wxString_in_helper(obj1);
12983 if (arg2 == NULL) SWIG_fail;
12984 temp2 = true;
12985 }
12986 {
12987 PyThreadState* __tstate = wxPyBeginAllowThreads();
12988 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12989 wxPyEndAllowThreads(__tstate);
12990 if (PyErr_Occurred()) SWIG_fail;
12991 }
12992 {
12993 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12994 }
12995 {
12996 if (temp2)
12997 delete arg2;
12998 }
12999 return resultobj;
13000fail:
13001 {
13002 if (temp2)
13003 delete arg2;
13004 }
13005 return NULL;
d55e5bfc
RD
13006}
13007
13008
1bd55598
RD
13009SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13010 PyObject *resultobj = 0;
13011 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13012 wxString result;
13013 void *argp1 = 0 ;
13014 int res1 = 0 ;
13015 PyObject *swig_obj[1] ;
13016
13017 if (!args) SWIG_fail;
13018 swig_obj[0] = args;
13019 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13020 if (!SWIG_IsOK(res1)) {
13021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13022 }
13023 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13024 {
13025 PyThreadState* __tstate = wxPyBeginAllowThreads();
13026 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13027 wxPyEndAllowThreads(__tstate);
13028 if (PyErr_Occurred()) SWIG_fail;
13029 }
13030 {
13031#if wxUSE_UNICODE
13032 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13033#else
13034 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13035#endif
13036 }
13037 return resultobj;
13038fail:
13039 return NULL;
d55e5bfc
RD
13040}
13041
13042
1bd55598
RD
13043SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13044 PyObject *obj;
13045 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13046 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13047 return SWIG_Py_Void();
d55e5bfc
RD
13048}
13049
1bd55598
RD
13050SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13051 return SWIG_Python_InitShadowInstance(args);
13052}
d55e5bfc 13053
1bd55598
RD
13054SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13055 PyObject *resultobj = 0;
13056 wxFontEncoding arg1 ;
13057 wxNativeEncodingInfo *result = 0 ;
13058 int val1 ;
13059 int ecode1 = 0 ;
13060 PyObject * obj0 = 0 ;
13061 char * kwnames[] = {
13062 (char *) "encoding", NULL
13063 };
13064
13065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13066 ecode1 = SWIG_AsVal_int(obj0, &val1);
13067 if (!SWIG_IsOK(ecode1)) {
13068 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13069 }
13070 arg1 = static_cast< wxFontEncoding >(val1);
13071 {
13072 PyThreadState* __tstate = wxPyBeginAllowThreads();
13073 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13074 wxPyEndAllowThreads(__tstate);
13075 if (PyErr_Occurred()) SWIG_fail;
13076 }
13077 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13078 return resultobj;
13079fail:
13080 return NULL;
13081}
13082
13083
13084SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13085 PyObject *resultobj = 0;
13086 wxNativeEncodingInfo *arg1 = 0 ;
13087 bool result;
13088 void *argp1 = 0 ;
13089 int res1 = 0 ;
13090 PyObject * obj0 = 0 ;
13091 char * kwnames[] = {
13092 (char *) "info", NULL
13093 };
13094
13095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13096 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13097 if (!SWIG_IsOK(res1)) {
13098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13099 }
13100 if (!argp1) {
13101 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13102 }
13103 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13104 {
13105 PyThreadState* __tstate = wxPyBeginAllowThreads();
13106 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13107 wxPyEndAllowThreads(__tstate);
13108 if (PyErr_Occurred()) SWIG_fail;
13109 }
13110 {
13111 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13112 }
13113 return resultobj;
13114fail:
13115 return NULL;
d55e5bfc
RD
13116}
13117
13118
1bd55598
RD
13119SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13120 PyObject *resultobj = 0;
13121 wxFontMapper *result = 0 ;
13122
13123 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
13124 {
13125 PyThreadState* __tstate = wxPyBeginAllowThreads();
13126 result = (wxFontMapper *)new wxFontMapper();
13127 wxPyEndAllowThreads(__tstate);
13128 if (PyErr_Occurred()) SWIG_fail;
13129 }
13130 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13131 return resultobj;
13132fail:
13133 return NULL;
d55e5bfc
RD
13134}
13135
13136
1bd55598
RD
13137SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13138 PyObject *resultobj = 0;
13139 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13140 void *argp1 = 0 ;
13141 int res1 = 0 ;
13142 PyObject *swig_obj[1] ;
13143
13144 if (!args) SWIG_fail;
13145 swig_obj[0] = args;
13146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13147 if (!SWIG_IsOK(res1)) {
13148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13149 }
13150 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13151 {
13152 PyThreadState* __tstate = wxPyBeginAllowThreads();
13153 delete arg1;
d55e5bfc 13154
1bd55598
RD
13155 wxPyEndAllowThreads(__tstate);
13156 if (PyErr_Occurred()) SWIG_fail;
13157 }
13158 resultobj = SWIG_Py_Void();
13159 return resultobj;
13160fail:
13161 return NULL;
d55e5bfc
RD
13162}
13163
13164
1bd55598
RD
13165SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13166 PyObject *resultobj = 0;
13167 wxFontMapper *result = 0 ;
13168
13169 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13170 {
13171 PyThreadState* __tstate = wxPyBeginAllowThreads();
13172 result = (wxFontMapper *)wxFontMapper::Get();
13173 wxPyEndAllowThreads(__tstate);
13174 if (PyErr_Occurred()) SWIG_fail;
13175 }
13176 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13177 return resultobj;
13178fail:
13179 return NULL;
13180}
13181
13182
13183SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13184 PyObject *resultobj = 0;
13185 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13186 wxFontMapper *result = 0 ;
13187 void *argp1 = 0 ;
13188 int res1 = 0 ;
13189 PyObject * obj0 = 0 ;
13190 char * kwnames[] = {
13191 (char *) "mapper", NULL
13192 };
13193
13194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13196 if (!SWIG_IsOK(res1)) {
13197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13198 }
13199 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13200 {
13201 PyThreadState* __tstate = wxPyBeginAllowThreads();
13202 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13203 wxPyEndAllowThreads(__tstate);
13204 if (PyErr_Occurred()) SWIG_fail;
13205 }
13206 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13207 return resultobj;
13208fail:
13209 return NULL;
13210}
13211
13212
13213SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13214 PyObject *resultobj = 0;
13215 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13216 wxString *arg2 = 0 ;
13217 bool arg3 = (bool) true ;
13218 wxFontEncoding result;
13219 void *argp1 = 0 ;
13220 int res1 = 0 ;
13221 bool temp2 = false ;
13222 bool val3 ;
13223 int ecode3 = 0 ;
13224 PyObject * obj0 = 0 ;
13225 PyObject * obj1 = 0 ;
13226 PyObject * obj2 = 0 ;
13227 char * kwnames[] = {
13228 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13229 };
13230
13231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13233 if (!SWIG_IsOK(res1)) {
13234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13235 }
13236 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13237 {
13238 arg2 = wxString_in_helper(obj1);
13239 if (arg2 == NULL) SWIG_fail;
13240 temp2 = true;
13241 }
13242 if (obj2) {
13243 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13244 if (!SWIG_IsOK(ecode3)) {
13245 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13246 }
13247 arg3 = static_cast< bool >(val3);
13248 }
13249 {
13250 PyThreadState* __tstate = wxPyBeginAllowThreads();
13251 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13252 wxPyEndAllowThreads(__tstate);
13253 if (PyErr_Occurred()) SWIG_fail;
13254 }
13255 resultobj = SWIG_From_int(static_cast< int >(result));
13256 {
13257 if (temp2)
13258 delete arg2;
13259 }
13260 return resultobj;
13261fail:
13262 {
13263 if (temp2)
13264 delete arg2;
13265 }
13266 return NULL;
d55e5bfc
RD
13267}
13268
13269
1bd55598
RD
13270SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13271 PyObject *resultobj = 0;
13272 size_t result;
13273
13274 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13275 {
13276 PyThreadState* __tstate = wxPyBeginAllowThreads();
13277 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13278 wxPyEndAllowThreads(__tstate);
13279 if (PyErr_Occurred()) SWIG_fail;
13280 }
13281 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13282 return resultobj;
13283fail:
13284 return NULL;
13285}
13286
13287
13288SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13289 PyObject *resultobj = 0;
13290 size_t arg1 ;
13291 wxFontEncoding result;
13292 size_t val1 ;
13293 int ecode1 = 0 ;
13294 PyObject * obj0 = 0 ;
13295 char * kwnames[] = {
13296 (char *) "n", NULL
13297 };
13298
13299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13300 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13301 if (!SWIG_IsOK(ecode1)) {
13302 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13303 }
13304 arg1 = static_cast< size_t >(val1);
13305 {
13306 PyThreadState* __tstate = wxPyBeginAllowThreads();
13307 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13308 wxPyEndAllowThreads(__tstate);
13309 if (PyErr_Occurred()) SWIG_fail;
13310 }
13311 resultobj = SWIG_From_int(static_cast< int >(result));
13312 return resultobj;
13313fail:
13314 return NULL;
13315}
13316
13317
13318SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13319 PyObject *resultobj = 0;
13320 wxFontEncoding arg1 ;
13321 wxString result;
13322 int val1 ;
13323 int ecode1 = 0 ;
13324 PyObject * obj0 = 0 ;
13325 char * kwnames[] = {
13326 (char *) "encoding", NULL
13327 };
13328
13329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13330 ecode1 = SWIG_AsVal_int(obj0, &val1);
13331 if (!SWIG_IsOK(ecode1)) {
13332 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13333 }
13334 arg1 = static_cast< wxFontEncoding >(val1);
13335 {
13336 PyThreadState* __tstate = wxPyBeginAllowThreads();
13337 result = wxFontMapper::GetEncodingName(arg1);
13338 wxPyEndAllowThreads(__tstate);
13339 if (PyErr_Occurred()) SWIG_fail;
13340 }
13341 {
13342#if wxUSE_UNICODE
13343 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13344#else
13345 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13346#endif
13347 }
13348 return resultobj;
13349fail:
13350 return NULL;
d55e5bfc
RD
13351}
13352
13353
1bd55598
RD
13354SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13355 PyObject *resultobj = 0;
13356 wxFontEncoding arg1 ;
13357 wxString result;
13358 int val1 ;
13359 int ecode1 = 0 ;
13360 PyObject * obj0 = 0 ;
13361 char * kwnames[] = {
13362 (char *) "encoding", NULL
13363 };
13364
13365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13366 ecode1 = SWIG_AsVal_int(obj0, &val1);
13367 if (!SWIG_IsOK(ecode1)) {
13368 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13369 }
13370 arg1 = static_cast< wxFontEncoding >(val1);
13371 {
13372 PyThreadState* __tstate = wxPyBeginAllowThreads();
13373 result = wxFontMapper::GetEncodingDescription(arg1);
13374 wxPyEndAllowThreads(__tstate);
13375 if (PyErr_Occurred()) SWIG_fail;
13376 }
13377 {
13378#if wxUSE_UNICODE
13379 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13380#else
13381 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13382#endif
13383 }
13384 return resultobj;
13385fail:
13386 return NULL;
d55e5bfc
RD
13387}
13388
13389
1bd55598
RD
13390SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13391 PyObject *resultobj = 0;
13392 wxString *arg1 = 0 ;
13393 wxFontEncoding result;
13394 bool temp1 = false ;
13395 PyObject * obj0 = 0 ;
13396 char * kwnames[] = {
13397 (char *) "name", NULL
13398 };
13399
13400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13401 {
13402 arg1 = wxString_in_helper(obj0);
13403 if (arg1 == NULL) SWIG_fail;
13404 temp1 = true;
13405 }
13406 {
13407 PyThreadState* __tstate = wxPyBeginAllowThreads();
13408 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13409 wxPyEndAllowThreads(__tstate);
13410 if (PyErr_Occurred()) SWIG_fail;
13411 }
13412 resultobj = SWIG_From_int(static_cast< int >(result));
13413 {
13414 if (temp1)
13415 delete arg1;
13416 }
13417 return resultobj;
13418fail:
13419 {
13420 if (temp1)
13421 delete arg1;
13422 }
13423 return NULL;
d55e5bfc
RD
13424}
13425
13426
1bd55598
RD
13427SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13428 PyObject *resultobj = 0;
13429 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13430 wxString *arg2 = 0 ;
13431 void *argp1 = 0 ;
13432 int res1 = 0 ;
13433 bool temp2 = false ;
13434 PyObject * obj0 = 0 ;
13435 PyObject * obj1 = 0 ;
13436 char * kwnames[] = {
13437 (char *) "self",(char *) "prefix", NULL
13438 };
13439
13440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13442 if (!SWIG_IsOK(res1)) {
13443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13444 }
13445 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13446 {
13447 arg2 = wxString_in_helper(obj1);
13448 if (arg2 == NULL) SWIG_fail;
13449 temp2 = true;
13450 }
13451 {
13452 PyThreadState* __tstate = wxPyBeginAllowThreads();
13453 (arg1)->SetConfigPath((wxString const &)*arg2);
13454 wxPyEndAllowThreads(__tstate);
13455 if (PyErr_Occurred()) SWIG_fail;
13456 }
13457 resultobj = SWIG_Py_Void();
13458 {
13459 if (temp2)
13460 delete arg2;
13461 }
13462 return resultobj;
13463fail:
13464 {
13465 if (temp2)
13466 delete arg2;
13467 }
13468 return NULL;
13469}
13470
13471
13472SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13473 PyObject *resultobj = 0;
13474 wxString result;
13475
13476 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13477 {
13478 PyThreadState* __tstate = wxPyBeginAllowThreads();
13479 result = wxFontMapper::GetDefaultConfigPath();
13480 wxPyEndAllowThreads(__tstate);
13481 if (PyErr_Occurred()) SWIG_fail;
13482 }
13483 {
13484#if wxUSE_UNICODE
13485 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13486#else
13487 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13488#endif
13489 }
13490 return resultobj;
13491fail:
13492 return NULL;
13493}
13494
13495
13496SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13497 PyObject *resultobj = 0;
13498 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13499 wxFontEncoding arg2 ;
13500 wxString const &arg3_defvalue = wxPyEmptyString ;
13501 wxString *arg3 = (wxString *) &arg3_defvalue ;
13502 bool arg4 = (bool) true ;
13503 PyObject *result = 0 ;
13504 void *argp1 = 0 ;
13505 int res1 = 0 ;
13506 int val2 ;
13507 int ecode2 = 0 ;
13508 bool temp3 = false ;
13509 bool val4 ;
13510 int ecode4 = 0 ;
13511 PyObject * obj0 = 0 ;
13512 PyObject * obj1 = 0 ;
13513 PyObject * obj2 = 0 ;
13514 PyObject * obj3 = 0 ;
13515 char * kwnames[] = {
13516 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13517 };
13518
13519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13521 if (!SWIG_IsOK(res1)) {
13522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13523 }
13524 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13525 ecode2 = SWIG_AsVal_int(obj1, &val2);
13526 if (!SWIG_IsOK(ecode2)) {
13527 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13528 }
13529 arg2 = static_cast< wxFontEncoding >(val2);
13530 if (obj2) {
36ed4f51 13531 {
1bd55598
RD
13532 arg3 = wxString_in_helper(obj2);
13533 if (arg3 == NULL) SWIG_fail;
13534 temp3 = true;
36ed4f51 13535 }
1bd55598
RD
13536 }
13537 if (obj3) {
13538 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13539 if (!SWIG_IsOK(ecode4)) {
13540 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13541 }
13542 arg4 = static_cast< bool >(val4);
13543 }
13544 {
13545 PyThreadState* __tstate = wxPyBeginAllowThreads();
13546 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13547 wxPyEndAllowThreads(__tstate);
13548 if (PyErr_Occurred()) SWIG_fail;
13549 }
13550 resultobj = result;
13551 {
13552 if (temp3)
13553 delete arg3;
13554 }
13555 return resultobj;
13556fail:
13557 {
13558 if (temp3)
13559 delete arg3;
13560 }
13561 return NULL;
13562}
13563
13564
13565SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13566 PyObject *resultobj = 0;
13567 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13568 wxFontEncoding arg2 ;
13569 wxString const &arg3_defvalue = wxPyEmptyString ;
13570 wxString *arg3 = (wxString *) &arg3_defvalue ;
13571 bool result;
13572 void *argp1 = 0 ;
13573 int res1 = 0 ;
13574 int val2 ;
13575 int ecode2 = 0 ;
13576 bool temp3 = false ;
13577 PyObject * obj0 = 0 ;
13578 PyObject * obj1 = 0 ;
13579 PyObject * obj2 = 0 ;
13580 char * kwnames[] = {
13581 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13582 };
13583
13584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13586 if (!SWIG_IsOK(res1)) {
13587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13588 }
13589 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13590 ecode2 = SWIG_AsVal_int(obj1, &val2);
13591 if (!SWIG_IsOK(ecode2)) {
13592 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13593 }
13594 arg2 = static_cast< wxFontEncoding >(val2);
13595 if (obj2) {
36ed4f51 13596 {
1bd55598
RD
13597 arg3 = wxString_in_helper(obj2);
13598 if (arg3 == NULL) SWIG_fail;
13599 temp3 = true;
36ed4f51 13600 }
1bd55598
RD
13601 }
13602 {
13603 PyThreadState* __tstate = wxPyBeginAllowThreads();
13604 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13605 wxPyEndAllowThreads(__tstate);
13606 if (PyErr_Occurred()) SWIG_fail;
13607 }
13608 {
13609 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13610 }
13611 {
13612 if (temp3)
13613 delete arg3;
13614 }
13615 return resultobj;
13616fail:
13617 {
13618 if (temp3)
13619 delete arg3;
13620 }
13621 return NULL;
13622}
13623
13624
13625SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13626 PyObject *resultobj = 0;
13627 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13628 wxWindow *arg2 = (wxWindow *) 0 ;
13629 void *argp1 = 0 ;
13630 int res1 = 0 ;
13631 void *argp2 = 0 ;
13632 int res2 = 0 ;
13633 PyObject * obj0 = 0 ;
13634 PyObject * obj1 = 0 ;
13635 char * kwnames[] = {
13636 (char *) "self",(char *) "parent", NULL
13637 };
13638
13639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13641 if (!SWIG_IsOK(res1)) {
13642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13643 }
13644 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13645 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13646 if (!SWIG_IsOK(res2)) {
13647 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13648 }
13649 arg2 = reinterpret_cast< wxWindow * >(argp2);
13650 {
13651 PyThreadState* __tstate = wxPyBeginAllowThreads();
13652 (arg1)->SetDialogParent(arg2);
13653 wxPyEndAllowThreads(__tstate);
13654 if (PyErr_Occurred()) SWIG_fail;
13655 }
13656 resultobj = SWIG_Py_Void();
13657 return resultobj;
13658fail:
13659 return NULL;
13660}
13661
13662
13663SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13664 PyObject *resultobj = 0;
13665 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13666 wxString *arg2 = 0 ;
13667 void *argp1 = 0 ;
13668 int res1 = 0 ;
13669 bool temp2 = false ;
13670 PyObject * obj0 = 0 ;
13671 PyObject * obj1 = 0 ;
13672 char * kwnames[] = {
13673 (char *) "self",(char *) "title", NULL
13674 };
13675
13676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13678 if (!SWIG_IsOK(res1)) {
13679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13680 }
13681 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13682 {
13683 arg2 = wxString_in_helper(obj1);
13684 if (arg2 == NULL) SWIG_fail;
13685 temp2 = true;
13686 }
13687 {
13688 PyThreadState* __tstate = wxPyBeginAllowThreads();
13689 (arg1)->SetDialogTitle((wxString const &)*arg2);
13690 wxPyEndAllowThreads(__tstate);
13691 if (PyErr_Occurred()) SWIG_fail;
13692 }
13693 resultobj = SWIG_Py_Void();
13694 {
13695 if (temp2)
13696 delete arg2;
13697 }
13698 return resultobj;
13699fail:
13700 {
13701 if (temp2)
13702 delete arg2;
13703 }
13704 return NULL;
13705}
13706
13707
13708SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13709 PyObject *obj;
13710 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13711 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13712 return SWIG_Py_Void();
13713}
13714
13715SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13716 return SWIG_Python_InitShadowInstance(args);
13717}
13718
13719SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13720 PyObject *resultobj = 0;
13721 int arg1 ;
13722 int arg2 ;
13723 int arg3 ;
13724 int arg4 ;
13725 bool arg5 = (bool) false ;
13726 wxString const &arg6_defvalue = wxPyEmptyString ;
13727 wxString *arg6 = (wxString *) &arg6_defvalue ;
13728 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13729 wxFont *result = 0 ;
13730 int val1 ;
13731 int ecode1 = 0 ;
13732 int val2 ;
13733 int ecode2 = 0 ;
13734 int val3 ;
13735 int ecode3 = 0 ;
13736 int val4 ;
13737 int ecode4 = 0 ;
13738 bool val5 ;
13739 int ecode5 = 0 ;
13740 bool temp6 = false ;
13741 int val7 ;
13742 int ecode7 = 0 ;
13743 PyObject * obj0 = 0 ;
13744 PyObject * obj1 = 0 ;
13745 PyObject * obj2 = 0 ;
13746 PyObject * obj3 = 0 ;
13747 PyObject * obj4 = 0 ;
13748 PyObject * obj5 = 0 ;
13749 PyObject * obj6 = 0 ;
13750 char * kwnames[] = {
13751 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13752 };
13753
13754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13755 ecode1 = SWIG_AsVal_int(obj0, &val1);
13756 if (!SWIG_IsOK(ecode1)) {
13757 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13758 }
13759 arg1 = static_cast< int >(val1);
13760 ecode2 = SWIG_AsVal_int(obj1, &val2);
13761 if (!SWIG_IsOK(ecode2)) {
13762 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13763 }
13764 arg2 = static_cast< int >(val2);
13765 ecode3 = SWIG_AsVal_int(obj2, &val3);
13766 if (!SWIG_IsOK(ecode3)) {
13767 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13768 }
13769 arg3 = static_cast< int >(val3);
13770 ecode4 = SWIG_AsVal_int(obj3, &val4);
13771 if (!SWIG_IsOK(ecode4)) {
13772 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13773 }
13774 arg4 = static_cast< int >(val4);
13775 if (obj4) {
13776 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13777 if (!SWIG_IsOK(ecode5)) {
13778 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13779 }
13780 arg5 = static_cast< bool >(val5);
13781 }
13782 if (obj5) {
d55e5bfc 13783 {
1bd55598
RD
13784 arg6 = wxString_in_helper(obj5);
13785 if (arg6 == NULL) SWIG_fail;
13786 temp6 = true;
d55e5bfc 13787 }
1bd55598
RD
13788 }
13789 if (obj6) {
13790 ecode7 = SWIG_AsVal_int(obj6, &val7);
13791 if (!SWIG_IsOK(ecode7)) {
13792 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13793 }
13794 arg7 = static_cast< wxFontEncoding >(val7);
13795 }
13796 {
13797 if (!wxPyCheckForApp()) SWIG_fail;
13798 PyThreadState* __tstate = wxPyBeginAllowThreads();
13799 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13800 wxPyEndAllowThreads(__tstate);
13801 if (PyErr_Occurred()) SWIG_fail;
13802 }
13803 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
13804 {
13805 if (temp6)
13806 delete arg6;
13807 }
13808 return resultobj;
13809fail:
13810 {
13811 if (temp6)
13812 delete arg6;
13813 }
13814 return NULL;
d55e5bfc
RD
13815}
13816
13817
1bd55598
RD
13818SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13819 PyObject *resultobj = 0;
13820 wxFont *arg1 = (wxFont *) 0 ;
13821 void *argp1 = 0 ;
13822 int res1 = 0 ;
13823 PyObject *swig_obj[1] ;
13824
13825 if (!args) SWIG_fail;
13826 swig_obj[0] = args;
13827 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
13828 if (!SWIG_IsOK(res1)) {
13829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
13830 }
13831 arg1 = reinterpret_cast< wxFont * >(argp1);
13832 {
13833 PyThreadState* __tstate = wxPyBeginAllowThreads();
13834 delete arg1;
d55e5bfc 13835
1bd55598
RD
13836 wxPyEndAllowThreads(__tstate);
13837 if (PyErr_Occurred()) SWIG_fail;
13838 }
13839 resultobj = SWIG_Py_Void();
13840 return resultobj;
13841fail:
13842 return NULL;
13843}
13844
13845
13846SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13847 PyObject *resultobj = 0;
13848 wxNativeFontInfo *arg1 = 0 ;
13849 wxFont *result = 0 ;
13850 void *argp1 = 0 ;
13851 int res1 = 0 ;
13852 PyObject * obj0 = 0 ;
13853 char * kwnames[] = {
13854 (char *) "info", NULL
13855 };
13856
13857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
13858 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13859 if (!SWIG_IsOK(res1)) {
13860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13861 }
13862 if (!argp1) {
13863 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13864 }
13865 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13866 {
13867 if (!wxPyCheckForApp()) SWIG_fail;
13868 PyThreadState* __tstate = wxPyBeginAllowThreads();
13869 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
13870 wxPyEndAllowThreads(__tstate);
13871 if (PyErr_Occurred()) SWIG_fail;
13872 }
13873 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13874 return resultobj;
13875fail:
13876 return NULL;
d55e5bfc
RD
13877}
13878
13879
1bd55598
RD
13880SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13881 PyObject *resultobj = 0;
13882 wxString *arg1 = 0 ;
13883 wxFont *result = 0 ;
13884 bool temp1 = false ;
13885 PyObject * obj0 = 0 ;
13886 char * kwnames[] = {
13887 (char *) "info", NULL
13888 };
13889
13890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
13891 {
13892 arg1 = wxString_in_helper(obj0);
13893 if (arg1 == NULL) SWIG_fail;
13894 temp1 = true;
13895 }
13896 {
13897 if (!wxPyCheckForApp()) SWIG_fail;
13898 PyThreadState* __tstate = wxPyBeginAllowThreads();
13899 result = (wxFont *)new_wxFont((wxString const &)*arg1);
13900 wxPyEndAllowThreads(__tstate);
13901 if (PyErr_Occurred()) SWIG_fail;
13902 }
13903 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13904 {
13905 if (temp1)
13906 delete arg1;
13907 }
13908 return resultobj;
13909fail:
13910 {
13911 if (temp1)
13912 delete arg1;
13913 }
13914 return NULL;
13915}
13916
13917
13918SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13919 PyObject *resultobj = 0;
13920 int arg1 ;
13921 wxFontFamily arg2 ;
13922 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13923 wxString const &arg4_defvalue = wxPyEmptyString ;
13924 wxString *arg4 = (wxString *) &arg4_defvalue ;
13925 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13926 wxFont *result = 0 ;
13927 int val1 ;
13928 int ecode1 = 0 ;
13929 int val2 ;
13930 int ecode2 = 0 ;
13931 int val3 ;
13932 int ecode3 = 0 ;
13933 bool temp4 = false ;
13934 int val5 ;
13935 int ecode5 = 0 ;
13936 PyObject * obj0 = 0 ;
13937 PyObject * obj1 = 0 ;
13938 PyObject * obj2 = 0 ;
13939 PyObject * obj3 = 0 ;
13940 PyObject * obj4 = 0 ;
13941 char * kwnames[] = {
13942 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13943 };
13944
13945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13946 ecode1 = SWIG_AsVal_int(obj0, &val1);
13947 if (!SWIG_IsOK(ecode1)) {
13948 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
13949 }
13950 arg1 = static_cast< int >(val1);
13951 ecode2 = SWIG_AsVal_int(obj1, &val2);
13952 if (!SWIG_IsOK(ecode2)) {
13953 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
13954 }
13955 arg2 = static_cast< wxFontFamily >(val2);
13956 if (obj2) {
13957 ecode3 = SWIG_AsVal_int(obj2, &val3);
13958 if (!SWIG_IsOK(ecode3)) {
13959 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
13960 }
13961 arg3 = static_cast< int >(val3);
13962 }
13963 if (obj3) {
36ed4f51 13964 {
1bd55598
RD
13965 arg4 = wxString_in_helper(obj3);
13966 if (arg4 == NULL) SWIG_fail;
13967 temp4 = true;
36ed4f51 13968 }
1bd55598
RD
13969 }
13970 if (obj4) {
13971 ecode5 = SWIG_AsVal_int(obj4, &val5);
13972 if (!SWIG_IsOK(ecode5)) {
13973 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13974 }
13975 arg5 = static_cast< wxFontEncoding >(val5);
13976 }
13977 {
13978 if (!wxPyCheckForApp()) SWIG_fail;
13979 PyThreadState* __tstate = wxPyBeginAllowThreads();
13980 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13981 wxPyEndAllowThreads(__tstate);
13982 if (PyErr_Occurred()) SWIG_fail;
13983 }
13984 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13985 {
13986 if (temp4)
13987 delete arg4;
13988 }
13989 return resultobj;
13990fail:
13991 {
13992 if (temp4)
13993 delete arg4;
13994 }
13995 return NULL;
13996}
13997
13998
13999SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14000 PyObject *resultobj = 0;
14001 wxSize *arg1 = 0 ;
14002 int arg2 ;
14003 int arg3 ;
14004 int arg4 ;
14005 bool arg5 = (bool) false ;
14006 wxString const &arg6_defvalue = wxEmptyString ;
14007 wxString *arg6 = (wxString *) &arg6_defvalue ;
14008 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14009 wxFont *result = 0 ;
14010 wxSize temp1 ;
14011 int val2 ;
14012 int ecode2 = 0 ;
14013 int val3 ;
14014 int ecode3 = 0 ;
14015 int val4 ;
14016 int ecode4 = 0 ;
14017 bool val5 ;
14018 int ecode5 = 0 ;
14019 bool temp6 = false ;
14020 int val7 ;
14021 int ecode7 = 0 ;
14022 PyObject * obj0 = 0 ;
14023 PyObject * obj1 = 0 ;
14024 PyObject * obj2 = 0 ;
14025 PyObject * obj3 = 0 ;
14026 PyObject * obj4 = 0 ;
14027 PyObject * obj5 = 0 ;
14028 PyObject * obj6 = 0 ;
14029 char * kwnames[] = {
14030 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14031 };
14032
14033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14034 {
14035 arg1 = &temp1;
14036 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14037 }
14038 ecode2 = SWIG_AsVal_int(obj1, &val2);
14039 if (!SWIG_IsOK(ecode2)) {
14040 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14041 }
14042 arg2 = static_cast< int >(val2);
14043 ecode3 = SWIG_AsVal_int(obj2, &val3);
14044 if (!SWIG_IsOK(ecode3)) {
14045 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14046 }
14047 arg3 = static_cast< int >(val3);
14048 ecode4 = SWIG_AsVal_int(obj3, &val4);
14049 if (!SWIG_IsOK(ecode4)) {
14050 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14051 }
14052 arg4 = static_cast< int >(val4);
14053 if (obj4) {
14054 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14055 if (!SWIG_IsOK(ecode5)) {
14056 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14057 }
14058 arg5 = static_cast< bool >(val5);
14059 }
14060 if (obj5) {
d55e5bfc 14061 {
1bd55598
RD
14062 arg6 = wxString_in_helper(obj5);
14063 if (arg6 == NULL) SWIG_fail;
14064 temp6 = true;
d55e5bfc 14065 }
1bd55598
RD
14066 }
14067 if (obj6) {
14068 ecode7 = SWIG_AsVal_int(obj6, &val7);
14069 if (!SWIG_IsOK(ecode7)) {
14070 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14071 }
14072 arg7 = static_cast< wxFontEncoding >(val7);
14073 }
14074 {
14075 if (!wxPyCheckForApp()) SWIG_fail;
14076 PyThreadState* __tstate = wxPyBeginAllowThreads();
14077 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14078 wxPyEndAllowThreads(__tstate);
14079 if (PyErr_Occurred()) SWIG_fail;
14080 }
14081 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14082 {
14083 if (temp6)
14084 delete arg6;
14085 }
14086 return resultobj;
14087fail:
14088 {
14089 if (temp6)
14090 delete arg6;
14091 }
14092 return NULL;
14093}
14094
14095
14096SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14097 PyObject *resultobj = 0;
14098 wxSize *arg1 = 0 ;
14099 wxFontFamily arg2 ;
14100 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14101 wxString const &arg4_defvalue = wxEmptyString ;
14102 wxString *arg4 = (wxString *) &arg4_defvalue ;
14103 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14104 wxFont *result = 0 ;
14105 wxSize temp1 ;
14106 int val2 ;
14107 int ecode2 = 0 ;
14108 int val3 ;
14109 int ecode3 = 0 ;
14110 bool temp4 = false ;
14111 int val5 ;
14112 int ecode5 = 0 ;
14113 PyObject * obj0 = 0 ;
14114 PyObject * obj1 = 0 ;
14115 PyObject * obj2 = 0 ;
14116 PyObject * obj3 = 0 ;
14117 PyObject * obj4 = 0 ;
14118 char * kwnames[] = {
14119 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14120 };
14121
14122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14123 {
14124 arg1 = &temp1;
14125 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14126 }
14127 ecode2 = SWIG_AsVal_int(obj1, &val2);
14128 if (!SWIG_IsOK(ecode2)) {
14129 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14130 }
14131 arg2 = static_cast< wxFontFamily >(val2);
14132 if (obj2) {
14133 ecode3 = SWIG_AsVal_int(obj2, &val3);
14134 if (!SWIG_IsOK(ecode3)) {
14135 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14136 }
14137 arg3 = static_cast< int >(val3);
14138 }
14139 if (obj3) {
36ed4f51 14140 {
1bd55598
RD
14141 arg4 = wxString_in_helper(obj3);
14142 if (arg4 == NULL) SWIG_fail;
14143 temp4 = true;
36ed4f51 14144 }
1bd55598
RD
14145 }
14146 if (obj4) {
14147 ecode5 = SWIG_AsVal_int(obj4, &val5);
14148 if (!SWIG_IsOK(ecode5)) {
14149 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14150 }
14151 arg5 = static_cast< wxFontEncoding >(val5);
14152 }
14153 {
14154 if (!wxPyCheckForApp()) SWIG_fail;
14155 PyThreadState* __tstate = wxPyBeginAllowThreads();
14156 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14157 wxPyEndAllowThreads(__tstate);
14158 if (PyErr_Occurred()) SWIG_fail;
14159 }
14160 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14161 {
14162 if (temp4)
14163 delete arg4;
14164 }
14165 return resultobj;
14166fail:
14167 {
14168 if (temp4)
14169 delete arg4;
14170 }
14171 return NULL;
d55e5bfc
RD
14172}
14173
14174
b39fe951 14175SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
14176 PyObject *resultobj = 0;
14177 wxFont *arg1 = (wxFont *) 0 ;
14178 bool result;
14179 void *argp1 = 0 ;
14180 int res1 = 0 ;
14181 PyObject *swig_obj[1] ;
14182
14183 if (!args) SWIG_fail;
14184 swig_obj[0] = args;
14185 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14186 if (!SWIG_IsOK(res1)) {
b39fe951 14187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
1bd55598
RD
14188 }
14189 arg1 = reinterpret_cast< wxFont * >(argp1);
14190 {
14191 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 14192 result = (bool)((wxFont const *)arg1)->IsOk();
1bd55598
RD
14193 wxPyEndAllowThreads(__tstate);
14194 if (PyErr_Occurred()) SWIG_fail;
14195 }
14196 {
14197 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14198 }
14199 return resultobj;
14200fail:
14201 return NULL;
14202}
14203
14204
14205SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14206 PyObject *resultobj = 0;
14207 wxFont *arg1 = (wxFont *) 0 ;
14208 wxFont *arg2 = (wxFont *) 0 ;
14209 bool result;
14210 void *argp1 = 0 ;
14211 int res1 = 0 ;
14212 void *argp2 = 0 ;
14213 int res2 = 0 ;
14214 PyObject * obj0 = 0 ;
14215 PyObject * obj1 = 0 ;
14216 char * kwnames[] = {
14217 (char *) "self",(char *) "other", NULL
14218 };
14219
14220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14222 if (!SWIG_IsOK(res1)) {
14223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14224 }
14225 arg1 = reinterpret_cast< wxFont * >(argp1);
14226 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14227 if (!SWIG_IsOK(res2)) {
14228 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14229 }
14230 arg2 = reinterpret_cast< wxFont * >(argp2);
14231 {
14232 PyThreadState* __tstate = wxPyBeginAllowThreads();
14233 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14234 wxPyEndAllowThreads(__tstate);
14235 if (PyErr_Occurred()) SWIG_fail;
14236 }
14237 {
14238 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14239 }
14240 return resultobj;
14241fail:
14242 return NULL;
14243}
14244
14245
14246SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14247 PyObject *resultobj = 0;
14248 wxFont *arg1 = (wxFont *) 0 ;
14249 wxFont *arg2 = (wxFont *) 0 ;
14250 bool result;
14251 void *argp1 = 0 ;
14252 int res1 = 0 ;
14253 void *argp2 = 0 ;
14254 int res2 = 0 ;
14255 PyObject * obj0 = 0 ;
14256 PyObject * obj1 = 0 ;
14257 char * kwnames[] = {
14258 (char *) "self",(char *) "other", NULL
14259 };
14260
14261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14263 if (!SWIG_IsOK(res1)) {
14264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14265 }
14266 arg1 = reinterpret_cast< wxFont * >(argp1);
14267 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14268 if (!SWIG_IsOK(res2)) {
14269 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14270 }
14271 arg2 = reinterpret_cast< wxFont * >(argp2);
14272 {
14273 PyThreadState* __tstate = wxPyBeginAllowThreads();
14274 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14275 wxPyEndAllowThreads(__tstate);
14276 if (PyErr_Occurred()) SWIG_fail;
14277 }
14278 {
14279 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14280 }
14281 return resultobj;
14282fail:
14283 return NULL;
d55e5bfc
RD
14284}
14285
14286
1bd55598
RD
14287SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14288 PyObject *resultobj = 0;
14289 wxFont *arg1 = (wxFont *) 0 ;
14290 int result;
14291 void *argp1 = 0 ;
14292 int res1 = 0 ;
14293 PyObject *swig_obj[1] ;
14294
14295 if (!args) SWIG_fail;
14296 swig_obj[0] = args;
14297 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14298 if (!SWIG_IsOK(res1)) {
14299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14300 }
14301 arg1 = reinterpret_cast< wxFont * >(argp1);
14302 {
14303 PyThreadState* __tstate = wxPyBeginAllowThreads();
14304 result = (int)((wxFont const *)arg1)->GetPointSize();
14305 wxPyEndAllowThreads(__tstate);
14306 if (PyErr_Occurred()) SWIG_fail;
14307 }
14308 resultobj = SWIG_From_int(static_cast< int >(result));
14309 return resultobj;
14310fail:
14311 return NULL;
d55e5bfc
RD
14312}
14313
14314
1bd55598
RD
14315SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14316 PyObject *resultobj = 0;
14317 wxFont *arg1 = (wxFont *) 0 ;
14318 wxSize result;
14319 void *argp1 = 0 ;
14320 int res1 = 0 ;
14321 PyObject *swig_obj[1] ;
14322
14323 if (!args) SWIG_fail;
14324 swig_obj[0] = args;
14325 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14326 if (!SWIG_IsOK(res1)) {
14327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14328 }
14329 arg1 = reinterpret_cast< wxFont * >(argp1);
14330 {
14331 PyThreadState* __tstate = wxPyBeginAllowThreads();
14332 result = ((wxFont const *)arg1)->GetPixelSize();
14333 wxPyEndAllowThreads(__tstate);
14334 if (PyErr_Occurred()) SWIG_fail;
14335 }
14336 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14337 return resultobj;
14338fail:
14339 return NULL;
d55e5bfc
RD
14340}
14341
14342
1bd55598
RD
14343SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14344 PyObject *resultobj = 0;
14345 wxFont *arg1 = (wxFont *) 0 ;
14346 bool result;
14347 void *argp1 = 0 ;
14348 int res1 = 0 ;
14349 PyObject *swig_obj[1] ;
14350
14351 if (!args) SWIG_fail;
14352 swig_obj[0] = args;
14353 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14354 if (!SWIG_IsOK(res1)) {
14355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14356 }
14357 arg1 = reinterpret_cast< wxFont * >(argp1);
14358 {
14359 PyThreadState* __tstate = wxPyBeginAllowThreads();
14360 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14361 wxPyEndAllowThreads(__tstate);
14362 if (PyErr_Occurred()) SWIG_fail;
14363 }
14364 {
14365 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14366 }
14367 return resultobj;
14368fail:
14369 return NULL;
d55e5bfc
RD
14370}
14371
14372
1bd55598
RD
14373SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14374 PyObject *resultobj = 0;
14375 wxFont *arg1 = (wxFont *) 0 ;
14376 int result;
14377 void *argp1 = 0 ;
14378 int res1 = 0 ;
14379 PyObject *swig_obj[1] ;
14380
14381 if (!args) SWIG_fail;
14382 swig_obj[0] = args;
14383 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14384 if (!SWIG_IsOK(res1)) {
14385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14386 }
14387 arg1 = reinterpret_cast< wxFont * >(argp1);
14388 {
14389 PyThreadState* __tstate = wxPyBeginAllowThreads();
14390 result = (int)((wxFont const *)arg1)->GetFamily();
14391 wxPyEndAllowThreads(__tstate);
14392 if (PyErr_Occurred()) SWIG_fail;
14393 }
14394 resultobj = SWIG_From_int(static_cast< int >(result));
14395 return resultobj;
14396fail:
14397 return NULL;
d55e5bfc
RD
14398}
14399
14400
1bd55598
RD
14401SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14402 PyObject *resultobj = 0;
14403 wxFont *arg1 = (wxFont *) 0 ;
14404 int result;
14405 void *argp1 = 0 ;
14406 int res1 = 0 ;
14407 PyObject *swig_obj[1] ;
14408
14409 if (!args) SWIG_fail;
14410 swig_obj[0] = args;
14411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14412 if (!SWIG_IsOK(res1)) {
14413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14414 }
14415 arg1 = reinterpret_cast< wxFont * >(argp1);
14416 {
14417 PyThreadState* __tstate = wxPyBeginAllowThreads();
14418 result = (int)((wxFont const *)arg1)->GetStyle();
14419 wxPyEndAllowThreads(__tstate);
14420 if (PyErr_Occurred()) SWIG_fail;
14421 }
14422 resultobj = SWIG_From_int(static_cast< int >(result));
14423 return resultobj;
14424fail:
14425 return NULL;
d55e5bfc
RD
14426}
14427
14428
1bd55598
RD
14429SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14430 PyObject *resultobj = 0;
14431 wxFont *arg1 = (wxFont *) 0 ;
14432 int result;
14433 void *argp1 = 0 ;
14434 int res1 = 0 ;
14435 PyObject *swig_obj[1] ;
14436
14437 if (!args) SWIG_fail;
14438 swig_obj[0] = args;
14439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14440 if (!SWIG_IsOK(res1)) {
14441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14442 }
14443 arg1 = reinterpret_cast< wxFont * >(argp1);
14444 {
14445 PyThreadState* __tstate = wxPyBeginAllowThreads();
14446 result = (int)((wxFont const *)arg1)->GetWeight();
14447 wxPyEndAllowThreads(__tstate);
14448 if (PyErr_Occurred()) SWIG_fail;
14449 }
14450 resultobj = SWIG_From_int(static_cast< int >(result));
14451 return resultobj;
14452fail:
14453 return NULL;
d55e5bfc
RD
14454}
14455
14456
1bd55598
RD
14457SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14458 PyObject *resultobj = 0;
14459 wxFont *arg1 = (wxFont *) 0 ;
14460 bool result;
14461 void *argp1 = 0 ;
14462 int res1 = 0 ;
14463 PyObject *swig_obj[1] ;
14464
14465 if (!args) SWIG_fail;
14466 swig_obj[0] = args;
14467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14468 if (!SWIG_IsOK(res1)) {
14469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14470 }
14471 arg1 = reinterpret_cast< wxFont * >(argp1);
14472 {
14473 PyThreadState* __tstate = wxPyBeginAllowThreads();
14474 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14475 wxPyEndAllowThreads(__tstate);
14476 if (PyErr_Occurred()) SWIG_fail;
14477 }
14478 {
14479 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14480 }
14481 return resultobj;
14482fail:
14483 return NULL;
d55e5bfc
RD
14484}
14485
14486
1bd55598
RD
14487SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14488 PyObject *resultobj = 0;
14489 wxFont *arg1 = (wxFont *) 0 ;
14490 wxString result;
14491 void *argp1 = 0 ;
14492 int res1 = 0 ;
14493 PyObject *swig_obj[1] ;
14494
14495 if (!args) SWIG_fail;
14496 swig_obj[0] = args;
14497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14498 if (!SWIG_IsOK(res1)) {
14499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14500 }
14501 arg1 = reinterpret_cast< wxFont * >(argp1);
14502 {
14503 PyThreadState* __tstate = wxPyBeginAllowThreads();
14504 result = ((wxFont const *)arg1)->GetFaceName();
14505 wxPyEndAllowThreads(__tstate);
14506 if (PyErr_Occurred()) SWIG_fail;
14507 }
14508 {
14509#if wxUSE_UNICODE
14510 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14511#else
14512 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14513#endif
14514 }
14515 return resultobj;
14516fail:
14517 return NULL;
d55e5bfc
RD
14518}
14519
14520
1bd55598
RD
14521SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14522 PyObject *resultobj = 0;
14523 wxFont *arg1 = (wxFont *) 0 ;
14524 wxFontEncoding result;
14525 void *argp1 = 0 ;
14526 int res1 = 0 ;
14527 PyObject *swig_obj[1] ;
14528
14529 if (!args) SWIG_fail;
14530 swig_obj[0] = args;
14531 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14532 if (!SWIG_IsOK(res1)) {
14533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14534 }
14535 arg1 = reinterpret_cast< wxFont * >(argp1);
14536 {
14537 PyThreadState* __tstate = wxPyBeginAllowThreads();
14538 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14539 wxPyEndAllowThreads(__tstate);
14540 if (PyErr_Occurred()) SWIG_fail;
14541 }
14542 resultobj = SWIG_From_int(static_cast< int >(result));
14543 return resultobj;
14544fail:
14545 return NULL;
d55e5bfc
RD
14546}
14547
14548
1bd55598
RD
14549SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14550 PyObject *resultobj = 0;
14551 wxFont *arg1 = (wxFont *) 0 ;
14552 wxNativeFontInfo *result = 0 ;
14553 void *argp1 = 0 ;
14554 int res1 = 0 ;
14555 PyObject *swig_obj[1] ;
14556
14557 if (!args) SWIG_fail;
14558 swig_obj[0] = args;
14559 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14560 if (!SWIG_IsOK(res1)) {
14561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14562 }
14563 arg1 = reinterpret_cast< wxFont * >(argp1);
14564 {
14565 PyThreadState* __tstate = wxPyBeginAllowThreads();
14566 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14567 wxPyEndAllowThreads(__tstate);
14568 if (PyErr_Occurred()) SWIG_fail;
14569 }
14570 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14571 return resultobj;
14572fail:
14573 return NULL;
d55e5bfc
RD
14574}
14575
14576
1bd55598
RD
14577SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14578 PyObject *resultobj = 0;
14579 wxFont *arg1 = (wxFont *) 0 ;
14580 bool result;
14581 void *argp1 = 0 ;
14582 int res1 = 0 ;
14583 PyObject *swig_obj[1] ;
14584
14585 if (!args) SWIG_fail;
14586 swig_obj[0] = args;
14587 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14588 if (!SWIG_IsOK(res1)) {
14589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14590 }
14591 arg1 = reinterpret_cast< wxFont * >(argp1);
14592 {
14593 PyThreadState* __tstate = wxPyBeginAllowThreads();
14594 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14595 wxPyEndAllowThreads(__tstate);
14596 if (PyErr_Occurred()) SWIG_fail;
14597 }
14598 {
14599 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14600 }
14601 return resultobj;
14602fail:
14603 return NULL;
d55e5bfc
RD
14604}
14605
14606
1bd55598
RD
14607SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14608 PyObject *resultobj = 0;
14609 wxFont *arg1 = (wxFont *) 0 ;
14610 wxString result;
14611 void *argp1 = 0 ;
14612 int res1 = 0 ;
14613 PyObject *swig_obj[1] ;
14614
14615 if (!args) SWIG_fail;
14616 swig_obj[0] = args;
14617 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14618 if (!SWIG_IsOK(res1)) {
14619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14620 }
14621 arg1 = reinterpret_cast< wxFont * >(argp1);
14622 {
14623 PyThreadState* __tstate = wxPyBeginAllowThreads();
14624 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14625 wxPyEndAllowThreads(__tstate);
14626 if (PyErr_Occurred()) SWIG_fail;
14627 }
14628 {
14629#if wxUSE_UNICODE
14630 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14631#else
14632 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14633#endif
14634 }
14635 return resultobj;
14636fail:
14637 return NULL;
d55e5bfc
RD
14638}
14639
14640
1bd55598
RD
14641SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14642 PyObject *resultobj = 0;
14643 wxFont *arg1 = (wxFont *) 0 ;
14644 wxString result;
14645 void *argp1 = 0 ;
14646 int res1 = 0 ;
14647 PyObject *swig_obj[1] ;
14648
14649 if (!args) SWIG_fail;
14650 swig_obj[0] = args;
14651 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14652 if (!SWIG_IsOK(res1)) {
14653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14654 }
14655 arg1 = reinterpret_cast< wxFont * >(argp1);
14656 {
14657 PyThreadState* __tstate = wxPyBeginAllowThreads();
14658 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14659 wxPyEndAllowThreads(__tstate);
14660 if (PyErr_Occurred()) SWIG_fail;
14661 }
14662 {
14663#if wxUSE_UNICODE
14664 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14665#else
14666 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14667#endif
14668 }
14669 return resultobj;
14670fail:
14671 return NULL;
14672}
14673
14674
14675SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14676 PyObject *resultobj = 0;
14677 wxFont *arg1 = (wxFont *) 0 ;
14678 int arg2 ;
14679 void *argp1 = 0 ;
14680 int res1 = 0 ;
14681 int val2 ;
14682 int ecode2 = 0 ;
14683 PyObject * obj0 = 0 ;
14684 PyObject * obj1 = 0 ;
14685 char * kwnames[] = {
14686 (char *) "self",(char *) "pointSize", NULL
14687 };
14688
14689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14691 if (!SWIG_IsOK(res1)) {
14692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14693 }
14694 arg1 = reinterpret_cast< wxFont * >(argp1);
14695 ecode2 = SWIG_AsVal_int(obj1, &val2);
14696 if (!SWIG_IsOK(ecode2)) {
14697 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14698 }
14699 arg2 = static_cast< int >(val2);
14700 {
14701 PyThreadState* __tstate = wxPyBeginAllowThreads();
14702 (arg1)->SetPointSize(arg2);
14703 wxPyEndAllowThreads(__tstate);
14704 if (PyErr_Occurred()) SWIG_fail;
14705 }
14706 resultobj = SWIG_Py_Void();
14707 return resultobj;
14708fail:
14709 return NULL;
14710}
14711
14712
14713SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14714 PyObject *resultobj = 0;
14715 wxFont *arg1 = (wxFont *) 0 ;
14716 wxSize *arg2 = 0 ;
14717 void *argp1 = 0 ;
14718 int res1 = 0 ;
14719 wxSize temp2 ;
14720 PyObject * obj0 = 0 ;
14721 PyObject * obj1 = 0 ;
14722 char * kwnames[] = {
14723 (char *) "self",(char *) "pixelSize", NULL
14724 };
14725
14726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14728 if (!SWIG_IsOK(res1)) {
14729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14730 }
14731 arg1 = reinterpret_cast< wxFont * >(argp1);
14732 {
14733 arg2 = &temp2;
14734 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14735 }
14736 {
14737 PyThreadState* __tstate = wxPyBeginAllowThreads();
14738 (arg1)->SetPixelSize((wxSize const &)*arg2);
14739 wxPyEndAllowThreads(__tstate);
14740 if (PyErr_Occurred()) SWIG_fail;
14741 }
14742 resultobj = SWIG_Py_Void();
14743 return resultobj;
14744fail:
14745 return NULL;
14746}
14747
14748
14749SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14750 PyObject *resultobj = 0;
14751 wxFont *arg1 = (wxFont *) 0 ;
14752 int arg2 ;
14753 void *argp1 = 0 ;
14754 int res1 = 0 ;
14755 int val2 ;
14756 int ecode2 = 0 ;
14757 PyObject * obj0 = 0 ;
14758 PyObject * obj1 = 0 ;
14759 char * kwnames[] = {
14760 (char *) "self",(char *) "family", NULL
14761 };
14762
14763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14765 if (!SWIG_IsOK(res1)) {
14766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14767 }
14768 arg1 = reinterpret_cast< wxFont * >(argp1);
14769 ecode2 = SWIG_AsVal_int(obj1, &val2);
14770 if (!SWIG_IsOK(ecode2)) {
14771 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14772 }
14773 arg2 = static_cast< int >(val2);
14774 {
14775 PyThreadState* __tstate = wxPyBeginAllowThreads();
14776 (arg1)->SetFamily(arg2);
14777 wxPyEndAllowThreads(__tstate);
14778 if (PyErr_Occurred()) SWIG_fail;
14779 }
14780 resultobj = SWIG_Py_Void();
14781 return resultobj;
14782fail:
14783 return NULL;
14784}
14785
14786
14787SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14788 PyObject *resultobj = 0;
14789 wxFont *arg1 = (wxFont *) 0 ;
14790 int arg2 ;
14791 void *argp1 = 0 ;
14792 int res1 = 0 ;
14793 int val2 ;
14794 int ecode2 = 0 ;
14795 PyObject * obj0 = 0 ;
14796 PyObject * obj1 = 0 ;
14797 char * kwnames[] = {
14798 (char *) "self",(char *) "style", NULL
14799 };
14800
14801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
14802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14803 if (!SWIG_IsOK(res1)) {
14804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
14805 }
14806 arg1 = reinterpret_cast< wxFont * >(argp1);
14807 ecode2 = SWIG_AsVal_int(obj1, &val2);
14808 if (!SWIG_IsOK(ecode2)) {
14809 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
14810 }
14811 arg2 = static_cast< int >(val2);
14812 {
14813 PyThreadState* __tstate = wxPyBeginAllowThreads();
14814 (arg1)->SetStyle(arg2);
14815 wxPyEndAllowThreads(__tstate);
14816 if (PyErr_Occurred()) SWIG_fail;
14817 }
14818 resultobj = SWIG_Py_Void();
14819 return resultobj;
14820fail:
14821 return NULL;
14822}
14823
14824
14825SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14826 PyObject *resultobj = 0;
14827 wxFont *arg1 = (wxFont *) 0 ;
14828 int arg2 ;
14829 void *argp1 = 0 ;
14830 int res1 = 0 ;
14831 int val2 ;
14832 int ecode2 = 0 ;
14833 PyObject * obj0 = 0 ;
14834 PyObject * obj1 = 0 ;
14835 char * kwnames[] = {
14836 (char *) "self",(char *) "weight", NULL
14837 };
14838
14839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
14840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14841 if (!SWIG_IsOK(res1)) {
14842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
14843 }
14844 arg1 = reinterpret_cast< wxFont * >(argp1);
14845 ecode2 = SWIG_AsVal_int(obj1, &val2);
14846 if (!SWIG_IsOK(ecode2)) {
14847 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
14848 }
14849 arg2 = static_cast< int >(val2);
14850 {
14851 PyThreadState* __tstate = wxPyBeginAllowThreads();
14852 (arg1)->SetWeight(arg2);
14853 wxPyEndAllowThreads(__tstate);
14854 if (PyErr_Occurred()) SWIG_fail;
14855 }
14856 resultobj = SWIG_Py_Void();
14857 return resultobj;
14858fail:
14859 return NULL;
14860}
14861
14862
14863SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14864 PyObject *resultobj = 0;
14865 wxFont *arg1 = (wxFont *) 0 ;
14866 wxString *arg2 = 0 ;
704eda0c 14867 bool result;
1bd55598
RD
14868 void *argp1 = 0 ;
14869 int res1 = 0 ;
14870 bool temp2 = false ;
14871 PyObject * obj0 = 0 ;
14872 PyObject * obj1 = 0 ;
14873 char * kwnames[] = {
14874 (char *) "self",(char *) "faceName", NULL
14875 };
14876
14877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
14878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14879 if (!SWIG_IsOK(res1)) {
14880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
14881 }
14882 arg1 = reinterpret_cast< wxFont * >(argp1);
14883 {
14884 arg2 = wxString_in_helper(obj1);
14885 if (arg2 == NULL) SWIG_fail;
14886 temp2 = true;
14887 }
14888 {
14889 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 14890 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
1bd55598
RD
14891 wxPyEndAllowThreads(__tstate);
14892 if (PyErr_Occurred()) SWIG_fail;
14893 }
704eda0c
RD
14894 {
14895 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14896 }
1bd55598
RD
14897 {
14898 if (temp2)
14899 delete arg2;
14900 }
14901 return resultobj;
14902fail:
14903 {
14904 if (temp2)
14905 delete arg2;
14906 }
14907 return NULL;
14908}
14909
14910
14911SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14912 PyObject *resultobj = 0;
14913 wxFont *arg1 = (wxFont *) 0 ;
14914 bool arg2 ;
14915 void *argp1 = 0 ;
14916 int res1 = 0 ;
14917 bool val2 ;
14918 int ecode2 = 0 ;
14919 PyObject * obj0 = 0 ;
14920 PyObject * obj1 = 0 ;
14921 char * kwnames[] = {
14922 (char *) "self",(char *) "underlined", NULL
14923 };
14924
14925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
14926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14927 if (!SWIG_IsOK(res1)) {
14928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
14929 }
14930 arg1 = reinterpret_cast< wxFont * >(argp1);
14931 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14932 if (!SWIG_IsOK(ecode2)) {
14933 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
14934 }
14935 arg2 = static_cast< bool >(val2);
14936 {
14937 PyThreadState* __tstate = wxPyBeginAllowThreads();
14938 (arg1)->SetUnderlined(arg2);
14939 wxPyEndAllowThreads(__tstate);
14940 if (PyErr_Occurred()) SWIG_fail;
14941 }
14942 resultobj = SWIG_Py_Void();
14943 return resultobj;
14944fail:
14945 return NULL;
14946}
14947
14948
14949SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14950 PyObject *resultobj = 0;
14951 wxFont *arg1 = (wxFont *) 0 ;
14952 wxFontEncoding arg2 ;
14953 void *argp1 = 0 ;
14954 int res1 = 0 ;
14955 int val2 ;
14956 int ecode2 = 0 ;
14957 PyObject * obj0 = 0 ;
14958 PyObject * obj1 = 0 ;
14959 char * kwnames[] = {
14960 (char *) "self",(char *) "encoding", NULL
14961 };
14962
14963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
14964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14965 if (!SWIG_IsOK(res1)) {
14966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
14967 }
14968 arg1 = reinterpret_cast< wxFont * >(argp1);
14969 ecode2 = SWIG_AsVal_int(obj1, &val2);
14970 if (!SWIG_IsOK(ecode2)) {
14971 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14972 }
14973 arg2 = static_cast< wxFontEncoding >(val2);
14974 {
14975 PyThreadState* __tstate = wxPyBeginAllowThreads();
14976 (arg1)->SetEncoding(arg2);
14977 wxPyEndAllowThreads(__tstate);
14978 if (PyErr_Occurred()) SWIG_fail;
14979 }
14980 resultobj = SWIG_Py_Void();
14981 return resultobj;
14982fail:
14983 return NULL;
14984}
14985
14986
14987SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14988 PyObject *resultobj = 0;
14989 wxFont *arg1 = (wxFont *) 0 ;
14990 wxNativeFontInfo *arg2 = 0 ;
14991 void *argp1 = 0 ;
14992 int res1 = 0 ;
14993 void *argp2 = 0 ;
14994 int res2 = 0 ;
14995 PyObject * obj0 = 0 ;
14996 PyObject * obj1 = 0 ;
14997 char * kwnames[] = {
14998 (char *) "self",(char *) "info", NULL
14999 };
15000
15001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15003 if (!SWIG_IsOK(res1)) {
15004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15005 }
15006 arg1 = reinterpret_cast< wxFont * >(argp1);
15007 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15008 if (!SWIG_IsOK(res2)) {
15009 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15010 }
15011 if (!argp2) {
15012 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15013 }
15014 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15015 {
15016 PyThreadState* __tstate = wxPyBeginAllowThreads();
15017 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15018 wxPyEndAllowThreads(__tstate);
15019 if (PyErr_Occurred()) SWIG_fail;
15020 }
15021 resultobj = SWIG_Py_Void();
15022 return resultobj;
15023fail:
15024 return NULL;
15025}
15026
15027
15028SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15029 PyObject *resultobj = 0;
15030 wxFont *arg1 = (wxFont *) 0 ;
15031 wxString *arg2 = 0 ;
704eda0c 15032 bool result;
1bd55598
RD
15033 void *argp1 = 0 ;
15034 int res1 = 0 ;
15035 bool temp2 = false ;
15036 PyObject * obj0 = 0 ;
15037 PyObject * obj1 = 0 ;
15038 char * kwnames[] = {
15039 (char *) "self",(char *) "info", NULL
15040 };
15041
15042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15043 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15044 if (!SWIG_IsOK(res1)) {
15045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15046 }
15047 arg1 = reinterpret_cast< wxFont * >(argp1);
15048 {
15049 arg2 = wxString_in_helper(obj1);
15050 if (arg2 == NULL) SWIG_fail;
15051 temp2 = true;
15052 }
15053 {
15054 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15055 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
1bd55598
RD
15056 wxPyEndAllowThreads(__tstate);
15057 if (PyErr_Occurred()) SWIG_fail;
15058 }
704eda0c
RD
15059 {
15060 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15061 }
1bd55598
RD
15062 {
15063 if (temp2)
15064 delete arg2;
15065 }
15066 return resultobj;
15067fail:
15068 {
15069 if (temp2)
15070 delete arg2;
15071 }
15072 return NULL;
d55e5bfc
RD
15073}
15074
15075
1bd55598
RD
15076SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15077 PyObject *resultobj = 0;
15078 wxFont *arg1 = (wxFont *) 0 ;
15079 wxString *arg2 = 0 ;
704eda0c 15080 bool result;
1bd55598
RD
15081 void *argp1 = 0 ;
15082 int res1 = 0 ;
15083 bool temp2 = false ;
15084 PyObject * obj0 = 0 ;
15085 PyObject * obj1 = 0 ;
15086 char * kwnames[] = {
15087 (char *) "self",(char *) "info", NULL
15088 };
15089
15090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15092 if (!SWIG_IsOK(res1)) {
15093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15094 }
15095 arg1 = reinterpret_cast< wxFont * >(argp1);
15096 {
15097 arg2 = wxString_in_helper(obj1);
15098 if (arg2 == NULL) SWIG_fail;
15099 temp2 = true;
15100 }
15101 {
15102 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15103 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
1bd55598
RD
15104 wxPyEndAllowThreads(__tstate);
15105 if (PyErr_Occurred()) SWIG_fail;
15106 }
704eda0c
RD
15107 {
15108 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15109 }
1bd55598
RD
15110 {
15111 if (temp2)
15112 delete arg2;
15113 }
15114 return resultobj;
15115fail:
15116 {
15117 if (temp2)
15118 delete arg2;
15119 }
15120 return NULL;
d55e5bfc
RD
15121}
15122
15123
1bd55598
RD
15124SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15125 PyObject *resultobj = 0;
15126 wxFont *arg1 = (wxFont *) 0 ;
15127 wxString result;
15128 void *argp1 = 0 ;
15129 int res1 = 0 ;
15130 PyObject *swig_obj[1] ;
15131
15132 if (!args) SWIG_fail;
15133 swig_obj[0] = args;
15134 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15135 if (!SWIG_IsOK(res1)) {
15136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15137 }
15138 arg1 = reinterpret_cast< wxFont * >(argp1);
15139 {
15140 PyThreadState* __tstate = wxPyBeginAllowThreads();
15141 result = ((wxFont const *)arg1)->GetFamilyString();
15142 wxPyEndAllowThreads(__tstate);
15143 if (PyErr_Occurred()) SWIG_fail;
15144 }
15145 {
15146#if wxUSE_UNICODE
15147 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15148#else
15149 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15150#endif
15151 }
15152 return resultobj;
15153fail:
15154 return NULL;
d55e5bfc
RD
15155}
15156
15157
1bd55598
RD
15158SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15159 PyObject *resultobj = 0;
15160 wxFont *arg1 = (wxFont *) 0 ;
15161 wxString result;
15162 void *argp1 = 0 ;
15163 int res1 = 0 ;
15164 PyObject *swig_obj[1] ;
15165
15166 if (!args) SWIG_fail;
15167 swig_obj[0] = args;
15168 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15169 if (!SWIG_IsOK(res1)) {
15170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15171 }
15172 arg1 = reinterpret_cast< wxFont * >(argp1);
15173 {
15174 PyThreadState* __tstate = wxPyBeginAllowThreads();
15175 result = ((wxFont const *)arg1)->GetStyleString();
15176 wxPyEndAllowThreads(__tstate);
15177 if (PyErr_Occurred()) SWIG_fail;
15178 }
15179 {
15180#if wxUSE_UNICODE
15181 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15182#else
15183 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15184#endif
15185 }
15186 return resultobj;
15187fail:
15188 return NULL;
d55e5bfc
RD
15189}
15190
15191
1bd55598
RD
15192SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15193 PyObject *resultobj = 0;
15194 wxFont *arg1 = (wxFont *) 0 ;
15195 wxString result;
15196 void *argp1 = 0 ;
15197 int res1 = 0 ;
15198 PyObject *swig_obj[1] ;
15199
15200 if (!args) SWIG_fail;
15201 swig_obj[0] = args;
15202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15203 if (!SWIG_IsOK(res1)) {
15204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15205 }
15206 arg1 = reinterpret_cast< wxFont * >(argp1);
15207 {
15208 PyThreadState* __tstate = wxPyBeginAllowThreads();
15209 result = ((wxFont const *)arg1)->GetWeightString();
15210 wxPyEndAllowThreads(__tstate);
15211 if (PyErr_Occurred()) SWIG_fail;
15212 }
15213 {
15214#if wxUSE_UNICODE
15215 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15216#else
15217 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15218#endif
15219 }
15220 return resultobj;
15221fail:
15222 return NULL;
15223}
15224
15225
15226SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15227 PyObject *resultobj = 0;
15228 wxFont *arg1 = (wxFont *) 0 ;
15229 bool arg2 = (bool) true ;
15230 void *argp1 = 0 ;
15231 int res1 = 0 ;
15232 bool val2 ;
15233 int ecode2 = 0 ;
15234 PyObject * obj0 = 0 ;
15235 PyObject * obj1 = 0 ;
15236 char * kwnames[] = {
15237 (char *) "self",(char *) "no", NULL
15238 };
15239
15240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15242 if (!SWIG_IsOK(res1)) {
15243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15244 }
15245 arg1 = reinterpret_cast< wxFont * >(argp1);
15246 if (obj1) {
15247 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15248 if (!SWIG_IsOK(ecode2)) {
15249 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15250 }
15251 arg2 = static_cast< bool >(val2);
15252 }
15253 {
15254 PyThreadState* __tstate = wxPyBeginAllowThreads();
15255 (arg1)->SetNoAntiAliasing(arg2);
15256 wxPyEndAllowThreads(__tstate);
15257 if (PyErr_Occurred()) SWIG_fail;
15258 }
15259 resultobj = SWIG_Py_Void();
15260 return resultobj;
15261fail:
15262 return NULL;
d55e5bfc
RD
15263}
15264
15265
1bd55598
RD
15266SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15267 PyObject *resultobj = 0;
15268 wxFont *arg1 = (wxFont *) 0 ;
15269 bool result;
15270 void *argp1 = 0 ;
15271 int res1 = 0 ;
15272 PyObject *swig_obj[1] ;
15273
15274 if (!args) SWIG_fail;
15275 swig_obj[0] = args;
15276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15277 if (!SWIG_IsOK(res1)) {
15278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15279 }
15280 arg1 = reinterpret_cast< wxFont * >(argp1);
15281 {
15282 PyThreadState* __tstate = wxPyBeginAllowThreads();
15283 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
15284 wxPyEndAllowThreads(__tstate);
15285 if (PyErr_Occurred()) SWIG_fail;
15286 }
15287 {
15288 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15289 }
15290 return resultobj;
15291fail:
15292 return NULL;
d55e5bfc
RD
15293}
15294
15295
1bd55598
RD
15296SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15297 PyObject *resultobj = 0;
15298 wxFontEncoding result;
15299
15300 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15301 {
15302 if (!wxPyCheckForApp()) SWIG_fail;
15303 PyThreadState* __tstate = wxPyBeginAllowThreads();
15304 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15305 wxPyEndAllowThreads(__tstate);
15306 if (PyErr_Occurred()) SWIG_fail;
15307 }
15308 resultobj = SWIG_From_int(static_cast< int >(result));
15309 return resultobj;
15310fail:
15311 return NULL;
d55e5bfc
RD
15312}
15313
15314
1bd55598
RD
15315SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15316 PyObject *resultobj = 0;
15317 wxFontEncoding arg1 ;
15318 int val1 ;
15319 int ecode1 = 0 ;
15320 PyObject * obj0 = 0 ;
15321 char * kwnames[] = {
15322 (char *) "encoding", NULL
15323 };
15324
15325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15326 ecode1 = SWIG_AsVal_int(obj0, &val1);
15327 if (!SWIG_IsOK(ecode1)) {
15328 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15329 }
15330 arg1 = static_cast< wxFontEncoding >(val1);
15331 {
15332 if (!wxPyCheckForApp()) SWIG_fail;
15333 PyThreadState* __tstate = wxPyBeginAllowThreads();
15334 wxFont::SetDefaultEncoding(arg1);
15335 wxPyEndAllowThreads(__tstate);
15336 if (PyErr_Occurred()) SWIG_fail;
15337 }
15338 resultobj = SWIG_Py_Void();
15339 return resultobj;
15340fail:
15341 return NULL;
d55e5bfc
RD
15342}
15343
15344
1bd55598
RD
15345SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15346 PyObject *obj;
15347 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15348 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15349 return SWIG_Py_Void();
d55e5bfc 15350}
d55e5bfc 15351
1bd55598
RD
15352SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15353 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
15354}
15355
1bd55598
RD
15356SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15357 PyObject *resultobj = 0;
15358 wxPyFontEnumerator *result = 0 ;
15359
15360 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15361 {
15362 if (!wxPyCheckForApp()) SWIG_fail;
15363 PyThreadState* __tstate = wxPyBeginAllowThreads();
15364 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15365 wxPyEndAllowThreads(__tstate);
15366 if (PyErr_Occurred()) SWIG_fail;
15367 }
15368 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15369 return resultobj;
15370fail:
15371 return NULL;
d55e5bfc
RD
15372}
15373
15374
1bd55598
RD
15375SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15376 PyObject *resultobj = 0;
15377 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15378 void *argp1 = 0 ;
15379 int res1 = 0 ;
15380 PyObject *swig_obj[1] ;
15381
15382 if (!args) SWIG_fail;
15383 swig_obj[0] = args;
15384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15385 if (!SWIG_IsOK(res1)) {
15386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15387 }
15388 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15389 {
15390 PyThreadState* __tstate = wxPyBeginAllowThreads();
15391 delete arg1;
d55e5bfc 15392
1bd55598
RD
15393 wxPyEndAllowThreads(__tstate);
15394 if (PyErr_Occurred()) SWIG_fail;
15395 }
15396 resultobj = SWIG_Py_Void();
15397 return resultobj;
15398fail:
15399 return NULL;
15400}
15401
15402
15403SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15404 PyObject *resultobj = 0;
15405 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15406 PyObject *arg2 = (PyObject *) 0 ;
15407 PyObject *arg3 = (PyObject *) 0 ;
15408 bool arg4 ;
15409 void *argp1 = 0 ;
15410 int res1 = 0 ;
15411 bool val4 ;
15412 int ecode4 = 0 ;
15413 PyObject * obj0 = 0 ;
15414 PyObject * obj1 = 0 ;
15415 PyObject * obj2 = 0 ;
15416 PyObject * obj3 = 0 ;
15417 char * kwnames[] = {
15418 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15419 };
15420
15421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15423 if (!SWIG_IsOK(res1)) {
15424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15425 }
15426 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15427 arg2 = obj1;
15428 arg3 = obj2;
15429 ecode4 = SWIG_AsVal_bool(obj3, &val4);
15430 if (!SWIG_IsOK(ecode4)) {
15431 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
15432 }
15433 arg4 = static_cast< bool >(val4);
15434 {
15435 PyThreadState* __tstate = wxPyBeginAllowThreads();
15436 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15437 wxPyEndAllowThreads(__tstate);
15438 if (PyErr_Occurred()) SWIG_fail;
15439 }
15440 resultobj = SWIG_Py_Void();
15441 return resultobj;
15442fail:
15443 return NULL;
15444}
15445
15446
15447SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15448 PyObject *resultobj = 0;
15449 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15450 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15451 bool arg3 = (bool) false ;
15452 bool result;
15453 void *argp1 = 0 ;
15454 int res1 = 0 ;
15455 int val2 ;
15456 int ecode2 = 0 ;
15457 bool val3 ;
15458 int ecode3 = 0 ;
15459 PyObject * obj0 = 0 ;
15460 PyObject * obj1 = 0 ;
15461 PyObject * obj2 = 0 ;
15462 char * kwnames[] = {
15463 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15464 };
15465
15466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15468 if (!SWIG_IsOK(res1)) {
15469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15470 }
15471 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15472 if (obj1) {
15473 ecode2 = SWIG_AsVal_int(obj1, &val2);
15474 if (!SWIG_IsOK(ecode2)) {
15475 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15476 }
15477 arg2 = static_cast< wxFontEncoding >(val2);
15478 }
15479 if (obj2) {
15480 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15481 if (!SWIG_IsOK(ecode3)) {
15482 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15483 }
15484 arg3 = static_cast< bool >(val3);
15485 }
15486 {
15487 PyThreadState* __tstate = wxPyBeginAllowThreads();
15488 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15489 wxPyEndAllowThreads(__tstate);
15490 if (PyErr_Occurred()) SWIG_fail;
15491 }
15492 {
15493 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15494 }
15495 return resultobj;
15496fail:
15497 return NULL;
15498}
15499
15500
15501SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15502 PyObject *resultobj = 0;
15503 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15504 wxString const &arg2_defvalue = wxPyEmptyString ;
15505 wxString *arg2 = (wxString *) &arg2_defvalue ;
15506 bool result;
15507 void *argp1 = 0 ;
15508 int res1 = 0 ;
15509 bool temp2 = false ;
15510 PyObject * obj0 = 0 ;
15511 PyObject * obj1 = 0 ;
15512 char * kwnames[] = {
15513 (char *) "self",(char *) "facename", NULL
15514 };
15515
15516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15518 if (!SWIG_IsOK(res1)) {
15519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15520 }
15521 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15522 if (obj1) {
36ed4f51 15523 {
1bd55598
RD
15524 arg2 = wxString_in_helper(obj1);
15525 if (arg2 == NULL) SWIG_fail;
15526 temp2 = true;
36ed4f51 15527 }
1bd55598
RD
15528 }
15529 {
15530 PyThreadState* __tstate = wxPyBeginAllowThreads();
15531 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15532 wxPyEndAllowThreads(__tstate);
15533 if (PyErr_Occurred()) SWIG_fail;
15534 }
15535 {
15536 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15537 }
15538 {
15539 if (temp2)
15540 delete arg2;
15541 }
15542 return resultobj;
15543fail:
15544 {
15545 if (temp2)
15546 delete arg2;
15547 }
15548 return NULL;
d55e5bfc
RD
15549}
15550
15551
1bd55598
RD
15552SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15553 PyObject *resultobj = 0;
1bd55598 15554 PyObject *result = 0 ;
1bd55598 15555
704eda0c 15556 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
1bd55598
RD
15557 {
15558 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15559 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
1bd55598
RD
15560 wxPyEndAllowThreads(__tstate);
15561 if (PyErr_Occurred()) SWIG_fail;
15562 }
15563 resultobj = result;
15564 return resultobj;
15565fail:
15566 return NULL;
d55e5bfc
RD
15567}
15568
15569
1bd55598
RD
15570SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15571 PyObject *resultobj = 0;
1bd55598 15572 PyObject *result = 0 ;
1bd55598 15573
704eda0c 15574 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
1bd55598
RD
15575 {
15576 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15577 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
1bd55598
RD
15578 wxPyEndAllowThreads(__tstate);
15579 if (PyErr_Occurred()) SWIG_fail;
15580 }
15581 resultobj = result;
15582 return resultobj;
15583fail:
15584 return NULL;
d55e5bfc
RD
15585}
15586
15587
704eda0c
RD
15588SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15589 PyObject *resultobj = 0;
15590 wxString *arg1 = 0 ;
15591 bool result;
15592 bool temp1 = false ;
15593 PyObject * obj0 = 0 ;
15594 char * kwnames[] = {
15595 (char *) "str", NULL
15596 };
15597
15598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15599 {
15600 arg1 = wxString_in_helper(obj0);
15601 if (arg1 == NULL) SWIG_fail;
15602 temp1 = true;
15603 }
15604 {
15605 PyThreadState* __tstate = wxPyBeginAllowThreads();
15606 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15607 wxPyEndAllowThreads(__tstate);
15608 if (PyErr_Occurred()) SWIG_fail;
15609 }
15610 {
15611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15612 }
15613 {
15614 if (temp1)
15615 delete arg1;
15616 }
15617 return resultobj;
15618fail:
15619 {
15620 if (temp1)
15621 delete arg1;
15622 }
15623 return NULL;
15624}
15625
15626
1bd55598
RD
15627SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15628 PyObject *obj;
15629 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15630 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15631 return SWIG_Py_Void();
d55e5bfc
RD
15632}
15633
1bd55598
RD
15634SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15635 return SWIG_Python_InitShadowInstance(args);
15636}
d55e5bfc 15637
1bd55598
RD
15638SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15639 PyObject *resultobj = 0;
15640 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15641 int arg2 ;
15642 void *argp1 = 0 ;
15643 int res1 = 0 ;
15644 int val2 ;
15645 int ecode2 = 0 ;
15646 PyObject *swig_obj[2] ;
15647
15648 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15649 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15650 if (!SWIG_IsOK(res1)) {
15651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15652 }
15653 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15654 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15655 if (!SWIG_IsOK(ecode2)) {
15656 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15657 }
15658 arg2 = static_cast< int >(val2);
15659 if (arg1) (arg1)->Language = arg2;
15660
15661 resultobj = SWIG_Py_Void();
15662 return resultobj;
15663fail:
15664 return NULL;
d55e5bfc
RD
15665}
15666
15667
1bd55598
RD
15668SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15669 PyObject *resultobj = 0;
15670 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15671 int result;
15672 void *argp1 = 0 ;
15673 int res1 = 0 ;
15674 PyObject *swig_obj[1] ;
15675
15676 if (!args) SWIG_fail;
15677 swig_obj[0] = args;
15678 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15679 if (!SWIG_IsOK(res1)) {
15680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15681 }
15682 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15683 result = (int) ((arg1)->Language);
15684 resultobj = SWIG_From_int(static_cast< int >(result));
15685 return resultobj;
15686fail:
15687 return NULL;
15688}
15689
15690
15691SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15692 PyObject *resultobj = 0;
15693 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15694 wxString *arg2 = (wxString *) 0 ;
15695 void *argp1 = 0 ;
15696 int res1 = 0 ;
15697 bool temp2 = false ;
15698 PyObject *swig_obj[2] ;
15699
15700 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15701 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15702 if (!SWIG_IsOK(res1)) {
15703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15704 }
15705 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15706 {
15707 arg2 = wxString_in_helper(swig_obj[1]);
15708 if (arg2 == NULL) SWIG_fail;
15709 temp2 = true;
15710 }
15711 if (arg1) (arg1)->CanonicalName = *arg2;
15712
15713 resultobj = SWIG_Py_Void();
15714 {
15715 if (temp2)
15716 delete arg2;
15717 }
15718 return resultobj;
15719fail:
15720 {
15721 if (temp2)
15722 delete arg2;
15723 }
15724 return NULL;
d55e5bfc
RD
15725}
15726
15727
1bd55598
RD
15728SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15729 PyObject *resultobj = 0;
15730 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15731 wxString *result = 0 ;
15732 void *argp1 = 0 ;
15733 int res1 = 0 ;
15734 PyObject *swig_obj[1] ;
15735
15736 if (!args) SWIG_fail;
15737 swig_obj[0] = args;
15738 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15739 if (!SWIG_IsOK(res1)) {
15740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15741 }
15742 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15743 result = (wxString *)& ((arg1)->CanonicalName);
15744 {
15745#if wxUSE_UNICODE
15746 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15747#else
15748 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15749#endif
15750 }
15751 return resultobj;
15752fail:
15753 return NULL;
d55e5bfc
RD
15754}
15755
15756
1bd55598
RD
15757SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15758 PyObject *resultobj = 0;
15759 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15760 wxString *arg2 = (wxString *) 0 ;
15761 void *argp1 = 0 ;
15762 int res1 = 0 ;
15763 bool temp2 = false ;
15764 PyObject *swig_obj[2] ;
15765
15766 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15767 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15768 if (!SWIG_IsOK(res1)) {
15769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15770 }
15771 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15772 {
15773 arg2 = wxString_in_helper(swig_obj[1]);
15774 if (arg2 == NULL) SWIG_fail;
15775 temp2 = true;
15776 }
15777 if (arg1) (arg1)->Description = *arg2;
15778
15779 resultobj = SWIG_Py_Void();
15780 {
15781 if (temp2)
15782 delete arg2;
15783 }
15784 return resultobj;
15785fail:
15786 {
15787 if (temp2)
15788 delete arg2;
15789 }
15790 return NULL;
d55e5bfc
RD
15791}
15792
15793
1bd55598
RD
15794SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15795 PyObject *resultobj = 0;
15796 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15797 wxString *result = 0 ;
15798 void *argp1 = 0 ;
15799 int res1 = 0 ;
15800 PyObject *swig_obj[1] ;
15801
15802 if (!args) SWIG_fail;
15803 swig_obj[0] = args;
15804 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15805 if (!SWIG_IsOK(res1)) {
15806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15807 }
15808 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15809 result = (wxString *)& ((arg1)->Description);
15810 {
15811#if wxUSE_UNICODE
15812 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15813#else
15814 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15815#endif
15816 }
15817 return resultobj;
15818fail:
15819 return NULL;
15820}
15821
15822
15823SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15824 PyObject *obj;
15825 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15826 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
15827 return SWIG_Py_Void();
15828}
15829
15830SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15831 PyObject *resultobj = 0;
15832 int arg1 = (int) -1 ;
15833 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15834 wxLocale *result = 0 ;
15835 int val1 ;
15836 int ecode1 = 0 ;
15837 int val2 ;
15838 int ecode2 = 0 ;
15839 PyObject * obj0 = 0 ;
15840 PyObject * obj1 = 0 ;
15841 char * kwnames[] = {
15842 (char *) "language",(char *) "flags", NULL
15843 };
15844
15845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
15846 if (obj0) {
15847 ecode1 = SWIG_AsVal_int(obj0, &val1);
15848 if (!SWIG_IsOK(ecode1)) {
15849 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
15850 }
15851 arg1 = static_cast< int >(val1);
15852 }
15853 if (obj1) {
15854 ecode2 = SWIG_AsVal_int(obj1, &val2);
15855 if (!SWIG_IsOK(ecode2)) {
15856 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
15857 }
15858 arg2 = static_cast< int >(val2);
15859 }
15860 {
15861 PyThreadState* __tstate = wxPyBeginAllowThreads();
15862 result = (wxLocale *)new_wxLocale(arg1,arg2);
15863 wxPyEndAllowThreads(__tstate);
15864 if (PyErr_Occurred()) SWIG_fail;
15865 }
15866 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
15867 return resultobj;
15868fail:
15869 return NULL;
d55e5bfc
RD
15870}
15871
15872
1bd55598
RD
15873SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15874 PyObject *resultobj = 0;
15875 wxLocale *arg1 = (wxLocale *) 0 ;
15876 void *argp1 = 0 ;
15877 int res1 = 0 ;
15878 PyObject *swig_obj[1] ;
15879
15880 if (!args) SWIG_fail;
15881 swig_obj[0] = args;
15882 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
15883 if (!SWIG_IsOK(res1)) {
15884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
15885 }
15886 arg1 = reinterpret_cast< wxLocale * >(argp1);
15887 {
15888 PyThreadState* __tstate = wxPyBeginAllowThreads();
15889 delete arg1;
d55e5bfc 15890
1bd55598
RD
15891 wxPyEndAllowThreads(__tstate);
15892 if (PyErr_Occurred()) SWIG_fail;
15893 }
15894 resultobj = SWIG_Py_Void();
15895 return resultobj;
15896fail:
15897 return NULL;
15898}
15899
15900
15901SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15902 PyObject *resultobj = 0;
15903 wxLocale *arg1 = (wxLocale *) 0 ;
15904 wxString *arg2 = 0 ;
15905 wxString const &arg3_defvalue = wxPyEmptyString ;
15906 wxString *arg3 = (wxString *) &arg3_defvalue ;
15907 wxString const &arg4_defvalue = wxPyEmptyString ;
15908 wxString *arg4 = (wxString *) &arg4_defvalue ;
15909 bool arg5 = (bool) true ;
15910 bool arg6 = (bool) false ;
15911 bool result;
15912 void *argp1 = 0 ;
15913 int res1 = 0 ;
15914 bool temp2 = false ;
15915 bool temp3 = false ;
15916 bool temp4 = false ;
15917 bool val5 ;
15918 int ecode5 = 0 ;
15919 bool val6 ;
15920 int ecode6 = 0 ;
15921 PyObject * obj0 = 0 ;
15922 PyObject * obj1 = 0 ;
15923 PyObject * obj2 = 0 ;
15924 PyObject * obj3 = 0 ;
15925 PyObject * obj4 = 0 ;
15926 PyObject * obj5 = 0 ;
15927 char * kwnames[] = {
15928 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
15929 };
15930
15931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15933 if (!SWIG_IsOK(res1)) {
15934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
15935 }
15936 arg1 = reinterpret_cast< wxLocale * >(argp1);
15937 {
15938 arg2 = wxString_in_helper(obj1);
15939 if (arg2 == NULL) SWIG_fail;
15940 temp2 = true;
15941 }
15942 if (obj2) {
d55e5bfc 15943 {
1bd55598
RD
15944 arg3 = wxString_in_helper(obj2);
15945 if (arg3 == NULL) SWIG_fail;
15946 temp3 = true;
d55e5bfc 15947 }
1bd55598
RD
15948 }
15949 if (obj3) {
36ed4f51 15950 {
1bd55598
RD
15951 arg4 = wxString_in_helper(obj3);
15952 if (arg4 == NULL) SWIG_fail;
15953 temp4 = true;
36ed4f51 15954 }
1bd55598
RD
15955 }
15956 if (obj4) {
15957 ecode5 = SWIG_AsVal_bool(obj4, &val5);
15958 if (!SWIG_IsOK(ecode5)) {
15959 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
15960 }
15961 arg5 = static_cast< bool >(val5);
15962 }
15963 if (obj5) {
15964 ecode6 = SWIG_AsVal_bool(obj5, &val6);
15965 if (!SWIG_IsOK(ecode6)) {
15966 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
15967 }
15968 arg6 = static_cast< bool >(val6);
15969 }
15970 {
15971 PyThreadState* __tstate = wxPyBeginAllowThreads();
15972 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
15973 wxPyEndAllowThreads(__tstate);
15974 if (PyErr_Occurred()) SWIG_fail;
15975 }
15976 {
15977 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15978 }
15979 {
15980 if (temp2)
15981 delete arg2;
15982 }
15983 {
15984 if (temp3)
15985 delete arg3;
15986 }
15987 {
15988 if (temp4)
15989 delete arg4;
15990 }
15991 return resultobj;
15992fail:
15993 {
15994 if (temp2)
15995 delete arg2;
15996 }
15997 {
15998 if (temp3)
15999 delete arg3;
16000 }
16001 {
16002 if (temp4)
16003 delete arg4;
16004 }
16005 return NULL;
16006}
16007
16008
16009SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16010 PyObject *resultobj = 0;
16011 wxLocale *arg1 = (wxLocale *) 0 ;
16012 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16013 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16014 bool result;
16015 void *argp1 = 0 ;
16016 int res1 = 0 ;
16017 int val2 ;
16018 int ecode2 = 0 ;
16019 int val3 ;
16020 int ecode3 = 0 ;
16021 PyObject * obj0 = 0 ;
16022 PyObject * obj1 = 0 ;
16023 PyObject * obj2 = 0 ;
16024 char * kwnames[] = {
16025 (char *) "self",(char *) "language",(char *) "flags", NULL
16026 };
16027
16028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16030 if (!SWIG_IsOK(res1)) {
16031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16032 }
16033 arg1 = reinterpret_cast< wxLocale * >(argp1);
16034 if (obj1) {
16035 ecode2 = SWIG_AsVal_int(obj1, &val2);
16036 if (!SWIG_IsOK(ecode2)) {
16037 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16038 }
16039 arg2 = static_cast< int >(val2);
16040 }
16041 if (obj2) {
16042 ecode3 = SWIG_AsVal_int(obj2, &val3);
16043 if (!SWIG_IsOK(ecode3)) {
16044 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16045 }
16046 arg3 = static_cast< int >(val3);
16047 }
16048 {
16049 PyThreadState* __tstate = wxPyBeginAllowThreads();
16050 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16051 wxPyEndAllowThreads(__tstate);
16052 if (PyErr_Occurred()) SWIG_fail;
16053 }
16054 {
16055 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16056 }
16057 return resultobj;
16058fail:
16059 return NULL;
d55e5bfc
RD
16060}
16061
16062
1bd55598
RD
16063SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16064 PyObject *resultobj = 0;
16065 int result;
16066
16067 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16068 {
16069 PyThreadState* __tstate = wxPyBeginAllowThreads();
16070 result = (int)wxLocale::GetSystemLanguage();
16071 wxPyEndAllowThreads(__tstate);
16072 if (PyErr_Occurred()) SWIG_fail;
16073 }
16074 resultobj = SWIG_From_int(static_cast< int >(result));
16075 return resultobj;
16076fail:
16077 return NULL;
d55e5bfc
RD
16078}
16079
16080
1bd55598
RD
16081SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16082 PyObject *resultobj = 0;
16083 wxFontEncoding result;
16084
16085 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16086 {
16087 PyThreadState* __tstate = wxPyBeginAllowThreads();
16088 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16089 wxPyEndAllowThreads(__tstate);
16090 if (PyErr_Occurred()) SWIG_fail;
16091 }
16092 resultobj = SWIG_From_int(static_cast< int >(result));
16093 return resultobj;
16094fail:
16095 return NULL;
d55e5bfc
RD
16096}
16097
16098
1bd55598
RD
16099SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16100 PyObject *resultobj = 0;
16101 wxString result;
16102
16103 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16104 {
16105 PyThreadState* __tstate = wxPyBeginAllowThreads();
16106 result = wxLocale::GetSystemEncodingName();
16107 wxPyEndAllowThreads(__tstate);
16108 if (PyErr_Occurred()) SWIG_fail;
16109 }
16110 {
16111#if wxUSE_UNICODE
16112 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16113#else
16114 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16115#endif
16116 }
16117 return resultobj;
16118fail:
16119 return NULL;
d55e5bfc
RD
16120}
16121
16122
1bd55598
RD
16123SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16124 PyObject *resultobj = 0;
16125 wxLocale *arg1 = (wxLocale *) 0 ;
16126 bool result;
16127 void *argp1 = 0 ;
16128 int res1 = 0 ;
16129 PyObject *swig_obj[1] ;
16130
16131 if (!args) SWIG_fail;
16132 swig_obj[0] = args;
16133 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16134 if (!SWIG_IsOK(res1)) {
16135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16136 }
16137 arg1 = reinterpret_cast< wxLocale * >(argp1);
16138 {
16139 PyThreadState* __tstate = wxPyBeginAllowThreads();
16140 result = (bool)((wxLocale const *)arg1)->IsOk();
16141 wxPyEndAllowThreads(__tstate);
16142 if (PyErr_Occurred()) SWIG_fail;
16143 }
16144 {
16145 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16146 }
16147 return resultobj;
16148fail:
16149 return NULL;
d55e5bfc
RD
16150}
16151
16152
1bd55598
RD
16153SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16154 PyObject *resultobj = 0;
16155 wxLocale *arg1 = (wxLocale *) 0 ;
16156 wxString result;
16157 void *argp1 = 0 ;
16158 int res1 = 0 ;
16159 PyObject *swig_obj[1] ;
16160
16161 if (!args) SWIG_fail;
16162 swig_obj[0] = args;
16163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16164 if (!SWIG_IsOK(res1)) {
16165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16166 }
16167 arg1 = reinterpret_cast< wxLocale * >(argp1);
16168 {
16169 PyThreadState* __tstate = wxPyBeginAllowThreads();
16170 result = ((wxLocale const *)arg1)->GetLocale();
16171 wxPyEndAllowThreads(__tstate);
16172 if (PyErr_Occurred()) SWIG_fail;
16173 }
16174 {
16175#if wxUSE_UNICODE
16176 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16177#else
16178 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16179#endif
16180 }
16181 return resultobj;
16182fail:
16183 return NULL;
d55e5bfc
RD
16184}
16185
16186
1bd55598
RD
16187SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16188 PyObject *resultobj = 0;
16189 wxLocale *arg1 = (wxLocale *) 0 ;
16190 int result;
16191 void *argp1 = 0 ;
16192 int res1 = 0 ;
16193 PyObject *swig_obj[1] ;
16194
16195 if (!args) SWIG_fail;
16196 swig_obj[0] = args;
16197 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16198 if (!SWIG_IsOK(res1)) {
16199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16200 }
16201 arg1 = reinterpret_cast< wxLocale * >(argp1);
16202 {
16203 PyThreadState* __tstate = wxPyBeginAllowThreads();
16204 result = (int)((wxLocale const *)arg1)->GetLanguage();
16205 wxPyEndAllowThreads(__tstate);
16206 if (PyErr_Occurred()) SWIG_fail;
16207 }
16208 resultobj = SWIG_From_int(static_cast< int >(result));
16209 return resultobj;
16210fail:
16211 return NULL;
d55e5bfc
RD
16212}
16213
16214
1bd55598
RD
16215SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16216 PyObject *resultobj = 0;
16217 wxLocale *arg1 = (wxLocale *) 0 ;
16218 wxString result;
16219 void *argp1 = 0 ;
16220 int res1 = 0 ;
16221 PyObject *swig_obj[1] ;
16222
16223 if (!args) SWIG_fail;
16224 swig_obj[0] = args;
16225 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16226 if (!SWIG_IsOK(res1)) {
16227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16228 }
16229 arg1 = reinterpret_cast< wxLocale * >(argp1);
16230 {
16231 PyThreadState* __tstate = wxPyBeginAllowThreads();
16232 result = ((wxLocale const *)arg1)->GetSysName();
16233 wxPyEndAllowThreads(__tstate);
16234 if (PyErr_Occurred()) SWIG_fail;
16235 }
16236 {
36ed4f51 16237#if wxUSE_UNICODE
1bd55598 16238 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 16239#else
1bd55598 16240 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 16241#endif
1bd55598
RD
16242 }
16243 return resultobj;
16244fail:
16245 return NULL;
d55e5bfc
RD
16246}
16247
16248
1bd55598
RD
16249SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16250 PyObject *resultobj = 0;
16251 wxLocale *arg1 = (wxLocale *) 0 ;
16252 wxString result;
16253 void *argp1 = 0 ;
16254 int res1 = 0 ;
16255 PyObject *swig_obj[1] ;
16256
16257 if (!args) SWIG_fail;
16258 swig_obj[0] = args;
16259 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16260 if (!SWIG_IsOK(res1)) {
16261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16262 }
16263 arg1 = reinterpret_cast< wxLocale * >(argp1);
16264 {
16265 PyThreadState* __tstate = wxPyBeginAllowThreads();
16266 result = ((wxLocale const *)arg1)->GetCanonicalName();
16267 wxPyEndAllowThreads(__tstate);
16268 if (PyErr_Occurred()) SWIG_fail;
16269 }
16270 {
16271#if wxUSE_UNICODE
16272 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16273#else
16274 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16275#endif
16276 }
16277 return resultobj;
16278fail:
16279 return NULL;
d55e5bfc
RD
16280}
16281
16282
1bd55598
RD
16283SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16284 PyObject *resultobj = 0;
16285 wxString *arg1 = 0 ;
16286 bool temp1 = false ;
16287 PyObject * obj0 = 0 ;
16288 char * kwnames[] = {
16289 (char *) "prefix", NULL
16290 };
16291
16292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
16293 {
16294 arg1 = wxString_in_helper(obj0);
16295 if (arg1 == NULL) SWIG_fail;
16296 temp1 = true;
16297 }
16298 {
16299 PyThreadState* __tstate = wxPyBeginAllowThreads();
16300 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16301 wxPyEndAllowThreads(__tstate);
16302 if (PyErr_Occurred()) SWIG_fail;
16303 }
16304 resultobj = SWIG_Py_Void();
16305 {
16306 if (temp1)
16307 delete arg1;
16308 }
16309 return resultobj;
16310fail:
16311 {
16312 if (temp1)
16313 delete arg1;
16314 }
16315 return NULL;
16316}
16317
16318
16319SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16320 PyObject *resultobj = 0;
16321 wxLocale *arg1 = (wxLocale *) 0 ;
16322 wxString *arg2 = 0 ;
16323 bool result;
16324 void *argp1 = 0 ;
16325 int res1 = 0 ;
16326 bool temp2 = false ;
16327 PyObject * obj0 = 0 ;
16328 PyObject * obj1 = 0 ;
16329 char * kwnames[] = {
16330 (char *) "self",(char *) "szDomain", NULL
16331 };
16332
16333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16335 if (!SWIG_IsOK(res1)) {
16336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16337 }
16338 arg1 = reinterpret_cast< wxLocale * >(argp1);
16339 {
16340 arg2 = wxString_in_helper(obj1);
16341 if (arg2 == NULL) SWIG_fail;
16342 temp2 = true;
16343 }
16344 {
16345 PyThreadState* __tstate = wxPyBeginAllowThreads();
16346 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16347 wxPyEndAllowThreads(__tstate);
16348 if (PyErr_Occurred()) SWIG_fail;
16349 }
16350 {
16351 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16352 }
16353 {
16354 if (temp2)
16355 delete arg2;
16356 }
16357 return resultobj;
16358fail:
16359 {
16360 if (temp2)
16361 delete arg2;
16362 }
16363 return NULL;
16364}
16365
16366
33d6fd3b
RD
16367SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16368 PyObject *resultobj = 0;
16369 int arg1 ;
16370 bool result;
16371 int val1 ;
16372 int ecode1 = 0 ;
16373 PyObject * obj0 = 0 ;
16374 char * kwnames[] = {
16375 (char *) "lang", NULL
16376 };
16377
16378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16379 ecode1 = SWIG_AsVal_int(obj0, &val1);
16380 if (!SWIG_IsOK(ecode1)) {
16381 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16382 }
16383 arg1 = static_cast< int >(val1);
16384 {
16385 PyThreadState* __tstate = wxPyBeginAllowThreads();
16386 result = (bool)wxLocale::IsAvailable(arg1);
16387 wxPyEndAllowThreads(__tstate);
16388 if (PyErr_Occurred()) SWIG_fail;
16389 }
16390 {
16391 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16392 }
16393 return resultobj;
16394fail:
16395 return NULL;
16396}
16397
16398
1bd55598
RD
16399SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16400 PyObject *resultobj = 0;
16401 wxLocale *arg1 = (wxLocale *) 0 ;
16402 wxString *arg2 = 0 ;
16403 bool result;
16404 void *argp1 = 0 ;
16405 int res1 = 0 ;
16406 bool temp2 = false ;
16407 PyObject * obj0 = 0 ;
16408 PyObject * obj1 = 0 ;
16409 char * kwnames[] = {
16410 (char *) "self",(char *) "szDomain", NULL
16411 };
16412
16413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16415 if (!SWIG_IsOK(res1)) {
16416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16417 }
16418 arg1 = reinterpret_cast< wxLocale * >(argp1);
16419 {
16420 arg2 = wxString_in_helper(obj1);
16421 if (arg2 == NULL) SWIG_fail;
16422 temp2 = true;
16423 }
16424 {
16425 PyThreadState* __tstate = wxPyBeginAllowThreads();
16426 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16427 wxPyEndAllowThreads(__tstate);
16428 if (PyErr_Occurred()) SWIG_fail;
16429 }
16430 {
16431 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16432 }
16433 {
16434 if (temp2)
16435 delete arg2;
16436 }
16437 return resultobj;
16438fail:
16439 {
16440 if (temp2)
16441 delete arg2;
16442 }
16443 return NULL;
d55e5bfc
RD
16444}
16445
16446
1bd55598
RD
16447SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16448 PyObject *resultobj = 0;
16449 int arg1 ;
16450 wxLanguageInfo *result = 0 ;
16451 int val1 ;
16452 int ecode1 = 0 ;
16453 PyObject * obj0 = 0 ;
16454 char * kwnames[] = {
16455 (char *) "lang", NULL
16456 };
16457
16458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16459 ecode1 = SWIG_AsVal_int(obj0, &val1);
16460 if (!SWIG_IsOK(ecode1)) {
16461 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16462 }
16463 arg1 = static_cast< int >(val1);
16464 {
16465 PyThreadState* __tstate = wxPyBeginAllowThreads();
16466 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16467 wxPyEndAllowThreads(__tstate);
16468 if (PyErr_Occurred()) SWIG_fail;
16469 }
16470 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16471 return resultobj;
16472fail:
16473 return NULL;
16474}
16475
16476
16477SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16478 PyObject *resultobj = 0;
16479 int arg1 ;
16480 wxString result;
16481 int val1 ;
16482 int ecode1 = 0 ;
16483 PyObject * obj0 = 0 ;
16484 char * kwnames[] = {
16485 (char *) "lang", NULL
16486 };
16487
16488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16489 ecode1 = SWIG_AsVal_int(obj0, &val1);
16490 if (!SWIG_IsOK(ecode1)) {
16491 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16492 }
16493 arg1 = static_cast< int >(val1);
16494 {
16495 PyThreadState* __tstate = wxPyBeginAllowThreads();
16496 result = wxLocale::GetLanguageName(arg1);
16497 wxPyEndAllowThreads(__tstate);
16498 if (PyErr_Occurred()) SWIG_fail;
16499 }
16500 {
16501#if wxUSE_UNICODE
16502 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16503#else
16504 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16505#endif
16506 }
16507 return resultobj;
16508fail:
16509 return NULL;
d55e5bfc
RD
16510}
16511
16512
1bd55598
RD
16513SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16514 PyObject *resultobj = 0;
16515 wxString *arg1 = 0 ;
16516 wxLanguageInfo *result = 0 ;
16517 bool temp1 = false ;
16518 PyObject * obj0 = 0 ;
16519 char * kwnames[] = {
16520 (char *) "locale", NULL
16521 };
16522
16523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16524 {
16525 arg1 = wxString_in_helper(obj0);
16526 if (arg1 == NULL) SWIG_fail;
16527 temp1 = true;
16528 }
16529 {
16530 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3
RD
16531 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16532 wxPyEndAllowThreads(__tstate);
16533 if (PyErr_Occurred()) SWIG_fail;
16534 }
16535 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16536 {
16537 if (temp1)
16538 delete arg1;
16539 }
16540 return resultobj;
16541fail:
16542 {
16543 if (temp1)
16544 delete arg1;
16545 }
16546 return NULL;
16547}
16548
16549
16550SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16551 PyObject *resultobj = 0;
16552 wxLanguageInfo *arg1 = 0 ;
16553 void *argp1 = 0 ;
16554 int res1 = 0 ;
16555 PyObject * obj0 = 0 ;
16556 char * kwnames[] = {
16557 (char *) "info", NULL
16558 };
16559
16560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16561 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16562 if (!SWIG_IsOK(res1)) {
16563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16564 }
16565 if (!argp1) {
16566 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16567 }
16568 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16569 {
16570 PyThreadState* __tstate = wxPyBeginAllowThreads();
16571 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16572 wxPyEndAllowThreads(__tstate);
16573 if (PyErr_Occurred()) SWIG_fail;
16574 }
16575 resultobj = SWIG_Py_Void();
16576 return resultobj;
16577fail:
16578 return NULL;
16579}
16580
16581
16582SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16583 PyObject *resultobj = 0;
16584 wxLocale *arg1 = (wxLocale *) 0 ;
16585 wxString *arg2 = 0 ;
16586 wxString const &arg3_defvalue = wxPyEmptyString ;
16587 wxString *arg3 = (wxString *) &arg3_defvalue ;
16588 wxString result;
16589 void *argp1 = 0 ;
16590 int res1 = 0 ;
16591 bool temp2 = false ;
16592 bool temp3 = false ;
16593 PyObject * obj0 = 0 ;
16594 PyObject * obj1 = 0 ;
16595 PyObject * obj2 = 0 ;
16596 char * kwnames[] = {
16597 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16598 };
16599
16600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16602 if (!SWIG_IsOK(res1)) {
16603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16604 }
16605 arg1 = reinterpret_cast< wxLocale * >(argp1);
16606 {
16607 arg2 = wxString_in_helper(obj1);
16608 if (arg2 == NULL) SWIG_fail;
16609 temp2 = true;
16610 }
16611 if (obj2) {
16612 {
16613 arg3 = wxString_in_helper(obj2);
16614 if (arg3 == NULL) SWIG_fail;
16615 temp3 = true;
16616 }
16617 }
16618 {
16619 PyThreadState* __tstate = wxPyBeginAllowThreads();
16620 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16621 wxPyEndAllowThreads(__tstate);
16622 if (PyErr_Occurred()) SWIG_fail;
16623 }
16624 {
16625#if wxUSE_UNICODE
16626 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16627#else
16628 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16629#endif
16630 }
16631 {
16632 if (temp2)
16633 delete arg2;
16634 }
16635 {
16636 if (temp3)
16637 delete arg3;
16638 }
16639 return resultobj;
16640fail:
16641 {
16642 if (temp2)
16643 delete arg2;
16644 }
16645 {
16646 if (temp3)
16647 delete arg3;
16648 }
16649 return NULL;
16650}
16651
16652
16653SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16654 PyObject *resultobj = 0;
16655 wxLocale *arg1 = (wxLocale *) 0 ;
16656 wxString *result = 0 ;
16657 void *argp1 = 0 ;
16658 int res1 = 0 ;
16659 PyObject *swig_obj[1] ;
16660
16661 if (!args) SWIG_fail;
16662 swig_obj[0] = args;
16663 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16664 if (!SWIG_IsOK(res1)) {
16665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16666 }
16667 arg1 = reinterpret_cast< wxLocale * >(argp1);
16668 {
16669 PyThreadState* __tstate = wxPyBeginAllowThreads();
16670 {
16671 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16672 result = (wxString *) &_result_ref;
16673 }
16674 wxPyEndAllowThreads(__tstate);
16675 if (PyErr_Occurred()) SWIG_fail;
16676 }
16677 {
16678#if wxUSE_UNICODE
16679 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16680#else
16681 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16682#endif
16683 }
16684 return resultobj;
16685fail:
16686 return NULL;
16687}
16688
16689
16690SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16691 PyObject *obj;
16692 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16693 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16694 return SWIG_Py_Void();
16695}
16696
16697SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16698 return SWIG_Python_InitShadowInstance(args);
16699}
16700
16701SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16702 PyObject *resultobj = 0;
16703 int arg1 = (int) -1 ;
16704 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16705 wxPyLocale *result = 0 ;
16706 int val1 ;
16707 int ecode1 = 0 ;
16708 int val2 ;
16709 int ecode2 = 0 ;
16710 PyObject * obj0 = 0 ;
16711 PyObject * obj1 = 0 ;
16712 char * kwnames[] = {
16713 (char *) "language",(char *) "flags", NULL
16714 };
16715
16716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16717 if (obj0) {
16718 ecode1 = SWIG_AsVal_int(obj0, &val1);
16719 if (!SWIG_IsOK(ecode1)) {
16720 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16721 }
16722 arg1 = static_cast< int >(val1);
16723 }
16724 if (obj1) {
16725 ecode2 = SWIG_AsVal_int(obj1, &val2);
16726 if (!SWIG_IsOK(ecode2)) {
16727 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16728 }
16729 arg2 = static_cast< int >(val2);
16730 }
16731 {
16732 PyThreadState* __tstate = wxPyBeginAllowThreads();
16733 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16734 wxPyEndAllowThreads(__tstate);
16735 if (PyErr_Occurred()) SWIG_fail;
16736 }
16737 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16738 return resultobj;
16739fail:
16740 return NULL;
16741}
16742
16743
16744SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16745 PyObject *resultobj = 0;
16746 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16747 void *argp1 = 0 ;
16748 int res1 = 0 ;
16749 PyObject *swig_obj[1] ;
16750
16751 if (!args) SWIG_fail;
16752 swig_obj[0] = args;
16753 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16754 if (!SWIG_IsOK(res1)) {
16755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16756 }
16757 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16758 {
16759 PyThreadState* __tstate = wxPyBeginAllowThreads();
16760 delete arg1;
16761
1bd55598
RD
16762 wxPyEndAllowThreads(__tstate);
16763 if (PyErr_Occurred()) SWIG_fail;
16764 }
fc46b7f3 16765 resultobj = SWIG_Py_Void();
1bd55598
RD
16766 return resultobj;
16767fail:
1bd55598 16768 return NULL;
d55e5bfc
RD
16769}
16770
16771
fc46b7f3 16772SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 16773 PyObject *resultobj = 0;
fc46b7f3
RD
16774 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16775 PyObject *arg2 = (PyObject *) 0 ;
16776 PyObject *arg3 = (PyObject *) 0 ;
1bd55598
RD
16777 void *argp1 = 0 ;
16778 int res1 = 0 ;
16779 PyObject * obj0 = 0 ;
fc46b7f3
RD
16780 PyObject * obj1 = 0 ;
16781 PyObject * obj2 = 0 ;
1bd55598 16782 char * kwnames[] = {
fc46b7f3 16783 (char *) "self",(char *) "self",(char *) "_class", NULL
1bd55598
RD
16784 };
16785
fc46b7f3
RD
16786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
1bd55598 16788 if (!SWIG_IsOK(res1)) {
fc46b7f3 16789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
1bd55598 16790 }
fc46b7f3
RD
16791 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16792 arg2 = obj1;
16793 arg3 = obj2;
1bd55598
RD
16794 {
16795 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16796 (arg1)->_setCallbackInfo(arg2,arg3);
1bd55598
RD
16797 wxPyEndAllowThreads(__tstate);
16798 if (PyErr_Occurred()) SWIG_fail;
16799 }
16800 resultobj = SWIG_Py_Void();
16801 return resultobj;
16802fail:
16803 return NULL;
16804}
16805
16806
fc46b7f3 16807SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 16808 PyObject *resultobj = 0;
fc46b7f3
RD
16809 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16810 wxChar *arg2 = (wxChar *) 0 ;
16811 wxChar *arg3 = (wxChar *) NULL ;
16812 wxChar *result = 0 ;
1bd55598
RD
16813 void *argp1 = 0 ;
16814 int res1 = 0 ;
fc46b7f3
RD
16815 void *argp2 = 0 ;
16816 int res2 = 0 ;
16817 void *argp3 = 0 ;
16818 int res3 = 0 ;
1bd55598
RD
16819 PyObject * obj0 = 0 ;
16820 PyObject * obj1 = 0 ;
16821 PyObject * obj2 = 0 ;
16822 char * kwnames[] = {
16823 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16824 };
16825
fc46b7f3
RD
16826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
1bd55598 16828 if (!SWIG_IsOK(res1)) {
fc46b7f3 16829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
1bd55598 16830 }
fc46b7f3
RD
16831 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16832 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16833 if (!SWIG_IsOK(res2)) {
16834 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
1bd55598 16835 }
fc46b7f3 16836 arg2 = reinterpret_cast< wxChar * >(argp2);
1bd55598 16837 if (obj2) {
fc46b7f3
RD
16838 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16839 if (!SWIG_IsOK(res3)) {
16840 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
d55e5bfc 16841 }
fc46b7f3 16842 arg3 = reinterpret_cast< wxChar * >(argp3);
1bd55598
RD
16843 }
16844 {
16845 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16846 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
1bd55598
RD
16847 wxPyEndAllowThreads(__tstate);
16848 if (PyErr_Occurred()) SWIG_fail;
16849 }
fc46b7f3 16850 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
1bd55598
RD
16851 return resultobj;
16852fail:
1bd55598 16853 return NULL;
d55e5bfc
RD
16854}
16855
16856
fc46b7f3 16857SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 16858 PyObject *resultobj = 0;
fc46b7f3
RD
16859 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16860 wxChar *arg2 = (wxChar *) 0 ;
16861 wxChar *arg3 = (wxChar *) 0 ;
16862 size_t arg4 ;
16863 wxChar *arg5 = (wxChar *) NULL ;
16864 wxChar *result = 0 ;
1bd55598
RD
16865 void *argp1 = 0 ;
16866 int res1 = 0 ;
fc46b7f3
RD
16867 void *argp2 = 0 ;
16868 int res2 = 0 ;
16869 void *argp3 = 0 ;
16870 int res3 = 0 ;
16871 size_t val4 ;
16872 int ecode4 = 0 ;
16873 void *argp5 = 0 ;
16874 int res5 = 0 ;
16875 PyObject * obj0 = 0 ;
16876 PyObject * obj1 = 0 ;
16877 PyObject * obj2 = 0 ;
16878 PyObject * obj3 = 0 ;
16879 PyObject * obj4 = 0 ;
16880 char * kwnames[] = {
16881 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
16882 };
1bd55598 16883
fc46b7f3
RD
16884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
1bd55598 16886 if (!SWIG_IsOK(res1)) {
fc46b7f3
RD
16887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16888 }
16889 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16890 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16891 if (!SWIG_IsOK(res2)) {
16892 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
16893 }
16894 arg2 = reinterpret_cast< wxChar * >(argp2);
16895 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16896 if (!SWIG_IsOK(res3)) {
16897 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
16898 }
16899 arg3 = reinterpret_cast< wxChar * >(argp3);
16900 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16901 if (!SWIG_IsOK(ecode4)) {
16902 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
16903 }
16904 arg4 = static_cast< size_t >(val4);
16905 if (obj4) {
16906 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
16907 if (!SWIG_IsOK(res5)) {
16908 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
16909 }
16910 arg5 = reinterpret_cast< wxChar * >(argp5);
1bd55598 16911 }
1bd55598
RD
16912 {
16913 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16914 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
1bd55598
RD
16915 wxPyEndAllowThreads(__tstate);
16916 if (PyErr_Occurred()) SWIG_fail;
16917 }
fc46b7f3 16918 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
1bd55598
RD
16919 return resultobj;
16920fail:
16921 return NULL;
d55e5bfc
RD
16922}
16923
16924
fc46b7f3 16925SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
16926 PyObject *obj;
16927 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 16928 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
1bd55598 16929 return SWIG_Py_Void();
d55e5bfc
RD
16930}
16931
fc46b7f3 16932SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 16933 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
16934}
16935
1bd55598
RD
16936SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16937 PyObject *resultobj = 0;
16938 wxLocale *result = 0 ;
16939
16940 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
16941 {
16942 PyThreadState* __tstate = wxPyBeginAllowThreads();
16943 result = (wxLocale *)wxGetLocale();
16944 wxPyEndAllowThreads(__tstate);
16945 if (PyErr_Occurred()) SWIG_fail;
16946 }
16947 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
16948 return resultobj;
16949fail:
16950 return NULL;
d55e5bfc
RD
16951}
16952
16953
1bd55598
RD
16954SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16955 PyObject *resultobj = 0;
16956 wxString *arg1 = 0 ;
16957 wxString result;
16958 bool temp1 = false ;
16959
16960 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
16961 {
16962 arg1 = wxString_in_helper(swig_obj[0]);
16963 if (arg1 == NULL) SWIG_fail;
16964 temp1 = true;
16965 }
16966 {
16967 PyThreadState* __tstate = wxPyBeginAllowThreads();
16968 result = wxGetTranslation((wxString const &)*arg1);
16969 wxPyEndAllowThreads(__tstate);
16970 if (PyErr_Occurred()) SWIG_fail;
16971 }
16972 {
36ed4f51 16973#if wxUSE_UNICODE
1bd55598 16974 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 16975#else
1bd55598 16976 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 16977#endif
1bd55598
RD
16978 }
16979 {
16980 if (temp1)
16981 delete arg1;
16982 }
16983 return resultobj;
16984fail:
16985 {
16986 if (temp1)
16987 delete arg1;
16988 }
16989 return NULL;
5e483524
RD
16990}
16991
16992
1bd55598 16993SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
fc46b7f3
RD
16994 PyObject *resultobj = 0;
16995 wxString *arg1 = 0 ;
16996 wxString *arg2 = 0 ;
16997 wxString result;
16998 bool temp1 = false ;
16999 bool temp2 = false ;
17000
17001 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17002 {
17003 arg1 = wxString_in_helper(swig_obj[0]);
17004 if (arg1 == NULL) SWIG_fail;
17005 temp1 = true;
17006 }
17007 {
17008 arg2 = wxString_in_helper(swig_obj[1]);
17009 if (arg2 == NULL) SWIG_fail;
17010 temp2 = true;
17011 }
17012 {
17013 PyThreadState* __tstate = wxPyBeginAllowThreads();
17014 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
17015 wxPyEndAllowThreads(__tstate);
17016 if (PyErr_Occurred()) SWIG_fail;
17017 }
17018 {
17019#if wxUSE_UNICODE
17020 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17021#else
17022 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17023#endif
17024 }
17025 {
17026 if (temp1)
17027 delete arg1;
17028 }
17029 {
17030 if (temp2)
17031 delete arg2;
17032 }
17033 return resultobj;
17034fail:
17035 {
17036 if (temp1)
17037 delete arg1;
17038 }
17039 {
17040 if (temp2)
17041 delete arg2;
17042 }
17043 return NULL;
17044}
17045
17046
17047SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
1bd55598
RD
17048 PyObject *resultobj = 0;
17049 wxString *arg1 = 0 ;
17050 wxString *arg2 = 0 ;
17051 size_t arg3 ;
17052 wxString result;
17053 bool temp1 = false ;
17054 bool temp2 = false ;
17055 size_t val3 ;
17056 int ecode3 = 0 ;
17057
17058 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17059 {
17060 arg1 = wxString_in_helper(swig_obj[0]);
17061 if (arg1 == NULL) SWIG_fail;
17062 temp1 = true;
17063 }
17064 {
17065 arg2 = wxString_in_helper(swig_obj[1]);
17066 if (arg2 == NULL) SWIG_fail;
17067 temp2 = true;
17068 }
17069 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17070 if (!SWIG_IsOK(ecode3)) {
17071 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17072 }
17073 arg3 = static_cast< size_t >(val3);
17074 {
17075 PyThreadState* __tstate = wxPyBeginAllowThreads();
17076 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
17077 wxPyEndAllowThreads(__tstate);
17078 if (PyErr_Occurred()) SWIG_fail;
17079 }
17080 {
36ed4f51 17081#if wxUSE_UNICODE
1bd55598 17082 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 17083#else
1bd55598 17084 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 17085#endif
1bd55598
RD
17086 }
17087 {
17088 if (temp1)
17089 delete arg1;
17090 }
17091 {
17092 if (temp2)
17093 delete arg2;
17094 }
17095 return resultobj;
17096fail:
17097 {
17098 if (temp1)
17099 delete arg1;
17100 }
17101 {
17102 if (temp2)
17103 delete arg2;
17104 }
17105 return NULL;
d55e5bfc
RD
17106}
17107
17108
fc46b7f3
RD
17109SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17110 PyObject *resultobj = 0;
17111 wxString *arg1 = 0 ;
17112 wxString *arg2 = 0 ;
17113 size_t arg3 ;
17114 wxString *arg4 = 0 ;
17115 wxString result;
17116 bool temp1 = false ;
17117 bool temp2 = false ;
17118 size_t val3 ;
17119 int ecode3 = 0 ;
17120 bool temp4 = false ;
17121
17122 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17123 {
17124 arg1 = wxString_in_helper(swig_obj[0]);
17125 if (arg1 == NULL) SWIG_fail;
17126 temp1 = true;
17127 }
17128 {
17129 arg2 = wxString_in_helper(swig_obj[1]);
17130 if (arg2 == NULL) SWIG_fail;
17131 temp2 = true;
17132 }
17133 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17134 if (!SWIG_IsOK(ecode3)) {
17135 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17136 }
17137 arg3 = static_cast< size_t >(val3);
17138 {
17139 arg4 = wxString_in_helper(swig_obj[3]);
17140 if (arg4 == NULL) SWIG_fail;
17141 temp4 = true;
17142 }
17143 {
17144 PyThreadState* __tstate = wxPyBeginAllowThreads();
17145 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17146 wxPyEndAllowThreads(__tstate);
17147 if (PyErr_Occurred()) SWIG_fail;
17148 }
17149 {
17150#if wxUSE_UNICODE
17151 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17152#else
17153 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17154#endif
17155 }
17156 {
17157 if (temp1)
17158 delete arg1;
17159 }
17160 {
17161 if (temp2)
17162 delete arg2;
17163 }
17164 {
17165 if (temp4)
17166 delete arg4;
17167 }
17168 return resultobj;
17169fail:
17170 {
17171 if (temp1)
17172 delete arg1;
17173 }
17174 {
17175 if (temp2)
17176 delete arg2;
17177 }
17178 {
17179 if (temp4)
17180 delete arg4;
17181 }
17182 return NULL;
17183}
17184
17185
1bd55598
RD
17186SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17187 int argc;
fc46b7f3 17188 PyObject *argv[5];
1bd55598 17189
fc46b7f3 17190 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
1bd55598
RD
17191 --argc;
17192 if (argc == 1) {
17193 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17194 }
fc46b7f3 17195 if (argc == 2) {
1bd55598
RD
17196 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17197 }
fc46b7f3
RD
17198 if (argc == 3) {
17199 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17200 }
17201 if (argc == 4) {
17202 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17203 }
1bd55598
RD
17204
17205fail:
17206 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17207 return NULL;
d55e5bfc
RD
17208}
17209
17210
1bd55598
RD
17211SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17212 PyObject *resultobj = 0;
17213 wxEncodingConverter *result = 0 ;
17214
17215 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17216 {
17217 PyThreadState* __tstate = wxPyBeginAllowThreads();
17218 result = (wxEncodingConverter *)new wxEncodingConverter();
17219 wxPyEndAllowThreads(__tstate);
17220 if (PyErr_Occurred()) SWIG_fail;
17221 }
17222 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17223 return resultobj;
17224fail:
17225 return NULL;
d55e5bfc
RD
17226}
17227
17228
1bd55598
RD
17229SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17230 PyObject *resultobj = 0;
17231 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17232 void *argp1 = 0 ;
17233 int res1 = 0 ;
17234 PyObject *swig_obj[1] ;
17235
17236 if (!args) SWIG_fail;
17237 swig_obj[0] = args;
17238 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17239 if (!SWIG_IsOK(res1)) {
17240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17241 }
17242 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17243 {
17244 PyThreadState* __tstate = wxPyBeginAllowThreads();
17245 delete arg1;
d55e5bfc 17246
1bd55598
RD
17247 wxPyEndAllowThreads(__tstate);
17248 if (PyErr_Occurred()) SWIG_fail;
17249 }
17250 resultobj = SWIG_Py_Void();
17251 return resultobj;
17252fail:
17253 return NULL;
17254}
17255
17256
17257SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17258 PyObject *resultobj = 0;
17259 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17260 wxFontEncoding arg2 ;
17261 wxFontEncoding arg3 ;
17262 int arg4 = (int) wxCONVERT_STRICT ;
17263 bool result;
17264 void *argp1 = 0 ;
17265 int res1 = 0 ;
17266 int val2 ;
17267 int ecode2 = 0 ;
17268 int val3 ;
17269 int ecode3 = 0 ;
17270 int val4 ;
17271 int ecode4 = 0 ;
17272 PyObject * obj0 = 0 ;
17273 PyObject * obj1 = 0 ;
17274 PyObject * obj2 = 0 ;
17275 PyObject * obj3 = 0 ;
17276 char * kwnames[] = {
17277 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17278 };
17279
17280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17282 if (!SWIG_IsOK(res1)) {
17283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17284 }
17285 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17286 ecode2 = SWIG_AsVal_int(obj1, &val2);
17287 if (!SWIG_IsOK(ecode2)) {
17288 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17289 }
17290 arg2 = static_cast< wxFontEncoding >(val2);
17291 ecode3 = SWIG_AsVal_int(obj2, &val3);
17292 if (!SWIG_IsOK(ecode3)) {
17293 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
17294 }
17295 arg3 = static_cast< wxFontEncoding >(val3);
17296 if (obj3) {
17297 ecode4 = SWIG_AsVal_int(obj3, &val4);
17298 if (!SWIG_IsOK(ecode4)) {
17299 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17300 }
17301 arg4 = static_cast< int >(val4);
17302 }
17303 {
17304 PyThreadState* __tstate = wxPyBeginAllowThreads();
17305 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17306 wxPyEndAllowThreads(__tstate);
17307 if (PyErr_Occurred()) SWIG_fail;
17308 }
17309 {
17310 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17311 }
17312 return resultobj;
17313fail:
17314 return NULL;
17315}
17316
17317
17318SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17319 PyObject *resultobj = 0;
17320 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17321 wxString *arg2 = 0 ;
17322 wxString result;
17323 void *argp1 = 0 ;
17324 int res1 = 0 ;
17325 bool temp2 = false ;
17326 PyObject * obj0 = 0 ;
17327 PyObject * obj1 = 0 ;
17328 char * kwnames[] = {
17329 (char *) "self",(char *) "input", NULL
17330 };
17331
17332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17334 if (!SWIG_IsOK(res1)) {
17335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17336 }
17337 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17338 {
17339 arg2 = wxString_in_helper(obj1);
17340 if (arg2 == NULL) SWIG_fail;
17341 temp2 = true;
17342 }
17343 {
17344 PyThreadState* __tstate = wxPyBeginAllowThreads();
17345 result = (arg1)->Convert((wxString const &)*arg2);
17346 wxPyEndAllowThreads(__tstate);
17347 if (PyErr_Occurred()) SWIG_fail;
17348 }
17349 {
d55e5bfc 17350#if wxUSE_UNICODE
1bd55598 17351 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 17352#else
1bd55598 17353 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 17354#endif
1bd55598
RD
17355 }
17356 {
17357 if (temp2)
17358 delete arg2;
17359 }
17360 return resultobj;
17361fail:
17362 {
17363 if (temp2)
17364 delete arg2;
17365 }
17366 return NULL;
17367}
17368
17369
17370SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17371 PyObject *resultobj = 0;
17372 wxFontEncoding arg1 ;
17373 int arg2 = (int) wxPLATFORM_CURRENT ;
17374 wxFontEncodingArray result;
17375 int val1 ;
17376 int ecode1 = 0 ;
17377 int val2 ;
17378 int ecode2 = 0 ;
17379 PyObject * obj0 = 0 ;
17380 PyObject * obj1 = 0 ;
17381 char * kwnames[] = {
17382 (char *) "enc",(char *) "platform", NULL
17383 };
17384
17385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17386 ecode1 = SWIG_AsVal_int(obj0, &val1);
17387 if (!SWIG_IsOK(ecode1)) {
17388 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17389 }
17390 arg1 = static_cast< wxFontEncoding >(val1);
17391 if (obj1) {
17392 ecode2 = SWIG_AsVal_int(obj1, &val2);
17393 if (!SWIG_IsOK(ecode2)) {
17394 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17395 }
17396 arg2 = static_cast< int >(val2);
17397 }
17398 {
17399 PyThreadState* __tstate = wxPyBeginAllowThreads();
17400 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17401 wxPyEndAllowThreads(__tstate);
17402 if (PyErr_Occurred()) SWIG_fail;
17403 }
17404 {
17405 resultobj = PyList_New(0);
17406 for (size_t i=0; i < (&result)->GetCount(); i++) {
17407 PyObject* number = PyInt_FromLong((&result)->Item(i));
17408 PyList_Append(resultobj, number);
17409 Py_DECREF(number);
d55e5bfc 17410 }
1bd55598
RD
17411 }
17412 return resultobj;
17413fail:
17414 return NULL;
d55e5bfc
RD
17415}
17416
17417
1bd55598
RD
17418SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17419 PyObject *resultobj = 0;
17420 wxFontEncoding arg1 ;
17421 wxFontEncodingArray result;
17422 int val1 ;
17423 int ecode1 = 0 ;
17424 PyObject * obj0 = 0 ;
17425 char * kwnames[] = {
17426 (char *) "enc", NULL
17427 };
17428
17429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17430 ecode1 = SWIG_AsVal_int(obj0, &val1);
17431 if (!SWIG_IsOK(ecode1)) {
17432 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17433 }
17434 arg1 = static_cast< wxFontEncoding >(val1);
17435 {
17436 PyThreadState* __tstate = wxPyBeginAllowThreads();
17437 result = wxEncodingConverter::GetAllEquivalents(arg1);
17438 wxPyEndAllowThreads(__tstate);
17439 if (PyErr_Occurred()) SWIG_fail;
17440 }
17441 {
17442 resultobj = PyList_New(0);
17443 for (size_t i=0; i < (&result)->GetCount(); i++) {
17444 PyObject* number = PyInt_FromLong((&result)->Item(i));
17445 PyList_Append(resultobj, number);
17446 Py_DECREF(number);
d55e5bfc 17447 }
1bd55598
RD
17448 }
17449 return resultobj;
17450fail:
17451 return NULL;
17452}
17453
17454
17455SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17456 PyObject *resultobj = 0;
17457 wxFontEncoding arg1 ;
17458 wxFontEncoding arg2 ;
17459 bool result;
17460 int val1 ;
17461 int ecode1 = 0 ;
17462 int val2 ;
17463 int ecode2 = 0 ;
17464 PyObject * obj0 = 0 ;
17465 PyObject * obj1 = 0 ;
17466 char * kwnames[] = {
17467 (char *) "encIn",(char *) "encOut", NULL
17468 };
17469
17470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17471 ecode1 = SWIG_AsVal_int(obj0, &val1);
17472 if (!SWIG_IsOK(ecode1)) {
17473 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17474 }
17475 arg1 = static_cast< wxFontEncoding >(val1);
17476 ecode2 = SWIG_AsVal_int(obj1, &val2);
17477 if (!SWIG_IsOK(ecode2)) {
17478 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17479 }
17480 arg2 = static_cast< wxFontEncoding >(val2);
17481 {
17482 PyThreadState* __tstate = wxPyBeginAllowThreads();
17483 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17484 wxPyEndAllowThreads(__tstate);
17485 if (PyErr_Occurred()) SWIG_fail;
17486 }
17487 {
17488 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17489 }
17490 return resultobj;
17491fail:
17492 return NULL;
d55e5bfc
RD
17493}
17494
17495
1bd55598
RD
17496SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17497 PyObject *obj;
17498 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17499 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17500 return SWIG_Py_Void();
d55e5bfc
RD
17501}
17502
1bd55598
RD
17503SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17504 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
17505}
17506
1bd55598
RD
17507SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17508 PyObject *resultobj = 0;
17509 wxDC *arg1 = (wxDC *) 0 ;
17510 void *argp1 = 0 ;
17511 int res1 = 0 ;
17512 PyObject *swig_obj[1] ;
17513
17514 if (!args) SWIG_fail;
17515 swig_obj[0] = args;
17516 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17517 if (!SWIG_IsOK(res1)) {
17518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17519 }
17520 arg1 = reinterpret_cast< wxDC * >(argp1);
17521 {
17522 PyThreadState* __tstate = wxPyBeginAllowThreads();
17523 delete arg1;
d55e5bfc 17524
1bd55598
RD
17525 wxPyEndAllowThreads(__tstate);
17526 if (PyErr_Occurred()) SWIG_fail;
17527 }
17528 resultobj = SWIG_Py_Void();
17529 return resultobj;
17530fail:
17531 return NULL;
17532}
17533
17534
17535SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17536 PyObject *resultobj = 0;
17537 wxDC *arg1 = (wxDC *) 0 ;
17538 int arg2 ;
17539 int arg3 ;
17540 wxColour *arg4 = 0 ;
17541 int arg5 = (int) wxFLOOD_SURFACE ;
17542 bool result;
17543 void *argp1 = 0 ;
17544 int res1 = 0 ;
17545 int val2 ;
17546 int ecode2 = 0 ;
17547 int val3 ;
17548 int ecode3 = 0 ;
17549 wxColour temp4 ;
17550 int val5 ;
17551 int ecode5 = 0 ;
17552 PyObject * obj0 = 0 ;
17553 PyObject * obj1 = 0 ;
17554 PyObject * obj2 = 0 ;
17555 PyObject * obj3 = 0 ;
17556 PyObject * obj4 = 0 ;
17557 char * kwnames[] = {
17558 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17559 };
17560
17561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17563 if (!SWIG_IsOK(res1)) {
17564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17565 }
17566 arg1 = reinterpret_cast< wxDC * >(argp1);
17567 ecode2 = SWIG_AsVal_int(obj1, &val2);
17568 if (!SWIG_IsOK(ecode2)) {
17569 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17570 }
17571 arg2 = static_cast< int >(val2);
17572 ecode3 = SWIG_AsVal_int(obj2, &val3);
17573 if (!SWIG_IsOK(ecode3)) {
17574 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17575 }
17576 arg3 = static_cast< int >(val3);
17577 {
17578 arg4 = &temp4;
17579 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17580 }
17581 if (obj4) {
17582 ecode5 = SWIG_AsVal_int(obj4, &val5);
17583 if (!SWIG_IsOK(ecode5)) {
17584 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17585 }
17586 arg5 = static_cast< int >(val5);
17587 }
17588 {
17589 PyThreadState* __tstate = wxPyBeginAllowThreads();
17590 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17591 wxPyEndAllowThreads(__tstate);
17592 if (PyErr_Occurred()) SWIG_fail;
17593 }
17594 {
17595 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17596 }
17597 return resultobj;
17598fail:
17599 return NULL;
17600}
17601
17602
17603SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17604 PyObject *resultobj = 0;
17605 wxDC *arg1 = (wxDC *) 0 ;
17606 wxPoint *arg2 = 0 ;
17607 wxColour *arg3 = 0 ;
17608 int arg4 = (int) wxFLOOD_SURFACE ;
17609 bool result;
17610 void *argp1 = 0 ;
17611 int res1 = 0 ;
17612 wxPoint temp2 ;
17613 wxColour temp3 ;
17614 int val4 ;
17615 int ecode4 = 0 ;
17616 PyObject * obj0 = 0 ;
17617 PyObject * obj1 = 0 ;
17618 PyObject * obj2 = 0 ;
17619 PyObject * obj3 = 0 ;
17620 char * kwnames[] = {
17621 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17622 };
17623
17624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17626 if (!SWIG_IsOK(res1)) {
17627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17628 }
17629 arg1 = reinterpret_cast< wxDC * >(argp1);
17630 {
17631 arg2 = &temp2;
17632 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17633 }
17634 {
17635 arg3 = &temp3;
17636 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17637 }
17638 if (obj3) {
17639 ecode4 = SWIG_AsVal_int(obj3, &val4);
17640 if (!SWIG_IsOK(ecode4)) {
17641 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17642 }
17643 arg4 = static_cast< int >(val4);
17644 }
17645 {
17646 PyThreadState* __tstate = wxPyBeginAllowThreads();
17647 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17648 wxPyEndAllowThreads(__tstate);
17649 if (PyErr_Occurred()) SWIG_fail;
17650 }
17651 {
17652 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17653 }
17654 return resultobj;
17655fail:
17656 return NULL;
17657}
17658
17659
17660SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17661 PyObject *resultobj = 0;
17662 wxDC *arg1 = (wxDC *) 0 ;
17663 wxRect *arg2 = 0 ;
17664 wxColour *arg3 = 0 ;
17665 wxColour *arg4 = 0 ;
17666 wxPoint *arg5 = 0 ;
17667 void *argp1 = 0 ;
17668 int res1 = 0 ;
17669 wxRect temp2 ;
17670 wxColour temp3 ;
17671 wxColour temp4 ;
17672 wxPoint temp5 ;
17673 PyObject * obj0 = 0 ;
17674 PyObject * obj1 = 0 ;
17675 PyObject * obj2 = 0 ;
17676 PyObject * obj3 = 0 ;
17677 PyObject * obj4 = 0 ;
17678 char * kwnames[] = {
17679 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17680 };
17681
17682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17684 if (!SWIG_IsOK(res1)) {
17685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17686 }
17687 arg1 = reinterpret_cast< wxDC * >(argp1);
17688 {
17689 arg2 = &temp2;
17690 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17691 }
17692 {
17693 arg3 = &temp3;
17694 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17695 }
17696 {
17697 arg4 = &temp4;
17698 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17699 }
17700 {
17701 arg5 = &temp5;
17702 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17703 }
17704 {
17705 PyThreadState* __tstate = wxPyBeginAllowThreads();
17706 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17707 wxPyEndAllowThreads(__tstate);
17708 if (PyErr_Occurred()) SWIG_fail;
17709 }
17710 resultobj = SWIG_Py_Void();
17711 return resultobj;
17712fail:
17713 return NULL;
17714}
17715
17716
17717SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17718 PyObject *resultobj = 0;
17719 wxDC *arg1 = (wxDC *) 0 ;
17720 wxRect *arg2 = 0 ;
17721 wxColour *arg3 = 0 ;
17722 wxColour *arg4 = 0 ;
17723 wxDirection arg5 = (wxDirection) wxEAST ;
17724 void *argp1 = 0 ;
17725 int res1 = 0 ;
17726 wxRect temp2 ;
17727 wxColour temp3 ;
17728 wxColour temp4 ;
17729 int val5 ;
17730 int ecode5 = 0 ;
17731 PyObject * obj0 = 0 ;
17732 PyObject * obj1 = 0 ;
17733 PyObject * obj2 = 0 ;
17734 PyObject * obj3 = 0 ;
17735 PyObject * obj4 = 0 ;
17736 char * kwnames[] = {
17737 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
17738 };
17739
17740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17742 if (!SWIG_IsOK(res1)) {
17743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
17744 }
17745 arg1 = reinterpret_cast< wxDC * >(argp1);
17746 {
17747 arg2 = &temp2;
17748 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17749 }
17750 {
17751 arg3 = &temp3;
17752 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17753 }
17754 {
17755 arg4 = &temp4;
17756 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17757 }
17758 if (obj4) {
17759 ecode5 = SWIG_AsVal_int(obj4, &val5);
17760 if (!SWIG_IsOK(ecode5)) {
17761 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
17762 }
17763 arg5 = static_cast< wxDirection >(val5);
17764 }
17765 {
17766 PyThreadState* __tstate = wxPyBeginAllowThreads();
17767 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
17768 wxPyEndAllowThreads(__tstate);
17769 if (PyErr_Occurred()) SWIG_fail;
17770 }
17771 resultobj = SWIG_Py_Void();
17772 return resultobj;
17773fail:
17774 return NULL;
17775}
17776
17777
17778SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17779 PyObject *resultobj = 0;
17780 wxDC *arg1 = (wxDC *) 0 ;
17781 int arg2 ;
17782 int arg3 ;
17783 wxColour result;
17784 void *argp1 = 0 ;
17785 int res1 = 0 ;
17786 int val2 ;
17787 int ecode2 = 0 ;
17788 int val3 ;
17789 int ecode3 = 0 ;
17790 PyObject * obj0 = 0 ;
17791 PyObject * obj1 = 0 ;
17792 PyObject * obj2 = 0 ;
17793 char * kwnames[] = {
17794 (char *) "self",(char *) "x",(char *) "y", NULL
17795 };
17796
17797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17799 if (!SWIG_IsOK(res1)) {
17800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
17801 }
17802 arg1 = reinterpret_cast< wxDC * >(argp1);
17803 ecode2 = SWIG_AsVal_int(obj1, &val2);
17804 if (!SWIG_IsOK(ecode2)) {
17805 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
17806 }
17807 arg2 = static_cast< int >(val2);
17808 ecode3 = SWIG_AsVal_int(obj2, &val3);
17809 if (!SWIG_IsOK(ecode3)) {
17810 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
17811 }
17812 arg3 = static_cast< int >(val3);
17813 {
17814 PyThreadState* __tstate = wxPyBeginAllowThreads();
17815 result = wxDC_GetPixel(arg1,arg2,arg3);
17816 wxPyEndAllowThreads(__tstate);
17817 if (PyErr_Occurred()) SWIG_fail;
17818 }
17819 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17820 return resultobj;
17821fail:
17822 return NULL;
17823}
17824
17825
17826SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17827 PyObject *resultobj = 0;
17828 wxDC *arg1 = (wxDC *) 0 ;
17829 wxPoint *arg2 = 0 ;
17830 wxColour result;
17831 void *argp1 = 0 ;
17832 int res1 = 0 ;
17833 wxPoint temp2 ;
17834 PyObject * obj0 = 0 ;
17835 PyObject * obj1 = 0 ;
17836 char * kwnames[] = {
17837 (char *) "self",(char *) "pt", NULL
17838 };
17839
17840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17842 if (!SWIG_IsOK(res1)) {
17843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17844 }
17845 arg1 = reinterpret_cast< wxDC * >(argp1);
17846 {
17847 arg2 = &temp2;
17848 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17849 }
17850 {
17851 PyThreadState* __tstate = wxPyBeginAllowThreads();
17852 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
17853 wxPyEndAllowThreads(__tstate);
17854 if (PyErr_Occurred()) SWIG_fail;
17855 }
17856 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17857 return resultobj;
17858fail:
17859 return NULL;
17860}
17861
17862
17863SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17864 PyObject *resultobj = 0;
17865 wxDC *arg1 = (wxDC *) 0 ;
17866 int arg2 ;
17867 int arg3 ;
17868 int arg4 ;
17869 int arg5 ;
17870 void *argp1 = 0 ;
17871 int res1 = 0 ;
17872 int val2 ;
17873 int ecode2 = 0 ;
17874 int val3 ;
17875 int ecode3 = 0 ;
17876 int val4 ;
17877 int ecode4 = 0 ;
17878 int val5 ;
17879 int ecode5 = 0 ;
17880 PyObject * obj0 = 0 ;
17881 PyObject * obj1 = 0 ;
17882 PyObject * obj2 = 0 ;
17883 PyObject * obj3 = 0 ;
17884 PyObject * obj4 = 0 ;
17885 char * kwnames[] = {
17886 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
17887 };
17888
17889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17890 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17891 if (!SWIG_IsOK(res1)) {
17892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
17893 }
17894 arg1 = reinterpret_cast< wxDC * >(argp1);
17895 ecode2 = SWIG_AsVal_int(obj1, &val2);
17896 if (!SWIG_IsOK(ecode2)) {
17897 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
17898 }
17899 arg2 = static_cast< int >(val2);
17900 ecode3 = SWIG_AsVal_int(obj2, &val3);
17901 if (!SWIG_IsOK(ecode3)) {
17902 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
17903 }
17904 arg3 = static_cast< int >(val3);
17905 ecode4 = SWIG_AsVal_int(obj3, &val4);
17906 if (!SWIG_IsOK(ecode4)) {
17907 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
17908 }
17909 arg4 = static_cast< int >(val4);
17910 ecode5 = SWIG_AsVal_int(obj4, &val5);
17911 if (!SWIG_IsOK(ecode5)) {
17912 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
17913 }
17914 arg5 = static_cast< int >(val5);
17915 {
17916 PyThreadState* __tstate = wxPyBeginAllowThreads();
17917 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
17918 wxPyEndAllowThreads(__tstate);
17919 if (PyErr_Occurred()) SWIG_fail;
17920 }
17921 resultobj = SWIG_Py_Void();
17922 return resultobj;
17923fail:
17924 return NULL;
17925}
17926
17927
17928SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17929 PyObject *resultobj = 0;
17930 wxDC *arg1 = (wxDC *) 0 ;
17931 wxPoint *arg2 = 0 ;
17932 wxPoint *arg3 = 0 ;
17933 void *argp1 = 0 ;
17934 int res1 = 0 ;
17935 wxPoint temp2 ;
17936 wxPoint temp3 ;
17937 PyObject * obj0 = 0 ;
17938 PyObject * obj1 = 0 ;
17939 PyObject * obj2 = 0 ;
17940 char * kwnames[] = {
17941 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
17942 };
17943
17944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17946 if (!SWIG_IsOK(res1)) {
17947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
17948 }
17949 arg1 = reinterpret_cast< wxDC * >(argp1);
17950 {
17951 arg2 = &temp2;
17952 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17953 }
17954 {
17955 arg3 = &temp3;
17956 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17957 }
17958 {
17959 PyThreadState* __tstate = wxPyBeginAllowThreads();
17960 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
17961 wxPyEndAllowThreads(__tstate);
17962 if (PyErr_Occurred()) SWIG_fail;
17963 }
17964 resultobj = SWIG_Py_Void();
17965 return resultobj;
17966fail:
17967 return NULL;
17968}
17969
17970
17971SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17972 PyObject *resultobj = 0;
17973 wxDC *arg1 = (wxDC *) 0 ;
17974 int arg2 ;
17975 int arg3 ;
17976 void *argp1 = 0 ;
17977 int res1 = 0 ;
17978 int val2 ;
17979 int ecode2 = 0 ;
17980 int val3 ;
17981 int ecode3 = 0 ;
17982 PyObject * obj0 = 0 ;
17983 PyObject * obj1 = 0 ;
17984 PyObject * obj2 = 0 ;
17985 char * kwnames[] = {
17986 (char *) "self",(char *) "x",(char *) "y", NULL
17987 };
17988
17989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17991 if (!SWIG_IsOK(res1)) {
17992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
17993 }
17994 arg1 = reinterpret_cast< wxDC * >(argp1);
17995 ecode2 = SWIG_AsVal_int(obj1, &val2);
17996 if (!SWIG_IsOK(ecode2)) {
17997 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
17998 }
17999 arg2 = static_cast< int >(val2);
18000 ecode3 = SWIG_AsVal_int(obj2, &val3);
18001 if (!SWIG_IsOK(ecode3)) {
18002 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18003 }
18004 arg3 = static_cast< int >(val3);
18005 {
18006 PyThreadState* __tstate = wxPyBeginAllowThreads();
18007 (arg1)->CrossHair(arg2,arg3);
18008 wxPyEndAllowThreads(__tstate);
18009 if (PyErr_Occurred()) SWIG_fail;
18010 }
18011 resultobj = SWIG_Py_Void();
18012 return resultobj;
18013fail:
18014 return NULL;
18015}
18016
18017
18018SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18019 PyObject *resultobj = 0;
18020 wxDC *arg1 = (wxDC *) 0 ;
18021 wxPoint *arg2 = 0 ;
18022 void *argp1 = 0 ;
18023 int res1 = 0 ;
18024 wxPoint temp2 ;
18025 PyObject * obj0 = 0 ;
18026 PyObject * obj1 = 0 ;
18027 char * kwnames[] = {
18028 (char *) "self",(char *) "pt", NULL
18029 };
18030
18031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18033 if (!SWIG_IsOK(res1)) {
18034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18035 }
18036 arg1 = reinterpret_cast< wxDC * >(argp1);
18037 {
18038 arg2 = &temp2;
18039 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18040 }
18041 {
18042 PyThreadState* __tstate = wxPyBeginAllowThreads();
18043 (arg1)->CrossHair((wxPoint const &)*arg2);
18044 wxPyEndAllowThreads(__tstate);
18045 if (PyErr_Occurred()) SWIG_fail;
18046 }
18047 resultobj = SWIG_Py_Void();
18048 return resultobj;
18049fail:
18050 return NULL;
18051}
18052
18053
18054SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18055 PyObject *resultobj = 0;
18056 wxDC *arg1 = (wxDC *) 0 ;
18057 int arg2 ;
18058 int arg3 ;
18059 int arg4 ;
18060 int arg5 ;
18061 int arg6 ;
18062 int arg7 ;
18063 void *argp1 = 0 ;
18064 int res1 = 0 ;
18065 int val2 ;
18066 int ecode2 = 0 ;
18067 int val3 ;
18068 int ecode3 = 0 ;
18069 int val4 ;
18070 int ecode4 = 0 ;
18071 int val5 ;
18072 int ecode5 = 0 ;
18073 int val6 ;
18074 int ecode6 = 0 ;
18075 int val7 ;
18076 int ecode7 = 0 ;
18077 PyObject * obj0 = 0 ;
18078 PyObject * obj1 = 0 ;
18079 PyObject * obj2 = 0 ;
18080 PyObject * obj3 = 0 ;
18081 PyObject * obj4 = 0 ;
18082 PyObject * obj5 = 0 ;
18083 PyObject * obj6 = 0 ;
18084 char * kwnames[] = {
18085 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
18086 };
18087
18088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18090 if (!SWIG_IsOK(res1)) {
18091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
18092 }
18093 arg1 = reinterpret_cast< wxDC * >(argp1);
18094 ecode2 = SWIG_AsVal_int(obj1, &val2);
18095 if (!SWIG_IsOK(ecode2)) {
18096 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
18097 }
18098 arg2 = static_cast< int >(val2);
18099 ecode3 = SWIG_AsVal_int(obj2, &val3);
18100 if (!SWIG_IsOK(ecode3)) {
18101 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
18102 }
18103 arg3 = static_cast< int >(val3);
18104 ecode4 = SWIG_AsVal_int(obj3, &val4);
18105 if (!SWIG_IsOK(ecode4)) {
18106 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
18107 }
18108 arg4 = static_cast< int >(val4);
18109 ecode5 = SWIG_AsVal_int(obj4, &val5);
18110 if (!SWIG_IsOK(ecode5)) {
18111 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
18112 }
18113 arg5 = static_cast< int >(val5);
18114 ecode6 = SWIG_AsVal_int(obj5, &val6);
18115 if (!SWIG_IsOK(ecode6)) {
18116 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
18117 }
18118 arg6 = static_cast< int >(val6);
18119 ecode7 = SWIG_AsVal_int(obj6, &val7);
18120 if (!SWIG_IsOK(ecode7)) {
18121 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
18122 }
18123 arg7 = static_cast< int >(val7);
18124 {
18125 PyThreadState* __tstate = wxPyBeginAllowThreads();
18126 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18127 wxPyEndAllowThreads(__tstate);
18128 if (PyErr_Occurred()) SWIG_fail;
18129 }
18130 resultobj = SWIG_Py_Void();
18131 return resultobj;
18132fail:
18133 return NULL;
18134}
18135
18136
18137SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18138 PyObject *resultobj = 0;
18139 wxDC *arg1 = (wxDC *) 0 ;
18140 wxPoint *arg2 = 0 ;
18141 wxPoint *arg3 = 0 ;
18142 wxPoint *arg4 = 0 ;
18143 void *argp1 = 0 ;
18144 int res1 = 0 ;
18145 wxPoint temp2 ;
18146 wxPoint temp3 ;
18147 wxPoint temp4 ;
18148 PyObject * obj0 = 0 ;
18149 PyObject * obj1 = 0 ;
18150 PyObject * obj2 = 0 ;
18151 PyObject * obj3 = 0 ;
18152 char * kwnames[] = {
18153 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18154 };
18155
18156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18158 if (!SWIG_IsOK(res1)) {
18159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18160 }
18161 arg1 = reinterpret_cast< wxDC * >(argp1);
18162 {
18163 arg2 = &temp2;
18164 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18165 }
18166 {
18167 arg3 = &temp3;
18168 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18169 }
18170 {
18171 arg4 = &temp4;
18172 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18173 }
18174 {
18175 PyThreadState* __tstate = wxPyBeginAllowThreads();
18176 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18177 wxPyEndAllowThreads(__tstate);
18178 if (PyErr_Occurred()) SWIG_fail;
18179 }
18180 resultobj = SWIG_Py_Void();
18181 return resultobj;
18182fail:
18183 return NULL;
18184}
18185
18186
18187SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18188 PyObject *resultobj = 0;
18189 wxDC *arg1 = (wxDC *) 0 ;
18190 int arg2 ;
18191 int arg3 ;
18192 int arg4 ;
18193 int arg5 ;
18194 void *argp1 = 0 ;
18195 int res1 = 0 ;
18196 int val2 ;
18197 int ecode2 = 0 ;
18198 int val3 ;
18199 int ecode3 = 0 ;
18200 int val4 ;
18201 int ecode4 = 0 ;
18202 int val5 ;
18203 int ecode5 = 0 ;
18204 PyObject * obj0 = 0 ;
18205 PyObject * obj1 = 0 ;
18206 PyObject * obj2 = 0 ;
18207 PyObject * obj3 = 0 ;
18208 PyObject * obj4 = 0 ;
18209 char * kwnames[] = {
18210 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18211 };
18212
18213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18215 if (!SWIG_IsOK(res1)) {
18216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18217 }
18218 arg1 = reinterpret_cast< wxDC * >(argp1);
18219 ecode2 = SWIG_AsVal_int(obj1, &val2);
18220 if (!SWIG_IsOK(ecode2)) {
18221 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18222 }
18223 arg2 = static_cast< int >(val2);
18224 ecode3 = SWIG_AsVal_int(obj2, &val3);
18225 if (!SWIG_IsOK(ecode3)) {
18226 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18227 }
18228 arg3 = static_cast< int >(val3);
18229 ecode4 = SWIG_AsVal_int(obj3, &val4);
18230 if (!SWIG_IsOK(ecode4)) {
18231 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18232 }
18233 arg4 = static_cast< int >(val4);
18234 ecode5 = SWIG_AsVal_int(obj4, &val5);
18235 if (!SWIG_IsOK(ecode5)) {
18236 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18237 }
18238 arg5 = static_cast< int >(val5);
18239 {
18240 PyThreadState* __tstate = wxPyBeginAllowThreads();
18241 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18242 wxPyEndAllowThreads(__tstate);
18243 if (PyErr_Occurred()) SWIG_fail;
18244 }
18245 resultobj = SWIG_Py_Void();
18246 return resultobj;
18247fail:
18248 return NULL;
18249}
18250
18251
18252SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18253 PyObject *resultobj = 0;
18254 wxDC *arg1 = (wxDC *) 0 ;
18255 wxRect *arg2 = 0 ;
18256 void *argp1 = 0 ;
18257 int res1 = 0 ;
18258 wxRect temp2 ;
18259 PyObject * obj0 = 0 ;
18260 PyObject * obj1 = 0 ;
18261 char * kwnames[] = {
18262 (char *) "self",(char *) "rect", NULL
18263 };
18264
18265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
18266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18267 if (!SWIG_IsOK(res1)) {
18268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18269 }
18270 arg1 = reinterpret_cast< wxDC * >(argp1);
18271 {
18272 arg2 = &temp2;
18273 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18274 }
18275 {
18276 PyThreadState* __tstate = wxPyBeginAllowThreads();
18277 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18278 wxPyEndAllowThreads(__tstate);
18279 if (PyErr_Occurred()) SWIG_fail;
18280 }
18281 resultobj = SWIG_Py_Void();
18282 return resultobj;
18283fail:
18284 return NULL;
18285}
18286
18287
18288SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18289 PyObject *resultobj = 0;
18290 wxDC *arg1 = (wxDC *) 0 ;
18291 int arg2 ;
18292 int arg3 ;
18293 int arg4 ;
18294 int arg5 ;
18295 double arg6 ;
18296 double arg7 ;
18297 void *argp1 = 0 ;
18298 int res1 = 0 ;
18299 int val2 ;
18300 int ecode2 = 0 ;
18301 int val3 ;
18302 int ecode3 = 0 ;
18303 int val4 ;
18304 int ecode4 = 0 ;
18305 int val5 ;
18306 int ecode5 = 0 ;
18307 double val6 ;
18308 int ecode6 = 0 ;
18309 double val7 ;
18310 int ecode7 = 0 ;
18311 PyObject * obj0 = 0 ;
18312 PyObject * obj1 = 0 ;
18313 PyObject * obj2 = 0 ;
18314 PyObject * obj3 = 0 ;
18315 PyObject * obj4 = 0 ;
18316 PyObject * obj5 = 0 ;
18317 PyObject * obj6 = 0 ;
18318 char * kwnames[] = {
18319 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18320 };
18321
18322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18324 if (!SWIG_IsOK(res1)) {
18325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18326 }
18327 arg1 = reinterpret_cast< wxDC * >(argp1);
18328 ecode2 = SWIG_AsVal_int(obj1, &val2);
18329 if (!SWIG_IsOK(ecode2)) {
18330 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18331 }
18332 arg2 = static_cast< int >(val2);
18333 ecode3 = SWIG_AsVal_int(obj2, &val3);
18334 if (!SWIG_IsOK(ecode3)) {
18335 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18336 }
18337 arg3 = static_cast< int >(val3);
18338 ecode4 = SWIG_AsVal_int(obj3, &val4);
18339 if (!SWIG_IsOK(ecode4)) {
18340 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18341 }
18342 arg4 = static_cast< int >(val4);
18343 ecode5 = SWIG_AsVal_int(obj4, &val5);
18344 if (!SWIG_IsOK(ecode5)) {
18345 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18346 }
18347 arg5 = static_cast< int >(val5);
18348 ecode6 = SWIG_AsVal_double(obj5, &val6);
18349 if (!SWIG_IsOK(ecode6)) {
18350 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18351 }
18352 arg6 = static_cast< double >(val6);
18353 ecode7 = SWIG_AsVal_double(obj6, &val7);
18354 if (!SWIG_IsOK(ecode7)) {
18355 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18356 }
18357 arg7 = static_cast< double >(val7);
18358 {
18359 PyThreadState* __tstate = wxPyBeginAllowThreads();
18360 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18361 wxPyEndAllowThreads(__tstate);
18362 if (PyErr_Occurred()) SWIG_fail;
18363 }
18364 resultobj = SWIG_Py_Void();
18365 return resultobj;
18366fail:
18367 return NULL;
18368}
18369
18370
18371SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18372 PyObject *resultobj = 0;
18373 wxDC *arg1 = (wxDC *) 0 ;
18374 wxPoint *arg2 = 0 ;
18375 wxSize *arg3 = 0 ;
18376 double arg4 ;
18377 double arg5 ;
18378 void *argp1 = 0 ;
18379 int res1 = 0 ;
18380 wxPoint temp2 ;
18381 wxSize temp3 ;
18382 double val4 ;
18383 int ecode4 = 0 ;
18384 double val5 ;
18385 int ecode5 = 0 ;
18386 PyObject * obj0 = 0 ;
18387 PyObject * obj1 = 0 ;
18388 PyObject * obj2 = 0 ;
18389 PyObject * obj3 = 0 ;
18390 PyObject * obj4 = 0 ;
18391 char * kwnames[] = {
18392 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18393 };
18394
18395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18397 if (!SWIG_IsOK(res1)) {
18398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18399 }
18400 arg1 = reinterpret_cast< wxDC * >(argp1);
18401 {
18402 arg2 = &temp2;
18403 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18404 }
18405 {
18406 arg3 = &temp3;
18407 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18408 }
18409 ecode4 = SWIG_AsVal_double(obj3, &val4);
18410 if (!SWIG_IsOK(ecode4)) {
18411 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18412 }
18413 arg4 = static_cast< double >(val4);
18414 ecode5 = SWIG_AsVal_double(obj4, &val5);
18415 if (!SWIG_IsOK(ecode5)) {
18416 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18417 }
18418 arg5 = static_cast< double >(val5);
18419 {
18420 PyThreadState* __tstate = wxPyBeginAllowThreads();
18421 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18422 wxPyEndAllowThreads(__tstate);
18423 if (PyErr_Occurred()) SWIG_fail;
18424 }
18425 resultobj = SWIG_Py_Void();
18426 return resultobj;
18427fail:
18428 return NULL;
18429}
18430
18431
18432SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18433 PyObject *resultobj = 0;
18434 wxDC *arg1 = (wxDC *) 0 ;
18435 int arg2 ;
18436 int arg3 ;
18437 void *argp1 = 0 ;
18438 int res1 = 0 ;
18439 int val2 ;
18440 int ecode2 = 0 ;
18441 int val3 ;
18442 int ecode3 = 0 ;
18443 PyObject * obj0 = 0 ;
18444 PyObject * obj1 = 0 ;
18445 PyObject * obj2 = 0 ;
18446 char * kwnames[] = {
18447 (char *) "self",(char *) "x",(char *) "y", NULL
18448 };
18449
18450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18452 if (!SWIG_IsOK(res1)) {
18453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18454 }
18455 arg1 = reinterpret_cast< wxDC * >(argp1);
18456 ecode2 = SWIG_AsVal_int(obj1, &val2);
18457 if (!SWIG_IsOK(ecode2)) {
18458 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18459 }
18460 arg2 = static_cast< int >(val2);
18461 ecode3 = SWIG_AsVal_int(obj2, &val3);
18462 if (!SWIG_IsOK(ecode3)) {
18463 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18464 }
18465 arg3 = static_cast< int >(val3);
18466 {
18467 PyThreadState* __tstate = wxPyBeginAllowThreads();
18468 (arg1)->DrawPoint(arg2,arg3);
18469 wxPyEndAllowThreads(__tstate);
18470 if (PyErr_Occurred()) SWIG_fail;
18471 }
18472 resultobj = SWIG_Py_Void();
18473 return resultobj;
18474fail:
18475 return NULL;
18476}
18477
18478
18479SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18480 PyObject *resultobj = 0;
18481 wxDC *arg1 = (wxDC *) 0 ;
18482 wxPoint *arg2 = 0 ;
18483 void *argp1 = 0 ;
18484 int res1 = 0 ;
18485 wxPoint temp2 ;
18486 PyObject * obj0 = 0 ;
18487 PyObject * obj1 = 0 ;
18488 char * kwnames[] = {
18489 (char *) "self",(char *) "pt", NULL
18490 };
18491
18492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18494 if (!SWIG_IsOK(res1)) {
18495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18496 }
18497 arg1 = reinterpret_cast< wxDC * >(argp1);
18498 {
18499 arg2 = &temp2;
18500 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18501 }
18502 {
18503 PyThreadState* __tstate = wxPyBeginAllowThreads();
18504 (arg1)->DrawPoint((wxPoint const &)*arg2);
18505 wxPyEndAllowThreads(__tstate);
18506 if (PyErr_Occurred()) SWIG_fail;
18507 }
18508 resultobj = SWIG_Py_Void();
18509 return resultobj;
18510fail:
18511 return NULL;
18512}
18513
18514
18515SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18516 PyObject *resultobj = 0;
18517 wxDC *arg1 = (wxDC *) 0 ;
18518 int arg2 ;
18519 int arg3 ;
18520 int arg4 ;
18521 int arg5 ;
18522 void *argp1 = 0 ;
18523 int res1 = 0 ;
18524 int val2 ;
18525 int ecode2 = 0 ;
18526 int val3 ;
18527 int ecode3 = 0 ;
18528 int val4 ;
18529 int ecode4 = 0 ;
18530 int val5 ;
18531 int ecode5 = 0 ;
18532 PyObject * obj0 = 0 ;
18533 PyObject * obj1 = 0 ;
18534 PyObject * obj2 = 0 ;
18535 PyObject * obj3 = 0 ;
18536 PyObject * obj4 = 0 ;
18537 char * kwnames[] = {
18538 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18539 };
18540
18541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18543 if (!SWIG_IsOK(res1)) {
18544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18545 }
18546 arg1 = reinterpret_cast< wxDC * >(argp1);
18547 ecode2 = SWIG_AsVal_int(obj1, &val2);
18548 if (!SWIG_IsOK(ecode2)) {
18549 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18550 }
18551 arg2 = static_cast< int >(val2);
18552 ecode3 = SWIG_AsVal_int(obj2, &val3);
18553 if (!SWIG_IsOK(ecode3)) {
18554 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18555 }
18556 arg3 = static_cast< int >(val3);
18557 ecode4 = SWIG_AsVal_int(obj3, &val4);
18558 if (!SWIG_IsOK(ecode4)) {
18559 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18560 }
18561 arg4 = static_cast< int >(val4);
18562 ecode5 = SWIG_AsVal_int(obj4, &val5);
18563 if (!SWIG_IsOK(ecode5)) {
18564 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18565 }
18566 arg5 = static_cast< int >(val5);
18567 {
18568 PyThreadState* __tstate = wxPyBeginAllowThreads();
18569 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18570 wxPyEndAllowThreads(__tstate);
18571 if (PyErr_Occurred()) SWIG_fail;
18572 }
18573 resultobj = SWIG_Py_Void();
18574 return resultobj;
18575fail:
18576 return NULL;
18577}
18578
18579
18580SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18581 PyObject *resultobj = 0;
18582 wxDC *arg1 = (wxDC *) 0 ;
18583 wxRect *arg2 = 0 ;
18584 void *argp1 = 0 ;
18585 int res1 = 0 ;
18586 wxRect temp2 ;
18587 PyObject * obj0 = 0 ;
18588 PyObject * obj1 = 0 ;
18589 char * kwnames[] = {
18590 (char *) "self",(char *) "rect", NULL
18591 };
18592
18593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18595 if (!SWIG_IsOK(res1)) {
18596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18597 }
18598 arg1 = reinterpret_cast< wxDC * >(argp1);
18599 {
18600 arg2 = &temp2;
18601 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18602 }
18603 {
18604 PyThreadState* __tstate = wxPyBeginAllowThreads();
18605 (arg1)->DrawRectangle((wxRect const &)*arg2);
18606 wxPyEndAllowThreads(__tstate);
18607 if (PyErr_Occurred()) SWIG_fail;
18608 }
18609 resultobj = SWIG_Py_Void();
18610 return resultobj;
18611fail:
18612 return NULL;
18613}
18614
18615
18616SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18617 PyObject *resultobj = 0;
18618 wxDC *arg1 = (wxDC *) 0 ;
18619 wxPoint *arg2 = 0 ;
18620 wxSize *arg3 = 0 ;
18621 void *argp1 = 0 ;
18622 int res1 = 0 ;
18623 wxPoint temp2 ;
18624 wxSize temp3 ;
18625 PyObject * obj0 = 0 ;
18626 PyObject * obj1 = 0 ;
18627 PyObject * obj2 = 0 ;
18628 char * kwnames[] = {
18629 (char *) "self",(char *) "pt",(char *) "sz", NULL
18630 };
18631
18632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18634 if (!SWIG_IsOK(res1)) {
18635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18636 }
18637 arg1 = reinterpret_cast< wxDC * >(argp1);
18638 {
18639 arg2 = &temp2;
18640 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18641 }
18642 {
18643 arg3 = &temp3;
18644 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18645 }
18646 {
18647 PyThreadState* __tstate = wxPyBeginAllowThreads();
18648 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18649 wxPyEndAllowThreads(__tstate);
18650 if (PyErr_Occurred()) SWIG_fail;
18651 }
18652 resultobj = SWIG_Py_Void();
18653 return resultobj;
18654fail:
18655 return NULL;
18656}
18657
18658
18659SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18660 PyObject *resultobj = 0;
18661 wxDC *arg1 = (wxDC *) 0 ;
18662 int arg2 ;
18663 int arg3 ;
18664 int arg4 ;
18665 int arg5 ;
18666 double arg6 ;
18667 void *argp1 = 0 ;
18668 int res1 = 0 ;
18669 int val2 ;
18670 int ecode2 = 0 ;
18671 int val3 ;
18672 int ecode3 = 0 ;
18673 int val4 ;
18674 int ecode4 = 0 ;
18675 int val5 ;
18676 int ecode5 = 0 ;
18677 double val6 ;
18678 int ecode6 = 0 ;
18679 PyObject * obj0 = 0 ;
18680 PyObject * obj1 = 0 ;
18681 PyObject * obj2 = 0 ;
18682 PyObject * obj3 = 0 ;
18683 PyObject * obj4 = 0 ;
18684 PyObject * obj5 = 0 ;
18685 char * kwnames[] = {
18686 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18687 };
18688
18689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18691 if (!SWIG_IsOK(res1)) {
18692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18693 }
18694 arg1 = reinterpret_cast< wxDC * >(argp1);
18695 ecode2 = SWIG_AsVal_int(obj1, &val2);
18696 if (!SWIG_IsOK(ecode2)) {
18697 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18698 }
18699 arg2 = static_cast< int >(val2);
18700 ecode3 = SWIG_AsVal_int(obj2, &val3);
18701 if (!SWIG_IsOK(ecode3)) {
18702 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18703 }
18704 arg3 = static_cast< int >(val3);
18705 ecode4 = SWIG_AsVal_int(obj3, &val4);
18706 if (!SWIG_IsOK(ecode4)) {
18707 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18708 }
18709 arg4 = static_cast< int >(val4);
18710 ecode5 = SWIG_AsVal_int(obj4, &val5);
18711 if (!SWIG_IsOK(ecode5)) {
18712 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18713 }
18714 arg5 = static_cast< int >(val5);
18715 ecode6 = SWIG_AsVal_double(obj5, &val6);
18716 if (!SWIG_IsOK(ecode6)) {
18717 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18718 }
18719 arg6 = static_cast< double >(val6);
18720 {
18721 PyThreadState* __tstate = wxPyBeginAllowThreads();
18722 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18723 wxPyEndAllowThreads(__tstate);
18724 if (PyErr_Occurred()) SWIG_fail;
18725 }
18726 resultobj = SWIG_Py_Void();
18727 return resultobj;
18728fail:
18729 return NULL;
18730}
18731
18732
18733SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18734 PyObject *resultobj = 0;
18735 wxDC *arg1 = (wxDC *) 0 ;
18736 wxRect *arg2 = 0 ;
18737 double arg3 ;
18738 void *argp1 = 0 ;
18739 int res1 = 0 ;
18740 wxRect temp2 ;
18741 double val3 ;
18742 int ecode3 = 0 ;
18743 PyObject * obj0 = 0 ;
18744 PyObject * obj1 = 0 ;
18745 PyObject * obj2 = 0 ;
18746 char * kwnames[] = {
18747 (char *) "self",(char *) "r",(char *) "radius", NULL
18748 };
18749
18750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18752 if (!SWIG_IsOK(res1)) {
18753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18754 }
18755 arg1 = reinterpret_cast< wxDC * >(argp1);
18756 {
18757 arg2 = &temp2;
18758 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18759 }
18760 ecode3 = SWIG_AsVal_double(obj2, &val3);
18761 if (!SWIG_IsOK(ecode3)) {
18762 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
18763 }
18764 arg3 = static_cast< double >(val3);
18765 {
18766 PyThreadState* __tstate = wxPyBeginAllowThreads();
18767 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
18768 wxPyEndAllowThreads(__tstate);
18769 if (PyErr_Occurred()) SWIG_fail;
18770 }
18771 resultobj = SWIG_Py_Void();
18772 return resultobj;
18773fail:
18774 return NULL;
18775}
18776
18777
18778SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18779 PyObject *resultobj = 0;
18780 wxDC *arg1 = (wxDC *) 0 ;
18781 wxPoint *arg2 = 0 ;
18782 wxSize *arg3 = 0 ;
18783 double arg4 ;
18784 void *argp1 = 0 ;
18785 int res1 = 0 ;
18786 wxPoint temp2 ;
18787 wxSize temp3 ;
18788 double val4 ;
18789 int ecode4 = 0 ;
18790 PyObject * obj0 = 0 ;
18791 PyObject * obj1 = 0 ;
18792 PyObject * obj2 = 0 ;
18793 PyObject * obj3 = 0 ;
18794 char * kwnames[] = {
18795 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
18796 };
18797
18798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18800 if (!SWIG_IsOK(res1)) {
18801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18802 }
18803 arg1 = reinterpret_cast< wxDC * >(argp1);
18804 {
18805 arg2 = &temp2;
18806 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18807 }
18808 {
18809 arg3 = &temp3;
18810 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18811 }
18812 ecode4 = SWIG_AsVal_double(obj3, &val4);
18813 if (!SWIG_IsOK(ecode4)) {
18814 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
18815 }
18816 arg4 = static_cast< double >(val4);
18817 {
18818 PyThreadState* __tstate = wxPyBeginAllowThreads();
18819 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*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_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18831 PyObject *resultobj = 0;
18832 wxDC *arg1 = (wxDC *) 0 ;
18833 int arg2 ;
18834 int arg3 ;
18835 int arg4 ;
18836 void *argp1 = 0 ;
18837 int res1 = 0 ;
18838 int val2 ;
18839 int ecode2 = 0 ;
18840 int val3 ;
18841 int ecode3 = 0 ;
18842 int val4 ;
18843 int ecode4 = 0 ;
18844 PyObject * obj0 = 0 ;
18845 PyObject * obj1 = 0 ;
18846 PyObject * obj2 = 0 ;
18847 PyObject * obj3 = 0 ;
18848 char * kwnames[] = {
18849 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
18850 };
18851
18852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18854 if (!SWIG_IsOK(res1)) {
18855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
18856 }
18857 arg1 = reinterpret_cast< wxDC * >(argp1);
18858 ecode2 = SWIG_AsVal_int(obj1, &val2);
18859 if (!SWIG_IsOK(ecode2)) {
18860 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
18861 }
18862 arg2 = static_cast< int >(val2);
18863 ecode3 = SWIG_AsVal_int(obj2, &val3);
18864 if (!SWIG_IsOK(ecode3)) {
18865 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
18866 }
18867 arg3 = static_cast< int >(val3);
18868 ecode4 = SWIG_AsVal_int(obj3, &val4);
18869 if (!SWIG_IsOK(ecode4)) {
18870 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
18871 }
18872 arg4 = static_cast< int >(val4);
18873 {
18874 PyThreadState* __tstate = wxPyBeginAllowThreads();
18875 (arg1)->DrawCircle(arg2,arg3,arg4);
18876 wxPyEndAllowThreads(__tstate);
18877 if (PyErr_Occurred()) SWIG_fail;
18878 }
18879 resultobj = SWIG_Py_Void();
18880 return resultobj;
18881fail:
18882 return NULL;
18883}
18884
18885
18886SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18887 PyObject *resultobj = 0;
18888 wxDC *arg1 = (wxDC *) 0 ;
18889 wxPoint *arg2 = 0 ;
18890 int arg3 ;
18891 void *argp1 = 0 ;
18892 int res1 = 0 ;
18893 wxPoint temp2 ;
18894 int val3 ;
18895 int ecode3 = 0 ;
18896 PyObject * obj0 = 0 ;
18897 PyObject * obj1 = 0 ;
18898 PyObject * obj2 = 0 ;
18899 char * kwnames[] = {
18900 (char *) "self",(char *) "pt",(char *) "radius", NULL
18901 };
18902
18903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18905 if (!SWIG_IsOK(res1)) {
18906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18907 }
18908 arg1 = reinterpret_cast< wxDC * >(argp1);
18909 {
18910 arg2 = &temp2;
18911 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18912 }
18913 ecode3 = SWIG_AsVal_int(obj2, &val3);
18914 if (!SWIG_IsOK(ecode3)) {
18915 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
18916 }
18917 arg3 = static_cast< int >(val3);
18918 {
18919 PyThreadState* __tstate = wxPyBeginAllowThreads();
18920 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
18921 wxPyEndAllowThreads(__tstate);
18922 if (PyErr_Occurred()) SWIG_fail;
18923 }
18924 resultobj = SWIG_Py_Void();
18925 return resultobj;
18926fail:
18927 return NULL;
18928}
18929
18930
18931SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18932 PyObject *resultobj = 0;
18933 wxDC *arg1 = (wxDC *) 0 ;
18934 int arg2 ;
18935 int arg3 ;
18936 int arg4 ;
18937 int arg5 ;
18938 void *argp1 = 0 ;
18939 int res1 = 0 ;
18940 int val2 ;
18941 int ecode2 = 0 ;
18942 int val3 ;
18943 int ecode3 = 0 ;
18944 int val4 ;
18945 int ecode4 = 0 ;
18946 int val5 ;
18947 int ecode5 = 0 ;
18948 PyObject * obj0 = 0 ;
18949 PyObject * obj1 = 0 ;
18950 PyObject * obj2 = 0 ;
18951 PyObject * obj3 = 0 ;
18952 PyObject * obj4 = 0 ;
18953 char * kwnames[] = {
18954 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18955 };
18956
18957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18959 if (!SWIG_IsOK(res1)) {
18960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
18961 }
18962 arg1 = reinterpret_cast< wxDC * >(argp1);
18963 ecode2 = SWIG_AsVal_int(obj1, &val2);
18964 if (!SWIG_IsOK(ecode2)) {
18965 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
18966 }
18967 arg2 = static_cast< int >(val2);
18968 ecode3 = SWIG_AsVal_int(obj2, &val3);
18969 if (!SWIG_IsOK(ecode3)) {
18970 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
18971 }
18972 arg3 = static_cast< int >(val3);
18973 ecode4 = SWIG_AsVal_int(obj3, &val4);
18974 if (!SWIG_IsOK(ecode4)) {
18975 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
18976 }
18977 arg4 = static_cast< int >(val4);
18978 ecode5 = SWIG_AsVal_int(obj4, &val5);
18979 if (!SWIG_IsOK(ecode5)) {
18980 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
18981 }
18982 arg5 = static_cast< int >(val5);
18983 {
18984 PyThreadState* __tstate = wxPyBeginAllowThreads();
18985 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
18986 wxPyEndAllowThreads(__tstate);
18987 if (PyErr_Occurred()) SWIG_fail;
18988 }
18989 resultobj = SWIG_Py_Void();
18990 return resultobj;
18991fail:
18992 return NULL;
18993}
18994
18995
18996SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18997 PyObject *resultobj = 0;
18998 wxDC *arg1 = (wxDC *) 0 ;
18999 wxRect *arg2 = 0 ;
19000 void *argp1 = 0 ;
19001 int res1 = 0 ;
19002 wxRect temp2 ;
19003 PyObject * obj0 = 0 ;
19004 PyObject * obj1 = 0 ;
19005 char * kwnames[] = {
19006 (char *) "self",(char *) "rect", NULL
19007 };
19008
19009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
19010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19011 if (!SWIG_IsOK(res1)) {
19012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19013 }
19014 arg1 = reinterpret_cast< wxDC * >(argp1);
19015 {
19016 arg2 = &temp2;
19017 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19018 }
19019 {
19020 PyThreadState* __tstate = wxPyBeginAllowThreads();
19021 (arg1)->DrawEllipse((wxRect const &)*arg2);
19022 wxPyEndAllowThreads(__tstate);
19023 if (PyErr_Occurred()) SWIG_fail;
19024 }
19025 resultobj = SWIG_Py_Void();
19026 return resultobj;
19027fail:
19028 return NULL;
19029}
19030
19031
19032SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19033 PyObject *resultobj = 0;
19034 wxDC *arg1 = (wxDC *) 0 ;
19035 wxPoint *arg2 = 0 ;
19036 wxSize *arg3 = 0 ;
19037 void *argp1 = 0 ;
19038 int res1 = 0 ;
19039 wxPoint temp2 ;
19040 wxSize temp3 ;
19041 PyObject * obj0 = 0 ;
19042 PyObject * obj1 = 0 ;
19043 PyObject * obj2 = 0 ;
19044 char * kwnames[] = {
19045 (char *) "self",(char *) "pt",(char *) "sz", NULL
19046 };
19047
19048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19050 if (!SWIG_IsOK(res1)) {
19051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19052 }
19053 arg1 = reinterpret_cast< wxDC * >(argp1);
19054 {
19055 arg2 = &temp2;
19056 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19057 }
19058 {
19059 arg3 = &temp3;
19060 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19061 }
19062 {
19063 PyThreadState* __tstate = wxPyBeginAllowThreads();
19064 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
19065 wxPyEndAllowThreads(__tstate);
19066 if (PyErr_Occurred()) SWIG_fail;
19067 }
19068 resultobj = SWIG_Py_Void();
19069 return resultobj;
19070fail:
19071 return NULL;
19072}
19073
19074
19075SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19076 PyObject *resultobj = 0;
19077 wxDC *arg1 = (wxDC *) 0 ;
19078 wxIcon *arg2 = 0 ;
19079 int arg3 ;
19080 int arg4 ;
19081 void *argp1 = 0 ;
19082 int res1 = 0 ;
19083 void *argp2 = 0 ;
19084 int res2 = 0 ;
19085 int val3 ;
19086 int ecode3 = 0 ;
19087 int val4 ;
19088 int ecode4 = 0 ;
19089 PyObject * obj0 = 0 ;
19090 PyObject * obj1 = 0 ;
19091 PyObject * obj2 = 0 ;
19092 PyObject * obj3 = 0 ;
19093 char * kwnames[] = {
19094 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
19095 };
19096
19097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19099 if (!SWIG_IsOK(res1)) {
19100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
19101 }
19102 arg1 = reinterpret_cast< wxDC * >(argp1);
19103 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19104 if (!SWIG_IsOK(res2)) {
19105 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19106 }
19107 if (!argp2) {
19108 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19109 }
19110 arg2 = reinterpret_cast< wxIcon * >(argp2);
19111 ecode3 = SWIG_AsVal_int(obj2, &val3);
19112 if (!SWIG_IsOK(ecode3)) {
19113 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
19114 }
19115 arg3 = static_cast< int >(val3);
19116 ecode4 = SWIG_AsVal_int(obj3, &val4);
19117 if (!SWIG_IsOK(ecode4)) {
19118 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
19119 }
19120 arg4 = static_cast< int >(val4);
19121 {
19122 PyThreadState* __tstate = wxPyBeginAllowThreads();
19123 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
19124 wxPyEndAllowThreads(__tstate);
19125 if (PyErr_Occurred()) SWIG_fail;
19126 }
19127 resultobj = SWIG_Py_Void();
19128 return resultobj;
19129fail:
19130 return NULL;
19131}
19132
19133
19134SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19135 PyObject *resultobj = 0;
19136 wxDC *arg1 = (wxDC *) 0 ;
19137 wxIcon *arg2 = 0 ;
19138 wxPoint *arg3 = 0 ;
19139 void *argp1 = 0 ;
19140 int res1 = 0 ;
19141 void *argp2 = 0 ;
19142 int res2 = 0 ;
19143 wxPoint temp3 ;
19144 PyObject * obj0 = 0 ;
19145 PyObject * obj1 = 0 ;
19146 PyObject * obj2 = 0 ;
19147 char * kwnames[] = {
19148 (char *) "self",(char *) "icon",(char *) "pt", NULL
19149 };
19150
19151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19153 if (!SWIG_IsOK(res1)) {
19154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19155 }
19156 arg1 = reinterpret_cast< wxDC * >(argp1);
19157 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19158 if (!SWIG_IsOK(res2)) {
19159 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19160 }
19161 if (!argp2) {
19162 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19163 }
19164 arg2 = reinterpret_cast< wxIcon * >(argp2);
19165 {
19166 arg3 = &temp3;
19167 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19168 }
19169 {
19170 PyThreadState* __tstate = wxPyBeginAllowThreads();
19171 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19172 wxPyEndAllowThreads(__tstate);
19173 if (PyErr_Occurred()) SWIG_fail;
19174 }
19175 resultobj = SWIG_Py_Void();
19176 return resultobj;
19177fail:
19178 return NULL;
19179}
19180
19181
19182SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19183 PyObject *resultobj = 0;
19184 wxDC *arg1 = (wxDC *) 0 ;
19185 wxBitmap *arg2 = 0 ;
19186 int arg3 ;
19187 int arg4 ;
19188 bool arg5 = (bool) false ;
19189 void *argp1 = 0 ;
19190 int res1 = 0 ;
19191 void *argp2 = 0 ;
19192 int res2 = 0 ;
19193 int val3 ;
19194 int ecode3 = 0 ;
19195 int val4 ;
19196 int ecode4 = 0 ;
19197 bool val5 ;
19198 int ecode5 = 0 ;
19199 PyObject * obj0 = 0 ;
19200 PyObject * obj1 = 0 ;
19201 PyObject * obj2 = 0 ;
19202 PyObject * obj3 = 0 ;
19203 PyObject * obj4 = 0 ;
19204 char * kwnames[] = {
19205 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19206 };
19207
19208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19210 if (!SWIG_IsOK(res1)) {
19211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19212 }
19213 arg1 = reinterpret_cast< wxDC * >(argp1);
19214 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19215 if (!SWIG_IsOK(res2)) {
19216 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19217 }
19218 if (!argp2) {
19219 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19220 }
19221 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19222 ecode3 = SWIG_AsVal_int(obj2, &val3);
19223 if (!SWIG_IsOK(ecode3)) {
19224 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
19225 }
19226 arg3 = static_cast< int >(val3);
19227 ecode4 = SWIG_AsVal_int(obj3, &val4);
19228 if (!SWIG_IsOK(ecode4)) {
19229 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19230 }
19231 arg4 = static_cast< int >(val4);
19232 if (obj4) {
19233 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19234 if (!SWIG_IsOK(ecode5)) {
19235 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19236 }
19237 arg5 = static_cast< bool >(val5);
19238 }
19239 {
19240 PyThreadState* __tstate = wxPyBeginAllowThreads();
19241 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
19242 wxPyEndAllowThreads(__tstate);
19243 if (PyErr_Occurred()) SWIG_fail;
19244 }
19245 resultobj = SWIG_Py_Void();
19246 return resultobj;
19247fail:
19248 return NULL;
19249}
19250
19251
19252SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19253 PyObject *resultobj = 0;
19254 wxDC *arg1 = (wxDC *) 0 ;
19255 wxBitmap *arg2 = 0 ;
19256 wxPoint *arg3 = 0 ;
19257 bool arg4 = (bool) false ;
19258 void *argp1 = 0 ;
19259 int res1 = 0 ;
19260 void *argp2 = 0 ;
19261 int res2 = 0 ;
19262 wxPoint temp3 ;
19263 bool val4 ;
19264 int ecode4 = 0 ;
19265 PyObject * obj0 = 0 ;
19266 PyObject * obj1 = 0 ;
19267 PyObject * obj2 = 0 ;
19268 PyObject * obj3 = 0 ;
19269 char * kwnames[] = {
19270 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
19271 };
19272
19273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19275 if (!SWIG_IsOK(res1)) {
19276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19277 }
19278 arg1 = reinterpret_cast< wxDC * >(argp1);
19279 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19280 if (!SWIG_IsOK(res2)) {
19281 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19282 }
19283 if (!argp2) {
19284 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19285 }
19286 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19287 {
19288 arg3 = &temp3;
19289 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19290 }
19291 if (obj3) {
19292 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19293 if (!SWIG_IsOK(ecode4)) {
19294 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
19295 }
19296 arg4 = static_cast< bool >(val4);
19297 }
19298 {
19299 PyThreadState* __tstate = wxPyBeginAllowThreads();
19300 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
19301 wxPyEndAllowThreads(__tstate);
19302 if (PyErr_Occurred()) SWIG_fail;
19303 }
19304 resultobj = SWIG_Py_Void();
19305 return resultobj;
19306fail:
19307 return NULL;
19308}
19309
19310
19311SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19312 PyObject *resultobj = 0;
19313 wxDC *arg1 = (wxDC *) 0 ;
19314 wxString *arg2 = 0 ;
19315 int arg3 ;
19316 int arg4 ;
19317 void *argp1 = 0 ;
19318 int res1 = 0 ;
19319 bool temp2 = false ;
19320 int val3 ;
19321 int ecode3 = 0 ;
19322 int val4 ;
19323 int ecode4 = 0 ;
19324 PyObject * obj0 = 0 ;
19325 PyObject * obj1 = 0 ;
19326 PyObject * obj2 = 0 ;
19327 PyObject * obj3 = 0 ;
19328 char * kwnames[] = {
19329 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19330 };
19331
19332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19334 if (!SWIG_IsOK(res1)) {
19335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19336 }
19337 arg1 = reinterpret_cast< wxDC * >(argp1);
19338 {
19339 arg2 = wxString_in_helper(obj1);
19340 if (arg2 == NULL) SWIG_fail;
19341 temp2 = true;
19342 }
19343 ecode3 = SWIG_AsVal_int(obj2, &val3);
19344 if (!SWIG_IsOK(ecode3)) {
19345 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19346 }
19347 arg3 = static_cast< int >(val3);
19348 ecode4 = SWIG_AsVal_int(obj3, &val4);
19349 if (!SWIG_IsOK(ecode4)) {
19350 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19351 }
19352 arg4 = static_cast< int >(val4);
19353 {
19354 PyThreadState* __tstate = wxPyBeginAllowThreads();
19355 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19356 wxPyEndAllowThreads(__tstate);
19357 if (PyErr_Occurred()) SWIG_fail;
19358 }
19359 resultobj = SWIG_Py_Void();
19360 {
19361 if (temp2)
19362 delete arg2;
19363 }
19364 return resultobj;
19365fail:
19366 {
19367 if (temp2)
19368 delete arg2;
19369 }
19370 return NULL;
19371}
19372
19373
19374SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19375 PyObject *resultobj = 0;
19376 wxDC *arg1 = (wxDC *) 0 ;
19377 wxString *arg2 = 0 ;
19378 wxPoint *arg3 = 0 ;
19379 void *argp1 = 0 ;
19380 int res1 = 0 ;
19381 bool temp2 = false ;
19382 wxPoint temp3 ;
19383 PyObject * obj0 = 0 ;
19384 PyObject * obj1 = 0 ;
19385 PyObject * obj2 = 0 ;
19386 char * kwnames[] = {
19387 (char *) "self",(char *) "text",(char *) "pt", NULL
19388 };
19389
19390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19392 if (!SWIG_IsOK(res1)) {
19393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19394 }
19395 arg1 = reinterpret_cast< wxDC * >(argp1);
19396 {
19397 arg2 = wxString_in_helper(obj1);
19398 if (arg2 == NULL) SWIG_fail;
19399 temp2 = true;
19400 }
19401 {
19402 arg3 = &temp3;
19403 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19404 }
19405 {
19406 PyThreadState* __tstate = wxPyBeginAllowThreads();
19407 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19408 wxPyEndAllowThreads(__tstate);
19409 if (PyErr_Occurred()) SWIG_fail;
19410 }
19411 resultobj = SWIG_Py_Void();
19412 {
19413 if (temp2)
19414 delete arg2;
19415 }
19416 return resultobj;
19417fail:
19418 {
19419 if (temp2)
19420 delete arg2;
19421 }
19422 return NULL;
19423}
19424
19425
19426SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19427 PyObject *resultobj = 0;
19428 wxDC *arg1 = (wxDC *) 0 ;
19429 wxString *arg2 = 0 ;
19430 int arg3 ;
19431 int arg4 ;
19432 double arg5 ;
19433 void *argp1 = 0 ;
19434 int res1 = 0 ;
19435 bool temp2 = false ;
19436 int val3 ;
19437 int ecode3 = 0 ;
19438 int val4 ;
19439 int ecode4 = 0 ;
19440 double val5 ;
19441 int ecode5 = 0 ;
19442 PyObject * obj0 = 0 ;
19443 PyObject * obj1 = 0 ;
19444 PyObject * obj2 = 0 ;
19445 PyObject * obj3 = 0 ;
19446 PyObject * obj4 = 0 ;
19447 char * kwnames[] = {
19448 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19449 };
19450
19451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19453 if (!SWIG_IsOK(res1)) {
19454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19455 }
19456 arg1 = reinterpret_cast< wxDC * >(argp1);
19457 {
19458 arg2 = wxString_in_helper(obj1);
19459 if (arg2 == NULL) SWIG_fail;
19460 temp2 = true;
19461 }
19462 ecode3 = SWIG_AsVal_int(obj2, &val3);
19463 if (!SWIG_IsOK(ecode3)) {
19464 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19465 }
19466 arg3 = static_cast< int >(val3);
19467 ecode4 = SWIG_AsVal_int(obj3, &val4);
19468 if (!SWIG_IsOK(ecode4)) {
19469 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19470 }
19471 arg4 = static_cast< int >(val4);
19472 ecode5 = SWIG_AsVal_double(obj4, &val5);
19473 if (!SWIG_IsOK(ecode5)) {
19474 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19475 }
19476 arg5 = static_cast< double >(val5);
19477 {
19478 PyThreadState* __tstate = wxPyBeginAllowThreads();
19479 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19480 wxPyEndAllowThreads(__tstate);
19481 if (PyErr_Occurred()) SWIG_fail;
19482 }
19483 resultobj = SWIG_Py_Void();
19484 {
19485 if (temp2)
19486 delete arg2;
19487 }
19488 return resultobj;
19489fail:
19490 {
19491 if (temp2)
19492 delete arg2;
19493 }
19494 return NULL;
19495}
19496
19497
19498SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19499 PyObject *resultobj = 0;
19500 wxDC *arg1 = (wxDC *) 0 ;
19501 wxString *arg2 = 0 ;
19502 wxPoint *arg3 = 0 ;
19503 double arg4 ;
19504 void *argp1 = 0 ;
19505 int res1 = 0 ;
19506 bool temp2 = false ;
19507 wxPoint temp3 ;
19508 double val4 ;
19509 int ecode4 = 0 ;
19510 PyObject * obj0 = 0 ;
19511 PyObject * obj1 = 0 ;
19512 PyObject * obj2 = 0 ;
19513 PyObject * obj3 = 0 ;
19514 char * kwnames[] = {
19515 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19516 };
19517
19518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19520 if (!SWIG_IsOK(res1)) {
19521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19522 }
19523 arg1 = reinterpret_cast< wxDC * >(argp1);
19524 {
19525 arg2 = wxString_in_helper(obj1);
19526 if (arg2 == NULL) SWIG_fail;
19527 temp2 = true;
19528 }
19529 {
19530 arg3 = &temp3;
19531 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19532 }
19533 ecode4 = SWIG_AsVal_double(obj3, &val4);
19534 if (!SWIG_IsOK(ecode4)) {
19535 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19536 }
19537 arg4 = static_cast< double >(val4);
19538 {
19539 PyThreadState* __tstate = wxPyBeginAllowThreads();
19540 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19541 wxPyEndAllowThreads(__tstate);
19542 if (PyErr_Occurred()) SWIG_fail;
19543 }
19544 resultobj = SWIG_Py_Void();
19545 {
19546 if (temp2)
19547 delete arg2;
19548 }
19549 return resultobj;
19550fail:
19551 {
19552 if (temp2)
19553 delete arg2;
19554 }
19555 return NULL;
19556}
19557
19558
19559SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19560 PyObject *resultobj = 0;
19561 wxDC *arg1 = (wxDC *) 0 ;
19562 int arg2 ;
19563 int arg3 ;
19564 int arg4 ;
19565 int arg5 ;
19566 wxDC *arg6 = (wxDC *) 0 ;
19567 int arg7 ;
19568 int arg8 ;
19569 int arg9 = (int) wxCOPY ;
19570 bool arg10 = (bool) false ;
19571 int arg11 = (int) -1 ;
19572 int arg12 = (int) -1 ;
19573 bool result;
19574 void *argp1 = 0 ;
19575 int res1 = 0 ;
19576 int val2 ;
19577 int ecode2 = 0 ;
19578 int val3 ;
19579 int ecode3 = 0 ;
19580 int val4 ;
19581 int ecode4 = 0 ;
19582 int val5 ;
19583 int ecode5 = 0 ;
19584 void *argp6 = 0 ;
19585 int res6 = 0 ;
19586 int val7 ;
19587 int ecode7 = 0 ;
19588 int val8 ;
19589 int ecode8 = 0 ;
19590 int val9 ;
19591 int ecode9 = 0 ;
19592 bool val10 ;
19593 int ecode10 = 0 ;
19594 int val11 ;
19595 int ecode11 = 0 ;
19596 int val12 ;
19597 int ecode12 = 0 ;
19598 PyObject * obj0 = 0 ;
19599 PyObject * obj1 = 0 ;
19600 PyObject * obj2 = 0 ;
19601 PyObject * obj3 = 0 ;
19602 PyObject * obj4 = 0 ;
19603 PyObject * obj5 = 0 ;
19604 PyObject * obj6 = 0 ;
19605 PyObject * obj7 = 0 ;
19606 PyObject * obj8 = 0 ;
19607 PyObject * obj9 = 0 ;
19608 PyObject * obj10 = 0 ;
19609 PyObject * obj11 = 0 ;
19610 char * kwnames[] = {
19611 (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
19612 };
19613
19614 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;
19615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19616 if (!SWIG_IsOK(res1)) {
19617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19618 }
19619 arg1 = reinterpret_cast< wxDC * >(argp1);
19620 ecode2 = SWIG_AsVal_int(obj1, &val2);
19621 if (!SWIG_IsOK(ecode2)) {
19622 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19623 }
19624 arg2 = static_cast< int >(val2);
19625 ecode3 = SWIG_AsVal_int(obj2, &val3);
19626 if (!SWIG_IsOK(ecode3)) {
19627 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19628 }
19629 arg3 = static_cast< int >(val3);
19630 ecode4 = SWIG_AsVal_int(obj3, &val4);
19631 if (!SWIG_IsOK(ecode4)) {
19632 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19633 }
19634 arg4 = static_cast< int >(val4);
19635 ecode5 = SWIG_AsVal_int(obj4, &val5);
19636 if (!SWIG_IsOK(ecode5)) {
19637 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19638 }
19639 arg5 = static_cast< int >(val5);
19640 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19641 if (!SWIG_IsOK(res6)) {
19642 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19643 }
19644 arg6 = reinterpret_cast< wxDC * >(argp6);
19645 ecode7 = SWIG_AsVal_int(obj6, &val7);
19646 if (!SWIG_IsOK(ecode7)) {
19647 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19648 }
19649 arg7 = static_cast< int >(val7);
19650 ecode8 = SWIG_AsVal_int(obj7, &val8);
19651 if (!SWIG_IsOK(ecode8)) {
19652 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19653 }
19654 arg8 = static_cast< int >(val8);
19655 if (obj8) {
19656 ecode9 = SWIG_AsVal_int(obj8, &val9);
19657 if (!SWIG_IsOK(ecode9)) {
19658 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19659 }
19660 arg9 = static_cast< int >(val9);
19661 }
19662 if (obj9) {
19663 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19664 if (!SWIG_IsOK(ecode10)) {
19665 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19666 }
19667 arg10 = static_cast< bool >(val10);
19668 }
19669 if (obj10) {
19670 ecode11 = SWIG_AsVal_int(obj10, &val11);
19671 if (!SWIG_IsOK(ecode11)) {
19672 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19673 }
19674 arg11 = static_cast< int >(val11);
19675 }
19676 if (obj11) {
19677 ecode12 = SWIG_AsVal_int(obj11, &val12);
19678 if (!SWIG_IsOK(ecode12)) {
19679 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19680 }
19681 arg12 = static_cast< int >(val12);
19682 }
19683 {
19684 PyThreadState* __tstate = wxPyBeginAllowThreads();
19685 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19686 wxPyEndAllowThreads(__tstate);
19687 if (PyErr_Occurred()) SWIG_fail;
19688 }
19689 {
19690 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19691 }
19692 return resultobj;
19693fail:
19694 return NULL;
19695}
19696
19697
19698SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19699 PyObject *resultobj = 0;
19700 wxDC *arg1 = (wxDC *) 0 ;
19701 wxPoint *arg2 = 0 ;
19702 wxSize *arg3 = 0 ;
19703 wxDC *arg4 = (wxDC *) 0 ;
19704 wxPoint *arg5 = 0 ;
19705 int arg6 = (int) wxCOPY ;
19706 bool arg7 = (bool) false ;
19707 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19708 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19709 bool result;
19710 void *argp1 = 0 ;
19711 int res1 = 0 ;
19712 wxPoint temp2 ;
19713 wxSize temp3 ;
19714 void *argp4 = 0 ;
19715 int res4 = 0 ;
19716 wxPoint temp5 ;
19717 int val6 ;
19718 int ecode6 = 0 ;
19719 bool val7 ;
19720 int ecode7 = 0 ;
19721 wxPoint temp8 ;
19722 PyObject * obj0 = 0 ;
19723 PyObject * obj1 = 0 ;
19724 PyObject * obj2 = 0 ;
19725 PyObject * obj3 = 0 ;
19726 PyObject * obj4 = 0 ;
19727 PyObject * obj5 = 0 ;
19728 PyObject * obj6 = 0 ;
19729 PyObject * obj7 = 0 ;
19730 char * kwnames[] = {
19731 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19732 };
19733
19734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
19735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19736 if (!SWIG_IsOK(res1)) {
19737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19738 }
19739 arg1 = reinterpret_cast< wxDC * >(argp1);
19740 {
19741 arg2 = &temp2;
19742 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19743 }
19744 {
19745 arg3 = &temp3;
19746 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19747 }
19748 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
19749 if (!SWIG_IsOK(res4)) {
19750 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
19751 }
19752 arg4 = reinterpret_cast< wxDC * >(argp4);
19753 {
19754 arg5 = &temp5;
19755 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19756 }
19757 if (obj5) {
19758 ecode6 = SWIG_AsVal_int(obj5, &val6);
19759 if (!SWIG_IsOK(ecode6)) {
19760 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
19761 }
19762 arg6 = static_cast< int >(val6);
19763 }
19764 if (obj6) {
19765 ecode7 = SWIG_AsVal_bool(obj6, &val7);
19766 if (!SWIG_IsOK(ecode7)) {
19767 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
19768 }
19769 arg7 = static_cast< bool >(val7);
19770 }
19771 if (obj7) {
36ed4f51 19772 {
1bd55598
RD
19773 arg8 = &temp8;
19774 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
36ed4f51 19775 }
1bd55598
RD
19776 }
19777 {
19778 PyThreadState* __tstate = wxPyBeginAllowThreads();
19779 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
19780 wxPyEndAllowThreads(__tstate);
19781 if (PyErr_Occurred()) SWIG_fail;
19782 }
19783 {
19784 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19785 }
19786 return resultobj;
19787fail:
19788 return NULL;
19789}
19790
19791
8f514ab4
RD
19792SWIGINTERN PyObject *_wrap_DC_GetAsBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19793 PyObject *resultobj = 0;
19794 wxDC *arg1 = (wxDC *) 0 ;
19795 wxRect *arg2 = (wxRect *) NULL ;
19796 SwigValueWrapper<wxBitmap > result;
19797 void *argp1 = 0 ;
19798 int res1 = 0 ;
19799 void *argp2 = 0 ;
19800 int res2 = 0 ;
19801 PyObject * obj0 = 0 ;
19802 PyObject * obj1 = 0 ;
19803 char * kwnames[] = {
19804 (char *) "self",(char *) "subrect", NULL
19805 };
19806
19807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DC_GetAsBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
19808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19809 if (!SWIG_IsOK(res1)) {
19810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetAsBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
19811 }
19812 arg1 = reinterpret_cast< wxDC * >(argp1);
19813 if (obj1) {
19814 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
19815 if (!SWIG_IsOK(res2)) {
19816 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_GetAsBitmap" "', expected argument " "2"" of type '" "wxRect const *""'");
19817 }
19818 arg2 = reinterpret_cast< wxRect * >(argp2);
19819 }
19820 {
19821 PyThreadState* __tstate = wxPyBeginAllowThreads();
19822 result = ((wxDC const *)arg1)->GetAsBitmap((wxRect const *)arg2);
19823 wxPyEndAllowThreads(__tstate);
19824 if (PyErr_Occurred()) SWIG_fail;
19825 }
19826 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
19827 return resultobj;
19828fail:
19829 return NULL;
19830}
19831
19832
1bd55598
RD
19833SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19834 PyObject *resultobj = 0;
19835 wxDC *arg1 = (wxDC *) 0 ;
19836 int arg2 ;
19837 int arg3 ;
19838 int arg4 ;
19839 int arg5 ;
19840 void *argp1 = 0 ;
19841 int res1 = 0 ;
19842 int val2 ;
19843 int ecode2 = 0 ;
19844 int val3 ;
19845 int ecode3 = 0 ;
19846 int val4 ;
19847 int ecode4 = 0 ;
19848 int val5 ;
19849 int ecode5 = 0 ;
19850 PyObject * obj0 = 0 ;
19851 PyObject * obj1 = 0 ;
19852 PyObject * obj2 = 0 ;
19853 PyObject * obj3 = 0 ;
19854 PyObject * obj4 = 0 ;
19855 char * kwnames[] = {
19856 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19857 };
19858
19859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19861 if (!SWIG_IsOK(res1)) {
19862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19863 }
19864 arg1 = reinterpret_cast< wxDC * >(argp1);
19865 ecode2 = SWIG_AsVal_int(obj1, &val2);
19866 if (!SWIG_IsOK(ecode2)) {
19867 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
19868 }
19869 arg2 = static_cast< int >(val2);
19870 ecode3 = SWIG_AsVal_int(obj2, &val3);
19871 if (!SWIG_IsOK(ecode3)) {
19872 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
19873 }
19874 arg3 = static_cast< int >(val3);
19875 ecode4 = SWIG_AsVal_int(obj3, &val4);
19876 if (!SWIG_IsOK(ecode4)) {
19877 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
19878 }
19879 arg4 = static_cast< int >(val4);
19880 ecode5 = SWIG_AsVal_int(obj4, &val5);
19881 if (!SWIG_IsOK(ecode5)) {
19882 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
19883 }
19884 arg5 = static_cast< int >(val5);
19885 {
19886 PyThreadState* __tstate = wxPyBeginAllowThreads();
19887 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
19888 wxPyEndAllowThreads(__tstate);
19889 if (PyErr_Occurred()) SWIG_fail;
19890 }
19891 resultobj = SWIG_Py_Void();
19892 return resultobj;
19893fail:
19894 return NULL;
19895}
19896
19897
19898SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19899 PyObject *resultobj = 0;
19900 wxDC *arg1 = (wxDC *) 0 ;
19901 wxPoint *arg2 = 0 ;
19902 wxSize *arg3 = 0 ;
19903 void *argp1 = 0 ;
19904 int res1 = 0 ;
19905 wxPoint temp2 ;
19906 wxSize temp3 ;
19907 PyObject * obj0 = 0 ;
19908 PyObject * obj1 = 0 ;
19909 PyObject * obj2 = 0 ;
19910 char * kwnames[] = {
19911 (char *) "self",(char *) "pt",(char *) "sz", NULL
19912 };
19913
19914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19916 if (!SWIG_IsOK(res1)) {
19917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19918 }
19919 arg1 = reinterpret_cast< wxDC * >(argp1);
19920 {
19921 arg2 = &temp2;
19922 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19923 }
19924 {
19925 arg3 = &temp3;
19926 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19927 }
19928 {
19929 PyThreadState* __tstate = wxPyBeginAllowThreads();
19930 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
19931 wxPyEndAllowThreads(__tstate);
19932 if (PyErr_Occurred()) SWIG_fail;
19933 }
19934 resultobj = SWIG_Py_Void();
19935 return resultobj;
19936fail:
19937 return NULL;
19938}
19939
19940
19941SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19942 PyObject *resultobj = 0;
19943 wxDC *arg1 = (wxDC *) 0 ;
19944 wxRegion *arg2 = 0 ;
19945 void *argp1 = 0 ;
19946 int res1 = 0 ;
19947 void *argp2 = 0 ;
19948 int res2 = 0 ;
19949 PyObject * obj0 = 0 ;
19950 PyObject * obj1 = 0 ;
19951 char * kwnames[] = {
19952 (char *) "self",(char *) "region", NULL
19953 };
19954
19955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
19956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19957 if (!SWIG_IsOK(res1)) {
19958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19959 }
19960 arg1 = reinterpret_cast< wxDC * >(argp1);
19961 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
19962 if (!SWIG_IsOK(res2)) {
19963 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19964 }
19965 if (!argp2) {
19966 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19967 }
19968 arg2 = reinterpret_cast< wxRegion * >(argp2);
19969 {
19970 PyThreadState* __tstate = wxPyBeginAllowThreads();
19971 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
19972 wxPyEndAllowThreads(__tstate);
19973 if (PyErr_Occurred()) SWIG_fail;
19974 }
19975 resultobj = SWIG_Py_Void();
19976 return resultobj;
19977fail:
19978 return NULL;
19979}
19980
19981
19982SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19983 PyObject *resultobj = 0;
19984 wxDC *arg1 = (wxDC *) 0 ;
19985 wxRect *arg2 = 0 ;
19986 void *argp1 = 0 ;
19987 int res1 = 0 ;
19988 wxRect temp2 ;
19989 PyObject * obj0 = 0 ;
19990 PyObject * obj1 = 0 ;
19991 char * kwnames[] = {
19992 (char *) "self",(char *) "rect", NULL
19993 };
19994
19995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
19996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19997 if (!SWIG_IsOK(res1)) {
19998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
19999 }
20000 arg1 = reinterpret_cast< wxDC * >(argp1);
20001 {
20002 arg2 = &temp2;
20003 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20004 }
20005 {
20006 PyThreadState* __tstate = wxPyBeginAllowThreads();
20007 (arg1)->SetClippingRegion((wxRect const &)*arg2);
20008 wxPyEndAllowThreads(__tstate);
20009 if (PyErr_Occurred()) SWIG_fail;
20010 }
20011 resultobj = SWIG_Py_Void();
20012 return resultobj;
20013fail:
20014 return NULL;
20015}
20016
20017
20018SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20019 PyObject *resultobj = 0;
20020 wxDC *arg1 = (wxDC *) 0 ;
20021 int arg2 ;
20022 wxPoint *arg3 = (wxPoint *) 0 ;
20023 int arg4 = (int) 0 ;
20024 int arg5 = (int) 0 ;
20025 void *argp1 = 0 ;
20026 int res1 = 0 ;
20027 int val4 ;
20028 int ecode4 = 0 ;
20029 int val5 ;
20030 int ecode5 = 0 ;
20031 PyObject * obj0 = 0 ;
20032 PyObject * obj1 = 0 ;
20033 PyObject * obj2 = 0 ;
20034 PyObject * obj3 = 0 ;
20035 char * kwnames[] = {
20036 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
20037 };
20038
20039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20041 if (!SWIG_IsOK(res1)) {
20042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
20043 }
20044 arg1 = reinterpret_cast< wxDC * >(argp1);
20045 {
20046 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20047 if (arg3 == NULL) SWIG_fail;
20048 }
20049 if (obj2) {
20050 ecode4 = SWIG_AsVal_int(obj2, &val4);
20051 if (!SWIG_IsOK(ecode4)) {
20052 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
20053 }
20054 arg4 = static_cast< int >(val4);
20055 }
20056 if (obj3) {
20057 ecode5 = SWIG_AsVal_int(obj3, &val5);
20058 if (!SWIG_IsOK(ecode5)) {
20059 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
20060 }
20061 arg5 = static_cast< int >(val5);
20062 }
20063 {
20064 PyThreadState* __tstate = wxPyBeginAllowThreads();
20065 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
20066 wxPyEndAllowThreads(__tstate);
20067 if (PyErr_Occurred()) SWIG_fail;
20068 }
20069 resultobj = SWIG_Py_Void();
20070 {
20071 if (arg3) delete [] arg3;
20072 }
20073 return resultobj;
20074fail:
20075 {
20076 if (arg3) delete [] arg3;
20077 }
20078 return NULL;
20079}
20080
20081
20082SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20083 PyObject *resultobj = 0;
20084 wxDC *arg1 = (wxDC *) 0 ;
20085 int arg2 ;
20086 wxPoint *arg3 = (wxPoint *) 0 ;
20087 int arg4 = (int) 0 ;
20088 int arg5 = (int) 0 ;
20089 int arg6 = (int) wxODDEVEN_RULE ;
20090 void *argp1 = 0 ;
20091 int res1 = 0 ;
20092 int val4 ;
20093 int ecode4 = 0 ;
20094 int val5 ;
20095 int ecode5 = 0 ;
20096 int val6 ;
20097 int ecode6 = 0 ;
20098 PyObject * obj0 = 0 ;
20099 PyObject * obj1 = 0 ;
20100 PyObject * obj2 = 0 ;
20101 PyObject * obj3 = 0 ;
20102 PyObject * obj4 = 0 ;
20103 char * kwnames[] = {
20104 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
20105 };
20106
20107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20109 if (!SWIG_IsOK(res1)) {
20110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
20111 }
20112 arg1 = reinterpret_cast< wxDC * >(argp1);
20113 {
20114 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20115 if (arg3 == NULL) SWIG_fail;
20116 }
20117 if (obj2) {
20118 ecode4 = SWIG_AsVal_int(obj2, &val4);
20119 if (!SWIG_IsOK(ecode4)) {
20120 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
20121 }
20122 arg4 = static_cast< int >(val4);
20123 }
20124 if (obj3) {
20125 ecode5 = SWIG_AsVal_int(obj3, &val5);
20126 if (!SWIG_IsOK(ecode5)) {
20127 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
20128 }
20129 arg5 = static_cast< int >(val5);
20130 }
20131 if (obj4) {
20132 ecode6 = SWIG_AsVal_int(obj4, &val6);
20133 if (!SWIG_IsOK(ecode6)) {
20134 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
20135 }
20136 arg6 = static_cast< int >(val6);
20137 }
20138 {
20139 PyThreadState* __tstate = wxPyBeginAllowThreads();
20140 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
20141 wxPyEndAllowThreads(__tstate);
20142 if (PyErr_Occurred()) SWIG_fail;
20143 }
20144 resultobj = SWIG_Py_Void();
20145 {
20146 if (arg3) delete [] arg3;
20147 }
20148 return resultobj;
20149fail:
20150 {
20151 if (arg3) delete [] arg3;
20152 }
20153 return NULL;
20154}
20155
20156
20157SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20158 PyObject *resultobj = 0;
20159 wxDC *arg1 = (wxDC *) 0 ;
20160 wxString *arg2 = 0 ;
20161 wxRect *arg3 = 0 ;
20162 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20163 int arg5 = (int) -1 ;
20164 void *argp1 = 0 ;
20165 int res1 = 0 ;
20166 bool temp2 = false ;
20167 wxRect temp3 ;
20168 int val4 ;
20169 int ecode4 = 0 ;
20170 int val5 ;
20171 int ecode5 = 0 ;
20172 PyObject * obj0 = 0 ;
20173 PyObject * obj1 = 0 ;
20174 PyObject * obj2 = 0 ;
20175 PyObject * obj3 = 0 ;
20176 PyObject * obj4 = 0 ;
20177 char * kwnames[] = {
20178 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20179 };
20180
20181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20183 if (!SWIG_IsOK(res1)) {
20184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20185 }
20186 arg1 = reinterpret_cast< wxDC * >(argp1);
20187 {
20188 arg2 = wxString_in_helper(obj1);
20189 if (arg2 == NULL) SWIG_fail;
20190 temp2 = true;
20191 }
20192 {
20193 arg3 = &temp3;
20194 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20195 }
20196 if (obj3) {
20197 ecode4 = SWIG_AsVal_int(obj3, &val4);
20198 if (!SWIG_IsOK(ecode4)) {
20199 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20200 }
20201 arg4 = static_cast< int >(val4);
20202 }
20203 if (obj4) {
20204 ecode5 = SWIG_AsVal_int(obj4, &val5);
20205 if (!SWIG_IsOK(ecode5)) {
20206 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20207 }
20208 arg5 = static_cast< int >(val5);
20209 }
20210 {
20211 PyThreadState* __tstate = wxPyBeginAllowThreads();
20212 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20213 wxPyEndAllowThreads(__tstate);
20214 if (PyErr_Occurred()) SWIG_fail;
20215 }
20216 resultobj = SWIG_Py_Void();
20217 {
20218 if (temp2)
20219 delete arg2;
20220 }
20221 return resultobj;
20222fail:
20223 {
20224 if (temp2)
20225 delete arg2;
20226 }
20227 return NULL;
20228}
20229
20230
20231SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20232 PyObject *resultobj = 0;
20233 wxDC *arg1 = (wxDC *) 0 ;
20234 wxString *arg2 = 0 ;
20235 wxBitmap *arg3 = 0 ;
20236 wxRect *arg4 = 0 ;
20237 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20238 int arg6 = (int) -1 ;
20239 wxRect result;
20240 void *argp1 = 0 ;
20241 int res1 = 0 ;
20242 bool temp2 = false ;
20243 void *argp3 = 0 ;
20244 int res3 = 0 ;
20245 wxRect temp4 ;
20246 int val5 ;
20247 int ecode5 = 0 ;
20248 int val6 ;
20249 int ecode6 = 0 ;
20250 PyObject * obj0 = 0 ;
20251 PyObject * obj1 = 0 ;
20252 PyObject * obj2 = 0 ;
20253 PyObject * obj3 = 0 ;
20254 PyObject * obj4 = 0 ;
20255 PyObject * obj5 = 0 ;
20256 char * kwnames[] = {
20257 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20258 };
20259
20260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20262 if (!SWIG_IsOK(res1)) {
20263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20264 }
20265 arg1 = reinterpret_cast< wxDC * >(argp1);
20266 {
20267 arg2 = wxString_in_helper(obj1);
20268 if (arg2 == NULL) SWIG_fail;
20269 temp2 = true;
20270 }
20271 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20272 if (!SWIG_IsOK(res3)) {
20273 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20274 }
20275 if (!argp3) {
20276 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20277 }
20278 arg3 = reinterpret_cast< wxBitmap * >(argp3);
20279 {
20280 arg4 = &temp4;
20281 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
20282 }
20283 if (obj4) {
20284 ecode5 = SWIG_AsVal_int(obj4, &val5);
20285 if (!SWIG_IsOK(ecode5)) {
20286 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
20287 }
20288 arg5 = static_cast< int >(val5);
20289 }
20290 if (obj5) {
20291 ecode6 = SWIG_AsVal_int(obj5, &val6);
20292 if (!SWIG_IsOK(ecode6)) {
20293 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
20294 }
20295 arg6 = static_cast< int >(val6);
20296 }
20297 {
20298 PyThreadState* __tstate = wxPyBeginAllowThreads();
20299 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
20300 wxPyEndAllowThreads(__tstate);
20301 if (PyErr_Occurred()) SWIG_fail;
20302 }
20303 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20304 {
20305 if (temp2)
20306 delete arg2;
20307 }
20308 return resultobj;
20309fail:
20310 {
20311 if (temp2)
20312 delete arg2;
20313 }
20314 return NULL;
20315}
20316
20317
20318SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20319 PyObject *resultobj = 0;
20320 wxDC *arg1 = (wxDC *) 0 ;
20321 int arg2 ;
20322 wxPoint *arg3 = (wxPoint *) 0 ;
20323 void *argp1 = 0 ;
20324 int res1 = 0 ;
20325 PyObject * obj0 = 0 ;
20326 PyObject * obj1 = 0 ;
20327 char * kwnames[] = {
20328 (char *) "self",(char *) "points", NULL
20329 };
20330
20331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
20332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20333 if (!SWIG_IsOK(res1)) {
20334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
20335 }
20336 arg1 = reinterpret_cast< wxDC * >(argp1);
20337 {
20338 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20339 if (arg3 == NULL) SWIG_fail;
20340 }
20341 {
20342 PyThreadState* __tstate = wxPyBeginAllowThreads();
20343 (arg1)->DrawSpline(arg2,arg3);
20344 wxPyEndAllowThreads(__tstate);
20345 if (PyErr_Occurred()) SWIG_fail;
20346 }
20347 resultobj = SWIG_Py_Void();
20348 {
20349 if (arg3) delete [] arg3;
20350 }
20351 return resultobj;
20352fail:
20353 {
20354 if (arg3) delete [] arg3;
20355 }
20356 return NULL;
20357}
20358
20359
20360SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20361 PyObject *resultobj = 0;
20362 wxDC *arg1 = (wxDC *) 0 ;
20363 void *argp1 = 0 ;
20364 int res1 = 0 ;
20365 PyObject *swig_obj[1] ;
20366
20367 if (!args) SWIG_fail;
20368 swig_obj[0] = args;
20369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20370 if (!SWIG_IsOK(res1)) {
20371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20372 }
20373 arg1 = reinterpret_cast< wxDC * >(argp1);
20374 {
20375 PyThreadState* __tstate = wxPyBeginAllowThreads();
20376 (arg1)->Clear();
20377 wxPyEndAllowThreads(__tstate);
20378 if (PyErr_Occurred()) SWIG_fail;
20379 }
20380 resultobj = SWIG_Py_Void();
20381 return resultobj;
20382fail:
20383 return NULL;
20384}
20385
20386
20387SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20388 PyObject *resultobj = 0;
20389 wxDC *arg1 = (wxDC *) 0 ;
20390 wxString *arg2 = 0 ;
20391 bool result;
20392 void *argp1 = 0 ;
20393 int res1 = 0 ;
20394 bool temp2 = false ;
20395 PyObject * obj0 = 0 ;
20396 PyObject * obj1 = 0 ;
20397 char * kwnames[] = {
20398 (char *) "self",(char *) "message", NULL
20399 };
20400
20401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20403 if (!SWIG_IsOK(res1)) {
20404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20405 }
20406 arg1 = reinterpret_cast< wxDC * >(argp1);
20407 {
20408 arg2 = wxString_in_helper(obj1);
20409 if (arg2 == NULL) SWIG_fail;
20410 temp2 = true;
20411 }
20412 {
20413 PyThreadState* __tstate = wxPyBeginAllowThreads();
20414 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20415 wxPyEndAllowThreads(__tstate);
20416 if (PyErr_Occurred()) SWIG_fail;
20417 }
20418 {
20419 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20420 }
20421 {
20422 if (temp2)
20423 delete arg2;
20424 }
20425 return resultobj;
20426fail:
20427 {
20428 if (temp2)
20429 delete arg2;
20430 }
20431 return NULL;
20432}
20433
20434
20435SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20436 PyObject *resultobj = 0;
20437 wxDC *arg1 = (wxDC *) 0 ;
20438 void *argp1 = 0 ;
20439 int res1 = 0 ;
20440 PyObject *swig_obj[1] ;
20441
20442 if (!args) SWIG_fail;
20443 swig_obj[0] = args;
20444 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20445 if (!SWIG_IsOK(res1)) {
20446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20447 }
20448 arg1 = reinterpret_cast< wxDC * >(argp1);
20449 {
20450 PyThreadState* __tstate = wxPyBeginAllowThreads();
20451 (arg1)->EndDoc();
20452 wxPyEndAllowThreads(__tstate);
20453 if (PyErr_Occurred()) SWIG_fail;
20454 }
20455 resultobj = SWIG_Py_Void();
20456 return resultobj;
20457fail:
20458 return NULL;
20459}
20460
20461
20462SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20463 PyObject *resultobj = 0;
20464 wxDC *arg1 = (wxDC *) 0 ;
20465 void *argp1 = 0 ;
20466 int res1 = 0 ;
20467 PyObject *swig_obj[1] ;
20468
20469 if (!args) SWIG_fail;
20470 swig_obj[0] = args;
20471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20472 if (!SWIG_IsOK(res1)) {
20473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20474 }
20475 arg1 = reinterpret_cast< wxDC * >(argp1);
20476 {
20477 PyThreadState* __tstate = wxPyBeginAllowThreads();
20478 (arg1)->StartPage();
20479 wxPyEndAllowThreads(__tstate);
20480 if (PyErr_Occurred()) SWIG_fail;
20481 }
20482 resultobj = SWIG_Py_Void();
20483 return resultobj;
20484fail:
20485 return NULL;
20486}
20487
20488
20489SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20490 PyObject *resultobj = 0;
20491 wxDC *arg1 = (wxDC *) 0 ;
20492 void *argp1 = 0 ;
20493 int res1 = 0 ;
20494 PyObject *swig_obj[1] ;
20495
20496 if (!args) SWIG_fail;
20497 swig_obj[0] = args;
20498 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20499 if (!SWIG_IsOK(res1)) {
20500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20501 }
20502 arg1 = reinterpret_cast< wxDC * >(argp1);
20503 {
20504 PyThreadState* __tstate = wxPyBeginAllowThreads();
20505 (arg1)->EndPage();
20506 wxPyEndAllowThreads(__tstate);
20507 if (PyErr_Occurred()) SWIG_fail;
20508 }
20509 resultobj = SWIG_Py_Void();
20510 return resultobj;
20511fail:
20512 return NULL;
20513}
20514
20515
20516SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20517 PyObject *resultobj = 0;
20518 wxDC *arg1 = (wxDC *) 0 ;
20519 wxFont *arg2 = 0 ;
20520 void *argp1 = 0 ;
20521 int res1 = 0 ;
20522 void *argp2 = 0 ;
20523 int res2 = 0 ;
20524 PyObject * obj0 = 0 ;
20525 PyObject * obj1 = 0 ;
20526 char * kwnames[] = {
20527 (char *) "self",(char *) "font", NULL
20528 };
20529
20530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20532 if (!SWIG_IsOK(res1)) {
20533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20534 }
20535 arg1 = reinterpret_cast< wxDC * >(argp1);
20536 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20537 if (!SWIG_IsOK(res2)) {
20538 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20539 }
20540 if (!argp2) {
20541 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20542 }
20543 arg2 = reinterpret_cast< wxFont * >(argp2);
20544 {
20545 PyThreadState* __tstate = wxPyBeginAllowThreads();
20546 (arg1)->SetFont((wxFont const &)*arg2);
20547 wxPyEndAllowThreads(__tstate);
20548 if (PyErr_Occurred()) SWIG_fail;
20549 }
20550 resultobj = SWIG_Py_Void();
20551 return resultobj;
20552fail:
20553 return NULL;
20554}
20555
20556
20557SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20558 PyObject *resultobj = 0;
20559 wxDC *arg1 = (wxDC *) 0 ;
20560 wxPen *arg2 = 0 ;
20561 void *argp1 = 0 ;
20562 int res1 = 0 ;
20563 void *argp2 = 0 ;
20564 int res2 = 0 ;
20565 PyObject * obj0 = 0 ;
20566 PyObject * obj1 = 0 ;
20567 char * kwnames[] = {
20568 (char *) "self",(char *) "pen", NULL
20569 };
20570
20571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20573 if (!SWIG_IsOK(res1)) {
20574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20575 }
20576 arg1 = reinterpret_cast< wxDC * >(argp1);
20577 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20578 if (!SWIG_IsOK(res2)) {
20579 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20580 }
20581 if (!argp2) {
20582 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20583 }
20584 arg2 = reinterpret_cast< wxPen * >(argp2);
20585 {
20586 PyThreadState* __tstate = wxPyBeginAllowThreads();
20587 (arg1)->SetPen((wxPen const &)*arg2);
20588 wxPyEndAllowThreads(__tstate);
20589 if (PyErr_Occurred()) SWIG_fail;
20590 }
20591 resultobj = SWIG_Py_Void();
20592 return resultobj;
20593fail:
20594 return NULL;
20595}
20596
20597
20598SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20599 PyObject *resultobj = 0;
20600 wxDC *arg1 = (wxDC *) 0 ;
20601 wxBrush *arg2 = 0 ;
20602 void *argp1 = 0 ;
20603 int res1 = 0 ;
20604 void *argp2 = 0 ;
20605 int res2 = 0 ;
20606 PyObject * obj0 = 0 ;
20607 PyObject * obj1 = 0 ;
20608 char * kwnames[] = {
20609 (char *) "self",(char *) "brush", NULL
20610 };
20611
20612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20614 if (!SWIG_IsOK(res1)) {
20615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20616 }
20617 arg1 = reinterpret_cast< wxDC * >(argp1);
20618 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20619 if (!SWIG_IsOK(res2)) {
20620 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20621 }
20622 if (!argp2) {
20623 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20624 }
20625 arg2 = reinterpret_cast< wxBrush * >(argp2);
20626 {
20627 PyThreadState* __tstate = wxPyBeginAllowThreads();
20628 (arg1)->SetBrush((wxBrush const &)*arg2);
20629 wxPyEndAllowThreads(__tstate);
20630 if (PyErr_Occurred()) SWIG_fail;
20631 }
20632 resultobj = SWIG_Py_Void();
20633 return resultobj;
20634fail:
20635 return NULL;
20636}
20637
20638
20639SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20640 PyObject *resultobj = 0;
20641 wxDC *arg1 = (wxDC *) 0 ;
20642 wxBrush *arg2 = 0 ;
20643 void *argp1 = 0 ;
20644 int res1 = 0 ;
20645 void *argp2 = 0 ;
20646 int res2 = 0 ;
20647 PyObject * obj0 = 0 ;
20648 PyObject * obj1 = 0 ;
20649 char * kwnames[] = {
20650 (char *) "self",(char *) "brush", NULL
20651 };
20652
20653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20655 if (!SWIG_IsOK(res1)) {
20656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20657 }
20658 arg1 = reinterpret_cast< wxDC * >(argp1);
20659 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20660 if (!SWIG_IsOK(res2)) {
20661 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20662 }
20663 if (!argp2) {
20664 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20665 }
20666 arg2 = reinterpret_cast< wxBrush * >(argp2);
20667 {
20668 PyThreadState* __tstate = wxPyBeginAllowThreads();
20669 (arg1)->SetBackground((wxBrush const &)*arg2);
20670 wxPyEndAllowThreads(__tstate);
20671 if (PyErr_Occurred()) SWIG_fail;
20672 }
20673 resultobj = SWIG_Py_Void();
20674 return resultobj;
20675fail:
20676 return NULL;
20677}
20678
20679
20680SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20681 PyObject *resultobj = 0;
20682 wxDC *arg1 = (wxDC *) 0 ;
20683 int arg2 ;
20684 void *argp1 = 0 ;
20685 int res1 = 0 ;
20686 int val2 ;
20687 int ecode2 = 0 ;
20688 PyObject * obj0 = 0 ;
20689 PyObject * obj1 = 0 ;
20690 char * kwnames[] = {
20691 (char *) "self",(char *) "mode", NULL
20692 };
20693
20694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
20695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20696 if (!SWIG_IsOK(res1)) {
20697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
20698 }
20699 arg1 = reinterpret_cast< wxDC * >(argp1);
20700 ecode2 = SWIG_AsVal_int(obj1, &val2);
20701 if (!SWIG_IsOK(ecode2)) {
20702 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
20703 }
20704 arg2 = static_cast< int >(val2);
20705 {
20706 PyThreadState* __tstate = wxPyBeginAllowThreads();
20707 (arg1)->SetBackgroundMode(arg2);
20708 wxPyEndAllowThreads(__tstate);
20709 if (PyErr_Occurred()) SWIG_fail;
20710 }
20711 resultobj = SWIG_Py_Void();
20712 return resultobj;
20713fail:
20714 return NULL;
20715}
20716
20717
20718SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20719 PyObject *resultobj = 0;
20720 wxDC *arg1 = (wxDC *) 0 ;
20721 wxPalette *arg2 = 0 ;
20722 void *argp1 = 0 ;
20723 int res1 = 0 ;
20724 void *argp2 = 0 ;
20725 int res2 = 0 ;
20726 PyObject * obj0 = 0 ;
20727 PyObject * obj1 = 0 ;
20728 char * kwnames[] = {
20729 (char *) "self",(char *) "palette", NULL
20730 };
20731
20732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
20733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20734 if (!SWIG_IsOK(res1)) {
20735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
20736 }
20737 arg1 = reinterpret_cast< wxDC * >(argp1);
20738 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
20739 if (!SWIG_IsOK(res2)) {
20740 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20741 }
20742 if (!argp2) {
20743 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20744 }
20745 arg2 = reinterpret_cast< wxPalette * >(argp2);
20746 {
20747 PyThreadState* __tstate = wxPyBeginAllowThreads();
20748 (arg1)->SetPalette((wxPalette const &)*arg2);
20749 wxPyEndAllowThreads(__tstate);
20750 if (PyErr_Occurred()) SWIG_fail;
20751 }
20752 resultobj = SWIG_Py_Void();
20753 return resultobj;
20754fail:
20755 return NULL;
20756}
20757
20758
20759SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20760 PyObject *resultobj = 0;
20761 wxDC *arg1 = (wxDC *) 0 ;
20762 void *argp1 = 0 ;
20763 int res1 = 0 ;
20764 PyObject *swig_obj[1] ;
20765
20766 if (!args) SWIG_fail;
20767 swig_obj[0] = args;
20768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20769 if (!SWIG_IsOK(res1)) {
20770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20771 }
20772 arg1 = reinterpret_cast< wxDC * >(argp1);
20773 {
20774 PyThreadState* __tstate = wxPyBeginAllowThreads();
20775 (arg1)->DestroyClippingRegion();
20776 wxPyEndAllowThreads(__tstate);
20777 if (PyErr_Occurred()) SWIG_fail;
20778 }
20779 resultobj = SWIG_Py_Void();
20780 return resultobj;
20781fail:
20782 return NULL;
20783}
20784
20785
20786SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20787 PyObject *resultobj = 0;
20788 wxDC *arg1 = (wxDC *) 0 ;
20789 int *arg2 = (int *) 0 ;
20790 int *arg3 = (int *) 0 ;
20791 int *arg4 = (int *) 0 ;
20792 int *arg5 = (int *) 0 ;
20793 void *argp1 = 0 ;
20794 int res1 = 0 ;
20795 int temp2 ;
20796 int res2 = SWIG_TMPOBJ ;
20797 int temp3 ;
20798 int res3 = SWIG_TMPOBJ ;
20799 int temp4 ;
20800 int res4 = SWIG_TMPOBJ ;
20801 int temp5 ;
20802 int res5 = SWIG_TMPOBJ ;
20803 PyObject *swig_obj[1] ;
20804
20805 arg2 = &temp2;
20806 arg3 = &temp3;
20807 arg4 = &temp4;
20808 arg5 = &temp5;
20809 if (!args) SWIG_fail;
20810 swig_obj[0] = args;
20811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20812 if (!SWIG_IsOK(res1)) {
20813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
20814 }
20815 arg1 = reinterpret_cast< wxDC * >(argp1);
20816 {
20817 PyThreadState* __tstate = wxPyBeginAllowThreads();
20818 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
20819 wxPyEndAllowThreads(__tstate);
20820 if (PyErr_Occurred()) SWIG_fail;
20821 }
20822 resultobj = SWIG_Py_Void();
20823 if (SWIG_IsTmpObj(res2)) {
20824 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20825 } else {
20826 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20827 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20828 }
20829 if (SWIG_IsTmpObj(res3)) {
20830 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20831 } else {
20832 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20833 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20834 }
20835 if (SWIG_IsTmpObj(res4)) {
20836 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20837 } else {
20838 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20839 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20840 }
20841 if (SWIG_IsTmpObj(res5)) {
20842 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20843 } else {
20844 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20845 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20846 }
20847 return resultobj;
20848fail:
20849 return NULL;
20850}
20851
20852
20853SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20854 PyObject *resultobj = 0;
20855 wxDC *arg1 = (wxDC *) 0 ;
20856 wxRect result;
20857 void *argp1 = 0 ;
20858 int res1 = 0 ;
20859 PyObject *swig_obj[1] ;
20860
20861 if (!args) SWIG_fail;
20862 swig_obj[0] = args;
20863 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20864 if (!SWIG_IsOK(res1)) {
20865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20866 }
20867 arg1 = reinterpret_cast< wxDC * >(argp1);
20868 {
20869 PyThreadState* __tstate = wxPyBeginAllowThreads();
20870 result = wxDC_GetClippingRect(arg1);
20871 wxPyEndAllowThreads(__tstate);
20872 if (PyErr_Occurred()) SWIG_fail;
20873 }
20874 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20875 return resultobj;
20876fail:
20877 return NULL;
20878}
20879
20880
20881SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20882 PyObject *resultobj = 0;
20883 wxDC *arg1 = (wxDC *) 0 ;
20884 int result;
20885 void *argp1 = 0 ;
20886 int res1 = 0 ;
20887 PyObject *swig_obj[1] ;
20888
20889 if (!args) SWIG_fail;
20890 swig_obj[0] = args;
20891 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20892 if (!SWIG_IsOK(res1)) {
20893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
20894 }
20895 arg1 = reinterpret_cast< wxDC * >(argp1);
20896 {
20897 PyThreadState* __tstate = wxPyBeginAllowThreads();
20898 result = (int)((wxDC const *)arg1)->GetCharHeight();
20899 wxPyEndAllowThreads(__tstate);
20900 if (PyErr_Occurred()) SWIG_fail;
20901 }
20902 resultobj = SWIG_From_int(static_cast< int >(result));
20903 return resultobj;
20904fail:
20905 return NULL;
20906}
20907
20908
20909SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20910 PyObject *resultobj = 0;
20911 wxDC *arg1 = (wxDC *) 0 ;
20912 int result;
20913 void *argp1 = 0 ;
20914 int res1 = 0 ;
20915 PyObject *swig_obj[1] ;
20916
20917 if (!args) SWIG_fail;
20918 swig_obj[0] = args;
20919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20920 if (!SWIG_IsOK(res1)) {
20921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
20922 }
20923 arg1 = reinterpret_cast< wxDC * >(argp1);
20924 {
20925 PyThreadState* __tstate = wxPyBeginAllowThreads();
20926 result = (int)((wxDC const *)arg1)->GetCharWidth();
20927 wxPyEndAllowThreads(__tstate);
20928 if (PyErr_Occurred()) SWIG_fail;
20929 }
20930 resultobj = SWIG_From_int(static_cast< int >(result));
20931 return resultobj;
20932fail:
20933 return NULL;
20934}
20935
20936
20937SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20938 PyObject *resultobj = 0;
20939 wxDC *arg1 = (wxDC *) 0 ;
20940 wxString *arg2 = 0 ;
20941 int *arg3 = (int *) 0 ;
20942 int *arg4 = (int *) 0 ;
20943 void *argp1 = 0 ;
20944 int res1 = 0 ;
20945 bool temp2 = false ;
20946 int temp3 ;
20947 int res3 = SWIG_TMPOBJ ;
20948 int temp4 ;
20949 int res4 = SWIG_TMPOBJ ;
20950 PyObject * obj0 = 0 ;
20951 PyObject * obj1 = 0 ;
20952 char * kwnames[] = {
20953 (char *) "self",(char *) "string", NULL
20954 };
20955
20956 arg3 = &temp3;
20957 arg4 = &temp4;
20958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
20959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20960 if (!SWIG_IsOK(res1)) {
20961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20962 }
20963 arg1 = reinterpret_cast< wxDC * >(argp1);
20964 {
20965 arg2 = wxString_in_helper(obj1);
20966 if (arg2 == NULL) SWIG_fail;
20967 temp2 = true;
20968 }
20969 {
20970 PyThreadState* __tstate = wxPyBeginAllowThreads();
20971 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
20972 wxPyEndAllowThreads(__tstate);
20973 if (PyErr_Occurred()) SWIG_fail;
20974 }
20975 resultobj = SWIG_Py_Void();
20976 if (SWIG_IsTmpObj(res3)) {
20977 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20978 } else {
20979 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20980 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20981 }
20982 if (SWIG_IsTmpObj(res4)) {
20983 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20984 } else {
20985 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20986 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20987 }
20988 {
20989 if (temp2)
20990 delete arg2;
20991 }
20992 return resultobj;
20993fail:
20994 {
20995 if (temp2)
20996 delete arg2;
20997 }
20998 return NULL;
20999}
21000
21001
21002SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21003 PyObject *resultobj = 0;
21004 wxDC *arg1 = (wxDC *) 0 ;
21005 wxString *arg2 = 0 ;
21006 int *arg3 = (int *) 0 ;
21007 int *arg4 = (int *) 0 ;
21008 int *arg5 = (int *) 0 ;
21009 int *arg6 = (int *) 0 ;
21010 wxFont *arg7 = (wxFont *) NULL ;
21011 void *argp1 = 0 ;
21012 int res1 = 0 ;
21013 bool temp2 = false ;
21014 int temp3 ;
21015 int res3 = SWIG_TMPOBJ ;
21016 int temp4 ;
21017 int res4 = SWIG_TMPOBJ ;
21018 int temp5 ;
21019 int res5 = SWIG_TMPOBJ ;
21020 int temp6 ;
21021 int res6 = SWIG_TMPOBJ ;
21022 void *argp7 = 0 ;
21023 int res7 = 0 ;
21024 PyObject * obj0 = 0 ;
21025 PyObject * obj1 = 0 ;
21026 PyObject * obj2 = 0 ;
21027 char * kwnames[] = {
21028 (char *) "self",(char *) "string",(char *) "font", NULL
21029 };
21030
21031 arg3 = &temp3;
21032 arg4 = &temp4;
21033 arg5 = &temp5;
21034 arg6 = &temp6;
21035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21037 if (!SWIG_IsOK(res1)) {
21038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21039 }
21040 arg1 = reinterpret_cast< wxDC * >(argp1);
21041 {
21042 arg2 = wxString_in_helper(obj1);
21043 if (arg2 == NULL) SWIG_fail;
21044 temp2 = true;
21045 }
21046 if (obj2) {
21047 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
21048 if (!SWIG_IsOK(res7)) {
21049 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
36ed4f51 21050 }
1bd55598
RD
21051 arg7 = reinterpret_cast< wxFont * >(argp7);
21052 }
21053 {
21054 PyThreadState* __tstate = wxPyBeginAllowThreads();
21055 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
21056 wxPyEndAllowThreads(__tstate);
21057 if (PyErr_Occurred()) SWIG_fail;
21058 }
21059 resultobj = SWIG_Py_Void();
21060 if (SWIG_IsTmpObj(res3)) {
21061 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21062 } else {
21063 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21064 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21065 }
21066 if (SWIG_IsTmpObj(res4)) {
21067 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21068 } else {
21069 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21070 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21071 }
21072 if (SWIG_IsTmpObj(res5)) {
21073 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21074 } else {
21075 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21076 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21077 }
21078 if (SWIG_IsTmpObj(res6)) {
21079 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
21080 } else {
21081 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21082 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
21083 }
21084 {
21085 if (temp2)
21086 delete arg2;
21087 }
21088 return resultobj;
21089fail:
21090 {
21091 if (temp2)
21092 delete arg2;
21093 }
21094 return NULL;
21095}
21096
21097
21098SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21099 PyObject *resultobj = 0;
21100 wxDC *arg1 = (wxDC *) 0 ;
21101 wxString *arg2 = 0 ;
21102 int *arg3 = (int *) 0 ;
21103 int *arg4 = (int *) 0 ;
21104 int *arg5 = (int *) 0 ;
21105 wxFont *arg6 = (wxFont *) NULL ;
21106 void *argp1 = 0 ;
21107 int res1 = 0 ;
21108 bool temp2 = false ;
21109 int temp3 ;
21110 int res3 = SWIG_TMPOBJ ;
21111 int temp4 ;
21112 int res4 = SWIG_TMPOBJ ;
21113 int temp5 ;
21114 int res5 = SWIG_TMPOBJ ;
21115 void *argp6 = 0 ;
21116 int res6 = 0 ;
21117 PyObject * obj0 = 0 ;
21118 PyObject * obj1 = 0 ;
21119 PyObject * obj2 = 0 ;
21120 char * kwnames[] = {
21121 (char *) "self",(char *) "text",(char *) "font", NULL
21122 };
21123
21124 arg3 = &temp3;
21125 arg4 = &temp4;
21126 arg5 = &temp5;
21127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21129 if (!SWIG_IsOK(res1)) {
21130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21131 }
21132 arg1 = reinterpret_cast< wxDC * >(argp1);
21133 {
21134 arg2 = wxString_in_helper(obj1);
21135 if (arg2 == NULL) SWIG_fail;
21136 temp2 = true;
21137 }
21138 if (obj2) {
21139 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
21140 if (!SWIG_IsOK(res6)) {
21141 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
36ed4f51 21142 }
1bd55598
RD
21143 arg6 = reinterpret_cast< wxFont * >(argp6);
21144 }
21145 {
21146 PyThreadState* __tstate = wxPyBeginAllowThreads();
21147 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
21148 wxPyEndAllowThreads(__tstate);
21149 if (PyErr_Occurred()) SWIG_fail;
21150 }
21151 resultobj = SWIG_Py_Void();
21152 if (SWIG_IsTmpObj(res3)) {
21153 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21154 } else {
21155 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21156 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21157 }
21158 if (SWIG_IsTmpObj(res4)) {
21159 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21160 } else {
21161 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21162 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21163 }
21164 if (SWIG_IsTmpObj(res5)) {
21165 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21166 } else {
21167 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21168 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21169 }
21170 {
21171 if (temp2)
21172 delete arg2;
21173 }
21174 return resultobj;
21175fail:
21176 {
21177 if (temp2)
21178 delete arg2;
21179 }
21180 return NULL;
21181}
21182
21183
21184SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21185 PyObject *resultobj = 0;
21186 wxDC *arg1 = (wxDC *) 0 ;
21187 wxString *arg2 = 0 ;
21188 wxArrayInt result;
21189 void *argp1 = 0 ;
21190 int res1 = 0 ;
21191 bool temp2 = false ;
21192 PyObject * obj0 = 0 ;
21193 PyObject * obj1 = 0 ;
21194 char * kwnames[] = {
21195 (char *) "self",(char *) "text", NULL
21196 };
21197
21198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21200 if (!SWIG_IsOK(res1)) {
21201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21202 }
21203 arg1 = reinterpret_cast< wxDC * >(argp1);
21204 {
21205 arg2 = wxString_in_helper(obj1);
21206 if (arg2 == NULL) SWIG_fail;
21207 temp2 = true;
21208 }
21209 {
21210 PyThreadState* __tstate = wxPyBeginAllowThreads();
21211 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21212 wxPyEndAllowThreads(__tstate);
21213 if (PyErr_Occurred()) SWIG_fail;
21214 }
21215 {
b39fe951 21216 resultobj = wxArrayInt2PyList_helper(result);
1bd55598
RD
21217 }
21218 {
21219 if (temp2)
21220 delete arg2;
21221 }
21222 return resultobj;
21223fail:
21224 {
21225 if (temp2)
21226 delete arg2;
21227 }
21228 return NULL;
21229}
21230
21231
21232SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21233 PyObject *resultobj = 0;
21234 wxDC *arg1 = (wxDC *) 0 ;
21235 wxSize result;
21236 void *argp1 = 0 ;
21237 int res1 = 0 ;
21238 PyObject *swig_obj[1] ;
21239
21240 if (!args) SWIG_fail;
21241 swig_obj[0] = args;
21242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21243 if (!SWIG_IsOK(res1)) {
21244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21245 }
21246 arg1 = reinterpret_cast< wxDC * >(argp1);
21247 {
21248 PyThreadState* __tstate = wxPyBeginAllowThreads();
21249 result = (arg1)->GetSize();
21250 wxPyEndAllowThreads(__tstate);
21251 if (PyErr_Occurred()) SWIG_fail;
21252 }
21253 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21254 return resultobj;
21255fail:
21256 return NULL;
21257}
21258
21259
21260SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21261 PyObject *resultobj = 0;
21262 wxDC *arg1 = (wxDC *) 0 ;
21263 int *arg2 = (int *) 0 ;
21264 int *arg3 = (int *) 0 ;
21265 void *argp1 = 0 ;
21266 int res1 = 0 ;
21267 int temp2 ;
21268 int res2 = SWIG_TMPOBJ ;
21269 int temp3 ;
21270 int res3 = SWIG_TMPOBJ ;
21271 PyObject *swig_obj[1] ;
21272
21273 arg2 = &temp2;
21274 arg3 = &temp3;
21275 if (!args) SWIG_fail;
21276 swig_obj[0] = args;
21277 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21278 if (!SWIG_IsOK(res1)) {
21279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
21280 }
21281 arg1 = reinterpret_cast< wxDC * >(argp1);
21282 {
21283 PyThreadState* __tstate = wxPyBeginAllowThreads();
21284 (arg1)->GetSize(arg2,arg3);
21285 wxPyEndAllowThreads(__tstate);
21286 if (PyErr_Occurred()) SWIG_fail;
21287 }
21288 resultobj = SWIG_Py_Void();
21289 if (SWIG_IsTmpObj(res2)) {
21290 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21291 } else {
21292 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21293 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21294 }
21295 if (SWIG_IsTmpObj(res3)) {
21296 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21297 } else {
21298 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21299 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21300 }
21301 return resultobj;
21302fail:
21303 return NULL;
21304}
21305
21306
21307SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21308 PyObject *resultobj = 0;
21309 wxDC *arg1 = (wxDC *) 0 ;
21310 wxSize result;
21311 void *argp1 = 0 ;
21312 int res1 = 0 ;
21313 PyObject *swig_obj[1] ;
21314
21315 if (!args) SWIG_fail;
21316 swig_obj[0] = args;
21317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21318 if (!SWIG_IsOK(res1)) {
21319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
21320 }
21321 arg1 = reinterpret_cast< wxDC * >(argp1);
21322 {
21323 PyThreadState* __tstate = wxPyBeginAllowThreads();
21324 result = ((wxDC const *)arg1)->GetSizeMM();
21325 wxPyEndAllowThreads(__tstate);
21326 if (PyErr_Occurred()) SWIG_fail;
21327 }
21328 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21329 return resultobj;
21330fail:
21331 return NULL;
21332}
21333
21334
21335SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21336 PyObject *resultobj = 0;
21337 wxDC *arg1 = (wxDC *) 0 ;
21338 int *arg2 = (int *) 0 ;
21339 int *arg3 = (int *) 0 ;
21340 void *argp1 = 0 ;
21341 int res1 = 0 ;
21342 int temp2 ;
21343 int res2 = SWIG_TMPOBJ ;
21344 int temp3 ;
21345 int res3 = SWIG_TMPOBJ ;
21346 PyObject *swig_obj[1] ;
21347
21348 arg2 = &temp2;
21349 arg3 = &temp3;
21350 if (!args) SWIG_fail;
21351 swig_obj[0] = args;
21352 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21353 if (!SWIG_IsOK(res1)) {
21354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21355 }
21356 arg1 = reinterpret_cast< wxDC * >(argp1);
21357 {
21358 PyThreadState* __tstate = wxPyBeginAllowThreads();
21359 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21360 wxPyEndAllowThreads(__tstate);
21361 if (PyErr_Occurred()) SWIG_fail;
21362 }
21363 resultobj = SWIG_Py_Void();
21364 if (SWIG_IsTmpObj(res2)) {
21365 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21366 } else {
21367 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21368 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21369 }
21370 if (SWIG_IsTmpObj(res3)) {
21371 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21372 } else {
21373 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21374 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21375 }
21376 return resultobj;
21377fail:
21378 return NULL;
21379}
21380
21381
21382SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21383 PyObject *resultobj = 0;
21384 wxDC *arg1 = (wxDC *) 0 ;
21385 int arg2 ;
21386 int result;
21387 void *argp1 = 0 ;
21388 int res1 = 0 ;
21389 int val2 ;
21390 int ecode2 = 0 ;
21391 PyObject * obj0 = 0 ;
21392 PyObject * obj1 = 0 ;
21393 char * kwnames[] = {
21394 (char *) "self",(char *) "x", NULL
21395 };
21396
21397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21399 if (!SWIG_IsOK(res1)) {
21400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21401 }
21402 arg1 = reinterpret_cast< wxDC * >(argp1);
21403 ecode2 = SWIG_AsVal_int(obj1, &val2);
21404 if (!SWIG_IsOK(ecode2)) {
21405 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21406 }
21407 arg2 = static_cast< int >(val2);
21408 {
21409 PyThreadState* __tstate = wxPyBeginAllowThreads();
21410 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21411 wxPyEndAllowThreads(__tstate);
21412 if (PyErr_Occurred()) SWIG_fail;
21413 }
21414 resultobj = SWIG_From_int(static_cast< int >(result));
21415 return resultobj;
21416fail:
21417 return NULL;
21418}
21419
21420
21421SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21422 PyObject *resultobj = 0;
21423 wxDC *arg1 = (wxDC *) 0 ;
21424 int arg2 ;
21425 int result;
21426 void *argp1 = 0 ;
21427 int res1 = 0 ;
21428 int val2 ;
21429 int ecode2 = 0 ;
21430 PyObject * obj0 = 0 ;
21431 PyObject * obj1 = 0 ;
21432 char * kwnames[] = {
21433 (char *) "self",(char *) "y", NULL
21434 };
21435
21436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21438 if (!SWIG_IsOK(res1)) {
21439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21440 }
21441 arg1 = reinterpret_cast< wxDC * >(argp1);
21442 ecode2 = SWIG_AsVal_int(obj1, &val2);
21443 if (!SWIG_IsOK(ecode2)) {
21444 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21445 }
21446 arg2 = static_cast< int >(val2);
21447 {
21448 PyThreadState* __tstate = wxPyBeginAllowThreads();
21449 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21450 wxPyEndAllowThreads(__tstate);
21451 if (PyErr_Occurred()) SWIG_fail;
21452 }
21453 resultobj = SWIG_From_int(static_cast< int >(result));
21454 return resultobj;
21455fail:
21456 return NULL;
21457}
21458
21459
21460SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21461 PyObject *resultobj = 0;
21462 wxDC *arg1 = (wxDC *) 0 ;
21463 int arg2 ;
21464 int result;
21465 void *argp1 = 0 ;
21466 int res1 = 0 ;
21467 int val2 ;
21468 int ecode2 = 0 ;
21469 PyObject * obj0 = 0 ;
21470 PyObject * obj1 = 0 ;
21471 char * kwnames[] = {
21472 (char *) "self",(char *) "x", NULL
21473 };
21474
21475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21477 if (!SWIG_IsOK(res1)) {
21478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21479 }
21480 arg1 = reinterpret_cast< wxDC * >(argp1);
21481 ecode2 = SWIG_AsVal_int(obj1, &val2);
21482 if (!SWIG_IsOK(ecode2)) {
21483 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21484 }
21485 arg2 = static_cast< int >(val2);
21486 {
21487 PyThreadState* __tstate = wxPyBeginAllowThreads();
21488 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21489 wxPyEndAllowThreads(__tstate);
21490 if (PyErr_Occurred()) SWIG_fail;
21491 }
21492 resultobj = SWIG_From_int(static_cast< int >(result));
21493 return resultobj;
21494fail:
21495 return NULL;
21496}
21497
21498
21499SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21500 PyObject *resultobj = 0;
21501 wxDC *arg1 = (wxDC *) 0 ;
21502 int arg2 ;
21503 int result;
21504 void *argp1 = 0 ;
21505 int res1 = 0 ;
21506 int val2 ;
21507 int ecode2 = 0 ;
21508 PyObject * obj0 = 0 ;
21509 PyObject * obj1 = 0 ;
21510 char * kwnames[] = {
21511 (char *) "self",(char *) "y", NULL
21512 };
21513
21514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21516 if (!SWIG_IsOK(res1)) {
21517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21518 }
21519 arg1 = reinterpret_cast< wxDC * >(argp1);
21520 ecode2 = SWIG_AsVal_int(obj1, &val2);
21521 if (!SWIG_IsOK(ecode2)) {
21522 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21523 }
21524 arg2 = static_cast< int >(val2);
21525 {
21526 PyThreadState* __tstate = wxPyBeginAllowThreads();
21527 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21528 wxPyEndAllowThreads(__tstate);
21529 if (PyErr_Occurred()) SWIG_fail;
21530 }
21531 resultobj = SWIG_From_int(static_cast< int >(result));
21532 return resultobj;
21533fail:
21534 return NULL;
21535}
21536
21537
21538SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21539 PyObject *resultobj = 0;
21540 wxDC *arg1 = (wxDC *) 0 ;
21541 int arg2 ;
21542 int result;
21543 void *argp1 = 0 ;
21544 int res1 = 0 ;
21545 int val2 ;
21546 int ecode2 = 0 ;
21547 PyObject * obj0 = 0 ;
21548 PyObject * obj1 = 0 ;
21549 char * kwnames[] = {
21550 (char *) "self",(char *) "x", NULL
21551 };
21552
21553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21555 if (!SWIG_IsOK(res1)) {
21556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21557 }
21558 arg1 = reinterpret_cast< wxDC * >(argp1);
21559 ecode2 = SWIG_AsVal_int(obj1, &val2);
21560 if (!SWIG_IsOK(ecode2)) {
21561 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21562 }
21563 arg2 = static_cast< int >(val2);
21564 {
21565 PyThreadState* __tstate = wxPyBeginAllowThreads();
21566 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21567 wxPyEndAllowThreads(__tstate);
21568 if (PyErr_Occurred()) SWIG_fail;
21569 }
21570 resultobj = SWIG_From_int(static_cast< int >(result));
21571 return resultobj;
21572fail:
21573 return NULL;
21574}
21575
21576
21577SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21578 PyObject *resultobj = 0;
21579 wxDC *arg1 = (wxDC *) 0 ;
21580 int arg2 ;
21581 int result;
21582 void *argp1 = 0 ;
21583 int res1 = 0 ;
21584 int val2 ;
21585 int ecode2 = 0 ;
21586 PyObject * obj0 = 0 ;
21587 PyObject * obj1 = 0 ;
21588 char * kwnames[] = {
21589 (char *) "self",(char *) "y", NULL
21590 };
21591
21592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21594 if (!SWIG_IsOK(res1)) {
21595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21596 }
21597 arg1 = reinterpret_cast< wxDC * >(argp1);
21598 ecode2 = SWIG_AsVal_int(obj1, &val2);
21599 if (!SWIG_IsOK(ecode2)) {
21600 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21601 }
21602 arg2 = static_cast< int >(val2);
21603 {
21604 PyThreadState* __tstate = wxPyBeginAllowThreads();
21605 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21606 wxPyEndAllowThreads(__tstate);
21607 if (PyErr_Occurred()) SWIG_fail;
21608 }
21609 resultobj = SWIG_From_int(static_cast< int >(result));
21610 return resultobj;
21611fail:
21612 return NULL;
21613}
21614
21615
21616SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21617 PyObject *resultobj = 0;
21618 wxDC *arg1 = (wxDC *) 0 ;
21619 int arg2 ;
21620 int result;
21621 void *argp1 = 0 ;
21622 int res1 = 0 ;
21623 int val2 ;
21624 int ecode2 = 0 ;
21625 PyObject * obj0 = 0 ;
21626 PyObject * obj1 = 0 ;
21627 char * kwnames[] = {
21628 (char *) "self",(char *) "x", NULL
21629 };
21630
21631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21633 if (!SWIG_IsOK(res1)) {
21634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21635 }
21636 arg1 = reinterpret_cast< wxDC * >(argp1);
21637 ecode2 = SWIG_AsVal_int(obj1, &val2);
21638 if (!SWIG_IsOK(ecode2)) {
21639 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21640 }
21641 arg2 = static_cast< int >(val2);
21642 {
21643 PyThreadState* __tstate = wxPyBeginAllowThreads();
21644 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21645 wxPyEndAllowThreads(__tstate);
21646 if (PyErr_Occurred()) SWIG_fail;
21647 }
21648 resultobj = SWIG_From_int(static_cast< int >(result));
21649 return resultobj;
21650fail:
21651 return NULL;
21652}
21653
21654
21655SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21656 PyObject *resultobj = 0;
21657 wxDC *arg1 = (wxDC *) 0 ;
21658 int arg2 ;
21659 int result;
21660 void *argp1 = 0 ;
21661 int res1 = 0 ;
21662 int val2 ;
21663 int ecode2 = 0 ;
21664 PyObject * obj0 = 0 ;
21665 PyObject * obj1 = 0 ;
21666 char * kwnames[] = {
21667 (char *) "self",(char *) "y", NULL
21668 };
21669
21670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21672 if (!SWIG_IsOK(res1)) {
21673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21674 }
21675 arg1 = reinterpret_cast< wxDC * >(argp1);
21676 ecode2 = SWIG_AsVal_int(obj1, &val2);
21677 if (!SWIG_IsOK(ecode2)) {
21678 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21679 }
21680 arg2 = static_cast< int >(val2);
21681 {
21682 PyThreadState* __tstate = wxPyBeginAllowThreads();
21683 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21684 wxPyEndAllowThreads(__tstate);
21685 if (PyErr_Occurred()) SWIG_fail;
21686 }
21687 resultobj = SWIG_From_int(static_cast< int >(result));
21688 return resultobj;
21689fail:
21690 return NULL;
21691}
21692
21693
21694SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21695 PyObject *resultobj = 0;
21696 wxDC *arg1 = (wxDC *) 0 ;
21697 bool result;
21698 void *argp1 = 0 ;
21699 int res1 = 0 ;
21700 PyObject *swig_obj[1] ;
21701
21702 if (!args) SWIG_fail;
21703 swig_obj[0] = args;
21704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21705 if (!SWIG_IsOK(res1)) {
21706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
21707 }
21708 arg1 = reinterpret_cast< wxDC * >(argp1);
21709 {
21710 PyThreadState* __tstate = wxPyBeginAllowThreads();
21711 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
21712 wxPyEndAllowThreads(__tstate);
21713 if (PyErr_Occurred()) SWIG_fail;
21714 }
21715 {
21716 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21717 }
21718 return resultobj;
21719fail:
21720 return NULL;
21721}
21722
21723
21724SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21725 PyObject *resultobj = 0;
21726 wxDC *arg1 = (wxDC *) 0 ;
21727 bool result;
21728 void *argp1 = 0 ;
21729 int res1 = 0 ;
21730 PyObject *swig_obj[1] ;
21731
21732 if (!args) SWIG_fail;
21733 swig_obj[0] = args;
21734 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21735 if (!SWIG_IsOK(res1)) {
21736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
21737 }
21738 arg1 = reinterpret_cast< wxDC * >(argp1);
21739 {
21740 PyThreadState* __tstate = wxPyBeginAllowThreads();
21741 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
21742 wxPyEndAllowThreads(__tstate);
21743 if (PyErr_Occurred()) SWIG_fail;
21744 }
21745 {
21746 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21747 }
21748 return resultobj;
21749fail:
21750 return NULL;
21751}
21752
21753
21754SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21755 PyObject *resultobj = 0;
21756 wxDC *arg1 = (wxDC *) 0 ;
21757 int result;
21758 void *argp1 = 0 ;
21759 int res1 = 0 ;
21760 PyObject *swig_obj[1] ;
21761
21762 if (!args) SWIG_fail;
21763 swig_obj[0] = args;
21764 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21765 if (!SWIG_IsOK(res1)) {
21766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
21767 }
21768 arg1 = reinterpret_cast< wxDC * >(argp1);
21769 {
21770 PyThreadState* __tstate = wxPyBeginAllowThreads();
21771 result = (int)((wxDC const *)arg1)->GetDepth();
21772 wxPyEndAllowThreads(__tstate);
21773 if (PyErr_Occurred()) SWIG_fail;
21774 }
21775 resultobj = SWIG_From_int(static_cast< int >(result));
21776 return resultobj;
21777fail:
21778 return NULL;
21779}
21780
21781
21782SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21783 PyObject *resultobj = 0;
21784 wxDC *arg1 = (wxDC *) 0 ;
21785 wxSize result;
21786 void *argp1 = 0 ;
21787 int res1 = 0 ;
21788 PyObject *swig_obj[1] ;
21789
21790 if (!args) SWIG_fail;
21791 swig_obj[0] = args;
21792 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21793 if (!SWIG_IsOK(res1)) {
21794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
21795 }
21796 arg1 = reinterpret_cast< wxDC * >(argp1);
21797 {
21798 PyThreadState* __tstate = wxPyBeginAllowThreads();
21799 result = ((wxDC const *)arg1)->GetPPI();
21800 wxPyEndAllowThreads(__tstate);
21801 if (PyErr_Occurred()) SWIG_fail;
21802 }
21803 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21804 return resultobj;
21805fail:
21806 return NULL;
21807}
21808
21809
b39fe951 21810SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
21811 PyObject *resultobj = 0;
21812 wxDC *arg1 = (wxDC *) 0 ;
21813 bool result;
21814 void *argp1 = 0 ;
21815 int res1 = 0 ;
21816 PyObject *swig_obj[1] ;
21817
21818 if (!args) SWIG_fail;
21819 swig_obj[0] = args;
21820 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21821 if (!SWIG_IsOK(res1)) {
b39fe951 21822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
1bd55598
RD
21823 }
21824 arg1 = reinterpret_cast< wxDC * >(argp1);
21825 {
21826 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 21827 result = (bool)((wxDC const *)arg1)->IsOk();
1bd55598
RD
21828 wxPyEndAllowThreads(__tstate);
21829 if (PyErr_Occurred()) SWIG_fail;
21830 }
21831 {
21832 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21833 }
21834 return resultobj;
21835fail:
21836 return NULL;
21837}
21838
21839
21840SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21841 PyObject *resultobj = 0;
21842 wxDC *arg1 = (wxDC *) 0 ;
21843 int result;
21844 void *argp1 = 0 ;
21845 int res1 = 0 ;
21846 PyObject *swig_obj[1] ;
21847
21848 if (!args) SWIG_fail;
21849 swig_obj[0] = args;
21850 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21851 if (!SWIG_IsOK(res1)) {
21852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21853 }
21854 arg1 = reinterpret_cast< wxDC * >(argp1);
21855 {
21856 PyThreadState* __tstate = wxPyBeginAllowThreads();
21857 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
21858 wxPyEndAllowThreads(__tstate);
21859 if (PyErr_Occurred()) SWIG_fail;
21860 }
21861 resultobj = SWIG_From_int(static_cast< int >(result));
21862 return resultobj;
21863fail:
21864 return NULL;
21865}
21866
21867
21868SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21869 PyObject *resultobj = 0;
21870 wxDC *arg1 = (wxDC *) 0 ;
21871 wxBrush *result = 0 ;
21872 void *argp1 = 0 ;
21873 int res1 = 0 ;
21874 PyObject *swig_obj[1] ;
21875
21876 if (!args) SWIG_fail;
21877 swig_obj[0] = args;
21878 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21879 if (!SWIG_IsOK(res1)) {
21880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21881 }
21882 arg1 = reinterpret_cast< wxDC * >(argp1);
21883 {
21884 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21885 {
1bd55598
RD
21886 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
21887 result = (wxBrush *) &_result_ref;
36ed4f51 21888 }
1bd55598
RD
21889 wxPyEndAllowThreads(__tstate);
21890 if (PyErr_Occurred()) SWIG_fail;
21891 }
21892 {
21893 wxBrush* resultptr = new wxBrush(*result);
21894 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21895 }
21896 return resultobj;
21897fail:
21898 return NULL;
21899}
21900
21901
21902SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21903 PyObject *resultobj = 0;
21904 wxDC *arg1 = (wxDC *) 0 ;
21905 wxBrush *result = 0 ;
21906 void *argp1 = 0 ;
21907 int res1 = 0 ;
21908 PyObject *swig_obj[1] ;
21909
21910 if (!args) SWIG_fail;
21911 swig_obj[0] = args;
21912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21913 if (!SWIG_IsOK(res1)) {
21914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
21915 }
21916 arg1 = reinterpret_cast< wxDC * >(argp1);
21917 {
21918 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21919 {
1bd55598
RD
21920 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
21921 result = (wxBrush *) &_result_ref;
36ed4f51 21922 }
1bd55598
RD
21923 wxPyEndAllowThreads(__tstate);
21924 if (PyErr_Occurred()) SWIG_fail;
21925 }
21926 {
21927 wxBrush* resultptr = new wxBrush(*result);
21928 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21929 }
21930 return resultobj;
21931fail:
21932 return NULL;
21933}
21934
21935
21936SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21937 PyObject *resultobj = 0;
21938 wxDC *arg1 = (wxDC *) 0 ;
21939 wxFont *result = 0 ;
21940 void *argp1 = 0 ;
21941 int res1 = 0 ;
21942 PyObject *swig_obj[1] ;
21943
21944 if (!args) SWIG_fail;
21945 swig_obj[0] = args;
21946 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21947 if (!SWIG_IsOK(res1)) {
21948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
21949 }
21950 arg1 = reinterpret_cast< wxDC * >(argp1);
21951 {
21952 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21953 {
1bd55598
RD
21954 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
21955 result = (wxFont *) &_result_ref;
36ed4f51 21956 }
1bd55598
RD
21957 wxPyEndAllowThreads(__tstate);
21958 if (PyErr_Occurred()) SWIG_fail;
21959 }
21960 {
21961 wxFont* resultptr = new wxFont(*result);
21962 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
21963 }
21964 return resultobj;
21965fail:
21966 return NULL;
21967}
21968
21969
21970SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21971 PyObject *resultobj = 0;
21972 wxDC *arg1 = (wxDC *) 0 ;
21973 wxPen *result = 0 ;
21974 void *argp1 = 0 ;
21975 int res1 = 0 ;
21976 PyObject *swig_obj[1] ;
21977
21978 if (!args) SWIG_fail;
21979 swig_obj[0] = args;
21980 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21981 if (!SWIG_IsOK(res1)) {
21982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
21983 }
21984 arg1 = reinterpret_cast< wxDC * >(argp1);
21985 {
21986 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21987 {
1bd55598
RD
21988 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
21989 result = (wxPen *) &_result_ref;
36ed4f51 21990 }
1bd55598
RD
21991 wxPyEndAllowThreads(__tstate);
21992 if (PyErr_Occurred()) SWIG_fail;
21993 }
21994 {
21995 wxPen* resultptr = new wxPen(*result);
21996 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
21997 }
21998 return resultobj;
21999fail:
22000 return NULL;
22001}
22002
22003
22004SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22005 PyObject *resultobj = 0;
22006 wxDC *arg1 = (wxDC *) 0 ;
22007 wxColour *result = 0 ;
22008 void *argp1 = 0 ;
22009 int res1 = 0 ;
22010 PyObject *swig_obj[1] ;
22011
22012 if (!args) SWIG_fail;
22013 swig_obj[0] = args;
22014 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22015 if (!SWIG_IsOK(res1)) {
22016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22017 }
22018 arg1 = reinterpret_cast< wxDC * >(argp1);
22019 {
22020 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 22021 {
1bd55598
RD
22022 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
22023 result = (wxColour *) &_result_ref;
36ed4f51 22024 }
1bd55598
RD
22025 wxPyEndAllowThreads(__tstate);
22026 if (PyErr_Occurred()) SWIG_fail;
22027 }
22028 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22029 return resultobj;
22030fail:
22031 return NULL;
22032}
22033
22034
22035SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22036 PyObject *resultobj = 0;
22037 wxDC *arg1 = (wxDC *) 0 ;
22038 wxColour *result = 0 ;
22039 void *argp1 = 0 ;
22040 int res1 = 0 ;
22041 PyObject *swig_obj[1] ;
22042
22043 if (!args) SWIG_fail;
22044 swig_obj[0] = args;
22045 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22046 if (!SWIG_IsOK(res1)) {
22047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
22048 }
22049 arg1 = reinterpret_cast< wxDC * >(argp1);
22050 {
22051 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 22052 {
1bd55598
RD
22053 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
22054 result = (wxColour *) &_result_ref;
36ed4f51 22055 }
1bd55598
RD
22056 wxPyEndAllowThreads(__tstate);
22057 if (PyErr_Occurred()) SWIG_fail;
22058 }
22059 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22060 return resultobj;
22061fail:
22062 return NULL;
22063}
22064
22065
22066SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22067 PyObject *resultobj = 0;
22068 wxDC *arg1 = (wxDC *) 0 ;
22069 wxColour *arg2 = 0 ;
22070 void *argp1 = 0 ;
22071 int res1 = 0 ;
22072 wxColour temp2 ;
22073 PyObject * obj0 = 0 ;
22074 PyObject * obj1 = 0 ;
22075 char * kwnames[] = {
22076 (char *) "self",(char *) "colour", NULL
22077 };
22078
22079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
22080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22081 if (!SWIG_IsOK(res1)) {
22082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
22083 }
22084 arg1 = reinterpret_cast< wxDC * >(argp1);
22085 {
22086 arg2 = &temp2;
22087 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22088 }
22089 {
22090 PyThreadState* __tstate = wxPyBeginAllowThreads();
22091 (arg1)->SetTextForeground((wxColour const &)*arg2);
22092 wxPyEndAllowThreads(__tstate);
22093 if (PyErr_Occurred()) SWIG_fail;
22094 }
22095 resultobj = SWIG_Py_Void();
22096 return resultobj;
22097fail:
22098 return NULL;
22099}
22100
22101
22102SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22103 PyObject *resultobj = 0;
22104 wxDC *arg1 = (wxDC *) 0 ;
22105 wxColour *arg2 = 0 ;
22106 void *argp1 = 0 ;
22107 int res1 = 0 ;
22108 wxColour temp2 ;
22109 PyObject * obj0 = 0 ;
22110 PyObject * obj1 = 0 ;
22111 char * kwnames[] = {
22112 (char *) "self",(char *) "colour", NULL
22113 };
22114
22115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
22116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22117 if (!SWIG_IsOK(res1)) {
22118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
22119 }
22120 arg1 = reinterpret_cast< wxDC * >(argp1);
22121 {
22122 arg2 = &temp2;
22123 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22124 }
22125 {
22126 PyThreadState* __tstate = wxPyBeginAllowThreads();
22127 (arg1)->SetTextBackground((wxColour const &)*arg2);
22128 wxPyEndAllowThreads(__tstate);
22129 if (PyErr_Occurred()) SWIG_fail;
22130 }
22131 resultobj = SWIG_Py_Void();
22132 return resultobj;
22133fail:
22134 return NULL;
22135}
22136
22137
22138SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22139 PyObject *resultobj = 0;
22140 wxDC *arg1 = (wxDC *) 0 ;
22141 int result;
22142 void *argp1 = 0 ;
22143 int res1 = 0 ;
22144 PyObject *swig_obj[1] ;
22145
22146 if (!args) SWIG_fail;
22147 swig_obj[0] = args;
22148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22149 if (!SWIG_IsOK(res1)) {
22150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22151 }
22152 arg1 = reinterpret_cast< wxDC * >(argp1);
22153 {
22154 PyThreadState* __tstate = wxPyBeginAllowThreads();
22155 result = (int)((wxDC const *)arg1)->GetMapMode();
22156 wxPyEndAllowThreads(__tstate);
22157 if (PyErr_Occurred()) SWIG_fail;
22158 }
22159 resultobj = SWIG_From_int(static_cast< int >(result));
22160 return resultobj;
22161fail:
22162 return NULL;
22163}
22164
22165
22166SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22167 PyObject *resultobj = 0;
22168 wxDC *arg1 = (wxDC *) 0 ;
22169 int arg2 ;
22170 void *argp1 = 0 ;
22171 int res1 = 0 ;
22172 int val2 ;
22173 int ecode2 = 0 ;
22174 PyObject * obj0 = 0 ;
22175 PyObject * obj1 = 0 ;
22176 char * kwnames[] = {
22177 (char *) "self",(char *) "mode", NULL
22178 };
22179
22180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22182 if (!SWIG_IsOK(res1)) {
22183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22184 }
22185 arg1 = reinterpret_cast< wxDC * >(argp1);
22186 ecode2 = SWIG_AsVal_int(obj1, &val2);
22187 if (!SWIG_IsOK(ecode2)) {
22188 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22189 }
22190 arg2 = static_cast< int >(val2);
22191 {
22192 PyThreadState* __tstate = wxPyBeginAllowThreads();
22193 (arg1)->SetMapMode(arg2);
22194 wxPyEndAllowThreads(__tstate);
22195 if (PyErr_Occurred()) SWIG_fail;
22196 }
22197 resultobj = SWIG_Py_Void();
22198 return resultobj;
22199fail:
22200 return NULL;
22201}
22202
22203
22204SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22205 PyObject *resultobj = 0;
22206 wxDC *arg1 = (wxDC *) 0 ;
22207 double *arg2 = (double *) 0 ;
22208 double *arg3 = (double *) 0 ;
22209 void *argp1 = 0 ;
22210 int res1 = 0 ;
22211 double temp2 ;
22212 int res2 = SWIG_TMPOBJ ;
22213 double temp3 ;
22214 int res3 = SWIG_TMPOBJ ;
22215 PyObject *swig_obj[1] ;
22216
22217 arg2 = &temp2;
22218 arg3 = &temp3;
22219 if (!args) SWIG_fail;
22220 swig_obj[0] = args;
22221 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22222 if (!SWIG_IsOK(res1)) {
22223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22224 }
22225 arg1 = reinterpret_cast< wxDC * >(argp1);
22226 {
22227 PyThreadState* __tstate = wxPyBeginAllowThreads();
22228 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22229 wxPyEndAllowThreads(__tstate);
22230 if (PyErr_Occurred()) SWIG_fail;
22231 }
22232 resultobj = SWIG_Py_Void();
22233 if (SWIG_IsTmpObj(res2)) {
22234 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22235 } else {
22236 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22237 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22238 }
22239 if (SWIG_IsTmpObj(res3)) {
22240 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22241 } else {
22242 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22243 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22244 }
22245 return resultobj;
22246fail:
22247 return NULL;
22248}
22249
22250
22251SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22252 PyObject *resultobj = 0;
22253 wxDC *arg1 = (wxDC *) 0 ;
22254 double arg2 ;
22255 double arg3 ;
22256 void *argp1 = 0 ;
22257 int res1 = 0 ;
22258 double val2 ;
22259 int ecode2 = 0 ;
22260 double val3 ;
22261 int ecode3 = 0 ;
22262 PyObject * obj0 = 0 ;
22263 PyObject * obj1 = 0 ;
22264 PyObject * obj2 = 0 ;
22265 char * kwnames[] = {
22266 (char *) "self",(char *) "x",(char *) "y", NULL
22267 };
22268
22269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22271 if (!SWIG_IsOK(res1)) {
22272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22273 }
22274 arg1 = reinterpret_cast< wxDC * >(argp1);
22275 ecode2 = SWIG_AsVal_double(obj1, &val2);
22276 if (!SWIG_IsOK(ecode2)) {
22277 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22278 }
22279 arg2 = static_cast< double >(val2);
22280 ecode3 = SWIG_AsVal_double(obj2, &val3);
22281 if (!SWIG_IsOK(ecode3)) {
22282 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
22283 }
22284 arg3 = static_cast< double >(val3);
22285 {
22286 PyThreadState* __tstate = wxPyBeginAllowThreads();
22287 (arg1)->SetUserScale(arg2,arg3);
22288 wxPyEndAllowThreads(__tstate);
22289 if (PyErr_Occurred()) SWIG_fail;
22290 }
22291 resultobj = SWIG_Py_Void();
22292 return resultobj;
22293fail:
22294 return NULL;
22295}
22296
22297
22298SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22299 PyObject *resultobj = 0;
22300 wxDC *arg1 = (wxDC *) 0 ;
22301 double *arg2 = (double *) 0 ;
22302 double *arg3 = (double *) 0 ;
22303 void *argp1 = 0 ;
22304 int res1 = 0 ;
22305 double temp2 ;
22306 int res2 = SWIG_TMPOBJ ;
22307 double temp3 ;
22308 int res3 = SWIG_TMPOBJ ;
22309 PyObject *swig_obj[1] ;
22310
22311 arg2 = &temp2;
22312 arg3 = &temp3;
22313 if (!args) SWIG_fail;
22314 swig_obj[0] = args;
22315 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22316 if (!SWIG_IsOK(res1)) {
22317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22318 }
22319 arg1 = reinterpret_cast< wxDC * >(argp1);
22320 {
22321 PyThreadState* __tstate = wxPyBeginAllowThreads();
22322 (arg1)->GetLogicalScale(arg2,arg3);
22323 wxPyEndAllowThreads(__tstate);
22324 if (PyErr_Occurred()) SWIG_fail;
22325 }
22326 resultobj = SWIG_Py_Void();
22327 if (SWIG_IsTmpObj(res2)) {
22328 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22329 } else {
22330 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22331 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22332 }
22333 if (SWIG_IsTmpObj(res3)) {
22334 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22335 } else {
22336 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22337 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22338 }
22339 return resultobj;
22340fail:
22341 return NULL;
22342}
22343
22344
22345SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22346 PyObject *resultobj = 0;
22347 wxDC *arg1 = (wxDC *) 0 ;
22348 double arg2 ;
22349 double arg3 ;
22350 void *argp1 = 0 ;
22351 int res1 = 0 ;
22352 double val2 ;
22353 int ecode2 = 0 ;
22354 double val3 ;
22355 int ecode3 = 0 ;
22356 PyObject * obj0 = 0 ;
22357 PyObject * obj1 = 0 ;
22358 PyObject * obj2 = 0 ;
22359 char * kwnames[] = {
22360 (char *) "self",(char *) "x",(char *) "y", NULL
22361 };
22362
22363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22365 if (!SWIG_IsOK(res1)) {
22366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22367 }
22368 arg1 = reinterpret_cast< wxDC * >(argp1);
22369 ecode2 = SWIG_AsVal_double(obj1, &val2);
22370 if (!SWIG_IsOK(ecode2)) {
22371 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22372 }
22373 arg2 = static_cast< double >(val2);
22374 ecode3 = SWIG_AsVal_double(obj2, &val3);
22375 if (!SWIG_IsOK(ecode3)) {
22376 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22377 }
22378 arg3 = static_cast< double >(val3);
22379 {
22380 PyThreadState* __tstate = wxPyBeginAllowThreads();
22381 (arg1)->SetLogicalScale(arg2,arg3);
22382 wxPyEndAllowThreads(__tstate);
22383 if (PyErr_Occurred()) SWIG_fail;
22384 }
22385 resultobj = SWIG_Py_Void();
22386 return resultobj;
22387fail:
22388 return NULL;
22389}
22390
22391
22392SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22393 PyObject *resultobj = 0;
22394 wxDC *arg1 = (wxDC *) 0 ;
22395 wxPoint result;
22396 void *argp1 = 0 ;
22397 int res1 = 0 ;
22398 PyObject *swig_obj[1] ;
22399
22400 if (!args) SWIG_fail;
22401 swig_obj[0] = args;
22402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22403 if (!SWIG_IsOK(res1)) {
22404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22405 }
22406 arg1 = reinterpret_cast< wxDC * >(argp1);
22407 {
22408 PyThreadState* __tstate = wxPyBeginAllowThreads();
22409 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22410 wxPyEndAllowThreads(__tstate);
22411 if (PyErr_Occurred()) SWIG_fail;
22412 }
22413 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22414 return resultobj;
22415fail:
22416 return NULL;
22417}
22418
22419
22420SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22421 PyObject *resultobj = 0;
22422 wxDC *arg1 = (wxDC *) 0 ;
22423 int *arg2 = (int *) 0 ;
22424 int *arg3 = (int *) 0 ;
22425 void *argp1 = 0 ;
22426 int res1 = 0 ;
22427 int temp2 ;
22428 int res2 = SWIG_TMPOBJ ;
22429 int temp3 ;
22430 int res3 = SWIG_TMPOBJ ;
22431 PyObject *swig_obj[1] ;
22432
22433 arg2 = &temp2;
22434 arg3 = &temp3;
22435 if (!args) SWIG_fail;
22436 swig_obj[0] = args;
22437 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22438 if (!SWIG_IsOK(res1)) {
22439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22440 }
22441 arg1 = reinterpret_cast< wxDC * >(argp1);
22442 {
22443 PyThreadState* __tstate = wxPyBeginAllowThreads();
22444 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22445 wxPyEndAllowThreads(__tstate);
22446 if (PyErr_Occurred()) SWIG_fail;
22447 }
22448 resultobj = SWIG_Py_Void();
22449 if (SWIG_IsTmpObj(res2)) {
22450 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22451 } else {
22452 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22453 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22454 }
22455 if (SWIG_IsTmpObj(res3)) {
22456 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22457 } else {
22458 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22459 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22460 }
22461 return resultobj;
22462fail:
22463 return NULL;
22464}
22465
22466
22467SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22468 PyObject *resultobj = 0;
22469 wxDC *arg1 = (wxDC *) 0 ;
22470 int arg2 ;
22471 int arg3 ;
22472 void *argp1 = 0 ;
22473 int res1 = 0 ;
22474 int val2 ;
22475 int ecode2 = 0 ;
22476 int val3 ;
22477 int ecode3 = 0 ;
22478 PyObject * obj0 = 0 ;
22479 PyObject * obj1 = 0 ;
22480 PyObject * obj2 = 0 ;
22481 char * kwnames[] = {
22482 (char *) "self",(char *) "x",(char *) "y", NULL
22483 };
22484
22485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22487 if (!SWIG_IsOK(res1)) {
22488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22489 }
22490 arg1 = reinterpret_cast< wxDC * >(argp1);
22491 ecode2 = SWIG_AsVal_int(obj1, &val2);
22492 if (!SWIG_IsOK(ecode2)) {
22493 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22494 }
22495 arg2 = static_cast< int >(val2);
22496 ecode3 = SWIG_AsVal_int(obj2, &val3);
22497 if (!SWIG_IsOK(ecode3)) {
22498 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22499 }
22500 arg3 = static_cast< int >(val3);
22501 {
22502 PyThreadState* __tstate = wxPyBeginAllowThreads();
22503 (arg1)->SetLogicalOrigin(arg2,arg3);
22504 wxPyEndAllowThreads(__tstate);
22505 if (PyErr_Occurred()) SWIG_fail;
22506 }
22507 resultobj = SWIG_Py_Void();
22508 return resultobj;
22509fail:
22510 return NULL;
22511}
22512
22513
22514SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22515 PyObject *resultobj = 0;
22516 wxDC *arg1 = (wxDC *) 0 ;
22517 wxPoint *arg2 = 0 ;
22518 void *argp1 = 0 ;
22519 int res1 = 0 ;
22520 wxPoint temp2 ;
22521 PyObject * obj0 = 0 ;
22522 PyObject * obj1 = 0 ;
22523 char * kwnames[] = {
22524 (char *) "self",(char *) "point", NULL
22525 };
22526
22527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22529 if (!SWIG_IsOK(res1)) {
22530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22531 }
22532 arg1 = reinterpret_cast< wxDC * >(argp1);
22533 {
22534 arg2 = &temp2;
22535 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22536 }
22537 {
22538 PyThreadState* __tstate = wxPyBeginAllowThreads();
22539 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
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_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22551 PyObject *resultobj = 0;
22552 wxDC *arg1 = (wxDC *) 0 ;
22553 wxPoint result;
22554 void *argp1 = 0 ;
22555 int res1 = 0 ;
22556 PyObject *swig_obj[1] ;
22557
22558 if (!args) SWIG_fail;
22559 swig_obj[0] = args;
22560 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22561 if (!SWIG_IsOK(res1)) {
22562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22563 }
22564 arg1 = reinterpret_cast< wxDC * >(argp1);
22565 {
22566 PyThreadState* __tstate = wxPyBeginAllowThreads();
22567 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22568 wxPyEndAllowThreads(__tstate);
22569 if (PyErr_Occurred()) SWIG_fail;
22570 }
22571 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22572 return resultobj;
22573fail:
22574 return NULL;
22575}
22576
22577
22578SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22579 PyObject *resultobj = 0;
22580 wxDC *arg1 = (wxDC *) 0 ;
22581 int *arg2 = (int *) 0 ;
22582 int *arg3 = (int *) 0 ;
22583 void *argp1 = 0 ;
22584 int res1 = 0 ;
22585 int temp2 ;
22586 int res2 = SWIG_TMPOBJ ;
22587 int temp3 ;
22588 int res3 = SWIG_TMPOBJ ;
22589 PyObject *swig_obj[1] ;
22590
22591 arg2 = &temp2;
22592 arg3 = &temp3;
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_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22598 }
22599 arg1 = reinterpret_cast< wxDC * >(argp1);
22600 {
22601 PyThreadState* __tstate = wxPyBeginAllowThreads();
22602 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22603 wxPyEndAllowThreads(__tstate);
22604 if (PyErr_Occurred()) SWIG_fail;
22605 }
22606 resultobj = SWIG_Py_Void();
22607 if (SWIG_IsTmpObj(res2)) {
22608 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22609 } else {
22610 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22611 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22612 }
22613 if (SWIG_IsTmpObj(res3)) {
22614 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22615 } else {
22616 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22617 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22618 }
22619 return resultobj;
22620fail:
22621 return NULL;
22622}
22623
22624
22625SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22626 PyObject *resultobj = 0;
22627 wxDC *arg1 = (wxDC *) 0 ;
22628 int arg2 ;
22629 int arg3 ;
22630 void *argp1 = 0 ;
22631 int res1 = 0 ;
22632 int val2 ;
22633 int ecode2 = 0 ;
22634 int val3 ;
22635 int ecode3 = 0 ;
22636 PyObject * obj0 = 0 ;
22637 PyObject * obj1 = 0 ;
22638 PyObject * obj2 = 0 ;
22639 char * kwnames[] = {
22640 (char *) "self",(char *) "x",(char *) "y", NULL
22641 };
22642
22643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22645 if (!SWIG_IsOK(res1)) {
22646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22647 }
22648 arg1 = reinterpret_cast< wxDC * >(argp1);
22649 ecode2 = SWIG_AsVal_int(obj1, &val2);
22650 if (!SWIG_IsOK(ecode2)) {
22651 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22652 }
22653 arg2 = static_cast< int >(val2);
22654 ecode3 = SWIG_AsVal_int(obj2, &val3);
22655 if (!SWIG_IsOK(ecode3)) {
22656 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22657 }
22658 arg3 = static_cast< int >(val3);
22659 {
22660 PyThreadState* __tstate = wxPyBeginAllowThreads();
22661 (arg1)->SetDeviceOrigin(arg2,arg3);
22662 wxPyEndAllowThreads(__tstate);
22663 if (PyErr_Occurred()) SWIG_fail;
22664 }
22665 resultobj = SWIG_Py_Void();
22666 return resultobj;
22667fail:
22668 return NULL;
22669}
22670
22671
22672SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22673 PyObject *resultobj = 0;
22674 wxDC *arg1 = (wxDC *) 0 ;
22675 wxPoint *arg2 = 0 ;
22676 void *argp1 = 0 ;
22677 int res1 = 0 ;
22678 wxPoint temp2 ;
22679 PyObject * obj0 = 0 ;
22680 PyObject * obj1 = 0 ;
22681 char * kwnames[] = {
22682 (char *) "self",(char *) "point", NULL
22683 };
22684
22685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22687 if (!SWIG_IsOK(res1)) {
22688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22689 }
22690 arg1 = reinterpret_cast< wxDC * >(argp1);
22691 {
22692 arg2 = &temp2;
22693 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22694 }
22695 {
22696 PyThreadState* __tstate = wxPyBeginAllowThreads();
22697 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
22698 wxPyEndAllowThreads(__tstate);
22699 if (PyErr_Occurred()) SWIG_fail;
22700 }
22701 resultobj = SWIG_Py_Void();
22702 return resultobj;
22703fail:
22704 return NULL;
22705}
22706
22707
22708SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22709 PyObject *resultobj = 0;
22710 wxDC *arg1 = (wxDC *) 0 ;
22711 bool arg2 ;
22712 bool arg3 ;
22713 void *argp1 = 0 ;
22714 int res1 = 0 ;
22715 bool val2 ;
22716 int ecode2 = 0 ;
22717 bool val3 ;
22718 int ecode3 = 0 ;
22719 PyObject * obj0 = 0 ;
22720 PyObject * obj1 = 0 ;
22721 PyObject * obj2 = 0 ;
22722 char * kwnames[] = {
22723 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
22724 };
22725
22726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22728 if (!SWIG_IsOK(res1)) {
22729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
22730 }
22731 arg1 = reinterpret_cast< wxDC * >(argp1);
22732 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22733 if (!SWIG_IsOK(ecode2)) {
22734 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
22735 }
22736 arg2 = static_cast< bool >(val2);
22737 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22738 if (!SWIG_IsOK(ecode3)) {
22739 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
22740 }
22741 arg3 = static_cast< bool >(val3);
22742 {
22743 PyThreadState* __tstate = wxPyBeginAllowThreads();
22744 (arg1)->SetAxisOrientation(arg2,arg3);
22745 wxPyEndAllowThreads(__tstate);
22746 if (PyErr_Occurred()) SWIG_fail;
22747 }
22748 resultobj = SWIG_Py_Void();
22749 return resultobj;
22750fail:
22751 return NULL;
22752}
22753
22754
22755SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22756 PyObject *resultobj = 0;
22757 wxDC *arg1 = (wxDC *) 0 ;
22758 int result;
22759 void *argp1 = 0 ;
22760 int res1 = 0 ;
22761 PyObject *swig_obj[1] ;
22762
22763 if (!args) SWIG_fail;
22764 swig_obj[0] = args;
22765 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22766 if (!SWIG_IsOK(res1)) {
22767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
22768 }
22769 arg1 = reinterpret_cast< wxDC * >(argp1);
22770 {
22771 PyThreadState* __tstate = wxPyBeginAllowThreads();
22772 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
22773 wxPyEndAllowThreads(__tstate);
22774 if (PyErr_Occurred()) SWIG_fail;
22775 }
22776 resultobj = SWIG_From_int(static_cast< int >(result));
22777 return resultobj;
22778fail:
22779 return NULL;
22780}
22781
22782
22783SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22784 PyObject *resultobj = 0;
22785 wxDC *arg1 = (wxDC *) 0 ;
22786 int arg2 ;
22787 void *argp1 = 0 ;
22788 int res1 = 0 ;
22789 int val2 ;
22790 int ecode2 = 0 ;
22791 PyObject * obj0 = 0 ;
22792 PyObject * obj1 = 0 ;
22793 char * kwnames[] = {
22794 (char *) "self",(char *) "function", NULL
22795 };
22796
22797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
22798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22799 if (!SWIG_IsOK(res1)) {
22800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
22801 }
22802 arg1 = reinterpret_cast< wxDC * >(argp1);
22803 ecode2 = SWIG_AsVal_int(obj1, &val2);
22804 if (!SWIG_IsOK(ecode2)) {
22805 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
22806 }
22807 arg2 = static_cast< int >(val2);
22808 {
22809 PyThreadState* __tstate = wxPyBeginAllowThreads();
22810 (arg1)->SetLogicalFunction(arg2);
22811 wxPyEndAllowThreads(__tstate);
22812 if (PyErr_Occurred()) SWIG_fail;
22813 }
22814 resultobj = SWIG_Py_Void();
22815 return resultobj;
22816fail:
22817 return NULL;
22818}
22819
22820
22821SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22822 PyObject *resultobj = 0;
22823 wxDC *arg1 = (wxDC *) 0 ;
22824 void *argp1 = 0 ;
22825 int res1 = 0 ;
22826 PyObject *swig_obj[1] ;
22827
22828 if (!args) SWIG_fail;
22829 swig_obj[0] = args;
22830 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22831 if (!SWIG_IsOK(res1)) {
22832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22833 }
22834 arg1 = reinterpret_cast< wxDC * >(argp1);
22835 {
22836 PyThreadState* __tstate = wxPyBeginAllowThreads();
22837 (arg1)->ComputeScaleAndOrigin();
22838 wxPyEndAllowThreads(__tstate);
22839 if (PyErr_Occurred()) SWIG_fail;
22840 }
22841 resultobj = SWIG_Py_Void();
22842 return resultobj;
22843fail:
22844 return NULL;
22845}
22846
22847
22848SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22849 PyObject *resultobj = 0;
22850 wxDC *arg1 = (wxDC *) 0 ;
22851 int arg2 ;
22852 int arg3 ;
22853 void *argp1 = 0 ;
22854 int res1 = 0 ;
22855 int val2 ;
22856 int ecode2 = 0 ;
22857 int val3 ;
22858 int ecode3 = 0 ;
22859 PyObject * obj0 = 0 ;
22860 PyObject * obj1 = 0 ;
22861 PyObject * obj2 = 0 ;
22862 char * kwnames[] = {
22863 (char *) "self",(char *) "x",(char *) "y", NULL
22864 };
22865
22866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22868 if (!SWIG_IsOK(res1)) {
22869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22870 }
22871 arg1 = reinterpret_cast< wxDC * >(argp1);
22872 ecode2 = SWIG_AsVal_int(obj1, &val2);
22873 if (!SWIG_IsOK(ecode2)) {
22874 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
22875 }
22876 arg2 = static_cast< int >(val2);
22877 ecode3 = SWIG_AsVal_int(obj2, &val3);
22878 if (!SWIG_IsOK(ecode3)) {
22879 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
22880 }
22881 arg3 = static_cast< int >(val3);
22882 {
22883 PyThreadState* __tstate = wxPyBeginAllowThreads();
22884 (arg1)->CalcBoundingBox(arg2,arg3);
22885 wxPyEndAllowThreads(__tstate);
22886 if (PyErr_Occurred()) SWIG_fail;
22887 }
22888 resultobj = SWIG_Py_Void();
22889 return resultobj;
22890fail:
22891 return NULL;
22892}
22893
22894
22895SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22896 PyObject *resultobj = 0;
22897 wxDC *arg1 = (wxDC *) 0 ;
22898 wxPoint *arg2 = 0 ;
22899 void *argp1 = 0 ;
22900 int res1 = 0 ;
22901 wxPoint temp2 ;
22902 PyObject * obj0 = 0 ;
22903 PyObject * obj1 = 0 ;
22904 char * kwnames[] = {
22905 (char *) "self",(char *) "point", NULL
22906 };
22907
22908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22910 if (!SWIG_IsOK(res1)) {
22911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22912 }
22913 arg1 = reinterpret_cast< wxDC * >(argp1);
22914 {
22915 arg2 = &temp2;
22916 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22917 }
22918 {
22919 PyThreadState* __tstate = wxPyBeginAllowThreads();
22920 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
22921 wxPyEndAllowThreads(__tstate);
22922 if (PyErr_Occurred()) SWIG_fail;
22923 }
22924 resultobj = SWIG_Py_Void();
22925 return resultobj;
22926fail:
22927 return NULL;
22928}
22929
22930
22931SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22932 PyObject *resultobj = 0;
22933 wxDC *arg1 = (wxDC *) 0 ;
22934 void *argp1 = 0 ;
22935 int res1 = 0 ;
22936 PyObject *swig_obj[1] ;
22937
22938 if (!args) SWIG_fail;
22939 swig_obj[0] = args;
22940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22941 if (!SWIG_IsOK(res1)) {
22942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22943 }
22944 arg1 = reinterpret_cast< wxDC * >(argp1);
22945 {
22946 PyThreadState* __tstate = wxPyBeginAllowThreads();
22947 (arg1)->ResetBoundingBox();
22948 wxPyEndAllowThreads(__tstate);
22949 if (PyErr_Occurred()) SWIG_fail;
22950 }
22951 resultobj = SWIG_Py_Void();
22952 return resultobj;
22953fail:
22954 return NULL;
22955}
22956
22957
22958SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22959 PyObject *resultobj = 0;
22960 wxDC *arg1 = (wxDC *) 0 ;
22961 int result;
22962 void *argp1 = 0 ;
22963 int res1 = 0 ;
22964 PyObject *swig_obj[1] ;
22965
22966 if (!args) SWIG_fail;
22967 swig_obj[0] = args;
22968 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22969 if (!SWIG_IsOK(res1)) {
22970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
22971 }
22972 arg1 = reinterpret_cast< wxDC * >(argp1);
22973 {
22974 PyThreadState* __tstate = wxPyBeginAllowThreads();
22975 result = (int)((wxDC const *)arg1)->MinX();
22976 wxPyEndAllowThreads(__tstate);
22977 if (PyErr_Occurred()) SWIG_fail;
22978 }
22979 resultobj = SWIG_From_int(static_cast< int >(result));
22980 return resultobj;
22981fail:
22982 return NULL;
22983}
22984
22985
22986SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22987 PyObject *resultobj = 0;
22988 wxDC *arg1 = (wxDC *) 0 ;
22989 int result;
22990 void *argp1 = 0 ;
22991 int res1 = 0 ;
22992 PyObject *swig_obj[1] ;
22993
22994 if (!args) SWIG_fail;
22995 swig_obj[0] = args;
22996 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22997 if (!SWIG_IsOK(res1)) {
22998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
22999 }
23000 arg1 = reinterpret_cast< wxDC * >(argp1);
23001 {
23002 PyThreadState* __tstate = wxPyBeginAllowThreads();
23003 result = (int)((wxDC const *)arg1)->MaxX();
23004 wxPyEndAllowThreads(__tstate);
23005 if (PyErr_Occurred()) SWIG_fail;
23006 }
23007 resultobj = SWIG_From_int(static_cast< int >(result));
23008 return resultobj;
23009fail:
23010 return NULL;
23011}
23012
23013
23014SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23015 PyObject *resultobj = 0;
23016 wxDC *arg1 = (wxDC *) 0 ;
23017 int result;
23018 void *argp1 = 0 ;
23019 int res1 = 0 ;
23020 PyObject *swig_obj[1] ;
23021
23022 if (!args) SWIG_fail;
23023 swig_obj[0] = args;
23024 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23025 if (!SWIG_IsOK(res1)) {
23026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
23027 }
23028 arg1 = reinterpret_cast< wxDC * >(argp1);
23029 {
23030 PyThreadState* __tstate = wxPyBeginAllowThreads();
23031 result = (int)((wxDC const *)arg1)->MinY();
23032 wxPyEndAllowThreads(__tstate);
23033 if (PyErr_Occurred()) SWIG_fail;
23034 }
23035 resultobj = SWIG_From_int(static_cast< int >(result));
23036 return resultobj;
23037fail:
23038 return NULL;
23039}
23040
23041
23042SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23043 PyObject *resultobj = 0;
23044 wxDC *arg1 = (wxDC *) 0 ;
23045 int result;
23046 void *argp1 = 0 ;
23047 int res1 = 0 ;
23048 PyObject *swig_obj[1] ;
23049
23050 if (!args) SWIG_fail;
23051 swig_obj[0] = args;
23052 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23053 if (!SWIG_IsOK(res1)) {
23054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
23055 }
23056 arg1 = reinterpret_cast< wxDC * >(argp1);
23057 {
23058 PyThreadState* __tstate = wxPyBeginAllowThreads();
23059 result = (int)((wxDC const *)arg1)->MaxY();
23060 wxPyEndAllowThreads(__tstate);
23061 if (PyErr_Occurred()) SWIG_fail;
23062 }
23063 resultobj = SWIG_From_int(static_cast< int >(result));
23064 return resultobj;
23065fail:
23066 return NULL;
23067}
23068
23069
23070SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23071 PyObject *resultobj = 0;
23072 wxDC *arg1 = (wxDC *) 0 ;
23073 int *arg2 = (int *) 0 ;
23074 int *arg3 = (int *) 0 ;
23075 int *arg4 = (int *) 0 ;
23076 int *arg5 = (int *) 0 ;
23077 void *argp1 = 0 ;
23078 int res1 = 0 ;
23079 int temp2 ;
23080 int res2 = SWIG_TMPOBJ ;
23081 int temp3 ;
23082 int res3 = SWIG_TMPOBJ ;
23083 int temp4 ;
23084 int res4 = SWIG_TMPOBJ ;
23085 int temp5 ;
23086 int res5 = SWIG_TMPOBJ ;
23087 PyObject *swig_obj[1] ;
23088
23089 arg2 = &temp2;
23090 arg3 = &temp3;
23091 arg4 = &temp4;
23092 arg5 = &temp5;
23093 if (!args) SWIG_fail;
23094 swig_obj[0] = args;
23095 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23096 if (!SWIG_IsOK(res1)) {
23097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23098 }
23099 arg1 = reinterpret_cast< wxDC * >(argp1);
23100 {
23101 PyThreadState* __tstate = wxPyBeginAllowThreads();
23102 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
23103 wxPyEndAllowThreads(__tstate);
23104 if (PyErr_Occurred()) SWIG_fail;
23105 }
23106 resultobj = SWIG_Py_Void();
23107 if (SWIG_IsTmpObj(res2)) {
23108 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23109 } else {
23110 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23111 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23112 }
23113 if (SWIG_IsTmpObj(res3)) {
23114 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23115 } else {
23116 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23117 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23118 }
23119 if (SWIG_IsTmpObj(res4)) {
23120 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
23121 } else {
23122 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23123 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
23124 }
23125 if (SWIG_IsTmpObj(res5)) {
23126 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
23127 } else {
23128 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23129 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
23130 }
23131 return resultobj;
23132fail:
23133 return NULL;
23134}
23135
23136
b39fe951
RD
23137SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23138 PyObject *resultobj = 0;
23139 wxDC *arg1 = (wxDC *) 0 ;
23140 wxLayoutDirection result;
23141 void *argp1 = 0 ;
23142 int res1 = 0 ;
23143 PyObject *swig_obj[1] ;
23144
23145 if (!args) SWIG_fail;
23146 swig_obj[0] = args;
23147 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23148 if (!SWIG_IsOK(res1)) {
23149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
23150 }
23151 arg1 = reinterpret_cast< wxDC * >(argp1);
23152 {
23153 PyThreadState* __tstate = wxPyBeginAllowThreads();
23154 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
23155 wxPyEndAllowThreads(__tstate);
23156 if (PyErr_Occurred()) SWIG_fail;
23157 }
23158 resultobj = SWIG_From_int(static_cast< int >(result));
23159 return resultobj;
23160fail:
23161 return NULL;
23162}
23163
23164
23165SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23166 PyObject *resultobj = 0;
23167 wxDC *arg1 = (wxDC *) 0 ;
23168 wxLayoutDirection arg2 ;
23169 void *argp1 = 0 ;
23170 int res1 = 0 ;
23171 int val2 ;
23172 int ecode2 = 0 ;
23173 PyObject * obj0 = 0 ;
23174 PyObject * obj1 = 0 ;
23175 char * kwnames[] = {
23176 (char *) "self",(char *) "dir", NULL
23177 };
23178
23179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
23180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23181 if (!SWIG_IsOK(res1)) {
23182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
23183 }
23184 arg1 = reinterpret_cast< wxDC * >(argp1);
23185 ecode2 = SWIG_AsVal_int(obj1, &val2);
23186 if (!SWIG_IsOK(ecode2)) {
23187 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
23188 }
23189 arg2 = static_cast< wxLayoutDirection >(val2);
23190 {
23191 PyThreadState* __tstate = wxPyBeginAllowThreads();
23192 (arg1)->SetLayoutDirection(arg2);
23193 wxPyEndAllowThreads(__tstate);
23194 if (PyErr_Occurred()) SWIG_fail;
23195 }
23196 resultobj = SWIG_Py_Void();
23197 return resultobj;
23198fail:
23199 return NULL;
23200}
23201
23202
1bd55598
RD
23203SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23204 PyObject *resultobj = 0;
23205 wxDC *arg1 = (wxDC *) 0 ;
23206 PyObject *arg2 = (PyObject *) 0 ;
23207 PyObject *arg3 = (PyObject *) 0 ;
23208 PyObject *arg4 = (PyObject *) 0 ;
23209 PyObject *result = 0 ;
23210 void *argp1 = 0 ;
23211 int res1 = 0 ;
23212 PyObject * obj0 = 0 ;
23213 PyObject * obj1 = 0 ;
23214 PyObject * obj2 = 0 ;
23215 PyObject * obj3 = 0 ;
23216 char * kwnames[] = {
23217 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23218 };
23219
23220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23222 if (!SWIG_IsOK(res1)) {
23223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23224 }
23225 arg1 = reinterpret_cast< wxDC * >(argp1);
23226 arg2 = obj1;
23227 arg3 = obj2;
23228 arg4 = obj3;
23229 {
23230 PyThreadState* __tstate = wxPyBeginAllowThreads();
23231 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23232 wxPyEndAllowThreads(__tstate);
23233 if (PyErr_Occurred()) SWIG_fail;
23234 }
23235 resultobj = result;
23236 return resultobj;
23237fail:
23238 return NULL;
23239}
23240
23241
23242SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23243 PyObject *resultobj = 0;
23244 wxDC *arg1 = (wxDC *) 0 ;
23245 PyObject *arg2 = (PyObject *) 0 ;
23246 PyObject *arg3 = (PyObject *) 0 ;
23247 PyObject *arg4 = (PyObject *) 0 ;
23248 PyObject *result = 0 ;
23249 void *argp1 = 0 ;
23250 int res1 = 0 ;
23251 PyObject * obj0 = 0 ;
23252 PyObject * obj1 = 0 ;
23253 PyObject * obj2 = 0 ;
23254 PyObject * obj3 = 0 ;
23255 char * kwnames[] = {
23256 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23257 };
23258
23259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23261 if (!SWIG_IsOK(res1)) {
23262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
23263 }
23264 arg1 = reinterpret_cast< wxDC * >(argp1);
23265 arg2 = obj1;
23266 arg3 = obj2;
23267 arg4 = obj3;
23268 {
23269 PyThreadState* __tstate = wxPyBeginAllowThreads();
23270 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
23271 wxPyEndAllowThreads(__tstate);
23272 if (PyErr_Occurred()) SWIG_fail;
23273 }
23274 resultobj = result;
23275 return resultobj;
23276fail:
23277 return NULL;
23278}
23279
23280
23281SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23282 PyObject *resultobj = 0;
23283 wxDC *arg1 = (wxDC *) 0 ;
23284 PyObject *arg2 = (PyObject *) 0 ;
23285 PyObject *arg3 = (PyObject *) 0 ;
23286 PyObject *arg4 = (PyObject *) 0 ;
23287 PyObject *result = 0 ;
23288 void *argp1 = 0 ;
23289 int res1 = 0 ;
23290 PyObject * obj0 = 0 ;
23291 PyObject * obj1 = 0 ;
23292 PyObject * obj2 = 0 ;
23293 PyObject * obj3 = 0 ;
23294 char * kwnames[] = {
23295 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23296 };
23297
23298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23300 if (!SWIG_IsOK(res1)) {
23301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
23302 }
23303 arg1 = reinterpret_cast< wxDC * >(argp1);
23304 arg2 = obj1;
23305 arg3 = obj2;
23306 arg4 = obj3;
23307 {
23308 PyThreadState* __tstate = wxPyBeginAllowThreads();
23309 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
23310 wxPyEndAllowThreads(__tstate);
23311 if (PyErr_Occurred()) SWIG_fail;
23312 }
23313 resultobj = result;
23314 return resultobj;
23315fail:
23316 return NULL;
23317}
23318
23319
23320SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23321 PyObject *resultobj = 0;
23322 wxDC *arg1 = (wxDC *) 0 ;
23323 PyObject *arg2 = (PyObject *) 0 ;
23324 PyObject *arg3 = (PyObject *) 0 ;
23325 PyObject *arg4 = (PyObject *) 0 ;
23326 PyObject *result = 0 ;
23327 void *argp1 = 0 ;
23328 int res1 = 0 ;
23329 PyObject * obj0 = 0 ;
23330 PyObject * obj1 = 0 ;
23331 PyObject * obj2 = 0 ;
23332 PyObject * obj3 = 0 ;
23333 char * kwnames[] = {
23334 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23335 };
23336
23337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23339 if (!SWIG_IsOK(res1)) {
23340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
23341 }
23342 arg1 = reinterpret_cast< wxDC * >(argp1);
23343 arg2 = obj1;
23344 arg3 = obj2;
23345 arg4 = obj3;
23346 {
23347 PyThreadState* __tstate = wxPyBeginAllowThreads();
23348 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
23349 wxPyEndAllowThreads(__tstate);
23350 if (PyErr_Occurred()) SWIG_fail;
23351 }
23352 resultobj = result;
23353 return resultobj;
23354fail:
23355 return NULL;
23356}
23357
23358
23359SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23360 PyObject *resultobj = 0;
23361 wxDC *arg1 = (wxDC *) 0 ;
23362 PyObject *arg2 = (PyObject *) 0 ;
23363 PyObject *arg3 = (PyObject *) 0 ;
23364 PyObject *arg4 = (PyObject *) 0 ;
23365 PyObject *result = 0 ;
23366 void *argp1 = 0 ;
23367 int res1 = 0 ;
23368 PyObject * obj0 = 0 ;
23369 PyObject * obj1 = 0 ;
23370 PyObject * obj2 = 0 ;
23371 PyObject * obj3 = 0 ;
23372 char * kwnames[] = {
23373 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23374 };
23375
23376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23378 if (!SWIG_IsOK(res1)) {
23379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23380 }
23381 arg1 = reinterpret_cast< wxDC * >(argp1);
23382 arg2 = obj1;
23383 arg3 = obj2;
23384 arg4 = obj3;
23385 {
23386 PyThreadState* __tstate = wxPyBeginAllowThreads();
23387 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23388 wxPyEndAllowThreads(__tstate);
23389 if (PyErr_Occurred()) SWIG_fail;
23390 }
23391 resultobj = result;
23392 return resultobj;
23393fail:
23394 return NULL;
23395}
23396
23397
23398SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23399 PyObject *resultobj = 0;
23400 wxDC *arg1 = (wxDC *) 0 ;
23401 PyObject *arg2 = (PyObject *) 0 ;
23402 PyObject *arg3 = (PyObject *) 0 ;
23403 PyObject *arg4 = (PyObject *) 0 ;
23404 PyObject *arg5 = (PyObject *) 0 ;
23405 PyObject *result = 0 ;
23406 void *argp1 = 0 ;
23407 int res1 = 0 ;
23408 PyObject * obj0 = 0 ;
23409 PyObject * obj1 = 0 ;
23410 PyObject * obj2 = 0 ;
23411 PyObject * obj3 = 0 ;
23412 PyObject * obj4 = 0 ;
23413 char * kwnames[] = {
23414 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23415 };
23416
23417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23419 if (!SWIG_IsOK(res1)) {
23420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23421 }
23422 arg1 = reinterpret_cast< wxDC * >(argp1);
23423 arg2 = obj1;
23424 arg3 = obj2;
23425 arg4 = obj3;
23426 arg5 = obj4;
23427 {
23428 PyThreadState* __tstate = wxPyBeginAllowThreads();
23429 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23430 wxPyEndAllowThreads(__tstate);
23431 if (PyErr_Occurred()) SWIG_fail;
23432 }
23433 resultobj = result;
23434 return resultobj;
23435fail:
23436 return NULL;
23437}
23438
23439
23440SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23441 PyObject *obj;
23442 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23443 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23444 return SWIG_Py_Void();
23445}
23446
70d7cb34
RD
23447SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23448 PyObject *resultobj = 0;
23449 wxDC *arg1 = 0 ;
23450 wxColour *arg2 = 0 ;
23451 wxDCTextColourChanger *result = 0 ;
23452 void *argp1 = 0 ;
23453 int res1 = 0 ;
23454 wxColour temp2 ;
23455 PyObject * obj0 = 0 ;
23456 PyObject * obj1 = 0 ;
23457 char * kwnames[] = {
23458 (char *) "dc",(char *) "col", NULL
23459 };
23460
23461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23462 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23463 if (!SWIG_IsOK(res1)) {
23464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23465 }
23466 if (!argp1) {
23467 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23468 }
23469 arg1 = reinterpret_cast< wxDC * >(argp1);
23470 {
23471 arg2 = &temp2;
23472 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23473 }
23474 {
23475 PyThreadState* __tstate = wxPyBeginAllowThreads();
23476 result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2);
23477 wxPyEndAllowThreads(__tstate);
23478 if (PyErr_Occurred()) SWIG_fail;
23479 }
23480 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 );
23481 return resultobj;
23482fail:
23483 return NULL;
23484}
23485
23486
23487SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23488 PyObject *resultobj = 0;
23489 wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ;
23490 void *argp1 = 0 ;
23491 int res1 = 0 ;
23492 PyObject *swig_obj[1] ;
23493
23494 if (!args) SWIG_fail;
23495 swig_obj[0] = args;
23496 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 );
23497 if (!SWIG_IsOK(res1)) {
23498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'");
23499 }
23500 arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1);
23501 {
23502 PyThreadState* __tstate = wxPyBeginAllowThreads();
23503 delete arg1;
23504
23505 wxPyEndAllowThreads(__tstate);
23506 if (PyErr_Occurred()) SWIG_fail;
23507 }
23508 resultobj = SWIG_Py_Void();
23509 return resultobj;
23510fail:
23511 return NULL;
23512}
23513
23514
23515SWIGINTERN PyObject *DCTextColourChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23516 PyObject *obj;
23517 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23518 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCTextColourChanger, SWIG_NewClientData(obj));
23519 return SWIG_Py_Void();
23520}
23521
23522SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23523 return SWIG_Python_InitShadowInstance(args);
23524}
23525
23526SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23527 PyObject *resultobj = 0;
23528 wxDC *arg1 = 0 ;
23529 wxPen *arg2 = 0 ;
23530 wxDCPenChanger *result = 0 ;
23531 void *argp1 = 0 ;
23532 int res1 = 0 ;
23533 void *argp2 = 0 ;
23534 int res2 = 0 ;
23535 PyObject * obj0 = 0 ;
23536 PyObject * obj1 = 0 ;
23537 char * kwnames[] = {
23538 (char *) "dc",(char *) "pen", NULL
23539 };
23540
23541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23542 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23543 if (!SWIG_IsOK(res1)) {
23544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23545 }
23546 if (!argp1) {
23547 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23548 }
23549 arg1 = reinterpret_cast< wxDC * >(argp1);
23550 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
23551 if (!SWIG_IsOK(res2)) {
23552 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
23553 }
23554 if (!argp2) {
23555 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
23556 }
23557 arg2 = reinterpret_cast< wxPen * >(argp2);
23558 {
23559 PyThreadState* __tstate = wxPyBeginAllowThreads();
23560 result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2);
23561 wxPyEndAllowThreads(__tstate);
23562 if (PyErr_Occurred()) SWIG_fail;
23563 }
23564 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 );
23565 return resultobj;
23566fail:
23567 return NULL;
23568}
23569
23570
23571SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23572 PyObject *resultobj = 0;
23573 wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ;
23574 void *argp1 = 0 ;
23575 int res1 = 0 ;
23576 PyObject *swig_obj[1] ;
23577
23578 if (!args) SWIG_fail;
23579 swig_obj[0] = args;
23580 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 );
23581 if (!SWIG_IsOK(res1)) {
23582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'");
23583 }
23584 arg1 = reinterpret_cast< wxDCPenChanger * >(argp1);
23585 {
23586 PyThreadState* __tstate = wxPyBeginAllowThreads();
23587 delete arg1;
23588
23589 wxPyEndAllowThreads(__tstate);
23590 if (PyErr_Occurred()) SWIG_fail;
23591 }
23592 resultobj = SWIG_Py_Void();
23593 return resultobj;
23594fail:
23595 return NULL;
23596}
23597
23598
23599SWIGINTERN PyObject *DCPenChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23600 PyObject *obj;
23601 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23602 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCPenChanger, SWIG_NewClientData(obj));
23603 return SWIG_Py_Void();
23604}
23605
23606SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23607 return SWIG_Python_InitShadowInstance(args);
23608}
23609
23610SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23611 PyObject *resultobj = 0;
23612 wxDC *arg1 = 0 ;
23613 wxBrush *arg2 = 0 ;
23614 wxDCBrushChanger *result = 0 ;
23615 void *argp1 = 0 ;
23616 int res1 = 0 ;
23617 void *argp2 = 0 ;
23618 int res2 = 0 ;
23619 PyObject * obj0 = 0 ;
23620 PyObject * obj1 = 0 ;
23621 char * kwnames[] = {
23622 (char *) "dc",(char *) "brush", NULL
23623 };
23624
23625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23626 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23627 if (!SWIG_IsOK(res1)) {
23628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23629 }
23630 if (!argp1) {
23631 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23632 }
23633 arg1 = reinterpret_cast< wxDC * >(argp1);
23634 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
23635 if (!SWIG_IsOK(res2)) {
23636 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
23637 }
23638 if (!argp2) {
23639 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
23640 }
23641 arg2 = reinterpret_cast< wxBrush * >(argp2);
23642 {
23643 PyThreadState* __tstate = wxPyBeginAllowThreads();
23644 result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2);
23645 wxPyEndAllowThreads(__tstate);
23646 if (PyErr_Occurred()) SWIG_fail;
23647 }
23648 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 );
23649 return resultobj;
23650fail:
23651 return NULL;
23652}
23653
23654
23655SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23656 PyObject *resultobj = 0;
23657 wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ;
23658 void *argp1 = 0 ;
23659 int res1 = 0 ;
23660 PyObject *swig_obj[1] ;
23661
23662 if (!args) SWIG_fail;
23663 swig_obj[0] = args;
23664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 );
23665 if (!SWIG_IsOK(res1)) {
23666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'");
23667 }
23668 arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1);
23669 {
23670 PyThreadState* __tstate = wxPyBeginAllowThreads();
23671 delete arg1;
23672
23673 wxPyEndAllowThreads(__tstate);
23674 if (PyErr_Occurred()) SWIG_fail;
23675 }
23676 resultobj = SWIG_Py_Void();
23677 return resultobj;
23678fail:
23679 return NULL;
23680}
23681
23682
23683SWIGINTERN PyObject *DCBrushChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23684 PyObject *obj;
23685 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23686 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCBrushChanger, SWIG_NewClientData(obj));
23687 return SWIG_Py_Void();
23688}
23689
23690SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23691 return SWIG_Python_InitShadowInstance(args);
23692}
23693
23694SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23695 PyObject *resultobj = 0;
23696 wxDC *arg1 = 0 ;
23697 wxRegion *arg2 = 0 ;
23698 wxDCClipper *result = 0 ;
23699 void *argp1 = 0 ;
23700 int res1 = 0 ;
23701 void *argp2 = 0 ;
23702 int res2 = 0 ;
23703
23704 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23705 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23706 if (!SWIG_IsOK(res1)) {
23707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23708 }
23709 if (!argp1) {
23710 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23711 }
23712 arg1 = reinterpret_cast< wxDC * >(argp1);
23713 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
23714 if (!SWIG_IsOK(res2)) {
23715 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
23716 }
23717 if (!argp2) {
23718 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
23719 }
23720 arg2 = reinterpret_cast< wxRegion * >(argp2);
23721 {
23722 PyThreadState* __tstate = wxPyBeginAllowThreads();
23723 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2);
23724 wxPyEndAllowThreads(__tstate);
23725 if (PyErr_Occurred()) SWIG_fail;
23726 }
23727 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23728 return resultobj;
23729fail:
23730 return NULL;
23731}
23732
23733
23734SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23735 PyObject *resultobj = 0;
23736 wxDC *arg1 = 0 ;
23737 wxRect *arg2 = 0 ;
23738 wxDCClipper *result = 0 ;
23739 void *argp1 = 0 ;
23740 int res1 = 0 ;
23741 wxRect temp2 ;
23742
23743 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23744 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23745 if (!SWIG_IsOK(res1)) {
23746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23747 }
23748 if (!argp1) {
23749 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23750 }
23751 arg1 = reinterpret_cast< wxDC * >(argp1);
23752 {
23753 arg2 = &temp2;
23754 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
23755 }
23756 {
23757 PyThreadState* __tstate = wxPyBeginAllowThreads();
23758 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2);
23759 wxPyEndAllowThreads(__tstate);
23760 if (PyErr_Occurred()) SWIG_fail;
23761 }
23762 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23763 return resultobj;
23764fail:
23765 return NULL;
23766}
23767
23768
23769SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23770 PyObject *resultobj = 0;
23771 wxDC *arg1 = 0 ;
23772 int arg2 ;
23773 int arg3 ;
23774 int arg4 ;
23775 int arg5 ;
23776 wxDCClipper *result = 0 ;
23777 void *argp1 = 0 ;
23778 int res1 = 0 ;
23779 int val2 ;
23780 int ecode2 = 0 ;
23781 int val3 ;
23782 int ecode3 = 0 ;
23783 int val4 ;
23784 int ecode4 = 0 ;
23785 int val5 ;
23786 int ecode5 = 0 ;
23787
23788 if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
23789 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23790 if (!SWIG_IsOK(res1)) {
23791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23792 }
23793 if (!argp1) {
23794 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23795 }
23796 arg1 = reinterpret_cast< wxDC * >(argp1);
23797 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
23798 if (!SWIG_IsOK(ecode2)) {
23799 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'");
23800 }
23801 arg2 = static_cast< int >(val2);
23802 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23803 if (!SWIG_IsOK(ecode3)) {
23804 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'");
23805 }
23806 arg3 = static_cast< int >(val3);
23807 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
23808 if (!SWIG_IsOK(ecode4)) {
23809 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'");
23810 }
23811 arg4 = static_cast< int >(val4);
23812 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
23813 if (!SWIG_IsOK(ecode5)) {
23814 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'");
23815 }
23816 arg5 = static_cast< int >(val5);
23817 {
23818 PyThreadState* __tstate = wxPyBeginAllowThreads();
23819 result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5);
23820 wxPyEndAllowThreads(__tstate);
23821 if (PyErr_Occurred()) SWIG_fail;
23822 }
23823 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23824 return resultobj;
23825fail:
23826 return NULL;
23827}
23828
23829
23830SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) {
23831 int argc;
23832 PyObject *argv[6];
23833
23834 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail;
23835 --argc;
23836 if (argc == 2) {
23837 int _v = 0;
23838 {
23839 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0);
23840 _v = SWIG_CheckState(res);
23841 }
23842 if (!_v) goto check_1;
23843 return _wrap_new_DCClipper__SWIG_0(self, argc, argv);
23844 }
23845check_1:
23846
23847 if (argc == 2) {
23848 return _wrap_new_DCClipper__SWIG_1(self, argc, argv);
23849 }
23850 if (argc == 5) {
23851 return _wrap_new_DCClipper__SWIG_2(self, argc, argv);
23852 }
23853
23854fail:
23855 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'");
23856 return NULL;
23857}
23858
23859
23860SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23861 PyObject *resultobj = 0;
23862 wxDCClipper *arg1 = (wxDCClipper *) 0 ;
23863 void *argp1 = 0 ;
23864 int res1 = 0 ;
23865 PyObject *swig_obj[1] ;
23866
23867 if (!args) SWIG_fail;
23868 swig_obj[0] = args;
23869 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 );
23870 if (!SWIG_IsOK(res1)) {
23871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'");
23872 }
23873 arg1 = reinterpret_cast< wxDCClipper * >(argp1);
23874 {
23875 PyThreadState* __tstate = wxPyBeginAllowThreads();
23876 delete arg1;
23877
23878 wxPyEndAllowThreads(__tstate);
23879 if (PyErr_Occurred()) SWIG_fail;
23880 }
23881 resultobj = SWIG_Py_Void();
23882 return resultobj;
23883fail:
23884 return NULL;
23885}
23886
23887
23888SWIGINTERN PyObject *DCClipper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23889 PyObject *obj;
23890 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23891 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCClipper, SWIG_NewClientData(obj));
23892 return SWIG_Py_Void();
23893}
23894
23895SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23896 return SWIG_Python_InitShadowInstance(args);
23897}
23898
24f6c4e8
RD
23899SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23900 PyObject *resultobj = 0;
23901 wxScreenDC *result = 0 ;
23902
23903 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
23904 {
23905 if (!wxPyCheckForApp()) SWIG_fail;
23906 PyThreadState* __tstate = wxPyBeginAllowThreads();
23907 result = (wxScreenDC *)new wxScreenDC();
23908 wxPyEndAllowThreads(__tstate);
23909 if (PyErr_Occurred()) SWIG_fail;
23910 }
23911 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
23912 return resultobj;
23913fail:
23914 return NULL;
23915}
23916
23917
23918SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23919 PyObject *resultobj = 0;
23920 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23921 wxWindow *arg2 = (wxWindow *) 0 ;
23922 bool result;
23923 void *argp1 = 0 ;
23924 int res1 = 0 ;
23925 void *argp2 = 0 ;
23926 int res2 = 0 ;
23927 PyObject * obj0 = 0 ;
23928 PyObject * obj1 = 0 ;
23929 char * kwnames[] = {
23930 (char *) "self",(char *) "window", NULL
23931 };
23932
23933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
23934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23935 if (!SWIG_IsOK(res1)) {
23936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23937 }
23938 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23939 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
23940 if (!SWIG_IsOK(res2)) {
23941 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
23942 }
23943 arg2 = reinterpret_cast< wxWindow * >(argp2);
23944 {
23945 PyThreadState* __tstate = wxPyBeginAllowThreads();
23946 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23947 wxPyEndAllowThreads(__tstate);
23948 if (PyErr_Occurred()) SWIG_fail;
23949 }
23950 {
23951 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23952 }
23953 return resultobj;
23954fail:
23955 return NULL;
23956}
23957
23958
23959SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23960 PyObject *resultobj = 0;
23961 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23962 wxRect *arg2 = (wxRect *) NULL ;
23963 bool result;
23964 void *argp1 = 0 ;
23965 int res1 = 0 ;
23966 void *argp2 = 0 ;
23967 int res2 = 0 ;
23968 PyObject * obj0 = 0 ;
23969 PyObject * obj1 = 0 ;
23970 char * kwnames[] = {
23971 (char *) "self",(char *) "rect", NULL
23972 };
23973
23974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
23975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23976 if (!SWIG_IsOK(res1)) {
23977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23978 }
23979 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23980 if (obj1) {
23981 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
23982 if (!SWIG_IsOK(res2)) {
23983 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
23984 }
23985 arg2 = reinterpret_cast< wxRect * >(argp2);
23986 }
23987 {
23988 PyThreadState* __tstate = wxPyBeginAllowThreads();
23989 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23990 wxPyEndAllowThreads(__tstate);
23991 if (PyErr_Occurred()) SWIG_fail;
23992 }
23993 {
23994 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23995 }
23996 return resultobj;
23997fail:
23998 return NULL;
23999}
24000
24001
24002SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24003 PyObject *resultobj = 0;
24004 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24005 bool result;
24006 void *argp1 = 0 ;
24007 int res1 = 0 ;
24008 PyObject *swig_obj[1] ;
24009
24010 if (!args) SWIG_fail;
24011 swig_obj[0] = args;
24012 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24013 if (!SWIG_IsOK(res1)) {
24014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24015 }
24016 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24017 {
24018 PyThreadState* __tstate = wxPyBeginAllowThreads();
24019 result = (bool)(arg1)->EndDrawingOnTop();
24020 wxPyEndAllowThreads(__tstate);
24021 if (PyErr_Occurred()) SWIG_fail;
24022 }
24023 {
24024 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24025 }
24026 return resultobj;
24027fail:
24028 return NULL;
24029}
24030
24031
24032SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24033 PyObject *obj;
24034 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24035 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
24036 return SWIG_Py_Void();
24037}
24038
24039SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24040 return SWIG_Python_InitShadowInstance(args);
24041}
24042
24043SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24044 PyObject *resultobj = 0;
24045 wxWindow *arg1 = (wxWindow *) 0 ;
24046 wxWindowDC *result = 0 ;
24047 void *argp1 = 0 ;
24048 int res1 = 0 ;
24049 PyObject * obj0 = 0 ;
24050 char * kwnames[] = {
24051 (char *) "win", NULL
24052 };
24053
24054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24056 if (!SWIG_IsOK(res1)) {
24057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24058 }
24059 arg1 = reinterpret_cast< wxWindow * >(argp1);
24060 {
24061 if (!wxPyCheckForApp()) SWIG_fail;
24062 PyThreadState* __tstate = wxPyBeginAllowThreads();
24063 result = (wxWindowDC *)new wxWindowDC(arg1);
24064 wxPyEndAllowThreads(__tstate);
24065 if (PyErr_Occurred()) SWIG_fail;
24066 }
24067 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24068 return resultobj;
24069fail:
24070 return NULL;
24071}
24072
24073
24074SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24075 PyObject *obj;
24076 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24077 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24078 return SWIG_Py_Void();
24079}
24080
24081SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24082 return SWIG_Python_InitShadowInstance(args);
24083}
24084
24085SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24086 PyObject *resultobj = 0;
24087 wxWindow *arg1 = (wxWindow *) 0 ;
24088 wxClientDC *result = 0 ;
24089 void *argp1 = 0 ;
24090 int res1 = 0 ;
24091 PyObject * obj0 = 0 ;
24092 char * kwnames[] = {
24093 (char *) "win", NULL
24094 };
24095
24096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24098 if (!SWIG_IsOK(res1)) {
24099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24100 }
24101 arg1 = reinterpret_cast< wxWindow * >(argp1);
24102 {
24103 if (!wxPyCheckForApp()) SWIG_fail;
24104 PyThreadState* __tstate = wxPyBeginAllowThreads();
24105 result = (wxClientDC *)new wxClientDC(arg1);
24106 wxPyEndAllowThreads(__tstate);
24107 if (PyErr_Occurred()) SWIG_fail;
24108 }
24109 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24110 return resultobj;
24111fail:
24112 return NULL;
24113}
24114
24115
24116SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24117 PyObject *obj;
24118 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24119 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24120 return SWIG_Py_Void();
24121}
24122
24123SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24124 return SWIG_Python_InitShadowInstance(args);
24125}
24126
24127SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24128 PyObject *resultobj = 0;
24129 wxWindow *arg1 = (wxWindow *) 0 ;
24130 wxPaintDC *result = 0 ;
24131 void *argp1 = 0 ;
24132 int res1 = 0 ;
24133 PyObject * obj0 = 0 ;
24134 char * kwnames[] = {
24135 (char *) "win", NULL
24136 };
24137
24138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
24139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24140 if (!SWIG_IsOK(res1)) {
24141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24142 }
24143 arg1 = reinterpret_cast< wxWindow * >(argp1);
24144 {
24145 if (!wxPyCheckForApp()) SWIG_fail;
24146 PyThreadState* __tstate = wxPyBeginAllowThreads();
24147 result = (wxPaintDC *)new wxPaintDC(arg1);
24148 wxPyEndAllowThreads(__tstate);
24149 if (PyErr_Occurred()) SWIG_fail;
24150 }
24151 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
24152 return resultobj;
24153fail:
24154 return NULL;
24155}
24156
24157
24158SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24159 PyObject *obj;
24160 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24161 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
24162 return SWIG_Py_Void();
24163}
24164
24165SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24166 return SWIG_Python_InitShadowInstance(args);
24167}
24168
26c4d26f
RD
24169SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24170 PyObject *resultobj = 0;
24171 wxBitmap &arg1_defvalue = wxNullBitmap ;
24172 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
24173 wxMemoryDC *result = 0 ;
24174 void *argp1 = 0 ;
24175 int res1 = 0 ;
24176 PyObject * obj0 = 0 ;
24177 char * kwnames[] = {
24178 (char *) "bitmap", NULL
24179 };
24180
24181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
24182 if (obj0) {
24183 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 );
24184 if (!SWIG_IsOK(res1)) {
24185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24186 }
24187 if (!argp1) {
24188 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24189 }
24190 arg1 = reinterpret_cast< wxBitmap * >(argp1);
24191 }
24192 {
24193 if (!wxPyCheckForApp()) SWIG_fail;
24194 PyThreadState* __tstate = wxPyBeginAllowThreads();
24195 result = (wxMemoryDC *)new wxMemoryDC(*arg1);
24196 wxPyEndAllowThreads(__tstate);
24197 if (PyErr_Occurred()) SWIG_fail;
24198 }
24199 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
24200 return resultobj;
24201fail:
24202 return NULL;
24203}
24204
24205
24206SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24207 PyObject *resultobj = 0;
24208 wxDC *arg1 = (wxDC *) 0 ;
24209 wxMemoryDC *result = 0 ;
24210 void *argp1 = 0 ;
24211 int res1 = 0 ;
24212 PyObject * obj0 = 0 ;
24213 char * kwnames[] = {
24214 (char *) "oldDC", NULL
24215 };
24216
24217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
24218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24219 if (!SWIG_IsOK(res1)) {
24220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
24221 }
24222 arg1 = reinterpret_cast< wxDC * >(argp1);
24223 {
24224 if (!wxPyCheckForApp()) SWIG_fail;
24225 PyThreadState* __tstate = wxPyBeginAllowThreads();
24226 result = (wxMemoryDC *)new wxMemoryDC(arg1);
24227 wxPyEndAllowThreads(__tstate);
24228 if (PyErr_Occurred()) SWIG_fail;
24229 }
24230 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
24231 return resultobj;
24232fail:
24233 return NULL;
24234}
24235
24236
24237SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24238 PyObject *resultobj = 0;
24239 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24240 wxBitmap *arg2 = 0 ;
24241 void *argp1 = 0 ;
24242 int res1 = 0 ;
24243 void *argp2 = 0 ;
24244 int res2 = 0 ;
24245 PyObject * obj0 = 0 ;
24246 PyObject * obj1 = 0 ;
24247 char * kwnames[] = {
24248 (char *) "self",(char *) "bitmap", NULL
24249 };
24250
24251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
24252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24253 if (!SWIG_IsOK(res1)) {
24254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24255 }
24256 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
24257 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
24258 if (!SWIG_IsOK(res2)) {
24259 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24260 }
24261 if (!argp2) {
24262 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24263 }
24264 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24265 {
24266 PyThreadState* __tstate = wxPyBeginAllowThreads();
24267 (arg1)->SelectObject(*arg2);
24268 wxPyEndAllowThreads(__tstate);
24269 if (PyErr_Occurred()) SWIG_fail;
24270 }
24271 resultobj = SWIG_Py_Void();
24272 return resultobj;
24273fail:
24274 return NULL;
24275}
24276
24277
24278SWIGINTERN PyObject *_wrap_MemoryDC_SelectObjectAsSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24279 PyObject *resultobj = 0;
24280 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24281 wxBitmap *arg2 = 0 ;
24282 void *argp1 = 0 ;
24283 int res1 = 0 ;
24284 void *argp2 = 0 ;
24285 int res2 = 0 ;
24286 PyObject * obj0 = 0 ;
24287 PyObject * obj1 = 0 ;
24288 char * kwnames[] = {
24289 (char *) "self",(char *) "bmp", NULL
24290 };
24291
24292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObjectAsSource",kwnames,&obj0,&obj1)) SWIG_fail;
24293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24294 if (!SWIG_IsOK(res1)) {
24295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24296 }
24297 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
24298 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24299 if (!SWIG_IsOK(res2)) {
24300 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24301 }
24302 if (!argp2) {
24303 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24304 }
24305 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24306 {
24307 PyThreadState* __tstate = wxPyBeginAllowThreads();
24308 (arg1)->SelectObjectAsSource((wxBitmap const &)*arg2);
24309 wxPyEndAllowThreads(__tstate);
24310 if (PyErr_Occurred()) SWIG_fail;
24311 }
24312 resultobj = SWIG_Py_Void();
24313 return resultobj;
24314fail:
24315 return NULL;
24316}
24317
24318
24319SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24320 PyObject *obj;
24321 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24322 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
24323 return SWIG_Py_Void();
24324}
24325
24326SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24327 return SWIG_Python_InitShadowInstance(args);
24328}
24329
1bd55598
RD
24330SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24331 PyObject *resultobj = 0;
24332 wxDC *arg1 = (wxDC *) 0 ;
b6df5cf9 24333 wxBitmap &arg2_defvalue = wxNullBitmap ;
1bd55598
RD
24334 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24335 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24336 wxBufferedDC *result = 0 ;
24337 void *argp1 = 0 ;
24338 int res1 = 0 ;
24339 void *argp2 = 0 ;
24340 int res2 = 0 ;
24341 int val3 ;
24342 int ecode3 = 0 ;
24343
24344 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
24345 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24346 if (!SWIG_IsOK(res1)) {
24347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24348 }
24349 arg1 = reinterpret_cast< wxDC * >(argp1);
24350 if (swig_obj[1]) {
b6df5cf9 24351 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 );
1bd55598 24352 if (!SWIG_IsOK(res2)) {
b6df5cf9 24353 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
36ed4f51 24354 }
1bd55598 24355 if (!argp2) {
b6df5cf9 24356 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
36ed4f51 24357 }
1bd55598
RD
24358 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24359 }
24360 if (swig_obj[2]) {
24361 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24362 if (!SWIG_IsOK(ecode3)) {
24363 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24364 }
24365 arg3 = static_cast< int >(val3);
24366 }
24367 {
24368 if (!wxPyCheckForApp()) SWIG_fail;
24369 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6df5cf9 24370 result = (wxBufferedDC *)new wxBufferedDC(arg1,*arg2,arg3);
1bd55598
RD
24371 wxPyEndAllowThreads(__tstate);
24372 if (PyErr_Occurred()) SWIG_fail;
24373 }
24374 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24375 return resultobj;
24376fail:
24377 return NULL;
24378}
24379
24380
24381SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24382 PyObject *resultobj = 0;
24383 wxDC *arg1 = (wxDC *) 0 ;
24384 wxSize *arg2 = 0 ;
24385 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24386 wxBufferedDC *result = 0 ;
24387 void *argp1 = 0 ;
24388 int res1 = 0 ;
24389 wxSize temp2 ;
24390 int val3 ;
24391 int ecode3 = 0 ;
24392
24393 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
24394 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24395 if (!SWIG_IsOK(res1)) {
24396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24397 }
24398 arg1 = reinterpret_cast< wxDC * >(argp1);
24399 {
24400 arg2 = &temp2;
24401 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
24402 }
24403 if (swig_obj[2]) {
24404 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24405 if (!SWIG_IsOK(ecode3)) {
24406 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24407 }
24408 arg3 = static_cast< int >(val3);
24409 }
24410 {
24411 if (!wxPyCheckForApp()) SWIG_fail;
24412 PyThreadState* __tstate = wxPyBeginAllowThreads();
24413 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
24414 wxPyEndAllowThreads(__tstate);
24415 if (PyErr_Occurred()) SWIG_fail;
24416 }
24417 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24418 return resultobj;
24419fail:
24420 return NULL;
24421}
24422
24423
24424SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
24425 int argc;
8e99bda9 24426 PyObject *argv[4];
1bd55598 24427
8e99bda9 24428 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
1bd55598
RD
24429 --argc;
24430 if ((argc >= 1) && (argc <= 3)) {
24431 int _v = 0;
24432 if (argc > 1) {
24433 {
b6df5cf9
RD
24434 void *vptr = 0;
24435 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxBitmap, 0);
1bd55598
RD
24436 _v = SWIG_CheckState(res);
24437 }
24438 if (!_v) goto check_1;
36ed4f51 24439 }
1bd55598
RD
24440 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
24441 }
24442check_1:
24443
24444 if ((argc >= 2) && (argc <= 3)) {
24445 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
24446 }
24447
24448fail:
24449 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
24450 return NULL;
24451}
24452
24453
24454SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24455 PyObject *resultobj = 0;
24456 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24457 void *argp1 = 0 ;
24458 int res1 = 0 ;
24459 PyObject *swig_obj[1] ;
24460
24461 if (!args) SWIG_fail;
24462 swig_obj[0] = args;
24463 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
24464 if (!SWIG_IsOK(res1)) {
24465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24466 }
24467 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24468 {
24469 PyThreadState* __tstate = wxPyBeginAllowThreads();
24470 delete arg1;
24471
24472 wxPyEndAllowThreads(__tstate);
24473 if (PyErr_Occurred()) SWIG_fail;
24474 }
24475 resultobj = SWIG_Py_Void();
24476 return resultobj;
24477fail:
24478 return NULL;
24479}
24480
24481
24482SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24483 PyObject *resultobj = 0;
24484 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24485 void *argp1 = 0 ;
24486 int res1 = 0 ;
24487 PyObject *swig_obj[1] ;
24488
24489 if (!args) SWIG_fail;
24490 swig_obj[0] = args;
24491 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24492 if (!SWIG_IsOK(res1)) {
24493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24494 }
24495 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24496 {
24497 PyThreadState* __tstate = wxPyBeginAllowThreads();
24498 (arg1)->UnMask();
24499 wxPyEndAllowThreads(__tstate);
24500 if (PyErr_Occurred()) SWIG_fail;
24501 }
24502 resultobj = SWIG_Py_Void();
24503 return resultobj;
24504fail:
24505 return NULL;
24506}
24507
24508
b6df5cf9
RD
24509SWIGINTERN PyObject *_wrap_BufferedDC_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24510 PyObject *resultobj = 0;
24511 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24512 int arg2 ;
24513 void *argp1 = 0 ;
24514 int res1 = 0 ;
24515 int val2 ;
24516 int ecode2 = 0 ;
24517 PyObject * obj0 = 0 ;
24518 PyObject * obj1 = 0 ;
24519 char * kwnames[] = {
24520 (char *) "self",(char *) "style", NULL
24521 };
24522
24523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BufferedDC_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
24524 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24525 if (!SWIG_IsOK(res1)) {
24526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_SetStyle" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24527 }
24528 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24529 ecode2 = SWIG_AsVal_int(obj1, &val2);
24530 if (!SWIG_IsOK(ecode2)) {
24531 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufferedDC_SetStyle" "', expected argument " "2"" of type '" "int""'");
24532 }
24533 arg2 = static_cast< int >(val2);
24534 {
24535 PyThreadState* __tstate = wxPyBeginAllowThreads();
24536 (arg1)->SetStyle(arg2);
24537 wxPyEndAllowThreads(__tstate);
24538 if (PyErr_Occurred()) SWIG_fail;
24539 }
24540 resultobj = SWIG_Py_Void();
24541 return resultobj;
24542fail:
24543 return NULL;
24544}
24545
24546
24547SWIGINTERN PyObject *_wrap_BufferedDC_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24548 PyObject *resultobj = 0;
24549 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24550 int result;
24551 void *argp1 = 0 ;
24552 int res1 = 0 ;
24553 PyObject *swig_obj[1] ;
24554
24555 if (!args) SWIG_fail;
24556 swig_obj[0] = args;
24557 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24558 if (!SWIG_IsOK(res1)) {
24559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_GetStyle" "', expected argument " "1"" of type '" "wxBufferedDC const *""'");
24560 }
24561 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24562 {
24563 PyThreadState* __tstate = wxPyBeginAllowThreads();
24564 result = (int)((wxBufferedDC const *)arg1)->GetStyle();
24565 wxPyEndAllowThreads(__tstate);
24566 if (PyErr_Occurred()) SWIG_fail;
24567 }
24568 resultobj = SWIG_From_int(static_cast< int >(result));
24569 return resultobj;
24570fail:
24571 return NULL;
24572}
24573
24574
1bd55598
RD
24575SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24576 PyObject *obj;
24577 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24578 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
24579 return SWIG_Py_Void();
24580}
24581
24582SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24583 return SWIG_Python_InitShadowInstance(args);
24584}
24585
24586SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24587 PyObject *resultobj = 0;
24588 wxWindow *arg1 = (wxWindow *) 0 ;
b6df5cf9 24589 wxBitmap &arg2_defvalue = wxNullBitmap ;
1bd55598
RD
24590 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24591 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24592 wxBufferedPaintDC *result = 0 ;
24593 void *argp1 = 0 ;
24594 int res1 = 0 ;
24595 void *argp2 = 0 ;
24596 int res2 = 0 ;
24597 int val3 ;
24598 int ecode3 = 0 ;
24599 PyObject * obj0 = 0 ;
24600 PyObject * obj1 = 0 ;
24601 PyObject * obj2 = 0 ;
24602 char * kwnames[] = {
24603 (char *) "window",(char *) "buffer",(char *) "style", NULL
24604 };
24605
24606 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24607 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24608 if (!SWIG_IsOK(res1)) {
24609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24610 }
24611 arg1 = reinterpret_cast< wxWindow * >(argp1);
24612 if (obj1) {
b6df5cf9 24613 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
1bd55598 24614 if (!SWIG_IsOK(res2)) {
b6df5cf9 24615 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
36ed4f51 24616 }
1bd55598 24617 if (!argp2) {
b6df5cf9 24618 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
36ed4f51 24619 }
1bd55598
RD
24620 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24621 }
24622 if (obj2) {
24623 ecode3 = SWIG_AsVal_int(obj2, &val3);
24624 if (!SWIG_IsOK(ecode3)) {
24625 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
24626 }
24627 arg3 = static_cast< int >(val3);
24628 }
24629 {
24630 if (!wxPyCheckForApp()) SWIG_fail;
24631 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6df5cf9 24632 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,*arg2,arg3);
1bd55598
RD
24633 wxPyEndAllowThreads(__tstate);
24634 if (PyErr_Occurred()) SWIG_fail;
24635 }
24636 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
24637 return resultobj;
24638fail:
24639 return NULL;
24640}
24641
24642
24643SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24644 PyObject *obj;
24645 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24646 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
24647 return SWIG_Py_Void();
24648}
24649
24650SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24651 return SWIG_Python_InitShadowInstance(args);
24652}
24653
24f6c4e8 24654SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
24655 PyObject *resultobj = 0;
24656 wxWindow *arg1 = (wxWindow *) 0 ;
24f6c4e8 24657 wxAutoBufferedPaintDC *result = 0 ;
1bd55598
RD
24658 void *argp1 = 0 ;
24659 int res1 = 0 ;
24660 PyObject * obj0 = 0 ;
24661 char * kwnames[] = {
24662 (char *) "win", NULL
24663 };
24664
24f6c4e8 24665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
1bd55598
RD
24666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24667 if (!SWIG_IsOK(res1)) {
24f6c4e8 24668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
1bd55598
RD
24669 }
24670 arg1 = reinterpret_cast< wxWindow * >(argp1);
24671 {
1bd55598 24672 PyThreadState* __tstate = wxPyBeginAllowThreads();
24f6c4e8 24673 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
1bd55598
RD
24674 wxPyEndAllowThreads(__tstate);
24675 if (PyErr_Occurred()) SWIG_fail;
24676 }
24f6c4e8 24677 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
1bd55598
RD
24678 return resultobj;
24679fail:
24680 return NULL;
24681}
24682
24683
24f6c4e8 24684SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
24685 PyObject *obj;
24686 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24f6c4e8 24687 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
1bd55598
RD
24688 return SWIG_Py_Void();
24689}
24690
24f6c4e8 24691SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
24692 return SWIG_Python_InitShadowInstance(args);
24693}
24694
8e99bda9
RD
24695SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24696 PyObject *resultobj = 0;
24697 wxWindow *arg1 = (wxWindow *) 0 ;
24698 wxDC *result = 0 ;
24699 void *argp1 = 0 ;
24700 int res1 = 0 ;
24701 PyObject * obj0 = 0 ;
24702 char * kwnames[] = {
24703 (char *) "window", NULL
24704 };
24705
24706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
24707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24708 if (!SWIG_IsOK(res1)) {
24709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
24710 }
24711 arg1 = reinterpret_cast< wxWindow * >(argp1);
24712 {
24713 PyThreadState* __tstate = wxPyBeginAllowThreads();
24714 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
24715 wxPyEndAllowThreads(__tstate);
24716 if (PyErr_Occurred()) SWIG_fail;
24717 }
24718 {
24719 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
24720 }
24721 return resultobj;
24722fail:
24723 return NULL;
24724}
24725
24726
1bd55598
RD
24727SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24728 PyObject *resultobj = 0;
24729 wxDC *arg1 = 0 ;
24730 bool arg2 ;
24731 wxMirrorDC *result = 0 ;
24732 void *argp1 = 0 ;
24733 int res1 = 0 ;
24734 bool val2 ;
24735 int ecode2 = 0 ;
24736 PyObject * obj0 = 0 ;
24737 PyObject * obj1 = 0 ;
24738 char * kwnames[] = {
24739 (char *) "dc",(char *) "mirror", NULL
24740 };
24741
24742 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
24743 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24744 if (!SWIG_IsOK(res1)) {
24745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24746 }
24747 if (!argp1) {
24748 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24749 }
24750 arg1 = reinterpret_cast< wxDC * >(argp1);
24751 ecode2 = SWIG_AsVal_bool(obj1, &val2);
24752 if (!SWIG_IsOK(ecode2)) {
24753 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
24754 }
24755 arg2 = static_cast< bool >(val2);
24756 {
24757 if (!wxPyCheckForApp()) SWIG_fail;
24758 PyThreadState* __tstate = wxPyBeginAllowThreads();
24759 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
24760 wxPyEndAllowThreads(__tstate);
24761 if (PyErr_Occurred()) SWIG_fail;
24762 }
24763 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
24764 return resultobj;
24765fail:
24766 return NULL;
24767}
24768
24769
24770SWIGINTERN PyObject *MirrorDC_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_wxMirrorDC, SWIG_NewClientData(obj));
24774 return SWIG_Py_Void();
24775}
24776
24777SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24778 return SWIG_Python_InitShadowInstance(args);
24779}
24780
24781SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24782 PyObject *resultobj = 0;
24783 wxPrintData *arg1 = 0 ;
24784 wxPostScriptDC *result = 0 ;
24785 void *argp1 = 0 ;
24786 int res1 = 0 ;
24787 PyObject * obj0 = 0 ;
24788 char * kwnames[] = {
24789 (char *) "printData", NULL
24790 };
24791
24792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
24793 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24794 if (!SWIG_IsOK(res1)) {
24795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24796 }
24797 if (!argp1) {
24798 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24799 }
24800 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24801 {
24802 if (!wxPyCheckForApp()) SWIG_fail;
24803 PyThreadState* __tstate = wxPyBeginAllowThreads();
24804 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
24805 wxPyEndAllowThreads(__tstate);
24806 if (PyErr_Occurred()) SWIG_fail;
24807 }
24808 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
24809 return resultobj;
24810fail:
24811 return NULL;
24812}
24813
24814
24815SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24816 PyObject *resultobj = 0;
24817 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24818 wxPrintData *result = 0 ;
24819 void *argp1 = 0 ;
24820 int res1 = 0 ;
24821 PyObject *swig_obj[1] ;
24822
24823 if (!args) SWIG_fail;
24824 swig_obj[0] = args;
24825 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24826 if (!SWIG_IsOK(res1)) {
24827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24828 }
24829 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24830 {
24831 PyThreadState* __tstate = wxPyBeginAllowThreads();
e2950dbb 24832 {
1bd55598
RD
24833 wxPrintData &_result_ref = (arg1)->GetPrintData();
24834 result = (wxPrintData *) &_result_ref;
e2950dbb 24835 }
1bd55598
RD
24836 wxPyEndAllowThreads(__tstate);
24837 if (PyErr_Occurred()) SWIG_fail;
24838 }
24839 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
24840 return resultobj;
24841fail:
24842 return NULL;
24843}
24844
24845
24846SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24847 PyObject *resultobj = 0;
24848 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24849 wxPrintData *arg2 = 0 ;
24850 void *argp1 = 0 ;
24851 int res1 = 0 ;
24852 void *argp2 = 0 ;
24853 int res2 = 0 ;
24854 PyObject * obj0 = 0 ;
24855 PyObject * obj1 = 0 ;
24856 char * kwnames[] = {
24857 (char *) "self",(char *) "data", NULL
24858 };
24859
24860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
24861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24862 if (!SWIG_IsOK(res1)) {
24863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24864 }
24865 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24866 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
24867 if (!SWIG_IsOK(res2)) {
24868 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24869 }
24870 if (!argp2) {
24871 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24872 }
24873 arg2 = reinterpret_cast< wxPrintData * >(argp2);
24874 {
24875 PyThreadState* __tstate = wxPyBeginAllowThreads();
24876 (arg1)->SetPrintData((wxPrintData const &)*arg2);
24877 wxPyEndAllowThreads(__tstate);
24878 if (PyErr_Occurred()) SWIG_fail;
24879 }
24880 resultobj = SWIG_Py_Void();
24881 return resultobj;
24882fail:
24883 return NULL;
24884}
24885
24886
24887SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24888 PyObject *resultobj = 0;
24889 int arg1 ;
24890 int val1 ;
24891 int ecode1 = 0 ;
24892 PyObject * obj0 = 0 ;
24893 char * kwnames[] = {
24894 (char *) "ppi", NULL
24895 };
24896
24897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
24898 ecode1 = SWIG_AsVal_int(obj0, &val1);
24899 if (!SWIG_IsOK(ecode1)) {
24900 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
24901 }
24902 arg1 = static_cast< int >(val1);
24903 {
24904 PyThreadState* __tstate = wxPyBeginAllowThreads();
24905 wxPostScriptDC::SetResolution(arg1);
24906 wxPyEndAllowThreads(__tstate);
24907 if (PyErr_Occurred()) SWIG_fail;
24908 }
24909 resultobj = SWIG_Py_Void();
24910 return resultobj;
24911fail:
24912 return NULL;
24913}
24914
24915
24916SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24917 PyObject *resultobj = 0;
24918 int result;
24919
24920 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
24921 {
24922 PyThreadState* __tstate = wxPyBeginAllowThreads();
24923 result = (int)wxPostScriptDC::GetResolution();
24924 wxPyEndAllowThreads(__tstate);
24925 if (PyErr_Occurred()) SWIG_fail;
24926 }
24927 resultobj = SWIG_From_int(static_cast< int >(result));
24928 return resultobj;
24929fail:
24930 return NULL;
24931}
24932
24933
24934SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24935 PyObject *obj;
24936 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24937 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
24938 return SWIG_Py_Void();
24939}
24940
24941SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24942 return SWIG_Python_InitShadowInstance(args);
24943}
24944
24945SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24946 PyObject *resultobj = 0;
24947 wxString const &arg1_defvalue = wxPyEmptyString ;
24948 wxString *arg1 = (wxString *) &arg1_defvalue ;
24949 wxMetaFile *result = 0 ;
24950 bool temp1 = false ;
24951 PyObject * obj0 = 0 ;
24952 char * kwnames[] = {
24953 (char *) "filename", NULL
24954 };
24955
24956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
24957 if (obj0) {
36ed4f51 24958 {
1bd55598
RD
24959 arg1 = wxString_in_helper(obj0);
24960 if (arg1 == NULL) SWIG_fail;
24961 temp1 = true;
36ed4f51 24962 }
1bd55598
RD
24963 }
24964 {
24965 if (!wxPyCheckForApp()) SWIG_fail;
24966 PyThreadState* __tstate = wxPyBeginAllowThreads();
24967 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
24968 wxPyEndAllowThreads(__tstate);
24969 if (PyErr_Occurred()) SWIG_fail;
24970 }
24971 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
24972 {
24973 if (temp1)
24974 delete arg1;
24975 }
24976 return resultobj;
24977fail:
24978 {
24979 if (temp1)
24980 delete arg1;
24981 }
24982 return NULL;
24983}
24984
24985
24986SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24987 PyObject *resultobj = 0;
24988 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24989 void *argp1 = 0 ;
24990 int res1 = 0 ;
24991 PyObject *swig_obj[1] ;
24992
24993 if (!args) SWIG_fail;
24994 swig_obj[0] = args;
24995 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
24996 if (!SWIG_IsOK(res1)) {
24997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24998 }
24999 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25000 {
25001 PyThreadState* __tstate = wxPyBeginAllowThreads();
25002 delete arg1;
25003
25004 wxPyEndAllowThreads(__tstate);
25005 if (PyErr_Occurred()) SWIG_fail;
25006 }
25007 resultobj = SWIG_Py_Void();
25008 return resultobj;
25009fail:
25010 return NULL;
25011}
25012
25013
b39fe951 25014SWIGINTERN PyObject *_wrap_MetaFile_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
25015 PyObject *resultobj = 0;
25016 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25017 bool result;
25018 void *argp1 = 0 ;
25019 int res1 = 0 ;
25020 PyObject *swig_obj[1] ;
25021
25022 if (!args) SWIG_fail;
25023 swig_obj[0] = args;
25024 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25025 if (!SWIG_IsOK(res1)) {
b39fe951 25026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_IsOk" "', expected argument " "1"" of type '" "wxMetaFile *""'");
1bd55598
RD
25027 }
25028 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25029 {
25030 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 25031 result = (bool)(arg1)->IsOk();
1bd55598
RD
25032 wxPyEndAllowThreads(__tstate);
25033 if (PyErr_Occurred()) SWIG_fail;
25034 }
25035 {
25036 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25037 }
25038 return resultobj;
25039fail:
25040 return NULL;
25041}
25042
25043
25044SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25045 PyObject *resultobj = 0;
25046 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25047 int arg2 = (int) 0 ;
25048 int arg3 = (int) 0 ;
25049 bool result;
25050 void *argp1 = 0 ;
25051 int res1 = 0 ;
25052 int val2 ;
25053 int ecode2 = 0 ;
25054 int val3 ;
25055 int ecode3 = 0 ;
25056 PyObject * obj0 = 0 ;
25057 PyObject * obj1 = 0 ;
25058 PyObject * obj2 = 0 ;
25059 char * kwnames[] = {
25060 (char *) "self",(char *) "width",(char *) "height", NULL
25061 };
25062
25063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25065 if (!SWIG_IsOK(res1)) {
25066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25067 }
25068 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25069 if (obj1) {
25070 ecode2 = SWIG_AsVal_int(obj1, &val2);
25071 if (!SWIG_IsOK(ecode2)) {
25072 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
25073 }
25074 arg2 = static_cast< int >(val2);
25075 }
25076 if (obj2) {
25077 ecode3 = SWIG_AsVal_int(obj2, &val3);
25078 if (!SWIG_IsOK(ecode3)) {
25079 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
25080 }
25081 arg3 = static_cast< int >(val3);
25082 }
25083 {
25084 PyThreadState* __tstate = wxPyBeginAllowThreads();
25085 result = (bool)(arg1)->SetClipboard(arg2,arg3);
25086 wxPyEndAllowThreads(__tstate);
25087 if (PyErr_Occurred()) SWIG_fail;
25088 }
25089 {
25090 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25091 }
25092 return resultobj;
25093fail:
25094 return NULL;
25095}
25096
25097
25098SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25099 PyObject *resultobj = 0;
25100 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25101 wxSize result;
25102 void *argp1 = 0 ;
25103 int res1 = 0 ;
25104 PyObject *swig_obj[1] ;
25105
25106 if (!args) SWIG_fail;
25107 swig_obj[0] = args;
25108 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25109 if (!SWIG_IsOK(res1)) {
25110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25111 }
25112 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25113 {
25114 PyThreadState* __tstate = wxPyBeginAllowThreads();
25115 result = (arg1)->GetSize();
25116 wxPyEndAllowThreads(__tstate);
25117 if (PyErr_Occurred()) SWIG_fail;
25118 }
25119 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25120 return resultobj;
25121fail:
25122 return NULL;
25123}
25124
25125
25126SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25127 PyObject *resultobj = 0;
25128 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25129 int result;
25130 void *argp1 = 0 ;
25131 int res1 = 0 ;
25132 PyObject *swig_obj[1] ;
25133
25134 if (!args) SWIG_fail;
25135 swig_obj[0] = args;
25136 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25137 if (!SWIG_IsOK(res1)) {
25138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25139 }
25140 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25141 {
25142 PyThreadState* __tstate = wxPyBeginAllowThreads();
25143 result = (int)(arg1)->GetWidth();
25144 wxPyEndAllowThreads(__tstate);
25145 if (PyErr_Occurred()) SWIG_fail;
25146 }
25147 resultobj = SWIG_From_int(static_cast< int >(result));
25148 return resultobj;
25149fail:
25150 return NULL;
25151}
25152
25153
25154SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25155 PyObject *resultobj = 0;
25156 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25157 int result;
25158 void *argp1 = 0 ;
25159 int res1 = 0 ;
25160 PyObject *swig_obj[1] ;
25161
25162 if (!args) SWIG_fail;
25163 swig_obj[0] = args;
25164 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25165 if (!SWIG_IsOK(res1)) {
25166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25167 }
25168 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25169 {
25170 PyThreadState* __tstate = wxPyBeginAllowThreads();
25171 result = (int)(arg1)->GetHeight();
25172 wxPyEndAllowThreads(__tstate);
25173 if (PyErr_Occurred()) SWIG_fail;
25174 }
25175 resultobj = SWIG_From_int(static_cast< int >(result));
25176 return resultobj;
25177fail:
25178 return NULL;
25179}
25180
25181
25182SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25183 PyObject *obj;
25184 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25185 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
25186 return SWIG_Py_Void();
25187}
25188
25189SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25190 return SWIG_Python_InitShadowInstance(args);
25191}
25192
25193SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25194 PyObject *resultobj = 0;
25195 wxString const &arg1_defvalue = wxPyEmptyString ;
25196 wxString *arg1 = (wxString *) &arg1_defvalue ;
25197 int arg2 = (int) 0 ;
25198 int arg3 = (int) 0 ;
25199 wxString const &arg4_defvalue = wxPyEmptyString ;
25200 wxString *arg4 = (wxString *) &arg4_defvalue ;
25201 wxMetaFileDC *result = 0 ;
25202 bool temp1 = false ;
25203 int val2 ;
25204 int ecode2 = 0 ;
25205 int val3 ;
25206 int ecode3 = 0 ;
25207 bool temp4 = false ;
25208 PyObject * obj0 = 0 ;
25209 PyObject * obj1 = 0 ;
25210 PyObject * obj2 = 0 ;
25211 PyObject * obj3 = 0 ;
25212 char * kwnames[] = {
25213 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
25214 };
25215
25216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25217 if (obj0) {
36ed4f51 25218 {
1bd55598
RD
25219 arg1 = wxString_in_helper(obj0);
25220 if (arg1 == NULL) SWIG_fail;
25221 temp1 = true;
36ed4f51 25222 }
1bd55598
RD
25223 }
25224 if (obj1) {
25225 ecode2 = SWIG_AsVal_int(obj1, &val2);
25226 if (!SWIG_IsOK(ecode2)) {
25227 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
25228 }
25229 arg2 = static_cast< int >(val2);
25230 }
25231 if (obj2) {
25232 ecode3 = SWIG_AsVal_int(obj2, &val3);
25233 if (!SWIG_IsOK(ecode3)) {
25234 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
25235 }
25236 arg3 = static_cast< int >(val3);
25237 }
25238 if (obj3) {
36ed4f51 25239 {
1bd55598
RD
25240 arg4 = wxString_in_helper(obj3);
25241 if (arg4 == NULL) SWIG_fail;
25242 temp4 = true;
36ed4f51 25243 }
1bd55598
RD
25244 }
25245 {
25246 if (!wxPyCheckForApp()) SWIG_fail;
25247 PyThreadState* __tstate = wxPyBeginAllowThreads();
25248 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
25249 wxPyEndAllowThreads(__tstate);
25250 if (PyErr_Occurred()) SWIG_fail;
25251 }
25252 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
25253 {
25254 if (temp1)
25255 delete arg1;
25256 }
25257 {
25258 if (temp4)
25259 delete arg4;
25260 }
25261 return resultobj;
25262fail:
25263 {
25264 if (temp1)
25265 delete arg1;
25266 }
25267 {
25268 if (temp4)
25269 delete arg4;
25270 }
25271 return NULL;
25272}
25273
25274
25275SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25276 PyObject *resultobj = 0;
25277 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
25278 wxMetaFile *result = 0 ;
25279 void *argp1 = 0 ;
25280 int res1 = 0 ;
25281 PyObject *swig_obj[1] ;
25282
25283 if (!args) SWIG_fail;
25284 swig_obj[0] = args;
25285 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
25286 if (!SWIG_IsOK(res1)) {
25287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
25288 }
25289 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
25290 {
25291 PyThreadState* __tstate = wxPyBeginAllowThreads();
25292 result = (wxMetaFile *)(arg1)->Close();
25293 wxPyEndAllowThreads(__tstate);
25294 if (PyErr_Occurred()) SWIG_fail;
25295 }
25296 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
25297 return resultobj;
25298fail:
25299 return NULL;
25300}
25301
25302
25303SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25304 PyObject *obj;
25305 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25306 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
25307 return SWIG_Py_Void();
25308}
25309
25310SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25311 return SWIG_Python_InitShadowInstance(args);
25312}
25313
25314SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25315 PyObject *resultobj = 0;
25316 wxPrintData *arg1 = 0 ;
25317 wxPrinterDC *result = 0 ;
25318 void *argp1 = 0 ;
25319 int res1 = 0 ;
25320 PyObject * obj0 = 0 ;
25321 char * kwnames[] = {
25322 (char *) "printData", NULL
25323 };
25324
25325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
25326 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25327 if (!SWIG_IsOK(res1)) {
25328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25329 }
25330 if (!argp1) {
25331 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25332 }
25333 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25334 {
25335 if (!wxPyCheckForApp()) SWIG_fail;
25336 PyThreadState* __tstate = wxPyBeginAllowThreads();
25337 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
25338 wxPyEndAllowThreads(__tstate);
25339 if (PyErr_Occurred()) SWIG_fail;
25340 }
25341 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
25342 return resultobj;
25343fail:
25344 return NULL;
25345}
25346
25347
25348SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25349 PyObject *obj;
25350 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25351 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
25352 return SWIG_Py_Void();
25353}
25354
25355SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25356 return SWIG_Python_InitShadowInstance(args);
25357}
25358
70d7cb34
RD
25359SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25360 PyObject *resultobj = 0;
25361 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ;
25362 wxGraphicsObject *result = 0 ;
25363 void *argp1 = 0 ;
25364 int res1 = 0 ;
25365 PyObject * obj0 = 0 ;
25366 char * kwnames[] = {
25367 (char *) "renderer", NULL
25368 };
25369
25370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail;
25371 if (obj0) {
25372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25373 if (!SWIG_IsOK(res1)) {
25374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
25375 }
25376 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
25377 }
25378 {
25379 result = (wxGraphicsObject *)new wxGraphicsObject(arg1);
25380 if (PyErr_Occurred()) SWIG_fail;
25381 }
25382 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 );
25383 return resultobj;
25384fail:
25385 return NULL;
25386}
25387
25388
25389SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25390 PyObject *resultobj = 0;
25391 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25392 void *argp1 = 0 ;
25393 int res1 = 0 ;
25394 PyObject *swig_obj[1] ;
25395
25396 if (!args) SWIG_fail;
25397 swig_obj[0] = args;
25398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 );
25399 if (!SWIG_IsOK(res1)) {
25400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'");
25401 }
25402 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25403 {
25404 delete arg1;
25405
25406 if (PyErr_Occurred()) SWIG_fail;
25407 }
25408 resultobj = SWIG_Py_Void();
25409 return resultobj;
25410fail:
25411 return NULL;
25412}
25413
25414
25415SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25416 PyObject *resultobj = 0;
25417 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25418 bool result;
25419 void *argp1 = 0 ;
25420 int res1 = 0 ;
25421 PyObject *swig_obj[1] ;
25422
25423 if (!args) SWIG_fail;
25424 swig_obj[0] = args;
25425 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25426 if (!SWIG_IsOK(res1)) {
25427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25428 }
25429 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25430 {
25431 result = (bool)((wxGraphicsObject const *)arg1)->IsNull();
25432 if (PyErr_Occurred()) SWIG_fail;
25433 }
25434 {
25435 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25436 }
25437 return resultobj;
25438fail:
25439 return NULL;
25440}
25441
25442
25443SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25444 PyObject *resultobj = 0;
25445 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25446 wxGraphicsRenderer *result = 0 ;
25447 void *argp1 = 0 ;
25448 int res1 = 0 ;
25449 PyObject *swig_obj[1] ;
25450
25451 if (!args) SWIG_fail;
25452 swig_obj[0] = args;
25453 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25454 if (!SWIG_IsOK(res1)) {
25455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25456 }
25457 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25458 {
25459 result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer();
25460 if (PyErr_Occurred()) SWIG_fail;
25461 }
25462 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25463 return resultobj;
25464fail:
25465 return NULL;
25466}
25467
25468
25469SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25470 PyObject *obj;
25471 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25472 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj));
25473 return SWIG_Py_Void();
25474}
25475
25476SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25477 return SWIG_Python_InitShadowInstance(args);
25478}
25479
25480SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25481 PyObject *resultobj = 0;
25482 wxGraphicsPen *result = 0 ;
25483
25484 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail;
25485 {
25486 result = (wxGraphicsPen *)new wxGraphicsPen();
25487 if (PyErr_Occurred()) SWIG_fail;
25488 }
25489 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 );
25490 return resultobj;
25491fail:
25492 return NULL;
25493}
25494
25495
25496SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25497 PyObject *resultobj = 0;
25498 wxGraphicsPen *arg1 = (wxGraphicsPen *) 0 ;
25499 void *argp1 = 0 ;
25500 int res1 = 0 ;
25501 PyObject *swig_obj[1] ;
25502
25503 if (!args) SWIG_fail;
25504 swig_obj[0] = args;
25505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 );
25506 if (!SWIG_IsOK(res1)) {
25507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'");
25508 }
25509 arg1 = reinterpret_cast< wxGraphicsPen * >(argp1);
25510 {
25511 delete arg1;
25512
25513 if (PyErr_Occurred()) SWIG_fail;
25514 }
25515 resultobj = SWIG_Py_Void();
25516 return resultobj;
25517fail:
25518 return NULL;
25519}
25520
25521
25522SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25523 PyObject *obj;
25524 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25525 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj));
25526 return SWIG_Py_Void();
25527}
25528
25529SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25530 return SWIG_Python_InitShadowInstance(args);
25531}
25532
25533SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25534 PyObject *resultobj = 0;
25535 wxGraphicsBrush *result = 0 ;
25536
25537 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail;
25538 {
25539 result = (wxGraphicsBrush *)new wxGraphicsBrush();
25540 if (PyErr_Occurred()) SWIG_fail;
25541 }
25542 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 );
25543 return resultobj;
25544fail:
25545 return NULL;
25546}
25547
25548
25549SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25550 PyObject *resultobj = 0;
25551 wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ;
25552 void *argp1 = 0 ;
25553 int res1 = 0 ;
25554 PyObject *swig_obj[1] ;
25555
25556 if (!args) SWIG_fail;
25557 swig_obj[0] = args;
25558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 );
25559 if (!SWIG_IsOK(res1)) {
25560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'");
25561 }
25562 arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1);
25563 {
25564 delete arg1;
25565
25566 if (PyErr_Occurred()) SWIG_fail;
25567 }
25568 resultobj = SWIG_Py_Void();
25569 return resultobj;
25570fail:
25571 return NULL;
25572}
25573
25574
25575SWIGINTERN PyObject *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25576 PyObject *obj;
25577 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25578 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj));
25579 return SWIG_Py_Void();
25580}
25581
25582SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25583 return SWIG_Python_InitShadowInstance(args);
25584}
25585
25586SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25587 PyObject *resultobj = 0;
25588 wxGraphicsFont *result = 0 ;
25589
25590 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail;
25591 {
25592 result = (wxGraphicsFont *)new wxGraphicsFont();
25593 if (PyErr_Occurred()) SWIG_fail;
25594 }
25595 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 );
25596 return resultobj;
25597fail:
25598 return NULL;
25599}
25600
25601
25602SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25603 PyObject *resultobj = 0;
25604 wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ;
25605 void *argp1 = 0 ;
25606 int res1 = 0 ;
25607 PyObject *swig_obj[1] ;
25608
25609 if (!args) SWIG_fail;
25610 swig_obj[0] = args;
25611 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 );
25612 if (!SWIG_IsOK(res1)) {
25613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'");
25614 }
25615 arg1 = reinterpret_cast< wxGraphicsFont * >(argp1);
25616 {
25617 delete arg1;
25618
25619 if (PyErr_Occurred()) SWIG_fail;
25620 }
25621 resultobj = SWIG_Py_Void();
25622 return resultobj;
25623fail:
25624 return NULL;
25625}
25626
25627
25628SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25629 PyObject *obj;
25630 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25631 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj));
25632 return SWIG_Py_Void();
25633}
25634
25635SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25636 return SWIG_Python_InitShadowInstance(args);
25637}
25638
8f514ab4
RD
25639SWIGINTERN PyObject *_wrap_new_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25640 PyObject *resultobj = 0;
25641 wxGraphicsMatrix *result = 0 ;
25642
25643 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsMatrix",0,0,0)) SWIG_fail;
25644 {
25645 result = (wxGraphicsMatrix *)new wxGraphicsMatrix();
25646 if (PyErr_Occurred()) SWIG_fail;
25647 }
25648 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_NEW | 0 );
25649 return resultobj;
25650fail:
25651 return NULL;
25652}
25653
25654
5c8c7dd3 25655SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 25656 PyObject *resultobj = 0;
5c8c7dd3 25657 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
1bd55598
RD
25658 void *argp1 = 0 ;
25659 int res1 = 0 ;
25660 PyObject *swig_obj[1] ;
25661
25662 if (!args) SWIG_fail;
25663 swig_obj[0] = args;
5c8c7dd3 25664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 );
1bd55598 25665 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
1bd55598 25667 }
5c8c7dd3 25668 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
1bd55598 25669 {
1bd55598
RD
25670 delete arg1;
25671
1bd55598
RD
25672 if (PyErr_Occurred()) SWIG_fail;
25673 }
25674 resultobj = SWIG_Py_Void();
25675 return resultobj;
25676fail:
25677 return NULL;
25678}
25679
25680
5c8c7dd3 25681SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25682 PyObject *resultobj = 0;
5c8c7dd3
RD
25683 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25684 wxGraphicsMatrix *arg2 = 0 ;
70d7cb34
RD
25685 void *argp1 = 0 ;
25686 int res1 = 0 ;
5c8c7dd3
RD
25687 void *argp2 = 0 ;
25688 int res2 = 0 ;
25689 PyObject * obj0 = 0 ;
25690 PyObject * obj1 = 0 ;
25691 char * kwnames[] = {
25692 (char *) "self",(char *) "t", NULL
25693 };
70d7cb34 25694
5c8c7dd3
RD
25695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail;
25696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25697 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 25699 }
5c8c7dd3
RD
25700 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25701 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
25702 if (!SWIG_IsOK(res2)) {
25703 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25704 }
25705 if (!argp2) {
25706 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25707 }
25708 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 25709 {
5c8c7dd3 25710 (arg1)->Concat((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
25711 if (PyErr_Occurred()) SWIG_fail;
25712 }
5c8c7dd3 25713 resultobj = SWIG_Py_Void();
70d7cb34
RD
25714 return resultobj;
25715fail:
25716 return NULL;
25717}
25718
25719
5c8c7dd3 25720SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25721 PyObject *resultobj = 0;
5c8c7dd3
RD
25722 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25723 wxDouble arg2 = (wxDouble) 1.0 ;
25724 wxDouble arg3 = (wxDouble) 0.0 ;
25725 wxDouble arg4 = (wxDouble) 0.0 ;
25726 wxDouble arg5 = (wxDouble) 1.0 ;
25727 wxDouble arg6 = (wxDouble) 0.0 ;
25728 wxDouble arg7 = (wxDouble) 0.0 ;
70d7cb34
RD
25729 void *argp1 = 0 ;
25730 int res1 = 0 ;
5c8c7dd3
RD
25731 double val2 ;
25732 int ecode2 = 0 ;
25733 double val3 ;
25734 int ecode3 = 0 ;
25735 double val4 ;
25736 int ecode4 = 0 ;
25737 double val5 ;
25738 int ecode5 = 0 ;
25739 double val6 ;
25740 int ecode6 = 0 ;
25741 double val7 ;
25742 int ecode7 = 0 ;
25743 PyObject * obj0 = 0 ;
25744 PyObject * obj1 = 0 ;
25745 PyObject * obj2 = 0 ;
25746 PyObject * obj3 = 0 ;
25747 PyObject * obj4 = 0 ;
25748 PyObject * obj5 = 0 ;
25749 PyObject * obj6 = 0 ;
25750 char * kwnames[] = {
25751 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
25752 };
70d7cb34 25753
5c8c7dd3
RD
25754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25756 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 25758 }
5c8c7dd3
RD
25759 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25760 if (obj1) {
25761 ecode2 = SWIG_AsVal_double(obj1, &val2);
25762 if (!SWIG_IsOK(ecode2)) {
25763 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'");
25764 }
25765 arg2 = static_cast< wxDouble >(val2);
25766 }
25767 if (obj2) {
25768 ecode3 = SWIG_AsVal_double(obj2, &val3);
25769 if (!SWIG_IsOK(ecode3)) {
25770 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'");
25771 }
25772 arg3 = static_cast< wxDouble >(val3);
25773 }
25774 if (obj3) {
25775 ecode4 = SWIG_AsVal_double(obj3, &val4);
25776 if (!SWIG_IsOK(ecode4)) {
25777 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'");
25778 }
25779 arg4 = static_cast< wxDouble >(val4);
25780 }
25781 if (obj4) {
25782 ecode5 = SWIG_AsVal_double(obj4, &val5);
25783 if (!SWIG_IsOK(ecode5)) {
25784 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'");
25785 }
25786 arg5 = static_cast< wxDouble >(val5);
25787 }
25788 if (obj5) {
25789 ecode6 = SWIG_AsVal_double(obj5, &val6);
25790 if (!SWIG_IsOK(ecode6)) {
25791 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'");
25792 }
25793 arg6 = static_cast< wxDouble >(val6);
25794 }
25795 if (obj6) {
25796 ecode7 = SWIG_AsVal_double(obj6, &val7);
25797 if (!SWIG_IsOK(ecode7)) {
25798 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'");
25799 }
25800 arg7 = static_cast< wxDouble >(val7);
70d7cb34
RD
25801 }
25802 {
5c8c7dd3 25803 (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
25804 if (PyErr_Occurred()) SWIG_fail;
25805 }
25806 resultobj = SWIG_Py_Void();
25807 return resultobj;
25808fail:
25809 return NULL;
25810}
25811
25812
5c8c7dd3 25813SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 25814 PyObject *resultobj = 0;
5c8c7dd3 25815 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
1bd55598
RD
25816 void *argp1 = 0 ;
25817 int res1 = 0 ;
5c8c7dd3 25818 PyObject *swig_obj[1] ;
1bd55598 25819
5c8c7dd3
RD
25820 if (!args) SWIG_fail;
25821 swig_obj[0] = args;
25822 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
1bd55598 25823 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
1bd55598 25825 }
5c8c7dd3 25826 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
1bd55598 25827 {
5c8c7dd3 25828 (arg1)->Invert();
1bd55598
RD
25829 if (PyErr_Occurred()) SWIG_fail;
25830 }
72ef6efb 25831 resultobj = SWIG_Py_Void();
1bd55598
RD
25832 return resultobj;
25833fail:
25834 return NULL;
25835}
25836
25837
5c8c7dd3 25838SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25839 PyObject *resultobj = 0;
5c8c7dd3
RD
25840 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25841 wxGraphicsMatrix *arg2 = 0 ;
25842 bool result;
70d7cb34
RD
25843 void *argp1 = 0 ;
25844 int res1 = 0 ;
5c8c7dd3
RD
25845 void *argp2 = 0 ;
25846 int res2 = 0 ;
25847 PyObject * obj0 = 0 ;
25848 PyObject * obj1 = 0 ;
25849 char * kwnames[] = {
25850 (char *) "self",(char *) "t", NULL
25851 };
70d7cb34 25852
5c8c7dd3
RD
25853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
25854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25855 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
70d7cb34 25857 }
5c8c7dd3
RD
25858 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25859 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
25860 if (!SWIG_IsOK(res2)) {
25861 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25862 }
25863 if (!argp2) {
25864 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
70d7cb34 25865 }
5c8c7dd3 25866 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 25867 {
5c8c7dd3 25868 result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
25869 if (PyErr_Occurred()) SWIG_fail;
25870 }
5c8c7dd3
RD
25871 {
25872 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25873 }
70d7cb34
RD
25874 return resultobj;
25875fail:
25876 return NULL;
25877}
25878
25879
5c8c7dd3
RD
25880SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25881 PyObject *resultobj = 0;
25882 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25883 bool result;
25884 void *argp1 = 0 ;
25885 int res1 = 0 ;
25886 PyObject *swig_obj[1] ;
70d7cb34 25887
5c8c7dd3
RD
25888 if (!args) SWIG_fail;
25889 swig_obj[0] = args;
25890 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
25891 if (!SWIG_IsOK(res1)) {
8f514ab4 25892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
70d7cb34 25893 }
5c8c7dd3
RD
25894 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25895 {
8f514ab4 25896 result = (bool)((wxGraphicsMatrix const *)arg1)->IsIdentity();
5c8c7dd3 25897 if (PyErr_Occurred()) SWIG_fail;
70d7cb34 25898 }
5c8c7dd3
RD
25899 {
25900 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25901 }
25902 return resultobj;
70d7cb34 25903fail:
70d7cb34
RD
25904 return NULL;
25905}
25906
25907
5c8c7dd3 25908SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 25909 PyObject *resultobj = 0;
5c8c7dd3 25910 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
72ef6efb
RD
25911 wxDouble arg2 ;
25912 wxDouble arg3 ;
1bd55598
RD
25913 void *argp1 = 0 ;
25914 int res1 = 0 ;
72ef6efb
RD
25915 double val2 ;
25916 int ecode2 = 0 ;
25917 double val3 ;
25918 int ecode3 = 0 ;
5c8c7dd3
RD
25919 PyObject * obj0 = 0 ;
25920 PyObject * obj1 = 0 ;
25921 PyObject * obj2 = 0 ;
25922 char * kwnames[] = {
25923 (char *) "self",(char *) "dx",(char *) "dy", NULL
25924 };
72ef6efb 25925
5c8c7dd3
RD
25926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
72ef6efb 25928 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
72ef6efb 25930 }
5c8c7dd3
RD
25931 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25932 ecode2 = SWIG_AsVal_double(obj1, &val2);
72ef6efb 25933 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 25934 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
25935 }
25936 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 25937 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb 25938 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 25939 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
25940 }
25941 arg3 = static_cast< wxDouble >(val3);
72ef6efb 25942 {
5c8c7dd3 25943 (arg1)->Translate(arg2,arg3);
72ef6efb
RD
25944 if (PyErr_Occurred()) SWIG_fail;
25945 }
25946 resultobj = SWIG_Py_Void();
25947 return resultobj;
25948fail:
25949 return NULL;
25950}
25951
25952
5c8c7dd3 25953SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25954 PyObject *resultobj = 0;
5c8c7dd3
RD
25955 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25956 wxDouble arg2 ;
25957 wxDouble arg3 ;
70d7cb34
RD
25958 void *argp1 = 0 ;
25959 int res1 = 0 ;
5c8c7dd3
RD
25960 double val2 ;
25961 int ecode2 = 0 ;
25962 double val3 ;
25963 int ecode3 = 0 ;
25964 PyObject * obj0 = 0 ;
25965 PyObject * obj1 = 0 ;
25966 PyObject * obj2 = 0 ;
25967 char * kwnames[] = {
25968 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
25969 };
70d7cb34 25970
5c8c7dd3
RD
25971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25973 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 25975 }
5c8c7dd3
RD
25976 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25977 ecode2 = SWIG_AsVal_double(obj1, &val2);
25978 if (!SWIG_IsOK(ecode2)) {
25979 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
25980 }
25981 arg2 = static_cast< wxDouble >(val2);
25982 ecode3 = SWIG_AsVal_double(obj2, &val3);
25983 if (!SWIG_IsOK(ecode3)) {
25984 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
25985 }
25986 arg3 = static_cast< wxDouble >(val3);
70d7cb34 25987 {
5c8c7dd3 25988 (arg1)->Scale(arg2,arg3);
70d7cb34
RD
25989 if (PyErr_Occurred()) SWIG_fail;
25990 }
25991 resultobj = SWIG_Py_Void();
25992 return resultobj;
25993fail:
25994 return NULL;
25995}
25996
25997
5c8c7dd3 25998SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25999 PyObject *resultobj = 0;
5c8c7dd3
RD
26000 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26001 wxDouble arg2 ;
70d7cb34
RD
26002 void *argp1 = 0 ;
26003 int res1 = 0 ;
5c8c7dd3
RD
26004 double val2 ;
26005 int ecode2 = 0 ;
70d7cb34
RD
26006 PyObject * obj0 = 0 ;
26007 PyObject * obj1 = 0 ;
26008 char * kwnames[] = {
5c8c7dd3 26009 (char *) "self",(char *) "angle", NULL
70d7cb34
RD
26010 };
26011
5c8c7dd3
RD
26012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
26013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 26014 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 26016 }
5c8c7dd3
RD
26017 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26018 ecode2 = SWIG_AsVal_double(obj1, &val2);
26019 if (!SWIG_IsOK(ecode2)) {
26020 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
26021 }
26022 arg2 = static_cast< wxDouble >(val2);
70d7cb34 26023 {
5c8c7dd3 26024 (arg1)->Rotate(arg2);
70d7cb34
RD
26025 if (PyErr_Occurred()) SWIG_fail;
26026 }
26027 resultobj = SWIG_Py_Void();
26028 return resultobj;
26029fail:
26030 return NULL;
26031}
26032
26033
5c8c7dd3 26034SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 26035 PyObject *resultobj = 0;
5c8c7dd3
RD
26036 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26037 wxDouble *arg2 = (wxDouble *) 0 ;
26038 wxDouble *arg3 = (wxDouble *) 0 ;
72ef6efb
RD
26039 void *argp1 = 0 ;
26040 int res1 = 0 ;
5c8c7dd3
RD
26041 wxDouble temp2 ;
26042 int res2 = 0 ;
26043 wxDouble temp3 ;
26044 int res3 = 0 ;
26045 PyObject * obj0 = 0 ;
26046 PyObject * obj1 = 0 ;
26047 PyObject * obj2 = 0 ;
26048 char * kwnames[] = {
26049 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26050 };
72ef6efb 26051
5c8c7dd3
RD
26052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
72ef6efb 26054 if (!SWIG_IsOK(res1)) {
8f514ab4 26055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
72ef6efb 26056 }
5c8c7dd3
RD
26057 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26058 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26059 double val;
26060 int ecode = SWIG_AsVal_double(obj1, &val);
26061 if (!SWIG_IsOK(ecode)) {
26062 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26063 }
26064 temp2 = static_cast< wxDouble >(val);
26065 arg2 = &temp2;
26066 res2 = SWIG_AddTmpMask(ecode);
26067 }
26068 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26069 double val;
26070 int ecode = SWIG_AsVal_double(obj2, &val);
26071 if (!SWIG_IsOK(ecode)) {
26072 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26073 }
26074 temp3 = static_cast< wxDouble >(val);
26075 arg3 = &temp3;
26076 res3 = SWIG_AddTmpMask(ecode);
26077 }
26078 {
8f514ab4 26079 ((wxGraphicsMatrix const *)arg1)->TransformPoint(arg2,arg3);
72ef6efb
RD
26080 if (PyErr_Occurred()) SWIG_fail;
26081 }
26082 resultobj = SWIG_Py_Void();
5c8c7dd3
RD
26083 if (SWIG_IsTmpObj(res2)) {
26084 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26085 } else {
26086 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26087 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26088 }
26089 if (SWIG_IsTmpObj(res3)) {
26090 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26091 } else {
26092 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26093 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26094 }
72ef6efb
RD
26095 return resultobj;
26096fail:
26097 return NULL;
26098}
26099
26100
5c8c7dd3
RD
26101SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26102 PyObject *resultobj = 0;
26103 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26104 wxDouble *arg2 = (wxDouble *) 0 ;
26105 wxDouble *arg3 = (wxDouble *) 0 ;
26106 void *argp1 = 0 ;
26107 int res1 = 0 ;
26108 wxDouble temp2 ;
26109 int res2 = 0 ;
26110 wxDouble temp3 ;
26111 int res3 = 0 ;
26112 PyObject * obj0 = 0 ;
26113 PyObject * obj1 = 0 ;
26114 PyObject * obj2 = 0 ;
26115 char * kwnames[] = {
26116 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26117 };
26118
26119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26121 if (!SWIG_IsOK(res1)) {
8f514ab4 26122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
5c8c7dd3
RD
26123 }
26124 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26125 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26126 double val;
26127 int ecode = SWIG_AsVal_double(obj1, &val);
26128 if (!SWIG_IsOK(ecode)) {
26129 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'");
26130 }
26131 temp2 = static_cast< wxDouble >(val);
26132 arg2 = &temp2;
26133 res2 = SWIG_AddTmpMask(ecode);
26134 }
26135 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26136 double val;
26137 int ecode = SWIG_AsVal_double(obj2, &val);
26138 if (!SWIG_IsOK(ecode)) {
26139 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'");
26140 }
26141 temp3 = static_cast< wxDouble >(val);
26142 arg3 = &temp3;
26143 res3 = SWIG_AddTmpMask(ecode);
26144 }
26145 {
8f514ab4 26146 ((wxGraphicsMatrix const *)arg1)->TransformDistance(arg2,arg3);
5c8c7dd3
RD
26147 if (PyErr_Occurred()) SWIG_fail;
26148 }
26149 resultobj = SWIG_Py_Void();
26150 if (SWIG_IsTmpObj(res2)) {
26151 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26152 } else {
26153 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26154 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26155 }
26156 if (SWIG_IsTmpObj(res3)) {
26157 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26158 } else {
26159 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26160 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26161 }
26162 return resultobj;
26163fail:
26164 return NULL;
26165}
26166
26167
26168SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26169 PyObject *resultobj = 0;
26170 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26171 void *result = 0 ;
26172 void *argp1 = 0 ;
26173 int res1 = 0 ;
26174 PyObject *swig_obj[1] ;
26175
26176 if (!args) SWIG_fail;
26177 swig_obj[0] = args;
26178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26179 if (!SWIG_IsOK(res1)) {
26180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26181 }
26182 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26183 {
26184 result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix();
26185 if (PyErr_Occurred()) SWIG_fail;
26186 }
26187 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
26188 return resultobj;
26189fail:
26190 return NULL;
26191}
26192
26193
26194SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26195 PyObject *obj;
26196 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26197 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj));
26198 return SWIG_Py_Void();
26199}
26200
8f514ab4
RD
26201SWIGINTERN PyObject *GraphicsMatrix_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26202 return SWIG_Python_InitShadowInstance(args);
26203}
26204
26205SWIGINTERN PyObject *_wrap_new_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26206 PyObject *resultobj = 0;
26207 wxGraphicsPath *result = 0 ;
26208
26209 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPath",0,0,0)) SWIG_fail;
26210 {
26211 if (!wxPyCheckForApp()) SWIG_fail;
26212 PyThreadState* __tstate = wxPyBeginAllowThreads();
26213 result = (wxGraphicsPath *)new wxGraphicsPath();
26214 wxPyEndAllowThreads(__tstate);
26215 if (PyErr_Occurred()) SWIG_fail;
26216 }
26217 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_NEW | 0 );
26218 return resultobj;
26219fail:
26220 return NULL;
26221}
26222
26223
5c8c7dd3 26224SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
26225 PyObject *resultobj = 0;
26226 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
72ef6efb
RD
26227 void *argp1 = 0 ;
26228 int res1 = 0 ;
26229 PyObject *swig_obj[1] ;
26230
26231 if (!args) SWIG_fail;
26232 swig_obj[0] = args;
5c8c7dd3 26233 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
72ef6efb 26234 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
72ef6efb
RD
26236 }
26237 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26238 {
5c8c7dd3
RD
26239 delete arg1;
26240
72ef6efb
RD
26241 if (PyErr_Occurred()) SWIG_fail;
26242 }
5c8c7dd3 26243 resultobj = SWIG_Py_Void();
70d7cb34
RD
26244 return resultobj;
26245fail:
26246 return NULL;
26247}
26248
26249
5c8c7dd3 26250SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26251 PyObject *resultobj = 0;
26252 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26253 wxDouble arg2 ;
26254 wxDouble arg3 ;
70d7cb34
RD
26255 void *argp1 = 0 ;
26256 int res1 = 0 ;
26257 double val2 ;
26258 int ecode2 = 0 ;
26259 double val3 ;
26260 int ecode3 = 0 ;
70d7cb34 26261
5c8c7dd3 26262 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
70d7cb34
RD
26263 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26264 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26266 }
26267 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26268 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26269 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26270 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26271 }
26272 arg2 = static_cast< wxDouble >(val2);
26273 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26274 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26275 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26276 }
26277 arg3 = static_cast< wxDouble >(val3);
70d7cb34 26278 {
5c8c7dd3 26279 (arg1)->MoveToPoint(arg2,arg3);
70d7cb34
RD
26280 if (PyErr_Occurred()) SWIG_fail;
26281 }
26282 resultobj = SWIG_Py_Void();
26283 return resultobj;
26284fail:
26285 return NULL;
26286}
26287
26288
5c8c7dd3 26289SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26290 PyObject *resultobj = 0;
26291 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26292 wxPoint2D *arg2 = 0 ;
70d7cb34
RD
26293 void *argp1 = 0 ;
26294 int res1 = 0 ;
26295 wxPoint2D temp2 ;
70d7cb34 26296
5c8c7dd3 26297 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
70d7cb34
RD
26298 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26299 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26301 }
26302 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26303 {
26304 arg2 = &temp2;
26305 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26306 }
70d7cb34 26307 {
5c8c7dd3 26308 (arg1)->MoveToPoint((wxPoint2D const &)*arg2);
70d7cb34
RD
26309 if (PyErr_Occurred()) SWIG_fail;
26310 }
26311 resultobj = SWIG_Py_Void();
26312 return resultobj;
26313fail:
26314 return NULL;
26315}
26316
26317
5c8c7dd3 26318SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) {
70d7cb34 26319 int argc;
5c8c7dd3 26320 PyObject *argv[4];
70d7cb34 26321
5c8c7dd3 26322 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail;
70d7cb34 26323 --argc;
5c8c7dd3
RD
26324 if (argc == 2) {
26325 return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv);
70d7cb34 26326 }
5c8c7dd3
RD
26327 if (argc == 3) {
26328 return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv);
70d7cb34
RD
26329 }
26330
26331fail:
5c8c7dd3 26332 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'");
70d7cb34
RD
26333 return NULL;
26334}
26335
26336
5c8c7dd3 26337SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26338 PyObject *resultobj = 0;
26339 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26340 wxDouble arg2 ;
26341 wxDouble arg3 ;
70d7cb34
RD
26342 void *argp1 = 0 ;
26343 int res1 = 0 ;
26344 double val2 ;
26345 int ecode2 = 0 ;
26346 double val3 ;
26347 int ecode3 = 0 ;
70d7cb34 26348
5c8c7dd3
RD
26349 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
26350 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26351 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26353 }
26354 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 26355 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
70d7cb34 26356 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26357 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26358 }
26359 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 26360 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
70d7cb34 26361 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26362 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26363 }
26364 arg3 = static_cast< wxDouble >(val3);
70d7cb34 26365 {
5c8c7dd3 26366 (arg1)->AddLineToPoint(arg2,arg3);
70d7cb34
RD
26367 if (PyErr_Occurred()) SWIG_fail;
26368 }
26369 resultobj = SWIG_Py_Void();
26370 return resultobj;
26371fail:
26372 return NULL;
26373}
26374
26375
5c8c7dd3 26376SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26377 PyObject *resultobj = 0;
26378 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 26379 wxPoint2D *arg2 = 0 ;
70d7cb34
RD
26380 void *argp1 = 0 ;
26381 int res1 = 0 ;
5c8c7dd3 26382 wxPoint2D temp2 ;
70d7cb34 26383
5c8c7dd3
RD
26384 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26385 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26386 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26388 }
26389 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26390 {
5c8c7dd3
RD
26391 arg2 = &temp2;
26392 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26393 }
26394 {
26395 (arg1)->AddLineToPoint((wxPoint2D const &)*arg2);
70d7cb34
RD
26396 if (PyErr_Occurred()) SWIG_fail;
26397 }
26398 resultobj = SWIG_Py_Void();
26399 return resultobj;
26400fail:
26401 return NULL;
26402}
26403
26404
5c8c7dd3
RD
26405SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) {
26406 int argc;
26407 PyObject *argv[4];
70d7cb34 26408
5c8c7dd3
RD
26409 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail;
26410 --argc;
26411 if (argc == 2) {
26412 return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv);
70d7cb34 26413 }
5c8c7dd3
RD
26414 if (argc == 3) {
26415 return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv);
70d7cb34 26416 }
5c8c7dd3 26417
70d7cb34 26418fail:
5c8c7dd3 26419 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'");
70d7cb34
RD
26420 return NULL;
26421}
26422
26423
5c8c7dd3 26424SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26425 PyObject *resultobj = 0;
26426 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26427 wxDouble arg2 ;
26428 wxDouble arg3 ;
26429 wxDouble arg4 ;
26430 wxDouble arg5 ;
26431 wxDouble arg6 ;
5c8c7dd3 26432 wxDouble arg7 ;
70d7cb34
RD
26433 void *argp1 = 0 ;
26434 int res1 = 0 ;
26435 double val2 ;
26436 int ecode2 = 0 ;
26437 double val3 ;
26438 int ecode3 = 0 ;
26439 double val4 ;
26440 int ecode4 = 0 ;
26441 double val5 ;
26442 int ecode5 = 0 ;
26443 double val6 ;
26444 int ecode6 = 0 ;
5c8c7dd3
RD
26445 double val7 ;
26446 int ecode7 = 0 ;
70d7cb34 26447
5c8c7dd3
RD
26448 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
26449 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26450 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26452 }
26453 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 26454 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
70d7cb34 26455 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26456 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26457 }
26458 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 26459 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
70d7cb34 26460 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26461 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26462 }
26463 arg3 = static_cast< wxDouble >(val3);
5c8c7dd3 26464 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
70d7cb34 26465 if (!SWIG_IsOK(ecode4)) {
5c8c7dd3 26466 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
70d7cb34
RD
26467 }
26468 arg4 = static_cast< wxDouble >(val4);
5c8c7dd3 26469 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
70d7cb34 26470 if (!SWIG_IsOK(ecode5)) {
5c8c7dd3 26471 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
70d7cb34
RD
26472 }
26473 arg5 = static_cast< wxDouble >(val5);
5c8c7dd3 26474 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
70d7cb34 26475 if (!SWIG_IsOK(ecode6)) {
5c8c7dd3 26476 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
70d7cb34
RD
26477 }
26478 arg6 = static_cast< wxDouble >(val6);
5c8c7dd3
RD
26479 ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
26480 if (!SWIG_IsOK(ecode7)) {
26481 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
26482 }
26483 arg7 = static_cast< wxDouble >(val7);
70d7cb34 26484 {
5c8c7dd3 26485 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
26486 if (PyErr_Occurred()) SWIG_fail;
26487 }
26488 resultobj = SWIG_Py_Void();
26489 return resultobj;
26490fail:
26491 return NULL;
26492}
26493
26494
5c8c7dd3 26495SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26496 PyObject *resultobj = 0;
26497 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3
RD
26498 wxPoint2D *arg2 = 0 ;
26499 wxPoint2D *arg3 = 0 ;
26500 wxPoint2D *arg4 = 0 ;
70d7cb34
RD
26501 void *argp1 = 0 ;
26502 int res1 = 0 ;
5c8c7dd3
RD
26503 wxPoint2D temp2 ;
26504 wxPoint2D temp3 ;
26505 wxPoint2D temp4 ;
70d7cb34 26506
5c8c7dd3
RD
26507 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
26508 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26509 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26511 }
26512 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26513 {
5c8c7dd3
RD
26514 arg2 = &temp2;
26515 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
70d7cb34 26516 }
5c8c7dd3
RD
26517 {
26518 arg3 = &temp3;
26519 if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail;
70d7cb34 26520 }
70d7cb34 26521 {
5c8c7dd3
RD
26522 arg4 = &temp4;
26523 if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail;
26524 }
26525 {
26526 (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4);
70d7cb34
RD
26527 if (PyErr_Occurred()) SWIG_fail;
26528 }
26529 resultobj = SWIG_Py_Void();
26530 return resultobj;
26531fail:
26532 return NULL;
26533}
26534
26535
5c8c7dd3
RD
26536SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) {
26537 int argc;
26538 PyObject *argv[8];
70d7cb34 26539
5c8c7dd3
RD
26540 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail;
26541 --argc;
26542 if (argc == 4) {
26543 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv);
70d7cb34 26544 }
5c8c7dd3
RD
26545 if (argc == 7) {
26546 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv);
70d7cb34 26547 }
5c8c7dd3 26548
70d7cb34 26549fail:
5c8c7dd3 26550 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'");
70d7cb34
RD
26551 return NULL;
26552}
26553
26554
5c8c7dd3 26555SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34
RD
26556 PyObject *resultobj = 0;
26557 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 26558 wxGraphicsPath *arg2 = 0 ;
70d7cb34
RD
26559 void *argp1 = 0 ;
26560 int res1 = 0 ;
5c8c7dd3
RD
26561 void *argp2 = 0 ;
26562 int res2 = 0 ;
70d7cb34
RD
26563 PyObject * obj0 = 0 ;
26564 PyObject * obj1 = 0 ;
26565 char * kwnames[] = {
5c8c7dd3 26566 (char *) "self",(char *) "path", NULL
70d7cb34
RD
26567 };
26568
5c8c7dd3 26569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail;
70d7cb34
RD
26570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26571 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26573 }
26574 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 26575 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
70d7cb34 26576 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
26577 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
26578 }
26579 if (!argp2) {
26580 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
70d7cb34 26581 }
5c8c7dd3 26582 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
70d7cb34 26583 {
5c8c7dd3 26584 (arg1)->AddPath((wxGraphicsPath const &)*arg2);
70d7cb34
RD
26585 if (PyErr_Occurred()) SWIG_fail;
26586 }
26587 resultobj = SWIG_Py_Void();
26588 return resultobj;
26589fail:
26590 return NULL;
26591}
26592
26593
5c8c7dd3 26594SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
26595 PyObject *resultobj = 0;
26596 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
70d7cb34
RD
26597 void *argp1 = 0 ;
26598 int res1 = 0 ;
5c8c7dd3 26599 PyObject *swig_obj[1] ;
70d7cb34 26600
5c8c7dd3
RD
26601 if (!args) SWIG_fail;
26602 swig_obj[0] = args;
26603 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26604 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26606 }
26607 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26608 {
5c8c7dd3 26609 (arg1)->CloseSubpath();
70d7cb34
RD
26610 if (PyErr_Occurred()) SWIG_fail;
26611 }
26612 resultobj = SWIG_Py_Void();
26613 return resultobj;
26614fail:
26615 return NULL;
26616}
26617
26618
5c8c7dd3 26619SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
26620 PyObject *resultobj = 0;
26621 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 26622 wxPoint2D result;
70d7cb34
RD
26623 void *argp1 = 0 ;
26624 int res1 = 0 ;
26625 PyObject *swig_obj[1] ;
26626
26627 if (!args) SWIG_fail;
26628 swig_obj[0] = args;
26629 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26630 if (!SWIG_IsOK(res1)) {
8f514ab4 26631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34
RD
26632 }
26633 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26634 {
8f514ab4 26635 result = ((wxGraphicsPath const *)arg1)->GetCurrentPoint();
70d7cb34
RD
26636 if (PyErr_Occurred()) SWIG_fail;
26637 }
5c8c7dd3 26638 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
26639 return resultobj;
26640fail:
26641 return NULL;
26642}
26643
26644
5c8c7dd3 26645SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26646 PyObject *resultobj = 0;
26647 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26648 wxDouble arg2 ;
26649 wxDouble arg3 ;
5c8c7dd3
RD
26650 wxDouble arg4 ;
26651 wxDouble arg5 ;
26652 wxDouble arg6 ;
26653 bool arg7 ;
70d7cb34
RD
26654 void *argp1 = 0 ;
26655 int res1 = 0 ;
26656 double val2 ;
26657 int ecode2 = 0 ;
26658 double val3 ;
26659 int ecode3 = 0 ;
5c8c7dd3 26660 double val4 ;
70d7cb34 26661 int ecode4 = 0 ;
5c8c7dd3
RD
26662 double val5 ;
26663 int ecode5 = 0 ;
26664 double val6 ;
26665 int ecode6 = 0 ;
26666 bool val7 ;
26667 int ecode7 = 0 ;
70d7cb34 26668
5c8c7dd3 26669 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
70d7cb34
RD
26670 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26671 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26673 }
26674 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26675 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26676 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26677 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26678 }
26679 arg2 = static_cast< wxDouble >(val2);
26680 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26681 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26682 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26683 }
26684 arg3 = static_cast< wxDouble >(val3);
5c8c7dd3
RD
26685 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26686 if (!SWIG_IsOK(ecode4)) {
26687 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
26688 }
26689 arg4 = static_cast< wxDouble >(val4);
26690 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26691 if (!SWIG_IsOK(ecode5)) {
26692 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
26693 }
26694 arg5 = static_cast< wxDouble >(val5);
26695 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
26696 if (!SWIG_IsOK(ecode6)) {
26697 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
26698 }
26699 arg6 = static_cast< wxDouble >(val6);
26700 ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7);
26701 if (!SWIG_IsOK(ecode7)) {
26702 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
26703 }
26704 arg7 = static_cast< bool >(val7);
70d7cb34 26705 {
5c8c7dd3 26706 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
26707 if (PyErr_Occurred()) SWIG_fail;
26708 }
5c8c7dd3 26709 resultobj = SWIG_Py_Void();
70d7cb34
RD
26710 return resultobj;
26711fail:
26712 return NULL;
26713}
26714
26715
5c8c7dd3 26716SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26717 PyObject *resultobj = 0;
26718 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3
RD
26719 wxPoint2D *arg2 = 0 ;
26720 wxDouble arg3 ;
26721 wxDouble arg4 ;
26722 wxDouble arg5 ;
26723 bool arg6 ;
70d7cb34
RD
26724 void *argp1 = 0 ;
26725 int res1 = 0 ;
5c8c7dd3
RD
26726 wxPoint2D temp2 ;
26727 double val3 ;
70d7cb34 26728 int ecode3 = 0 ;
5c8c7dd3
RD
26729 double val4 ;
26730 int ecode4 = 0 ;
26731 double val5 ;
26732 int ecode5 = 0 ;
26733 bool val6 ;
26734 int ecode6 = 0 ;
70d7cb34 26735
5c8c7dd3 26736 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
70d7cb34
RD
26737 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26738 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26740 }
26741 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26742 {
5c8c7dd3
RD
26743 arg2 = &temp2;
26744 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
70d7cb34 26745 }
5c8c7dd3
RD
26746 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26747 if (!SWIG_IsOK(ecode3)) {
26748 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
26749 }
26750 arg3 = static_cast< wxDouble >(val3);
26751 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26752 if (!SWIG_IsOK(ecode4)) {
26753 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
26754 }
26755 arg4 = static_cast< wxDouble >(val4);
26756 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26757 if (!SWIG_IsOK(ecode5)) {
26758 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
26759 }
26760 arg5 = static_cast< wxDouble >(val5);
26761 ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6);
26762 if (!SWIG_IsOK(ecode6)) {
26763 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'");
26764 }
26765 arg6 = static_cast< bool >(val6);
70d7cb34 26766 {
5c8c7dd3
RD
26767 (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6);
26768 if (PyErr_Occurred()) SWIG_fail;
70d7cb34 26769 }
5c8c7dd3 26770 resultobj = SWIG_Py_Void();
70d7cb34
RD
26771 return resultobj;
26772fail:
26773 return NULL;
26774}
26775
26776
5c8c7dd3 26777SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) {
70d7cb34 26778 int argc;
5c8c7dd3 26779 PyObject *argv[8];
70d7cb34 26780
5c8c7dd3 26781 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail;
70d7cb34 26782 --argc;
5c8c7dd3
RD
26783 if (argc == 6) {
26784 return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv);
70d7cb34 26785 }
5c8c7dd3
RD
26786 if (argc == 7) {
26787 return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv);
70d7cb34
RD
26788 }
26789
26790fail:
5c8c7dd3 26791 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'");
70d7cb34
RD
26792 return NULL;
26793}
26794
26795
5c8c7dd3 26796SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26797 PyObject *resultobj = 0;
5c8c7dd3
RD
26798 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26799 wxDouble arg2 ;
26800 wxDouble arg3 ;
26801 wxDouble arg4 ;
26802 wxDouble arg5 ;
70d7cb34
RD
26803 void *argp1 = 0 ;
26804 int res1 = 0 ;
5c8c7dd3
RD
26805 double val2 ;
26806 int ecode2 = 0 ;
26807 double val3 ;
26808 int ecode3 = 0 ;
26809 double val4 ;
26810 int ecode4 = 0 ;
26811 double val5 ;
26812 int ecode5 = 0 ;
26813 PyObject * obj0 = 0 ;
26814 PyObject * obj1 = 0 ;
26815 PyObject * obj2 = 0 ;
26816 PyObject * obj3 = 0 ;
26817 PyObject * obj4 = 0 ;
26818 char * kwnames[] = {
26819 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
26820 };
70d7cb34 26821
5c8c7dd3
RD
26822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26824 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26826 }
5c8c7dd3
RD
26827 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26828 ecode2 = SWIG_AsVal_double(obj1, &val2);
26829 if (!SWIG_IsOK(ecode2)) {
26830 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26831 }
26832 arg2 = static_cast< wxDouble >(val2);
26833 ecode3 = SWIG_AsVal_double(obj2, &val3);
26834 if (!SWIG_IsOK(ecode3)) {
26835 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26836 }
26837 arg3 = static_cast< wxDouble >(val3);
26838 ecode4 = SWIG_AsVal_double(obj3, &val4);
26839 if (!SWIG_IsOK(ecode4)) {
26840 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
26841 }
26842 arg4 = static_cast< wxDouble >(val4);
26843 ecode5 = SWIG_AsVal_double(obj4, &val5);
26844 if (!SWIG_IsOK(ecode5)) {
26845 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
26846 }
26847 arg5 = static_cast< wxDouble >(val5);
70d7cb34 26848 {
5c8c7dd3 26849 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
70d7cb34
RD
26850 if (PyErr_Occurred()) SWIG_fail;
26851 }
26852 resultobj = SWIG_Py_Void();
26853 return resultobj;
26854fail:
26855 return NULL;
26856}
26857
26858
5c8c7dd3 26859SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26860 PyObject *resultobj = 0;
5c8c7dd3
RD
26861 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26862 wxDouble arg2 ;
26863 wxDouble arg3 ;
26864 wxDouble arg4 ;
26865 wxDouble arg5 ;
70d7cb34
RD
26866 void *argp1 = 0 ;
26867 int res1 = 0 ;
5c8c7dd3
RD
26868 double val2 ;
26869 int ecode2 = 0 ;
26870 double val3 ;
26871 int ecode3 = 0 ;
26872 double val4 ;
26873 int ecode4 = 0 ;
26874 double val5 ;
26875 int ecode5 = 0 ;
70d7cb34
RD
26876 PyObject * obj0 = 0 ;
26877 PyObject * obj1 = 0 ;
5c8c7dd3
RD
26878 PyObject * obj2 = 0 ;
26879 PyObject * obj3 = 0 ;
26880 PyObject * obj4 = 0 ;
70d7cb34 26881 char * kwnames[] = {
5c8c7dd3 26882 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
70d7cb34
RD
26883 };
26884
5c8c7dd3
RD
26885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26887 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26889 }
5c8c7dd3
RD
26890 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26891 ecode2 = SWIG_AsVal_double(obj1, &val2);
26892 if (!SWIG_IsOK(ecode2)) {
26893 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26894 }
26895 arg2 = static_cast< wxDouble >(val2);
26896 ecode3 = SWIG_AsVal_double(obj2, &val3);
26897 if (!SWIG_IsOK(ecode3)) {
26898 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26899 }
26900 arg3 = static_cast< wxDouble >(val3);
26901 ecode4 = SWIG_AsVal_double(obj3, &val4);
26902 if (!SWIG_IsOK(ecode4)) {
26903 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26904 }
26905 arg4 = static_cast< wxDouble >(val4);
26906 ecode5 = SWIG_AsVal_double(obj4, &val5);
26907 if (!SWIG_IsOK(ecode5)) {
26908 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26909 }
26910 arg5 = static_cast< wxDouble >(val5);
70d7cb34 26911 {
5c8c7dd3 26912 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
70d7cb34
RD
26913 if (PyErr_Occurred()) SWIG_fail;
26914 }
26915 resultobj = SWIG_Py_Void();
26916 return resultobj;
26917fail:
26918 return NULL;
26919}
26920
26921
5c8c7dd3 26922SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26923 PyObject *resultobj = 0;
5c8c7dd3
RD
26924 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26925 wxDouble arg2 ;
26926 wxDouble arg3 ;
26927 wxDouble arg4 ;
70d7cb34
RD
26928 void *argp1 = 0 ;
26929 int res1 = 0 ;
5c8c7dd3
RD
26930 double val2 ;
26931 int ecode2 = 0 ;
26932 double val3 ;
26933 int ecode3 = 0 ;
26934 double val4 ;
26935 int ecode4 = 0 ;
70d7cb34
RD
26936 PyObject * obj0 = 0 ;
26937 PyObject * obj1 = 0 ;
5c8c7dd3
RD
26938 PyObject * obj2 = 0 ;
26939 PyObject * obj3 = 0 ;
70d7cb34 26940 char * kwnames[] = {
5c8c7dd3 26941 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
70d7cb34
RD
26942 };
26943
5c8c7dd3
RD
26944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26946 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26948 }
5c8c7dd3
RD
26949 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26950 ecode2 = SWIG_AsVal_double(obj1, &val2);
26951 if (!SWIG_IsOK(ecode2)) {
26952 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
26953 }
26954 arg2 = static_cast< wxDouble >(val2);
26955 ecode3 = SWIG_AsVal_double(obj2, &val3);
26956 if (!SWIG_IsOK(ecode3)) {
26957 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
26958 }
26959 arg3 = static_cast< wxDouble >(val3);
26960 ecode4 = SWIG_AsVal_double(obj3, &val4);
26961 if (!SWIG_IsOK(ecode4)) {
26962 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
26963 }
26964 arg4 = static_cast< wxDouble >(val4);
70d7cb34 26965 {
5c8c7dd3 26966 (arg1)->AddCircle(arg2,arg3,arg4);
70d7cb34
RD
26967 if (PyErr_Occurred()) SWIG_fail;
26968 }
26969 resultobj = SWIG_Py_Void();
26970 return resultobj;
26971fail:
26972 return NULL;
26973}
26974
26975
5c8c7dd3 26976SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26977 PyObject *resultobj = 0;
5c8c7dd3
RD
26978 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26979 wxDouble arg2 ;
26980 wxDouble arg3 ;
26981 wxDouble arg4 ;
26982 wxDouble arg5 ;
26983 wxDouble arg6 ;
70d7cb34
RD
26984 void *argp1 = 0 ;
26985 int res1 = 0 ;
26986 double val2 ;
26987 int ecode2 = 0 ;
26988 double val3 ;
26989 int ecode3 = 0 ;
26990 double val4 ;
26991 int ecode4 = 0 ;
26992 double val5 ;
26993 int ecode5 = 0 ;
26994 double val6 ;
26995 int ecode6 = 0 ;
70d7cb34
RD
26996 PyObject * obj0 = 0 ;
26997 PyObject * obj1 = 0 ;
26998 PyObject * obj2 = 0 ;
26999 PyObject * obj3 = 0 ;
27000 PyObject * obj4 = 0 ;
27001 PyObject * obj5 = 0 ;
70d7cb34 27002 char * kwnames[] = {
5c8c7dd3 27003 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
70d7cb34
RD
27004 };
27005
5c8c7dd3
RD
27006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27008 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27010 }
5c8c7dd3
RD
27011 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27012 ecode2 = SWIG_AsVal_double(obj1, &val2);
27013 if (!SWIG_IsOK(ecode2)) {
27014 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27015 }
27016 arg2 = static_cast< wxDouble >(val2);
27017 ecode3 = SWIG_AsVal_double(obj2, &val3);
27018 if (!SWIG_IsOK(ecode3)) {
27019 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27020 }
27021 arg3 = static_cast< wxDouble >(val3);
27022 ecode4 = SWIG_AsVal_double(obj3, &val4);
27023 if (!SWIG_IsOK(ecode4)) {
27024 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
27025 }
27026 arg4 = static_cast< wxDouble >(val4);
27027 ecode5 = SWIG_AsVal_double(obj4, &val5);
27028 if (!SWIG_IsOK(ecode5)) {
27029 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27030 }
27031 arg5 = static_cast< wxDouble >(val5);
27032 ecode6 = SWIG_AsVal_double(obj5, &val6);
27033 if (!SWIG_IsOK(ecode6)) {
27034 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
27035 }
27036 arg6 = static_cast< wxDouble >(val6);
70d7cb34 27037 {
5c8c7dd3 27038 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
70d7cb34
RD
27039 if (PyErr_Occurred()) SWIG_fail;
27040 }
27041 resultobj = SWIG_Py_Void();
27042 return resultobj;
27043fail:
27044 return NULL;
27045}
27046
27047
5c8c7dd3 27048SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27049 PyObject *resultobj = 0;
5c8c7dd3
RD
27050 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27051 wxDouble arg2 ;
27052 wxDouble arg3 ;
27053 wxDouble arg4 ;
27054 wxDouble arg5 ;
70d7cb34
RD
27055 void *argp1 = 0 ;
27056 int res1 = 0 ;
5c8c7dd3
RD
27057 double val2 ;
27058 int ecode2 = 0 ;
27059 double val3 ;
27060 int ecode3 = 0 ;
27061 double val4 ;
27062 int ecode4 = 0 ;
27063 double val5 ;
27064 int ecode5 = 0 ;
27065 PyObject * obj0 = 0 ;
27066 PyObject * obj1 = 0 ;
27067 PyObject * obj2 = 0 ;
27068 PyObject * obj3 = 0 ;
27069 PyObject * obj4 = 0 ;
27070 char * kwnames[] = {
27071 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27072 };
70d7cb34 27073
5c8c7dd3
RD
27074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27076 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27078 }
5c8c7dd3
RD
27079 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27080 ecode2 = SWIG_AsVal_double(obj1, &val2);
27081 if (!SWIG_IsOK(ecode2)) {
27082 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
27083 }
27084 arg2 = static_cast< wxDouble >(val2);
27085 ecode3 = SWIG_AsVal_double(obj2, &val3);
27086 if (!SWIG_IsOK(ecode3)) {
27087 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
27088 }
27089 arg3 = static_cast< wxDouble >(val3);
27090 ecode4 = SWIG_AsVal_double(obj3, &val4);
27091 if (!SWIG_IsOK(ecode4)) {
27092 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
27093 }
27094 arg4 = static_cast< wxDouble >(val4);
27095 ecode5 = SWIG_AsVal_double(obj4, &val5);
27096 if (!SWIG_IsOK(ecode5)) {
27097 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
27098 }
27099 arg5 = static_cast< wxDouble >(val5);
70d7cb34 27100 {
5c8c7dd3 27101 (arg1)->AddEllipse(arg2,arg3,arg4,arg5);
70d7cb34
RD
27102 if (PyErr_Occurred()) SWIG_fail;
27103 }
27104 resultobj = SWIG_Py_Void();
27105 return resultobj;
27106fail:
27107 return NULL;
27108}
27109
27110
5c8c7dd3 27111SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27112 PyObject *resultobj = 0;
5c8c7dd3
RD
27113 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27114 wxDouble arg2 ;
27115 wxDouble arg3 ;
27116 wxDouble arg4 ;
27117 wxDouble arg5 ;
27118 wxDouble arg6 ;
70d7cb34
RD
27119 void *argp1 = 0 ;
27120 int res1 = 0 ;
5c8c7dd3
RD
27121 double val2 ;
27122 int ecode2 = 0 ;
27123 double val3 ;
27124 int ecode3 = 0 ;
27125 double val4 ;
27126 int ecode4 = 0 ;
27127 double val5 ;
27128 int ecode5 = 0 ;
27129 double val6 ;
27130 int ecode6 = 0 ;
70d7cb34
RD
27131 PyObject * obj0 = 0 ;
27132 PyObject * obj1 = 0 ;
5c8c7dd3
RD
27133 PyObject * obj2 = 0 ;
27134 PyObject * obj3 = 0 ;
27135 PyObject * obj4 = 0 ;
27136 PyObject * obj5 = 0 ;
70d7cb34 27137 char * kwnames[] = {
5c8c7dd3 27138 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
70d7cb34
RD
27139 };
27140
5c8c7dd3
RD
27141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27143 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27145 }
5c8c7dd3
RD
27146 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27147 ecode2 = SWIG_AsVal_double(obj1, &val2);
27148 if (!SWIG_IsOK(ecode2)) {
27149 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27150 }
27151 arg2 = static_cast< wxDouble >(val2);
27152 ecode3 = SWIG_AsVal_double(obj2, &val3);
27153 if (!SWIG_IsOK(ecode3)) {
27154 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27155 }
27156 arg3 = static_cast< wxDouble >(val3);
27157 ecode4 = SWIG_AsVal_double(obj3, &val4);
27158 if (!SWIG_IsOK(ecode4)) {
27159 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27160 }
27161 arg4 = static_cast< wxDouble >(val4);
27162 ecode5 = SWIG_AsVal_double(obj4, &val5);
27163 if (!SWIG_IsOK(ecode5)) {
27164 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27165 }
27166 arg5 = static_cast< wxDouble >(val5);
27167 ecode6 = SWIG_AsVal_double(obj5, &val6);
27168 if (!SWIG_IsOK(ecode6)) {
27169 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
27170 }
27171 arg6 = static_cast< wxDouble >(val6);
70d7cb34 27172 {
5c8c7dd3 27173 (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
70d7cb34
RD
27174 if (PyErr_Occurred()) SWIG_fail;
27175 }
5c8c7dd3 27176 resultobj = SWIG_Py_Void();
70d7cb34
RD
27177 return resultobj;
27178fail:
27179 return NULL;
27180}
27181
27182
5c8c7dd3 27183SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34 27184 PyObject *resultobj = 0;
5c8c7dd3
RD
27185 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27186 void *result = 0 ;
70d7cb34
RD
27187 void *argp1 = 0 ;
27188 int res1 = 0 ;
27189 PyObject *swig_obj[1] ;
27190
27191 if (!args) SWIG_fail;
27192 swig_obj[0] = args;
5c8c7dd3 27193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27194 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27196 }
5c8c7dd3 27197 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27198 {
5c8c7dd3 27199 result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath();
70d7cb34
RD
27200 if (PyErr_Occurred()) SWIG_fail;
27201 }
5c8c7dd3 27202 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
70d7cb34
RD
27203 return resultobj;
27204fail:
27205 return NULL;
27206}
27207
27208
5c8c7dd3 27209SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27210 PyObject *resultobj = 0;
5c8c7dd3
RD
27211 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27212 void *arg2 = (void *) 0 ;
70d7cb34
RD
27213 void *argp1 = 0 ;
27214 int res1 = 0 ;
5c8c7dd3 27215 int res2 ;
70d7cb34
RD
27216 PyObject * obj0 = 0 ;
27217 PyObject * obj1 = 0 ;
70d7cb34 27218 char * kwnames[] = {
5c8c7dd3 27219 (char *) "self",(char *) "p", NULL
70d7cb34
RD
27220 };
27221
5c8c7dd3
RD
27222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail;
27223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27224 if (!SWIG_IsOK(res1)) {
8f514ab4 27225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
5c8c7dd3
RD
27226 }
27227 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27228 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
27229 if (!SWIG_IsOK(res2)) {
27230 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'");
70d7cb34 27231 }
70d7cb34 27232 {
8f514ab4 27233 ((wxGraphicsPath const *)arg1)->UnGetNativePath(arg2);
70d7cb34
RD
27234 if (PyErr_Occurred()) SWIG_fail;
27235 }
27236 resultobj = SWIG_Py_Void();
27237 return resultobj;
27238fail:
27239 return NULL;
27240}
27241
27242
5c8c7dd3 27243SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27244 PyObject *resultobj = 0;
5c8c7dd3
RD
27245 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27246 wxGraphicsMatrix *arg2 = 0 ;
70d7cb34
RD
27247 void *argp1 = 0 ;
27248 int res1 = 0 ;
5c8c7dd3
RD
27249 void *argp2 = 0 ;
27250 int res2 = 0 ;
70d7cb34
RD
27251 PyObject * obj0 = 0 ;
27252 PyObject * obj1 = 0 ;
70d7cb34 27253 char * kwnames[] = {
5c8c7dd3 27254 (char *) "self",(char *) "matrix", NULL
70d7cb34
RD
27255 };
27256
5c8c7dd3
RD
27257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail;
27258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27259 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27261 }
5c8c7dd3
RD
27262 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27263 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
27264 if (!SWIG_IsOK(res2)) {
27265 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27266 }
27267 if (!argp2) {
27268 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27269 }
27270 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 27271 {
5c8c7dd3 27272 (arg1)->Transform((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
27273 if (PyErr_Occurred()) SWIG_fail;
27274 }
27275 resultobj = SWIG_Py_Void();
27276 return resultobj;
27277fail:
27278 return NULL;
27279}
27280
27281
5c8c7dd3 27282SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34 27283 PyObject *resultobj = 0;
5c8c7dd3
RD
27284 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27285 wxRect2DDouble result;
70d7cb34
RD
27286 void *argp1 = 0 ;
27287 int res1 = 0 ;
5c8c7dd3 27288 PyObject *swig_obj[1] ;
70d7cb34 27289
5c8c7dd3
RD
27290 if (!args) SWIG_fail;
27291 swig_obj[0] = args;
27292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27293 if (!SWIG_IsOK(res1)) {
8f514ab4 27294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27295 }
5c8c7dd3 27296 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27297 {
8f514ab4 27298 result = ((wxGraphicsPath const *)arg1)->GetBox();
70d7cb34
RD
27299 if (PyErr_Occurred()) SWIG_fail;
27300 }
5c8c7dd3 27301 resultobj = SWIG_NewPointerObj((new wxRect2DDouble(static_cast< const wxRect2DDouble& >(result))), SWIGTYPE_p_wxRect2DDouble, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
27302 return resultobj;
27303fail:
27304 return NULL;
27305}
27306
27307
5c8c7dd3 27308SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34 27309 PyObject *resultobj = 0;
5c8c7dd3
RD
27310 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27311 wxDouble arg2 ;
27312 wxDouble arg3 ;
8f514ab4 27313 int arg4 = (int) wxODDEVEN_RULE ;
5c8c7dd3 27314 bool result;
70d7cb34
RD
27315 void *argp1 = 0 ;
27316 int res1 = 0 ;
5c8c7dd3
RD
27317 double val2 ;
27318 int ecode2 = 0 ;
27319 double val3 ;
27320 int ecode3 = 0 ;
27321 int val4 ;
27322 int ecode4 = 0 ;
70d7cb34 27323
5c8c7dd3
RD
27324 if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
27325 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27326 if (!SWIG_IsOK(res1)) {
8f514ab4 27327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27328 }
5c8c7dd3
RD
27329 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27330 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27331 if (!SWIG_IsOK(ecode2)) {
27332 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'");
27333 }
27334 arg2 = static_cast< wxDouble >(val2);
27335 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27336 if (!SWIG_IsOK(ecode3)) {
27337 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'");
27338 }
27339 arg3 = static_cast< wxDouble >(val3);
27340 if (swig_obj[3]) {
27341 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
27342 if (!SWIG_IsOK(ecode4)) {
27343 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'");
27344 }
27345 arg4 = static_cast< int >(val4);
70d7cb34
RD
27346 }
27347 {
8f514ab4 27348 result = (bool)((wxGraphicsPath const *)arg1)->Contains(arg2,arg3,arg4);
70d7cb34
RD
27349 if (PyErr_Occurred()) SWIG_fail;
27350 }
5c8c7dd3
RD
27351 {
27352 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
70d7cb34
RD
27353 }
27354 return resultobj;
27355fail:
27356 return NULL;
27357}
27358
27359
5c8c7dd3 27360SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34 27361 PyObject *resultobj = 0;
5c8c7dd3
RD
27362 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27363 wxPoint2DDouble *arg2 = 0 ;
8f514ab4 27364 int arg3 = (int) wxODDEVEN_RULE ;
5c8c7dd3 27365 bool result;
70d7cb34
RD
27366 void *argp1 = 0 ;
27367 int res1 = 0 ;
5c8c7dd3 27368 void *argp2 = 0 ;
70d7cb34 27369 int res2 = 0 ;
5c8c7dd3
RD
27370 int val3 ;
27371 int ecode3 = 0 ;
70d7cb34 27372
5c8c7dd3
RD
27373 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
27374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27375 if (!SWIG_IsOK(res1)) {
8f514ab4 27376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27377 }
5c8c7dd3
RD
27378 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27379 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPoint2DDouble, 0 | 0);
27380 if (!SWIG_IsOK(res2)) {
27381 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
70d7cb34 27382 }
5c8c7dd3
RD
27383 if (!argp2) {
27384 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
27385 }
27386 arg2 = reinterpret_cast< wxPoint2DDouble * >(argp2);
27387 if (swig_obj[2]) {
27388 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
27389 if (!SWIG_IsOK(ecode3)) {
27390 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'");
27391 }
27392 arg3 = static_cast< int >(val3);
70d7cb34
RD
27393 }
27394 {
8f514ab4 27395 result = (bool)((wxGraphicsPath const *)arg1)->Contains((wxPoint2DDouble const &)*arg2,arg3);
70d7cb34
RD
27396 if (PyErr_Occurred()) SWIG_fail;
27397 }
5c8c7dd3
RD
27398 {
27399 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
70d7cb34
RD
27400 }
27401 return resultobj;
27402fail:
27403 return NULL;
27404}
27405
27406
5c8c7dd3
RD
27407SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) {
27408 int argc;
27409 PyObject *argv[5];
70d7cb34 27410
5c8c7dd3
RD
27411 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail;
27412 --argc;
27413 if ((argc >= 2) && (argc <= 3)) {
27414 int _v = 0;
27415 {
27416 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxPoint2DDouble, 0);
27417 _v = SWIG_CheckState(res);
27418 }
27419 if (!_v) goto check_1;
27420 if (argc > 2) {
27421 {
27422 {
27423 int res = SWIG_AsVal_int(argv[2], NULL);
27424 _v = SWIG_CheckState(res);
27425 }
27426 }
27427 if (!_v) goto check_1;
27428 }
27429 return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv);
70d7cb34 27430 }
5c8c7dd3
RD
27431check_1:
27432
27433 if ((argc >= 3) && (argc <= 4)) {
27434 return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv);
70d7cb34 27435 }
5c8c7dd3 27436
70d7cb34 27437fail:
5c8c7dd3 27438 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'");
70d7cb34
RD
27439 return NULL;
27440}
27441
27442
5c8c7dd3 27443SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
27444 PyObject *obj;
27445 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5c8c7dd3 27446 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
70d7cb34
RD
27447 return SWIG_Py_Void();
27448}
27449
8f514ab4
RD
27450SWIGINTERN PyObject *GraphicsPath_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27451 return SWIG_Python_InitShadowInstance(args);
27452}
27453
5c8c7dd3
RD
27454SWIGINTERN int NullGraphicsPen_set(PyObject *) {
27455 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only.");
27456 return 1;
27457}
27458
27459
27460SWIGINTERN PyObject *NullGraphicsPen_get(void) {
27461 PyObject *pyobj = 0;
27462
27463 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 );
27464 return pyobj;
27465}
27466
27467
27468SWIGINTERN int NullGraphicsBrush_set(PyObject *) {
27469 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only.");
27470 return 1;
27471}
27472
27473
27474SWIGINTERN PyObject *NullGraphicsBrush_get(void) {
27475 PyObject *pyobj = 0;
27476
27477 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 );
27478 return pyobj;
27479}
27480
27481
27482SWIGINTERN int NullGraphicsFont_set(PyObject *) {
27483 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only.");
27484 return 1;
27485}
27486
27487
27488SWIGINTERN PyObject *NullGraphicsFont_get(void) {
27489 PyObject *pyobj = 0;
27490
27491 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 );
27492 return pyobj;
27493}
27494
27495
27496SWIGINTERN int NullGraphicsMatrix_set(PyObject *) {
27497 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsMatrix is read-only.");
27498 return 1;
27499}
27500
27501
27502SWIGINTERN PyObject *NullGraphicsMatrix_get(void) {
27503 PyObject *pyobj = 0;
27504
27505 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsMatrix), SWIGTYPE_p_wxGraphicsMatrix, 0 );
27506 return pyobj;
27507}
27508
27509
27510SWIGINTERN int NullGraphicsPath_set(PyObject *) {
27511 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPath is read-only.");
27512 return 1;
27513}
27514
27515
27516SWIGINTERN PyObject *NullGraphicsPath_get(void) {
27517 PyObject *pyobj = 0;
27518
27519 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPath), SWIGTYPE_p_wxGraphicsPath, 0 );
27520 return pyobj;
27521}
27522
27523
70d7cb34
RD
27524SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27525 PyObject *resultobj = 0;
27526 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27527 void *argp1 = 0 ;
27528 int res1 = 0 ;
27529 PyObject *swig_obj[1] ;
27530
27531 if (!args) SWIG_fail;
27532 swig_obj[0] = args;
27533 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
27534 if (!SWIG_IsOK(res1)) {
27535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27536 }
27537 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27538 {
27539 delete arg1;
27540
27541 if (PyErr_Occurred()) SWIG_fail;
27542 }
27543 resultobj = SWIG_Py_Void();
27544 return resultobj;
27545fail:
27546 return NULL;
27547}
27548
27549
27550SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27551 PyObject *resultobj = 0;
27552 wxWindowDC *arg1 = 0 ;
27553 wxGraphicsContext *result = 0 ;
27554 void *argp1 = 0 ;
27555 int res1 = 0 ;
27556
27557 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
27559 if (!SWIG_IsOK(res1)) {
27560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27561 }
27562 if (!argp1) {
27563 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27564 }
27565 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
27566 {
27567 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
27568 if (PyErr_Occurred()) SWIG_fail;
27569 }
27570 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27571 return resultobj;
27572fail:
27573 return NULL;
27574}
27575
27576
27577SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27578 PyObject *resultobj = 0;
27579 wxWindow *arg1 = (wxWindow *) 0 ;
27580 wxGraphicsContext *result = 0 ;
27581 void *argp1 = 0 ;
27582 int res1 = 0 ;
27583
27584 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27585 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
27586 if (!SWIG_IsOK(res1)) {
27587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
27588 }
27589 arg1 = reinterpret_cast< wxWindow * >(argp1);
27590 {
27591 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
27592 if (PyErr_Occurred()) SWIG_fail;
27593 }
27594 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27595 return resultobj;
27596fail:
27597 return NULL;
27598}
27599
27600
27601SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
27602 int argc;
27603 PyObject *argv[2];
27604
27605 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
27606 --argc;
27607 if (argc == 1) {
27608 int _v = 0;
27609 {
27610 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
27611 _v = SWIG_CheckState(res);
27612 }
27613 if (!_v) goto check_1;
27614 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
27615 }
27616check_1:
27617
27618 if (argc == 1) {
27619 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
27620 }
27621
27622fail:
27623 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
27624 return NULL;
27625}
27626
27627
27628SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27629 PyObject *resultobj = 0;
27630 void *arg1 = (void *) 0 ;
27631 wxGraphicsContext *result = 0 ;
27632 int res1 ;
27633 PyObject * obj0 = 0 ;
27634 char * kwnames[] = {
27635 (char *) "context", NULL
27636 };
27637
27638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
27639 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
27640 if (!SWIG_IsOK(res1)) {
27641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
27642 }
27643 {
27644 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
27645 if (PyErr_Occurred()) SWIG_fail;
27646 }
27647 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27648 return resultobj;
27649fail:
27650 return NULL;
27651}
27652
27653
27654SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27655 PyObject *resultobj = 0;
27656 void *arg1 = (void *) 0 ;
27657 wxGraphicsContext *result = 0 ;
27658 int res1 ;
27659 PyObject * obj0 = 0 ;
27660 char * kwnames[] = {
27661 (char *) "window", NULL
27662 };
27663
27664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail;
27665 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
27666 if (!SWIG_IsOK(res1)) {
27667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'");
27668 }
27669 {
27670 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1);
27671 if (PyErr_Occurred()) SWIG_fail;
27672 }
27673 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27674 return resultobj;
27675fail:
27676 return NULL;
27677}
27678
27679
27680SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27681 PyObject *resultobj = 0;
27682 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 27683 wxGraphicsPath result;
70d7cb34
RD
27684 void *argp1 = 0 ;
27685 int res1 = 0 ;
27686 PyObject *swig_obj[1] ;
27687
27688 if (!args) SWIG_fail;
27689 swig_obj[0] = args;
27690 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27691 if (!SWIG_IsOK(res1)) {
27692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27693 }
27694 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27695 {
5c8c7dd3 27696 result = (arg1)->CreatePath();
70d7cb34
RD
27697 if (PyErr_Occurred()) SWIG_fail;
27698 }
5c8c7dd3 27699 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27700 return resultobj;
27701fail:
27702 return NULL;
27703}
27704
27705
70d7cb34 27706SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27707 PyObject *resultobj = 0;
70d7cb34
RD
27708 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27709 wxPen *arg2 = 0 ;
27710 wxGraphicsPen result;
72ef6efb
RD
27711 void *argp1 = 0 ;
27712 int res1 = 0 ;
70d7cb34
RD
27713 void *argp2 = 0 ;
27714 int res2 = 0 ;
72ef6efb
RD
27715 PyObject * obj0 = 0 ;
27716 PyObject * obj1 = 0 ;
72ef6efb 27717 char * kwnames[] = {
70d7cb34 27718 (char *) "self",(char *) "pen", NULL
72ef6efb
RD
27719 };
27720
70d7cb34
RD
27721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
27722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27723 if (!SWIG_IsOK(res1)) {
70d7cb34 27724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27725 }
70d7cb34
RD
27726 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27727 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
27728 if (!SWIG_IsOK(res2)) {
27729 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
27730 }
27731 if (!argp2) {
27732 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
27733 }
27734 arg2 = reinterpret_cast< wxPen * >(argp2);
72ef6efb 27735 {
70d7cb34 27736 result = (arg1)->CreatePen((wxPen const &)*arg2);
72ef6efb
RD
27737 if (PyErr_Occurred()) SWIG_fail;
27738 }
70d7cb34 27739 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27740 return resultobj;
27741fail:
27742 return NULL;
27743}
27744
27745
70d7cb34 27746SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27747 PyObject *resultobj = 0;
70d7cb34
RD
27748 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27749 wxBrush *arg2 = 0 ;
27750 wxGraphicsBrush result;
72ef6efb
RD
27751 void *argp1 = 0 ;
27752 int res1 = 0 ;
70d7cb34
RD
27753 void *argp2 = 0 ;
27754 int res2 = 0 ;
72ef6efb
RD
27755 PyObject * obj0 = 0 ;
27756 PyObject * obj1 = 0 ;
72ef6efb 27757 char * kwnames[] = {
70d7cb34 27758 (char *) "self",(char *) "brush", NULL
72ef6efb
RD
27759 };
27760
70d7cb34
RD
27761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
27762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27763 if (!SWIG_IsOK(res1)) {
70d7cb34 27764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27765 }
70d7cb34
RD
27766 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27767 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
27768 if (!SWIG_IsOK(res2)) {
27769 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27770 }
27771 if (!argp2) {
27772 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27773 }
27774 arg2 = reinterpret_cast< wxBrush * >(argp2);
72ef6efb 27775 {
70d7cb34 27776 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
72ef6efb
RD
27777 if (PyErr_Occurred()) SWIG_fail;
27778 }
70d7cb34 27779 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27780 return resultobj;
27781fail:
27782 return NULL;
27783}
27784
27785
70d7cb34 27786SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27787 PyObject *resultobj = 0;
70d7cb34 27788 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
72ef6efb
RD
27789 wxDouble arg2 ;
27790 wxDouble arg3 ;
27791 wxDouble arg4 ;
27792 wxDouble arg5 ;
70d7cb34
RD
27793 wxColour *arg6 = 0 ;
27794 wxColour *arg7 = 0 ;
27795 wxGraphicsBrush result;
72ef6efb
RD
27796 void *argp1 = 0 ;
27797 int res1 = 0 ;
27798 double val2 ;
27799 int ecode2 = 0 ;
27800 double val3 ;
27801 int ecode3 = 0 ;
27802 double val4 ;
27803 int ecode4 = 0 ;
27804 double val5 ;
27805 int ecode5 = 0 ;
70d7cb34
RD
27806 wxColour temp6 ;
27807 wxColour temp7 ;
72ef6efb
RD
27808 PyObject * obj0 = 0 ;
27809 PyObject * obj1 = 0 ;
27810 PyObject * obj2 = 0 ;
27811 PyObject * obj3 = 0 ;
27812 PyObject * obj4 = 0 ;
70d7cb34
RD
27813 PyObject * obj5 = 0 ;
27814 PyObject * obj6 = 0 ;
72ef6efb 27815 char * kwnames[] = {
70d7cb34 27816 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
72ef6efb
RD
27817 };
27818
70d7cb34
RD
27819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27821 if (!SWIG_IsOK(res1)) {
70d7cb34 27822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27823 }
70d7cb34 27824 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
72ef6efb
RD
27825 ecode2 = SWIG_AsVal_double(obj1, &val2);
27826 if (!SWIG_IsOK(ecode2)) {
70d7cb34 27827 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
27828 }
27829 arg2 = static_cast< wxDouble >(val2);
27830 ecode3 = SWIG_AsVal_double(obj2, &val3);
27831 if (!SWIG_IsOK(ecode3)) {
70d7cb34 27832 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
27833 }
27834 arg3 = static_cast< wxDouble >(val3);
27835 ecode4 = SWIG_AsVal_double(obj3, &val4);
27836 if (!SWIG_IsOK(ecode4)) {
70d7cb34 27837 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
27838 }
27839 arg4 = static_cast< wxDouble >(val4);
27840 ecode5 = SWIG_AsVal_double(obj4, &val5);
27841 if (!SWIG_IsOK(ecode5)) {
70d7cb34 27842 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
27843 }
27844 arg5 = static_cast< wxDouble >(val5);
27845 {
70d7cb34
RD
27846 arg6 = &temp6;
27847 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
72ef6efb 27848 }
70d7cb34
RD
27849 {
27850 arg7 = &temp7;
27851 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
72ef6efb 27852 }
72ef6efb 27853 {
70d7cb34 27854 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
27855 if (PyErr_Occurred()) SWIG_fail;
27856 }
70d7cb34 27857 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27858 return resultobj;
27859fail:
27860 return NULL;
27861}
27862
27863
70d7cb34 27864SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27865 PyObject *resultobj = 0;
70d7cb34 27866 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
72ef6efb
RD
27867 wxDouble arg2 ;
27868 wxDouble arg3 ;
27869 wxDouble arg4 ;
27870 wxDouble arg5 ;
27871 wxDouble arg6 ;
70d7cb34
RD
27872 wxColour *arg7 = 0 ;
27873 wxColour *arg8 = 0 ;
27874 wxGraphicsBrush result;
72ef6efb
RD
27875 void *argp1 = 0 ;
27876 int res1 = 0 ;
27877 double val2 ;
27878 int ecode2 = 0 ;
27879 double val3 ;
27880 int ecode3 = 0 ;
27881 double val4 ;
27882 int ecode4 = 0 ;
27883 double val5 ;
27884 int ecode5 = 0 ;
27885 double val6 ;
27886 int ecode6 = 0 ;
70d7cb34
RD
27887 wxColour temp7 ;
27888 wxColour temp8 ;
72ef6efb
RD
27889 PyObject * obj0 = 0 ;
27890 PyObject * obj1 = 0 ;
27891 PyObject * obj2 = 0 ;
27892 PyObject * obj3 = 0 ;
27893 PyObject * obj4 = 0 ;
27894 PyObject * obj5 = 0 ;
70d7cb34
RD
27895 PyObject * obj6 = 0 ;
27896 PyObject * obj7 = 0 ;
72ef6efb 27897 char * kwnames[] = {
70d7cb34 27898 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
72ef6efb
RD
27899 };
27900
70d7cb34
RD
27901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
27902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27903 if (!SWIG_IsOK(res1)) {
70d7cb34 27904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27905 }
70d7cb34 27906 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
72ef6efb
RD
27907 ecode2 = SWIG_AsVal_double(obj1, &val2);
27908 if (!SWIG_IsOK(ecode2)) {
70d7cb34 27909 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
27910 }
27911 arg2 = static_cast< wxDouble >(val2);
27912 ecode3 = SWIG_AsVal_double(obj2, &val3);
27913 if (!SWIG_IsOK(ecode3)) {
70d7cb34 27914 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
27915 }
27916 arg3 = static_cast< wxDouble >(val3);
27917 ecode4 = SWIG_AsVal_double(obj3, &val4);
27918 if (!SWIG_IsOK(ecode4)) {
70d7cb34 27919 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
27920 }
27921 arg4 = static_cast< wxDouble >(val4);
27922 ecode5 = SWIG_AsVal_double(obj4, &val5);
27923 if (!SWIG_IsOK(ecode5)) {
70d7cb34 27924 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
27925 }
27926 arg5 = static_cast< wxDouble >(val5);
27927 ecode6 = SWIG_AsVal_double(obj5, &val6);
27928 if (!SWIG_IsOK(ecode6)) {
70d7cb34 27929 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
72ef6efb
RD
27930 }
27931 arg6 = static_cast< wxDouble >(val6);
27932 {
70d7cb34
RD
27933 arg7 = &temp7;
27934 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
27935 }
27936 {
27937 arg8 = &temp8;
27938 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
27939 }
27940 {
27941 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
27942 if (PyErr_Occurred()) SWIG_fail;
27943 }
70d7cb34 27944 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27945 return resultobj;
27946fail:
27947 return NULL;
27948}
27949
27950
70d7cb34 27951SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
27952 PyObject *resultobj = 0;
27953 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34
RD
27954 wxFont *arg2 = 0 ;
27955 wxColour const &arg3_defvalue = *wxBLACK ;
27956 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
27957 wxGraphicsFont result;
72ef6efb
RD
27958 void *argp1 = 0 ;
27959 int res1 = 0 ;
70d7cb34
RD
27960 void *argp2 = 0 ;
27961 int res2 = 0 ;
27962 wxColour temp3 ;
27963 PyObject * obj0 = 0 ;
27964 PyObject * obj1 = 0 ;
27965 PyObject * obj2 = 0 ;
27966 char * kwnames[] = {
27967 (char *) "self",(char *) "font",(char *) "col", NULL
27968 };
72ef6efb 27969
70d7cb34
RD
27970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27972 if (!SWIG_IsOK(res1)) {
70d7cb34 27973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
27974 }
27975 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
27976 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
27977 if (!SWIG_IsOK(res2)) {
27978 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
72ef6efb 27979 }
70d7cb34
RD
27980 if (!argp2) {
27981 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
72ef6efb 27982 }
70d7cb34
RD
27983 arg2 = reinterpret_cast< wxFont * >(argp2);
27984 if (obj2) {
27985 {
27986 arg3 = &temp3;
27987 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
27988 }
72ef6efb 27989 }
72ef6efb 27990 {
70d7cb34 27991 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
72ef6efb
RD
27992 if (PyErr_Occurred()) SWIG_fail;
27993 }
70d7cb34 27994 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27995 return resultobj;
27996fail:
27997 return NULL;
27998}
27999
28000
70d7cb34 28001SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0a27f394 28002 PyObject *resultobj = 0;
70d7cb34
RD
28003 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28004 wxDouble arg2 = (wxDouble) 1.0 ;
28005 wxDouble arg3 = (wxDouble) 0.0 ;
28006 wxDouble arg4 = (wxDouble) 0.0 ;
28007 wxDouble arg5 = (wxDouble) 1.0 ;
28008 wxDouble arg6 = (wxDouble) 0.0 ;
28009 wxDouble arg7 = (wxDouble) 0.0 ;
5c8c7dd3 28010 wxGraphicsMatrix result;
0a27f394
RD
28011 void *argp1 = 0 ;
28012 int res1 = 0 ;
70d7cb34
RD
28013 double val2 ;
28014 int ecode2 = 0 ;
28015 double val3 ;
28016 int ecode3 = 0 ;
28017 double val4 ;
28018 int ecode4 = 0 ;
28019 double val5 ;
28020 int ecode5 = 0 ;
28021 double val6 ;
28022 int ecode6 = 0 ;
28023 double val7 ;
28024 int ecode7 = 0 ;
28025 PyObject * obj0 = 0 ;
28026 PyObject * obj1 = 0 ;
28027 PyObject * obj2 = 0 ;
28028 PyObject * obj3 = 0 ;
28029 PyObject * obj4 = 0 ;
28030 PyObject * obj5 = 0 ;
28031 PyObject * obj6 = 0 ;
28032 char * kwnames[] = {
28033 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
28034 };
0a27f394 28035
70d7cb34
RD
28036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
0a27f394 28038 if (!SWIG_IsOK(res1)) {
70d7cb34 28039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
0a27f394 28040 }
70d7cb34
RD
28041 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28042 if (obj1) {
28043 ecode2 = SWIG_AsVal_double(obj1, &val2);
28044 if (!SWIG_IsOK(ecode2)) {
28045 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
28046 }
28047 arg2 = static_cast< wxDouble >(val2);
0a27f394 28048 }
70d7cb34
RD
28049 if (obj2) {
28050 ecode3 = SWIG_AsVal_double(obj2, &val3);
28051 if (!SWIG_IsOK(ecode3)) {
28052 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
28053 }
28054 arg3 = static_cast< wxDouble >(val3);
0a27f394 28055 }
70d7cb34
RD
28056 if (obj3) {
28057 ecode4 = SWIG_AsVal_double(obj3, &val4);
28058 if (!SWIG_IsOK(ecode4)) {
28059 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
28060 }
28061 arg4 = static_cast< wxDouble >(val4);
0a27f394 28062 }
70d7cb34
RD
28063 if (obj4) {
28064 ecode5 = SWIG_AsVal_double(obj4, &val5);
28065 if (!SWIG_IsOK(ecode5)) {
28066 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
28067 }
28068 arg5 = static_cast< wxDouble >(val5);
0a27f394 28069 }
70d7cb34
RD
28070 if (obj5) {
28071 ecode6 = SWIG_AsVal_double(obj5, &val6);
28072 if (!SWIG_IsOK(ecode6)) {
28073 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
28074 }
28075 arg6 = static_cast< wxDouble >(val6);
0a27f394 28076 }
70d7cb34
RD
28077 if (obj6) {
28078 ecode7 = SWIG_AsVal_double(obj6, &val7);
28079 if (!SWIG_IsOK(ecode7)) {
28080 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
28081 }
28082 arg7 = static_cast< wxDouble >(val7);
72ef6efb 28083 }
72ef6efb 28084 {
5c8c7dd3 28085 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
28086 if (PyErr_Occurred()) SWIG_fail;
28087 }
5c8c7dd3 28088 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28089 return resultobj;
28090fail:
28091 return NULL;
28092}
28093
28094
28095SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28096 PyObject *resultobj = 0;
28097 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28098 void *argp1 = 0 ;
28099 int res1 = 0 ;
28100 PyObject *swig_obj[1] ;
28101
28102 if (!args) SWIG_fail;
28103 swig_obj[0] = args;
28104 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28105 if (!SWIG_IsOK(res1)) {
28106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28107 }
28108 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28109 {
72ef6efb 28110 (arg1)->PushState();
72ef6efb
RD
28111 if (PyErr_Occurred()) SWIG_fail;
28112 }
28113 resultobj = SWIG_Py_Void();
28114 return resultobj;
28115fail:
28116 return NULL;
28117}
28118
28119
28120SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28121 PyObject *resultobj = 0;
28122 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28123 void *argp1 = 0 ;
28124 int res1 = 0 ;
28125 PyObject *swig_obj[1] ;
28126
28127 if (!args) SWIG_fail;
28128 swig_obj[0] = args;
28129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28130 if (!SWIG_IsOK(res1)) {
28131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28132 }
28133 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28134 {
72ef6efb 28135 (arg1)->PopState();
72ef6efb
RD
28136 if (PyErr_Occurred()) SWIG_fail;
28137 }
28138 resultobj = SWIG_Py_Void();
28139 return resultobj;
28140fail:
28141 return NULL;
28142}
28143
28144
0a27f394 28145SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28146 PyObject *resultobj = 0;
28147 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28148 wxRegion *arg2 = 0 ;
28149 void *argp1 = 0 ;
28150 int res1 = 0 ;
28151 void *argp2 = 0 ;
28152 int res2 = 0 ;
28153 PyObject * obj0 = 0 ;
28154 PyObject * obj1 = 0 ;
28155 char * kwnames[] = {
28156 (char *) "self",(char *) "region", NULL
28157 };
28158
0a27f394 28159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
28160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28161 if (!SWIG_IsOK(res1)) {
0a27f394 28162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28163 }
28164 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28165 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
28166 if (!SWIG_IsOK(res2)) {
0a27f394 28167 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
28168 }
28169 if (!argp2) {
0a27f394 28170 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
28171 }
28172 arg2 = reinterpret_cast< wxRegion * >(argp2);
28173 {
72ef6efb 28174 (arg1)->Clip((wxRegion const &)*arg2);
72ef6efb
RD
28175 if (PyErr_Occurred()) SWIG_fail;
28176 }
28177 resultobj = SWIG_Py_Void();
28178 return resultobj;
28179fail:
28180 return NULL;
28181}
28182
28183
0a27f394
RD
28184SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28185 PyObject *resultobj = 0;
28186 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28187 wxDouble arg2 ;
28188 wxDouble arg3 ;
28189 wxDouble arg4 ;
28190 wxDouble arg5 ;
28191 void *argp1 = 0 ;
28192 int res1 = 0 ;
28193 double val2 ;
28194 int ecode2 = 0 ;
28195 double val3 ;
28196 int ecode3 = 0 ;
28197 double val4 ;
28198 int ecode4 = 0 ;
28199 double val5 ;
28200 int ecode5 = 0 ;
28201 PyObject * obj0 = 0 ;
28202 PyObject * obj1 = 0 ;
28203 PyObject * obj2 = 0 ;
28204 PyObject * obj3 = 0 ;
28205 PyObject * obj4 = 0 ;
28206 char * kwnames[] = {
28207 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
28208 };
28209
28210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28212 if (!SWIG_IsOK(res1)) {
28213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28214 }
28215 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28216 ecode2 = SWIG_AsVal_double(obj1, &val2);
28217 if (!SWIG_IsOK(ecode2)) {
28218 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
28219 }
28220 arg2 = static_cast< wxDouble >(val2);
28221 ecode3 = SWIG_AsVal_double(obj2, &val3);
28222 if (!SWIG_IsOK(ecode3)) {
28223 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
28224 }
28225 arg3 = static_cast< wxDouble >(val3);
28226 ecode4 = SWIG_AsVal_double(obj3, &val4);
28227 if (!SWIG_IsOK(ecode4)) {
28228 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
28229 }
28230 arg4 = static_cast< wxDouble >(val4);
28231 ecode5 = SWIG_AsVal_double(obj4, &val5);
28232 if (!SWIG_IsOK(ecode5)) {
28233 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
28234 }
28235 arg5 = static_cast< wxDouble >(val5);
28236 {
28237 (arg1)->Clip(arg2,arg3,arg4,arg5);
28238 if (PyErr_Occurred()) SWIG_fail;
28239 }
28240 resultobj = SWIG_Py_Void();
28241 return resultobj;
28242fail:
28243 return NULL;
28244}
28245
28246
28247SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28248 PyObject *resultobj = 0;
28249 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28250 void *argp1 = 0 ;
28251 int res1 = 0 ;
28252 PyObject *swig_obj[1] ;
28253
28254 if (!args) SWIG_fail;
28255 swig_obj[0] = args;
28256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28257 if (!SWIG_IsOK(res1)) {
28258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28259 }
28260 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28261 {
28262 (arg1)->ResetClip();
28263 if (PyErr_Occurred()) SWIG_fail;
28264 }
28265 resultobj = SWIG_Py_Void();
28266 return resultobj;
28267fail:
28268 return NULL;
28269}
28270
28271
28272SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28273 PyObject *resultobj = 0;
28274 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28275 void *result = 0 ;
28276 void *argp1 = 0 ;
28277 int res1 = 0 ;
28278 PyObject *swig_obj[1] ;
28279
28280 if (!args) SWIG_fail;
28281 swig_obj[0] = args;
28282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28283 if (!SWIG_IsOK(res1)) {
28284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28285 }
28286 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28287 {
28288 result = (void *)(arg1)->GetNativeContext();
28289 if (PyErr_Occurred()) SWIG_fail;
28290 }
28291 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
28292 return resultobj;
28293fail:
28294 return NULL;
28295}
28296
28297
72ef6efb
RD
28298SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28299 PyObject *resultobj = 0;
28300 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28301 wxDouble arg2 ;
28302 wxDouble arg3 ;
28303 void *argp1 = 0 ;
28304 int res1 = 0 ;
28305 double val2 ;
28306 int ecode2 = 0 ;
28307 double val3 ;
28308 int ecode3 = 0 ;
28309 PyObject * obj0 = 0 ;
28310 PyObject * obj1 = 0 ;
28311 PyObject * obj2 = 0 ;
28312 char * kwnames[] = {
28313 (char *) "self",(char *) "dx",(char *) "dy", NULL
28314 };
28315
28316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28318 if (!SWIG_IsOK(res1)) {
28319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28320 }
28321 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28322 ecode2 = SWIG_AsVal_double(obj1, &val2);
28323 if (!SWIG_IsOK(ecode2)) {
28324 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
28325 }
28326 arg2 = static_cast< wxDouble >(val2);
28327 ecode3 = SWIG_AsVal_double(obj2, &val3);
28328 if (!SWIG_IsOK(ecode3)) {
28329 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
28330 }
28331 arg3 = static_cast< wxDouble >(val3);
28332 {
72ef6efb 28333 (arg1)->Translate(arg2,arg3);
72ef6efb
RD
28334 if (PyErr_Occurred()) SWIG_fail;
28335 }
28336 resultobj = SWIG_Py_Void();
28337 return resultobj;
28338fail:
28339 return NULL;
28340}
28341
28342
28343SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28344 PyObject *resultobj = 0;
28345 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28346 wxDouble arg2 ;
28347 wxDouble arg3 ;
28348 void *argp1 = 0 ;
28349 int res1 = 0 ;
28350 double val2 ;
28351 int ecode2 = 0 ;
28352 double val3 ;
28353 int ecode3 = 0 ;
28354 PyObject * obj0 = 0 ;
28355 PyObject * obj1 = 0 ;
28356 PyObject * obj2 = 0 ;
28357 char * kwnames[] = {
28358 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
28359 };
28360
28361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28362 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28363 if (!SWIG_IsOK(res1)) {
28364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28365 }
28366 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28367 ecode2 = SWIG_AsVal_double(obj1, &val2);
28368 if (!SWIG_IsOK(ecode2)) {
28369 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
28370 }
28371 arg2 = static_cast< wxDouble >(val2);
28372 ecode3 = SWIG_AsVal_double(obj2, &val3);
28373 if (!SWIG_IsOK(ecode3)) {
28374 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
28375 }
28376 arg3 = static_cast< wxDouble >(val3);
28377 {
72ef6efb 28378 (arg1)->Scale(arg2,arg3);
72ef6efb
RD
28379 if (PyErr_Occurred()) SWIG_fail;
28380 }
28381 resultobj = SWIG_Py_Void();
28382 return resultobj;
28383fail:
28384 return NULL;
28385}
28386
28387
28388SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28389 PyObject *resultobj = 0;
28390 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28391 wxDouble arg2 ;
28392 void *argp1 = 0 ;
28393 int res1 = 0 ;
28394 double val2 ;
28395 int ecode2 = 0 ;
28396 PyObject * obj0 = 0 ;
28397 PyObject * obj1 = 0 ;
28398 char * kwnames[] = {
28399 (char *) "self",(char *) "angle", NULL
28400 };
28401
28402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
28403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28404 if (!SWIG_IsOK(res1)) {
28405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28406 }
28407 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28408 ecode2 = SWIG_AsVal_double(obj1, &val2);
28409 if (!SWIG_IsOK(ecode2)) {
28410 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
28411 }
28412 arg2 = static_cast< wxDouble >(val2);
28413 {
72ef6efb 28414 (arg1)->Rotate(arg2);
72ef6efb
RD
28415 if (PyErr_Occurred()) SWIG_fail;
28416 }
28417 resultobj = SWIG_Py_Void();
28418 return resultobj;
28419fail:
28420 return NULL;
28421}
28422
28423
5c8c7dd3
RD
28424SWIGINTERN PyObject *_wrap_GraphicsContext_ConcatTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28425 PyObject *resultobj = 0;
28426 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28427 wxGraphicsMatrix *arg2 = 0 ;
28428 void *argp1 = 0 ;
28429 int res1 = 0 ;
28430 void *argp2 = 0 ;
28431 int res2 = 0 ;
28432 PyObject * obj0 = 0 ;
28433 PyObject * obj1 = 0 ;
28434 char * kwnames[] = {
28435 (char *) "self",(char *) "matrix", NULL
28436 };
28437
28438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ConcatTransform",kwnames,&obj0,&obj1)) SWIG_fail;
28439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28440 if (!SWIG_IsOK(res1)) {
28441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28442 }
28443 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28444 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28445 if (!SWIG_IsOK(res2)) {
28446 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28447 }
28448 if (!argp2) {
28449 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28450 }
28451 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28452 {
28453 (arg1)->ConcatTransform((wxGraphicsMatrix const &)*arg2);
28454 if (PyErr_Occurred()) SWIG_fail;
28455 }
28456 resultobj = SWIG_Py_Void();
28457 return resultobj;
28458fail:
28459 return NULL;
28460}
28461
28462
28463SWIGINTERN PyObject *_wrap_GraphicsContext_SetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28464 PyObject *resultobj = 0;
28465 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28466 wxGraphicsMatrix *arg2 = 0 ;
28467 void *argp1 = 0 ;
28468 int res1 = 0 ;
28469 void *argp2 = 0 ;
28470 int res2 = 0 ;
28471 PyObject * obj0 = 0 ;
28472 PyObject * obj1 = 0 ;
28473 char * kwnames[] = {
28474 (char *) "self",(char *) "matrix", NULL
28475 };
28476
28477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTransform",kwnames,&obj0,&obj1)) SWIG_fail;
28478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28479 if (!SWIG_IsOK(res1)) {
28480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28481 }
28482 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28483 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28484 if (!SWIG_IsOK(res2)) {
28485 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28486 }
28487 if (!argp2) {
28488 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28489 }
28490 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28491 {
28492 (arg1)->SetTransform((wxGraphicsMatrix const &)*arg2);
28493 if (PyErr_Occurred()) SWIG_fail;
28494 }
28495 resultobj = SWIG_Py_Void();
28496 return resultobj;
28497fail:
28498 return NULL;
28499}
28500
28501
28502SWIGINTERN PyObject *_wrap_GraphicsContext_GetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28503 PyObject *resultobj = 0;
28504 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28505 wxGraphicsMatrix result;
28506 void *argp1 = 0 ;
28507 int res1 = 0 ;
28508 PyObject *swig_obj[1] ;
28509
28510 if (!args) SWIG_fail;
28511 swig_obj[0] = args;
28512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28513 if (!SWIG_IsOK(res1)) {
28514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
28515 }
28516 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28517 {
28518 result = ((wxGraphicsContext const *)arg1)->GetTransform();
28519 if (PyErr_Occurred()) SWIG_fail;
28520 }
28521 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
28522 return resultobj;
28523fail:
28524 return NULL;
28525}
28526
28527
70d7cb34
RD
28528SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28529 PyObject *resultobj = 0;
28530 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28531 wxGraphicsPen *arg2 = 0 ;
28532 void *argp1 = 0 ;
28533 int res1 = 0 ;
28534 void *argp2 = 0 ;
28535 int res2 = 0 ;
28536
28537 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28538 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28539 if (!SWIG_IsOK(res1)) {
28540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28541 }
28542 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28543 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0);
28544 if (!SWIG_IsOK(res2)) {
28545 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
28546 }
28547 if (!argp2) {
28548 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
28549 }
28550 arg2 = reinterpret_cast< wxGraphicsPen * >(argp2);
28551 {
28552 (arg1)->SetPen((wxGraphicsPen const &)*arg2);
28553 if (PyErr_Occurred()) SWIG_fail;
28554 }
28555 resultobj = SWIG_Py_Void();
28556 return resultobj;
28557fail:
28558 return NULL;
28559}
28560
28561
28562SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28563 PyObject *resultobj = 0;
28564 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28565 wxPen *arg2 = 0 ;
28566 void *argp1 = 0 ;
28567 int res1 = 0 ;
28568 void *argp2 = 0 ;
28569 int res2 = 0 ;
72ef6efb 28570
70d7cb34
RD
28571 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28572 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28573 if (!SWIG_IsOK(res1)) {
28574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28575 }
28576 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 28577 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0);
72ef6efb
RD
28578 if (!SWIG_IsOK(res2)) {
28579 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28580 }
28581 if (!argp2) {
28582 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28583 }
28584 arg2 = reinterpret_cast< wxPen * >(argp2);
28585 {
72ef6efb 28586 (arg1)->SetPen((wxPen const &)*arg2);
72ef6efb
RD
28587 if (PyErr_Occurred()) SWIG_fail;
28588 }
28589 resultobj = SWIG_Py_Void();
28590 return resultobj;
28591fail:
28592 return NULL;
28593}
28594
28595
70d7cb34
RD
28596SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) {
28597 int argc;
28598 PyObject *argv[3];
28599
28600 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail;
28601 --argc;
28602 if (argc == 2) {
28603 int _v = 0;
28604 {
28605 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0);
28606 _v = SWIG_CheckState(res);
28607 }
28608 if (!_v) goto check_1;
28609 return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv);
28610 }
28611check_1:
28612
28613 if (argc == 2) {
28614 return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv);
28615 }
28616
28617fail:
28618 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'");
28619 return NULL;
28620}
28621
28622
28623SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28624 PyObject *resultobj = 0;
28625 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28626 wxGraphicsBrush *arg2 = 0 ;
28627 void *argp1 = 0 ;
28628 int res1 = 0 ;
28629 void *argp2 = 0 ;
28630 int res2 = 0 ;
28631
28632 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28633 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28634 if (!SWIG_IsOK(res1)) {
28635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28636 }
28637 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28638 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
28639 if (!SWIG_IsOK(res2)) {
28640 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
28641 }
28642 if (!argp2) {
28643 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
28644 }
28645 arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2);
28646 {
28647 (arg1)->SetBrush((wxGraphicsBrush const &)*arg2);
28648 if (PyErr_Occurred()) SWIG_fail;
28649 }
28650 resultobj = SWIG_Py_Void();
28651 return resultobj;
28652fail:
28653 return NULL;
28654}
28655
28656
28657SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28658 PyObject *resultobj = 0;
28659 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28660 wxBrush *arg2 = 0 ;
28661 void *argp1 = 0 ;
28662 int res1 = 0 ;
28663 void *argp2 = 0 ;
28664 int res2 = 0 ;
72ef6efb 28665
70d7cb34
RD
28666 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28667 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28668 if (!SWIG_IsOK(res1)) {
28669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28670 }
28671 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 28672 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
72ef6efb
RD
28673 if (!SWIG_IsOK(res2)) {
28674 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28675 }
28676 if (!argp2) {
28677 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28678 }
28679 arg2 = reinterpret_cast< wxBrush * >(argp2);
28680 {
72ef6efb 28681 (arg1)->SetBrush((wxBrush const &)*arg2);
72ef6efb
RD
28682 if (PyErr_Occurred()) SWIG_fail;
28683 }
28684 resultobj = SWIG_Py_Void();
28685 return resultobj;
28686fail:
28687 return NULL;
28688}
28689
28690
70d7cb34
RD
28691SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) {
28692 int argc;
28693 PyObject *argv[3];
72ef6efb 28694
70d7cb34
RD
28695 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail;
28696 --argc;
28697 if (argc == 2) {
28698 int _v = 0;
28699 {
28700 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0);
28701 _v = SWIG_CheckState(res);
28702 }
28703 if (!_v) goto check_1;
28704 return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv);
72ef6efb 28705 }
70d7cb34
RD
28706check_1:
28707
28708 if (argc == 2) {
28709 return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv);
72ef6efb 28710 }
70d7cb34 28711
72ef6efb 28712fail:
70d7cb34 28713 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'");
72ef6efb
RD
28714 return NULL;
28715}
28716
28717
70d7cb34 28718SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28719 PyObject *resultobj = 0;
28720 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34 28721 wxGraphicsFont *arg2 = 0 ;
72ef6efb
RD
28722 void *argp1 = 0 ;
28723 int res1 = 0 ;
70d7cb34
RD
28724 void *argp2 = 0 ;
28725 int res2 = 0 ;
72ef6efb 28726
70d7cb34
RD
28727 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28728 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28729 if (!SWIG_IsOK(res1)) {
70d7cb34 28730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28731 }
28732 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
28733 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0);
28734 if (!SWIG_IsOK(res2)) {
28735 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
72ef6efb 28736 }
70d7cb34
RD
28737 if (!argp2) {
28738 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
72ef6efb 28739 }
70d7cb34 28740 arg2 = reinterpret_cast< wxGraphicsFont * >(argp2);
72ef6efb 28741 {
70d7cb34 28742 (arg1)->SetFont((wxGraphicsFont const &)*arg2);
72ef6efb
RD
28743 if (PyErr_Occurred()) SWIG_fail;
28744 }
28745 resultobj = SWIG_Py_Void();
28746 return resultobj;
28747fail:
28748 return NULL;
28749}
28750
28751
70d7cb34 28752SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28753 PyObject *resultobj = 0;
28754 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28755 wxFont *arg2 = 0 ;
70d7cb34
RD
28756 wxColour const &arg3_defvalue = *wxBLACK ;
28757 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
72ef6efb
RD
28758 void *argp1 = 0 ;
28759 int res1 = 0 ;
28760 void *argp2 = 0 ;
28761 int res2 = 0 ;
70d7cb34 28762 wxColour temp3 ;
72ef6efb 28763
70d7cb34
RD
28764 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
28765 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28766 if (!SWIG_IsOK(res1)) {
28767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28768 }
28769 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 28770 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0);
72ef6efb
RD
28771 if (!SWIG_IsOK(res2)) {
28772 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28773 }
28774 if (!argp2) {
28775 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28776 }
28777 arg2 = reinterpret_cast< wxFont * >(argp2);
70d7cb34
RD
28778 if (swig_obj[2]) {
28779 {
28780 arg3 = &temp3;
28781 if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail;
28782 }
28783 }
72ef6efb 28784 {
70d7cb34 28785 (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3);
72ef6efb
RD
28786 if (PyErr_Occurred()) SWIG_fail;
28787 }
28788 resultobj = SWIG_Py_Void();
28789 return resultobj;
28790fail:
28791 return NULL;
28792}
28793
28794
70d7cb34
RD
28795SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) {
28796 int argc;
28797 PyObject *argv[4];
72ef6efb 28798
70d7cb34
RD
28799 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail;
28800 --argc;
28801 if (argc == 2) {
28802 int _v = 0;
28803 {
28804 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0);
28805 _v = SWIG_CheckState(res);
28806 }
28807 if (!_v) goto check_1;
28808 return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv);
72ef6efb 28809 }
70d7cb34
RD
28810check_1:
28811
28812 if ((argc >= 2) && (argc <= 3)) {
28813 return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv);
72ef6efb 28814 }
70d7cb34 28815
72ef6efb 28816fail:
70d7cb34 28817 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'");
72ef6efb
RD
28818 return NULL;
28819}
28820
28821
28822SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28823 PyObject *resultobj = 0;
28824 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 28825 wxGraphicsPath *arg2 = 0 ;
72ef6efb
RD
28826 void *argp1 = 0 ;
28827 int res1 = 0 ;
28828 void *argp2 = 0 ;
28829 int res2 = 0 ;
28830 PyObject * obj0 = 0 ;
28831 PyObject * obj1 = 0 ;
28832 char * kwnames[] = {
28833 (char *) "self",(char *) "path", NULL
28834 };
28835
28836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
28837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28838 if (!SWIG_IsOK(res1)) {
28839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28840 }
28841 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 28842 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 28843 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
28844 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28845 }
28846 if (!argp2) {
28847 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
28848 }
28849 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28850 {
5c8c7dd3 28851 (arg1)->StrokePath((wxGraphicsPath const &)*arg2);
72ef6efb
RD
28852 if (PyErr_Occurred()) SWIG_fail;
28853 }
28854 resultobj = SWIG_Py_Void();
28855 return resultobj;
28856fail:
28857 return NULL;
28858}
28859
28860
28861SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28862 PyObject *resultobj = 0;
28863 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 28864 wxGraphicsPath *arg2 = 0 ;
8f514ab4 28865 int arg3 = (int) wxODDEVEN_RULE ;
72ef6efb
RD
28866 void *argp1 = 0 ;
28867 int res1 = 0 ;
28868 void *argp2 = 0 ;
28869 int res2 = 0 ;
28870 int val3 ;
28871 int ecode3 = 0 ;
28872 PyObject * obj0 = 0 ;
28873 PyObject * obj1 = 0 ;
28874 PyObject * obj2 = 0 ;
28875 char * kwnames[] = {
28876 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
28877 };
28878
28879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28881 if (!SWIG_IsOK(res1)) {
28882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28883 }
28884 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 28885 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 28886 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
28887 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28888 }
28889 if (!argp2) {
28890 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
28891 }
28892 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28893 if (obj2) {
28894 ecode3 = SWIG_AsVal_int(obj2, &val3);
28895 if (!SWIG_IsOK(ecode3)) {
28896 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
28897 }
28898 arg3 = static_cast< int >(val3);
28899 }
28900 {
5c8c7dd3 28901 (arg1)->FillPath((wxGraphicsPath const &)*arg2,arg3);
72ef6efb
RD
28902 if (PyErr_Occurred()) SWIG_fail;
28903 }
28904 resultobj = SWIG_Py_Void();
28905 return resultobj;
28906fail:
28907 return NULL;
28908}
28909
28910
28911SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28912 PyObject *resultobj = 0;
28913 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 28914 wxGraphicsPath *arg2 = 0 ;
8f514ab4 28915 int arg3 = (int) wxODDEVEN_RULE ;
72ef6efb
RD
28916 void *argp1 = 0 ;
28917 int res1 = 0 ;
28918 void *argp2 = 0 ;
28919 int res2 = 0 ;
28920 int val3 ;
28921 int ecode3 = 0 ;
28922 PyObject * obj0 = 0 ;
28923 PyObject * obj1 = 0 ;
28924 PyObject * obj2 = 0 ;
28925 char * kwnames[] = {
28926 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
28927 };
28928
28929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28931 if (!SWIG_IsOK(res1)) {
28932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28933 }
28934 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 28935 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 28936 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
28937 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
28938 }
28939 if (!argp2) {
28940 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
28941 }
28942 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28943 if (obj2) {
28944 ecode3 = SWIG_AsVal_int(obj2, &val3);
28945 if (!SWIG_IsOK(ecode3)) {
28946 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
28947 }
28948 arg3 = static_cast< int >(val3);
28949 }
28950 {
5c8c7dd3 28951 (arg1)->DrawPath((wxGraphicsPath const &)*arg2,arg3);
72ef6efb
RD
28952 if (PyErr_Occurred()) SWIG_fail;
28953 }
28954 resultobj = SWIG_Py_Void();
28955 return resultobj;
28956fail:
28957 return NULL;
28958}
28959
28960
b39fe951 28961SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28962 PyObject *resultobj = 0;
28963 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28964 wxString *arg2 = 0 ;
28965 wxDouble arg3 ;
28966 wxDouble arg4 ;
28967 void *argp1 = 0 ;
28968 int res1 = 0 ;
28969 bool temp2 = false ;
28970 double val3 ;
28971 int ecode3 = 0 ;
28972 double val4 ;
28973 int ecode4 = 0 ;
b39fe951
RD
28974 PyObject * obj0 = 0 ;
28975 PyObject * obj1 = 0 ;
28976 PyObject * obj2 = 0 ;
28977 PyObject * obj3 = 0 ;
28978 char * kwnames[] = {
28979 (char *) "self",(char *) "str",(char *) "x",(char *) "y", NULL
28980 };
72ef6efb 28981
b39fe951
RD
28982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28984 if (!SWIG_IsOK(res1)) {
28985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28986 }
28987 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28988 {
b39fe951 28989 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
28990 if (arg2 == NULL) SWIG_fail;
28991 temp2 = true;
28992 }
b39fe951 28993 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb
RD
28994 if (!SWIG_IsOK(ecode3)) {
28995 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
28996 }
28997 arg3 = static_cast< wxDouble >(val3);
b39fe951 28998 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb
RD
28999 if (!SWIG_IsOK(ecode4)) {
29000 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
29001 }
29002 arg4 = static_cast< wxDouble >(val4);
29003 {
72ef6efb 29004 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
72ef6efb
RD
29005 if (PyErr_Occurred()) SWIG_fail;
29006 }
29007 resultobj = SWIG_Py_Void();
29008 {
29009 if (temp2)
29010 delete arg2;
29011 }
29012 return resultobj;
29013fail:
29014 {
29015 if (temp2)
29016 delete arg2;
29017 }
29018 return NULL;
29019}
29020
29021
b39fe951 29022SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29023 PyObject *resultobj = 0;
29024 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29025 wxString *arg2 = 0 ;
29026 wxDouble arg3 ;
29027 wxDouble arg4 ;
29028 wxDouble arg5 ;
29029 void *argp1 = 0 ;
29030 int res1 = 0 ;
29031 bool temp2 = false ;
29032 double val3 ;
29033 int ecode3 = 0 ;
29034 double val4 ;
29035 int ecode4 = 0 ;
29036 double val5 ;
29037 int ecode5 = 0 ;
b39fe951
RD
29038 PyObject * obj0 = 0 ;
29039 PyObject * obj1 = 0 ;
29040 PyObject * obj2 = 0 ;
29041 PyObject * obj3 = 0 ;
29042 PyObject * obj4 = 0 ;
29043 char * kwnames[] = {
29044 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle", NULL
29045 };
72ef6efb 29046
b39fe951
RD
29047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 29049 if (!SWIG_IsOK(res1)) {
b39fe951 29050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29051 }
29052 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29053 {
b39fe951 29054 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
29055 if (arg2 == NULL) SWIG_fail;
29056 temp2 = true;
29057 }
b39fe951 29058 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb 29059 if (!SWIG_IsOK(ecode3)) {
b39fe951 29060 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
29061 }
29062 arg3 = static_cast< wxDouble >(val3);
b39fe951 29063 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb 29064 if (!SWIG_IsOK(ecode4)) {
b39fe951 29065 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
29066 }
29067 arg4 = static_cast< wxDouble >(val4);
b39fe951 29068 ecode5 = SWIG_AsVal_double(obj4, &val5);
72ef6efb 29069 if (!SWIG_IsOK(ecode5)) {
b39fe951 29070 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
29071 }
29072 arg5 = static_cast< wxDouble >(val5);
29073 {
72ef6efb 29074 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4,arg5);
72ef6efb
RD
29075 if (PyErr_Occurred()) SWIG_fail;
29076 }
29077 resultobj = SWIG_Py_Void();
29078 {
29079 if (temp2)
29080 delete arg2;
29081 }
29082 return resultobj;
29083fail:
29084 {
29085 if (temp2)
29086 delete arg2;
29087 }
29088 return NULL;
29089}
29090
29091
be68621e 29092SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29093 PyObject *resultobj = 0;
29094 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29095 wxString *arg2 = 0 ;
29096 wxDouble *arg3 = (wxDouble *) 0 ;
29097 wxDouble *arg4 = (wxDouble *) 0 ;
29098 wxDouble *arg5 = (wxDouble *) 0 ;
29099 wxDouble *arg6 = (wxDouble *) 0 ;
29100 void *argp1 = 0 ;
29101 int res1 = 0 ;
29102 bool temp2 = false ;
29103 wxDouble temp3 ;
29104 int res3 = SWIG_TMPOBJ ;
29105 wxDouble temp4 ;
29106 int res4 = SWIG_TMPOBJ ;
29107 wxDouble temp5 ;
29108 int res5 = SWIG_TMPOBJ ;
29109 wxDouble temp6 ;
29110 int res6 = SWIG_TMPOBJ ;
29111 PyObject * obj0 = 0 ;
29112 PyObject * obj1 = 0 ;
29113 char * kwnames[] = {
29114 (char *) "self",(char *) "text", NULL
29115 };
29116
29117 arg3 = &temp3;
29118 arg4 = &temp4;
29119 arg5 = &temp5;
29120 arg6 = &temp6;
be68621e 29121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
29122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29123 if (!SWIG_IsOK(res1)) {
be68621e 29124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
72ef6efb
RD
29125 }
29126 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29127 {
29128 arg2 = wxString_in_helper(obj1);
29129 if (arg2 == NULL) SWIG_fail;
29130 temp2 = true;
29131 }
29132 {
72ef6efb 29133 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
29134 if (PyErr_Occurred()) SWIG_fail;
29135 }
29136 resultobj = SWIG_Py_Void();
29137 if (SWIG_IsTmpObj(res3)) {
29138 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
29139 } else {
29140 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29141 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
29142 }
29143 if (SWIG_IsTmpObj(res4)) {
29144 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
29145 } else {
29146 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29147 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
29148 }
29149 if (SWIG_IsTmpObj(res5)) {
29150 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
29151 } else {
29152 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29153 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
29154 }
29155 if (SWIG_IsTmpObj(res6)) {
29156 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
29157 } else {
29158 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29159 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
29160 }
29161 {
29162 if (temp2)
29163 delete arg2;
29164 }
29165 return resultobj;
29166fail:
29167 {
29168 if (temp2)
29169 delete arg2;
29170 }
29171 return NULL;
29172}
29173
29174
be68621e
RD
29175SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29176 PyObject *resultobj = 0;
29177 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29178 wxString *arg2 = 0 ;
29179 PyObject *result = 0 ;
29180 void *argp1 = 0 ;
29181 int res1 = 0 ;
29182 bool temp2 = false ;
29183 PyObject * obj0 = 0 ;
29184 PyObject * obj1 = 0 ;
29185 char * kwnames[] = {
29186 (char *) "self",(char *) "text", NULL
29187 };
29188
29189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
29190 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29191 if (!SWIG_IsOK(res1)) {
29192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29193 }
29194 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29195 {
29196 arg2 = wxString_in_helper(obj1);
29197 if (arg2 == NULL) SWIG_fail;
29198 temp2 = true;
29199 }
29200 {
29201 result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2);
29202 if (PyErr_Occurred()) SWIG_fail;
29203 }
29204 resultobj = result;
29205 {
29206 if (temp2)
29207 delete arg2;
29208 }
29209 return resultobj;
29210fail:
29211 {
29212 if (temp2)
29213 delete arg2;
29214 }
29215 return NULL;
29216}
29217
29218
72ef6efb
RD
29219SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29220 PyObject *resultobj = 0;
29221 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29222 wxString *arg2 = 0 ;
b39fe951 29223 wxArrayDouble result;
72ef6efb
RD
29224 void *argp1 = 0 ;
29225 int res1 = 0 ;
29226 bool temp2 = false ;
72ef6efb
RD
29227 PyObject * obj0 = 0 ;
29228 PyObject * obj1 = 0 ;
72ef6efb 29229 char * kwnames[] = {
b39fe951 29230 (char *) "self",(char *) "text", NULL
72ef6efb
RD
29231 };
29232
b39fe951 29233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
29234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29235 if (!SWIG_IsOK(res1)) {
b39fe951 29236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29237 }
29238 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29239 {
29240 arg2 = wxString_in_helper(obj1);
29241 if (arg2 == NULL) SWIG_fail;
29242 temp2 = true;
29243 }
72ef6efb 29244 {
b39fe951 29245 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
72ef6efb
RD
29246 if (PyErr_Occurred()) SWIG_fail;
29247 }
b39fe951
RD
29248 {
29249 resultobj = wxArrayDouble2PyList_helper(result);
29250 }
72ef6efb
RD
29251 {
29252 if (temp2)
29253 delete arg2;
29254 }
29255 return resultobj;
29256fail:
29257 {
29258 if (temp2)
29259 delete arg2;
29260 }
29261 return NULL;
29262}
29263
29264
29265SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29266 PyObject *resultobj = 0;
29267 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29268 wxBitmap *arg2 = 0 ;
29269 wxDouble arg3 ;
29270 wxDouble arg4 ;
29271 wxDouble arg5 ;
29272 wxDouble arg6 ;
29273 void *argp1 = 0 ;
29274 int res1 = 0 ;
29275 void *argp2 = 0 ;
29276 int res2 = 0 ;
29277 double val3 ;
29278 int ecode3 = 0 ;
29279 double val4 ;
29280 int ecode4 = 0 ;
29281 double val5 ;
29282 int ecode5 = 0 ;
29283 double val6 ;
29284 int ecode6 = 0 ;
29285 PyObject * obj0 = 0 ;
29286 PyObject * obj1 = 0 ;
29287 PyObject * obj2 = 0 ;
29288 PyObject * obj3 = 0 ;
29289 PyObject * obj4 = 0 ;
29290 PyObject * obj5 = 0 ;
29291 char * kwnames[] = {
29292 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29293 };
29294
29295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29297 if (!SWIG_IsOK(res1)) {
29298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29299 }
29300 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29301 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
29302 if (!SWIG_IsOK(res2)) {
29303 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29304 }
29305 if (!argp2) {
29306 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29307 }
29308 arg2 = reinterpret_cast< wxBitmap * >(argp2);
29309 ecode3 = SWIG_AsVal_double(obj2, &val3);
29310 if (!SWIG_IsOK(ecode3)) {
29311 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
29312 }
29313 arg3 = static_cast< wxDouble >(val3);
29314 ecode4 = SWIG_AsVal_double(obj3, &val4);
29315 if (!SWIG_IsOK(ecode4)) {
29316 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
29317 }
29318 arg4 = static_cast< wxDouble >(val4);
29319 ecode5 = SWIG_AsVal_double(obj4, &val5);
29320 if (!SWIG_IsOK(ecode5)) {
29321 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
29322 }
29323 arg5 = static_cast< wxDouble >(val5);
29324 ecode6 = SWIG_AsVal_double(obj5, &val6);
29325 if (!SWIG_IsOK(ecode6)) {
29326 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
29327 }
29328 arg6 = static_cast< wxDouble >(val6);
29329 {
72ef6efb 29330 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
29331 if (PyErr_Occurred()) SWIG_fail;
29332 }
29333 resultobj = SWIG_Py_Void();
29334 return resultobj;
29335fail:
29336 return NULL;
29337}
29338
29339
29340SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29341 PyObject *resultobj = 0;
29342 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29343 wxIcon *arg2 = 0 ;
29344 wxDouble arg3 ;
29345 wxDouble arg4 ;
29346 wxDouble arg5 ;
29347 wxDouble arg6 ;
29348 void *argp1 = 0 ;
29349 int res1 = 0 ;
29350 void *argp2 = 0 ;
29351 int res2 = 0 ;
29352 double val3 ;
29353 int ecode3 = 0 ;
29354 double val4 ;
29355 int ecode4 = 0 ;
29356 double val5 ;
29357 int ecode5 = 0 ;
70d7cb34
RD
29358 double val6 ;
29359 int ecode6 = 0 ;
29360 PyObject * obj0 = 0 ;
29361 PyObject * obj1 = 0 ;
29362 PyObject * obj2 = 0 ;
29363 PyObject * obj3 = 0 ;
29364 PyObject * obj4 = 0 ;
29365 PyObject * obj5 = 0 ;
29366 char * kwnames[] = {
29367 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29368 };
29369
29370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29372 if (!SWIG_IsOK(res1)) {
29373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29374 }
29375 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29376 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
29377 if (!SWIG_IsOK(res2)) {
29378 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29379 }
29380 if (!argp2) {
29381 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29382 }
29383 arg2 = reinterpret_cast< wxIcon * >(argp2);
29384 ecode3 = SWIG_AsVal_double(obj2, &val3);
29385 if (!SWIG_IsOK(ecode3)) {
29386 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
29387 }
29388 arg3 = static_cast< wxDouble >(val3);
29389 ecode4 = SWIG_AsVal_double(obj3, &val4);
29390 if (!SWIG_IsOK(ecode4)) {
29391 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
29392 }
29393 arg4 = static_cast< wxDouble >(val4);
29394 ecode5 = SWIG_AsVal_double(obj4, &val5);
29395 if (!SWIG_IsOK(ecode5)) {
29396 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
29397 }
29398 arg5 = static_cast< wxDouble >(val5);
29399 ecode6 = SWIG_AsVal_double(obj5, &val6);
29400 if (!SWIG_IsOK(ecode6)) {
29401 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
29402 }
29403 arg6 = static_cast< wxDouble >(val6);
29404 {
29405 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
29406 if (PyErr_Occurred()) SWIG_fail;
29407 }
29408 resultobj = SWIG_Py_Void();
29409 return resultobj;
29410fail:
29411 return NULL;
29412}
29413
29414
29415SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29416 PyObject *resultobj = 0;
29417 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29418 wxDouble arg2 ;
29419 wxDouble arg3 ;
29420 wxDouble arg4 ;
29421 wxDouble arg5 ;
29422 void *argp1 = 0 ;
29423 int res1 = 0 ;
29424 double val2 ;
29425 int ecode2 = 0 ;
29426 double val3 ;
29427 int ecode3 = 0 ;
29428 double val4 ;
29429 int ecode4 = 0 ;
29430 double val5 ;
29431 int ecode5 = 0 ;
29432 PyObject * obj0 = 0 ;
29433 PyObject * obj1 = 0 ;
29434 PyObject * obj2 = 0 ;
29435 PyObject * obj3 = 0 ;
29436 PyObject * obj4 = 0 ;
29437 char * kwnames[] = {
29438 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
29439 };
29440
29441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29443 if (!SWIG_IsOK(res1)) {
29444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29445 }
29446 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29447 ecode2 = SWIG_AsVal_double(obj1, &val2);
29448 if (!SWIG_IsOK(ecode2)) {
29449 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
29450 }
29451 arg2 = static_cast< wxDouble >(val2);
29452 ecode3 = SWIG_AsVal_double(obj2, &val3);
29453 if (!SWIG_IsOK(ecode3)) {
29454 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
29455 }
29456 arg3 = static_cast< wxDouble >(val3);
29457 ecode4 = SWIG_AsVal_double(obj3, &val4);
29458 if (!SWIG_IsOK(ecode4)) {
29459 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
29460 }
29461 arg4 = static_cast< wxDouble >(val4);
29462 ecode5 = SWIG_AsVal_double(obj4, &val5);
29463 if (!SWIG_IsOK(ecode5)) {
29464 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
29465 }
29466 arg5 = static_cast< wxDouble >(val5);
29467 {
29468 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
29469 if (PyErr_Occurred()) SWIG_fail;
29470 }
29471 resultobj = SWIG_Py_Void();
29472 return resultobj;
29473fail:
29474 return NULL;
29475}
29476
29477
29478SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29479 PyObject *resultobj = 0;
29480 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29481 size_t arg2 ;
29482 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
29483 void *argp1 = 0 ;
29484 int res1 = 0 ;
29485 PyObject * obj0 = 0 ;
29486 PyObject * obj1 = 0 ;
29487 char * kwnames[] = {
29488 (char *) "self",(char *) "points", NULL
29489 };
29490
29491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
29492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29493 if (!SWIG_IsOK(res1)) {
29494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29495 }
29496 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29497 {
29498 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
29499 if (arg3 == NULL) SWIG_fail;
29500 }
29501 {
29502 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
29503 if (PyErr_Occurred()) SWIG_fail;
29504 }
29505 resultobj = SWIG_Py_Void();
29506 {
29507 if (arg3) delete [] arg3;
29508 }
29509 return resultobj;
29510fail:
29511 {
29512 if (arg3) delete [] arg3;
29513 }
29514 return NULL;
29515}
29516
29517
29518SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29519 PyObject *resultobj = 0;
29520 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29521 PyObject *arg2 = (PyObject *) 0 ;
29522 PyObject *arg3 = (PyObject *) 0 ;
29523 void *argp1 = 0 ;
29524 int res1 = 0 ;
29525 PyObject * obj0 = 0 ;
29526 PyObject * obj1 = 0 ;
29527 PyObject * obj2 = 0 ;
29528 char * kwnames[] = {
29529 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
29530 };
29531
29532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29534 if (!SWIG_IsOK(res1)) {
29535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29536 }
29537 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29538 arg2 = obj1;
29539 arg3 = obj2;
29540 {
29541 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
29542 if (PyErr_Occurred()) SWIG_fail;
29543 }
29544 resultobj = SWIG_Py_Void();
29545 return resultobj;
29546fail:
29547 return NULL;
29548}
29549
29550
29551SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29552 PyObject *resultobj = 0;
29553 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29554 size_t arg2 ;
29555 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
8f514ab4 29556 int arg4 = (int) wxODDEVEN_RULE ;
70d7cb34
RD
29557 void *argp1 = 0 ;
29558 int res1 = 0 ;
29559 int val4 ;
29560 int ecode4 = 0 ;
29561 PyObject * obj0 = 0 ;
29562 PyObject * obj1 = 0 ;
29563 PyObject * obj2 = 0 ;
29564 char * kwnames[] = {
29565 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
29566 };
29567
29568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29570 if (!SWIG_IsOK(res1)) {
29571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29572 }
29573 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29574 {
29575 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
29576 if (arg3 == NULL) SWIG_fail;
29577 }
29578 if (obj2) {
29579 ecode4 = SWIG_AsVal_int(obj2, &val4);
29580 if (!SWIG_IsOK(ecode4)) {
29581 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
29582 }
29583 arg4 = static_cast< int >(val4);
29584 }
29585 {
29586 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
29587 if (PyErr_Occurred()) SWIG_fail;
29588 }
29589 resultobj = SWIG_Py_Void();
29590 {
29591 if (arg3) delete [] arg3;
29592 }
29593 return resultobj;
29594fail:
29595 {
29596 if (arg3) delete [] arg3;
29597 }
29598 return NULL;
29599}
29600
29601
29602SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29603 PyObject *resultobj = 0;
29604 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29605 wxDouble arg2 ;
29606 wxDouble arg3 ;
29607 wxDouble arg4 ;
29608 wxDouble arg5 ;
29609 void *argp1 = 0 ;
29610 int res1 = 0 ;
29611 double val2 ;
29612 int ecode2 = 0 ;
29613 double val3 ;
29614 int ecode3 = 0 ;
29615 double val4 ;
29616 int ecode4 = 0 ;
29617 double val5 ;
29618 int ecode5 = 0 ;
29619 PyObject * obj0 = 0 ;
29620 PyObject * obj1 = 0 ;
29621 PyObject * obj2 = 0 ;
29622 PyObject * obj3 = 0 ;
29623 PyObject * obj4 = 0 ;
29624 char * kwnames[] = {
29625 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29626 };
29627
29628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29630 if (!SWIG_IsOK(res1)) {
29631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29632 }
29633 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29634 ecode2 = SWIG_AsVal_double(obj1, &val2);
29635 if (!SWIG_IsOK(ecode2)) {
29636 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
29637 }
29638 arg2 = static_cast< wxDouble >(val2);
29639 ecode3 = SWIG_AsVal_double(obj2, &val3);
29640 if (!SWIG_IsOK(ecode3)) {
29641 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
29642 }
29643 arg3 = static_cast< wxDouble >(val3);
29644 ecode4 = SWIG_AsVal_double(obj3, &val4);
29645 if (!SWIG_IsOK(ecode4)) {
29646 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
29647 }
29648 arg4 = static_cast< wxDouble >(val4);
29649 ecode5 = SWIG_AsVal_double(obj4, &val5);
29650 if (!SWIG_IsOK(ecode5)) {
29651 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
29652 }
29653 arg5 = static_cast< wxDouble >(val5);
29654 {
29655 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
29656 if (PyErr_Occurred()) SWIG_fail;
29657 }
29658 resultobj = SWIG_Py_Void();
29659 return resultobj;
29660fail:
29661 return NULL;
29662}
29663
29664
29665SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29666 PyObject *resultobj = 0;
29667 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29668 wxDouble arg2 ;
29669 wxDouble arg3 ;
29670 wxDouble arg4 ;
29671 wxDouble arg5 ;
29672 void *argp1 = 0 ;
29673 int res1 = 0 ;
29674 double val2 ;
29675 int ecode2 = 0 ;
29676 double val3 ;
29677 int ecode3 = 0 ;
29678 double val4 ;
29679 int ecode4 = 0 ;
29680 double val5 ;
29681 int ecode5 = 0 ;
72ef6efb
RD
29682 PyObject * obj0 = 0 ;
29683 PyObject * obj1 = 0 ;
29684 PyObject * obj2 = 0 ;
29685 PyObject * obj3 = 0 ;
29686 PyObject * obj4 = 0 ;
72ef6efb 29687 char * kwnames[] = {
70d7cb34 29688 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
72ef6efb
RD
29689 };
29690
70d7cb34 29691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
72ef6efb
RD
29692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29693 if (!SWIG_IsOK(res1)) {
70d7cb34 29694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29695 }
29696 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
29697 ecode2 = SWIG_AsVal_double(obj1, &val2);
29698 if (!SWIG_IsOK(ecode2)) {
29699 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
29700 }
29701 arg2 = static_cast< wxDouble >(val2);
72ef6efb
RD
29702 ecode3 = SWIG_AsVal_double(obj2, &val3);
29703 if (!SWIG_IsOK(ecode3)) {
70d7cb34 29704 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
29705 }
29706 arg3 = static_cast< wxDouble >(val3);
29707 ecode4 = SWIG_AsVal_double(obj3, &val4);
29708 if (!SWIG_IsOK(ecode4)) {
70d7cb34 29709 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
29710 }
29711 arg4 = static_cast< wxDouble >(val4);
29712 ecode5 = SWIG_AsVal_double(obj4, &val5);
29713 if (!SWIG_IsOK(ecode5)) {
70d7cb34 29714 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
29715 }
29716 arg5 = static_cast< wxDouble >(val5);
72ef6efb 29717 {
70d7cb34 29718 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
72ef6efb
RD
29719 if (PyErr_Occurred()) SWIG_fail;
29720 }
29721 resultobj = SWIG_Py_Void();
29722 return resultobj;
29723fail:
29724 return NULL;
29725}
29726
29727
70d7cb34 29728SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29729 PyObject *resultobj = 0;
29730 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29731 wxDouble arg2 ;
29732 wxDouble arg3 ;
29733 wxDouble arg4 ;
29734 wxDouble arg5 ;
70d7cb34 29735 wxDouble arg6 ;
72ef6efb
RD
29736 void *argp1 = 0 ;
29737 int res1 = 0 ;
29738 double val2 ;
29739 int ecode2 = 0 ;
29740 double val3 ;
29741 int ecode3 = 0 ;
29742 double val4 ;
29743 int ecode4 = 0 ;
29744 double val5 ;
29745 int ecode5 = 0 ;
70d7cb34
RD
29746 double val6 ;
29747 int ecode6 = 0 ;
72ef6efb
RD
29748 PyObject * obj0 = 0 ;
29749 PyObject * obj1 = 0 ;
29750 PyObject * obj2 = 0 ;
29751 PyObject * obj3 = 0 ;
29752 PyObject * obj4 = 0 ;
70d7cb34 29753 PyObject * obj5 = 0 ;
72ef6efb 29754 char * kwnames[] = {
70d7cb34 29755 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
72ef6efb
RD
29756 };
29757
70d7cb34 29758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
72ef6efb
RD
29759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29760 if (!SWIG_IsOK(res1)) {
70d7cb34 29761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29762 }
29763 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29764 ecode2 = SWIG_AsVal_double(obj1, &val2);
29765 if (!SWIG_IsOK(ecode2)) {
70d7cb34 29766 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
29767 }
29768 arg2 = static_cast< wxDouble >(val2);
29769 ecode3 = SWIG_AsVal_double(obj2, &val3);
29770 if (!SWIG_IsOK(ecode3)) {
70d7cb34 29771 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
29772 }
29773 arg3 = static_cast< wxDouble >(val3);
29774 ecode4 = SWIG_AsVal_double(obj3, &val4);
29775 if (!SWIG_IsOK(ecode4)) {
70d7cb34 29776 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
29777 }
29778 arg4 = static_cast< wxDouble >(val4);
29779 ecode5 = SWIG_AsVal_double(obj4, &val5);
29780 if (!SWIG_IsOK(ecode5)) {
70d7cb34 29781 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
29782 }
29783 arg5 = static_cast< wxDouble >(val5);
70d7cb34
RD
29784 ecode6 = SWIG_AsVal_double(obj5, &val6);
29785 if (!SWIG_IsOK(ecode6)) {
29786 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
29787 }
29788 arg6 = static_cast< wxDouble >(val6);
72ef6efb 29789 {
70d7cb34 29790 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
29791 if (PyErr_Occurred()) SWIG_fail;
29792 }
29793 resultobj = SWIG_Py_Void();
29794 return resultobj;
29795fail:
29796 return NULL;
29797}
29798
29799
70d7cb34 29800SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
29801 PyObject *resultobj = 0;
29802 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34 29803 bool result;
72ef6efb
RD
29804 void *argp1 = 0 ;
29805 int res1 = 0 ;
70d7cb34 29806 PyObject *swig_obj[1] ;
72ef6efb 29807
70d7cb34
RD
29808 if (!args) SWIG_fail;
29809 swig_obj[0] = args;
29810 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 29811 if (!SWIG_IsOK(res1)) {
70d7cb34 29812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
72ef6efb
RD
29813 }
29814 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
b39fe951 29815 {
70d7cb34
RD
29816 result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset();
29817 if (PyErr_Occurred()) SWIG_fail;
72ef6efb 29818 }
72ef6efb 29819 {
70d7cb34
RD
29820 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29821 }
29822 return resultobj;
29823fail:
29824 return NULL;
29825}
29826
29827
29828SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29829 PyObject *obj;
29830 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29831 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
29832 return SWIG_Py_Void();
29833}
29834
29835SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29836 PyObject *resultobj = 0;
29837 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29838 void *argp1 = 0 ;
29839 int res1 = 0 ;
29840 PyObject *swig_obj[1] ;
29841
29842 if (!args) SWIG_fail;
29843 swig_obj[0] = args;
29844 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 );
29845 if (!SWIG_IsOK(res1)) {
29846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29847 }
29848 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29849 {
29850 delete arg1;
29851
72ef6efb
RD
29852 if (PyErr_Occurred()) SWIG_fail;
29853 }
29854 resultobj = SWIG_Py_Void();
70d7cb34
RD
29855 return resultobj;
29856fail:
29857 return NULL;
29858}
29859
29860
29861SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29862 PyObject *resultobj = 0;
29863 wxGraphicsRenderer *result = 0 ;
29864
29865 if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail;
b39fe951 29866 {
70d7cb34
RD
29867 result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer();
29868 if (PyErr_Occurred()) SWIG_fail;
29869 }
29870 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29871 return resultobj;
29872fail:
29873 return NULL;
29874}
29875
29876
29877SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29878 PyObject *resultobj = 0;
29879 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29880 wxWindowDC *arg2 = 0 ;
29881 wxGraphicsContext *result = 0 ;
29882 void *argp1 = 0 ;
29883 int res1 = 0 ;
29884 void *argp2 = 0 ;
29885 int res2 = 0 ;
29886
29887 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29888 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29889 if (!SWIG_IsOK(res1)) {
29890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29891 }
29892 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29893 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0);
29894 if (!SWIG_IsOK(res2)) {
29895 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
29896 }
29897 if (!argp2) {
29898 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
29899 }
29900 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
29901 {
29902 result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2);
29903 if (PyErr_Occurred()) SWIG_fail;
b39fe951 29904 }
70d7cb34 29905 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
29906 return resultobj;
29907fail:
70d7cb34
RD
29908 return NULL;
29909}
29910
29911
29912SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29913 PyObject *resultobj = 0;
29914 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29915 wxWindow *arg2 = (wxWindow *) 0 ;
29916 wxGraphicsContext *result = 0 ;
29917 void *argp1 = 0 ;
29918 int res1 = 0 ;
29919 void *argp2 = 0 ;
29920 int res2 = 0 ;
29921
29922 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29923 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29924 if (!SWIG_IsOK(res1)) {
29925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29926 }
29927 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29928 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
29929 if (!SWIG_IsOK(res2)) {
29930 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'");
29931 }
29932 arg2 = reinterpret_cast< wxWindow * >(argp2);
b39fe951 29933 {
70d7cb34
RD
29934 result = (wxGraphicsContext *)(arg1)->CreateContext(arg2);
29935 if (PyErr_Occurred()) SWIG_fail;
b39fe951 29936 }
70d7cb34
RD
29937 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
29938 return resultobj;
29939fail:
72ef6efb
RD
29940 return NULL;
29941}
29942
29943
70d7cb34
RD
29944SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) {
29945 int argc;
29946 PyObject *argv[3];
29947
29948 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail;
29949 --argc;
29950 if (argc == 2) {
29951 int _v = 0;
29952 {
29953 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0);
29954 _v = SWIG_CheckState(res);
29955 }
29956 if (!_v) goto check_1;
29957 return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv);
29958 }
29959check_1:
29960
29961 if (argc == 2) {
29962 return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv);
29963 }
29964
29965fail:
29966 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'");
29967 return NULL;
29968}
29969
29970
29971SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 29972 PyObject *resultobj = 0;
70d7cb34
RD
29973 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29974 void *arg2 = (void *) 0 ;
29975 wxGraphicsContext *result = 0 ;
72ef6efb
RD
29976 void *argp1 = 0 ;
29977 int res1 = 0 ;
70d7cb34 29978 int res2 ;
b39fe951
RD
29979 PyObject * obj0 = 0 ;
29980 PyObject * obj1 = 0 ;
b39fe951 29981 char * kwnames[] = {
70d7cb34 29982 (char *) "self",(char *) "context", NULL
b39fe951 29983 };
72ef6efb 29984
70d7cb34
RD
29985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail;
29986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 29987 if (!SWIG_IsOK(res1)) {
70d7cb34
RD
29988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29989 }
29990 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29991 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
29992 if (!SWIG_IsOK(res2)) {
29993 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'");
72ef6efb 29994 }
72ef6efb 29995 {
70d7cb34 29996 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2);
72ef6efb
RD
29997 if (PyErr_Occurred()) SWIG_fail;
29998 }
70d7cb34 29999 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30000 return resultobj;
30001fail:
30002 return NULL;
30003}
30004
30005
70d7cb34 30006SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30007 PyObject *resultobj = 0;
70d7cb34
RD
30008 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30009 void *arg2 = (void *) 0 ;
30010 wxGraphicsContext *result = 0 ;
72ef6efb
RD
30011 void *argp1 = 0 ;
30012 int res1 = 0 ;
70d7cb34 30013 int res2 ;
72ef6efb
RD
30014 PyObject * obj0 = 0 ;
30015 PyObject * obj1 = 0 ;
72ef6efb 30016 char * kwnames[] = {
70d7cb34 30017 (char *) "self",(char *) "window", NULL
72ef6efb
RD
30018 };
30019
70d7cb34
RD
30020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) SWIG_fail;
30021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30022 if (!SWIG_IsOK(res1)) {
70d7cb34 30023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 30024 }
70d7cb34
RD
30025 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30026 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
30027 if (!SWIG_IsOK(res2)) {
30028 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'");
72ef6efb
RD
30029 }
30030 {
70d7cb34 30031 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2);
72ef6efb
RD
30032 if (PyErr_Occurred()) SWIG_fail;
30033 }
70d7cb34 30034 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30035 return resultobj;
30036fail:
70d7cb34
RD
30037 return NULL;
30038}
30039
30040
30041SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30042 PyObject *resultobj = 0;
30043 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
5c8c7dd3 30044 wxGraphicsPath result;
70d7cb34
RD
30045 void *argp1 = 0 ;
30046 int res1 = 0 ;
30047 PyObject *swig_obj[1] ;
30048
30049 if (!args) SWIG_fail;
30050 swig_obj[0] = args;
30051 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30052 if (!SWIG_IsOK(res1)) {
30053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30054 }
30055 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
b39fe951 30056 {
5c8c7dd3 30057 result = (arg1)->CreatePath();
70d7cb34 30058 if (PyErr_Occurred()) SWIG_fail;
b39fe951 30059 }
5c8c7dd3 30060 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
30061 return resultobj;
30062fail:
72ef6efb
RD
30063 return NULL;
30064}
30065
30066
70d7cb34 30067SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30068 PyObject *resultobj = 0;
70d7cb34
RD
30069 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30070 wxDouble arg2 = (wxDouble) 1.0 ;
30071 wxDouble arg3 = (wxDouble) 0.0 ;
30072 wxDouble arg4 = (wxDouble) 0.0 ;
30073 wxDouble arg5 = (wxDouble) 1.0 ;
30074 wxDouble arg6 = (wxDouble) 0.0 ;
30075 wxDouble arg7 = (wxDouble) 0.0 ;
5c8c7dd3 30076 wxGraphicsMatrix result;
72ef6efb
RD
30077 void *argp1 = 0 ;
30078 int res1 = 0 ;
30079 double val2 ;
30080 int ecode2 = 0 ;
30081 double val3 ;
30082 int ecode3 = 0 ;
30083 double val4 ;
30084 int ecode4 = 0 ;
30085 double val5 ;
30086 int ecode5 = 0 ;
70d7cb34
RD
30087 double val6 ;
30088 int ecode6 = 0 ;
30089 double val7 ;
30090 int ecode7 = 0 ;
72ef6efb
RD
30091 PyObject * obj0 = 0 ;
30092 PyObject * obj1 = 0 ;
30093 PyObject * obj2 = 0 ;
30094 PyObject * obj3 = 0 ;
30095 PyObject * obj4 = 0 ;
70d7cb34
RD
30096 PyObject * obj5 = 0 ;
30097 PyObject * obj6 = 0 ;
72ef6efb 30098 char * kwnames[] = {
70d7cb34 30099 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
72ef6efb
RD
30100 };
30101
70d7cb34
RD
30102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30104 if (!SWIG_IsOK(res1)) {
70d7cb34
RD
30105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30106 }
30107 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30108 if (obj1) {
30109 ecode2 = SWIG_AsVal_double(obj1, &val2);
30110 if (!SWIG_IsOK(ecode2)) {
30111 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
30112 }
30113 arg2 = static_cast< wxDouble >(val2);
30114 }
30115 if (obj2) {
30116 ecode3 = SWIG_AsVal_double(obj2, &val3);
30117 if (!SWIG_IsOK(ecode3)) {
30118 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
30119 }
30120 arg3 = static_cast< wxDouble >(val3);
30121 }
30122 if (obj3) {
30123 ecode4 = SWIG_AsVal_double(obj3, &val4);
30124 if (!SWIG_IsOK(ecode4)) {
30125 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
30126 }
30127 arg4 = static_cast< wxDouble >(val4);
30128 }
30129 if (obj4) {
30130 ecode5 = SWIG_AsVal_double(obj4, &val5);
30131 if (!SWIG_IsOK(ecode5)) {
30132 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
30133 }
30134 arg5 = static_cast< wxDouble >(val5);
30135 }
30136 if (obj5) {
30137 ecode6 = SWIG_AsVal_double(obj5, &val6);
30138 if (!SWIG_IsOK(ecode6)) {
30139 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
30140 }
30141 arg6 = static_cast< wxDouble >(val6);
30142 }
30143 if (obj6) {
30144 ecode7 = SWIG_AsVal_double(obj6, &val7);
30145 if (!SWIG_IsOK(ecode7)) {
30146 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
30147 }
30148 arg7 = static_cast< wxDouble >(val7);
72ef6efb 30149 }
72ef6efb 30150 {
5c8c7dd3 30151 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
30152 if (PyErr_Occurred()) SWIG_fail;
30153 }
5c8c7dd3 30154 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30155 return resultobj;
30156fail:
30157 return NULL;
30158}
30159
30160
70d7cb34 30161SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30162 PyObject *resultobj = 0;
70d7cb34
RD
30163 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30164 wxPen *arg2 = 0 ;
30165 wxGraphicsPen result;
30166 void *argp1 = 0 ;
30167 int res1 = 0 ;
30168 void *argp2 = 0 ;
30169 int res2 = 0 ;
30170 PyObject * obj0 = 0 ;
30171 PyObject * obj1 = 0 ;
30172 char * kwnames[] = {
30173 (char *) "self",(char *) "pen", NULL
30174 };
30175
30176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
30177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30178 if (!SWIG_IsOK(res1)) {
30179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30180 }
30181 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30182 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
30183 if (!SWIG_IsOK(res2)) {
30184 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30185 }
30186 if (!argp2) {
30187 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30188 }
30189 arg2 = reinterpret_cast< wxPen * >(argp2);
30190 {
30191 result = (arg1)->CreatePen((wxPen const &)*arg2);
30192 if (PyErr_Occurred()) SWIG_fail;
30193 }
30194 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
30195 return resultobj;
30196fail:
30197 return NULL;
30198}
30199
30200
30201SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30202 PyObject *resultobj = 0;
30203 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30204 wxBrush *arg2 = 0 ;
30205 wxGraphicsBrush result;
30206 void *argp1 = 0 ;
30207 int res1 = 0 ;
30208 void *argp2 = 0 ;
30209 int res2 = 0 ;
30210 PyObject * obj0 = 0 ;
30211 PyObject * obj1 = 0 ;
30212 char * kwnames[] = {
30213 (char *) "self",(char *) "brush", NULL
30214 };
30215
30216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
30217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30218 if (!SWIG_IsOK(res1)) {
30219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30220 }
30221 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30222 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
30223 if (!SWIG_IsOK(res2)) {
30224 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30225 }
30226 if (!argp2) {
30227 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30228 }
30229 arg2 = reinterpret_cast< wxBrush * >(argp2);
30230 {
30231 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
30232 if (PyErr_Occurred()) SWIG_fail;
30233 }
30234 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
30235 return resultobj;
30236fail:
30237 return NULL;
30238}
30239
30240
30241SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30242 PyObject *resultobj = 0;
30243 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
72ef6efb
RD
30244 wxDouble arg2 ;
30245 wxDouble arg3 ;
30246 wxDouble arg4 ;
30247 wxDouble arg5 ;
70d7cb34
RD
30248 wxColour *arg6 = 0 ;
30249 wxColour *arg7 = 0 ;
30250 wxGraphicsBrush result;
72ef6efb
RD
30251 void *argp1 = 0 ;
30252 int res1 = 0 ;
30253 double val2 ;
30254 int ecode2 = 0 ;
30255 double val3 ;
30256 int ecode3 = 0 ;
30257 double val4 ;
30258 int ecode4 = 0 ;
30259 double val5 ;
30260 int ecode5 = 0 ;
70d7cb34
RD
30261 wxColour temp6 ;
30262 wxColour temp7 ;
72ef6efb
RD
30263 PyObject * obj0 = 0 ;
30264 PyObject * obj1 = 0 ;
30265 PyObject * obj2 = 0 ;
30266 PyObject * obj3 = 0 ;
30267 PyObject * obj4 = 0 ;
70d7cb34
RD
30268 PyObject * obj5 = 0 ;
30269 PyObject * obj6 = 0 ;
72ef6efb 30270 char * kwnames[] = {
70d7cb34 30271 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
72ef6efb
RD
30272 };
30273
70d7cb34
RD
30274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30276 if (!SWIG_IsOK(res1)) {
70d7cb34 30277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 30278 }
70d7cb34 30279 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
72ef6efb
RD
30280 ecode2 = SWIG_AsVal_double(obj1, &val2);
30281 if (!SWIG_IsOK(ecode2)) {
70d7cb34 30282 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
30283 }
30284 arg2 = static_cast< wxDouble >(val2);
30285 ecode3 = SWIG_AsVal_double(obj2, &val3);
30286 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30287 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30288 }
30289 arg3 = static_cast< wxDouble >(val3);
30290 ecode4 = SWIG_AsVal_double(obj3, &val4);
30291 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30292 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30293 }
30294 arg4 = static_cast< wxDouble >(val4);
30295 ecode5 = SWIG_AsVal_double(obj4, &val5);
30296 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30297 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30298 }
30299 arg5 = static_cast< wxDouble >(val5);
30300 {
70d7cb34
RD
30301 arg6 = &temp6;
30302 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
30303 }
30304 {
30305 arg7 = &temp7;
30306 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30307 }
30308 {
30309 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
30310 if (PyErr_Occurred()) SWIG_fail;
30311 }
70d7cb34 30312 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30313 return resultobj;
30314fail:
30315 return NULL;
30316}
30317
30318
70d7cb34 30319SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30320 PyObject *resultobj = 0;
70d7cb34 30321 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
72ef6efb
RD
30322 wxDouble arg2 ;
30323 wxDouble arg3 ;
30324 wxDouble arg4 ;
30325 wxDouble arg5 ;
30326 wxDouble arg6 ;
70d7cb34
RD
30327 wxColour *arg7 = 0 ;
30328 wxColour *arg8 = 0 ;
30329 wxGraphicsBrush result;
72ef6efb
RD
30330 void *argp1 = 0 ;
30331 int res1 = 0 ;
30332 double val2 ;
30333 int ecode2 = 0 ;
30334 double val3 ;
30335 int ecode3 = 0 ;
30336 double val4 ;
30337 int ecode4 = 0 ;
30338 double val5 ;
30339 int ecode5 = 0 ;
30340 double val6 ;
30341 int ecode6 = 0 ;
70d7cb34
RD
30342 wxColour temp7 ;
30343 wxColour temp8 ;
72ef6efb
RD
30344 PyObject * obj0 = 0 ;
30345 PyObject * obj1 = 0 ;
30346 PyObject * obj2 = 0 ;
30347 PyObject * obj3 = 0 ;
30348 PyObject * obj4 = 0 ;
30349 PyObject * obj5 = 0 ;
70d7cb34
RD
30350 PyObject * obj6 = 0 ;
30351 PyObject * obj7 = 0 ;
72ef6efb 30352 char * kwnames[] = {
70d7cb34 30353 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
72ef6efb
RD
30354 };
30355
70d7cb34
RD
30356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
30357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30358 if (!SWIG_IsOK(res1)) {
70d7cb34 30359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 30360 }
70d7cb34 30361 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
72ef6efb
RD
30362 ecode2 = SWIG_AsVal_double(obj1, &val2);
30363 if (!SWIG_IsOK(ecode2)) {
70d7cb34 30364 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
30365 }
30366 arg2 = static_cast< wxDouble >(val2);
30367 ecode3 = SWIG_AsVal_double(obj2, &val3);
30368 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30369 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30370 }
30371 arg3 = static_cast< wxDouble >(val3);
30372 ecode4 = SWIG_AsVal_double(obj3, &val4);
30373 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30374 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30375 }
30376 arg4 = static_cast< wxDouble >(val4);
30377 ecode5 = SWIG_AsVal_double(obj4, &val5);
30378 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30379 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30380 }
30381 arg5 = static_cast< wxDouble >(val5);
30382 ecode6 = SWIG_AsVal_double(obj5, &val6);
30383 if (!SWIG_IsOK(ecode6)) {
70d7cb34 30384 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
72ef6efb
RD
30385 }
30386 arg6 = static_cast< wxDouble >(val6);
30387 {
70d7cb34
RD
30388 arg7 = &temp7;
30389 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30390 }
30391 {
30392 arg8 = &temp8;
30393 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
30394 }
30395 {
30396 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
30397 if (PyErr_Occurred()) SWIG_fail;
30398 }
70d7cb34 30399 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30400 return resultobj;
30401fail:
30402 return NULL;
30403}
30404
30405
70d7cb34
RD
30406SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30407 PyObject *resultobj = 0;
30408 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30409 wxFont *arg2 = 0 ;
30410 wxColour const &arg3_defvalue = *wxBLACK ;
30411 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
30412 wxGraphicsFont result;
30413 void *argp1 = 0 ;
30414 int res1 = 0 ;
30415 void *argp2 = 0 ;
30416 int res2 = 0 ;
30417 wxColour temp3 ;
30418 PyObject * obj0 = 0 ;
30419 PyObject * obj1 = 0 ;
30420 PyObject * obj2 = 0 ;
30421 char * kwnames[] = {
30422 (char *) "self",(char *) "font",(char *) "col", NULL
30423 };
30424
30425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30427 if (!SWIG_IsOK(res1)) {
30428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30429 }
30430 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30431 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
30432 if (!SWIG_IsOK(res2)) {
30433 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30434 }
30435 if (!argp2) {
30436 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30437 }
30438 arg2 = reinterpret_cast< wxFont * >(argp2);
30439 if (obj2) {
30440 {
30441 arg3 = &temp3;
30442 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
30443 }
30444 }
30445 {
30446 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
30447 if (PyErr_Occurred()) SWIG_fail;
30448 }
30449 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
30450 return resultobj;
30451fail:
30452 return NULL;
30453}
30454
30455
30456SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
30457 PyObject *obj;
30458 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
70d7cb34 30459 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj));
72ef6efb
RD
30460 return SWIG_Py_Void();
30461}
30462
30463SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30464 PyObject *resultobj = 0;
30465 wxWindowDC *arg1 = 0 ;
30466 wxGCDC *result = 0 ;
30467 void *argp1 = 0 ;
30468 int res1 = 0 ;
30469 PyObject * obj0 = 0 ;
30470 char * kwnames[] = {
30471 (char *) "dc", NULL
30472 };
30473
30474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_GCDC",kwnames,&obj0)) SWIG_fail;
30475 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
30476 if (!SWIG_IsOK(res1)) {
30477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30478 }
30479 if (!argp1) {
30480 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30481 }
30482 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
30483 {
30484 if (!wxPyCheckForApp()) SWIG_fail;
30485 PyThreadState* __tstate = wxPyBeginAllowThreads();
30486 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
30487 wxPyEndAllowThreads(__tstate);
30488 if (PyErr_Occurred()) SWIG_fail;
30489 }
30490 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
30491 return resultobj;
30492fail:
30493 return NULL;
30494}
30495
30496
30497SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30498 PyObject *resultobj = 0;
30499 wxGCDC *arg1 = (wxGCDC *) 0 ;
30500 void *argp1 = 0 ;
30501 int res1 = 0 ;
30502 PyObject *swig_obj[1] ;
30503
30504 if (!args) SWIG_fail;
30505 swig_obj[0] = args;
30506 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
30507 if (!SWIG_IsOK(res1)) {
30508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
30509 }
30510 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30511 {
72ef6efb
RD
30512 delete arg1;
30513
72ef6efb
RD
30514 if (PyErr_Occurred()) SWIG_fail;
30515 }
30516 resultobj = SWIG_Py_Void();
30517 return resultobj;
30518fail:
30519 return NULL;
30520}
30521
30522
0a27f394 30523SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
30524 PyObject *resultobj = 0;
30525 wxGCDC *arg1 = (wxGCDC *) 0 ;
30526 wxGraphicsContext *result = 0 ;
30527 void *argp1 = 0 ;
30528 int res1 = 0 ;
30529 PyObject *swig_obj[1] ;
30530
30531 if (!args) SWIG_fail;
30532 swig_obj[0] = args;
30533 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
30534 if (!SWIG_IsOK(res1)) {
0a27f394 30535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
72ef6efb
RD
30536 }
30537 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30538 {
0a27f394 30539 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
72ef6efb
RD
30540 if (PyErr_Occurred()) SWIG_fail;
30541 }
30542 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30543 return resultobj;
30544fail:
30545 return NULL;
30546}
30547
30548
0a27f394
RD
30549SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30550 PyObject *resultobj = 0;
30551 wxGCDC *arg1 = (wxGCDC *) 0 ;
30552 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
30553 void *argp1 = 0 ;
30554 int res1 = 0 ;
30555 void *argp2 = 0 ;
30556 int res2 = 0 ;
30557 PyObject * obj0 = 0 ;
30558 PyObject * obj1 = 0 ;
30559 char * kwnames[] = {
30560 (char *) "self",(char *) "ctx", NULL
30561 };
30562
30563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
30564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
30565 if (!SWIG_IsOK(res1)) {
30566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
30567 }
30568 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30569 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30570 if (!SWIG_IsOK(res2)) {
30571 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
30572 }
30573 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
30574 {
30575 (arg1)->SetGraphicsContext(arg2);
30576 if (PyErr_Occurred()) SWIG_fail;
30577 }
30578 resultobj = SWIG_Py_Void();
30579 return resultobj;
30580fail:
30581 return NULL;
30582}
30583
30584
72ef6efb
RD
30585SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30586 PyObject *obj;
30587 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30588 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
30589 return SWIG_Py_Void();
30590}
30591
30592SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30593 return SWIG_Python_InitShadowInstance(args);
30594}
30595
b39fe951
RD
30596SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30597 PyObject *resultobj = 0;
30598 wxOverlay *result = 0 ;
30599
30600 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
30601 {
30602 PyThreadState* __tstate = wxPyBeginAllowThreads();
30603 result = (wxOverlay *)new wxOverlay();
30604 wxPyEndAllowThreads(__tstate);
30605 if (PyErr_Occurred()) SWIG_fail;
30606 }
30607 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
30608 return resultobj;
30609fail:
30610 return NULL;
30611}
30612
30613
30614SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30615 PyObject *resultobj = 0;
30616 wxOverlay *arg1 = (wxOverlay *) 0 ;
30617 void *argp1 = 0 ;
30618 int res1 = 0 ;
30619 PyObject *swig_obj[1] ;
30620
30621 if (!args) SWIG_fail;
30622 swig_obj[0] = args;
30623 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
30624 if (!SWIG_IsOK(res1)) {
30625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
30626 }
30627 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30628 {
30629 PyThreadState* __tstate = wxPyBeginAllowThreads();
30630 delete arg1;
30631
30632 wxPyEndAllowThreads(__tstate);
30633 if (PyErr_Occurred()) SWIG_fail;
30634 }
30635 resultobj = SWIG_Py_Void();
30636 return resultobj;
30637fail:
30638 return NULL;
30639}
30640
30641
30642SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30643 PyObject *resultobj = 0;
30644 wxOverlay *arg1 = (wxOverlay *) 0 ;
30645 void *argp1 = 0 ;
30646 int res1 = 0 ;
30647 PyObject *swig_obj[1] ;
30648
30649 if (!args) SWIG_fail;
30650 swig_obj[0] = args;
30651 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
30652 if (!SWIG_IsOK(res1)) {
30653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
30654 }
30655 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30656 {
30657 PyThreadState* __tstate = wxPyBeginAllowThreads();
30658 (arg1)->Reset();
30659 wxPyEndAllowThreads(__tstate);
30660 if (PyErr_Occurred()) SWIG_fail;
30661 }
30662 resultobj = SWIG_Py_Void();
30663 return resultobj;
30664fail:
30665 return NULL;
30666}
30667
30668
30669SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30670 PyObject *obj;
30671 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30672 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
30673 return SWIG_Py_Void();
30674}
30675
30676SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30677 return SWIG_Python_InitShadowInstance(args);
30678}
30679
30680SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30681 PyObject *resultobj = 0;
30682 wxOverlay *arg1 = 0 ;
30683 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
30684 int arg3 ;
30685 int arg4 ;
30686 int arg5 ;
30687 int arg6 ;
30688 wxDCOverlay *result = 0 ;
30689 void *argp1 = 0 ;
30690 int res1 = 0 ;
30691 void *argp2 = 0 ;
30692 int res2 = 0 ;
30693 int val3 ;
30694 int ecode3 = 0 ;
30695 int val4 ;
30696 int ecode4 = 0 ;
30697 int val5 ;
30698 int ecode5 = 0 ;
30699 int val6 ;
30700 int ecode6 = 0 ;
30701
30702 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
30703 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
30704 if (!SWIG_IsOK(res1)) {
30705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30706 }
30707 if (!argp1) {
30708 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30709 }
30710 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30711 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
30712 if (!SWIG_IsOK(res2)) {
30713 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
30714 }
30715 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30716 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
30717 if (!SWIG_IsOK(ecode3)) {
30718 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
30719 }
30720 arg3 = static_cast< int >(val3);
30721 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
30722 if (!SWIG_IsOK(ecode4)) {
30723 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
30724 }
30725 arg4 = static_cast< int >(val4);
30726 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
30727 if (!SWIG_IsOK(ecode5)) {
30728 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
30729 }
30730 arg5 = static_cast< int >(val5);
30731 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
30732 if (!SWIG_IsOK(ecode6)) {
30733 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
30734 }
30735 arg6 = static_cast< int >(val6);
30736 {
30737 PyThreadState* __tstate = wxPyBeginAllowThreads();
30738 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
30739 wxPyEndAllowThreads(__tstate);
30740 if (PyErr_Occurred()) SWIG_fail;
30741 }
30742 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
30743 return resultobj;
30744fail:
30745 return NULL;
30746}
30747
30748
30749SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30750 PyObject *resultobj = 0;
30751 wxOverlay *arg1 = 0 ;
30752 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
30753 wxDCOverlay *result = 0 ;
30754 void *argp1 = 0 ;
30755 int res1 = 0 ;
30756 void *argp2 = 0 ;
30757 int res2 = 0 ;
30758
30759 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30760 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
30761 if (!SWIG_IsOK(res1)) {
30762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30763 }
30764 if (!argp1) {
30765 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30766 }
30767 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30768 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
30769 if (!SWIG_IsOK(res2)) {
30770 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
30771 }
30772 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30773 {
30774 PyThreadState* __tstate = wxPyBeginAllowThreads();
30775 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
30776 wxPyEndAllowThreads(__tstate);
30777 if (PyErr_Occurred()) SWIG_fail;
30778 }
30779 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
30780 return resultobj;
30781fail:
30782 return NULL;
30783}
30784
30785
30786SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
30787 int argc;
30788 PyObject *argv[7];
30789
30790 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
30791 --argc;
30792 if (argc == 2) {
30793 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
30794 }
30795 if (argc == 6) {
30796 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
30797 }
30798
30799fail:
30800 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
30801 return NULL;
30802}
30803
30804
30805SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30806 PyObject *resultobj = 0;
30807 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
30808 void *argp1 = 0 ;
30809 int res1 = 0 ;
30810 PyObject *swig_obj[1] ;
30811
30812 if (!args) SWIG_fail;
30813 swig_obj[0] = args;
30814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
30815 if (!SWIG_IsOK(res1)) {
30816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
30817 }
30818 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
30819 {
30820 PyThreadState* __tstate = wxPyBeginAllowThreads();
30821 delete arg1;
30822
30823 wxPyEndAllowThreads(__tstate);
30824 if (PyErr_Occurred()) SWIG_fail;
30825 }
30826 resultobj = SWIG_Py_Void();
30827 return resultobj;
30828fail:
30829 return NULL;
30830}
30831
30832
30833SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30834 PyObject *resultobj = 0;
30835 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
30836 void *argp1 = 0 ;
30837 int res1 = 0 ;
30838 PyObject *swig_obj[1] ;
30839
30840 if (!args) SWIG_fail;
30841 swig_obj[0] = args;
30842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
30843 if (!SWIG_IsOK(res1)) {
30844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
30845 }
30846 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
30847 {
30848 PyThreadState* __tstate = wxPyBeginAllowThreads();
30849 (arg1)->Clear();
30850 wxPyEndAllowThreads(__tstate);
30851 if (PyErr_Occurred()) SWIG_fail;
30852 }
30853 resultobj = SWIG_Py_Void();
30854 return resultobj;
30855fail:
30856 return NULL;
30857}
30858
30859
30860SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30861 PyObject *obj;
30862 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30863 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
30864 return SWIG_Py_Void();
30865}
30866
30867SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30868 return SWIG_Python_InitShadowInstance(args);
30869}
30870
72ef6efb
RD
30871SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30872 PyObject *resultobj = 0;
30873 int arg1 ;
30874 int arg2 ;
30875 int arg3 = (int) true ;
30876 int arg4 = (int) 1 ;
30877 wxImageList *result = 0 ;
30878 int val1 ;
30879 int ecode1 = 0 ;
30880 int val2 ;
30881 int ecode2 = 0 ;
30882 int val3 ;
30883 int ecode3 = 0 ;
30884 int val4 ;
30885 int ecode4 = 0 ;
30886 PyObject * obj0 = 0 ;
30887 PyObject * obj1 = 0 ;
30888 PyObject * obj2 = 0 ;
30889 PyObject * obj3 = 0 ;
30890 char * kwnames[] = {
30891 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
30892 };
30893
30894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30895 ecode1 = SWIG_AsVal_int(obj0, &val1);
30896 if (!SWIG_IsOK(ecode1)) {
30897 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
30898 }
30899 arg1 = static_cast< int >(val1);
30900 ecode2 = SWIG_AsVal_int(obj1, &val2);
30901 if (!SWIG_IsOK(ecode2)) {
30902 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
30903 }
30904 arg2 = static_cast< int >(val2);
30905 if (obj2) {
30906 ecode3 = SWIG_AsVal_int(obj2, &val3);
30907 if (!SWIG_IsOK(ecode3)) {
30908 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
30909 }
30910 arg3 = static_cast< int >(val3);
30911 }
30912 if (obj3) {
30913 ecode4 = SWIG_AsVal_int(obj3, &val4);
30914 if (!SWIG_IsOK(ecode4)) {
30915 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
30916 }
30917 arg4 = static_cast< int >(val4);
30918 }
30919 {
30920 if (!wxPyCheckForApp()) SWIG_fail;
30921 PyThreadState* __tstate = wxPyBeginAllowThreads();
30922 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
30923 wxPyEndAllowThreads(__tstate);
30924 if (PyErr_Occurred()) SWIG_fail;
30925 }
e02c0a13 30926 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
72ef6efb
RD
30927 return resultobj;
30928fail:
30929 return NULL;
30930}
30931
30932
30933SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30934 PyObject *resultobj = 0;
30935 wxImageList *arg1 = (wxImageList *) 0 ;
30936 void *argp1 = 0 ;
30937 int res1 = 0 ;
30938 PyObject *swig_obj[1] ;
30939
30940 if (!args) SWIG_fail;
30941 swig_obj[0] = args;
30942 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30943 if (!SWIG_IsOK(res1)) {
30944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
30945 }
30946 arg1 = reinterpret_cast< wxImageList * >(argp1);
30947 {
30948 PyThreadState* __tstate = wxPyBeginAllowThreads();
30949 delete arg1;
30950
30951 wxPyEndAllowThreads(__tstate);
30952 if (PyErr_Occurred()) SWIG_fail;
30953 }
30954 resultobj = SWIG_Py_Void();
30955 return resultobj;
30956fail:
30957 return NULL;
30958}
30959
30960
30961SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30962 PyObject *resultobj = 0;
30963 wxImageList *arg1 = (wxImageList *) 0 ;
30964 wxBitmap *arg2 = 0 ;
30965 wxBitmap const &arg3_defvalue = wxNullBitmap ;
30966 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
30967 int result;
30968 void *argp1 = 0 ;
30969 int res1 = 0 ;
30970 void *argp2 = 0 ;
30971 int res2 = 0 ;
30972 void *argp3 = 0 ;
30973 int res3 = 0 ;
30974 PyObject * obj0 = 0 ;
30975 PyObject * obj1 = 0 ;
30976 PyObject * obj2 = 0 ;
30977 char * kwnames[] = {
30978 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
30979 };
30980
30981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30983 if (!SWIG_IsOK(res1)) {
30984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
30985 }
30986 arg1 = reinterpret_cast< wxImageList * >(argp1);
30987 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
30988 if (!SWIG_IsOK(res2)) {
30989 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30990 }
30991 if (!argp2) {
30992 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30993 }
30994 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30995 if (obj2) {
30996 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
30997 if (!SWIG_IsOK(res3)) {
30998 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30999 }
31000 if (!argp3) {
31001 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31002 }
31003 arg3 = reinterpret_cast< wxBitmap * >(argp3);
31004 }
31005 {
31006 PyThreadState* __tstate = wxPyBeginAllowThreads();
31007 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
31008 wxPyEndAllowThreads(__tstate);
31009 if (PyErr_Occurred()) SWIG_fail;
31010 }
31011 resultobj = SWIG_From_int(static_cast< int >(result));
31012 return resultobj;
31013fail:
31014 return NULL;
31015}
31016
31017
31018SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31019 PyObject *resultobj = 0;
31020 wxImageList *arg1 = (wxImageList *) 0 ;
31021 wxBitmap *arg2 = 0 ;
31022 wxColour *arg3 = 0 ;
31023 int result;
31024 void *argp1 = 0 ;
31025 int res1 = 0 ;
31026 void *argp2 = 0 ;
31027 int res2 = 0 ;
31028 wxColour temp3 ;
31029 PyObject * obj0 = 0 ;
31030 PyObject * obj1 = 0 ;
31031 PyObject * obj2 = 0 ;
31032 char * kwnames[] = {
31033 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
31034 };
31035
31036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31038 if (!SWIG_IsOK(res1)) {
31039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
31040 }
31041 arg1 = reinterpret_cast< wxImageList * >(argp1);
31042 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31043 if (!SWIG_IsOK(res2)) {
31044 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31045 }
31046 if (!argp2) {
31047 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31048 }
31049 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31050 {
31051 arg3 = &temp3;
31052 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31053 }
31054 {
31055 PyThreadState* __tstate = wxPyBeginAllowThreads();
31056 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
31057 wxPyEndAllowThreads(__tstate);
31058 if (PyErr_Occurred()) SWIG_fail;
31059 }
31060 resultobj = SWIG_From_int(static_cast< int >(result));
31061 return resultobj;
31062fail:
31063 return NULL;
31064}
31065
31066
31067SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31068 PyObject *resultobj = 0;
31069 wxImageList *arg1 = (wxImageList *) 0 ;
31070 wxIcon *arg2 = 0 ;
31071 int result;
31072 void *argp1 = 0 ;
31073 int res1 = 0 ;
31074 void *argp2 = 0 ;
31075 int res2 = 0 ;
31076 PyObject * obj0 = 0 ;
31077 PyObject * obj1 = 0 ;
31078 char * kwnames[] = {
31079 (char *) "self",(char *) "icon", NULL
31080 };
31081
31082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31084 if (!SWIG_IsOK(res1)) {
31085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
31086 }
1bd55598
RD
31087 arg1 = reinterpret_cast< wxImageList * >(argp1);
31088 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
31089 if (!SWIG_IsOK(res2)) {
31090 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31091 }
31092 if (!argp2) {
31093 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31094 }
31095 arg2 = reinterpret_cast< wxIcon * >(argp2);
31096 {
31097 PyThreadState* __tstate = wxPyBeginAllowThreads();
31098 result = (int)(arg1)->Add((wxIcon const &)*arg2);
31099 wxPyEndAllowThreads(__tstate);
31100 if (PyErr_Occurred()) SWIG_fail;
31101 }
31102 resultobj = SWIG_From_int(static_cast< int >(result));
31103 return resultobj;
31104fail:
31105 return NULL;
31106}
31107
31108
31109SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31110 PyObject *resultobj = 0;
31111 wxImageList *arg1 = (wxImageList *) 0 ;
31112 int arg2 ;
31113 SwigValueWrapper<wxBitmap > result;
31114 void *argp1 = 0 ;
31115 int res1 = 0 ;
31116 int val2 ;
31117 int ecode2 = 0 ;
31118 PyObject * obj0 = 0 ;
31119 PyObject * obj1 = 0 ;
31120 char * kwnames[] = {
31121 (char *) "self",(char *) "index", NULL
31122 };
31123
31124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
31125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31126 if (!SWIG_IsOK(res1)) {
31127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
31128 }
31129 arg1 = reinterpret_cast< wxImageList * >(argp1);
31130 ecode2 = SWIG_AsVal_int(obj1, &val2);
31131 if (!SWIG_IsOK(ecode2)) {
31132 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
31133 }
31134 arg2 = static_cast< int >(val2);
31135 {
31136 PyThreadState* __tstate = wxPyBeginAllowThreads();
31137 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
31138 wxPyEndAllowThreads(__tstate);
31139 if (PyErr_Occurred()) SWIG_fail;
31140 }
31141 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
31142 return resultobj;
31143fail:
31144 return NULL;
31145}
31146
31147
31148SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31149 PyObject *resultobj = 0;
31150 wxImageList *arg1 = (wxImageList *) 0 ;
31151 int arg2 ;
31152 wxIcon result;
31153 void *argp1 = 0 ;
31154 int res1 = 0 ;
31155 int val2 ;
31156 int ecode2 = 0 ;
31157 PyObject * obj0 = 0 ;
31158 PyObject * obj1 = 0 ;
31159 char * kwnames[] = {
31160 (char *) "self",(char *) "index", NULL
31161 };
31162
31163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31165 if (!SWIG_IsOK(res1)) {
31166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
31167 }
31168 arg1 = reinterpret_cast< wxImageList * >(argp1);
31169 ecode2 = SWIG_AsVal_int(obj1, &val2);
31170 if (!SWIG_IsOK(ecode2)) {
31171 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
31172 }
31173 arg2 = static_cast< int >(val2);
31174 {
31175 PyThreadState* __tstate = wxPyBeginAllowThreads();
31176 result = ((wxImageList const *)arg1)->GetIcon(arg2);
31177 wxPyEndAllowThreads(__tstate);
31178 if (PyErr_Occurred()) SWIG_fail;
31179 }
31180 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
31181 return resultobj;
31182fail:
31183 return NULL;
31184}
31185
31186
31187SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31188 PyObject *resultobj = 0;
31189 wxImageList *arg1 = (wxImageList *) 0 ;
31190 int arg2 ;
31191 wxBitmap *arg3 = 0 ;
2131d850
RD
31192 wxBitmap const &arg4_defvalue = wxNullBitmap ;
31193 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
1bd55598
RD
31194 bool result;
31195 void *argp1 = 0 ;
31196 int res1 = 0 ;
31197 int val2 ;
31198 int ecode2 = 0 ;
31199 void *argp3 = 0 ;
31200 int res3 = 0 ;
2131d850
RD
31201 void *argp4 = 0 ;
31202 int res4 = 0 ;
1bd55598
RD
31203 PyObject * obj0 = 0 ;
31204 PyObject * obj1 = 0 ;
31205 PyObject * obj2 = 0 ;
2131d850 31206 PyObject * obj3 = 0 ;
1bd55598 31207 char * kwnames[] = {
2131d850 31208 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
1bd55598
RD
31209 };
31210
2131d850 31211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
31212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31213 if (!SWIG_IsOK(res1)) {
31214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
31215 }
31216 arg1 = reinterpret_cast< wxImageList * >(argp1);
31217 ecode2 = SWIG_AsVal_int(obj1, &val2);
31218 if (!SWIG_IsOK(ecode2)) {
31219 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
31220 }
31221 arg2 = static_cast< int >(val2);
31222 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31223 if (!SWIG_IsOK(res3)) {
31224 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31225 }
31226 if (!argp3) {
31227 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31228 }
31229 arg3 = reinterpret_cast< wxBitmap * >(argp3);
2131d850
RD
31230 if (obj3) {
31231 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
31232 if (!SWIG_IsOK(res4)) {
31233 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
31234 }
31235 if (!argp4) {
31236 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
31237 }
31238 arg4 = reinterpret_cast< wxBitmap * >(argp4);
31239 }
1bd55598
RD
31240 {
31241 PyThreadState* __tstate = wxPyBeginAllowThreads();
2131d850 31242 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
1bd55598
RD
31243 wxPyEndAllowThreads(__tstate);
31244 if (PyErr_Occurred()) SWIG_fail;
31245 }
31246 {
31247 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31248 }
31249 return resultobj;
31250fail:
31251 return NULL;
31252}
31253
31254
31255SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31256 PyObject *resultobj = 0;
31257 wxImageList *arg1 = (wxImageList *) 0 ;
31258 int arg2 ;
31259 wxDC *arg3 = 0 ;
31260 int arg4 ;
31261 int arg5 ;
31262 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
31263 bool arg7 = (bool) (bool)false ;
31264 bool result;
31265 void *argp1 = 0 ;
31266 int res1 = 0 ;
31267 int val2 ;
31268 int ecode2 = 0 ;
31269 void *argp3 = 0 ;
31270 int res3 = 0 ;
31271 int val4 ;
31272 int ecode4 = 0 ;
31273 int val5 ;
31274 int ecode5 = 0 ;
31275 int val6 ;
31276 int ecode6 = 0 ;
31277 bool val7 ;
31278 int ecode7 = 0 ;
31279 PyObject * obj0 = 0 ;
31280 PyObject * obj1 = 0 ;
31281 PyObject * obj2 = 0 ;
31282 PyObject * obj3 = 0 ;
31283 PyObject * obj4 = 0 ;
31284 PyObject * obj5 = 0 ;
31285 PyObject * obj6 = 0 ;
31286 char * kwnames[] = {
31287 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
31288 };
31289
31290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31292 if (!SWIG_IsOK(res1)) {
31293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
31294 }
31295 arg1 = reinterpret_cast< wxImageList * >(argp1);
31296 ecode2 = SWIG_AsVal_int(obj1, &val2);
31297 if (!SWIG_IsOK(ecode2)) {
31298 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
31299 }
31300 arg2 = static_cast< int >(val2);
31301 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31302 if (!SWIG_IsOK(res3)) {
31303 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31304 }
31305 if (!argp3) {
31306 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31307 }
31308 arg3 = reinterpret_cast< wxDC * >(argp3);
31309 ecode4 = SWIG_AsVal_int(obj3, &val4);
31310 if (!SWIG_IsOK(ecode4)) {
31311 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
31312 }
31313 arg4 = static_cast< int >(val4);
31314 ecode5 = SWIG_AsVal_int(obj4, &val5);
31315 if (!SWIG_IsOK(ecode5)) {
31316 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
31317 }
31318 arg5 = static_cast< int >(val5);
31319 if (obj5) {
31320 ecode6 = SWIG_AsVal_int(obj5, &val6);
31321 if (!SWIG_IsOK(ecode6)) {
31322 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
31323 }
31324 arg6 = static_cast< int >(val6);
31325 }
31326 if (obj6) {
31327 ecode7 = SWIG_AsVal_bool(obj6, &val7);
31328 if (!SWIG_IsOK(ecode7)) {
31329 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
31330 }
31331 arg7 = static_cast< bool >(val7);
31332 }
31333 {
31334 PyThreadState* __tstate = wxPyBeginAllowThreads();
31335 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
31336 wxPyEndAllowThreads(__tstate);
31337 if (PyErr_Occurred()) SWIG_fail;
31338 }
31339 {
31340 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31341 }
31342 return resultobj;
31343fail:
31344 return NULL;
31345}
31346
31347
31348SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31349 PyObject *resultobj = 0;
31350 wxImageList *arg1 = (wxImageList *) 0 ;
31351 int result;
31352 void *argp1 = 0 ;
31353 int res1 = 0 ;
31354 PyObject *swig_obj[1] ;
31355
31356 if (!args) SWIG_fail;
31357 swig_obj[0] = args;
31358 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31359 if (!SWIG_IsOK(res1)) {
31360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
31361 }
31362 arg1 = reinterpret_cast< wxImageList * >(argp1);
31363 {
31364 PyThreadState* __tstate = wxPyBeginAllowThreads();
31365 result = (int)(arg1)->GetImageCount();
31366 wxPyEndAllowThreads(__tstate);
31367 if (PyErr_Occurred()) SWIG_fail;
31368 }
31369 resultobj = SWIG_From_int(static_cast< int >(result));
31370 return resultobj;
31371fail:
31372 return NULL;
31373}
31374
31375
31376SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31377 PyObject *resultobj = 0;
31378 wxImageList *arg1 = (wxImageList *) 0 ;
31379 int arg2 ;
31380 bool result;
31381 void *argp1 = 0 ;
31382 int res1 = 0 ;
31383 int val2 ;
31384 int ecode2 = 0 ;
31385 PyObject * obj0 = 0 ;
31386 PyObject * obj1 = 0 ;
31387 char * kwnames[] = {
31388 (char *) "self",(char *) "index", NULL
31389 };
31390
31391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
31392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31393 if (!SWIG_IsOK(res1)) {
31394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
31395 }
31396 arg1 = reinterpret_cast< wxImageList * >(argp1);
31397 ecode2 = SWIG_AsVal_int(obj1, &val2);
31398 if (!SWIG_IsOK(ecode2)) {
31399 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
31400 }
31401 arg2 = static_cast< int >(val2);
31402 {
31403 PyThreadState* __tstate = wxPyBeginAllowThreads();
31404 result = (bool)(arg1)->Remove(arg2);
31405 wxPyEndAllowThreads(__tstate);
31406 if (PyErr_Occurred()) SWIG_fail;
31407 }
31408 {
31409 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31410 }
31411 return resultobj;
31412fail:
31413 return NULL;
31414}
31415
31416
31417SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31418 PyObject *resultobj = 0;
31419 wxImageList *arg1 = (wxImageList *) 0 ;
31420 bool result;
31421 void *argp1 = 0 ;
31422 int res1 = 0 ;
31423 PyObject *swig_obj[1] ;
31424
31425 if (!args) SWIG_fail;
31426 swig_obj[0] = args;
31427 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31428 if (!SWIG_IsOK(res1)) {
31429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
31430 }
31431 arg1 = reinterpret_cast< wxImageList * >(argp1);
31432 {
31433 PyThreadState* __tstate = wxPyBeginAllowThreads();
31434 result = (bool)(arg1)->RemoveAll();
31435 wxPyEndAllowThreads(__tstate);
31436 if (PyErr_Occurred()) SWIG_fail;
31437 }
31438 {
31439 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31440 }
31441 return resultobj;
31442fail:
31443 return NULL;
31444}
31445
31446
31447SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31448 PyObject *resultobj = 0;
31449 wxImageList *arg1 = (wxImageList *) 0 ;
31450 int arg2 ;
31451 int *arg3 = 0 ;
31452 int *arg4 = 0 ;
31453 void *argp1 = 0 ;
31454 int res1 = 0 ;
31455 int val2 ;
31456 int ecode2 = 0 ;
31457 int temp3 ;
31458 int res3 = SWIG_TMPOBJ ;
31459 int temp4 ;
31460 int res4 = SWIG_TMPOBJ ;
31461 PyObject * obj0 = 0 ;
31462 PyObject * obj1 = 0 ;
31463 char * kwnames[] = {
31464 (char *) "self",(char *) "index", NULL
31465 };
31466
31467 arg3 = &temp3;
31468 arg4 = &temp4;
31469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
31470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31471 if (!SWIG_IsOK(res1)) {
31472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
31473 }
31474 arg1 = reinterpret_cast< wxImageList * >(argp1);
31475 ecode2 = SWIG_AsVal_int(obj1, &val2);
31476 if (!SWIG_IsOK(ecode2)) {
31477 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
31478 }
31479 arg2 = static_cast< int >(val2);
31480 {
31481 PyThreadState* __tstate = wxPyBeginAllowThreads();
31482 (arg1)->GetSize(arg2,*arg3,*arg4);
31483 wxPyEndAllowThreads(__tstate);
31484 if (PyErr_Occurred()) SWIG_fail;
31485 }
31486 resultobj = SWIG_Py_Void();
31487 if (SWIG_IsTmpObj(res3)) {
31488 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31489 } else {
31490 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31491 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31492 }
31493 if (SWIG_IsTmpObj(res4)) {
31494 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
31495 } else {
31496 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31497 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
31498 }
31499 return resultobj;
31500fail:
31501 return NULL;
31502}
31503
31504
31505SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31506 PyObject *obj;
31507 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31508 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
31509 return SWIG_Py_Void();
31510}
31511
31512SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31513 return SWIG_Python_InitShadowInstance(args);
31514}
31515
da91cb0f
RD
31516SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31517 PyObject *resultobj = 0;
31518 wxStockGDI *result = 0 ;
1bd55598 31519
da91cb0f
RD
31520 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
31521 {
31522 PyThreadState* __tstate = wxPyBeginAllowThreads();
31523 result = (wxStockGDI *)new wxStockGDI();
31524 wxPyEndAllowThreads(__tstate);
31525 if (PyErr_Occurred()) SWIG_fail;
31526 }
31527 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
31528 return resultobj;
31529fail:
31530 return NULL;
1bd55598
RD
31531}
31532
31533
da91cb0f
RD
31534SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31535 PyObject *resultobj = 0;
31536 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
31537 void *argp1 = 0 ;
31538 int res1 = 0 ;
31539 PyObject *swig_obj[1] ;
1bd55598 31540
da91cb0f
RD
31541 if (!args) SWIG_fail;
31542 swig_obj[0] = args;
31543 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
31544 if (!SWIG_IsOK(res1)) {
31545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
31546 }
31547 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
31548 {
31549 PyThreadState* __tstate = wxPyBeginAllowThreads();
31550 delete arg1;
31551
31552 wxPyEndAllowThreads(__tstate);
31553 if (PyErr_Occurred()) SWIG_fail;
31554 }
31555 resultobj = SWIG_Py_Void();
31556 return resultobj;
31557fail:
31558 return NULL;
1bd55598
RD
31559}
31560
31561
da91cb0f
RD
31562SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31563 PyObject *resultobj = 0;
1bd55598 31564
da91cb0f
RD
31565 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
31566 {
31567 PyThreadState* __tstate = wxPyBeginAllowThreads();
31568 wxStockGDI::DeleteAll();
31569 wxPyEndAllowThreads(__tstate);
31570 if (PyErr_Occurred()) SWIG_fail;
31571 }
31572 resultobj = SWIG_Py_Void();
31573 return resultobj;
31574fail:
31575 return NULL;
1bd55598
RD
31576}
31577
31578
da91cb0f
RD
31579SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31580 PyObject *resultobj = 0;
31581 wxStockGDI *result = 0 ;
1bd55598 31582
da91cb0f
RD
31583 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
31584 {
31585 PyThreadState* __tstate = wxPyBeginAllowThreads();
31586 {
31587 wxStockGDI &_result_ref = wxStockGDI::instance();
31588 result = (wxStockGDI *) &_result_ref;
31589 }
31590 wxPyEndAllowThreads(__tstate);
31591 if (PyErr_Occurred()) SWIG_fail;
31592 }
31593 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
31594 return resultobj;
31595fail:
31596 return NULL;
1bd55598
RD
31597}
31598
31599
da91cb0f
RD
31600SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31601 PyObject *resultobj = 0;
31602 wxStockGDI::Item arg1 ;
31603 wxBrush *result = 0 ;
31604 int val1 ;
31605 int ecode1 = 0 ;
31606 PyObject * obj0 = 0 ;
31607 char * kwnames[] = {
31608 (char *) "item", NULL
31609 };
31610
31611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
31612 ecode1 = SWIG_AsVal_int(obj0, &val1);
31613 if (!SWIG_IsOK(ecode1)) {
31614 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31615 }
31616 arg1 = static_cast< wxStockGDI::Item >(val1);
31617 {
31618 PyThreadState* __tstate = wxPyBeginAllowThreads();
31619 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
31620 wxPyEndAllowThreads(__tstate);
31621 if (PyErr_Occurred()) SWIG_fail;
31622 }
31623 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
31624 return resultobj;
31625fail:
31626 return NULL;
1bd55598
RD
31627}
31628
31629
da91cb0f
RD
31630SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31631 PyObject *resultobj = 0;
31632 wxStockGDI::Item arg1 ;
31633 wxColour *result = 0 ;
31634 int val1 ;
31635 int ecode1 = 0 ;
31636 PyObject * obj0 = 0 ;
31637 char * kwnames[] = {
31638 (char *) "item", NULL
31639 };
1bd55598 31640
da91cb0f
RD
31641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
31642 ecode1 = SWIG_AsVal_int(obj0, &val1);
31643 if (!SWIG_IsOK(ecode1)) {
31644 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31645 }
31646 arg1 = static_cast< wxStockGDI::Item >(val1);
31647 {
31648 PyThreadState* __tstate = wxPyBeginAllowThreads();
31649 result = (wxColour *)wxStockGDI::GetColour(arg1);
31650 wxPyEndAllowThreads(__tstate);
31651 if (PyErr_Occurred()) SWIG_fail;
31652 }
31653 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
31654 return resultobj;
31655fail:
31656 return NULL;
1bd55598
RD
31657}
31658
31659
da91cb0f
RD
31660SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31661 PyObject *resultobj = 0;
31662 wxStockGDI::Item arg1 ;
31663 wxCursor *result = 0 ;
31664 int val1 ;
31665 int ecode1 = 0 ;
31666 PyObject * obj0 = 0 ;
31667 char * kwnames[] = {
31668 (char *) "item", NULL
31669 };
31670
31671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
31672 ecode1 = SWIG_AsVal_int(obj0, &val1);
31673 if (!SWIG_IsOK(ecode1)) {
31674 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31675 }
31676 arg1 = static_cast< wxStockGDI::Item >(val1);
31677 {
31678 PyThreadState* __tstate = wxPyBeginAllowThreads();
31679 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
31680 wxPyEndAllowThreads(__tstate);
31681 if (PyErr_Occurred()) SWIG_fail;
31682 }
31683 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
31684 return resultobj;
31685fail:
31686 return NULL;
1bd55598
RD
31687}
31688
31689
da91cb0f
RD
31690SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31691 PyObject *resultobj = 0;
31692 wxStockGDI::Item arg1 ;
31693 wxPen *result = 0 ;
31694 int val1 ;
31695 int ecode1 = 0 ;
31696 PyObject * obj0 = 0 ;
31697 char * kwnames[] = {
31698 (char *) "item", NULL
31699 };
31700
31701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
31702 ecode1 = SWIG_AsVal_int(obj0, &val1);
31703 if (!SWIG_IsOK(ecode1)) {
31704 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31705 }
31706 arg1 = static_cast< wxStockGDI::Item >(val1);
31707 {
31708 PyThreadState* __tstate = wxPyBeginAllowThreads();
31709 result = (wxPen *)wxStockGDI::GetPen(arg1);
31710 wxPyEndAllowThreads(__tstate);
31711 if (PyErr_Occurred()) SWIG_fail;
31712 }
31713 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
31714 return resultobj;
31715fail:
31716 return NULL;
1bd55598
RD
31717}
31718
31719
da91cb0f
RD
31720SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31721 PyObject *resultobj = 0;
31722 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
31723 wxStockGDI::Item arg2 ;
31724 wxFont *result = 0 ;
31725 void *argp1 = 0 ;
31726 int res1 = 0 ;
31727 int val2 ;
31728 int ecode2 = 0 ;
31729 PyObject * obj0 = 0 ;
31730 PyObject * obj1 = 0 ;
31731 char * kwnames[] = {
31732 (char *) "self",(char *) "item", NULL
31733 };
1bd55598 31734
da91cb0f
RD
31735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
31736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
31737 if (!SWIG_IsOK(res1)) {
31738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
31739 }
31740 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
31741 ecode2 = SWIG_AsVal_int(obj1, &val2);
31742 if (!SWIG_IsOK(ecode2)) {
31743 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
31744 }
31745 arg2 = static_cast< wxStockGDI::Item >(val2);
31746 {
31747 PyThreadState* __tstate = wxPyBeginAllowThreads();
31748 result = (wxFont *)(arg1)->GetFont(arg2);
31749 wxPyEndAllowThreads(__tstate);
31750 if (PyErr_Occurred()) SWIG_fail;
31751 }
31752 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
31753 return resultobj;
31754fail:
31755 return NULL;
1bd55598
RD
31756}
31757
31758
da91cb0f
RD
31759SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31760 PyObject *obj;
31761 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31762 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
31763 return SWIG_Py_Void();
1bd55598
RD
31764}
31765
da91cb0f
RD
31766SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31767 return SWIG_Python_InitShadowInstance(args);
1bd55598
RD
31768}
31769
1bd55598
RD
31770SWIGINTERN int NullBitmap_set(PyObject *) {
31771 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
31772 return 1;
31773}
31774
31775
31776SWIGINTERN PyObject *NullBitmap_get(void) {
31777 PyObject *pyobj = 0;
31778
31779 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
31780 return pyobj;
31781}
31782
31783
31784SWIGINTERN int NullIcon_set(PyObject *) {
31785 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
31786 return 1;
31787}
31788
31789
31790SWIGINTERN PyObject *NullIcon_get(void) {
31791 PyObject *pyobj = 0;
31792
31793 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
31794 return pyobj;
31795}
31796
31797
31798SWIGINTERN int NullCursor_set(PyObject *) {
31799 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
31800 return 1;
31801}
31802
31803
31804SWIGINTERN PyObject *NullCursor_get(void) {
31805 PyObject *pyobj = 0;
31806
31807 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
31808 return pyobj;
31809}
31810
31811
31812SWIGINTERN int NullPen_set(PyObject *) {
31813 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
31814 return 1;
31815}
31816
31817
31818SWIGINTERN PyObject *NullPen_get(void) {
31819 PyObject *pyobj = 0;
31820
31821 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
31822 return pyobj;
31823}
31824
31825
31826SWIGINTERN int NullBrush_set(PyObject *) {
31827 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
31828 return 1;
31829}
31830
31831
31832SWIGINTERN PyObject *NullBrush_get(void) {
31833 PyObject *pyobj = 0;
31834
31835 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
31836 return pyobj;
31837}
31838
31839
31840SWIGINTERN int NullPalette_set(PyObject *) {
31841 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
31842 return 1;
31843}
31844
31845
31846SWIGINTERN PyObject *NullPalette_get(void) {
31847 PyObject *pyobj = 0;
31848
31849 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
31850 return pyobj;
31851}
31852
31853
31854SWIGINTERN int NullFont_set(PyObject *) {
31855 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
31856 return 1;
31857}
31858
31859
31860SWIGINTERN PyObject *NullFont_get(void) {
31861 PyObject *pyobj = 0;
31862
31863 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
31864 return pyobj;
31865}
31866
31867
31868SWIGINTERN int NullColour_set(PyObject *) {
31869 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
31870 return 1;
31871}
31872
31873
31874SWIGINTERN PyObject *NullColour_get(void) {
31875 PyObject *pyobj = 0;
31876
31877 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
31878 return pyobj;
31879}
31880
31881
da91cb0f 31882SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 31883 PyObject *resultobj = 0;
da91cb0f
RD
31884 wxGDIObjListBase *result = 0 ;
31885
31886 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
31887 {
31888 PyThreadState* __tstate = wxPyBeginAllowThreads();
31889 result = (wxGDIObjListBase *)new wxGDIObjListBase();
31890 wxPyEndAllowThreads(__tstate);
31891 if (PyErr_Occurred()) SWIG_fail;
31892 }
31893 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
31894 return resultobj;
31895fail:
31896 return NULL;
31897}
31898
31899
31900SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31901 PyObject *resultobj = 0;
31902 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
1bd55598
RD
31903 void *argp1 = 0 ;
31904 int res1 = 0 ;
da91cb0f 31905 PyObject *swig_obj[1] ;
1bd55598 31906
da91cb0f
RD
31907 if (!args) SWIG_fail;
31908 swig_obj[0] = args;
31909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
1bd55598 31910 if (!SWIG_IsOK(res1)) {
da91cb0f 31911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
1bd55598 31912 }
da91cb0f 31913 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
1bd55598
RD
31914 {
31915 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f
RD
31916 delete arg1;
31917
1bd55598
RD
31918 wxPyEndAllowThreads(__tstate);
31919 if (PyErr_Occurred()) SWIG_fail;
31920 }
31921 resultobj = SWIG_Py_Void();
31922 return resultobj;
31923fail:
31924 return NULL;
31925}
31926
31927
da91cb0f
RD
31928SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31929 PyObject *obj;
31930 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31931 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
31932 return SWIG_Py_Void();
31933}
31934
31935SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31936 return SWIG_Python_InitShadowInstance(args);
31937}
31938
1bd55598
RD
31939SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31940 PyObject *resultobj = 0;
31941 wxPenList *arg1 = (wxPenList *) 0 ;
31942 wxColour *arg2 = 0 ;
31943 int arg3 ;
31944 int arg4 ;
31945 wxPen *result = 0 ;
31946 void *argp1 = 0 ;
31947 int res1 = 0 ;
31948 wxColour temp2 ;
31949 int val3 ;
31950 int ecode3 = 0 ;
31951 int val4 ;
31952 int ecode4 = 0 ;
31953 PyObject * obj0 = 0 ;
31954 PyObject * obj1 = 0 ;
31955 PyObject * obj2 = 0 ;
31956 PyObject * obj3 = 0 ;
31957 char * kwnames[] = {
31958 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
31959 };
31960
31961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
31963 if (!SWIG_IsOK(res1)) {
31964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
31965 }
31966 arg1 = reinterpret_cast< wxPenList * >(argp1);
31967 {
31968 arg2 = &temp2;
31969 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
31970 }
31971 ecode3 = SWIG_AsVal_int(obj2, &val3);
31972 if (!SWIG_IsOK(ecode3)) {
31973 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
31974 }
31975 arg3 = static_cast< int >(val3);
31976 ecode4 = SWIG_AsVal_int(obj3, &val4);
31977 if (!SWIG_IsOK(ecode4)) {
31978 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
31979 }
31980 arg4 = static_cast< int >(val4);
31981 {
31982 PyThreadState* __tstate = wxPyBeginAllowThreads();
31983 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
31984 wxPyEndAllowThreads(__tstate);
31985 if (PyErr_Occurred()) SWIG_fail;
31986 }
31987 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
31988 return resultobj;
31989fail:
31990 return NULL;
31991}
31992
31993
da91cb0f 31994SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
31995 PyObject *resultobj = 0;
31996 wxPenList *arg1 = (wxPenList *) 0 ;
31997 wxPen *arg2 = (wxPen *) 0 ;
31998 void *argp1 = 0 ;
31999 int res1 = 0 ;
32000 void *argp2 = 0 ;
32001 int res2 = 0 ;
32002 PyObject * obj0 = 0 ;
32003 PyObject * obj1 = 0 ;
32004 char * kwnames[] = {
32005 (char *) "self",(char *) "pen", NULL
32006 };
32007
da91cb0f 32008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
1bd55598
RD
32009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32010 if (!SWIG_IsOK(res1)) {
da91cb0f 32011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
1bd55598
RD
32012 }
32013 arg1 = reinterpret_cast< wxPenList * >(argp1);
32014 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
32015 if (!SWIG_IsOK(res2)) {
da91cb0f 32016 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
1bd55598
RD
32017 }
32018 arg2 = reinterpret_cast< wxPen * >(argp2);
32019 {
32020 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32021 (arg1)->AddPen(arg2);
1bd55598
RD
32022 wxPyEndAllowThreads(__tstate);
32023 if (PyErr_Occurred()) SWIG_fail;
32024 }
32025 resultobj = SWIG_Py_Void();
32026 return resultobj;
32027fail:
32028 return NULL;
32029}
32030
32031
da91cb0f 32032SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
32033 PyObject *resultobj = 0;
32034 wxPenList *arg1 = (wxPenList *) 0 ;
da91cb0f 32035 wxPen *arg2 = (wxPen *) 0 ;
1bd55598
RD
32036 void *argp1 = 0 ;
32037 int res1 = 0 ;
da91cb0f
RD
32038 void *argp2 = 0 ;
32039 int res2 = 0 ;
32040 PyObject * obj0 = 0 ;
32041 PyObject * obj1 = 0 ;
32042 char * kwnames[] = {
32043 (char *) "self",(char *) "pen", NULL
32044 };
1bd55598 32045
da91cb0f
RD
32046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
32047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
1bd55598 32048 if (!SWIG_IsOK(res1)) {
da91cb0f 32049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
1bd55598
RD
32050 }
32051 arg1 = reinterpret_cast< wxPenList * >(argp1);
da91cb0f
RD
32052 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
32053 if (!SWIG_IsOK(res2)) {
32054 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
32055 }
32056 arg2 = reinterpret_cast< wxPen * >(argp2);
1bd55598
RD
32057 {
32058 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32059 (arg1)->RemovePen(arg2);
1bd55598
RD
32060 wxPyEndAllowThreads(__tstate);
32061 if (PyErr_Occurred()) SWIG_fail;
32062 }
da91cb0f 32063 resultobj = SWIG_Py_Void();
1bd55598
RD
32064 return resultobj;
32065fail:
32066 return NULL;
32067}
32068
32069
32070SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32071 PyObject *obj;
32072 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32073 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
32074 return SWIG_Py_Void();
32075}
32076
da91cb0f
RD
32077SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32078 PyObject *resultobj = 0;
32079 wxBrushList *arg1 = (wxBrushList *) 0 ;
32080 wxColour *arg2 = 0 ;
32081 int arg3 = (int) wxSOLID ;
32082 wxBrush *result = 0 ;
32083 void *argp1 = 0 ;
32084 int res1 = 0 ;
32085 wxColour temp2 ;
32086 int val3 ;
32087 int ecode3 = 0 ;
32088 PyObject * obj0 = 0 ;
32089 PyObject * obj1 = 0 ;
32090 PyObject * obj2 = 0 ;
32091 char * kwnames[] = {
32092 (char *) "self",(char *) "colour",(char *) "style", NULL
32093 };
32094
32095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32097 if (!SWIG_IsOK(res1)) {
32098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32099 }
32100 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32101 {
32102 arg2 = &temp2;
32103 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32104 }
32105 if (obj2) {
32106 ecode3 = SWIG_AsVal_int(obj2, &val3);
32107 if (!SWIG_IsOK(ecode3)) {
32108 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
32109 }
32110 arg3 = static_cast< int >(val3);
32111 }
32112 {
32113 PyThreadState* __tstate = wxPyBeginAllowThreads();
32114 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
32115 wxPyEndAllowThreads(__tstate);
32116 if (PyErr_Occurred()) SWIG_fail;
32117 }
32118 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
32119 return resultobj;
32120fail:
32121 return NULL;
32122}
32123
32124
1bd55598
RD
32125SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32126 PyObject *resultobj = 0;
32127 wxBrushList *arg1 = (wxBrushList *) 0 ;
32128 wxBrush *arg2 = (wxBrush *) 0 ;
32129 void *argp1 = 0 ;
32130 int res1 = 0 ;
32131 void *argp2 = 0 ;
32132 int res2 = 0 ;
32133 PyObject * obj0 = 0 ;
32134 PyObject * obj1 = 0 ;
32135 char * kwnames[] = {
32136 (char *) "self",(char *) "brush", NULL
32137 };
32138
32139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
32140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32141 if (!SWIG_IsOK(res1)) {
32142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32143 }
32144 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32145 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
32146 if (!SWIG_IsOK(res2)) {
32147 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
32148 }
32149 arg2 = reinterpret_cast< wxBrush * >(argp2);
32150 {
32151 PyThreadState* __tstate = wxPyBeginAllowThreads();
32152 (arg1)->AddBrush(arg2);
32153 wxPyEndAllowThreads(__tstate);
32154 if (PyErr_Occurred()) SWIG_fail;
32155 }
32156 resultobj = SWIG_Py_Void();
32157 return resultobj;
32158fail:
32159 return NULL;
32160}
32161
32162
da91cb0f 32163SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
32164 PyObject *resultobj = 0;
32165 wxBrushList *arg1 = (wxBrushList *) 0 ;
da91cb0f 32166 wxBrush *arg2 = (wxBrush *) 0 ;
1bd55598
RD
32167 void *argp1 = 0 ;
32168 int res1 = 0 ;
da91cb0f
RD
32169 void *argp2 = 0 ;
32170 int res2 = 0 ;
32171 PyObject * obj0 = 0 ;
32172 PyObject * obj1 = 0 ;
32173 char * kwnames[] = {
32174 (char *) "self",(char *) "brush", NULL
32175 };
32176
32177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
32178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32179 if (!SWIG_IsOK(res1)) {
32180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32181 }
32182 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32183 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
32184 if (!SWIG_IsOK(res2)) {
32185 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
32186 }
32187 arg2 = reinterpret_cast< wxBrush * >(argp2);
32188 {
32189 PyThreadState* __tstate = wxPyBeginAllowThreads();
32190 (arg1)->RemoveBrush(arg2);
32191 wxPyEndAllowThreads(__tstate);
32192 if (PyErr_Occurred()) SWIG_fail;
32193 }
32194 resultobj = SWIG_Py_Void();
32195 return resultobj;
32196fail:
32197 return NULL;
32198}
32199
32200
32201SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32202 PyObject *obj;
32203 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32204 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
32205 return SWIG_Py_Void();
32206}
32207
32208SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32209 PyObject *resultobj = 0;
32210 wxFontList *arg1 = (wxFontList *) 0 ;
32211 int arg2 ;
32212 int arg3 ;
32213 int arg4 ;
32214 int arg5 ;
32215 bool arg6 = (bool) false ;
32216 wxString const &arg7_defvalue = wxPyEmptyString ;
32217 wxString *arg7 = (wxString *) &arg7_defvalue ;
32218 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
32219 wxFont *result = 0 ;
32220 void *argp1 = 0 ;
32221 int res1 = 0 ;
32222 int val2 ;
32223 int ecode2 = 0 ;
1bd55598
RD
32224 int val3 ;
32225 int ecode3 = 0 ;
da91cb0f
RD
32226 int val4 ;
32227 int ecode4 = 0 ;
32228 int val5 ;
32229 int ecode5 = 0 ;
32230 bool val6 ;
32231 int ecode6 = 0 ;
32232 bool temp7 = false ;
32233 int val8 ;
32234 int ecode8 = 0 ;
1bd55598
RD
32235 PyObject * obj0 = 0 ;
32236 PyObject * obj1 = 0 ;
32237 PyObject * obj2 = 0 ;
da91cb0f
RD
32238 PyObject * obj3 = 0 ;
32239 PyObject * obj4 = 0 ;
32240 PyObject * obj5 = 0 ;
32241 PyObject * obj6 = 0 ;
32242 PyObject * obj7 = 0 ;
1bd55598 32243 char * kwnames[] = {
da91cb0f 32244 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
1bd55598
RD
32245 };
32246
da91cb0f
RD
32247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598 32249 if (!SWIG_IsOK(res1)) {
da91cb0f 32250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
1bd55598 32251 }
da91cb0f
RD
32252 arg1 = reinterpret_cast< wxFontList * >(argp1);
32253 ecode2 = SWIG_AsVal_int(obj1, &val2);
32254 if (!SWIG_IsOK(ecode2)) {
32255 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
32256 }
32257 arg2 = static_cast< int >(val2);
32258 ecode3 = SWIG_AsVal_int(obj2, &val3);
32259 if (!SWIG_IsOK(ecode3)) {
32260 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
32261 }
32262 arg3 = static_cast< int >(val3);
32263 ecode4 = SWIG_AsVal_int(obj3, &val4);
32264 if (!SWIG_IsOK(ecode4)) {
32265 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
32266 }
32267 arg4 = static_cast< int >(val4);
32268 ecode5 = SWIG_AsVal_int(obj4, &val5);
32269 if (!SWIG_IsOK(ecode5)) {
32270 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
32271 }
32272 arg5 = static_cast< int >(val5);
32273 if (obj5) {
32274 ecode6 = SWIG_AsVal_bool(obj5, &val6);
32275 if (!SWIG_IsOK(ecode6)) {
32276 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
32277 }
32278 arg6 = static_cast< bool >(val6);
1bd55598 32279 }
da91cb0f
RD
32280 if (obj6) {
32281 {
32282 arg7 = wxString_in_helper(obj6);
32283 if (arg7 == NULL) SWIG_fail;
32284 temp7 = true;
32285 }
32286 }
32287 if (obj7) {
32288 ecode8 = SWIG_AsVal_int(obj7, &val8);
32289 if (!SWIG_IsOK(ecode8)) {
32290 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
1bd55598 32291 }
da91cb0f 32292 arg8 = static_cast< wxFontEncoding >(val8);
1bd55598
RD
32293 }
32294 {
32295 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32296 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
1bd55598
RD
32297 wxPyEndAllowThreads(__tstate);
32298 if (PyErr_Occurred()) SWIG_fail;
32299 }
da91cb0f
RD
32300 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
32301 {
32302 if (temp7)
32303 delete arg7;
32304 }
1bd55598
RD
32305 return resultobj;
32306fail:
da91cb0f
RD
32307 {
32308 if (temp7)
32309 delete arg7;
32310 }
1bd55598
RD
32311 return NULL;
32312}
32313
32314
da91cb0f 32315SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 32316 PyObject *resultobj = 0;
da91cb0f
RD
32317 wxFontList *arg1 = (wxFontList *) 0 ;
32318 wxFont *arg2 = (wxFont *) 0 ;
1bd55598
RD
32319 void *argp1 = 0 ;
32320 int res1 = 0 ;
32321 void *argp2 = 0 ;
32322 int res2 = 0 ;
32323 PyObject * obj0 = 0 ;
32324 PyObject * obj1 = 0 ;
32325 char * kwnames[] = {
da91cb0f 32326 (char *) "self",(char *) "font", NULL
1bd55598
RD
32327 };
32328
da91cb0f
RD
32329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
32330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598 32331 if (!SWIG_IsOK(res1)) {
da91cb0f 32332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
1bd55598 32333 }
da91cb0f
RD
32334 arg1 = reinterpret_cast< wxFontList * >(argp1);
32335 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
1bd55598 32336 if (!SWIG_IsOK(res2)) {
da91cb0f 32337 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
1bd55598 32338 }
da91cb0f 32339 arg2 = reinterpret_cast< wxFont * >(argp2);
1bd55598
RD
32340 {
32341 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32342 (arg1)->AddFont(arg2);
1bd55598
RD
32343 wxPyEndAllowThreads(__tstate);
32344 if (PyErr_Occurred()) SWIG_fail;
32345 }
32346 resultobj = SWIG_Py_Void();
32347 return resultobj;
32348fail:
32349 return NULL;
32350}
32351
32352
da91cb0f 32353SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 32354 PyObject *resultobj = 0;
da91cb0f
RD
32355 wxFontList *arg1 = (wxFontList *) 0 ;
32356 wxFont *arg2 = (wxFont *) 0 ;
1bd55598
RD
32357 void *argp1 = 0 ;
32358 int res1 = 0 ;
da91cb0f
RD
32359 void *argp2 = 0 ;
32360 int res2 = 0 ;
32361 PyObject * obj0 = 0 ;
32362 PyObject * obj1 = 0 ;
32363 char * kwnames[] = {
32364 (char *) "self",(char *) "font", NULL
32365 };
1bd55598 32366
da91cb0f
RD
32367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
32368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598 32369 if (!SWIG_IsOK(res1)) {
da91cb0f 32370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
1bd55598 32371 }
da91cb0f
RD
32372 arg1 = reinterpret_cast< wxFontList * >(argp1);
32373 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
32374 if (!SWIG_IsOK(res2)) {
32375 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
32376 }
32377 arg2 = reinterpret_cast< wxFont * >(argp2);
1bd55598
RD
32378 {
32379 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32380 (arg1)->RemoveFont(arg2);
1bd55598
RD
32381 wxPyEndAllowThreads(__tstate);
32382 if (PyErr_Occurred()) SWIG_fail;
32383 }
da91cb0f 32384 resultobj = SWIG_Py_Void();
1bd55598
RD
32385 return resultobj;
32386fail:
32387 return NULL;
32388}
32389
32390
da91cb0f 32391SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
32392 PyObject *obj;
32393 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
da91cb0f 32394 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
1bd55598
RD
32395 return SWIG_Py_Void();
32396}
32397
32398SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32399 PyObject *resultobj = 0;
32400 wxColourDatabase *result = 0 ;
32401
32402 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
32403 {
32404 if (!wxPyCheckForApp()) SWIG_fail;
32405 PyThreadState* __tstate = wxPyBeginAllowThreads();
32406 result = (wxColourDatabase *)new wxColourDatabase();
32407 wxPyEndAllowThreads(__tstate);
32408 if (PyErr_Occurred()) SWIG_fail;
32409 }
32410 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
32411 return resultobj;
32412fail:
32413 return NULL;
32414}
32415
32416
32417SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32418 PyObject *resultobj = 0;
32419 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32420 void *argp1 = 0 ;
32421 int res1 = 0 ;
32422 PyObject *swig_obj[1] ;
32423
32424 if (!args) SWIG_fail;
32425 swig_obj[0] = args;
32426 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
32427 if (!SWIG_IsOK(res1)) {
32428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32429 }
32430 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32431 {
32432 PyThreadState* __tstate = wxPyBeginAllowThreads();
32433 delete arg1;
32434
32435 wxPyEndAllowThreads(__tstate);
32436 if (PyErr_Occurred()) SWIG_fail;
32437 }
32438 resultobj = SWIG_Py_Void();
32439 return resultobj;
32440fail:
32441 return NULL;
32442}
32443
32444
32445SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32446 PyObject *resultobj = 0;
32447 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32448 wxString *arg2 = 0 ;
32449 wxColour result;
32450 void *argp1 = 0 ;
32451 int res1 = 0 ;
32452 bool temp2 = false ;
32453 PyObject * obj0 = 0 ;
32454 PyObject * obj1 = 0 ;
32455 char * kwnames[] = {
32456 (char *) "self",(char *) "name", NULL
32457 };
32458
32459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
32460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32461 if (!SWIG_IsOK(res1)) {
32462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32463 }
32464 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32465 {
32466 arg2 = wxString_in_helper(obj1);
32467 if (arg2 == NULL) SWIG_fail;
32468 temp2 = true;
32469 }
32470 {
32471 PyThreadState* __tstate = wxPyBeginAllowThreads();
32472 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
32473 wxPyEndAllowThreads(__tstate);
32474 if (PyErr_Occurred()) SWIG_fail;
32475 }
32476 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32477 {
32478 if (temp2)
32479 delete arg2;
32480 }
32481 return resultobj;
32482fail:
32483 {
32484 if (temp2)
32485 delete arg2;
32486 }
32487 return NULL;
32488}
32489
32490
32491SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32492 PyObject *resultobj = 0;
32493 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32494 wxColour *arg2 = 0 ;
32495 wxString result;
32496 void *argp1 = 0 ;
32497 int res1 = 0 ;
32498 wxColour temp2 ;
32499 PyObject * obj0 = 0 ;
32500 PyObject * obj1 = 0 ;
32501 char * kwnames[] = {
32502 (char *) "self",(char *) "colour", NULL
32503 };
32504
32505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
32506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32507 if (!SWIG_IsOK(res1)) {
32508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32509 }
32510 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32511 {
32512 arg2 = &temp2;
32513 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32514 }
32515 {
32516 PyThreadState* __tstate = wxPyBeginAllowThreads();
32517 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
32518 wxPyEndAllowThreads(__tstate);
32519 if (PyErr_Occurred()) SWIG_fail;
32520 }
32521 {
32522#if wxUSE_UNICODE
32523 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32524#else
32525 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32526#endif
32527 }
32528 return resultobj;
32529fail:
32530 return NULL;
32531}
32532
32533
32534SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32535 PyObject *resultobj = 0;
32536 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32537 wxString *arg2 = 0 ;
32538 wxColour *arg3 = 0 ;
32539 void *argp1 = 0 ;
32540 int res1 = 0 ;
32541 bool temp2 = false ;
32542 wxColour temp3 ;
32543 PyObject * obj0 = 0 ;
32544 PyObject * obj1 = 0 ;
32545 PyObject * obj2 = 0 ;
32546 char * kwnames[] = {
32547 (char *) "self",(char *) "name",(char *) "colour", NULL
32548 };
32549
32550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32552 if (!SWIG_IsOK(res1)) {
32553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32554 }
32555 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32556 {
32557 arg2 = wxString_in_helper(obj1);
32558 if (arg2 == NULL) SWIG_fail;
32559 temp2 = true;
32560 }
32561 {
32562 arg3 = &temp3;
32563 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32564 }
32565 {
32566 PyThreadState* __tstate = wxPyBeginAllowThreads();
32567 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
32568 wxPyEndAllowThreads(__tstate);
32569 if (PyErr_Occurred()) SWIG_fail;
32570 }
32571 resultobj = SWIG_Py_Void();
32572 {
32573 if (temp2)
32574 delete arg2;
32575 }
32576 return resultobj;
32577fail:
32578 {
32579 if (temp2)
32580 delete arg2;
32581 }
32582 return NULL;
32583}
32584
32585
32586SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32587 PyObject *resultobj = 0;
32588 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32589 wxString *arg2 = 0 ;
32590 int arg3 ;
32591 int arg4 ;
32592 int arg5 ;
32593 void *argp1 = 0 ;
32594 int res1 = 0 ;
32595 bool temp2 = false ;
32596 int val3 ;
32597 int ecode3 = 0 ;
32598 int val4 ;
32599 int ecode4 = 0 ;
da91cb0f
RD
32600 int val5 ;
32601 int ecode5 = 0 ;
1bd55598
RD
32602 PyObject * obj0 = 0 ;
32603 PyObject * obj1 = 0 ;
32604 PyObject * obj2 = 0 ;
32605 PyObject * obj3 = 0 ;
32606 PyObject * obj4 = 0 ;
1bd55598 32607 char * kwnames[] = {
da91cb0f 32608 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
1bd55598
RD
32609 };
32610
da91cb0f
RD
32611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
1bd55598 32613 if (!SWIG_IsOK(res1)) {
da91cb0f
RD
32614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32615 }
32616 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32617 {
32618 arg2 = wxString_in_helper(obj1);
32619 if (arg2 == NULL) SWIG_fail;
32620 temp2 = true;
1bd55598 32621 }
1bd55598
RD
32622 ecode3 = SWIG_AsVal_int(obj2, &val3);
32623 if (!SWIG_IsOK(ecode3)) {
da91cb0f 32624 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
1bd55598
RD
32625 }
32626 arg3 = static_cast< int >(val3);
32627 ecode4 = SWIG_AsVal_int(obj3, &val4);
32628 if (!SWIG_IsOK(ecode4)) {
da91cb0f 32629 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
1bd55598
RD
32630 }
32631 arg4 = static_cast< int >(val4);
32632 ecode5 = SWIG_AsVal_int(obj4, &val5);
32633 if (!SWIG_IsOK(ecode5)) {
da91cb0f 32634 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
1bd55598
RD
32635 }
32636 arg5 = static_cast< int >(val5);
1bd55598
RD
32637 {
32638 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32639 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
1bd55598
RD
32640 wxPyEndAllowThreads(__tstate);
32641 if (PyErr_Occurred()) SWIG_fail;
32642 }
da91cb0f 32643 resultobj = SWIG_Py_Void();
1bd55598 32644 {
da91cb0f
RD
32645 if (temp2)
32646 delete arg2;
1bd55598
RD
32647 }
32648 return resultobj;
32649fail:
32650 {
da91cb0f
RD
32651 if (temp2)
32652 delete arg2;
1bd55598
RD
32653 }
32654 return NULL;
32655}
32656
32657
da91cb0f
RD
32658SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32659 PyObject *obj;
32660 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32661 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
32662 return SWIG_Py_Void();
32663}
32664
32665SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32666 return SWIG_Python_InitShadowInstance(args);
32667}
32668
32669SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 32670 PyObject *resultobj = 0;
da91cb0f 32671 wxFontList *result = 0 ;
1bd55598 32672
da91cb0f 32673 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
1bd55598
RD
32674 {
32675 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32676 result = (wxFontList *)_wxPyInitTheFontList();
1bd55598
RD
32677 wxPyEndAllowThreads(__tstate);
32678 if (PyErr_Occurred()) SWIG_fail;
32679 }
da91cb0f 32680 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598
RD
32681 return resultobj;
32682fail:
32683 return NULL;
32684}
32685
32686
da91cb0f 32687SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 32688 PyObject *resultobj = 0;
da91cb0f 32689 wxPenList *result = 0 ;
1bd55598 32690
da91cb0f 32691 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
1bd55598
RD
32692 {
32693 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32694 result = (wxPenList *)_wxPyInitThePenList();
1bd55598
RD
32695 wxPyEndAllowThreads(__tstate);
32696 if (PyErr_Occurred()) SWIG_fail;
32697 }
da91cb0f 32698 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
1bd55598
RD
32699 return resultobj;
32700fail:
32701 return NULL;
32702}
32703
32704
da91cb0f
RD
32705SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32706 PyObject *resultobj = 0;
32707 wxBrushList *result = 0 ;
1bd55598 32708
da91cb0f
RD
32709 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
32710 {
32711 PyThreadState* __tstate = wxPyBeginAllowThreads();
32712 result = (wxBrushList *)_wxPyInitTheBrushList();
32713 wxPyEndAllowThreads(__tstate);
32714 if (PyErr_Occurred()) SWIG_fail;
32715 }
32716 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
32717 return resultobj;
32718fail:
32719 return NULL;
1bd55598
RD
32720}
32721
32722
da91cb0f
RD
32723SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32724 PyObject *resultobj = 0;
32725 wxColourDatabase *result = 0 ;
1bd55598 32726
da91cb0f
RD
32727 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
32728 {
32729 PyThreadState* __tstate = wxPyBeginAllowThreads();
32730 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
32731 wxPyEndAllowThreads(__tstate);
32732 if (PyErr_Occurred()) SWIG_fail;
32733 }
32734 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32735 return resultobj;
32736fail:
32737 return NULL;
1bd55598
RD
32738}
32739
32740
32741SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32742 PyObject *resultobj = 0;
32743 wxEffects *result = 0 ;
32744
32745 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
32746 {
32747 PyThreadState* __tstate = wxPyBeginAllowThreads();
32748 result = (wxEffects *)new wxEffects();
32749 wxPyEndAllowThreads(__tstate);
32750 if (PyErr_Occurred()) SWIG_fail;
32751 }
32752 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
32753 return resultobj;
32754fail:
32755 return NULL;
32756}
32757
32758
32759SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32760 PyObject *resultobj = 0;
32761 wxEffects *arg1 = (wxEffects *) 0 ;
32762 wxColour result;
32763 void *argp1 = 0 ;
32764 int res1 = 0 ;
32765 PyObject *swig_obj[1] ;
32766
32767 if (!args) SWIG_fail;
32768 swig_obj[0] = args;
32769 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32770 if (!SWIG_IsOK(res1)) {
32771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
32772 }
32773 arg1 = reinterpret_cast< wxEffects * >(argp1);
32774 {
32775 PyThreadState* __tstate = wxPyBeginAllowThreads();
32776 result = ((wxEffects const *)arg1)->GetHighlightColour();
32777 wxPyEndAllowThreads(__tstate);
32778 if (PyErr_Occurred()) SWIG_fail;
32779 }
32780 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32781 return resultobj;
32782fail:
32783 return NULL;
32784}
32785
32786
32787SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32788 PyObject *resultobj = 0;
32789 wxEffects *arg1 = (wxEffects *) 0 ;
32790 wxColour result;
32791 void *argp1 = 0 ;
32792 int res1 = 0 ;
32793 PyObject *swig_obj[1] ;
32794
32795 if (!args) SWIG_fail;
32796 swig_obj[0] = args;
32797 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32798 if (!SWIG_IsOK(res1)) {
32799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32800 }
32801 arg1 = reinterpret_cast< wxEffects * >(argp1);
32802 {
32803 PyThreadState* __tstate = wxPyBeginAllowThreads();
32804 result = ((wxEffects const *)arg1)->GetLightShadow();
32805 wxPyEndAllowThreads(__tstate);
32806 if (PyErr_Occurred()) SWIG_fail;
32807 }
32808 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32809 return resultobj;
32810fail:
32811 return NULL;
32812}
32813
32814
32815SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32816 PyObject *resultobj = 0;
32817 wxEffects *arg1 = (wxEffects *) 0 ;
32818 wxColour result;
32819 void *argp1 = 0 ;
32820 int res1 = 0 ;
32821 PyObject *swig_obj[1] ;
32822
32823 if (!args) SWIG_fail;
32824 swig_obj[0] = args;
32825 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32826 if (!SWIG_IsOK(res1)) {
32827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
32828 }
32829 arg1 = reinterpret_cast< wxEffects * >(argp1);
32830 {
32831 PyThreadState* __tstate = wxPyBeginAllowThreads();
32832 result = ((wxEffects const *)arg1)->GetFaceColour();
32833 wxPyEndAllowThreads(__tstate);
32834 if (PyErr_Occurred()) SWIG_fail;
32835 }
32836 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32837 return resultobj;
32838fail:
32839 return NULL;
32840}
32841
32842
32843SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32844 PyObject *resultobj = 0;
32845 wxEffects *arg1 = (wxEffects *) 0 ;
32846 wxColour result;
32847 void *argp1 = 0 ;
32848 int res1 = 0 ;
32849 PyObject *swig_obj[1] ;
32850
32851 if (!args) SWIG_fail;
32852 swig_obj[0] = args;
32853 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32854 if (!SWIG_IsOK(res1)) {
32855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32856 }
32857 arg1 = reinterpret_cast< wxEffects * >(argp1);
32858 {
32859 PyThreadState* __tstate = wxPyBeginAllowThreads();
32860 result = ((wxEffects const *)arg1)->GetMediumShadow();
32861 wxPyEndAllowThreads(__tstate);
32862 if (PyErr_Occurred()) SWIG_fail;
32863 }
32864 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32865 return resultobj;
32866fail:
32867 return NULL;
32868}
32869
32870
32871SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32872 PyObject *resultobj = 0;
32873 wxEffects *arg1 = (wxEffects *) 0 ;
32874 wxColour result;
32875 void *argp1 = 0 ;
32876 int res1 = 0 ;
32877 PyObject *swig_obj[1] ;
32878
32879 if (!args) SWIG_fail;
32880 swig_obj[0] = args;
32881 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32882 if (!SWIG_IsOK(res1)) {
32883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32884 }
32885 arg1 = reinterpret_cast< wxEffects * >(argp1);
32886 {
32887 PyThreadState* __tstate = wxPyBeginAllowThreads();
32888 result = ((wxEffects const *)arg1)->GetDarkShadow();
32889 wxPyEndAllowThreads(__tstate);
32890 if (PyErr_Occurred()) SWIG_fail;
32891 }
32892 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32893 return resultobj;
32894fail:
32895 return NULL;
32896}
32897
32898
32899SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32900 PyObject *resultobj = 0;
32901 wxEffects *arg1 = (wxEffects *) 0 ;
32902 wxColour *arg2 = 0 ;
32903 void *argp1 = 0 ;
32904 int res1 = 0 ;
32905 wxColour temp2 ;
32906 PyObject * obj0 = 0 ;
32907 PyObject * obj1 = 0 ;
32908 char * kwnames[] = {
32909 (char *) "self",(char *) "c", NULL
32910 };
32911
32912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
32913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32914 if (!SWIG_IsOK(res1)) {
32915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
32916 }
32917 arg1 = reinterpret_cast< wxEffects * >(argp1);
32918 {
32919 arg2 = &temp2;
32920 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32921 }
32922 {
32923 PyThreadState* __tstate = wxPyBeginAllowThreads();
32924 (arg1)->SetHighlightColour((wxColour const &)*arg2);
32925 wxPyEndAllowThreads(__tstate);
32926 if (PyErr_Occurred()) SWIG_fail;
32927 }
32928 resultobj = SWIG_Py_Void();
32929 return resultobj;
32930fail:
32931 return NULL;
32932}
32933
32934
32935SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32936 PyObject *resultobj = 0;
32937 wxEffects *arg1 = (wxEffects *) 0 ;
32938 wxColour *arg2 = 0 ;
32939 void *argp1 = 0 ;
32940 int res1 = 0 ;
32941 wxColour temp2 ;
32942 PyObject * obj0 = 0 ;
32943 PyObject * obj1 = 0 ;
32944 char * kwnames[] = {
32945 (char *) "self",(char *) "c", NULL
32946 };
32947
32948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
32949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32950 if (!SWIG_IsOK(res1)) {
32951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
32952 }
32953 arg1 = reinterpret_cast< wxEffects * >(argp1);
32954 {
32955 arg2 = &temp2;
32956 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32957 }
32958 {
32959 PyThreadState* __tstate = wxPyBeginAllowThreads();
32960 (arg1)->SetLightShadow((wxColour const &)*arg2);
32961 wxPyEndAllowThreads(__tstate);
32962 if (PyErr_Occurred()) SWIG_fail;
32963 }
32964 resultobj = SWIG_Py_Void();
32965 return resultobj;
32966fail:
32967 return NULL;
32968}
32969
32970
32971SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32972 PyObject *resultobj = 0;
32973 wxEffects *arg1 = (wxEffects *) 0 ;
32974 wxColour *arg2 = 0 ;
32975 void *argp1 = 0 ;
32976 int res1 = 0 ;
32977 wxColour temp2 ;
32978 PyObject * obj0 = 0 ;
32979 PyObject * obj1 = 0 ;
32980 char * kwnames[] = {
32981 (char *) "self",(char *) "c", NULL
32982 };
32983
32984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
32985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32986 if (!SWIG_IsOK(res1)) {
32987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
32988 }
32989 arg1 = reinterpret_cast< wxEffects * >(argp1);
32990 {
32991 arg2 = &temp2;
32992 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32993 }
32994 {
32995 PyThreadState* __tstate = wxPyBeginAllowThreads();
32996 (arg1)->SetFaceColour((wxColour const &)*arg2);
32997 wxPyEndAllowThreads(__tstate);
32998 if (PyErr_Occurred()) SWIG_fail;
32999 }
33000 resultobj = SWIG_Py_Void();
33001 return resultobj;
33002fail:
33003 return NULL;
33004}
33005
33006
33007SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33008 PyObject *resultobj = 0;
33009 wxEffects *arg1 = (wxEffects *) 0 ;
33010 wxColour *arg2 = 0 ;
33011 void *argp1 = 0 ;
33012 int res1 = 0 ;
33013 wxColour temp2 ;
33014 PyObject * obj0 = 0 ;
33015 PyObject * obj1 = 0 ;
33016 char * kwnames[] = {
33017 (char *) "self",(char *) "c", NULL
33018 };
33019
33020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33022 if (!SWIG_IsOK(res1)) {
33023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33024 }
33025 arg1 = reinterpret_cast< wxEffects * >(argp1);
33026 {
33027 arg2 = &temp2;
33028 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33029 }
33030 {
33031 PyThreadState* __tstate = wxPyBeginAllowThreads();
33032 (arg1)->SetMediumShadow((wxColour const &)*arg2);
33033 wxPyEndAllowThreads(__tstate);
33034 if (PyErr_Occurred()) SWIG_fail;
33035 }
33036 resultobj = SWIG_Py_Void();
33037 return resultobj;
33038fail:
33039 return NULL;
33040}
33041
33042
33043SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33044 PyObject *resultobj = 0;
33045 wxEffects *arg1 = (wxEffects *) 0 ;
33046 wxColour *arg2 = 0 ;
33047 void *argp1 = 0 ;
33048 int res1 = 0 ;
33049 wxColour temp2 ;
33050 PyObject * obj0 = 0 ;
33051 PyObject * obj1 = 0 ;
33052 char * kwnames[] = {
33053 (char *) "self",(char *) "c", NULL
33054 };
33055
33056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33058 if (!SWIG_IsOK(res1)) {
33059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33060 }
33061 arg1 = reinterpret_cast< wxEffects * >(argp1);
33062 {
33063 arg2 = &temp2;
33064 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33065 }
33066 {
33067 PyThreadState* __tstate = wxPyBeginAllowThreads();
33068 (arg1)->SetDarkShadow((wxColour const &)*arg2);
33069 wxPyEndAllowThreads(__tstate);
33070 if (PyErr_Occurred()) SWIG_fail;
33071 }
33072 resultobj = SWIG_Py_Void();
33073 return resultobj;
33074fail:
33075 return NULL;
33076}
33077
33078
33079SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33080 PyObject *resultobj = 0;
33081 wxEffects *arg1 = (wxEffects *) 0 ;
33082 wxColour *arg2 = 0 ;
33083 wxColour *arg3 = 0 ;
33084 wxColour *arg4 = 0 ;
33085 wxColour *arg5 = 0 ;
33086 wxColour *arg6 = 0 ;
33087 void *argp1 = 0 ;
33088 int res1 = 0 ;
33089 wxColour temp2 ;
33090 wxColour temp3 ;
33091 wxColour temp4 ;
33092 wxColour temp5 ;
33093 wxColour temp6 ;
33094 PyObject * obj0 = 0 ;
33095 PyObject * obj1 = 0 ;
33096 PyObject * obj2 = 0 ;
33097 PyObject * obj3 = 0 ;
33098 PyObject * obj4 = 0 ;
33099 PyObject * obj5 = 0 ;
33100 char * kwnames[] = {
33101 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
33102 };
33103
33104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33106 if (!SWIG_IsOK(res1)) {
33107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
33108 }
33109 arg1 = reinterpret_cast< wxEffects * >(argp1);
33110 {
33111 arg2 = &temp2;
33112 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33113 }
33114 {
33115 arg3 = &temp3;
33116 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
33117 }
33118 {
33119 arg4 = &temp4;
33120 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
33121 }
33122 {
33123 arg5 = &temp5;
33124 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
33125 }
33126 {
33127 arg6 = &temp6;
33128 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
33129 }
33130 {
33131 PyThreadState* __tstate = wxPyBeginAllowThreads();
33132 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
33133 wxPyEndAllowThreads(__tstate);
33134 if (PyErr_Occurred()) SWIG_fail;
33135 }
33136 resultobj = SWIG_Py_Void();
33137 return resultobj;
33138fail:
33139 return NULL;
33140}
33141
33142
33143SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33144 PyObject *resultobj = 0;
33145 wxEffects *arg1 = (wxEffects *) 0 ;
33146 wxDC *arg2 = 0 ;
33147 wxRect *arg3 = 0 ;
33148 int arg4 = (int) 1 ;
33149 void *argp1 = 0 ;
33150 int res1 = 0 ;
33151 void *argp2 = 0 ;
33152 int res2 = 0 ;
33153 wxRect temp3 ;
33154 int val4 ;
33155 int ecode4 = 0 ;
33156 PyObject * obj0 = 0 ;
33157 PyObject * obj1 = 0 ;
33158 PyObject * obj2 = 0 ;
33159 PyObject * obj3 = 0 ;
33160 char * kwnames[] = {
33161 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
33162 };
33163
33164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33166 if (!SWIG_IsOK(res1)) {
33167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
33168 }
33169 arg1 = reinterpret_cast< wxEffects * >(argp1);
33170 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
33171 if (!SWIG_IsOK(res2)) {
33172 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33173 }
33174 if (!argp2) {
33175 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33176 }
33177 arg2 = reinterpret_cast< wxDC * >(argp2);
33178 {
33179 arg3 = &temp3;
33180 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
33181 }
33182 if (obj3) {
33183 ecode4 = SWIG_AsVal_int(obj3, &val4);
33184 if (!SWIG_IsOK(ecode4)) {
33185 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
33186 }
33187 arg4 = static_cast< int >(val4);
33188 }
33189 {
33190 PyThreadState* __tstate = wxPyBeginAllowThreads();
33191 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
33192 wxPyEndAllowThreads(__tstate);
33193 if (PyErr_Occurred()) SWIG_fail;
33194 }
33195 resultobj = SWIG_Py_Void();
33196 return resultobj;
33197fail:
33198 return NULL;
33199}
33200
33201
33202SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33203 PyObject *resultobj = 0;
33204 wxEffects *arg1 = (wxEffects *) 0 ;
33205 wxRect *arg2 = 0 ;
33206 wxDC *arg3 = 0 ;
33207 wxBitmap *arg4 = 0 ;
33208 bool result;
33209 void *argp1 = 0 ;
33210 int res1 = 0 ;
33211 wxRect temp2 ;
33212 void *argp3 = 0 ;
33213 int res3 = 0 ;
33214 void *argp4 = 0 ;
33215 int res4 = 0 ;
33216 PyObject * obj0 = 0 ;
33217 PyObject * obj1 = 0 ;
33218 PyObject * obj2 = 0 ;
33219 PyObject * obj3 = 0 ;
33220 char * kwnames[] = {
33221 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
33222 };
33223
33224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33226 if (!SWIG_IsOK(res1)) {
33227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
33228 }
33229 arg1 = reinterpret_cast< wxEffects * >(argp1);
33230 {
33231 arg2 = &temp2;
33232 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33233 }
33234 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
33235 if (!SWIG_IsOK(res3)) {
33236 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33237 }
33238 if (!argp3) {
33239 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33240 }
33241 arg3 = reinterpret_cast< wxDC * >(argp3);
33242 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
33243 if (!SWIG_IsOK(res4)) {
33244 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33245 }
33246 if (!argp4) {
33247 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33248 }
33249 arg4 = reinterpret_cast< wxBitmap * >(argp4);
33250 {
33251 PyThreadState* __tstate = wxPyBeginAllowThreads();
33252 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
33253 wxPyEndAllowThreads(__tstate);
33254 if (PyErr_Occurred()) SWIG_fail;
33255 }
33256 {
33257 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33258 }
33259 return resultobj;
33260fail:
33261 return NULL;
33262}
33263
33264
33265SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33266 PyObject *obj;
33267 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33268 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
33269 return SWIG_Py_Void();
33270}
33271
33272SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33273 return SWIG_Python_InitShadowInstance(args);
33274}
33275
33276SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33277 PyObject *resultobj = 0;
33278 int arg1 ;
33279 int arg2 ;
33280 bool arg3 ;
33281 wxSplitterRenderParams *result = 0 ;
33282 int val1 ;
33283 int ecode1 = 0 ;
33284 int val2 ;
33285 int ecode2 = 0 ;
33286 bool val3 ;
33287 int ecode3 = 0 ;
33288 PyObject * obj0 = 0 ;
33289 PyObject * obj1 = 0 ;
33290 PyObject * obj2 = 0 ;
33291 char * kwnames[] = {
33292 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
33293 };
33294
33295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33296 ecode1 = SWIG_AsVal_int(obj0, &val1);
33297 if (!SWIG_IsOK(ecode1)) {
33298 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
33299 }
33300 arg1 = static_cast< int >(val1);
33301 ecode2 = SWIG_AsVal_int(obj1, &val2);
33302 if (!SWIG_IsOK(ecode2)) {
33303 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
33304 }
33305 arg2 = static_cast< int >(val2);
33306 ecode3 = SWIG_AsVal_bool(obj2, &val3);
33307 if (!SWIG_IsOK(ecode3)) {
33308 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
33309 }
33310 arg3 = static_cast< bool >(val3);
33311 {
33312 PyThreadState* __tstate = wxPyBeginAllowThreads();
33313 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
33314 wxPyEndAllowThreads(__tstate);
33315 if (PyErr_Occurred()) SWIG_fail;
33316 }
33317 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
33318 return resultobj;
33319fail:
33320 return NULL;
33321}
33322
33323
33324SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33325 PyObject *resultobj = 0;
33326 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33327 void *argp1 = 0 ;
33328 int res1 = 0 ;
33329 PyObject *swig_obj[1] ;
33330
33331 if (!args) SWIG_fail;
33332 swig_obj[0] = args;
33333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
33334 if (!SWIG_IsOK(res1)) {
33335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33336 }
33337 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33338 {
33339 PyThreadState* __tstate = wxPyBeginAllowThreads();
33340 delete arg1;
33341
33342 wxPyEndAllowThreads(__tstate);
33343 if (PyErr_Occurred()) SWIG_fail;
33344 }
33345 resultobj = SWIG_Py_Void();
33346 return resultobj;
33347fail:
33348 return NULL;
33349}
33350
33351
33352SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33353 PyObject *resultobj = 0;
33354 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33355 int result;
33356 void *argp1 = 0 ;
33357 int res1 = 0 ;
33358 PyObject *swig_obj[1] ;
33359
33360 if (!args) SWIG_fail;
33361 swig_obj[0] = args;
33362 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33363 if (!SWIG_IsOK(res1)) {
33364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33365 }
33366 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33367 result = (int)(int) ((arg1)->widthSash);
33368 resultobj = SWIG_From_int(static_cast< int >(result));
33369 return resultobj;
33370fail:
33371 return NULL;
33372}
33373
33374
33375SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33376 PyObject *resultobj = 0;
33377 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33378 int result;
33379 void *argp1 = 0 ;
33380 int res1 = 0 ;
33381 PyObject *swig_obj[1] ;
33382
33383 if (!args) SWIG_fail;
33384 swig_obj[0] = args;
33385 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33386 if (!SWIG_IsOK(res1)) {
33387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33388 }
33389 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33390 result = (int)(int) ((arg1)->border);
33391 resultobj = SWIG_From_int(static_cast< int >(result));
33392 return resultobj;
33393fail:
33394 return NULL;
33395}
33396
33397
33398SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33399 PyObject *resultobj = 0;
33400 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33401 bool result;
33402 void *argp1 = 0 ;
33403 int res1 = 0 ;
33404 PyObject *swig_obj[1] ;
33405
33406 if (!args) SWIG_fail;
33407 swig_obj[0] = args;
33408 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33409 if (!SWIG_IsOK(res1)) {
33410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33411 }
33412 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33413 result = (bool)(bool) ((arg1)->isHotSensitive);
33414 resultobj = SWIG_From_bool(static_cast< bool >(result));
33415 return resultobj;
33416fail:
33417 return NULL;
33418}
33419
33420
33421SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33422 PyObject *obj;
33423 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33424 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
33425 return SWIG_Py_Void();
33426}
33427
33428SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33429 return SWIG_Python_InitShadowInstance(args);
33430}
33431
33d6fd3b
RD
33432SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33433 PyObject *resultobj = 0;
33434 wxHeaderButtonParams *result = 0 ;
33435
33436 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
33437 {
33438 PyThreadState* __tstate = wxPyBeginAllowThreads();
33439 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
33440 wxPyEndAllowThreads(__tstate);
33441 if (PyErr_Occurred()) SWIG_fail;
33442 }
33443 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
33444 return resultobj;
33445fail:
33446 return NULL;
33447}
33448
33449
33450SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33451 PyObject *resultobj = 0;
33452 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33453 void *argp1 = 0 ;
33454 int res1 = 0 ;
33455 PyObject *swig_obj[1] ;
33456
33457 if (!args) SWIG_fail;
33458 swig_obj[0] = args;
33459 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
33460 if (!SWIG_IsOK(res1)) {
33461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33462 }
33463 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33464 {
33465 PyThreadState* __tstate = wxPyBeginAllowThreads();
33466 delete arg1;
33467
33468 wxPyEndAllowThreads(__tstate);
33469 if (PyErr_Occurred()) SWIG_fail;
33470 }
33471 resultobj = SWIG_Py_Void();
33472 return resultobj;
33473fail:
33474 return NULL;
33475}
33476
33477
33478SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33479 PyObject *resultobj = 0;
33480 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33481 wxColour *arg2 = (wxColour *) 0 ;
33482 void *argp1 = 0 ;
33483 int res1 = 0 ;
33484 wxColour temp2 ;
33485 PyObject *swig_obj[2] ;
33486
33487 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
33488 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33489 if (!SWIG_IsOK(res1)) {
33490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33491 }
33492 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33493 {
33494 arg2 = &temp2;
33495 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33496 }
33497 if (arg1) (arg1)->m_arrowColour = *arg2;
33498
33499 resultobj = SWIG_Py_Void();
33500 return resultobj;
33501fail:
33502 return NULL;
33503}
33504
33505
33506SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33507 PyObject *resultobj = 0;
33508 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33509 wxColour *result = 0 ;
33510 void *argp1 = 0 ;
33511 int res1 = 0 ;
33512 PyObject *swig_obj[1] ;
33513
33514 if (!args) SWIG_fail;
33515 swig_obj[0] = args;
33516 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33517 if (!SWIG_IsOK(res1)) {
33518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33519 }
33520 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33521 result = (wxColour *)& ((arg1)->m_arrowColour);
33522 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33523 return resultobj;
33524fail:
33525 return NULL;
33526}
33527
33528
33529SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33530 PyObject *resultobj = 0;
33531 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33532 wxColour *arg2 = (wxColour *) 0 ;
33533 void *argp1 = 0 ;
33534 int res1 = 0 ;
33535 wxColour temp2 ;
33536 PyObject *swig_obj[2] ;
33537
33538 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
33539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33540 if (!SWIG_IsOK(res1)) {
33541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33542 }
33543 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33544 {
33545 arg2 = &temp2;
33546 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33547 }
33548 if (arg1) (arg1)->m_selectionColour = *arg2;
33549
33550 resultobj = SWIG_Py_Void();
33551 return resultobj;
33552fail:
33553 return NULL;
33554}
33555
33556
33557SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33558 PyObject *resultobj = 0;
33559 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33560 wxColour *result = 0 ;
33561 void *argp1 = 0 ;
33562 int res1 = 0 ;
33563 PyObject *swig_obj[1] ;
33564
33565 if (!args) SWIG_fail;
33566 swig_obj[0] = args;
33567 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33568 if (!SWIG_IsOK(res1)) {
33569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33570 }
33571 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33572 result = (wxColour *)& ((arg1)->m_selectionColour);
33573 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33574 return resultobj;
33575fail:
33576 return NULL;
33577}
33578
33579
33580SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33581 PyObject *resultobj = 0;
33582 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33583 wxString *arg2 = (wxString *) 0 ;
33584 void *argp1 = 0 ;
33585 int res1 = 0 ;
33586 bool temp2 = false ;
33587 PyObject *swig_obj[2] ;
33588
33589 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
33590 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33591 if (!SWIG_IsOK(res1)) {
33592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33593 }
33594 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33595 {
33596 arg2 = wxString_in_helper(swig_obj[1]);
33597 if (arg2 == NULL) SWIG_fail;
33598 temp2 = true;
33599 }
33600 if (arg1) (arg1)->m_labelText = *arg2;
33601
33602 resultobj = SWIG_Py_Void();
33603 {
33604 if (temp2)
33605 delete arg2;
33606 }
33607 return resultobj;
33608fail:
33609 {
33610 if (temp2)
33611 delete arg2;
33612 }
33613 return NULL;
33614}
33615
33616
33617SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33618 PyObject *resultobj = 0;
33619 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33620 wxString *result = 0 ;
33621 void *argp1 = 0 ;
33622 int res1 = 0 ;
33623 PyObject *swig_obj[1] ;
33624
33625 if (!args) SWIG_fail;
33626 swig_obj[0] = args;
33627 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33628 if (!SWIG_IsOK(res1)) {
33629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33630 }
33631 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33632 result = (wxString *)& ((arg1)->m_labelText);
33633 {
33634#if wxUSE_UNICODE
33635 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33636#else
33637 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33638#endif
33639 }
33640 return resultobj;
33641fail:
33642 return NULL;
33643}
33644
33645
33646SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33647 PyObject *resultobj = 0;
33648 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33649 wxFont *arg2 = (wxFont *) 0 ;
33650 void *argp1 = 0 ;
33651 int res1 = 0 ;
33652 void *argp2 = 0 ;
33653 int res2 = 0 ;
33654 PyObject *swig_obj[2] ;
33655
33656 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
33657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33658 if (!SWIG_IsOK(res1)) {
33659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33660 }
33661 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33662 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
33663 if (!SWIG_IsOK(res2)) {
33664 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
33665 }
33666 arg2 = reinterpret_cast< wxFont * >(argp2);
33667 if (arg1) (arg1)->m_labelFont = *arg2;
33668
33669 resultobj = SWIG_Py_Void();
33670 return resultobj;
33671fail:
33672 return NULL;
33673}
33674
33675
33676SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33677 PyObject *resultobj = 0;
33678 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33679 wxFont *result = 0 ;
33680 void *argp1 = 0 ;
33681 int res1 = 0 ;
33682 PyObject *swig_obj[1] ;
33683
33684 if (!args) SWIG_fail;
33685 swig_obj[0] = args;
33686 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33687 if (!SWIG_IsOK(res1)) {
33688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33689 }
33690 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33691 result = (wxFont *)& ((arg1)->m_labelFont);
33692 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
33693 return resultobj;
33694fail:
33695 return NULL;
33696}
33697
33698
33699SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33700 PyObject *resultobj = 0;
33701 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33702 wxColour *arg2 = (wxColour *) 0 ;
33703 void *argp1 = 0 ;
33704 int res1 = 0 ;
33705 wxColour temp2 ;
33706 PyObject *swig_obj[2] ;
33707
33708 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
33709 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33710 if (!SWIG_IsOK(res1)) {
33711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33712 }
33713 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33714 {
33715 arg2 = &temp2;
33716 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33717 }
33718 if (arg1) (arg1)->m_labelColour = *arg2;
33719
33720 resultobj = SWIG_Py_Void();
33721 return resultobj;
33722fail:
33723 return NULL;
33724}
33725
33726
33727SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33728 PyObject *resultobj = 0;
33729 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33730 wxColour *result = 0 ;
33731 void *argp1 = 0 ;
33732 int res1 = 0 ;
33733 PyObject *swig_obj[1] ;
33734
33735 if (!args) SWIG_fail;
33736 swig_obj[0] = args;
33737 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33738 if (!SWIG_IsOK(res1)) {
33739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33740 }
33741 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33742 result = (wxColour *)& ((arg1)->m_labelColour);
33743 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33744 return resultobj;
33745fail:
33746 return NULL;
33747}
33748
33749
33750SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33751 PyObject *resultobj = 0;
33752 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33753 wxBitmap *arg2 = (wxBitmap *) 0 ;
33754 void *argp1 = 0 ;
33755 int res1 = 0 ;
33756 void *argp2 = 0 ;
33757 int res2 = 0 ;
33758 PyObject *swig_obj[2] ;
33759
33760 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
33761 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33762 if (!SWIG_IsOK(res1)) {
33763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33764 }
33765 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33766 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
33767 if (!SWIG_IsOK(res2)) {
33768 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
33769 }
33770 arg2 = reinterpret_cast< wxBitmap * >(argp2);
33771 if (arg1) (arg1)->m_labelBitmap = *arg2;
33772
33773 resultobj = SWIG_Py_Void();
33774 return resultobj;
33775fail:
33776 return NULL;
33777}
33778
33779
33780SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33781 PyObject *resultobj = 0;
33782 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33783 wxBitmap *result = 0 ;
33784 void *argp1 = 0 ;
33785 int res1 = 0 ;
33786 PyObject *swig_obj[1] ;
33787
33788 if (!args) SWIG_fail;
33789 swig_obj[0] = args;
33790 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33791 if (!SWIG_IsOK(res1)) {
33792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33793 }
33794 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33795 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
33796 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
33797 return resultobj;
33798fail:
33799 return NULL;
33800}
33801
33802
33803SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33804 PyObject *resultobj = 0;
33805 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33806 int arg2 ;
33807 void *argp1 = 0 ;
33808 int res1 = 0 ;
33809 int val2 ;
33810 int ecode2 = 0 ;
33811 PyObject *swig_obj[2] ;
33812
33813 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
33814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33815 if (!SWIG_IsOK(res1)) {
33816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33817 }
33818 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33819 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
33820 if (!SWIG_IsOK(ecode2)) {
33821 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
33822 }
33823 arg2 = static_cast< int >(val2);
33824 if (arg1) (arg1)->m_labelAlignment = arg2;
33825
33826 resultobj = SWIG_Py_Void();
33827 return resultobj;
33828fail:
33829 return NULL;
33830}
33831
33832
33833SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33834 PyObject *resultobj = 0;
33835 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33836 int result;
33837 void *argp1 = 0 ;
33838 int res1 = 0 ;
33839 PyObject *swig_obj[1] ;
33840
33841 if (!args) SWIG_fail;
33842 swig_obj[0] = args;
33843 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33844 if (!SWIG_IsOK(res1)) {
33845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33846 }
33847 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33848 result = (int) ((arg1)->m_labelAlignment);
33849 resultobj = SWIG_From_int(static_cast< int >(result));
33850 return resultobj;
33851fail:
33852 return NULL;
33853}
33854
33855
33856SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33857 PyObject *obj;
33858 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33859 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
33860 return SWIG_Py_Void();
33861}
33862
33863SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33864 return SWIG_Python_InitShadowInstance(args);
33865}
33866
1bd55598
RD
33867SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33868 PyObject *resultobj = 0;
33869 int arg1 ;
33870 int arg2 ;
33871 wxRendererVersion *result = 0 ;
33872 int val1 ;
33873 int ecode1 = 0 ;
33874 int val2 ;
33875 int ecode2 = 0 ;
33876 PyObject * obj0 = 0 ;
33877 PyObject * obj1 = 0 ;
33878 char * kwnames[] = {
33879 (char *) "version_",(char *) "age_", NULL
33880 };
33881
33882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
33883 ecode1 = SWIG_AsVal_int(obj0, &val1);
33884 if (!SWIG_IsOK(ecode1)) {
33885 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
33886 }
33887 arg1 = static_cast< int >(val1);
33888 ecode2 = SWIG_AsVal_int(obj1, &val2);
33889 if (!SWIG_IsOK(ecode2)) {
33890 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
33891 }
33892 arg2 = static_cast< int >(val2);
33893 {
33894 PyThreadState* __tstate = wxPyBeginAllowThreads();
33895 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
33896 wxPyEndAllowThreads(__tstate);
33897 if (PyErr_Occurred()) SWIG_fail;
33898 }
33899 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
33900 return resultobj;
33901fail:
33902 return NULL;
33903}
33904
33905
33906SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33907 PyObject *resultobj = 0;
33908 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
33909 void *argp1 = 0 ;
33910 int res1 = 0 ;
33911 PyObject *swig_obj[1] ;
33912
33913 if (!args) SWIG_fail;
33914 swig_obj[0] = args;
33915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
33916 if (!SWIG_IsOK(res1)) {
33917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
33918 }
33919 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33920 {
33921 PyThreadState* __tstate = wxPyBeginAllowThreads();
33922 delete arg1;
33923
33924 wxPyEndAllowThreads(__tstate);
33925 if (PyErr_Occurred()) SWIG_fail;
33926 }
33927 resultobj = SWIG_Py_Void();
33928 return resultobj;
33929fail:
33930 return NULL;
33931}
33932
33933
33934SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33935 PyObject *resultobj = 0;
33936 wxRendererVersion *arg1 = 0 ;
33937 bool result;
33938 void *argp1 = 0 ;
33939 int res1 = 0 ;
33940 PyObject * obj0 = 0 ;
33941 char * kwnames[] = {
33942 (char *) "ver", NULL
33943 };
33944
33945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
33946 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
33947 if (!SWIG_IsOK(res1)) {
33948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
33949 }
33950 if (!argp1) {
33951 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
33952 }
33953 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33954 {
33955 PyThreadState* __tstate = wxPyBeginAllowThreads();
33956 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
33957 wxPyEndAllowThreads(__tstate);
33958 if (PyErr_Occurred()) SWIG_fail;
33959 }
33960 {
33961 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33962 }
33963 return resultobj;
33964fail:
33965 return NULL;
33966}
33967
33968
33969SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33970 PyObject *resultobj = 0;
33971 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
33972 int result;
33973 void *argp1 = 0 ;
33974 int res1 = 0 ;
33975 PyObject *swig_obj[1] ;
33976
33977 if (!args) SWIG_fail;
33978 swig_obj[0] = args;
33979 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
33980 if (!SWIG_IsOK(res1)) {
33981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
33982 }
33983 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33984 result = (int)(int) ((arg1)->version);
33985 resultobj = SWIG_From_int(static_cast< int >(result));
33986 return resultobj;
33987fail:
33988 return NULL;
33989}
33990
33991
33992SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33993 PyObject *resultobj = 0;
33994 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
33995 int result;
33996 void *argp1 = 0 ;
33997 int res1 = 0 ;
33998 PyObject *swig_obj[1] ;
33999
34000 if (!args) SWIG_fail;
34001 swig_obj[0] = args;
34002 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
34003 if (!SWIG_IsOK(res1)) {
34004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34005 }
34006 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34007 result = (int)(int) ((arg1)->age);
34008 resultobj = SWIG_From_int(static_cast< int >(result));
34009 return resultobj;
34010fail:
34011 return NULL;
34012}
34013
34014
34015SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34016 PyObject *obj;
34017 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34018 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
34019 return SWIG_Py_Void();
34020}
34021
34022SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34023 return SWIG_Python_InitShadowInstance(args);
34024}
34025
34026SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34027 PyObject *resultobj = 0;
34028 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34029 wxWindow *arg2 = (wxWindow *) 0 ;
34030 wxDC *arg3 = 0 ;
34031 wxRect *arg4 = 0 ;
34032 int arg5 = (int) 0 ;
33d6fd3b
RD
34033 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34034 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
1bd55598
RD
34035 void *argp1 = 0 ;
34036 int res1 = 0 ;
34037 void *argp2 = 0 ;
34038 int res2 = 0 ;
34039 void *argp3 = 0 ;
34040 int res3 = 0 ;
34041 wxRect temp4 ;
34042 int val5 ;
34043 int ecode5 = 0 ;
33d6fd3b
RD
34044 int val6 ;
34045 int ecode6 = 0 ;
34046 void *argp7 = 0 ;
34047 int res7 = 0 ;
1bd55598
RD
34048 PyObject * obj0 = 0 ;
34049 PyObject * obj1 = 0 ;
34050 PyObject * obj2 = 0 ;
34051 PyObject * obj3 = 0 ;
34052 PyObject * obj4 = 0 ;
33d6fd3b
RD
34053 PyObject * obj5 = 0 ;
34054 PyObject * obj6 = 0 ;
1bd55598 34055 char * kwnames[] = {
33d6fd3b 34056 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
1bd55598
RD
34057 };
34058
33d6fd3b 34059 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
1bd55598
RD
34060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34061 if (!SWIG_IsOK(res1)) {
34062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34063 }
34064 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34065 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34066 if (!SWIG_IsOK(res2)) {
34067 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34068 }
34069 arg2 = reinterpret_cast< wxWindow * >(argp2);
34070 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34071 if (!SWIG_IsOK(res3)) {
34072 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34073 }
34074 if (!argp3) {
34075 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34076 }
34077 arg3 = reinterpret_cast< wxDC * >(argp3);
34078 {
34079 arg4 = &temp4;
34080 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34081 }
34082 if (obj4) {
34083 ecode5 = SWIG_AsVal_int(obj4, &val5);
34084 if (!SWIG_IsOK(ecode5)) {
34085 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
34086 }
34087 arg5 = static_cast< int >(val5);
34088 }
33d6fd3b
RD
34089 if (obj5) {
34090 ecode6 = SWIG_AsVal_int(obj5, &val6);
34091 if (!SWIG_IsOK(ecode6)) {
34092 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34093 }
34094 arg6 = static_cast< wxHeaderSortIconType >(val6);
34095 }
34096 if (obj6) {
34097 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34098 if (!SWIG_IsOK(res7)) {
34099 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34100 }
34101 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34102 }
34103 {
34104 PyThreadState* __tstate = wxPyBeginAllowThreads();
34105 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
34106 wxPyEndAllowThreads(__tstate);
34107 if (PyErr_Occurred()) SWIG_fail;
34108 }
34109 resultobj = SWIG_Py_Void();
34110 return resultobj;
34111fail:
34112 return NULL;
34113}
34114
34115
34116SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34117 PyObject *resultobj = 0;
34118 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34119 wxWindow *arg2 = (wxWindow *) 0 ;
34120 wxDC *arg3 = 0 ;
34121 wxRect *arg4 = 0 ;
34122 int arg5 = (int) 0 ;
34123 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34124 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
34125 void *argp1 = 0 ;
34126 int res1 = 0 ;
34127 void *argp2 = 0 ;
34128 int res2 = 0 ;
34129 void *argp3 = 0 ;
34130 int res3 = 0 ;
34131 wxRect temp4 ;
34132 int val5 ;
34133 int ecode5 = 0 ;
34134 int val6 ;
34135 int ecode6 = 0 ;
34136 void *argp7 = 0 ;
34137 int res7 = 0 ;
34138 PyObject * obj0 = 0 ;
34139 PyObject * obj1 = 0 ;
34140 PyObject * obj2 = 0 ;
34141 PyObject * obj3 = 0 ;
34142 PyObject * obj4 = 0 ;
34143 PyObject * obj5 = 0 ;
34144 PyObject * obj6 = 0 ;
34145 char * kwnames[] = {
34146 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
34147 };
34148
34149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34151 if (!SWIG_IsOK(res1)) {
34152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34153 }
34154 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34155 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34156 if (!SWIG_IsOK(res2)) {
34157 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
34158 }
34159 arg2 = reinterpret_cast< wxWindow * >(argp2);
34160 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34161 if (!SWIG_IsOK(res3)) {
34162 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34163 }
34164 if (!argp3) {
34165 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34166 }
34167 arg3 = reinterpret_cast< wxDC * >(argp3);
34168 {
34169 arg4 = &temp4;
34170 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34171 }
34172 if (obj4) {
34173 ecode5 = SWIG_AsVal_int(obj4, &val5);
34174 if (!SWIG_IsOK(ecode5)) {
34175 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
34176 }
34177 arg5 = static_cast< int >(val5);
34178 }
34179 if (obj5) {
34180 ecode6 = SWIG_AsVal_int(obj5, &val6);
34181 if (!SWIG_IsOK(ecode6)) {
34182 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34183 }
34184 arg6 = static_cast< wxHeaderSortIconType >(val6);
34185 }
34186 if (obj6) {
34187 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34188 if (!SWIG_IsOK(res7)) {
34189 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34190 }
34191 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34192 }
1bd55598
RD
34193 {
34194 PyThreadState* __tstate = wxPyBeginAllowThreads();
33d6fd3b 34195 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
1bd55598
RD
34196 wxPyEndAllowThreads(__tstate);
34197 if (PyErr_Occurred()) SWIG_fail;
34198 }
34199 resultobj = SWIG_Py_Void();
34200 return resultobj;
34201fail:
34202 return NULL;
34203}
34204
34205
33d6fd3b
RD
34206SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34207 PyObject *resultobj = 0;
34208 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34209 wxWindow *arg2 = (wxWindow *) 0 ;
34210 int result;
34211 void *argp1 = 0 ;
34212 int res1 = 0 ;
34213 void *argp2 = 0 ;
34214 int res2 = 0 ;
34215 PyObject * obj0 = 0 ;
34216 PyObject * obj1 = 0 ;
34217 char * kwnames[] = {
34218 (char *) "self",(char *) "win", NULL
34219 };
34220
34221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
34222 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34223 if (!SWIG_IsOK(res1)) {
34224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34225 }
34226 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34227 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34228 if (!SWIG_IsOK(res2)) {
34229 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
34230 }
34231 arg2 = reinterpret_cast< wxWindow * >(argp2);
34232 {
34233 PyThreadState* __tstate = wxPyBeginAllowThreads();
34234 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
34235 wxPyEndAllowThreads(__tstate);
34236 if (PyErr_Occurred()) SWIG_fail;
34237 }
34238 resultobj = SWIG_From_int(static_cast< int >(result));
34239 return resultobj;
34240fail:
34241 return NULL;
34242}
34243
34244
1bd55598
RD
34245SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34246 PyObject *resultobj = 0;
34247 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34248 wxWindow *arg2 = (wxWindow *) 0 ;
34249 wxDC *arg3 = 0 ;
34250 wxRect *arg4 = 0 ;
34251 int arg5 = (int) 0 ;
34252 void *argp1 = 0 ;
34253 int res1 = 0 ;
34254 void *argp2 = 0 ;
34255 int res2 = 0 ;
34256 void *argp3 = 0 ;
34257 int res3 = 0 ;
34258 wxRect temp4 ;
34259 int val5 ;
34260 int ecode5 = 0 ;
34261 PyObject * obj0 = 0 ;
34262 PyObject * obj1 = 0 ;
34263 PyObject * obj2 = 0 ;
34264 PyObject * obj3 = 0 ;
34265 PyObject * obj4 = 0 ;
34266 char * kwnames[] = {
34267 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34268 };
34269
34270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34272 if (!SWIG_IsOK(res1)) {
34273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34274 }
34275 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34276 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34277 if (!SWIG_IsOK(res2)) {
34278 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34279 }
34280 arg2 = reinterpret_cast< wxWindow * >(argp2);
34281 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34282 if (!SWIG_IsOK(res3)) {
34283 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34284 }
34285 if (!argp3) {
34286 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34287 }
34288 arg3 = reinterpret_cast< wxDC * >(argp3);
34289 {
34290 arg4 = &temp4;
34291 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34292 }
34293 if (obj4) {
34294 ecode5 = SWIG_AsVal_int(obj4, &val5);
34295 if (!SWIG_IsOK(ecode5)) {
34296 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
34297 }
34298 arg5 = static_cast< int >(val5);
34299 }
34300 {
34301 PyThreadState* __tstate = wxPyBeginAllowThreads();
34302 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34303 wxPyEndAllowThreads(__tstate);
34304 if (PyErr_Occurred()) SWIG_fail;
34305 }
34306 resultobj = SWIG_Py_Void();
34307 return resultobj;
34308fail:
34309 return NULL;
34310}
34311
34312
34313SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34314 PyObject *resultobj = 0;
34315 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34316 wxWindow *arg2 = (wxWindow *) 0 ;
34317 wxDC *arg3 = 0 ;
34318 wxRect *arg4 = 0 ;
34319 int arg5 = (int) 0 ;
34320 void *argp1 = 0 ;
34321 int res1 = 0 ;
34322 void *argp2 = 0 ;
34323 int res2 = 0 ;
34324 void *argp3 = 0 ;
34325 int res3 = 0 ;
34326 wxRect temp4 ;
34327 int val5 ;
34328 int ecode5 = 0 ;
34329 PyObject * obj0 = 0 ;
34330 PyObject * obj1 = 0 ;
34331 PyObject * obj2 = 0 ;
34332 PyObject * obj3 = 0 ;
34333 PyObject * obj4 = 0 ;
34334 char * kwnames[] = {
34335 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34336 };
34337
34338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34340 if (!SWIG_IsOK(res1)) {
34341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34342 }
34343 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34344 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34345 if (!SWIG_IsOK(res2)) {
34346 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
34347 }
34348 arg2 = reinterpret_cast< wxWindow * >(argp2);
34349 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34350 if (!SWIG_IsOK(res3)) {
34351 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34352 }
34353 if (!argp3) {
34354 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34355 }
34356 arg3 = reinterpret_cast< wxDC * >(argp3);
34357 {
34358 arg4 = &temp4;
34359 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34360 }
34361 if (obj4) {
34362 ecode5 = SWIG_AsVal_int(obj4, &val5);
34363 if (!SWIG_IsOK(ecode5)) {
34364 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
34365 }
34366 arg5 = static_cast< int >(val5);
34367 }
34368 {
34369 PyThreadState* __tstate = wxPyBeginAllowThreads();
34370 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
34371 wxPyEndAllowThreads(__tstate);
34372 if (PyErr_Occurred()) SWIG_fail;
34373 }
34374 resultobj = SWIG_Py_Void();
34375 return resultobj;
34376fail:
34377 return NULL;
34378}
34379
34380
34381SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34382 PyObject *resultobj = 0;
34383 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34384 wxWindow *arg2 = (wxWindow *) 0 ;
34385 wxDC *arg3 = 0 ;
34386 wxSize *arg4 = 0 ;
34387 int arg5 ;
34388 wxOrientation arg6 ;
34389 int arg7 = (int) 0 ;
34390 void *argp1 = 0 ;
34391 int res1 = 0 ;
34392 void *argp2 = 0 ;
34393 int res2 = 0 ;
34394 void *argp3 = 0 ;
34395 int res3 = 0 ;
34396 wxSize temp4 ;
34397 int val5 ;
34398 int ecode5 = 0 ;
34399 int val6 ;
34400 int ecode6 = 0 ;
34401 int val7 ;
34402 int ecode7 = 0 ;
34403 PyObject * obj0 = 0 ;
34404 PyObject * obj1 = 0 ;
34405 PyObject * obj2 = 0 ;
34406 PyObject * obj3 = 0 ;
34407 PyObject * obj4 = 0 ;
34408 PyObject * obj5 = 0 ;
34409 PyObject * obj6 = 0 ;
34410 char * kwnames[] = {
34411 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
34412 };
34413
34414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34416 if (!SWIG_IsOK(res1)) {
34417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34418 }
34419 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34420 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34421 if (!SWIG_IsOK(res2)) {
34422 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
34423 }
34424 arg2 = reinterpret_cast< wxWindow * >(argp2);
34425 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34426 if (!SWIG_IsOK(res3)) {
34427 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34428 }
34429 if (!argp3) {
34430 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34431 }
34432 arg3 = reinterpret_cast< wxDC * >(argp3);
34433 {
34434 arg4 = &temp4;
34435 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
34436 }
34437 ecode5 = SWIG_AsVal_int(obj4, &val5);
34438 if (!SWIG_IsOK(ecode5)) {
34439 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
34440 }
34441 arg5 = static_cast< int >(val5);
34442 ecode6 = SWIG_AsVal_int(obj5, &val6);
34443 if (!SWIG_IsOK(ecode6)) {
34444 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
34445 }
34446 arg6 = static_cast< wxOrientation >(val6);
34447 if (obj6) {
34448 ecode7 = SWIG_AsVal_int(obj6, &val7);
34449 if (!SWIG_IsOK(ecode7)) {
34450 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
34451 }
34452 arg7 = static_cast< int >(val7);
34453 }
34454 {
34455 PyThreadState* __tstate = wxPyBeginAllowThreads();
34456 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
34457 wxPyEndAllowThreads(__tstate);
34458 if (PyErr_Occurred()) SWIG_fail;
34459 }
34460 resultobj = SWIG_Py_Void();
34461 return resultobj;
34462fail:
34463 return NULL;
34464}
34465
34466
34467SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34468 PyObject *resultobj = 0;
34469 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34470 wxWindow *arg2 = (wxWindow *) 0 ;
34471 wxDC *arg3 = 0 ;
34472 wxRect *arg4 = 0 ;
34473 int arg5 = (int) 0 ;
34474 void *argp1 = 0 ;
34475 int res1 = 0 ;
34476 void *argp2 = 0 ;
34477 int res2 = 0 ;
34478 void *argp3 = 0 ;
34479 int res3 = 0 ;
34480 wxRect temp4 ;
34481 int val5 ;
34482 int ecode5 = 0 ;
34483 PyObject * obj0 = 0 ;
34484 PyObject * obj1 = 0 ;
34485 PyObject * obj2 = 0 ;
34486 PyObject * obj3 = 0 ;
34487 PyObject * obj4 = 0 ;
34488 char * kwnames[] = {
34489 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34490 };
34491
34492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34494 if (!SWIG_IsOK(res1)) {
34495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34496 }
34497 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34498 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34499 if (!SWIG_IsOK(res2)) {
34500 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34501 }
34502 arg2 = reinterpret_cast< wxWindow * >(argp2);
34503 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34504 if (!SWIG_IsOK(res3)) {
34505 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34506 }
34507 if (!argp3) {
34508 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34509 }
34510 arg3 = reinterpret_cast< wxDC * >(argp3);
34511 {
34512 arg4 = &temp4;
34513 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34514 }
34515 if (obj4) {
34516 ecode5 = SWIG_AsVal_int(obj4, &val5);
34517 if (!SWIG_IsOK(ecode5)) {
34518 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
34519 }
34520 arg5 = static_cast< int >(val5);
34521 }
34522 {
34523 PyThreadState* __tstate = wxPyBeginAllowThreads();
34524 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34525 wxPyEndAllowThreads(__tstate);
34526 if (PyErr_Occurred()) SWIG_fail;
34527 }
34528 resultobj = SWIG_Py_Void();
34529 return resultobj;
34530fail:
34531 return NULL;
34532}
34533
34534
34535SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34536 PyObject *resultobj = 0;
34537 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34538 wxWindow *arg2 = (wxWindow *) 0 ;
34539 wxDC *arg3 = 0 ;
34540 wxRect *arg4 = 0 ;
34541 int arg5 = (int) 0 ;
34542 void *argp1 = 0 ;
34543 int res1 = 0 ;
34544 void *argp2 = 0 ;
34545 int res2 = 0 ;
34546 void *argp3 = 0 ;
34547 int res3 = 0 ;
34548 wxRect temp4 ;
34549 int val5 ;
34550 int ecode5 = 0 ;
34551 PyObject * obj0 = 0 ;
34552 PyObject * obj1 = 0 ;
34553 PyObject * obj2 = 0 ;
34554 PyObject * obj3 = 0 ;
34555 PyObject * obj4 = 0 ;
34556 char * kwnames[] = {
34557 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34558 };
34559
34560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34562 if (!SWIG_IsOK(res1)) {
34563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34564 }
34565 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34566 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34567 if (!SWIG_IsOK(res2)) {
34568 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
34569 }
34570 arg2 = reinterpret_cast< wxWindow * >(argp2);
34571 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34572 if (!SWIG_IsOK(res3)) {
34573 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34574 }
34575 if (!argp3) {
34576 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34577 }
34578 arg3 = reinterpret_cast< wxDC * >(argp3);
34579 {
34580 arg4 = &temp4;
34581 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34582 }
34583 if (obj4) {
34584 ecode5 = SWIG_AsVal_int(obj4, &val5);
34585 if (!SWIG_IsOK(ecode5)) {
34586 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
34587 }
34588 arg5 = static_cast< int >(val5);
34589 }
34590 {
34591 PyThreadState* __tstate = wxPyBeginAllowThreads();
34592 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
34593 wxPyEndAllowThreads(__tstate);
34594 if (PyErr_Occurred()) SWIG_fail;
34595 }
34596 resultobj = SWIG_Py_Void();
34597 return resultobj;
34598fail:
34599 return NULL;
34600}
34601
34602
2131d850 34603SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
da91cb0f
RD
34604 PyObject *resultobj = 0;
34605 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34606 wxWindow *arg2 = (wxWindow *) 0 ;
34607 wxDC *arg3 = 0 ;
34608 wxRect *arg4 = 0 ;
34609 int arg5 = (int) 0 ;
34610 void *argp1 = 0 ;
34611 int res1 = 0 ;
34612 void *argp2 = 0 ;
34613 int res2 = 0 ;
34614 void *argp3 = 0 ;
34615 int res3 = 0 ;
34616 wxRect temp4 ;
34617 int val5 ;
34618 int ecode5 = 0 ;
34619 PyObject * obj0 = 0 ;
34620 PyObject * obj1 = 0 ;
34621 PyObject * obj2 = 0 ;
34622 PyObject * obj3 = 0 ;
34623 PyObject * obj4 = 0 ;
34624 char * kwnames[] = {
34625 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34626 };
34627
2131d850 34628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
da91cb0f
RD
34629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34630 if (!SWIG_IsOK(res1)) {
2131d850 34631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
da91cb0f
RD
34632 }
34633 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34634 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34635 if (!SWIG_IsOK(res2)) {
2131d850 34636 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
da91cb0f
RD
34637 }
34638 arg2 = reinterpret_cast< wxWindow * >(argp2);
34639 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34640 if (!SWIG_IsOK(res3)) {
2131d850 34641 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
da91cb0f
RD
34642 }
34643 if (!argp3) {
2131d850 34644 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
da91cb0f
RD
34645 }
34646 arg3 = reinterpret_cast< wxDC * >(argp3);
34647 {
34648 arg4 = &temp4;
34649 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34650 }
34651 if (obj4) {
34652 ecode5 = SWIG_AsVal_int(obj4, &val5);
34653 if (!SWIG_IsOK(ecode5)) {
2131d850 34654 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
da91cb0f
RD
34655 }
34656 arg5 = static_cast< int >(val5);
34657 }
34658 {
34659 PyThreadState* __tstate = wxPyBeginAllowThreads();
2131d850
RD
34660 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
34661 wxPyEndAllowThreads(__tstate);
34662 if (PyErr_Occurred()) SWIG_fail;
34663 }
34664 resultobj = SWIG_Py_Void();
34665 return resultobj;
34666fail:
34667 return NULL;
34668}
34669
34670
34671SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34672 PyObject *resultobj = 0;
34673 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34674 wxWindow *arg2 = (wxWindow *) 0 ;
34675 wxDC *arg3 = 0 ;
34676 wxRect *arg4 = 0 ;
34677 int arg5 = (int) 0 ;
34678 void *argp1 = 0 ;
34679 int res1 = 0 ;
34680 void *argp2 = 0 ;
34681 int res2 = 0 ;
34682 void *argp3 = 0 ;
34683 int res3 = 0 ;
34684 wxRect temp4 ;
34685 int val5 ;
34686 int ecode5 = 0 ;
34687 PyObject * obj0 = 0 ;
34688 PyObject * obj1 = 0 ;
34689 PyObject * obj2 = 0 ;
34690 PyObject * obj3 = 0 ;
34691 PyObject * obj4 = 0 ;
34692 char * kwnames[] = {
34693 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34694 };
34695
34696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34698 if (!SWIG_IsOK(res1)) {
34699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34700 }
34701 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34702 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34703 if (!SWIG_IsOK(res2)) {
34704 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34705 }
34706 arg2 = reinterpret_cast< wxWindow * >(argp2);
34707 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34708 if (!SWIG_IsOK(res3)) {
34709 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
34710 }
34711 if (!argp3) {
34712 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
34713 }
34714 arg3 = reinterpret_cast< wxDC * >(argp3);
34715 {
34716 arg4 = &temp4;
34717 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34718 }
34719 if (obj4) {
34720 ecode5 = SWIG_AsVal_int(obj4, &val5);
34721 if (!SWIG_IsOK(ecode5)) {
34722 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
34723 }
34724 arg5 = static_cast< int >(val5);
34725 }
34726 {
34727 PyThreadState* __tstate = wxPyBeginAllowThreads();
34728 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34729 wxPyEndAllowThreads(__tstate);
34730 if (PyErr_Occurred()) SWIG_fail;
34731 }
34732 resultobj = SWIG_Py_Void();
34733 return resultobj;
34734fail:
34735 return NULL;
34736}
34737
34738
34739SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34740 PyObject *resultobj = 0;
34741 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34742 wxWindow *arg2 = (wxWindow *) 0 ;
34743 wxDC *arg3 = 0 ;
34744 wxRect *arg4 = 0 ;
34745 int arg5 = (int) 0 ;
34746 void *argp1 = 0 ;
34747 int res1 = 0 ;
34748 void *argp2 = 0 ;
34749 int res2 = 0 ;
34750 void *argp3 = 0 ;
34751 int res3 = 0 ;
34752 wxRect temp4 ;
34753 int val5 ;
34754 int ecode5 = 0 ;
34755 PyObject * obj0 = 0 ;
34756 PyObject * obj1 = 0 ;
34757 PyObject * obj2 = 0 ;
34758 PyObject * obj3 = 0 ;
34759 PyObject * obj4 = 0 ;
34760 char * kwnames[] = {
34761 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34762 };
34763
34764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34766 if (!SWIG_IsOK(res1)) {
34767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34768 }
34769 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34770 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34771 if (!SWIG_IsOK(res2)) {
34772 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
34773 }
34774 arg2 = reinterpret_cast< wxWindow * >(argp2);
34775 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34776 if (!SWIG_IsOK(res3)) {
34777 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
34778 }
34779 if (!argp3) {
34780 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
34781 }
34782 arg3 = reinterpret_cast< wxDC * >(argp3);
34783 {
34784 arg4 = &temp4;
34785 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34786 }
34787 if (obj4) {
34788 ecode5 = SWIG_AsVal_int(obj4, &val5);
34789 if (!SWIG_IsOK(ecode5)) {
34790 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
34791 }
34792 arg5 = static_cast< int >(val5);
34793 }
34794 {
34795 PyThreadState* __tstate = wxPyBeginAllowThreads();
34796 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
da91cb0f
RD
34797 wxPyEndAllowThreads(__tstate);
34798 if (PyErr_Occurred()) SWIG_fail;
34799 }
34800 resultobj = SWIG_Py_Void();
34801 return resultobj;
34802fail:
34803 return NULL;
34804}
34805
34806
1bd55598
RD
34807SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34808 PyObject *resultobj = 0;
34809 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34810 wxWindow *arg2 = (wxWindow *) 0 ;
34811 SwigValueWrapper<wxSplitterRenderParams > result;
34812 void *argp1 = 0 ;
34813 int res1 = 0 ;
34814 void *argp2 = 0 ;
34815 int res2 = 0 ;
34816 PyObject * obj0 = 0 ;
34817 PyObject * obj1 = 0 ;
34818 char * kwnames[] = {
34819 (char *) "self",(char *) "win", NULL
34820 };
34821
34822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
34823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34824 if (!SWIG_IsOK(res1)) {
34825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34826 }
34827 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34828 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34829 if (!SWIG_IsOK(res2)) {
34830 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
34831 }
34832 arg2 = reinterpret_cast< wxWindow * >(argp2);
34833 {
34834 PyThreadState* __tstate = wxPyBeginAllowThreads();
34835 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
34836 wxPyEndAllowThreads(__tstate);
34837 if (PyErr_Occurred()) SWIG_fail;
34838 }
34839 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
34840 return resultobj;
34841fail:
34842 return NULL;
34843}
34844
34845
34846SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34847 PyObject *resultobj = 0;
34848 wxRendererNative *result = 0 ;
34849
34850 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
34851 {
704eda0c 34852 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 34853 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 34854 {
1bd55598
RD
34855 wxRendererNative &_result_ref = wxRendererNative::Get();
34856 result = (wxRendererNative *) &_result_ref;
36ed4f51 34857 }
1bd55598
RD
34858 wxPyEndAllowThreads(__tstate);
34859 if (PyErr_Occurred()) SWIG_fail;
34860 }
34861 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34862 return resultobj;
34863fail:
34864 return NULL;
34865}
34866
34867
34868SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34869 PyObject *resultobj = 0;
34870 wxRendererNative *result = 0 ;
34871
34872 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
34873 {
704eda0c 34874 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 34875 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 34876 {
1bd55598
RD
34877 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
34878 result = (wxRendererNative *) &_result_ref;
be9b1dca 34879 }
1bd55598
RD
34880 wxPyEndAllowThreads(__tstate);
34881 if (PyErr_Occurred()) SWIG_fail;
34882 }
34883 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34884 return resultobj;
34885fail:
34886 return NULL;
34887}
34888
34889
34890SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34891 PyObject *resultobj = 0;
34892 wxRendererNative *result = 0 ;
34893
34894 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
34895 {
704eda0c 34896 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 34897 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 34898 {
1bd55598
RD
34899 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
34900 result = (wxRendererNative *) &_result_ref;
be9b1dca 34901 }
1bd55598
RD
34902 wxPyEndAllowThreads(__tstate);
34903 if (PyErr_Occurred()) SWIG_fail;
34904 }
34905 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34906 return resultobj;
34907fail:
34908 return NULL;
34909}
34910
34911
34912SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34913 PyObject *resultobj = 0;
34914 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34915 wxRendererNative *result = 0 ;
34916 void *argp1 = 0 ;
34917 int res1 = 0 ;
34918 PyObject * obj0 = 0 ;
34919 char * kwnames[] = {
34920 (char *) "renderer", NULL
34921 };
34922
34923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
34924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34925 if (!SWIG_IsOK(res1)) {
34926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34927 }
34928 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34929 {
704eda0c 34930 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598
RD
34931 PyThreadState* __tstate = wxPyBeginAllowThreads();
34932 result = (wxRendererNative *)wxRendererNative::Set(arg1);
34933 wxPyEndAllowThreads(__tstate);
34934 if (PyErr_Occurred()) SWIG_fail;
34935 }
34936 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34937 return resultobj;
34938fail:
34939 return NULL;
34940}
34941
34942
34943SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34944 PyObject *resultobj = 0;
34945 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34946 SwigValueWrapper<wxRendererVersion > result;
34947 void *argp1 = 0 ;
34948 int res1 = 0 ;
34949 PyObject *swig_obj[1] ;
34950
34951 if (!args) SWIG_fail;
34952 swig_obj[0] = args;
34953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34954 if (!SWIG_IsOK(res1)) {
34955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
34956 }
34957 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34958 {
34959 PyThreadState* __tstate = wxPyBeginAllowThreads();
34960 result = ((wxRendererNative const *)arg1)->GetVersion();
34961 wxPyEndAllowThreads(__tstate);
34962 if (PyErr_Occurred()) SWIG_fail;
34963 }
34964 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
34965 return resultobj;
34966fail:
34967 return NULL;
34968}
34969
34970
34971SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34972 PyObject *obj;
34973 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34974 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
34975 return SWIG_Py_Void();
34976}
34977
27e45892
RD
34978SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34979 PyObject *resultobj = 0;
34980 wxPseudoDC *result = 0 ;
34981
34982 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
34983 {
34984 PyThreadState* __tstate = wxPyBeginAllowThreads();
34985 result = (wxPseudoDC *)new wxPseudoDC();
34986 wxPyEndAllowThreads(__tstate);
34987 if (PyErr_Occurred()) SWIG_fail;
34988 }
34989 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
34990 return resultobj;
34991fail:
34992 return NULL;
34993}
34994
34995
34996SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34997 PyObject *resultobj = 0;
34998 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34999 void *argp1 = 0 ;
35000 int res1 = 0 ;
35001 PyObject *swig_obj[1] ;
35002
35003 if (!args) SWIG_fail;
35004 swig_obj[0] = args;
35005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35006 if (!SWIG_IsOK(res1)) {
35007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35008 }
35009 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35010 {
35011 PyThreadState* __tstate = wxPyBeginAllowThreads();
35012 (arg1)->BeginDrawing();
35013 wxPyEndAllowThreads(__tstate);
35014 if (PyErr_Occurred()) SWIG_fail;
35015 }
35016 resultobj = SWIG_Py_Void();
35017 return resultobj;
35018fail:
35019 return NULL;
35020}
35021
35022
35023SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35024 PyObject *resultobj = 0;
35025 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35026 void *argp1 = 0 ;
35027 int res1 = 0 ;
35028 PyObject *swig_obj[1] ;
35029
35030 if (!args) SWIG_fail;
35031 swig_obj[0] = args;
35032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35033 if (!SWIG_IsOK(res1)) {
35034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35035 }
35036 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35037 {
35038 PyThreadState* __tstate = wxPyBeginAllowThreads();
35039 (arg1)->EndDrawing();
35040 wxPyEndAllowThreads(__tstate);
35041 if (PyErr_Occurred()) SWIG_fail;
35042 }
35043 resultobj = SWIG_Py_Void();
35044 return resultobj;
35045fail:
35046 return NULL;
35047}
35048
35049
35050SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35051 PyObject *resultobj = 0;
35052 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35053 void *argp1 = 0 ;
35054 int res1 = 0 ;
35055 PyObject *swig_obj[1] ;
35056
35057 if (!args) SWIG_fail;
35058 swig_obj[0] = args;
35059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
35060 if (!SWIG_IsOK(res1)) {
35061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35062 }
35063 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35064 {
35065 PyThreadState* __tstate = wxPyBeginAllowThreads();
35066 delete arg1;
35067
35068 wxPyEndAllowThreads(__tstate);
35069 if (PyErr_Occurred()) SWIG_fail;
35070 }
35071 resultobj = SWIG_Py_Void();
35072 return resultobj;
35073fail:
35074 return NULL;
35075}
35076
35077
35078SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35079 PyObject *resultobj = 0;
35080 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35081 void *argp1 = 0 ;
35082 int res1 = 0 ;
35083 PyObject *swig_obj[1] ;
35084
35085 if (!args) SWIG_fail;
35086 swig_obj[0] = args;
35087 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35088 if (!SWIG_IsOK(res1)) {
35089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35090 }
35091 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35092 {
35093 PyThreadState* __tstate = wxPyBeginAllowThreads();
35094 (arg1)->RemoveAll();
35095 wxPyEndAllowThreads(__tstate);
35096 if (PyErr_Occurred()) SWIG_fail;
35097 }
35098 resultobj = SWIG_Py_Void();
35099 return resultobj;
35100fail:
35101 return NULL;
35102}
35103
35104
35105SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35106 PyObject *resultobj = 0;
35107 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35108 int result;
35109 void *argp1 = 0 ;
35110 int res1 = 0 ;
35111 PyObject *swig_obj[1] ;
35112
35113 if (!args) SWIG_fail;
35114 swig_obj[0] = args;
35115 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35116 if (!SWIG_IsOK(res1)) {
35117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35118 }
35119 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35120 {
35121 PyThreadState* __tstate = wxPyBeginAllowThreads();
35122 result = (int)(arg1)->GetLen();
35123 wxPyEndAllowThreads(__tstate);
35124 if (PyErr_Occurred()) SWIG_fail;
35125 }
35126 resultobj = SWIG_From_int(static_cast< int >(result));
35127 return resultobj;
35128fail:
35129 return NULL;
35130}
35131
35132
35133SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35134 PyObject *resultobj = 0;
35135 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35136 int arg2 ;
35137 void *argp1 = 0 ;
35138 int res1 = 0 ;
35139 int val2 ;
35140 int ecode2 = 0 ;
35141 PyObject * obj0 = 0 ;
35142 PyObject * obj1 = 0 ;
35143 char * kwnames[] = {
35144 (char *) "self",(char *) "id", NULL
35145 };
35146
35147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
35148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35149 if (!SWIG_IsOK(res1)) {
35150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35151 }
35152 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35153 ecode2 = SWIG_AsVal_int(obj1, &val2);
35154 if (!SWIG_IsOK(ecode2)) {
35155 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
35156 }
35157 arg2 = static_cast< int >(val2);
35158 {
35159 PyThreadState* __tstate = wxPyBeginAllowThreads();
35160 (arg1)->SetId(arg2);
35161 wxPyEndAllowThreads(__tstate);
35162 if (PyErr_Occurred()) SWIG_fail;
35163 }
35164 resultobj = SWIG_Py_Void();
35165 return resultobj;
35166fail:
35167 return NULL;
35168}
35169
35170
35171SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35172 PyObject *resultobj = 0;
35173 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35174 int arg2 ;
35175 void *argp1 = 0 ;
35176 int res1 = 0 ;
35177 int val2 ;
35178 int ecode2 = 0 ;
35179 PyObject * obj0 = 0 ;
35180 PyObject * obj1 = 0 ;
35181 char * kwnames[] = {
35182 (char *) "self",(char *) "id", NULL
35183 };
35184
35185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
35186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35187 if (!SWIG_IsOK(res1)) {
35188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35189 }
35190 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35191 ecode2 = SWIG_AsVal_int(obj1, &val2);
35192 if (!SWIG_IsOK(ecode2)) {
35193 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
35194 }
35195 arg2 = static_cast< int >(val2);
35196 {
35197 PyThreadState* __tstate = wxPyBeginAllowThreads();
35198 (arg1)->ClearId(arg2);
35199 wxPyEndAllowThreads(__tstate);
35200 if (PyErr_Occurred()) SWIG_fail;
35201 }
35202 resultobj = SWIG_Py_Void();
35203 return resultobj;
35204fail:
35205 return NULL;
35206}
35207
35208
35209SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35210 PyObject *resultobj = 0;
35211 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35212 int arg2 ;
35213 void *argp1 = 0 ;
35214 int res1 = 0 ;
35215 int val2 ;
35216 int ecode2 = 0 ;
35217 PyObject * obj0 = 0 ;
35218 PyObject * obj1 = 0 ;
35219 char * kwnames[] = {
35220 (char *) "self",(char *) "id", NULL
35221 };
35222
35223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
35224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35225 if (!SWIG_IsOK(res1)) {
35226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35227 }
35228 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35229 ecode2 = SWIG_AsVal_int(obj1, &val2);
35230 if (!SWIG_IsOK(ecode2)) {
35231 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
35232 }
35233 arg2 = static_cast< int >(val2);
35234 {
35235 PyThreadState* __tstate = wxPyBeginAllowThreads();
35236 (arg1)->RemoveId(arg2);
35237 wxPyEndAllowThreads(__tstate);
35238 if (PyErr_Occurred()) SWIG_fail;
35239 }
35240 resultobj = SWIG_Py_Void();
35241 return resultobj;
35242fail:
35243 return NULL;
35244}
35245
35246
35247SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35248 PyObject *resultobj = 0;
35249 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35250 int arg2 ;
35251 int arg3 ;
35252 int arg4 ;
35253 void *argp1 = 0 ;
35254 int res1 = 0 ;
35255 int val2 ;
35256 int ecode2 = 0 ;
35257 int val3 ;
35258 int ecode3 = 0 ;
35259 int val4 ;
35260 int ecode4 = 0 ;
35261 PyObject * obj0 = 0 ;
35262 PyObject * obj1 = 0 ;
35263 PyObject * obj2 = 0 ;
35264 PyObject * obj3 = 0 ;
35265 char * kwnames[] = {
35266 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
35267 };
35268
35269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35271 if (!SWIG_IsOK(res1)) {
35272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35273 }
35274 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35275 ecode2 = SWIG_AsVal_int(obj1, &val2);
35276 if (!SWIG_IsOK(ecode2)) {
35277 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
35278 }
35279 arg2 = static_cast< int >(val2);
35280 ecode3 = SWIG_AsVal_int(obj2, &val3);
35281 if (!SWIG_IsOK(ecode3)) {
35282 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
35283 }
35284 arg3 = static_cast< int >(val3);
35285 ecode4 = SWIG_AsVal_int(obj3, &val4);
35286 if (!SWIG_IsOK(ecode4)) {
35287 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
35288 }
35289 arg4 = static_cast< int >(val4);
35290 {
35291 PyThreadState* __tstate = wxPyBeginAllowThreads();
35292 (arg1)->TranslateId(arg2,arg3,arg4);
35293 wxPyEndAllowThreads(__tstate);
35294 if (PyErr_Occurred()) SWIG_fail;
35295 }
35296 resultobj = SWIG_Py_Void();
35297 return resultobj;
35298fail:
35299 return NULL;
35300}
35301
35302
72ef6efb
RD
35303SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35304 PyObject *resultobj = 0;
35305 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35306 int arg2 ;
35307 bool arg3 = (bool) true ;
35308 void *argp1 = 0 ;
35309 int res1 = 0 ;
35310 int val2 ;
35311 int ecode2 = 0 ;
35312 bool val3 ;
35313 int ecode3 = 0 ;
35314 PyObject * obj0 = 0 ;
35315 PyObject * obj1 = 0 ;
35316 PyObject * obj2 = 0 ;
35317 char * kwnames[] = {
35318 (char *) "self",(char *) "id",(char *) "greyout", NULL
35319 };
35320
35321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35323 if (!SWIG_IsOK(res1)) {
35324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35325 }
35326 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35327 ecode2 = SWIG_AsVal_int(obj1, &val2);
35328 if (!SWIG_IsOK(ecode2)) {
35329 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35330 }
35331 arg2 = static_cast< int >(val2);
35332 if (obj2) {
35333 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35334 if (!SWIG_IsOK(ecode3)) {
35335 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
35336 }
35337 arg3 = static_cast< bool >(val3);
35338 }
35339 {
35340 PyThreadState* __tstate = wxPyBeginAllowThreads();
35341 (arg1)->SetIdGreyedOut(arg2,arg3);
35342 wxPyEndAllowThreads(__tstate);
35343 if (PyErr_Occurred()) SWIG_fail;
35344 }
35345 resultobj = SWIG_Py_Void();
35346 return resultobj;
35347fail:
35348 return NULL;
35349}
35350
35351
35352SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35353 PyObject *resultobj = 0;
35354 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35355 int arg2 ;
35356 bool result;
35357 void *argp1 = 0 ;
35358 int res1 = 0 ;
35359 int val2 ;
35360 int ecode2 = 0 ;
35361 PyObject * obj0 = 0 ;
35362 PyObject * obj1 = 0 ;
35363 char * kwnames[] = {
35364 (char *) "self",(char *) "id", NULL
35365 };
35366
35367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
35368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35369 if (!SWIG_IsOK(res1)) {
35370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35371 }
35372 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35373 ecode2 = SWIG_AsVal_int(obj1, &val2);
35374 if (!SWIG_IsOK(ecode2)) {
35375 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35376 }
35377 arg2 = static_cast< int >(val2);
35378 {
35379 PyThreadState* __tstate = wxPyBeginAllowThreads();
35380 result = (bool)(arg1)->GetIdGreyedOut(arg2);
35381 wxPyEndAllowThreads(__tstate);
35382 if (PyErr_Occurred()) SWIG_fail;
35383 }
35384 {
35385 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35386 }
35387 return resultobj;
35388fail:
35389 return NULL;
35390}
35391
35392
35393SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35394 PyObject *resultobj = 0;
35395 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35396 int arg2 ;
35397 int arg3 ;
35398 int arg4 = (int) 1 ;
35399 wxColor const &arg5_defvalue = *wxWHITE ;
35400 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
35401 PyObject *result = 0 ;
35402 void *argp1 = 0 ;
35403 int res1 = 0 ;
35404 int val2 ;
35405 int ecode2 = 0 ;
35406 int val3 ;
35407 int ecode3 = 0 ;
35408 int val4 ;
35409 int ecode4 = 0 ;
35410 void *argp5 = 0 ;
35411 int res5 = 0 ;
35412 PyObject * obj0 = 0 ;
35413 PyObject * obj1 = 0 ;
35414 PyObject * obj2 = 0 ;
35415 PyObject * obj3 = 0 ;
35416 PyObject * obj4 = 0 ;
35417 char * kwnames[] = {
35418 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
35419 };
35420
35421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35423 if (!SWIG_IsOK(res1)) {
35424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35425 }
35426 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35427 ecode2 = SWIG_AsVal_int(obj1, &val2);
35428 if (!SWIG_IsOK(ecode2)) {
35429 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
35430 }
35431 arg2 = static_cast< int >(val2);
35432 ecode3 = SWIG_AsVal_int(obj2, &val3);
35433 if (!SWIG_IsOK(ecode3)) {
35434 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
35435 }
35436 arg3 = static_cast< int >(val3);
35437 if (obj3) {
35438 ecode4 = SWIG_AsVal_int(obj3, &val4);
35439 if (!SWIG_IsOK(ecode4)) {
35440 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
35441 }
35442 arg4 = static_cast< int >(val4);
35443 }
35444 if (obj4) {
35445 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
35446 if (!SWIG_IsOK(res5)) {
35447 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
35448 }
35449 if (!argp5) {
35450 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
35451 }
35452 arg5 = reinterpret_cast< wxColor * >(argp5);
35453 }
35454 {
35455 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
35456 if (PyErr_Occurred()) SWIG_fail;
35457 }
35458 resultobj = result;
35459 return resultobj;
35460fail:
35461 return NULL;
35462}
35463
35464
35465SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35466 PyObject *resultobj = 0;
35467 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35468 int arg2 ;
35469 int arg3 ;
35470 PyObject *result = 0 ;
35471 void *argp1 = 0 ;
35472 int res1 = 0 ;
35473 int val2 ;
35474 int ecode2 = 0 ;
35475 int val3 ;
35476 int ecode3 = 0 ;
35477 PyObject * obj0 = 0 ;
35478 PyObject * obj1 = 0 ;
35479 PyObject * obj2 = 0 ;
35480 char * kwnames[] = {
35481 (char *) "self",(char *) "x",(char *) "y", NULL
35482 };
35483
35484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35486 if (!SWIG_IsOK(res1)) {
35487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35488 }
35489 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35490 ecode2 = SWIG_AsVal_int(obj1, &val2);
35491 if (!SWIG_IsOK(ecode2)) {
35492 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
35493 }
35494 arg2 = static_cast< int >(val2);
35495 ecode3 = SWIG_AsVal_int(obj2, &val3);
35496 if (!SWIG_IsOK(ecode3)) {
35497 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
35498 }
35499 arg3 = static_cast< int >(val3);
35500 {
35501 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
35502 if (PyErr_Occurred()) SWIG_fail;
35503 }
35504 resultobj = result;
35505 return resultobj;
35506fail:
35507 return NULL;
35508}
35509
35510
27e45892
RD
35511SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35512 PyObject *resultobj = 0;
35513 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35514 int arg2 ;
35515 wxDC *arg3 = (wxDC *) 0 ;
35516 void *argp1 = 0 ;
35517 int res1 = 0 ;
35518 int val2 ;
35519 int ecode2 = 0 ;
35520 void *argp3 = 0 ;
35521 int res3 = 0 ;
35522 PyObject * obj0 = 0 ;
35523 PyObject * obj1 = 0 ;
35524 PyObject * obj2 = 0 ;
35525 char * kwnames[] = {
35526 (char *) "self",(char *) "id",(char *) "dc", NULL
35527 };
35528
35529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35531 if (!SWIG_IsOK(res1)) {
35532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35533 }
35534 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35535 ecode2 = SWIG_AsVal_int(obj1, &val2);
35536 if (!SWIG_IsOK(ecode2)) {
35537 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
35538 }
35539 arg2 = static_cast< int >(val2);
35540 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
35541 if (!SWIG_IsOK(res3)) {
35542 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
35543 }
35544 arg3 = reinterpret_cast< wxDC * >(argp3);
35545 {
35546 PyThreadState* __tstate = wxPyBeginAllowThreads();
35547 (arg1)->DrawIdToDC(arg2,arg3);
35548 wxPyEndAllowThreads(__tstate);
35549 if (PyErr_Occurred()) SWIG_fail;
35550 }
35551 resultobj = SWIG_Py_Void();
35552 return resultobj;
35553fail:
35554 return NULL;
35555}
35556
35557
35558SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35559 PyObject *resultobj = 0;
35560 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35561 int arg2 ;
35562 wxRect *arg3 = 0 ;
35563 void *argp1 = 0 ;
35564 int res1 = 0 ;
35565 int val2 ;
35566 int ecode2 = 0 ;
35567 wxRect temp3 ;
35568 PyObject * obj0 = 0 ;
35569 PyObject * obj1 = 0 ;
35570 PyObject * obj2 = 0 ;
35571 char * kwnames[] = {
35572 (char *) "self",(char *) "id",(char *) "rect", NULL
35573 };
35574
35575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35577 if (!SWIG_IsOK(res1)) {
35578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35579 }
35580 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35581 ecode2 = SWIG_AsVal_int(obj1, &val2);
35582 if (!SWIG_IsOK(ecode2)) {
35583 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
35584 }
35585 arg2 = static_cast< int >(val2);
35586 {
35587 arg3 = &temp3;
35588 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
35589 }
35590 {
35591 PyThreadState* __tstate = wxPyBeginAllowThreads();
35592 (arg1)->SetIdBounds(arg2,*arg3);
35593 wxPyEndAllowThreads(__tstate);
35594 if (PyErr_Occurred()) SWIG_fail;
35595 }
35596 resultobj = SWIG_Py_Void();
35597 return resultobj;
35598fail:
35599 return NULL;
35600}
35601
35602
35603SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35604 PyObject *resultobj = 0;
35605 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35606 int arg2 ;
35607 wxRect result;
35608 void *argp1 = 0 ;
35609 int res1 = 0 ;
35610 int val2 ;
35611 int ecode2 = 0 ;
35612 PyObject * obj0 = 0 ;
35613 PyObject * obj1 = 0 ;
35614 char * kwnames[] = {
35615 (char *) "self",(char *) "id", NULL
35616 };
35617
35618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
35619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35620 if (!SWIG_IsOK(res1)) {
35621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35622 }
35623 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35624 ecode2 = SWIG_AsVal_int(obj1, &val2);
35625 if (!SWIG_IsOK(ecode2)) {
35626 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
35627 }
35628 arg2 = static_cast< int >(val2);
35629 {
35630 PyThreadState* __tstate = wxPyBeginAllowThreads();
35631 result = wxPseudoDC_GetIdBounds(arg1,arg2);
35632 wxPyEndAllowThreads(__tstate);
35633 if (PyErr_Occurred()) SWIG_fail;
35634 }
35635 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
35636 return resultobj;
35637fail:
35638 return NULL;
35639}
35640
35641
35642SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35643 PyObject *resultobj = 0;
35644 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35645 wxDC *arg2 = (wxDC *) 0 ;
35646 wxRect *arg3 = 0 ;
35647 void *argp1 = 0 ;
35648 int res1 = 0 ;
35649 void *argp2 = 0 ;
35650 int res2 = 0 ;
35651 wxRect temp3 ;
35652 PyObject * obj0 = 0 ;
35653 PyObject * obj1 = 0 ;
35654 PyObject * obj2 = 0 ;
35655 char * kwnames[] = {
35656 (char *) "self",(char *) "dc",(char *) "rect", NULL
35657 };
35658
35659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35661 if (!SWIG_IsOK(res1)) {
35662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35663 }
35664 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35665 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35666 if (!SWIG_IsOK(res2)) {
35667 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
35668 }
35669 arg2 = reinterpret_cast< wxDC * >(argp2);
35670 {
35671 arg3 = &temp3;
35672 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
35673 }
35674 {
35675 PyThreadState* __tstate = wxPyBeginAllowThreads();
35676 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
35677 wxPyEndAllowThreads(__tstate);
35678 if (PyErr_Occurred()) SWIG_fail;
35679 }
35680 resultobj = SWIG_Py_Void();
35681 return resultobj;
35682fail:
35683 return NULL;
35684}
35685
35686
35687SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35688 PyObject *resultobj = 0;
35689 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35690 wxDC *arg2 = (wxDC *) 0 ;
35691 wxRegion *arg3 = 0 ;
35692 void *argp1 = 0 ;
35693 int res1 = 0 ;
35694 void *argp2 = 0 ;
35695 int res2 = 0 ;
35696 void *argp3 = 0 ;
35697 int res3 = 0 ;
35698 PyObject * obj0 = 0 ;
35699 PyObject * obj1 = 0 ;
35700 PyObject * obj2 = 0 ;
35701 char * kwnames[] = {
35702 (char *) "self",(char *) "dc",(char *) "region", NULL
35703 };
35704
35705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35707 if (!SWIG_IsOK(res1)) {
35708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35709 }
35710 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35711 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35712 if (!SWIG_IsOK(res2)) {
35713 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
35714 }
35715 arg2 = reinterpret_cast< wxDC * >(argp2);
35716 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
35717 if (!SWIG_IsOK(res3)) {
35718 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
35719 }
35720 if (!argp3) {
35721 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
35722 }
35723 arg3 = reinterpret_cast< wxRegion * >(argp3);
35724 {
35725 PyThreadState* __tstate = wxPyBeginAllowThreads();
35726 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
35727 wxPyEndAllowThreads(__tstate);
35728 if (PyErr_Occurred()) SWIG_fail;
35729 }
35730 resultobj = SWIG_Py_Void();
35731 return resultobj;
35732fail:
35733 return NULL;
35734}
35735
35736
35737SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35738 PyObject *resultobj = 0;
35739 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35740 wxDC *arg2 = (wxDC *) 0 ;
35741 void *argp1 = 0 ;
35742 int res1 = 0 ;
35743 void *argp2 = 0 ;
35744 int res2 = 0 ;
35745 PyObject * obj0 = 0 ;
35746 PyObject * obj1 = 0 ;
35747 char * kwnames[] = {
35748 (char *) "self",(char *) "dc", NULL
35749 };
35750
35751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
35752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35753 if (!SWIG_IsOK(res1)) {
35754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35755 }
35756 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35757 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35758 if (!SWIG_IsOK(res2)) {
35759 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
35760 }
35761 arg2 = reinterpret_cast< wxDC * >(argp2);
35762 {
35763 PyThreadState* __tstate = wxPyBeginAllowThreads();
35764 (arg1)->DrawToDC(arg2);
35765 wxPyEndAllowThreads(__tstate);
35766 if (PyErr_Occurred()) SWIG_fail;
35767 }
35768 resultobj = SWIG_Py_Void();
35769 return resultobj;
35770fail:
35771 return NULL;
35772}
35773
35774
35775SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35776 PyObject *resultobj = 0;
35777 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35778 int arg2 ;
35779 int arg3 ;
35780 wxColour *arg4 = 0 ;
35781 int arg5 = (int) wxFLOOD_SURFACE ;
35782 void *argp1 = 0 ;
35783 int res1 = 0 ;
35784 int val2 ;
35785 int ecode2 = 0 ;
35786 int val3 ;
35787 int ecode3 = 0 ;
35788 wxColour temp4 ;
35789 int val5 ;
35790 int ecode5 = 0 ;
35791 PyObject * obj0 = 0 ;
35792 PyObject * obj1 = 0 ;
35793 PyObject * obj2 = 0 ;
35794 PyObject * obj3 = 0 ;
35795 PyObject * obj4 = 0 ;
35796 char * kwnames[] = {
35797 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
35798 };
35799
35800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35802 if (!SWIG_IsOK(res1)) {
35803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35804 }
35805 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35806 ecode2 = SWIG_AsVal_int(obj1, &val2);
35807 if (!SWIG_IsOK(ecode2)) {
35808 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
35809 }
35810 arg2 = static_cast< int >(val2);
35811 ecode3 = SWIG_AsVal_int(obj2, &val3);
35812 if (!SWIG_IsOK(ecode3)) {
35813 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
35814 }
35815 arg3 = static_cast< int >(val3);
35816 {
35817 arg4 = &temp4;
35818 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
35819 }
35820 if (obj4) {
35821 ecode5 = SWIG_AsVal_int(obj4, &val5);
35822 if (!SWIG_IsOK(ecode5)) {
35823 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
35824 }
35825 arg5 = static_cast< int >(val5);
35826 }
35827 {
35828 PyThreadState* __tstate = wxPyBeginAllowThreads();
35829 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
35830 wxPyEndAllowThreads(__tstate);
35831 if (PyErr_Occurred()) SWIG_fail;
35832 }
35833 resultobj = SWIG_Py_Void();
35834 return resultobj;
35835fail:
35836 return NULL;
35837}
35838
35839
35840SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35841 PyObject *resultobj = 0;
35842 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35843 wxPoint *arg2 = 0 ;
35844 wxColour *arg3 = 0 ;
35845 int arg4 = (int) wxFLOOD_SURFACE ;
35846 void *argp1 = 0 ;
35847 int res1 = 0 ;
35848 wxPoint temp2 ;
35849 wxColour temp3 ;
35850 int val4 ;
35851 int ecode4 = 0 ;
35852 PyObject * obj0 = 0 ;
35853 PyObject * obj1 = 0 ;
35854 PyObject * obj2 = 0 ;
35855 PyObject * obj3 = 0 ;
35856 char * kwnames[] = {
35857 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
35858 };
35859
35860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35862 if (!SWIG_IsOK(res1)) {
35863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35864 }
35865 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35866 {
35867 arg2 = &temp2;
35868 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
35869 }
35870 {
35871 arg3 = &temp3;
35872 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35873 }
35874 if (obj3) {
35875 ecode4 = SWIG_AsVal_int(obj3, &val4);
35876 if (!SWIG_IsOK(ecode4)) {
35877 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
35878 }
35879 arg4 = static_cast< int >(val4);
35880 }
35881 {
35882 PyThreadState* __tstate = wxPyBeginAllowThreads();
35883 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
35884 wxPyEndAllowThreads(__tstate);
35885 if (PyErr_Occurred()) SWIG_fail;
35886 }
35887 resultobj = SWIG_Py_Void();
35888 return resultobj;
35889fail:
35890 return NULL;
35891}
35892
35893
35894SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35895 PyObject *resultobj = 0;
35896 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35897 int arg2 ;
35898 int arg3 ;
35899 int arg4 ;
35900 int arg5 ;
35901 void *argp1 = 0 ;
35902 int res1 = 0 ;
35903 int val2 ;
35904 int ecode2 = 0 ;
35905 int val3 ;
35906 int ecode3 = 0 ;
35907 int val4 ;
35908 int ecode4 = 0 ;
35909 int val5 ;
35910 int ecode5 = 0 ;
35911 PyObject * obj0 = 0 ;
35912 PyObject * obj1 = 0 ;
35913 PyObject * obj2 = 0 ;
35914 PyObject * obj3 = 0 ;
35915 PyObject * obj4 = 0 ;
35916 char * kwnames[] = {
35917 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
35918 };
35919
35920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35922 if (!SWIG_IsOK(res1)) {
35923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35924 }
35925 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35926 ecode2 = SWIG_AsVal_int(obj1, &val2);
35927 if (!SWIG_IsOK(ecode2)) {
35928 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
35929 }
35930 arg2 = static_cast< int >(val2);
35931 ecode3 = SWIG_AsVal_int(obj2, &val3);
35932 if (!SWIG_IsOK(ecode3)) {
35933 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
35934 }
35935 arg3 = static_cast< int >(val3);
35936 ecode4 = SWIG_AsVal_int(obj3, &val4);
35937 if (!SWIG_IsOK(ecode4)) {
35938 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
35939 }
35940 arg4 = static_cast< int >(val4);
35941 ecode5 = SWIG_AsVal_int(obj4, &val5);
35942 if (!SWIG_IsOK(ecode5)) {
35943 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
35944 }
35945 arg5 = static_cast< int >(val5);
35946 {
35947 PyThreadState* __tstate = wxPyBeginAllowThreads();
35948 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
35949 wxPyEndAllowThreads(__tstate);
35950 if (PyErr_Occurred()) SWIG_fail;
35951 }
35952 resultobj = SWIG_Py_Void();
35953 return resultobj;
35954fail:
35955 return NULL;
35956}
35957
35958
35959SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35960 PyObject *resultobj = 0;
35961 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35962 wxPoint *arg2 = 0 ;
35963 wxPoint *arg3 = 0 ;
35964 void *argp1 = 0 ;
35965 int res1 = 0 ;
35966 wxPoint temp2 ;
35967 wxPoint temp3 ;
35968 PyObject * obj0 = 0 ;
35969 PyObject * obj1 = 0 ;
35970 PyObject * obj2 = 0 ;
35971 char * kwnames[] = {
35972 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
35973 };
35974
35975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35977 if (!SWIG_IsOK(res1)) {
35978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35979 }
35980 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35981 {
35982 arg2 = &temp2;
35983 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
35984 }
35985 {
35986 arg3 = &temp3;
35987 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
35988 }
35989 {
35990 PyThreadState* __tstate = wxPyBeginAllowThreads();
35991 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
35992 wxPyEndAllowThreads(__tstate);
35993 if (PyErr_Occurred()) SWIG_fail;
35994 }
35995 resultobj = SWIG_Py_Void();
35996 return resultobj;
35997fail:
35998 return NULL;
35999}
36000
36001
36002SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36003 PyObject *resultobj = 0;
36004 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36005 int arg2 ;
36006 int arg3 ;
36007 void *argp1 = 0 ;
36008 int res1 = 0 ;
36009 int val2 ;
36010 int ecode2 = 0 ;
36011 int val3 ;
36012 int ecode3 = 0 ;
36013 PyObject * obj0 = 0 ;
36014 PyObject * obj1 = 0 ;
36015 PyObject * obj2 = 0 ;
36016 char * kwnames[] = {
36017 (char *) "self",(char *) "x",(char *) "y", NULL
36018 };
36019
36020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36022 if (!SWIG_IsOK(res1)) {
36023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36024 }
36025 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36026 ecode2 = SWIG_AsVal_int(obj1, &val2);
36027 if (!SWIG_IsOK(ecode2)) {
36028 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
36029 }
36030 arg2 = static_cast< int >(val2);
36031 ecode3 = SWIG_AsVal_int(obj2, &val3);
36032 if (!SWIG_IsOK(ecode3)) {
36033 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
36034 }
36035 arg3 = static_cast< int >(val3);
36036 {
36037 PyThreadState* __tstate = wxPyBeginAllowThreads();
36038 (arg1)->CrossHair(arg2,arg3);
36039 wxPyEndAllowThreads(__tstate);
36040 if (PyErr_Occurred()) SWIG_fail;
36041 }
36042 resultobj = SWIG_Py_Void();
36043 return resultobj;
36044fail:
36045 return NULL;
36046}
36047
36048
36049SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36050 PyObject *resultobj = 0;
36051 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36052 wxPoint *arg2 = 0 ;
36053 void *argp1 = 0 ;
36054 int res1 = 0 ;
36055 wxPoint temp2 ;
36056 PyObject * obj0 = 0 ;
36057 PyObject * obj1 = 0 ;
36058 char * kwnames[] = {
36059 (char *) "self",(char *) "pt", NULL
36060 };
36061
36062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36064 if (!SWIG_IsOK(res1)) {
36065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36066 }
36067 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36068 {
36069 arg2 = &temp2;
36070 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36071 }
36072 {
36073 PyThreadState* __tstate = wxPyBeginAllowThreads();
36074 (arg1)->CrossHair((wxPoint const &)*arg2);
36075 wxPyEndAllowThreads(__tstate);
36076 if (PyErr_Occurred()) SWIG_fail;
36077 }
36078 resultobj = SWIG_Py_Void();
36079 return resultobj;
36080fail:
36081 return NULL;
36082}
36083
36084
36085SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36086 PyObject *resultobj = 0;
36087 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36088 int arg2 ;
36089 int arg3 ;
36090 int arg4 ;
36091 int arg5 ;
36092 int arg6 ;
36093 int arg7 ;
36094 void *argp1 = 0 ;
36095 int res1 = 0 ;
36096 int val2 ;
36097 int ecode2 = 0 ;
36098 int val3 ;
36099 int ecode3 = 0 ;
36100 int val4 ;
36101 int ecode4 = 0 ;
36102 int val5 ;
36103 int ecode5 = 0 ;
36104 int val6 ;
36105 int ecode6 = 0 ;
36106 int val7 ;
36107 int ecode7 = 0 ;
36108 PyObject * obj0 = 0 ;
36109 PyObject * obj1 = 0 ;
36110 PyObject * obj2 = 0 ;
36111 PyObject * obj3 = 0 ;
36112 PyObject * obj4 = 0 ;
36113 PyObject * obj5 = 0 ;
36114 PyObject * obj6 = 0 ;
36115 char * kwnames[] = {
36116 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
36117 };
36118
36119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36121 if (!SWIG_IsOK(res1)) {
36122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36123 }
36124 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36125 ecode2 = SWIG_AsVal_int(obj1, &val2);
36126 if (!SWIG_IsOK(ecode2)) {
36127 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
36128 }
36129 arg2 = static_cast< int >(val2);
36130 ecode3 = SWIG_AsVal_int(obj2, &val3);
36131 if (!SWIG_IsOK(ecode3)) {
36132 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
36133 }
36134 arg3 = static_cast< int >(val3);
36135 ecode4 = SWIG_AsVal_int(obj3, &val4);
36136 if (!SWIG_IsOK(ecode4)) {
36137 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
36138 }
36139 arg4 = static_cast< int >(val4);
36140 ecode5 = SWIG_AsVal_int(obj4, &val5);
36141 if (!SWIG_IsOK(ecode5)) {
36142 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
36143 }
36144 arg5 = static_cast< int >(val5);
36145 ecode6 = SWIG_AsVal_int(obj5, &val6);
36146 if (!SWIG_IsOK(ecode6)) {
36147 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
36148 }
36149 arg6 = static_cast< int >(val6);
36150 ecode7 = SWIG_AsVal_int(obj6, &val7);
36151 if (!SWIG_IsOK(ecode7)) {
36152 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
36153 }
36154 arg7 = static_cast< int >(val7);
36155 {
36156 PyThreadState* __tstate = wxPyBeginAllowThreads();
36157 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
36158 wxPyEndAllowThreads(__tstate);
36159 if (PyErr_Occurred()) SWIG_fail;
36160 }
36161 resultobj = SWIG_Py_Void();
36162 return resultobj;
36163fail:
36164 return NULL;
36165}
36166
36167
36168SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36169 PyObject *resultobj = 0;
36170 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36171 wxPoint *arg2 = 0 ;
36172 wxPoint *arg3 = 0 ;
36173 wxPoint *arg4 = 0 ;
36174 void *argp1 = 0 ;
36175 int res1 = 0 ;
36176 wxPoint temp2 ;
36177 wxPoint temp3 ;
36178 wxPoint temp4 ;
36179 PyObject * obj0 = 0 ;
36180 PyObject * obj1 = 0 ;
36181 PyObject * obj2 = 0 ;
36182 PyObject * obj3 = 0 ;
36183 char * kwnames[] = {
36184 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
36185 };
36186
36187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36189 if (!SWIG_IsOK(res1)) {
36190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36191 }
36192 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36193 {
36194 arg2 = &temp2;
36195 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36196 }
36197 {
36198 arg3 = &temp3;
36199 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36200 }
36201 {
36202 arg4 = &temp4;
36203 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36204 }
36205 {
36206 PyThreadState* __tstate = wxPyBeginAllowThreads();
36207 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
36208 wxPyEndAllowThreads(__tstate);
36209 if (PyErr_Occurred()) SWIG_fail;
36210 }
36211 resultobj = SWIG_Py_Void();
36212 return resultobj;
36213fail:
36214 return NULL;
36215}
36216
36217
36218SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36219 PyObject *resultobj = 0;
36220 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36221 int arg2 ;
36222 int arg3 ;
36223 int arg4 ;
36224 int arg5 ;
36225 void *argp1 = 0 ;
36226 int res1 = 0 ;
36227 int val2 ;
36228 int ecode2 = 0 ;
36229 int val3 ;
36230 int ecode3 = 0 ;
36231 int val4 ;
36232 int ecode4 = 0 ;
36233 int val5 ;
36234 int ecode5 = 0 ;
36235 PyObject * obj0 = 0 ;
36236 PyObject * obj1 = 0 ;
36237 PyObject * obj2 = 0 ;
36238 PyObject * obj3 = 0 ;
36239 PyObject * obj4 = 0 ;
36240 char * kwnames[] = {
36241 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36242 };
36243
36244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36246 if (!SWIG_IsOK(res1)) {
36247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36248 }
36249 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36250 ecode2 = SWIG_AsVal_int(obj1, &val2);
36251 if (!SWIG_IsOK(ecode2)) {
36252 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
36253 }
36254 arg2 = static_cast< int >(val2);
36255 ecode3 = SWIG_AsVal_int(obj2, &val3);
36256 if (!SWIG_IsOK(ecode3)) {
36257 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
36258 }
36259 arg3 = static_cast< int >(val3);
36260 ecode4 = SWIG_AsVal_int(obj3, &val4);
36261 if (!SWIG_IsOK(ecode4)) {
36262 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
36263 }
36264 arg4 = static_cast< int >(val4);
36265 ecode5 = SWIG_AsVal_int(obj4, &val5);
36266 if (!SWIG_IsOK(ecode5)) {
36267 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
36268 }
36269 arg5 = static_cast< int >(val5);
36270 {
36271 PyThreadState* __tstate = wxPyBeginAllowThreads();
36272 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
36273 wxPyEndAllowThreads(__tstate);
36274 if (PyErr_Occurred()) SWIG_fail;
36275 }
36276 resultobj = SWIG_Py_Void();
36277 return resultobj;
36278fail:
36279 return NULL;
36280}
36281
36282
36283SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36284 PyObject *resultobj = 0;
36285 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36286 wxRect *arg2 = 0 ;
36287 void *argp1 = 0 ;
36288 int res1 = 0 ;
36289 wxRect temp2 ;
36290 PyObject * obj0 = 0 ;
36291 PyObject * obj1 = 0 ;
36292 char * kwnames[] = {
36293 (char *) "self",(char *) "rect", NULL
36294 };
36295
36296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
36297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36298 if (!SWIG_IsOK(res1)) {
36299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36300 }
36301 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36302 {
36303 arg2 = &temp2;
36304 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36305 }
36306 {
36307 PyThreadState* __tstate = wxPyBeginAllowThreads();
36308 (arg1)->DrawCheckMark((wxRect const &)*arg2);
36309 wxPyEndAllowThreads(__tstate);
36310 if (PyErr_Occurred()) SWIG_fail;
36311 }
36312 resultobj = SWIG_Py_Void();
36313 return resultobj;
36314fail:
36315 return NULL;
36316}
36317
36318
36319SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36320 PyObject *resultobj = 0;
36321 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36322 int arg2 ;
36323 int arg3 ;
36324 int arg4 ;
36325 int arg5 ;
36326 double arg6 ;
36327 double arg7 ;
36328 void *argp1 = 0 ;
36329 int res1 = 0 ;
36330 int val2 ;
36331 int ecode2 = 0 ;
36332 int val3 ;
36333 int ecode3 = 0 ;
36334 int val4 ;
36335 int ecode4 = 0 ;
36336 int val5 ;
36337 int ecode5 = 0 ;
36338 double val6 ;
36339 int ecode6 = 0 ;
36340 double val7 ;
36341 int ecode7 = 0 ;
36342 PyObject * obj0 = 0 ;
36343 PyObject * obj1 = 0 ;
36344 PyObject * obj2 = 0 ;
36345 PyObject * obj3 = 0 ;
36346 PyObject * obj4 = 0 ;
36347 PyObject * obj5 = 0 ;
36348 PyObject * obj6 = 0 ;
36349 char * kwnames[] = {
36350 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
36351 };
36352
36353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36355 if (!SWIG_IsOK(res1)) {
36356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36357 }
36358 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36359 ecode2 = SWIG_AsVal_int(obj1, &val2);
36360 if (!SWIG_IsOK(ecode2)) {
36361 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
36362 }
36363 arg2 = static_cast< int >(val2);
36364 ecode3 = SWIG_AsVal_int(obj2, &val3);
36365 if (!SWIG_IsOK(ecode3)) {
36366 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
36367 }
36368 arg3 = static_cast< int >(val3);
36369 ecode4 = SWIG_AsVal_int(obj3, &val4);
36370 if (!SWIG_IsOK(ecode4)) {
36371 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
36372 }
36373 arg4 = static_cast< int >(val4);
36374 ecode5 = SWIG_AsVal_int(obj4, &val5);
36375 if (!SWIG_IsOK(ecode5)) {
36376 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
36377 }
36378 arg5 = static_cast< int >(val5);
36379 ecode6 = SWIG_AsVal_double(obj5, &val6);
36380 if (!SWIG_IsOK(ecode6)) {
36381 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
36382 }
36383 arg6 = static_cast< double >(val6);
36384 ecode7 = SWIG_AsVal_double(obj6, &val7);
36385 if (!SWIG_IsOK(ecode7)) {
36386 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
36387 }
36388 arg7 = static_cast< double >(val7);
36389 {
36390 PyThreadState* __tstate = wxPyBeginAllowThreads();
36391 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
36392 wxPyEndAllowThreads(__tstate);
36393 if (PyErr_Occurred()) SWIG_fail;
36394 }
36395 resultobj = SWIG_Py_Void();
36396 return resultobj;
36397fail:
36398 return NULL;
36399}
36400
36401
36402SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36403 PyObject *resultobj = 0;
36404 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36405 wxPoint *arg2 = 0 ;
36406 wxSize *arg3 = 0 ;
36407 double arg4 ;
36408 double arg5 ;
36409 void *argp1 = 0 ;
36410 int res1 = 0 ;
36411 wxPoint temp2 ;
36412 wxSize temp3 ;
36413 double val4 ;
36414 int ecode4 = 0 ;
36415 double val5 ;
36416 int ecode5 = 0 ;
36417 PyObject * obj0 = 0 ;
36418 PyObject * obj1 = 0 ;
36419 PyObject * obj2 = 0 ;
36420 PyObject * obj3 = 0 ;
36421 PyObject * obj4 = 0 ;
36422 char * kwnames[] = {
36423 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
36424 };
36425
36426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36428 if (!SWIG_IsOK(res1)) {
36429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36430 }
36431 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36432 {
36433 arg2 = &temp2;
36434 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36435 }
36436 {
36437 arg3 = &temp3;
36438 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36439 }
36440 ecode4 = SWIG_AsVal_double(obj3, &val4);
36441 if (!SWIG_IsOK(ecode4)) {
36442 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
36443 }
36444 arg4 = static_cast< double >(val4);
36445 ecode5 = SWIG_AsVal_double(obj4, &val5);
36446 if (!SWIG_IsOK(ecode5)) {
36447 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
36448 }
36449 arg5 = static_cast< double >(val5);
36450 {
36451 PyThreadState* __tstate = wxPyBeginAllowThreads();
36452 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
36453 wxPyEndAllowThreads(__tstate);
36454 if (PyErr_Occurred()) SWIG_fail;
36455 }
36456 resultobj = SWIG_Py_Void();
36457 return resultobj;
36458fail:
36459 return NULL;
36460}
36461
36462
36463SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36464 PyObject *resultobj = 0;
36465 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36466 int arg2 ;
36467 int arg3 ;
36468 void *argp1 = 0 ;
36469 int res1 = 0 ;
36470 int val2 ;
36471 int ecode2 = 0 ;
36472 int val3 ;
36473 int ecode3 = 0 ;
36474 PyObject * obj0 = 0 ;
36475 PyObject * obj1 = 0 ;
36476 PyObject * obj2 = 0 ;
36477 char * kwnames[] = {
36478 (char *) "self",(char *) "x",(char *) "y", NULL
36479 };
36480
36481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36483 if (!SWIG_IsOK(res1)) {
36484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36485 }
36486 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36487 ecode2 = SWIG_AsVal_int(obj1, &val2);
36488 if (!SWIG_IsOK(ecode2)) {
36489 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
36490 }
36491 arg2 = static_cast< int >(val2);
36492 ecode3 = SWIG_AsVal_int(obj2, &val3);
36493 if (!SWIG_IsOK(ecode3)) {
36494 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
36495 }
36496 arg3 = static_cast< int >(val3);
36497 {
36498 PyThreadState* __tstate = wxPyBeginAllowThreads();
36499 (arg1)->DrawPoint(arg2,arg3);
36500 wxPyEndAllowThreads(__tstate);
36501 if (PyErr_Occurred()) SWIG_fail;
36502 }
36503 resultobj = SWIG_Py_Void();
36504 return resultobj;
36505fail:
36506 return NULL;
36507}
36508
36509
36510SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36511 PyObject *resultobj = 0;
36512 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36513 wxPoint *arg2 = 0 ;
36514 void *argp1 = 0 ;
36515 int res1 = 0 ;
36516 wxPoint temp2 ;
36517 PyObject * obj0 = 0 ;
36518 PyObject * obj1 = 0 ;
36519 char * kwnames[] = {
36520 (char *) "self",(char *) "pt", NULL
36521 };
36522
36523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36524 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36525 if (!SWIG_IsOK(res1)) {
36526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36527 }
36528 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36529 {
36530 arg2 = &temp2;
36531 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36532 }
36533 {
36534 PyThreadState* __tstate = wxPyBeginAllowThreads();
36535 (arg1)->DrawPoint((wxPoint const &)*arg2);
36536 wxPyEndAllowThreads(__tstate);
36537 if (PyErr_Occurred()) SWIG_fail;
36538 }
36539 resultobj = SWIG_Py_Void();
36540 return resultobj;
36541fail:
36542 return NULL;
36543}
36544
36545
36546SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36547 PyObject *resultobj = 0;
36548 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36549 int arg2 ;
36550 int arg3 ;
36551 int arg4 ;
36552 int arg5 ;
36553 void *argp1 = 0 ;
36554 int res1 = 0 ;
36555 int val2 ;
36556 int ecode2 = 0 ;
36557 int val3 ;
36558 int ecode3 = 0 ;
36559 int val4 ;
36560 int ecode4 = 0 ;
36561 int val5 ;
36562 int ecode5 = 0 ;
36563 PyObject * obj0 = 0 ;
36564 PyObject * obj1 = 0 ;
36565 PyObject * obj2 = 0 ;
36566 PyObject * obj3 = 0 ;
36567 PyObject * obj4 = 0 ;
36568 char * kwnames[] = {
36569 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36570 };
36571
36572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36574 if (!SWIG_IsOK(res1)) {
36575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36576 }
36577 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36578 ecode2 = SWIG_AsVal_int(obj1, &val2);
36579 if (!SWIG_IsOK(ecode2)) {
36580 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
36581 }
36582 arg2 = static_cast< int >(val2);
36583 ecode3 = SWIG_AsVal_int(obj2, &val3);
36584 if (!SWIG_IsOK(ecode3)) {
36585 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
36586 }
36587 arg3 = static_cast< int >(val3);
36588 ecode4 = SWIG_AsVal_int(obj3, &val4);
36589 if (!SWIG_IsOK(ecode4)) {
36590 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
36591 }
36592 arg4 = static_cast< int >(val4);
36593 ecode5 = SWIG_AsVal_int(obj4, &val5);
36594 if (!SWIG_IsOK(ecode5)) {
36595 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
36596 }
36597 arg5 = static_cast< int >(val5);
36598 {
36599 PyThreadState* __tstate = wxPyBeginAllowThreads();
36600 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
36601 wxPyEndAllowThreads(__tstate);
36602 if (PyErr_Occurred()) SWIG_fail;
36603 }
36604 resultobj = SWIG_Py_Void();
36605 return resultobj;
36606fail:
36607 return NULL;
36608}
36609
36610
36611SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36612 PyObject *resultobj = 0;
36613 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36614 wxRect *arg2 = 0 ;
36615 void *argp1 = 0 ;
36616 int res1 = 0 ;
36617 wxRect temp2 ;
36618 PyObject * obj0 = 0 ;
36619 PyObject * obj1 = 0 ;
36620 char * kwnames[] = {
36621 (char *) "self",(char *) "rect", NULL
36622 };
36623
36624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
36625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36626 if (!SWIG_IsOK(res1)) {
36627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36628 }
36629 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36630 {
36631 arg2 = &temp2;
36632 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36633 }
36634 {
36635 PyThreadState* __tstate = wxPyBeginAllowThreads();
36636 (arg1)->DrawRectangle((wxRect const &)*arg2);
36637 wxPyEndAllowThreads(__tstate);
36638 if (PyErr_Occurred()) SWIG_fail;
36639 }
36640 resultobj = SWIG_Py_Void();
36641 return resultobj;
36642fail:
36643 return NULL;
36644}
36645
36646
36647SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36648 PyObject *resultobj = 0;
36649 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36650 wxPoint *arg2 = 0 ;
36651 wxSize *arg3 = 0 ;
36652 void *argp1 = 0 ;
36653 int res1 = 0 ;
36654 wxPoint temp2 ;
36655 wxSize temp3 ;
36656 PyObject * obj0 = 0 ;
36657 PyObject * obj1 = 0 ;
36658 PyObject * obj2 = 0 ;
36659 char * kwnames[] = {
36660 (char *) "self",(char *) "pt",(char *) "sz", NULL
36661 };
36662
36663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36665 if (!SWIG_IsOK(res1)) {
36666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36667 }
36668 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36669 {
36670 arg2 = &temp2;
36671 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36672 }
36673 {
36674 arg3 = &temp3;
36675 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36676 }
36677 {
36678 PyThreadState* __tstate = wxPyBeginAllowThreads();
36679 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
36680 wxPyEndAllowThreads(__tstate);
36681 if (PyErr_Occurred()) SWIG_fail;
36682 }
36683 resultobj = SWIG_Py_Void();
36684 return resultobj;
36685fail:
36686 return NULL;
36687}
36688
36689
36690SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36691 PyObject *resultobj = 0;
36692 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36693 int arg2 ;
36694 int arg3 ;
36695 int arg4 ;
36696 int arg5 ;
36697 double arg6 ;
36698 void *argp1 = 0 ;
36699 int res1 = 0 ;
36700 int val2 ;
36701 int ecode2 = 0 ;
36702 int val3 ;
36703 int ecode3 = 0 ;
36704 int val4 ;
36705 int ecode4 = 0 ;
36706 int val5 ;
36707 int ecode5 = 0 ;
36708 double val6 ;
36709 int ecode6 = 0 ;
36710 PyObject * obj0 = 0 ;
36711 PyObject * obj1 = 0 ;
36712 PyObject * obj2 = 0 ;
36713 PyObject * obj3 = 0 ;
36714 PyObject * obj4 = 0 ;
36715 PyObject * obj5 = 0 ;
36716 char * kwnames[] = {
36717 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
36718 };
36719
36720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36722 if (!SWIG_IsOK(res1)) {
36723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36724 }
36725 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36726 ecode2 = SWIG_AsVal_int(obj1, &val2);
36727 if (!SWIG_IsOK(ecode2)) {
36728 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
36729 }
36730 arg2 = static_cast< int >(val2);
36731 ecode3 = SWIG_AsVal_int(obj2, &val3);
36732 if (!SWIG_IsOK(ecode3)) {
36733 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
36734 }
36735 arg3 = static_cast< int >(val3);
36736 ecode4 = SWIG_AsVal_int(obj3, &val4);
36737 if (!SWIG_IsOK(ecode4)) {
36738 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
36739 }
36740 arg4 = static_cast< int >(val4);
36741 ecode5 = SWIG_AsVal_int(obj4, &val5);
36742 if (!SWIG_IsOK(ecode5)) {
36743 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
36744 }
36745 arg5 = static_cast< int >(val5);
36746 ecode6 = SWIG_AsVal_double(obj5, &val6);
36747 if (!SWIG_IsOK(ecode6)) {
36748 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
36749 }
36750 arg6 = static_cast< double >(val6);
36751 {
36752 PyThreadState* __tstate = wxPyBeginAllowThreads();
36753 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
36754 wxPyEndAllowThreads(__tstate);
36755 if (PyErr_Occurred()) SWIG_fail;
36756 }
36757 resultobj = SWIG_Py_Void();
36758 return resultobj;
36759fail:
36760 return NULL;
36761}
36762
36763
36764SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36765 PyObject *resultobj = 0;
36766 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36767 wxRect *arg2 = 0 ;
36768 double arg3 ;
36769 void *argp1 = 0 ;
36770 int res1 = 0 ;
36771 wxRect temp2 ;
36772 double val3 ;
36773 int ecode3 = 0 ;
36774 PyObject * obj0 = 0 ;
36775 PyObject * obj1 = 0 ;
36776 PyObject * obj2 = 0 ;
36777 char * kwnames[] = {
36778 (char *) "self",(char *) "r",(char *) "radius", NULL
36779 };
36780
36781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36783 if (!SWIG_IsOK(res1)) {
36784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36785 }
36786 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36787 {
36788 arg2 = &temp2;
36789 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36790 }
36791 ecode3 = SWIG_AsVal_double(obj2, &val3);
36792 if (!SWIG_IsOK(ecode3)) {
36793 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
36794 }
36795 arg3 = static_cast< double >(val3);
36796 {
36797 PyThreadState* __tstate = wxPyBeginAllowThreads();
36798 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
36799 wxPyEndAllowThreads(__tstate);
36800 if (PyErr_Occurred()) SWIG_fail;
36801 }
36802 resultobj = SWIG_Py_Void();
36803 return resultobj;
36804fail:
36805 return NULL;
36806}
36807
36808
36809SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36810 PyObject *resultobj = 0;
36811 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36812 wxPoint *arg2 = 0 ;
36813 wxSize *arg3 = 0 ;
36814 double arg4 ;
36815 void *argp1 = 0 ;
36816 int res1 = 0 ;
36817 wxPoint temp2 ;
36818 wxSize temp3 ;
36819 double val4 ;
36820 int ecode4 = 0 ;
36821 PyObject * obj0 = 0 ;
36822 PyObject * obj1 = 0 ;
36823 PyObject * obj2 = 0 ;
36824 PyObject * obj3 = 0 ;
36825 char * kwnames[] = {
36826 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
36827 };
36828
36829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36831 if (!SWIG_IsOK(res1)) {
36832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36833 }
36834 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36835 {
36836 arg2 = &temp2;
36837 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36838 }
36839 {
36840 arg3 = &temp3;
36841 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36842 }
36843 ecode4 = SWIG_AsVal_double(obj3, &val4);
36844 if (!SWIG_IsOK(ecode4)) {
36845 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
36846 }
36847 arg4 = static_cast< double >(val4);
36848 {
36849 PyThreadState* __tstate = wxPyBeginAllowThreads();
36850 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
36851 wxPyEndAllowThreads(__tstate);
36852 if (PyErr_Occurred()) SWIG_fail;
36853 }
36854 resultobj = SWIG_Py_Void();
36855 return resultobj;
36856fail:
36857 return NULL;
36858}
36859
36860
36861SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36862 PyObject *resultobj = 0;
36863 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36864 int arg2 ;
36865 int arg3 ;
36866 int arg4 ;
36867 void *argp1 = 0 ;
36868 int res1 = 0 ;
36869 int val2 ;
36870 int ecode2 = 0 ;
36871 int val3 ;
36872 int ecode3 = 0 ;
36873 int val4 ;
36874 int ecode4 = 0 ;
36875 PyObject * obj0 = 0 ;
36876 PyObject * obj1 = 0 ;
36877 PyObject * obj2 = 0 ;
36878 PyObject * obj3 = 0 ;
36879 char * kwnames[] = {
36880 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
36881 };
36882
36883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36885 if (!SWIG_IsOK(res1)) {
36886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36887 }
36888 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36889 ecode2 = SWIG_AsVal_int(obj1, &val2);
36890 if (!SWIG_IsOK(ecode2)) {
36891 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
36892 }
36893 arg2 = static_cast< int >(val2);
36894 ecode3 = SWIG_AsVal_int(obj2, &val3);
36895 if (!SWIG_IsOK(ecode3)) {
36896 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
36897 }
36898 arg3 = static_cast< int >(val3);
36899 ecode4 = SWIG_AsVal_int(obj3, &val4);
36900 if (!SWIG_IsOK(ecode4)) {
36901 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
36902 }
36903 arg4 = static_cast< int >(val4);
36904 {
36905 PyThreadState* __tstate = wxPyBeginAllowThreads();
36906 (arg1)->DrawCircle(arg2,arg3,arg4);
36907 wxPyEndAllowThreads(__tstate);
36908 if (PyErr_Occurred()) SWIG_fail;
36909 }
36910 resultobj = SWIG_Py_Void();
36911 return resultobj;
36912fail:
36913 return NULL;
36914}
36915
36916
36917SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36918 PyObject *resultobj = 0;
36919 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36920 wxPoint *arg2 = 0 ;
36921 int arg3 ;
36922 void *argp1 = 0 ;
36923 int res1 = 0 ;
36924 wxPoint temp2 ;
36925 int val3 ;
36926 int ecode3 = 0 ;
36927 PyObject * obj0 = 0 ;
36928 PyObject * obj1 = 0 ;
36929 PyObject * obj2 = 0 ;
36930 char * kwnames[] = {
36931 (char *) "self",(char *) "pt",(char *) "radius", NULL
36932 };
36933
36934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36936 if (!SWIG_IsOK(res1)) {
36937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36938 }
36939 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36940 {
36941 arg2 = &temp2;
36942 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36943 }
36944 ecode3 = SWIG_AsVal_int(obj2, &val3);
36945 if (!SWIG_IsOK(ecode3)) {
36946 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
36947 }
36948 arg3 = static_cast< int >(val3);
36949 {
36950 PyThreadState* __tstate = wxPyBeginAllowThreads();
36951 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
36952 wxPyEndAllowThreads(__tstate);
36953 if (PyErr_Occurred()) SWIG_fail;
36954 }
36955 resultobj = SWIG_Py_Void();
36956 return resultobj;
36957fail:
36958 return NULL;
36959}
36960
36961
36962SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36963 PyObject *resultobj = 0;
36964 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36965 int arg2 ;
36966 int arg3 ;
36967 int arg4 ;
36968 int arg5 ;
36969 void *argp1 = 0 ;
36970 int res1 = 0 ;
36971 int val2 ;
36972 int ecode2 = 0 ;
36973 int val3 ;
36974 int ecode3 = 0 ;
36975 int val4 ;
36976 int ecode4 = 0 ;
36977 int val5 ;
36978 int ecode5 = 0 ;
36979 PyObject * obj0 = 0 ;
36980 PyObject * obj1 = 0 ;
36981 PyObject * obj2 = 0 ;
36982 PyObject * obj3 = 0 ;
36983 PyObject * obj4 = 0 ;
36984 char * kwnames[] = {
36985 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36986 };
36987
36988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36989 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36990 if (!SWIG_IsOK(res1)) {
36991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36992 }
36993 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36994 ecode2 = SWIG_AsVal_int(obj1, &val2);
36995 if (!SWIG_IsOK(ecode2)) {
36996 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
36997 }
36998 arg2 = static_cast< int >(val2);
36999 ecode3 = SWIG_AsVal_int(obj2, &val3);
37000 if (!SWIG_IsOK(ecode3)) {
37001 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
37002 }
37003 arg3 = static_cast< int >(val3);
37004 ecode4 = SWIG_AsVal_int(obj3, &val4);
37005 if (!SWIG_IsOK(ecode4)) {
37006 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
37007 }
37008 arg4 = static_cast< int >(val4);
37009 ecode5 = SWIG_AsVal_int(obj4, &val5);
37010 if (!SWIG_IsOK(ecode5)) {
37011 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
37012 }
37013 arg5 = static_cast< int >(val5);
37014 {
37015 PyThreadState* __tstate = wxPyBeginAllowThreads();
37016 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
37017 wxPyEndAllowThreads(__tstate);
37018 if (PyErr_Occurred()) SWIG_fail;
37019 }
37020 resultobj = SWIG_Py_Void();
37021 return resultobj;
37022fail:
37023 return NULL;
37024}
37025
37026
37027SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37028 PyObject *resultobj = 0;
37029 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37030 wxRect *arg2 = 0 ;
37031 void *argp1 = 0 ;
37032 int res1 = 0 ;
37033 wxRect temp2 ;
37034 PyObject * obj0 = 0 ;
37035 PyObject * obj1 = 0 ;
37036 char * kwnames[] = {
37037 (char *) "self",(char *) "rect", NULL
37038 };
37039
37040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
37041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37042 if (!SWIG_IsOK(res1)) {
37043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37044 }
37045 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37046 {
37047 arg2 = &temp2;
37048 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37049 }
37050 {
37051 PyThreadState* __tstate = wxPyBeginAllowThreads();
37052 (arg1)->DrawEllipse((wxRect const &)*arg2);
37053 wxPyEndAllowThreads(__tstate);
37054 if (PyErr_Occurred()) SWIG_fail;
37055 }
37056 resultobj = SWIG_Py_Void();
37057 return resultobj;
37058fail:
37059 return NULL;
37060}
37061
37062
37063SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37064 PyObject *resultobj = 0;
37065 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37066 wxPoint *arg2 = 0 ;
37067 wxSize *arg3 = 0 ;
37068 void *argp1 = 0 ;
37069 int res1 = 0 ;
37070 wxPoint temp2 ;
37071 wxSize temp3 ;
37072 PyObject * obj0 = 0 ;
37073 PyObject * obj1 = 0 ;
37074 PyObject * obj2 = 0 ;
37075 char * kwnames[] = {
37076 (char *) "self",(char *) "pt",(char *) "sz", NULL
37077 };
37078
37079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37081 if (!SWIG_IsOK(res1)) {
37082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37083 }
37084 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37085 {
37086 arg2 = &temp2;
37087 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37088 }
37089 {
37090 arg3 = &temp3;
37091 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37092 }
37093 {
37094 PyThreadState* __tstate = wxPyBeginAllowThreads();
37095 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
37096 wxPyEndAllowThreads(__tstate);
37097 if (PyErr_Occurred()) SWIG_fail;
37098 }
37099 resultobj = SWIG_Py_Void();
37100 return resultobj;
37101fail:
37102 return NULL;
37103}
37104
37105
37106SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37107 PyObject *resultobj = 0;
37108 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37109 wxIcon *arg2 = 0 ;
37110 int arg3 ;
37111 int arg4 ;
37112 void *argp1 = 0 ;
37113 int res1 = 0 ;
37114 void *argp2 = 0 ;
37115 int res2 = 0 ;
37116 int val3 ;
37117 int ecode3 = 0 ;
37118 int val4 ;
37119 int ecode4 = 0 ;
37120 PyObject * obj0 = 0 ;
37121 PyObject * obj1 = 0 ;
37122 PyObject * obj2 = 0 ;
37123 PyObject * obj3 = 0 ;
37124 char * kwnames[] = {
37125 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
37126 };
37127
37128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37130 if (!SWIG_IsOK(res1)) {
37131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37132 }
37133 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37134 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37135 if (!SWIG_IsOK(res2)) {
37136 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37137 }
37138 if (!argp2) {
37139 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37140 }
37141 arg2 = reinterpret_cast< wxIcon * >(argp2);
37142 ecode3 = SWIG_AsVal_int(obj2, &val3);
37143 if (!SWIG_IsOK(ecode3)) {
37144 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
37145 }
37146 arg3 = static_cast< int >(val3);
37147 ecode4 = SWIG_AsVal_int(obj3, &val4);
37148 if (!SWIG_IsOK(ecode4)) {
37149 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
37150 }
37151 arg4 = static_cast< int >(val4);
37152 {
37153 PyThreadState* __tstate = wxPyBeginAllowThreads();
37154 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
37155 wxPyEndAllowThreads(__tstate);
37156 if (PyErr_Occurred()) SWIG_fail;
37157 }
37158 resultobj = SWIG_Py_Void();
37159 return resultobj;
37160fail:
37161 return NULL;
37162}
37163
37164
37165SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37166 PyObject *resultobj = 0;
37167 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37168 wxIcon *arg2 = 0 ;
37169 wxPoint *arg3 = 0 ;
37170 void *argp1 = 0 ;
37171 int res1 = 0 ;
37172 void *argp2 = 0 ;
37173 int res2 = 0 ;
37174 wxPoint temp3 ;
37175 PyObject * obj0 = 0 ;
37176 PyObject * obj1 = 0 ;
37177 PyObject * obj2 = 0 ;
37178 char * kwnames[] = {
37179 (char *) "self",(char *) "icon",(char *) "pt", NULL
37180 };
37181
37182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37184 if (!SWIG_IsOK(res1)) {
37185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37186 }
37187 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37188 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37189 if (!SWIG_IsOK(res2)) {
37190 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37191 }
37192 if (!argp2) {
37193 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37194 }
37195 arg2 = reinterpret_cast< wxIcon * >(argp2);
37196 {
37197 arg3 = &temp3;
37198 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37199 }
37200 {
37201 PyThreadState* __tstate = wxPyBeginAllowThreads();
37202 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
37203 wxPyEndAllowThreads(__tstate);
37204 if (PyErr_Occurred()) SWIG_fail;
37205 }
37206 resultobj = SWIG_Py_Void();
37207 return resultobj;
37208fail:
37209 return NULL;
37210}
37211
37212
37213SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37214 PyObject *resultobj = 0;
37215 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37216 wxBitmap *arg2 = 0 ;
37217 int arg3 ;
37218 int arg4 ;
37219 bool arg5 = (bool) false ;
37220 void *argp1 = 0 ;
37221 int res1 = 0 ;
37222 void *argp2 = 0 ;
37223 int res2 = 0 ;
37224 int val3 ;
37225 int ecode3 = 0 ;
37226 int val4 ;
37227 int ecode4 = 0 ;
37228 bool val5 ;
37229 int ecode5 = 0 ;
37230 PyObject * obj0 = 0 ;
37231 PyObject * obj1 = 0 ;
37232 PyObject * obj2 = 0 ;
37233 PyObject * obj3 = 0 ;
37234 PyObject * obj4 = 0 ;
37235 char * kwnames[] = {
37236 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
37237 };
37238
37239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37241 if (!SWIG_IsOK(res1)) {
37242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37243 }
37244 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37245 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37246 if (!SWIG_IsOK(res2)) {
37247 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37248 }
37249 if (!argp2) {
37250 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37251 }
37252 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37253 ecode3 = SWIG_AsVal_int(obj2, &val3);
37254 if (!SWIG_IsOK(ecode3)) {
37255 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
37256 }
37257 arg3 = static_cast< int >(val3);
37258 ecode4 = SWIG_AsVal_int(obj3, &val4);
37259 if (!SWIG_IsOK(ecode4)) {
37260 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
37261 }
37262 arg4 = static_cast< int >(val4);
37263 if (obj4) {
37264 ecode5 = SWIG_AsVal_bool(obj4, &val5);
37265 if (!SWIG_IsOK(ecode5)) {
37266 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
37267 }
37268 arg5 = static_cast< bool >(val5);
37269 }
37270 {
37271 PyThreadState* __tstate = wxPyBeginAllowThreads();
37272 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
37273 wxPyEndAllowThreads(__tstate);
37274 if (PyErr_Occurred()) SWIG_fail;
37275 }
37276 resultobj = SWIG_Py_Void();
37277 return resultobj;
37278fail:
37279 return NULL;
37280}
37281
37282
37283SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37284 PyObject *resultobj = 0;
37285 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37286 wxBitmap *arg2 = 0 ;
37287 wxPoint *arg3 = 0 ;
37288 bool arg4 = (bool) false ;
37289 void *argp1 = 0 ;
37290 int res1 = 0 ;
37291 void *argp2 = 0 ;
37292 int res2 = 0 ;
37293 wxPoint temp3 ;
37294 bool val4 ;
37295 int ecode4 = 0 ;
37296 PyObject * obj0 = 0 ;
37297 PyObject * obj1 = 0 ;
37298 PyObject * obj2 = 0 ;
37299 PyObject * obj3 = 0 ;
37300 char * kwnames[] = {
37301 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
37302 };
37303
37304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37306 if (!SWIG_IsOK(res1)) {
37307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37308 }
37309 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37310 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37311 if (!SWIG_IsOK(res2)) {
37312 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37313 }
37314 if (!argp2) {
37315 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37316 }
37317 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37318 {
37319 arg3 = &temp3;
37320 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37321 }
37322 if (obj3) {
37323 ecode4 = SWIG_AsVal_bool(obj3, &val4);
37324 if (!SWIG_IsOK(ecode4)) {
37325 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
37326 }
37327 arg4 = static_cast< bool >(val4);
37328 }
37329 {
37330 PyThreadState* __tstate = wxPyBeginAllowThreads();
37331 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
37332 wxPyEndAllowThreads(__tstate);
37333 if (PyErr_Occurred()) SWIG_fail;
37334 }
37335 resultobj = SWIG_Py_Void();
37336 return resultobj;
37337fail:
37338 return NULL;
37339}
37340
37341
37342SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37343 PyObject *resultobj = 0;
37344 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37345 wxString *arg2 = 0 ;
37346 int arg3 ;
37347 int arg4 ;
37348 void *argp1 = 0 ;
37349 int res1 = 0 ;
37350 bool temp2 = false ;
37351 int val3 ;
37352 int ecode3 = 0 ;
37353 int val4 ;
37354 int ecode4 = 0 ;
37355 PyObject * obj0 = 0 ;
37356 PyObject * obj1 = 0 ;
37357 PyObject * obj2 = 0 ;
37358 PyObject * obj3 = 0 ;
37359 char * kwnames[] = {
37360 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
37361 };
37362
37363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37365 if (!SWIG_IsOK(res1)) {
37366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37367 }
37368 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37369 {
37370 arg2 = wxString_in_helper(obj1);
37371 if (arg2 == NULL) SWIG_fail;
37372 temp2 = true;
37373 }
37374 ecode3 = SWIG_AsVal_int(obj2, &val3);
37375 if (!SWIG_IsOK(ecode3)) {
37376 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
37377 }
37378 arg3 = static_cast< int >(val3);
37379 ecode4 = SWIG_AsVal_int(obj3, &val4);
37380 if (!SWIG_IsOK(ecode4)) {
37381 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
37382 }
37383 arg4 = static_cast< int >(val4);
37384 {
37385 PyThreadState* __tstate = wxPyBeginAllowThreads();
37386 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
37387 wxPyEndAllowThreads(__tstate);
37388 if (PyErr_Occurred()) SWIG_fail;
37389 }
37390 resultobj = SWIG_Py_Void();
37391 {
37392 if (temp2)
37393 delete arg2;
37394 }
37395 return resultobj;
37396fail:
37397 {
37398 if (temp2)
37399 delete arg2;
37400 }
37401 return NULL;
37402}
37403
37404
37405SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37406 PyObject *resultobj = 0;
37407 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37408 wxString *arg2 = 0 ;
37409 wxPoint *arg3 = 0 ;
37410 void *argp1 = 0 ;
37411 int res1 = 0 ;
37412 bool temp2 = false ;
37413 wxPoint temp3 ;
37414 PyObject * obj0 = 0 ;
37415 PyObject * obj1 = 0 ;
37416 PyObject * obj2 = 0 ;
37417 char * kwnames[] = {
37418 (char *) "self",(char *) "text",(char *) "pt", NULL
37419 };
37420
37421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37423 if (!SWIG_IsOK(res1)) {
37424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37425 }
37426 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37427 {
37428 arg2 = wxString_in_helper(obj1);
37429 if (arg2 == NULL) SWIG_fail;
37430 temp2 = true;
37431 }
37432 {
37433 arg3 = &temp3;
37434 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37435 }
37436 {
37437 PyThreadState* __tstate = wxPyBeginAllowThreads();
37438 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
37439 wxPyEndAllowThreads(__tstate);
37440 if (PyErr_Occurred()) SWIG_fail;
37441 }
37442 resultobj = SWIG_Py_Void();
37443 {
37444 if (temp2)
37445 delete arg2;
37446 }
37447 return resultobj;
37448fail:
37449 {
37450 if (temp2)
37451 delete arg2;
37452 }
37453 return NULL;
37454}
37455
37456
37457SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37458 PyObject *resultobj = 0;
37459 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37460 wxString *arg2 = 0 ;
37461 int arg3 ;
37462 int arg4 ;
37463 double arg5 ;
37464 void *argp1 = 0 ;
37465 int res1 = 0 ;
37466 bool temp2 = false ;
37467 int val3 ;
37468 int ecode3 = 0 ;
37469 int val4 ;
37470 int ecode4 = 0 ;
37471 double val5 ;
37472 int ecode5 = 0 ;
37473 PyObject * obj0 = 0 ;
37474 PyObject * obj1 = 0 ;
37475 PyObject * obj2 = 0 ;
37476 PyObject * obj3 = 0 ;
37477 PyObject * obj4 = 0 ;
37478 char * kwnames[] = {
37479 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
37480 };
37481
37482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37484 if (!SWIG_IsOK(res1)) {
37485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37486 }
37487 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37488 {
37489 arg2 = wxString_in_helper(obj1);
37490 if (arg2 == NULL) SWIG_fail;
37491 temp2 = true;
37492 }
37493 ecode3 = SWIG_AsVal_int(obj2, &val3);
37494 if (!SWIG_IsOK(ecode3)) {
37495 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
37496 }
37497 arg3 = static_cast< int >(val3);
37498 ecode4 = SWIG_AsVal_int(obj3, &val4);
37499 if (!SWIG_IsOK(ecode4)) {
37500 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
37501 }
37502 arg4 = static_cast< int >(val4);
37503 ecode5 = SWIG_AsVal_double(obj4, &val5);
37504 if (!SWIG_IsOK(ecode5)) {
37505 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
37506 }
37507 arg5 = static_cast< double >(val5);
37508 {
37509 PyThreadState* __tstate = wxPyBeginAllowThreads();
37510 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
37511 wxPyEndAllowThreads(__tstate);
37512 if (PyErr_Occurred()) SWIG_fail;
37513 }
37514 resultobj = SWIG_Py_Void();
37515 {
37516 if (temp2)
37517 delete arg2;
37518 }
37519 return resultobj;
37520fail:
37521 {
37522 if (temp2)
37523 delete arg2;
37524 }
37525 return NULL;
37526}
37527
37528
37529SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37530 PyObject *resultobj = 0;
37531 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37532 wxString *arg2 = 0 ;
37533 wxPoint *arg3 = 0 ;
37534 double arg4 ;
37535 void *argp1 = 0 ;
37536 int res1 = 0 ;
37537 bool temp2 = false ;
37538 wxPoint temp3 ;
37539 double val4 ;
37540 int ecode4 = 0 ;
37541 PyObject * obj0 = 0 ;
37542 PyObject * obj1 = 0 ;
37543 PyObject * obj2 = 0 ;
37544 PyObject * obj3 = 0 ;
37545 char * kwnames[] = {
37546 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
37547 };
37548
37549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37551 if (!SWIG_IsOK(res1)) {
37552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37553 }
37554 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37555 {
37556 arg2 = wxString_in_helper(obj1);
37557 if (arg2 == NULL) SWIG_fail;
37558 temp2 = true;
37559 }
37560 {
37561 arg3 = &temp3;
37562 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37563 }
37564 ecode4 = SWIG_AsVal_double(obj3, &val4);
37565 if (!SWIG_IsOK(ecode4)) {
37566 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
37567 }
37568 arg4 = static_cast< double >(val4);
37569 {
37570 PyThreadState* __tstate = wxPyBeginAllowThreads();
37571 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
37572 wxPyEndAllowThreads(__tstate);
37573 if (PyErr_Occurred()) SWIG_fail;
37574 }
37575 resultobj = SWIG_Py_Void();
37576 {
37577 if (temp2)
37578 delete arg2;
37579 }
37580 return resultobj;
37581fail:
37582 {
37583 if (temp2)
37584 delete arg2;
37585 }
37586 return NULL;
37587}
37588
37589
37590SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37591 PyObject *resultobj = 0;
37592 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37593 int arg2 ;
37594 wxPoint *arg3 = (wxPoint *) 0 ;
37595 int arg4 = (int) 0 ;
37596 int arg5 = (int) 0 ;
37597 void *argp1 = 0 ;
37598 int res1 = 0 ;
37599 int val4 ;
37600 int ecode4 = 0 ;
37601 int val5 ;
37602 int ecode5 = 0 ;
37603 PyObject * obj0 = 0 ;
37604 PyObject * obj1 = 0 ;
37605 PyObject * obj2 = 0 ;
37606 PyObject * obj3 = 0 ;
37607 char * kwnames[] = {
37608 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
37609 };
37610
37611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37613 if (!SWIG_IsOK(res1)) {
37614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37615 }
37616 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37617 {
37618 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37619 if (arg3 == NULL) SWIG_fail;
37620 }
37621 if (obj2) {
37622 ecode4 = SWIG_AsVal_int(obj2, &val4);
37623 if (!SWIG_IsOK(ecode4)) {
37624 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
37625 }
37626 arg4 = static_cast< int >(val4);
37627 }
37628 if (obj3) {
37629 ecode5 = SWIG_AsVal_int(obj3, &val5);
37630 if (!SWIG_IsOK(ecode5)) {
37631 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
37632 }
37633 arg5 = static_cast< int >(val5);
37634 }
37635 {
37636 PyThreadState* __tstate = wxPyBeginAllowThreads();
37637 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
37638 wxPyEndAllowThreads(__tstate);
37639 if (PyErr_Occurred()) SWIG_fail;
37640 }
37641 resultobj = SWIG_Py_Void();
37642 {
37643 if (arg3) delete [] arg3;
37644 }
37645 return resultobj;
37646fail:
37647 {
37648 if (arg3) delete [] arg3;
37649 }
37650 return NULL;
37651}
37652
37653
37654SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37655 PyObject *resultobj = 0;
37656 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37657 int arg2 ;
37658 wxPoint *arg3 = (wxPoint *) 0 ;
37659 int arg4 = (int) 0 ;
37660 int arg5 = (int) 0 ;
37661 int arg6 = (int) wxODDEVEN_RULE ;
37662 void *argp1 = 0 ;
37663 int res1 = 0 ;
37664 int val4 ;
37665 int ecode4 = 0 ;
37666 int val5 ;
37667 int ecode5 = 0 ;
37668 int val6 ;
37669 int ecode6 = 0 ;
37670 PyObject * obj0 = 0 ;
37671 PyObject * obj1 = 0 ;
37672 PyObject * obj2 = 0 ;
37673 PyObject * obj3 = 0 ;
37674 PyObject * obj4 = 0 ;
37675 char * kwnames[] = {
37676 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
37677 };
37678
37679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37681 if (!SWIG_IsOK(res1)) {
37682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37683 }
37684 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37685 {
37686 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37687 if (arg3 == NULL) SWIG_fail;
37688 }
37689 if (obj2) {
37690 ecode4 = SWIG_AsVal_int(obj2, &val4);
37691 if (!SWIG_IsOK(ecode4)) {
37692 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
37693 }
37694 arg4 = static_cast< int >(val4);
37695 }
37696 if (obj3) {
37697 ecode5 = SWIG_AsVal_int(obj3, &val5);
37698 if (!SWIG_IsOK(ecode5)) {
37699 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
37700 }
37701 arg5 = static_cast< int >(val5);
37702 }
37703 if (obj4) {
37704 ecode6 = SWIG_AsVal_int(obj4, &val6);
37705 if (!SWIG_IsOK(ecode6)) {
37706 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
37707 }
37708 arg6 = static_cast< int >(val6);
37709 }
37710 {
37711 PyThreadState* __tstate = wxPyBeginAllowThreads();
37712 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
37713 wxPyEndAllowThreads(__tstate);
37714 if (PyErr_Occurred()) SWIG_fail;
37715 }
37716 resultobj = SWIG_Py_Void();
37717 {
37718 if (arg3) delete [] arg3;
37719 }
37720 return resultobj;
37721fail:
37722 {
37723 if (arg3) delete [] arg3;
37724 }
37725 return NULL;
37726}
37727
37728
37729SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37730 PyObject *resultobj = 0;
37731 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37732 wxString *arg2 = 0 ;
37733 wxRect *arg3 = 0 ;
37734 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
37735 int arg5 = (int) -1 ;
37736 void *argp1 = 0 ;
37737 int res1 = 0 ;
37738 bool temp2 = false ;
37739 wxRect temp3 ;
37740 int val4 ;
37741 int ecode4 = 0 ;
37742 int val5 ;
37743 int ecode5 = 0 ;
37744 PyObject * obj0 = 0 ;
37745 PyObject * obj1 = 0 ;
37746 PyObject * obj2 = 0 ;
37747 PyObject * obj3 = 0 ;
37748 PyObject * obj4 = 0 ;
37749 char * kwnames[] = {
37750 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
37751 };
37752
37753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37755 if (!SWIG_IsOK(res1)) {
37756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37757 }
37758 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37759 {
37760 arg2 = wxString_in_helper(obj1);
37761 if (arg2 == NULL) SWIG_fail;
37762 temp2 = true;
37763 }
37764 {
37765 arg3 = &temp3;
37766 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
37767 }
37768 if (obj3) {
37769 ecode4 = SWIG_AsVal_int(obj3, &val4);
37770 if (!SWIG_IsOK(ecode4)) {
37771 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
37772 }
37773 arg4 = static_cast< int >(val4);
37774 }
37775 if (obj4) {
37776 ecode5 = SWIG_AsVal_int(obj4, &val5);
37777 if (!SWIG_IsOK(ecode5)) {
37778 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
37779 }
37780 arg5 = static_cast< int >(val5);
37781 }
37782 {
37783 PyThreadState* __tstate = wxPyBeginAllowThreads();
37784 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
37785 wxPyEndAllowThreads(__tstate);
37786 if (PyErr_Occurred()) SWIG_fail;
37787 }
37788 resultobj = SWIG_Py_Void();
37789 {
37790 if (temp2)
37791 delete arg2;
37792 }
37793 return resultobj;
37794fail:
37795 {
37796 if (temp2)
37797 delete arg2;
37798 }
37799 return NULL;
37800}
37801
37802
37803SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37804 PyObject *resultobj = 0;
37805 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37806 wxString *arg2 = 0 ;
37807 wxBitmap *arg3 = 0 ;
37808 wxRect *arg4 = 0 ;
37809 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
37810 int arg6 = (int) -1 ;
37811 void *argp1 = 0 ;
37812 int res1 = 0 ;
37813 bool temp2 = false ;
37814 void *argp3 = 0 ;
37815 int res3 = 0 ;
37816 wxRect temp4 ;
37817 int val5 ;
37818 int ecode5 = 0 ;
37819 int val6 ;
37820 int ecode6 = 0 ;
37821 PyObject * obj0 = 0 ;
37822 PyObject * obj1 = 0 ;
37823 PyObject * obj2 = 0 ;
37824 PyObject * obj3 = 0 ;
37825 PyObject * obj4 = 0 ;
37826 PyObject * obj5 = 0 ;
37827 char * kwnames[] = {
37828 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
37829 };
37830
37831 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37832 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37833 if (!SWIG_IsOK(res1)) {
37834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37835 }
37836 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37837 {
37838 arg2 = wxString_in_helper(obj1);
37839 if (arg2 == NULL) SWIG_fail;
37840 temp2 = true;
37841 }
37842 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
37843 if (!SWIG_IsOK(res3)) {
37844 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
37845 }
37846 if (!argp3) {
37847 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
37848 }
37849 arg3 = reinterpret_cast< wxBitmap * >(argp3);
37850 {
37851 arg4 = &temp4;
37852 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
37853 }
37854 if (obj4) {
37855 ecode5 = SWIG_AsVal_int(obj4, &val5);
37856 if (!SWIG_IsOK(ecode5)) {
37857 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
37858 }
37859 arg5 = static_cast< int >(val5);
37860 }
37861 if (obj5) {
37862 ecode6 = SWIG_AsVal_int(obj5, &val6);
37863 if (!SWIG_IsOK(ecode6)) {
37864 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
37865 }
37866 arg6 = static_cast< int >(val6);
37867 }
37868 {
37869 PyThreadState* __tstate = wxPyBeginAllowThreads();
37870 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
37871 wxPyEndAllowThreads(__tstate);
37872 if (PyErr_Occurred()) SWIG_fail;
37873 }
37874 resultobj = SWIG_Py_Void();
37875 {
37876 if (temp2)
37877 delete arg2;
37878 }
37879 return resultobj;
37880fail:
37881 {
37882 if (temp2)
37883 delete arg2;
37884 }
37885 return NULL;
37886}
37887
37888
37889SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37890 PyObject *resultobj = 0;
37891 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37892 int arg2 ;
37893 wxPoint *arg3 = (wxPoint *) 0 ;
37894 void *argp1 = 0 ;
37895 int res1 = 0 ;
37896 PyObject * obj0 = 0 ;
37897 PyObject * obj1 = 0 ;
37898 char * kwnames[] = {
37899 (char *) "self",(char *) "points", NULL
37900 };
37901
37902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
37903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37904 if (!SWIG_IsOK(res1)) {
37905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37906 }
37907 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37908 {
37909 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37910 if (arg3 == NULL) SWIG_fail;
37911 }
37912 {
37913 PyThreadState* __tstate = wxPyBeginAllowThreads();
37914 (arg1)->DrawSpline(arg2,arg3);
37915 wxPyEndAllowThreads(__tstate);
37916 if (PyErr_Occurred()) SWIG_fail;
37917 }
37918 resultobj = SWIG_Py_Void();
37919 {
37920 if (arg3) delete [] arg3;
37921 }
37922 return resultobj;
37923fail:
37924 {
37925 if (arg3) delete [] arg3;
37926 }
37927 return NULL;
37928}
37929
37930
37931SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37932 PyObject *resultobj = 0;
37933 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37934 void *argp1 = 0 ;
37935 int res1 = 0 ;
37936 PyObject *swig_obj[1] ;
37937
37938 if (!args) SWIG_fail;
37939 swig_obj[0] = args;
37940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37941 if (!SWIG_IsOK(res1)) {
37942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37943 }
37944 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37945 {
37946 PyThreadState* __tstate = wxPyBeginAllowThreads();
37947 (arg1)->Clear();
37948 wxPyEndAllowThreads(__tstate);
37949 if (PyErr_Occurred()) SWIG_fail;
37950 }
37951 resultobj = SWIG_Py_Void();
37952 return resultobj;
37953fail:
37954 return NULL;
37955}
37956
37957
37958SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37959 PyObject *resultobj = 0;
37960 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37961 wxFont *arg2 = 0 ;
37962 void *argp1 = 0 ;
37963 int res1 = 0 ;
37964 void *argp2 = 0 ;
37965 int res2 = 0 ;
37966 PyObject * obj0 = 0 ;
37967 PyObject * obj1 = 0 ;
37968 char * kwnames[] = {
37969 (char *) "self",(char *) "font", NULL
37970 };
37971
37972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
37973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37974 if (!SWIG_IsOK(res1)) {
37975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37976 }
37977 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37978 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
37979 if (!SWIG_IsOK(res2)) {
37980 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
37981 }
37982 if (!argp2) {
37983 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
37984 }
37985 arg2 = reinterpret_cast< wxFont * >(argp2);
37986 {
37987 PyThreadState* __tstate = wxPyBeginAllowThreads();
37988 (arg1)->SetFont((wxFont const &)*arg2);
37989 wxPyEndAllowThreads(__tstate);
37990 if (PyErr_Occurred()) SWIG_fail;
37991 }
37992 resultobj = SWIG_Py_Void();
37993 return resultobj;
37994fail:
37995 return NULL;
37996}
37997
37998
37999SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38000 PyObject *resultobj = 0;
38001 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38002 wxPen *arg2 = 0 ;
38003 void *argp1 = 0 ;
38004 int res1 = 0 ;
38005 void *argp2 = 0 ;
38006 int res2 = 0 ;
38007 PyObject * obj0 = 0 ;
38008 PyObject * obj1 = 0 ;
38009 char * kwnames[] = {
38010 (char *) "self",(char *) "pen", NULL
38011 };
38012
38013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
38014 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38015 if (!SWIG_IsOK(res1)) {
38016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38017 }
38018 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38019 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
38020 if (!SWIG_IsOK(res2)) {
38021 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
38022 }
38023 if (!argp2) {
38024 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
38025 }
38026 arg2 = reinterpret_cast< wxPen * >(argp2);
38027 {
38028 PyThreadState* __tstate = wxPyBeginAllowThreads();
38029 (arg1)->SetPen((wxPen const &)*arg2);
38030 wxPyEndAllowThreads(__tstate);
38031 if (PyErr_Occurred()) SWIG_fail;
38032 }
38033 resultobj = SWIG_Py_Void();
38034 return resultobj;
38035fail:
38036 return NULL;
38037}
38038
38039
38040SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38041 PyObject *resultobj = 0;
38042 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38043 wxBrush *arg2 = 0 ;
38044 void *argp1 = 0 ;
38045 int res1 = 0 ;
38046 void *argp2 = 0 ;
38047 int res2 = 0 ;
38048 PyObject * obj0 = 0 ;
38049 PyObject * obj1 = 0 ;
38050 char * kwnames[] = {
38051 (char *) "self",(char *) "brush", NULL
38052 };
38053
38054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
38055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38056 if (!SWIG_IsOK(res1)) {
38057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38058 }
38059 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38060 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38061 if (!SWIG_IsOK(res2)) {
38062 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38063 }
38064 if (!argp2) {
38065 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38066 }
38067 arg2 = reinterpret_cast< wxBrush * >(argp2);
38068 {
38069 PyThreadState* __tstate = wxPyBeginAllowThreads();
38070 (arg1)->SetBrush((wxBrush const &)*arg2);
38071 wxPyEndAllowThreads(__tstate);
38072 if (PyErr_Occurred()) SWIG_fail;
38073 }
38074 resultobj = SWIG_Py_Void();
38075 return resultobj;
38076fail:
38077 return NULL;
38078}
38079
38080
38081SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38082 PyObject *resultobj = 0;
38083 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38084 wxBrush *arg2 = 0 ;
38085 void *argp1 = 0 ;
38086 int res1 = 0 ;
38087 void *argp2 = 0 ;
38088 int res2 = 0 ;
38089 PyObject * obj0 = 0 ;
38090 PyObject * obj1 = 0 ;
38091 char * kwnames[] = {
38092 (char *) "self",(char *) "brush", NULL
38093 };
38094
38095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38097 if (!SWIG_IsOK(res1)) {
38098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38099 }
38100 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38101 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38102 if (!SWIG_IsOK(res2)) {
38103 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38104 }
38105 if (!argp2) {
38106 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38107 }
38108 arg2 = reinterpret_cast< wxBrush * >(argp2);
38109 {
38110 PyThreadState* __tstate = wxPyBeginAllowThreads();
38111 (arg1)->SetBackground((wxBrush const &)*arg2);
38112 wxPyEndAllowThreads(__tstate);
38113 if (PyErr_Occurred()) SWIG_fail;
38114 }
38115 resultobj = SWIG_Py_Void();
38116 return resultobj;
38117fail:
38118 return NULL;
38119}
38120
38121
38122SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38123 PyObject *resultobj = 0;
38124 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38125 int arg2 ;
38126 void *argp1 = 0 ;
38127 int res1 = 0 ;
38128 int val2 ;
38129 int ecode2 = 0 ;
38130 PyObject * obj0 = 0 ;
38131 PyObject * obj1 = 0 ;
38132 char * kwnames[] = {
38133 (char *) "self",(char *) "mode", NULL
38134 };
38135
38136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
38137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38138 if (!SWIG_IsOK(res1)) {
38139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38140 }
38141 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38142 ecode2 = SWIG_AsVal_int(obj1, &val2);
38143 if (!SWIG_IsOK(ecode2)) {
38144 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
38145 }
38146 arg2 = static_cast< int >(val2);
38147 {
38148 PyThreadState* __tstate = wxPyBeginAllowThreads();
38149 (arg1)->SetBackgroundMode(arg2);
38150 wxPyEndAllowThreads(__tstate);
38151 if (PyErr_Occurred()) SWIG_fail;
38152 }
38153 resultobj = SWIG_Py_Void();
38154 return resultobj;
38155fail:
38156 return NULL;
38157}
38158
38159
38160SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38161 PyObject *resultobj = 0;
38162 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38163 wxPalette *arg2 = 0 ;
38164 void *argp1 = 0 ;
38165 int res1 = 0 ;
38166 void *argp2 = 0 ;
38167 int res2 = 0 ;
38168 PyObject * obj0 = 0 ;
38169 PyObject * obj1 = 0 ;
38170 char * kwnames[] = {
38171 (char *) "self",(char *) "palette", NULL
38172 };
38173
38174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
38175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38176 if (!SWIG_IsOK(res1)) {
38177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38178 }
38179 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38180 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
38181 if (!SWIG_IsOK(res2)) {
38182 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38183 }
38184 if (!argp2) {
38185 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38186 }
38187 arg2 = reinterpret_cast< wxPalette * >(argp2);
38188 {
38189 PyThreadState* __tstate = wxPyBeginAllowThreads();
38190 (arg1)->SetPalette((wxPalette const &)*arg2);
38191 wxPyEndAllowThreads(__tstate);
38192 if (PyErr_Occurred()) SWIG_fail;
38193 }
38194 resultobj = SWIG_Py_Void();
38195 return resultobj;
38196fail:
38197 return NULL;
38198}
38199
38200
38201SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38202 PyObject *resultobj = 0;
38203 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38204 wxColour *arg2 = 0 ;
38205 void *argp1 = 0 ;
38206 int res1 = 0 ;
38207 wxColour temp2 ;
38208 PyObject * obj0 = 0 ;
38209 PyObject * obj1 = 0 ;
38210 char * kwnames[] = {
38211 (char *) "self",(char *) "colour", NULL
38212 };
38213
38214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
38215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38216 if (!SWIG_IsOK(res1)) {
38217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38218 }
38219 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38220 {
38221 arg2 = &temp2;
38222 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38223 }
38224 {
38225 PyThreadState* __tstate = wxPyBeginAllowThreads();
38226 (arg1)->SetTextForeground((wxColour const &)*arg2);
38227 wxPyEndAllowThreads(__tstate);
38228 if (PyErr_Occurred()) SWIG_fail;
38229 }
38230 resultobj = SWIG_Py_Void();
38231 return resultobj;
38232fail:
38233 return NULL;
38234}
38235
38236
38237SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38238 PyObject *resultobj = 0;
38239 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38240 wxColour *arg2 = 0 ;
38241 void *argp1 = 0 ;
38242 int res1 = 0 ;
38243 wxColour temp2 ;
38244 PyObject * obj0 = 0 ;
38245 PyObject * obj1 = 0 ;
38246 char * kwnames[] = {
38247 (char *) "self",(char *) "colour", NULL
38248 };
38249
38250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38252 if (!SWIG_IsOK(res1)) {
38253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38254 }
38255 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38256 {
38257 arg2 = &temp2;
38258 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38259 }
38260 {
38261 PyThreadState* __tstate = wxPyBeginAllowThreads();
38262 (arg1)->SetTextBackground((wxColour const &)*arg2);
38263 wxPyEndAllowThreads(__tstate);
38264 if (PyErr_Occurred()) SWIG_fail;
38265 }
38266 resultobj = SWIG_Py_Void();
38267 return resultobj;
38268fail:
38269 return NULL;
38270}
38271
38272
38273SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38274 PyObject *resultobj = 0;
38275 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38276 int arg2 ;
38277 void *argp1 = 0 ;
38278 int res1 = 0 ;
38279 int val2 ;
38280 int ecode2 = 0 ;
38281 PyObject * obj0 = 0 ;
38282 PyObject * obj1 = 0 ;
38283 char * kwnames[] = {
38284 (char *) "self",(char *) "function", NULL
38285 };
38286
38287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
38288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38289 if (!SWIG_IsOK(res1)) {
38290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38291 }
38292 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38293 ecode2 = SWIG_AsVal_int(obj1, &val2);
38294 if (!SWIG_IsOK(ecode2)) {
38295 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
38296 }
38297 arg2 = static_cast< int >(val2);
38298 {
38299 PyThreadState* __tstate = wxPyBeginAllowThreads();
38300 (arg1)->SetLogicalFunction(arg2);
38301 wxPyEndAllowThreads(__tstate);
38302 if (PyErr_Occurred()) SWIG_fail;
38303 }
38304 resultobj = SWIG_Py_Void();
38305 return resultobj;
38306fail:
38307 return NULL;
38308}
38309
38310
38311SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38312 PyObject *obj;
38313 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38314 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
38315 return SWIG_Py_Void();
38316}
38317
38318SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38319 return SWIG_Python_InitShadowInstance(args);
38320}
38321
38322static PyMethodDef SwigMethods[] = {
38323 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
38324 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
38325 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
38326 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
38327 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
38328 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
38329 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
38330 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38331 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
38332 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
38333 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
38334 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
fc46b7f3 38335 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
b39fe951 38336 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
27e45892
RD
38337 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38338 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38339 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38340 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
38341 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
38342 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38343 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
fc46b7f3 38344 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38345 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
38346 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
38347 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
38348 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
38349 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
38350 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
38351 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38352 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
b39fe951 38353 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
27e45892
RD
38354 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
38355 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
38356 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
38357 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
38358 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
38359 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
38360 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
38361 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
38362 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
b39fe951 38363 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
27e45892
RD
38364 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
38365 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38366 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
38367 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38368 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38369 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38370 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
38371 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38372 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38373 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38374 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
38375 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
38376 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
38377 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38378 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
38379 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38380 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38381 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
38382 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
38383 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
38384 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
38385 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
b39fe951 38386 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
27e45892
RD
38387 { (char *)"Brush_MacGetTheme", (PyCFunction)_wrap_Brush_MacGetTheme, METH_O, NULL},
38388 { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS, NULL},
38389 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
38390 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
38391 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38392 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
38393 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38394 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38395 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
38396 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
38397 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38398 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
27e45892
RD
38399 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
38400 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
38401 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
38402 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
38403 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
38404 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
38405 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
38406 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
38407 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38408 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
38409 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
38410 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
38411 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38412 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38413 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38414 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38415 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
8f514ab4
RD
38416 { (char *)"Bitmap_CopyFromBuffer", (PyCFunction) _wrap_Bitmap_CopyFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38417 { (char *)"Bitmap_CopyFromBufferRGBA", (PyCFunction) _wrap_Bitmap_CopyFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38418 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38419 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38420 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
38421 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
38422 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
38423 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38424 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
38425 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
38426 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
38427 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
38428 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
38429 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
38430 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
38431 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
38432 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
38433 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
38434 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
38435 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
38436 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
38437 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
38438 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
38439 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
38440 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38441 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
38442 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
38443 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38444 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38445 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38446 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38447 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38448 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
38449 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
38450 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
38451 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
38452 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
38453 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
38454 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
38455 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
38456 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
38457 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
38458 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
38459 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
38460 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38461 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
38462 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
38463 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38464 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38465 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38466 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38467 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38468 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
38469 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
38470 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
27e45892
RD
38471 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
38472 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
38473 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
38474 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
38475 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
38476 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
38477 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
38478 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38479 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38480 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38481 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
27e45892
RD
38482 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
38483 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
38484 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
38485 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38486 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38487 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38488 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38489 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
38490 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
38491 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38492 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
38493 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
38494 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
38495 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
38496 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
38497 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
38498 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
38499 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
38500 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
38501 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38502 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38503 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
38504 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38505 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38506 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38507 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
38508 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
38509 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
38510 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
38511 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
38512 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38513 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
27e45892
RD
38514 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
38515 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
38516 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
38517 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38518 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38519 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
38520 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
38521 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
38522 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38523 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
38524 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38525 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
38526 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
38527 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
38528 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
38529 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
38530 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38531 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
f5263701 38532 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38533 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
38534 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
38535 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38536 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
38537 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
38538 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38539 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
38540 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
38541 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38542 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
38543 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38544 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38545 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
38546 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
38547 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
38548 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
38549 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
38550 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
38551 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
38552 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
38553 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
38554 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
38555 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
38556 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
38557 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
38558 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
38559 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
38560 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
38561 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
38562 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
38563 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
38564 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
38565 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
38566 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
38567 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
38568 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
38569 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
38570 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
38571 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
38572 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
38573 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38574 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38575 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38576 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38577 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38578 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38579 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38580 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38581 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
38582 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
38583 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
38584 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
38585 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
38586 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
38587 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
38588 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
38589 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
38590 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
38591 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
38592 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
38593 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38594 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
38595 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
38596 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
38597 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38598 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38599 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
38600 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
38601 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
38602 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38603 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38604 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
38605 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38606 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
38607 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
38608 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38609 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
38610 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
38611 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38612 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
38613 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
38614 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
38615 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
38616 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
38617 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
38618 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
38619 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38620 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
38621 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
38622 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38623 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38624 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
27e45892 38625 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38626 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38627 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
38628 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
38629 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
38630 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
38631 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
38632 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
38633 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
38634 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
38635 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
38636 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
38637 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
38638 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
38639 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
38640 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38641 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38642 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38643 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38644 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38645 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38646 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38647 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38648 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38649 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
38650 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
38651 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
38652 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
38653 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
38654 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
38655 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
38656 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
38657 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38658 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
38659 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
38660 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
38661 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
38662 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38663 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
38664 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
38665 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
38666 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
38667 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38668 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
38669 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
38670 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
38671 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
38672 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
38673 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
38674 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
38675 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
38676 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
38677 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
38678 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
38679 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
38680 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
38681 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
38682 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
38683 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
38684 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
38685 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
38686 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
38687 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
38688 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
38689 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
38690 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b 38691 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38692 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
38693 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38694 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
38695 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38696 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
38697 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
38698 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
38699 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
38700 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
38701 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
38702 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
38703 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38704 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
38705 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
38706 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
38707 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
1bd55598
RD
38708 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
38709 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
38710 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
38711 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
38712 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
38713 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
38714 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
38715 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
38716 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
38717 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
38718 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
38719 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
38720 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
38721 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38722 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
38723 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
38724 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
38725 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38726 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
38727 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
38728 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
38729 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38730 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
38731 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38732 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
38733 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
38734 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
38735 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38736 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38737 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38738 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38739 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
38740 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38741 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38742 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
38743 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38744 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
38745 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
38746 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
38747 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
38748 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38749 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38750 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38751 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38752 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38753 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
38754 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38755 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
38756 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38757 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
38758 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
8f514ab4 38759 { (char *)"DC_GetAsBitmap", (PyCFunction) _wrap_DC_GetAsBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38760 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38761 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38762 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38763 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
38764 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
38765 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
38766 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
38767 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
38768 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
38769 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
38770 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
38771 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
38772 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
38773 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
38774 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
38775 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
38776 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38777 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
38778 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
38779 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
38780 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
38781 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
38782 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
38783 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
38784 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
38785 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38786 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38787 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38788 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
38789 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
38790 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
38791 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
38792 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
38793 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
38794 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
38795 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
38796 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
38797 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
38798 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
38799 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
38800 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
38801 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
38802 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
38803 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
38804 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
b39fe951 38805 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
1bd55598
RD
38806 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
38807 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
38808 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
38809 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
38810 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
38811 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
38812 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
38813 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
38814 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
38815 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
38816 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
38817 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
38818 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
38819 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
38820 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
38821 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
38822 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
38823 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
38824 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38825 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
38826 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
38827 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
38828 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38829 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
38830 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
38831 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
38832 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
38833 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
38834 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38835 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
38836 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
38837 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
38838 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
38839 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
38840 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
b39fe951
RD
38841 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
38842 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38843 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
38844 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
38845 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
38846 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
38847 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
38848 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
38849 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
70d7cb34
RD
38850 { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL},
38851 { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL},
38852 { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL},
38853 { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL},
38854 { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL},
38855 { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL},
38856 { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL},
38857 { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL},
38858 { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL},
38859 { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL},
38860 { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL},
38861 { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL},
38862 { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL},
38863 { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL},
38864 { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL},
38865 { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL},
1bd55598
RD
38866 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
38867 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
38868 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
38869 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
38870 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
38871 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
72ef6efb
RD
38872 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
38873 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
38874 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
1bd55598
RD
38875 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
38876 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
38877 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
38878 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
38879 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
38880 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
26c4d26f
RD
38881 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
38882 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
38883 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
38884 { (char *)"MemoryDC_SelectObjectAsSource", (PyCFunction) _wrap_MemoryDC_SelectObjectAsSource, METH_VARARGS | METH_KEYWORDS, NULL},
38885 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
38886 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
24f6c4e8
RD
38887 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
38888 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
38889 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
b6df5cf9
RD
38890 { (char *)"BufferedDC_SetStyle", (PyCFunction) _wrap_BufferedDC_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38891 { (char *)"BufferedDC_GetStyle", (PyCFunction)_wrap_BufferedDC_GetStyle, METH_O, NULL},
24f6c4e8
RD
38892 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
38893 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
38894 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
38895 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
38896 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
38897 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
38898 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
38899 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
8e99bda9 38900 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38901 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
38902 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
38903 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
38904 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
38905 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
38906 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
38907 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
38908 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
38909 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
38910 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
38911 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
38912 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
b39fe951 38913 { (char *)"MetaFile_IsOk", (PyCFunction)_wrap_MetaFile_IsOk, METH_O, NULL},
1bd55598
RD
38914 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
38915 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
38916 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
38917 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
38918 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
38919 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
38920 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
38921 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
38922 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
38923 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
38924 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
38925 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
38926 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
70d7cb34
RD
38927 { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL},
38928 { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL},
38929 { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL},
38930 { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL},
38931 { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL},
38932 { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL},
38933 { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL},
38934 { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL},
38935 { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL},
38936 { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL},
38937 { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL},
38938 { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL},
38939 { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL},
38940 { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL},
38941 { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL},
38942 { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL},
38943 { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL},
38944 { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL},
8f514ab4 38945 { (char *)"new_GraphicsMatrix", (PyCFunction)_wrap_new_GraphicsMatrix, METH_NOARGS, NULL},
5c8c7dd3
RD
38946 { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL},
38947 { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL},
5c8c7dd3
RD
38948 { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38949 { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL},
38950 { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
38951 { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL},
38952 { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
38953 { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
38954 { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
38955 { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38956 { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL},
38957 { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL},
38958 { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL},
8f514ab4
RD
38959 { (char *)"GraphicsMatrix_swiginit", GraphicsMatrix_swiginit, METH_VARARGS, NULL},
38960 { (char *)"new_GraphicsPath", (PyCFunction)_wrap_new_GraphicsPath, METH_NOARGS, NULL},
72ef6efb 38961 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
70d7cb34
RD
38962 { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL},
38963 { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL},
38964 { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL},
38965 { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
38966 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
38967 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
70d7cb34 38968 { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL},
72ef6efb
RD
38969 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38970 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38971 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
38972 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34
RD
38973 { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
38974 { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38975 { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL},
38976 { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL},
38977 { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL},
38978 { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL},
38979 { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL},
72ef6efb 38980 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
8f514ab4 38981 { (char *)"GraphicsPath_swiginit", GraphicsPath_swiginit, METH_VARARGS, NULL},
72ef6efb 38982 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
0a27f394
RD
38983 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
38984 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34 38985 { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb 38986 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
70d7cb34
RD
38987 { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
38988 { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38989 { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38990 { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38991 { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
38992 { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
38993 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
38994 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
0a27f394 38995 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb 38996 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
0a27f394
RD
38997 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
38998 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
72ef6efb
RD
38999 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
39000 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
39001 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
5c8c7dd3
RD
39002 { (char *)"GraphicsContext_ConcatTransform", (PyCFunction) _wrap_GraphicsContext_ConcatTransform, METH_VARARGS | METH_KEYWORDS, NULL},
39003 { (char *)"GraphicsContext_SetTransform", (PyCFunction) _wrap_GraphicsContext_SetTransform, METH_VARARGS | METH_KEYWORDS, NULL},
39004 { (char *)"GraphicsContext_GetTransform", (PyCFunction)_wrap_GraphicsContext_GetTransform, METH_O, NULL},
70d7cb34
RD
39005 { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL},
39006 { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL},
39007 { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL},
72ef6efb
RD
39008 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
39009 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
39010 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951
RD
39011 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39012 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
be68621e 39013 { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39014 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39015 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
39016 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39017 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39018 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 39019 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
f8eb59b9 39020 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39021 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39022 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39023 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39024 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34 39025 { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL},
72ef6efb 39026 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
70d7cb34
RD
39027 { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL},
39028 { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL},
39029 { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL},
39030 { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL},
39031 { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
39032 { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL},
39033 { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
39034 { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39035 { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39036 { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39037 { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39038 { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39039 { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL},
72ef6efb
RD
39040 { (char *)"new_GCDC", (PyCFunction) _wrap_new_GCDC, METH_VARARGS | METH_KEYWORDS, NULL},
39041 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
0a27f394
RD
39042 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
39043 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39044 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
39045 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
b39fe951
RD
39046 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
39047 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
39048 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
39049 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
39050 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
39051 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
39052 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
39053 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
39054 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
39055 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
1bd55598
RD
39056 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
39057 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
39058 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
39059 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
39060 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39061 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39062 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39063 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
39064 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
39065 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
39066 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
39067 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
39068 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39069 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
39070 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
da91cb0f
RD
39071 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
39072 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
39073 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
39074 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
39075 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39076 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39077 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39078 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39079 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39080 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
39081 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
39082 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
39083 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
39084 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
39085 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
1bd55598 39086 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
da91cb0f 39087 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 39088 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 39089 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
1bd55598 39090 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
da91cb0f 39091 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 39092 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 39093 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
da91cb0f
RD
39094 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39095 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
39096 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
39097 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
1bd55598
RD
39098 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
39099 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
39100 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
39101 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
39102 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
39103 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
39104 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
39105 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
da91cb0f
RD
39106 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
39107 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
39108 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
39109 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
1bd55598
RD
39110 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
39111 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
39112 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
39113 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
39114 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
39115 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
39116 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
39117 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39118 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
39119 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39120 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39121 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39122 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
39123 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39124 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
39125 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
39126 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
39127 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
39128 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
39129 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
39130 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
39131 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
39132 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
33d6fd3b
RD
39133 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
39134 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
39135 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
39136 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
39137 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
39138 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
39139 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
39140 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
39141 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
39142 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
39143 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
39144 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
39145 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
39146 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
39147 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
39148 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
39149 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
39150 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
1bd55598
RD
39151 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
39152 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
39153 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
39154 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
39155 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
39156 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
39157 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
39158 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b
RD
39159 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
39160 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
39161 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
39162 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
39163 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
39164 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
39165 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
2131d850
RD
39166 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
39167 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
39168 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
39169 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
39170 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
39171 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
39172 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
39173 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39174 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
39175 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
27e45892
RD
39176 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
39177 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
39178 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
39179 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
39180 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
39181 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
39182 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
39183 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
39184 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
39185 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39186 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39187 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39188 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
39189 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
39190 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39191 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39192 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39193 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
39194 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
39195 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39196 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
39197 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39198 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
39199 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39200 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
39201 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39202 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
39203 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39204 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
39205 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
39206 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
39207 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39208 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39209 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39210 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39211 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39212 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39213 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39214 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39215 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39216 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39217 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39218 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39219 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
39220 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39221 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39222 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39223 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39224 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39225 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39226 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39227 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39228 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39229 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39230 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
39231 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39232 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39233 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
39234 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
39235 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39236 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39237 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39238 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39239 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
39240 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39241 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
39242 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39243 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39244 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
39245 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
1bd55598
RD
39246 { NULL, NULL, 0, NULL }
39247};
39248
39249
39250/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
39251
72ef6efb
RD
39252static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
39253 return (void *)((wxClientDC *) ((wxPaintDC *) x));
39254}
8e99bda9
RD
39255static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
39256 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
39257}
39258static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
39259 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
39260}
26c4d26f
RD
39261static void *_p_wxBufferedDCTo_p_wxWindowDC(void *x) {
39262 return (void *)((wxWindowDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
39263}
39264static void *_p_wxMemoryDCTo_p_wxWindowDC(void *x) {
39265 return (void *)((wxWindowDC *) ((wxMemoryDC *) x));
39266}
72ef6efb
RD
39267static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
39268 return (void *)((wxWindowDC *) ((wxClientDC *) x));
39269}
39270static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
39271 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
39272}
26c4d26f
RD
39273static void *_p_wxBufferedPaintDCTo_p_wxWindowDC(void *x) {
39274 return (void *)((wxWindowDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
39275}
fc46b7f3
RD
39276static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
39277 return (void *)((wxLocale *) ((wxPyLocale *) x));
39278}
70d7cb34
RD
39279static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) {
39280 return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x));
39281}
39282static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) {
39283 return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x));
39284}
39285static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) {
39286 return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x));
39287}
39288static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) {
39289 return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x));
39290}
39291static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) {
39292 return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x));
39293}
39294static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) {
39295 return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x));
39296}
1bd55598
RD
39297static void *_p_wxIconTo_p_wxGDIObject(void *x) {
39298 return (void *)((wxGDIObject *) ((wxIcon *) x));
39299}
39300static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
39301 return (void *)((wxGDIObject *) ((wxPalette *) x));
39302}
39303static void *_p_wxPenTo_p_wxGDIObject(void *x) {
39304 return (void *)((wxGDIObject *) ((wxPen *) x));
39305}
39306static void *_p_wxFontTo_p_wxGDIObject(void *x) {
39307 return (void *)((wxGDIObject *) ((wxFont *) x));
39308}
39309static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
39310 return (void *)((wxGDIObject *) ((wxCursor *) x));
39311}
39312static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
39313 return (void *)((wxGDIObject *) ((wxBitmap *) x));
39314}
39315static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
39316 return (void *)((wxGDIObject *) ((wxRegion *) x));
39317}
39318static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
39319 return (void *)((wxGDIObject *) ((wxBrush *) x));
39320}
72ef6efb
RD
39321static void *_p_wxGCDCTo_p_wxDC(void *x) {
39322 return (void *)((wxDC *) ((wxGCDC *) x));
39323}
1bd55598
RD
39324static void *_p_wxScreenDCTo_p_wxDC(void *x) {
39325 return (void *)((wxDC *) ((wxScreenDC *) x));
39326}
24f6c4e8 39327static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
26c4d26f 39328 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
24f6c4e8 39329}
1bd55598
RD
39330static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
39331 return (void *)((wxDC *) ((wxMirrorDC *) x));
39332}
1bd55598
RD
39333static void *_p_wxWindowDCTo_p_wxDC(void *x) {
39334 return (void *)((wxDC *) ((wxWindowDC *) x));
39335}
26c4d26f
RD
39336static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
39337 return (void *)((wxDC *) (wxWindowDC *) ((wxMemoryDC *) x));
39338}
1bd55598
RD
39339static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
39340 return (void *)((wxDC *) ((wxMetaFileDC *) x));
39341}
1bd55598 39342static void *_p_wxClientDCTo_p_wxDC(void *x) {
72ef6efb 39343 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
1bd55598
RD
39344}
39345static void *_p_wxPaintDCTo_p_wxDC(void *x) {
72ef6efb 39346 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
1bd55598 39347}
24f6c4e8 39348static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
26c4d26f 39349 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
24f6c4e8
RD
39350}
39351static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
39352 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
39353}
1bd55598
RD
39354static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
39355 return (void *)((wxDC *) ((wxPostScriptDC *) x));
39356}
39357static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
39358 return (void *)((wxDC *) ((wxPrinterDC *) x));
39359}
da91cb0f
RD
39360static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
39361 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
39362}
39363static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
39364 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
39365}
39366static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
39367 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
39368}
1bd55598
RD
39369static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
39370 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
39371}
39372static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
39373 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
39374}
39375static void *_p_wxPenTo_p_wxObject(void *x) {
39376 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
39377}
39378static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
39379 return (void *)((wxObject *) ((wxRegionIterator *) x));
39380}
1bd55598
RD
39381static void *_p_wxSizerItemTo_p_wxObject(void *x) {
39382 return (void *)((wxObject *) ((wxSizerItem *) x));
39383}
34e0a3bb
RD
39384static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
39385 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
39386}
1bd55598
RD
39387static void *_p_wxScrollEventTo_p_wxObject(void *x) {
39388 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
39389}
39390static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
39391 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
39392}
39393static void *_p_wxIconTo_p_wxObject(void *x) {
39394 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
39395}
39396static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
39397 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
39398}
39399static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
39400 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
39401}
39402static void *_p_wxSizerTo_p_wxObject(void *x) {
39403 return (void *)((wxObject *) ((wxSizer *) x));
39404}
39405static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
39406 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
39407}
39408static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
39409 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
39410}
1bd55598
RD
39411static void *_p_wxEventTo_p_wxObject(void *x) {
39412 return (void *)((wxObject *) ((wxEvent *) x));
39413}
39414static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
39415 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
39416}
39417static void *_p_wxGridSizerTo_p_wxObject(void *x) {
39418 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
39419}
39420static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
39421 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
39422}
27e45892
RD
39423static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
39424 return (void *)((wxObject *) ((wxPseudoDC *) x));
39425}
2131d850
RD
39426static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
39427 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
39428}
1bd55598
RD
39429static void *_p_wxPaintEventTo_p_wxObject(void *x) {
39430 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
39431}
39432static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
39433 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
39434}
39435static void *_p_wxDCTo_p_wxObject(void *x) {
39436 return (void *)((wxObject *) ((wxDC *) x));
39437}
39438static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
39439 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
39440}
39441static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
39442 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
39443}
39444static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
39445 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
39446}
39447static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
39448 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
39449}
39450static void *_p_wxControlTo_p_wxObject(void *x) {
39451 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
39452}
70d7cb34
RD
39453static void *_p_wxGraphicsPenTo_p_wxObject(void *x) {
39454 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x));
39455}
1bd55598
RD
39456static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
39457 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
39458}
39459static void *_p_wxClientDCTo_p_wxObject(void *x) {
72ef6efb 39460 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
1bd55598
RD
39461}
39462static void *_p_wxFSFileTo_p_wxObject(void *x) {
39463 return (void *)((wxObject *) ((wxFSFile *) x));
39464}
39465static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
26c4d26f 39466 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxMemoryDC *) x));
1bd55598
RD
39467}
39468static void *_p_wxRegionTo_p_wxObject(void *x) {
39469 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
39470}
39471static void *_p_wxPySizerTo_p_wxObject(void *x) {
39472 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
39473}
39474static void *_p_wxWindowDCTo_p_wxObject(void *x) {
39475 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
39476}
39477static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
39478 return (void *)((wxObject *) ((wxGDIObject *) x));
39479}
70d7cb34
RD
39480static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) {
39481 return (void *)((wxObject *) ((wxGraphicsObject *) x));
39482}
39483static void *_p_wxGraphicsPathTo_p_wxObject(void *x) {
39484 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x));
39485}
1bd55598
RD
39486static void *_p_wxEffectsTo_p_wxObject(void *x) {
39487 return (void *)((wxObject *) ((wxEffects *) x));
39488}
39489static void *_p_wxPyEventTo_p_wxObject(void *x) {
39490 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
39491}
39492static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
39493 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
39494}
39495static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
39496 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
39497}
70d7cb34
RD
39498static void *_p_wxGraphicsContextTo_p_wxObject(void *x) {
39499 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x));
39500}
1bd55598
RD
39501static void *_p_wxShowEventTo_p_wxObject(void *x) {
39502 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
39503}
39504static void *_p_wxMenuItemTo_p_wxObject(void *x) {
39505 return (void *)((wxObject *) ((wxMenuItem *) x));
39506}
39507static void *_p_wxDateEventTo_p_wxObject(void *x) {
39508 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
39509}
39510static void *_p_wxIdleEventTo_p_wxObject(void *x) {
39511 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
39512}
39513static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
39514 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
39515}
39516static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
39517 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
39518}
39519static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
39520 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
39521}
39522static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
39523 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
39524}
39525static void *_p_wxSizeEventTo_p_wxObject(void *x) {
39526 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
39527}
39528static void *_p_wxMoveEventTo_p_wxObject(void *x) {
39529 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
39530}
39531static void *_p_wxActivateEventTo_p_wxObject(void *x) {
39532 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
39533}
39534static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
39535 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
39536}
39537static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
39538 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
39539}
39540static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
39541 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
39542}
39543static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
39544 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
39545}
39546static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
39547 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
39548}
39549static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
39550 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
39551}
39552static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
39553 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
39554}
39555static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
39556 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
39557}
39558static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
39559 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
39560}
39561static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
39562 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
39563}
39564static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
39565 return (void *)((wxObject *) ((wxImageHandler *) x));
39566}
39567static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
39568 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
39569}
39570static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
39571 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
39572}
580080c5
RD
39573static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
39574 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
39575}
1bd55598
RD
39576static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
39577 return (void *)((wxObject *) ((wxEvtHandler *) x));
39578}
34e0a3bb
RD
39579static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
39580 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
39581}
24f6c4e8
RD
39582static void *_p_wxPaintDCTo_p_wxObject(void *x) {
39583 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
39584}
1bd55598 39585static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
26c4d26f 39586 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
1bd55598 39587}
24f6c4e8
RD
39588static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
39589 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
1bd55598
RD
39590}
39591static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
39592 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
39593}
39594static void *_p_wxScreenDCTo_p_wxObject(void *x) {
39595 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
39596}
1bd55598
RD
39597static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
39598 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
39599}
580080c5
RD
39600static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
39601 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
39602}
1bd55598
RD
39603static void *_p_wxImageTo_p_wxObject(void *x) {
39604 return (void *)((wxObject *) ((wxImage *) x));
39605}
39606static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
39607 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
39608}
70d7cb34
RD
39609static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) {
39610 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x));
39611}
39612static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) {
39613 return (void *)((wxObject *) ((wxGraphicsRenderer *) x));
39614}
1bd55598
RD
39615static void *_p_wxPaletteTo_p_wxObject(void *x) {
39616 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
39617}
39618static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
26c4d26f 39619 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
1bd55598
RD
39620}
39621static void *_p_wxImageListTo_p_wxObject(void *x) {
39622 return (void *)((wxObject *) ((wxImageList *) x));
39623}
72ef6efb
RD
39624static void *_p_wxGCDCTo_p_wxObject(void *x) {
39625 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
39626}
1bd55598
RD
39627static void *_p_wxCursorTo_p_wxObject(void *x) {
39628 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
39629}
39630static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
39631 return (void *)((wxObject *) ((wxEncodingConverter *) x));
39632}
39633static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
39634 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
39635}
70d7cb34
RD
39636static void *_p_wxGraphicsFontTo_p_wxObject(void *x) {
39637 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x));
39638}
1bd55598
RD
39639static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
39640 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
39641}
39642static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
39643 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
39644}
39645static void *_p_wxKeyEventTo_p_wxObject(void *x) {
39646 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
39647}
39648static void *_p_wxWindowTo_p_wxObject(void *x) {
39649 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
39650}
39651static void *_p_wxMenuTo_p_wxObject(void *x) {
39652 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
39653}
39654static void *_p_wxMenuBarTo_p_wxObject(void *x) {
39655 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
39656}
39657static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
39658 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
39659}
1bd55598
RD
39660static void *_p_wxFileSystemTo_p_wxObject(void *x) {
39661 return (void *)((wxObject *) ((wxFileSystem *) x));
39662}
39663static void *_p_wxBitmapTo_p_wxObject(void *x) {
39664 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
39665}
39666static void *_p_wxMaskTo_p_wxObject(void *x) {
39667 return (void *)((wxObject *) ((wxMask *) x));
39668}
70d7cb34
RD
39669static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) {
39670 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x));
39671}
1bd55598
RD
39672static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
39673 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
39674}
39675static void *_p_wxMenuEventTo_p_wxObject(void *x) {
39676 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
39677}
39678static void *_p_wxPyAppTo_p_wxObject(void *x) {
39679 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
39680}
39681static void *_p_wxCloseEventTo_p_wxObject(void *x) {
39682 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
39683}
39684static void *_p_wxMouseEventTo_p_wxObject(void *x) {
39685 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
39686}
39687static void *_p_wxEraseEventTo_p_wxObject(void *x) {
39688 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
39689}
39690static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
39691 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
39692}
39693static void *_p_wxCommandEventTo_p_wxObject(void *x) {
39694 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
39695}
39696static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
39697 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
39698}
39699static void *_p_wxFocusEventTo_p_wxObject(void *x) {
39700 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
39701}
39702static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
39703 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
39704}
39705static void *_p_wxFontTo_p_wxObject(void *x) {
39706 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
39707}
39708static void *_p_wxBrushTo_p_wxObject(void *x) {
39709 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
39710}
39711static void *_p_wxMetaFileTo_p_wxObject(void *x) {
39712 return (void *)((wxObject *) ((wxMetaFile *) x));
39713}
39714static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
39715 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
39716}
39717static void *_p_wxColourTo_p_wxObject(void *x) {
39718 return (void *)((wxObject *) ((wxColour *) x));
39719}
1bd55598
RD
39720static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
39721 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
39722}
39723static void *_p_wxValidatorTo_p_wxObject(void *x) {
39724 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
39725}
39726static void *_p_wxControlTo_p_wxWindow(void *x) {
39727 return (void *)((wxWindow *) ((wxControl *) x));
39728}
39729static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
39730 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
39731}
39732static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
39733 return (void *)((wxWindow *) ((wxMenuBar *) x));
39734}
fc46b7f3
RD
39735static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
39736 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
39737}
39738static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
39739 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
39740}
39741static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
1bd55598 39742static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
72ef6efb 39743static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
1bd55598
RD
39744static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
39745static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
39746static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
39747static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
39748static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
0a27f394 39749static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
fc46b7f3
RD
39750static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
39751static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
24f6c4e8 39752static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
1bd55598
RD
39753static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
39754static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
39755static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
39756static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
39757static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
fc46b7f3 39758static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
1bd55598 39759static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
72ef6efb 39760static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
1bd55598
RD
39761static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
39762static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
39763static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
39764static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
70d7cb34
RD
39765static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0};
39766static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0};
b39fe951 39767static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
70d7cb34
RD
39768static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0};
39769static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0};
1bd55598
RD
39770static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
39771static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
39772static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
39773static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
39774static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
39775static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
39776static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
72ef6efb 39777static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
da91cb0f 39778static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
1bd55598 39779static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
70d7cb34 39780static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0};
72ef6efb 39781static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
70d7cb34
RD
39782static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0};
39783static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0};
39784static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0};
72ef6efb 39785static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
70d7cb34
RD
39786static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0};
39787static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0};
33d6fd3b 39788static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
1bd55598
RD
39789static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
39790static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
39791static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
39792static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
39793static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
39794static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
39795static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
39796static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
39797static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
39798static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
39799static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
39800static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
39801static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
39802static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
fc46b7f3
RD
39803static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
39804static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
1bd55598
RD
39805static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
39806static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
1bd55598 39807static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
34e0a3bb 39808static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
1bd55598
RD
39809static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
39810static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
39811static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
39812static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
39813static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
39814static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
39815static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
39816static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
39817static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
39818static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
39819static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
39820static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
2131d850 39821static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
1bd55598
RD
39822static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
39823static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
39824static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
39825static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
39826static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
39827static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
39828static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
39829static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
39830static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
39831static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
39832static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
39833static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
39834static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
39835static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
39836static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
39837static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
39838static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
39839static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
39840static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
39841static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
39842static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
39843static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
39844static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
1bd55598 39845static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
580080c5 39846static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
70d7cb34
RD
39847static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
39848static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
39849static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
39850static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
39851static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
39852static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
24f6c4e8 39853static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
72ef6efb 39854static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
27e45892 39855static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
2131d850 39856static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
1bd55598
RD
39857static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
39858static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
39859static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
34e0a3bb 39860static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
1bd55598 39861static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
580080c5 39862static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
1bd55598
RD
39863static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
39864static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
39865static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
39866static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
39867static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
39868static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
39869static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
39870static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
39871static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
39872static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
39873static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
39874static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
39875static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
39876static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
39877static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
39878static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
39879static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
39880static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
39881static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
39882static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
b39fe951 39883static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
1bd55598
RD
39884static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
39885static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
39886static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
39887static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
39888static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
fc46b7f3 39889static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
1bd55598 39890static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
72ef6efb 39891static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
70d7cb34 39892static swig_type_info _swigt__p_wxPoint2DDouble = {"_p_wxPoint2DDouble", "wxPoint2DDouble *", 0, 0, (void*)0, 0};
1bd55598
RD
39893static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
39894static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
39895static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
27e45892 39896static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
1bd55598 39897static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
fc46b7f3 39898static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
1bd55598 39899static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
70d7cb34 39900static swig_type_info _swigt__p_wxRect2DDouble = {"_p_wxRect2DDouble", "wxRect2DDouble *", 0, 0, (void*)0, 0};
1bd55598
RD
39901static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
39902static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
39903static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
39904static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
39905static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
39906static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
39907static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
da91cb0f 39908static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
1bd55598
RD
39909static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
39910static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
39911static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
39912
39913static swig_type_info *swig_type_initial[] = {
fc46b7f3 39914 &_swigt__p_buffer,
1bd55598
RD
39915 &_swigt__p_char,
39916 &_swigt__p_double,
39917 &_swigt__p_form_ops_t,
39918 &_swigt__p_int,
39919 &_swigt__p_unsigned_char,
39920 &_swigt__p_unsigned_int,
39921 &_swigt__p_unsigned_long,
0a27f394 39922 &_swigt__p_void,
1bd55598
RD
39923 &_swigt__p_wxANIHandler,
39924 &_swigt__p_wxAcceleratorTable,
39925 &_swigt__p_wxActivateEvent,
fc46b7f3
RD
39926 &_swigt__p_wxAlphaPixelData,
39927 &_swigt__p_wxAlphaPixelData_Accessor,
24f6c4e8 39928 &_swigt__p_wxAutoBufferedPaintDC,
1bd55598
RD
39929 &_swigt__p_wxBMPHandler,
39930 &_swigt__p_wxBitmap,
39931 &_swigt__p_wxBoxSizer,
39932 &_swigt__p_wxBrush,
39933 &_swigt__p_wxBrushList,
39934 &_swigt__p_wxBufferedDC,
39935 &_swigt__p_wxBufferedPaintDC,
39936 &_swigt__p_wxCURHandler,
fc46b7f3 39937 &_swigt__p_wxChar,
1bd55598
RD
39938 &_swigt__p_wxChildFocusEvent,
39939 &_swigt__p_wxClientDC,
2131d850 39940 &_swigt__p_wxClipboardTextEvent,
1bd55598 39941 &_swigt__p_wxCloseEvent,
72ef6efb 39942 &_swigt__p_wxColor,
1bd55598
RD
39943 &_swigt__p_wxColour,
39944 &_swigt__p_wxColourDatabase,
39945 &_swigt__p_wxCommandEvent,
39946 &_swigt__p_wxContextMenuEvent,
39947 &_swigt__p_wxControl,
39948 &_swigt__p_wxControlWithItems,
39949 &_swigt__p_wxCursor,
39950 &_swigt__p_wxDC,
70d7cb34
RD
39951 &_swigt__p_wxDCBrushChanger,
39952 &_swigt__p_wxDCClipper,
b39fe951 39953 &_swigt__p_wxDCOverlay,
70d7cb34
RD
39954 &_swigt__p_wxDCPenChanger,
39955 &_swigt__p_wxDCTextColourChanger,
1bd55598
RD
39956 &_swigt__p_wxDash,
39957 &_swigt__p_wxDateEvent,
39958 &_swigt__p_wxDisplayChangedEvent,
39959 &_swigt__p_wxDropFilesEvent,
39960 &_swigt__p_wxDuplexMode,
39961 &_swigt__p_wxEffects,
39962 &_swigt__p_wxEncodingConverter,
39963 &_swigt__p_wxEraseEvent,
39964 &_swigt__p_wxEvent,
39965 &_swigt__p_wxEvtHandler,
39966 &_swigt__p_wxFSFile,
39967 &_swigt__p_wxFileSystem,
39968 &_swigt__p_wxFlexGridSizer,
39969 &_swigt__p_wxFocusEvent,
39970 &_swigt__p_wxFont,
39971 &_swigt__p_wxFontList,
39972 &_swigt__p_wxFontMapper,
39973 &_swigt__p_wxGBSizerItem,
72ef6efb 39974 &_swigt__p_wxGCDC,
da91cb0f 39975 &_swigt__p_wxGDIObjListBase,
1bd55598
RD
39976 &_swigt__p_wxGDIObject,
39977 &_swigt__p_wxGIFHandler,
70d7cb34 39978 &_swigt__p_wxGraphicsBrush,
72ef6efb 39979 &_swigt__p_wxGraphicsContext,
70d7cb34
RD
39980 &_swigt__p_wxGraphicsFont,
39981 &_swigt__p_wxGraphicsMatrix,
39982 &_swigt__p_wxGraphicsObject,
72ef6efb 39983 &_swigt__p_wxGraphicsPath,
70d7cb34
RD
39984 &_swigt__p_wxGraphicsPen,
39985 &_swigt__p_wxGraphicsRenderer,
1bd55598
RD
39986 &_swigt__p_wxGridBagSizer,
39987 &_swigt__p_wxGridSizer,
33d6fd3b 39988 &_swigt__p_wxHeaderButtonParams,
1bd55598
RD
39989 &_swigt__p_wxICOHandler,
39990 &_swigt__p_wxIcon,
39991 &_swigt__p_wxIconBundle,
39992 &_swigt__p_wxIconLocation,
39993 &_swigt__p_wxIconizeEvent,
39994 &_swigt__p_wxIdleEvent,
39995 &_swigt__p_wxImage,
39996 &_swigt__p_wxImageHandler,
39997 &_swigt__p_wxImageList,
39998 &_swigt__p_wxIndividualLayoutConstraint,
39999 &_swigt__p_wxInitDialogEvent,
40000 &_swigt__p_wxJPEGHandler,
40001 &_swigt__p_wxKeyEvent,
40002 &_swigt__p_wxLanguageInfo,
40003 &_swigt__p_wxLayoutConstraints,
40004 &_swigt__p_wxLocale,
40005 &_swigt__p_wxMask,
40006 &_swigt__p_wxMaximizeEvent,
40007 &_swigt__p_wxMemoryDC,
40008 &_swigt__p_wxMenu,
40009 &_swigt__p_wxMenuBar,
40010 &_swigt__p_wxMenuEvent,
40011 &_swigt__p_wxMenuItem,
40012 &_swigt__p_wxMetaFile,
40013 &_swigt__p_wxMetaFileDC,
40014 &_swigt__p_wxMirrorDC,
40015 &_swigt__p_wxMouseCaptureChangedEvent,
34e0a3bb 40016 &_swigt__p_wxMouseCaptureLostEvent,
1bd55598
RD
40017 &_swigt__p_wxMouseEvent,
40018 &_swigt__p_wxMoveEvent,
40019 &_swigt__p_wxNativeEncodingInfo,
40020 &_swigt__p_wxNativeFontInfo,
fc46b7f3
RD
40021 &_swigt__p_wxNativePixelData,
40022 &_swigt__p_wxNativePixelData_Accessor,
1bd55598
RD
40023 &_swigt__p_wxNavigationKeyEvent,
40024 &_swigt__p_wxNcPaintEvent,
40025 &_swigt__p_wxNotifyEvent,
40026 &_swigt__p_wxObject,
b39fe951 40027 &_swigt__p_wxOverlay,
1bd55598
RD
40028 &_swigt__p_wxPCXHandler,
40029 &_swigt__p_wxPNGHandler,
40030 &_swigt__p_wxPNMHandler,
40031 &_swigt__p_wxPaintDC,
40032 &_swigt__p_wxPaintEvent,
40033 &_swigt__p_wxPalette,
40034 &_swigt__p_wxPaletteChangedEvent,
40035 &_swigt__p_wxPaperSize,
40036 &_swigt__p_wxPen,
40037 &_swigt__p_wxPenList,
fc46b7f3 40038 &_swigt__p_wxPixelDataBase,
1bd55598 40039 &_swigt__p_wxPoint,
72ef6efb 40040 &_swigt__p_wxPoint2D,
70d7cb34 40041 &_swigt__p_wxPoint2DDouble,
1bd55598
RD
40042 &_swigt__p_wxPostScriptDC,
40043 &_swigt__p_wxPrintData,
40044 &_swigt__p_wxPrinterDC,
27e45892 40045 &_swigt__p_wxPseudoDC,
1bd55598
RD
40046 &_swigt__p_wxPyApp,
40047 &_swigt__p_wxPyCommandEvent,
40048 &_swigt__p_wxPyEvent,
40049 &_swigt__p_wxPyFontEnumerator,
40050 &_swigt__p_wxPyImageHandler,
fc46b7f3 40051 &_swigt__p_wxPyLocale,
1bd55598
RD
40052 &_swigt__p_wxPySizer,
40053 &_swigt__p_wxPyValidator,
40054 &_swigt__p_wxQueryNewPaletteEvent,
40055 &_swigt__p_wxRect,
70d7cb34 40056 &_swigt__p_wxRect2DDouble,
1bd55598
RD
40057 &_swigt__p_wxRegion,
40058 &_swigt__p_wxRegionIterator,
40059 &_swigt__p_wxRendererNative,
40060 &_swigt__p_wxRendererVersion,
40061 &_swigt__p_wxScreenDC,
40062 &_swigt__p_wxScrollEvent,
40063 &_swigt__p_wxScrollWinEvent,
40064 &_swigt__p_wxSetCursorEvent,
40065 &_swigt__p_wxShowEvent,
40066 &_swigt__p_wxSize,
40067 &_swigt__p_wxSizeEvent,
40068 &_swigt__p_wxSizer,
40069 &_swigt__p_wxSizerItem,
40070 &_swigt__p_wxSplitterRenderParams,
40071 &_swigt__p_wxStaticBoxSizer,
40072 &_swigt__p_wxStdDialogButtonSizer,
da91cb0f 40073 &_swigt__p_wxStockGDI,
1bd55598
RD
40074 &_swigt__p_wxString,
40075 &_swigt__p_wxSysColourChangedEvent,
580080c5 40076 &_swigt__p_wxTGAHandler,
1bd55598
RD
40077 &_swigt__p_wxTIFFHandler,
40078 &_swigt__p_wxUpdateUIEvent,
40079 &_swigt__p_wxValidator,
40080 &_swigt__p_wxWindow,
40081 &_swigt__p_wxWindowCreateEvent,
40082 &_swigt__p_wxWindowDC,
40083 &_swigt__p_wxWindowDestroyEvent,
40084 &_swigt__p_wxXPMHandler,
40085};
40086
fc46b7f3 40087static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40088static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
40089static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
40090static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
40091static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
40092static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
40093static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
40094static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
0a27f394 40095static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
40096static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
40097static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40098static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40099static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
40100static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
40101static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
40102static 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}};
40103static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40104static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb
RD
40105static 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}};
40106static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40107static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
40108static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
40109static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40110static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxAutoBufferedPaintDC, _p_wxAutoBufferedPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxDC, 0, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxGCDC, _p_wxGCDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxDC, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40111static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}};
40112static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}};
b39fe951 40113static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40114static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}};
40115static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40116static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
40117static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
40118static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
40119static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
40120static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
40121static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
40122static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40123static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
da91cb0f 40124static swig_cast_info _swigc__p_wxGDIObjListBase[] = { {&_swigt__p_wxGDIObjListBase, 0, 0, 0}, {&_swigt__p_wxBrushList, _p_wxBrushListTo_p_wxGDIObjListBase, 0, 0}, {&_swigt__p_wxFontList, _p_wxFontListTo_p_wxGDIObjListBase, 0, 0}, {&_swigt__p_wxPenList, _p_wxPenListTo_p_wxGDIObjListBase, 0, 0},{0, 0, 0, 0}};
1bd55598 40125static 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}};
70d7cb34 40126static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40127static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40128static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}};
40129static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}};
40130static swig_cast_info _swigc__p_wxGraphicsObject[] = { {&_swigt__p_wxGraphicsPen, _p_wxGraphicsPenTo_p_wxGraphicsObject, 0, 0}, {&_swigt__p_wxGraphicsBrush, _p_wxGraphicsBrushTo_p_wxGraphicsObject, 0, 0}, {&_swigt__p_wxGraphicsObject, 0, 0, 0}, {&_swigt__p_wxGraphicsMatrix, _p_wxGraphicsMatrixTo_p_wxGraphicsObject, 0, 0}, {&_swigt__p_wxGraphicsFont, _p_wxGraphicsFontTo_p_wxGraphicsObject, 0, 0}, {&_swigt__p_wxGraphicsContext, _p_wxGraphicsContextTo_p_wxGraphicsObject, 0, 0}, {&_swigt__p_wxGraphicsPath, _p_wxGraphicsPathTo_p_wxGraphicsObject, 0, 0},{0, 0, 0, 0}};
72ef6efb 40131static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40132static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}};
40133static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}};
33d6fd3b 40134static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40135static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
40136static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
40137static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
40138static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
40139static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
40140static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40141static swig_cast_info _swigc__p_wxLocale[] = { {&_swigt__p_wxPyLocale, _p_wxPyLocaleTo_p_wxLocale, 0, 0}, {&_swigt__p_wxLocale, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40142static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
8e99bda9 40143static 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}};
1bd55598
RD
40144static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
40145static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
40146static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
40147static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
40148static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
40149static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
40150static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40151static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40152static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 40153static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40154static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
40155static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
40156static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40157static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40158static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
40159static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
40160static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
40161static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
40162static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
40163static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40164static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40165static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 40166static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40167static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40168static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40169static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40170static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40171static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40172static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40173static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
40174static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
40175static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
40176static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
40177static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
40178static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
40179static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
40180static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
40181static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
40182static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
40183static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
40184static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
40185static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40186static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40187static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40188static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
40189static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40190static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
580080c5 40191static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40192static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
40193static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
40194static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40195static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40196static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
40197static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40198static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40199static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
27e45892 40200static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 40201static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40202static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
40203static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
40204static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 40205static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40206static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
580080c5 40207static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40208static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
40209static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
40210static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40211static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40212static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
40213static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
40214static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40215static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40216static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
40217static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
40218static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
40219static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
40220static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40221static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40222static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
40223static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40224static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40225static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
40226static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
40227static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
580080c5 40228static 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_wxGraphicsPen, _p_wxGraphicsPenTo_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_wxGraphicsObject, _p_wxGraphicsObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsPath, _p_wxGraphicsPathTo_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_wxGraphicsContext, _p_wxGraphicsContextTo_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_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTGAHandler, _p_wxTGAHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_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_wxAutoBufferedPaintDC, _p_wxAutoBufferedPaintDCTo_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_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsBrush, _p_wxGraphicsBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsRenderer, _p_wxGraphicsRendererTo_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_wxGraphicsFont, _p_wxGraphicsFontTo_p_wxObject, 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_wxGraphicsMatrix, _p_wxGraphicsMatrixTo_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 40229static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40230static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
40231static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
40232static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
40233static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
40234static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40235static swig_cast_info _swigc__p_wxPixelDataBase[] = { {&_swigt__p_wxPixelDataBase, 0, 0, 0}, {&_swigt__p_wxNativePixelData, _p_wxNativePixelDataTo_p_wxPixelDataBase, 0, 0}, {&_swigt__p_wxAlphaPixelData, _p_wxAlphaPixelDataTo_p_wxPixelDataBase, 0, 0},{0, 0, 0, 0}};
1bd55598 40236static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40237static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34 40238static swig_cast_info _swigc__p_wxPoint2DDouble[] = { {&_swigt__p_wxPoint2DDouble, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40239static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
40240static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
40241static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
27e45892 40242static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40243static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40244static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40245static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34 40246static swig_cast_info _swigc__p_wxRect2DDouble[] = { {&_swigt__p_wxRect2DDouble, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40247static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
40248static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
40249static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
40250static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
40251static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
40252static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
40253static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
da91cb0f 40254static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40255static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
40256static 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}};
26c4d26f 40257static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxWindowDC, 0, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxWindowDC, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40258
40259static swig_cast_info *swig_cast_initial[] = {
fc46b7f3 40260 _swigc__p_buffer,
1bd55598
RD
40261 _swigc__p_char,
40262 _swigc__p_double,
40263 _swigc__p_form_ops_t,
40264 _swigc__p_int,
40265 _swigc__p_unsigned_char,
40266 _swigc__p_unsigned_int,
40267 _swigc__p_unsigned_long,
0a27f394 40268 _swigc__p_void,
1bd55598
RD
40269 _swigc__p_wxANIHandler,
40270 _swigc__p_wxAcceleratorTable,
40271 _swigc__p_wxActivateEvent,
fc46b7f3
RD
40272 _swigc__p_wxAlphaPixelData,
40273 _swigc__p_wxAlphaPixelData_Accessor,
24f6c4e8 40274 _swigc__p_wxAutoBufferedPaintDC,
1bd55598
RD
40275 _swigc__p_wxBMPHandler,
40276 _swigc__p_wxBitmap,
40277 _swigc__p_wxBoxSizer,
40278 _swigc__p_wxBrush,
40279 _swigc__p_wxBrushList,
40280 _swigc__p_wxBufferedDC,
40281 _swigc__p_wxBufferedPaintDC,
40282 _swigc__p_wxCURHandler,
fc46b7f3 40283 _swigc__p_wxChar,
1bd55598
RD
40284 _swigc__p_wxChildFocusEvent,
40285 _swigc__p_wxClientDC,
2131d850 40286 _swigc__p_wxClipboardTextEvent,
1bd55598 40287 _swigc__p_wxCloseEvent,
72ef6efb 40288 _swigc__p_wxColor,
1bd55598
RD
40289 _swigc__p_wxColour,
40290 _swigc__p_wxColourDatabase,
40291 _swigc__p_wxCommandEvent,
40292 _swigc__p_wxContextMenuEvent,
40293 _swigc__p_wxControl,
40294 _swigc__p_wxControlWithItems,
40295 _swigc__p_wxCursor,
40296 _swigc__p_wxDC,
70d7cb34
RD
40297 _swigc__p_wxDCBrushChanger,
40298 _swigc__p_wxDCClipper,
b39fe951 40299 _swigc__p_wxDCOverlay,
70d7cb34
RD
40300 _swigc__p_wxDCPenChanger,
40301 _swigc__p_wxDCTextColourChanger,
1bd55598
RD
40302 _swigc__p_wxDash,
40303 _swigc__p_wxDateEvent,
40304 _swigc__p_wxDisplayChangedEvent,
40305 _swigc__p_wxDropFilesEvent,
40306 _swigc__p_wxDuplexMode,
40307 _swigc__p_wxEffects,
40308 _swigc__p_wxEncodingConverter,
40309 _swigc__p_wxEraseEvent,
40310 _swigc__p_wxEvent,
40311 _swigc__p_wxEvtHandler,
40312 _swigc__p_wxFSFile,
40313 _swigc__p_wxFileSystem,
40314 _swigc__p_wxFlexGridSizer,
40315 _swigc__p_wxFocusEvent,
40316 _swigc__p_wxFont,
40317 _swigc__p_wxFontList,
40318 _swigc__p_wxFontMapper,
40319 _swigc__p_wxGBSizerItem,
72ef6efb 40320 _swigc__p_wxGCDC,
da91cb0f 40321 _swigc__p_wxGDIObjListBase,
1bd55598
RD
40322 _swigc__p_wxGDIObject,
40323 _swigc__p_wxGIFHandler,
70d7cb34 40324 _swigc__p_wxGraphicsBrush,
72ef6efb 40325 _swigc__p_wxGraphicsContext,
70d7cb34
RD
40326 _swigc__p_wxGraphicsFont,
40327 _swigc__p_wxGraphicsMatrix,
40328 _swigc__p_wxGraphicsObject,
72ef6efb 40329 _swigc__p_wxGraphicsPath,
70d7cb34
RD
40330 _swigc__p_wxGraphicsPen,
40331 _swigc__p_wxGraphicsRenderer,
1bd55598
RD
40332 _swigc__p_wxGridBagSizer,
40333 _swigc__p_wxGridSizer,
33d6fd3b 40334 _swigc__p_wxHeaderButtonParams,
1bd55598
RD
40335 _swigc__p_wxICOHandler,
40336 _swigc__p_wxIcon,
40337 _swigc__p_wxIconBundle,
40338 _swigc__p_wxIconLocation,
40339 _swigc__p_wxIconizeEvent,
40340 _swigc__p_wxIdleEvent,
40341 _swigc__p_wxImage,
40342 _swigc__p_wxImageHandler,
40343 _swigc__p_wxImageList,
40344 _swigc__p_wxIndividualLayoutConstraint,
40345 _swigc__p_wxInitDialogEvent,
40346 _swigc__p_wxJPEGHandler,
40347 _swigc__p_wxKeyEvent,
40348 _swigc__p_wxLanguageInfo,
40349 _swigc__p_wxLayoutConstraints,
40350 _swigc__p_wxLocale,
40351 _swigc__p_wxMask,
40352 _swigc__p_wxMaximizeEvent,
40353 _swigc__p_wxMemoryDC,
40354 _swigc__p_wxMenu,
40355 _swigc__p_wxMenuBar,
40356 _swigc__p_wxMenuEvent,
40357 _swigc__p_wxMenuItem,
40358 _swigc__p_wxMetaFile,
40359 _swigc__p_wxMetaFileDC,
40360 _swigc__p_wxMirrorDC,
40361 _swigc__p_wxMouseCaptureChangedEvent,
34e0a3bb 40362 _swigc__p_wxMouseCaptureLostEvent,
1bd55598
RD
40363 _swigc__p_wxMouseEvent,
40364 _swigc__p_wxMoveEvent,
40365 _swigc__p_wxNativeEncodingInfo,
40366 _swigc__p_wxNativeFontInfo,
fc46b7f3
RD
40367 _swigc__p_wxNativePixelData,
40368 _swigc__p_wxNativePixelData_Accessor,
1bd55598
RD
40369 _swigc__p_wxNavigationKeyEvent,
40370 _swigc__p_wxNcPaintEvent,
40371 _swigc__p_wxNotifyEvent,
40372 _swigc__p_wxObject,
b39fe951 40373 _swigc__p_wxOverlay,
1bd55598
RD
40374 _swigc__p_wxPCXHandler,
40375 _swigc__p_wxPNGHandler,
40376 _swigc__p_wxPNMHandler,
40377 _swigc__p_wxPaintDC,
40378 _swigc__p_wxPaintEvent,
40379 _swigc__p_wxPalette,
40380 _swigc__p_wxPaletteChangedEvent,
40381 _swigc__p_wxPaperSize,
40382 _swigc__p_wxPen,
40383 _swigc__p_wxPenList,
fc46b7f3 40384 _swigc__p_wxPixelDataBase,
1bd55598 40385 _swigc__p_wxPoint,
72ef6efb 40386 _swigc__p_wxPoint2D,
70d7cb34 40387 _swigc__p_wxPoint2DDouble,
1bd55598
RD
40388 _swigc__p_wxPostScriptDC,
40389 _swigc__p_wxPrintData,
40390 _swigc__p_wxPrinterDC,
27e45892 40391 _swigc__p_wxPseudoDC,
1bd55598
RD
40392 _swigc__p_wxPyApp,
40393 _swigc__p_wxPyCommandEvent,
40394 _swigc__p_wxPyEvent,
40395 _swigc__p_wxPyFontEnumerator,
40396 _swigc__p_wxPyImageHandler,
fc46b7f3 40397 _swigc__p_wxPyLocale,
1bd55598
RD
40398 _swigc__p_wxPySizer,
40399 _swigc__p_wxPyValidator,
40400 _swigc__p_wxQueryNewPaletteEvent,
40401 _swigc__p_wxRect,
70d7cb34 40402 _swigc__p_wxRect2DDouble,
1bd55598
RD
40403 _swigc__p_wxRegion,
40404 _swigc__p_wxRegionIterator,
40405 _swigc__p_wxRendererNative,
40406 _swigc__p_wxRendererVersion,
40407 _swigc__p_wxScreenDC,
40408 _swigc__p_wxScrollEvent,
40409 _swigc__p_wxScrollWinEvent,
40410 _swigc__p_wxSetCursorEvent,
40411 _swigc__p_wxShowEvent,
40412 _swigc__p_wxSize,
40413 _swigc__p_wxSizeEvent,
40414 _swigc__p_wxSizer,
40415 _swigc__p_wxSizerItem,
40416 _swigc__p_wxSplitterRenderParams,
40417 _swigc__p_wxStaticBoxSizer,
40418 _swigc__p_wxStdDialogButtonSizer,
da91cb0f 40419 _swigc__p_wxStockGDI,
1bd55598
RD
40420 _swigc__p_wxString,
40421 _swigc__p_wxSysColourChangedEvent,
580080c5 40422 _swigc__p_wxTGAHandler,
1bd55598
RD
40423 _swigc__p_wxTIFFHandler,
40424 _swigc__p_wxUpdateUIEvent,
40425 _swigc__p_wxValidator,
40426 _swigc__p_wxWindow,
40427 _swigc__p_wxWindowCreateEvent,
40428 _swigc__p_wxWindowDC,
40429 _swigc__p_wxWindowDestroyEvent,
40430 _swigc__p_wxXPMHandler,
40431};
40432
40433
40434/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
40435
40436static swig_const_info swig_const_table[] = {
40437{0, 0, 0, 0.0, 0, 0}};
40438
40439#ifdef __cplusplus
40440}
40441#endif
40442/* -----------------------------------------------------------------------------
40443 * Type initialization:
40444 * This problem is tough by the requirement that no dynamic
40445 * memory is used. Also, since swig_type_info structures store pointers to
40446 * swig_cast_info structures and swig_cast_info structures store pointers back
40447 * to swig_type_info structures, we need some lookup code at initialization.
40448 * The idea is that swig generates all the structures that are needed.
40449 * The runtime then collects these partially filled structures.
40450 * The SWIG_InitializeModule function takes these initial arrays out of
40451 * swig_module, and does all the lookup, filling in the swig_module.types
40452 * array with the correct data and linking the correct swig_cast_info
40453 * structures together.
40454 *
40455 * The generated swig_type_info structures are assigned staticly to an initial
40456 * array. We just loop though that array, and handle each type individually.
40457 * First we lookup if this type has been already loaded, and if so, use the
40458 * loaded structure instead of the generated one. Then we have to fill in the
40459 * cast linked list. The cast data is initially stored in something like a
40460 * two-dimensional array. Each row corresponds to a type (there are the same
40461 * number of rows as there are in the swig_type_initial array). Each entry in
40462 * a column is one of the swig_cast_info structures for that type.
40463 * The cast_initial array is actually an array of arrays, because each row has
40464 * a variable number of columns. So to actually build the cast linked list,
40465 * we find the array of casts associated with the type, and loop through it
40466 * adding the casts to the list. The one last trick we need to do is making
40467 * sure the type pointer in the swig_cast_info struct is correct.
40468 *
40469 * First off, we lookup the cast->type name to see if it is already loaded.
40470 * There are three cases to handle:
40471 * 1) If the cast->type has already been loaded AND the type we are adding
40472 * casting info to has not been loaded (it is in this module), THEN we
40473 * replace the cast->type pointer with the type pointer that has already
40474 * been loaded.
40475 * 2) If BOTH types (the one we are adding casting info to, and the
40476 * cast->type) are loaded, THEN the cast info has already been loaded by
40477 * the previous module so we just ignore it.
40478 * 3) Finally, if cast->type has not already been loaded, then we add that
40479 * swig_cast_info to the linked list (because the cast->type) pointer will
40480 * be correct.
40481 * ----------------------------------------------------------------------------- */
40482
40483#ifdef __cplusplus
40484extern "C" {
40485#if 0
40486} /* c-mode */
40487#endif
40488#endif
40489
40490#if 0
40491#define SWIGRUNTIME_DEBUG
40492#endif
40493
40494SWIGRUNTIME void
40495SWIG_InitializeModule(void *clientdata) {
40496 size_t i;
40497 swig_module_info *module_head;
40498 static int init_run = 0;
40499
40500 clientdata = clientdata;
40501
40502 if (init_run) return;
40503 init_run = 1;
40504
40505 /* Initialize the swig_module */
40506 swig_module.type_initial = swig_type_initial;
40507 swig_module.cast_initial = swig_cast_initial;
40508
40509 /* Try and load any already created modules */
40510 module_head = SWIG_GetModule(clientdata);
40511 if (module_head) {
40512 swig_module.next = module_head->next;
40513 module_head->next = &swig_module;
40514 } else {
40515 /* This is the first module loaded */
40516 swig_module.next = &swig_module;
40517 SWIG_SetModule(clientdata, &swig_module);
40518 }
40519
40520 /* Now work on filling in swig_module.types */
40521#ifdef SWIGRUNTIME_DEBUG
40522 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
40523#endif
40524 for (i = 0; i < swig_module.size; ++i) {
40525 swig_type_info *type = 0;
40526 swig_type_info *ret;
40527 swig_cast_info *cast;
40528
40529#ifdef SWIGRUNTIME_DEBUG
40530 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40531#endif
40532
40533 /* if there is another module already loaded */
40534 if (swig_module.next != &swig_module) {
40535 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
be9b1dca 40536 }
1bd55598
RD
40537 if (type) {
40538 /* Overwrite clientdata field */
40539#ifdef SWIGRUNTIME_DEBUG
40540 printf("SWIG_InitializeModule: found type %s\n", type->name);
40541#endif
40542 if (swig_module.type_initial[i]->clientdata) {
40543 type->clientdata = swig_module.type_initial[i]->clientdata;
40544#ifdef SWIGRUNTIME_DEBUG
40545 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
40546#endif
40547 }
40548 } else {
40549 type = swig_module.type_initial[i];
be9b1dca 40550 }
1bd55598
RD
40551
40552 /* Insert casting types */
40553 cast = swig_module.cast_initial[i];
40554 while (cast->type) {
40555 /* Don't need to add information already in the list */
40556 ret = 0;
40557#ifdef SWIGRUNTIME_DEBUG
40558 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
40559#endif
40560 if (swig_module.next != &swig_module) {
40561 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
40562#ifdef SWIGRUNTIME_DEBUG
40563 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
40564#endif
40565 }
40566 if (ret) {
40567 if (type == swig_module.type_initial[i]) {
40568#ifdef SWIGRUNTIME_DEBUG
40569 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
40570#endif
40571 cast->type = ret;
40572 ret = 0;
40573 } else {
40574 /* Check for casting already in the list */
40575 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
40576#ifdef SWIGRUNTIME_DEBUG
40577 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
40578#endif
40579 if (!ocast) ret = 0;
40580 }
40581 }
40582
40583 if (!ret) {
40584#ifdef SWIGRUNTIME_DEBUG
40585 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
40586#endif
40587 if (type->cast) {
40588 type->cast->prev = cast;
40589 cast->next = type->cast;
40590 }
40591 type->cast = cast;
40592 }
40593 cast++;
be9b1dca 40594 }
1bd55598
RD
40595 /* Set entry in modules->types array equal to the type */
40596 swig_module.types[i] = type;
40597 }
40598 swig_module.types[i] = 0;
40599
40600#ifdef SWIGRUNTIME_DEBUG
40601 printf("**** SWIG_InitializeModule: Cast List ******\n");
40602 for (i = 0; i < swig_module.size; ++i) {
40603 int j = 0;
40604 swig_cast_info *cast = swig_module.cast_initial[i];
40605 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40606 while (cast->type) {
40607 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
40608 cast++;
40609 ++j;
40610 }
40611 printf("---- Total casts: %d\n",j);
40612 }
40613 printf("**** SWIG_InitializeModule: Cast List ******\n");
40614#endif
40615}
40616
40617/* This function will propagate the clientdata field of type to
40618* any new swig_type_info structures that have been added into the list
40619* of equivalent types. It is like calling
40620* SWIG_TypeClientData(type, clientdata) a second time.
40621*/
40622SWIGRUNTIME void
40623SWIG_PropagateClientData(void) {
40624 size_t i;
40625 swig_cast_info *equiv;
40626 static int init_run = 0;
40627
40628 if (init_run) return;
40629 init_run = 1;
40630
40631 for (i = 0; i < swig_module.size; i++) {
40632 if (swig_module.types[i]->clientdata) {
40633 equiv = swig_module.types[i]->cast;
40634 while (equiv) {
40635 if (!equiv->converter) {
40636 if (equiv->type && !equiv->type->clientdata)
40637 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
40638 }
40639 equiv = equiv->next;
40640 }
be9b1dca 40641 }
1bd55598
RD
40642 }
40643}
40644
40645#ifdef __cplusplus
40646#if 0
40647{
40648 /* c-mode */
40649#endif
40650}
40651#endif
40652
40653
40654
40655#ifdef __cplusplus
40656extern "C" {
40657#endif
40658
40659 /* Python-specific SWIG API */
40660#define SWIG_newvarlink() SWIG_Python_newvarlink()
40661#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
40662#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
40663
40664 /* -----------------------------------------------------------------------------
40665 * global variable support code.
40666 * ----------------------------------------------------------------------------- */
40667
40668 typedef struct swig_globalvar {
40669 char *name; /* Name of global variable */
40670 PyObject *(*get_attr)(void); /* Return the current value */
40671 int (*set_attr)(PyObject *); /* Set the value */
40672 struct swig_globalvar *next;
40673 } swig_globalvar;
40674
40675 typedef struct swig_varlinkobject {
40676 PyObject_HEAD
40677 swig_globalvar *vars;
40678 } swig_varlinkobject;
40679
40680 SWIGINTERN PyObject *
40681 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
40682 return PyString_FromString("<Swig global variables>");
40683 }
40684
40685 SWIGINTERN PyObject *
40686 swig_varlink_str(swig_varlinkobject *v) {
40687 PyObject *str = PyString_FromString("(");
40688 swig_globalvar *var;
40689 for (var = v->vars; var; var=var->next) {
40690 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
40691 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
40692 }
40693 PyString_ConcatAndDel(&str,PyString_FromString(")"));
40694 return str;
40695 }
40696
40697 SWIGINTERN int
40698 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
40699 PyObject *str = swig_varlink_str(v);
40700 fprintf(fp,"Swig global variables ");
40701 fprintf(fp,"%s\n", PyString_AsString(str));
40702 Py_DECREF(str);
40703 return 0;
40704 }
40705
40706 SWIGINTERN void
40707 swig_varlink_dealloc(swig_varlinkobject *v) {
40708 swig_globalvar *var = v->vars;
40709 while (var) {
40710 swig_globalvar *n = var->next;
40711 free(var->name);
40712 free(var);
40713 var = n;
be9b1dca 40714 }
1bd55598
RD
40715 }
40716
40717 SWIGINTERN PyObject *
40718 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
40719 PyObject *res = NULL;
40720 swig_globalvar *var = v->vars;
40721 while (var) {
40722 if (strcmp(var->name,n) == 0) {
40723 res = (*var->get_attr)();
40724 break;
40725 }
40726 var = var->next;
be9b1dca 40727 }
1bd55598
RD
40728 if (res == NULL && !PyErr_Occurred()) {
40729 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 40730 }
1bd55598
RD
40731 return res;
40732 }
40733
40734 SWIGINTERN int
40735 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
40736 int res = 1;
40737 swig_globalvar *var = v->vars;
40738 while (var) {
40739 if (strcmp(var->name,n) == 0) {
40740 res = (*var->set_attr)(p);
40741 break;
40742 }
40743 var = var->next;
be9b1dca 40744 }
1bd55598
RD
40745 if (res == 1 && !PyErr_Occurred()) {
40746 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 40747 }
1bd55598
RD
40748 return res;
40749 }
40750
40751 SWIGINTERN PyTypeObject*
40752 swig_varlink_type(void) {
40753 static char varlink__doc__[] = "Swig var link object";
40754 static PyTypeObject varlink_type;
40755 static int type_init = 0;
40756 if (!type_init) {
40757 const PyTypeObject tmp
40758 = {
40759 PyObject_HEAD_INIT(NULL)
40760 0, /* Number of items in variable part (ob_size) */
40761 (char *)"swigvarlink", /* Type name (tp_name) */
40762 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
40763 0, /* Itemsize (tp_itemsize) */
40764 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
40765 (printfunc) swig_varlink_print, /* Print (tp_print) */
40766 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
40767 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
40768 0, /* tp_compare */
40769 (reprfunc) swig_varlink_repr, /* tp_repr */
40770 0, /* tp_as_number */
40771 0, /* tp_as_sequence */
40772 0, /* tp_as_mapping */
40773 0, /* tp_hash */
40774 0, /* tp_call */
40775 (reprfunc)swig_varlink_str, /* tp_str */
40776 0, /* tp_getattro */
40777 0, /* tp_setattro */
40778 0, /* tp_as_buffer */
40779 0, /* tp_flags */
40780 varlink__doc__, /* tp_doc */
40781 0, /* tp_traverse */
40782 0, /* tp_clear */
40783 0, /* tp_richcompare */
40784 0, /* tp_weaklistoffset */
40785#if PY_VERSION_HEX >= 0x02020000
40786 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
40787#endif
40788#if PY_VERSION_HEX >= 0x02030000
40789 0, /* tp_del */
40790#endif
40791#ifdef COUNT_ALLOCS
40792 0,0,0,0 /* tp_alloc -> tp_next */
40793#endif
40794 };
40795 varlink_type = tmp;
40796 varlink_type.ob_type = &PyType_Type;
40797 type_init = 1;
be9b1dca 40798 }
1bd55598
RD
40799 return &varlink_type;
40800 }
40801
40802 /* Create a variable linking object for use later */
40803 SWIGINTERN PyObject *
40804 SWIG_Python_newvarlink(void) {
40805 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
40806 if (result) {
40807 result->vars = 0;
40808 }
40809 return ((PyObject*) result);
40810 }
40811
40812 SWIGINTERN void
40813 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
40814 swig_varlinkobject *v = (swig_varlinkobject *) p;
40815 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
40816 if (gv) {
40817 size_t size = strlen(name)+1;
40818 gv->name = (char *)malloc(size);
40819 if (gv->name) {
40820 strncpy(gv->name,name,size);
40821 gv->get_attr = get_attr;
40822 gv->set_attr = set_attr;
40823 gv->next = v->vars;
40824 }
be9b1dca 40825 }
1bd55598
RD
40826 v->vars = gv;
40827 }
40828
40829 SWIGINTERN PyObject *
40830 SWIG_globals() {
40831 static PyObject *_SWIG_globals = 0;
40832 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
40833 return _SWIG_globals;
40834 }
40835
40836 /* -----------------------------------------------------------------------------
40837 * constants/methods manipulation
40838 * ----------------------------------------------------------------------------- */
40839
40840 /* Install Constants */
40841 SWIGINTERN void
40842 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
40843 PyObject *obj = 0;
40844 size_t i;
40845 for (i = 0; constants[i].type; ++i) {
40846 switch(constants[i].type) {
40847 case SWIG_PY_POINTER:
40848 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
40849 break;
40850 case SWIG_PY_BINARY:
40851 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
40852 break;
40853 default:
40854 obj = 0;
40855 break;
40856 }
40857 if (obj) {
40858 PyDict_SetItemString(d, constants[i].name, obj);
40859 Py_DECREF(obj);
40860 }
be9b1dca 40861 }
1bd55598
RD
40862 }
40863
40864 /* -----------------------------------------------------------------------------*/
40865 /* Fix SwigMethods to carry the callback ptrs when needed */
40866 /* -----------------------------------------------------------------------------*/
40867
40868 SWIGINTERN void
40869 SWIG_Python_FixMethods(PyMethodDef *methods,
40870 swig_const_info *const_table,
40871 swig_type_info **types,
40872 swig_type_info **types_initial) {
40873 size_t i;
40874 for (i = 0; methods[i].ml_name; ++i) {
3d6c9062 40875 const char *c = methods[i].ml_doc;
1bd55598
RD
40876 if (c && (c = strstr(c, "swig_ptr: "))) {
40877 int j;
40878 swig_const_info *ci = 0;
3d6c9062 40879 const char *name = c + 10;
1bd55598
RD
40880 for (j = 0; const_table[j].type; ++j) {
40881 if (strncmp(const_table[j].name, name,
40882 strlen(const_table[j].name)) == 0) {
40883 ci = &(const_table[j]);
40884 break;
40885 }
40886 }
40887 if (ci) {
40888 size_t shift = (ci->ptype) - types;
40889 swig_type_info *ty = types_initial[shift];
40890 size_t ldoc = (c - methods[i].ml_doc);
40891 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
40892 char *ndoc = (char*)malloc(ldoc + lptr + 10);
40893 if (ndoc) {
40894 char *buff = ndoc;
40895 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
40896 if (ptr) {
40897 strncpy(buff, methods[i].ml_doc, ldoc);
40898 buff += ldoc;
40899 strncpy(buff, "swig_ptr: ", 10);
40900 buff += 10;
40901 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
40902 methods[i].ml_doc = ndoc;
40903 }
40904 }
40905 }
40906 }
be9b1dca 40907 }
1bd55598
RD
40908 }
40909
40910#ifdef __cplusplus
40911}
40912#endif
40913
40914/* -----------------------------------------------------------------------------*
40915 * Partial Init method
40916 * -----------------------------------------------------------------------------*/
40917
40918#ifdef __cplusplus
40919extern "C"
40920#endif
40921SWIGEXPORT void SWIG_init(void) {
40922 PyObject *m, *d;
40923
40924 /* Fix SwigMethods to carry the callback ptrs when needed */
40925 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
40926
40927 m = Py_InitModule((char *) SWIG_name, SwigMethods);
40928 d = PyModule_GetDict(m);
40929
40930 SWIG_InitializeModule(0);
40931 SWIG_InstallConstants(d,swig_const_table);
40932
40933
2131d850
RD
40934 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
40935 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
40936 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
fc46b7f3
RD
40937 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
40938 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
1bd55598
RD
40939 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
40940 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
40941 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
40942 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
40943 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
40944 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
40945 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
40946 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
40947 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
40948 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
40949 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
40950 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
40951 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
40952 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
40953 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
40954 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
40955 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
40956 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
40957 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
40958 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
40959 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
40960 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
40961 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
40962 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
40963 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
40964 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
40965 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
40966 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
40967 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
40968 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
40969 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
40970 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
40971 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
40972 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
40973 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
40974 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
40975 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
40976 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
40977 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
40978 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
40979 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
40980 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
40981 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
40982 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
40983 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
40984 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
40985 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
40986 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
40987 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
40988 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
40989 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
40990 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
40991 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
40992 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
40993 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
40994 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
40995 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
40996 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
40997 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
40998 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
40999 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
41000 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
41001 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
41002 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
41003 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
41004 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
41005 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
41006 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
41007 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
41008 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
41009 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
41010 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
41011 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
41012 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
41013 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
41014 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
41015 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
41016 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
41017 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
41018 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
41019 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
41020 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
41021 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
41022 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
41023 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
41024 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
41025 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
41026 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
41027 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
41028 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
41029 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
41030 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
41031 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
41032 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
41033 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
41034 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
41035 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
41036 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
41037 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
41038 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
41039 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
41040 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
41041 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
41042 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
41043 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
41044 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
41045 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
41046 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
41047 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
41048 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
41049 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
41050 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
41051 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
41052 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
41053 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
41054 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
41055 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
41056 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
41057 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
41058 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
41059 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
41060 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
41061 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
41062 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
41063 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
41064 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
41065 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
41066
41067 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
41068
41069 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
41070 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
41071 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
41072 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
41073 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
41074 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
41075 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
41076 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
41077 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
41078 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
41079 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
41080 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
41081 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
41082 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
41083 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
41084 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
41085 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
41086 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
41087 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
41088 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
41089 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
41090 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
41091 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
41092 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
41093 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
41094 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
41095 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
41096 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
41097 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
41098 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
41099 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
41100 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
41101 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
41102 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
41103 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
41104 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
41105 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
41106 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
41107 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
41108 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
41109 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
41110 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
41111 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
41112 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
41113 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
41114 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
41115 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
41116 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
41117 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
41118 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
41119 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
41120 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
41121 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
41122 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
41123 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
41124 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
41125 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
41126 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
41127 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
41128 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
41129 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
41130 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
41131 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
41132 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
41133 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
41134 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
41135 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
41136 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
41137 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
41138 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
41139 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
41140 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
41141 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
41142 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
41143 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
41144 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
41145 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
41146 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
41147 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
41148 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
41149 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
41150 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
41151 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
41152 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
41153 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
41154 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
41155 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
41156 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
41157 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
41158 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
41159 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
41160 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
41161 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
41162 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
41163 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
41164 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
41165 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
41166 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
41167 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
41168 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
41169 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
41170 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
41171 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
41172 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
41173 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
41174 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
41175 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
41176 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
41177 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
41178 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
41179 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
41180 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
41181 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
41182 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
41183 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
41184 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
41185 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
41186 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
41187 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
41188 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
41189 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
41190 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
41191 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
41192 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
41193 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
41194 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
41195 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
41196 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
41197 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
41198 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
41199 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
41200 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
41201 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
41202 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
41203 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
41204 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
41205 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
41206 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
41207 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
41208 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
41209 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
41210 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
41211 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
41212 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
41213 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
41214 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
41215 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
41216 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
41217 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
41218 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
41219 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
41220 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
41221 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
41222 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
41223 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
41224 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
41225 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
41226 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
41227 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
41228 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
41229 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
41230 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
41231 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
41232 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
41233 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
41234 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
41235 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
41236 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
41237 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
41238 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
41239 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
41240 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
41241 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
41242 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
41243 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
41244 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
41245 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
41246 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
41247 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
41248 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
41249 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
41250 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
41251 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
41252 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
41253 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
41254 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
41255 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
41256 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
41257 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
41258 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
41259 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
41260 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
41261 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
41262 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
41263 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
41264 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
41265 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
41266 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
41267 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
41268 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
41269 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
41270 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
41271 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
41272 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
41273 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
41274 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
41275 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
41276 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
41277 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
41278 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
41279 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
41280 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
41281 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
41282 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
41283 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
41284 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
41285 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
41286 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
41287 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
41288 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
41289 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
41290 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
41291 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
41292 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
41293 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
41294 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
41295 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
41296 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
41297 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
41298 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
41299 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
41300 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
41301 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
41302 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
41303 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
41304 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
41305 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
41306 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
41307 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
41308 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
41309 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
41310 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
41311 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
41312 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
41313 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
41314 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
41315 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
41316 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
70d7cb34
RD
41317 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
41318 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set);
41319 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set);
41320 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set);
5c8c7dd3
RD
41321 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsMatrix",NullGraphicsMatrix_get, NullGraphicsMatrix_set);
41322 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPath",NullGraphicsPath_get, NullGraphicsPath_set);
1bd55598
RD
41323 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
41324 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
41325 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
41326 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
41327 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
41328 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
41329 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
da91cb0f
RD
41330 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
41331 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
41332 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
41333 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
41334 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
41335 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
41336 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
41337 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
41338 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
41339 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
41340 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
41341 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
41342 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
41343 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
41344 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
41345 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
41346 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
41347 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
41348 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
41349 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
41350 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
41351 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
41352 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
41353 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
41354 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
41355 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
41356 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
41357 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
41358 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
41359 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
41360 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
41361 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
41362 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
41363 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
41364 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
1bd55598
RD
41365 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
41366 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
41367 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
41368 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
41369 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
41370 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
41371 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
41372 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
1bd55598
RD
41373 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
41374 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
41375 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
79df624a 41376 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
1bd55598
RD
41377 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
41378 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
41379 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
79df624a 41380 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
1bd55598
RD
41381 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
41382 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
41383 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
41384 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
41385 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
41386 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
41387 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
33d6fd3b
RD
41388 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
41389 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
41390 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
1bd55598
RD
41391 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
41392 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
41393
41394 // Work around a chicken/egg problem in drawlist.cpp
41395 wxPyDrawList_SetAPIPtr();
41396
d55e5bfc
RD
41397}
41398