]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/_gdi_wrap.cpp
Don't steal VK_RETURN for wxEVT_COMMAND_LIST_ITEM_ACTIVATED if any of
[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]
59ccbf7f
RD
2494#define SWIGTYPE_p_wxColour swig_types[28]
2495#define SWIGTYPE_p_wxColourDatabase swig_types[29]
2496#define SWIGTYPE_p_wxCommandEvent swig_types[30]
2497#define SWIGTYPE_p_wxContextMenuEvent swig_types[31]
2498#define SWIGTYPE_p_wxControl swig_types[32]
2499#define SWIGTYPE_p_wxControlWithItems swig_types[33]
2500#define SWIGTYPE_p_wxCursor swig_types[34]
2501#define SWIGTYPE_p_wxDC swig_types[35]
2502#define SWIGTYPE_p_wxDCBrushChanger swig_types[36]
2503#define SWIGTYPE_p_wxDCClipper swig_types[37]
2504#define SWIGTYPE_p_wxDCOverlay swig_types[38]
2505#define SWIGTYPE_p_wxDCPenChanger swig_types[39]
2506#define SWIGTYPE_p_wxDCTextColourChanger swig_types[40]
2507#define SWIGTYPE_p_wxDash swig_types[41]
2508#define SWIGTYPE_p_wxDateEvent swig_types[42]
2509#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[43]
2510#define SWIGTYPE_p_wxDropFilesEvent swig_types[44]
2511#define SWIGTYPE_p_wxDuplexMode swig_types[45]
2512#define SWIGTYPE_p_wxEffects swig_types[46]
2513#define SWIGTYPE_p_wxEncodingConverter swig_types[47]
2514#define SWIGTYPE_p_wxEraseEvent swig_types[48]
2515#define SWIGTYPE_p_wxEvent swig_types[49]
2516#define SWIGTYPE_p_wxEvtHandler swig_types[50]
2517#define SWIGTYPE_p_wxFSFile swig_types[51]
2518#define SWIGTYPE_p_wxFileSystem swig_types[52]
2519#define SWIGTYPE_p_wxFlexGridSizer swig_types[53]
2520#define SWIGTYPE_p_wxFocusEvent swig_types[54]
2521#define SWIGTYPE_p_wxFont swig_types[55]
2522#define SWIGTYPE_p_wxFontList swig_types[56]
2523#define SWIGTYPE_p_wxFontMapper swig_types[57]
2524#define SWIGTYPE_p_wxGBSizerItem swig_types[58]
2525#define SWIGTYPE_p_wxGCDC swig_types[59]
2526#define SWIGTYPE_p_wxGDIObjListBase swig_types[60]
2527#define SWIGTYPE_p_wxGDIObject swig_types[61]
2528#define SWIGTYPE_p_wxGIFHandler swig_types[62]
2529#define SWIGTYPE_p_wxGraphicsBrush swig_types[63]
2530#define SWIGTYPE_p_wxGraphicsContext swig_types[64]
2531#define SWIGTYPE_p_wxGraphicsFont swig_types[65]
2532#define SWIGTYPE_p_wxGraphicsMatrix swig_types[66]
2533#define SWIGTYPE_p_wxGraphicsObject swig_types[67]
2534#define SWIGTYPE_p_wxGraphicsPath swig_types[68]
2535#define SWIGTYPE_p_wxGraphicsPen swig_types[69]
2536#define SWIGTYPE_p_wxGraphicsRenderer swig_types[70]
2537#define SWIGTYPE_p_wxGridBagSizer swig_types[71]
2538#define SWIGTYPE_p_wxGridSizer swig_types[72]
2539#define SWIGTYPE_p_wxHeaderButtonParams swig_types[73]
2540#define SWIGTYPE_p_wxICOHandler swig_types[74]
2541#define SWIGTYPE_p_wxIcon swig_types[75]
2542#define SWIGTYPE_p_wxIconBundle swig_types[76]
2543#define SWIGTYPE_p_wxIconLocation swig_types[77]
2544#define SWIGTYPE_p_wxIconizeEvent swig_types[78]
2545#define SWIGTYPE_p_wxIdleEvent swig_types[79]
2546#define SWIGTYPE_p_wxImage swig_types[80]
2547#define SWIGTYPE_p_wxImageHandler swig_types[81]
2548#define SWIGTYPE_p_wxImageList swig_types[82]
2549#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[83]
2550#define SWIGTYPE_p_wxInitDialogEvent swig_types[84]
2551#define SWIGTYPE_p_wxJPEGHandler swig_types[85]
2552#define SWIGTYPE_p_wxKeyEvent swig_types[86]
2553#define SWIGTYPE_p_wxLanguageInfo swig_types[87]
2554#define SWIGTYPE_p_wxLayoutConstraints swig_types[88]
2555#define SWIGTYPE_p_wxLocale swig_types[89]
2556#define SWIGTYPE_p_wxMask swig_types[90]
2557#define SWIGTYPE_p_wxMaximizeEvent swig_types[91]
2558#define SWIGTYPE_p_wxMemoryDC swig_types[92]
2559#define SWIGTYPE_p_wxMenu swig_types[93]
2560#define SWIGTYPE_p_wxMenuBar swig_types[94]
2561#define SWIGTYPE_p_wxMenuEvent swig_types[95]
2562#define SWIGTYPE_p_wxMenuItem swig_types[96]
2563#define SWIGTYPE_p_wxMetaFile swig_types[97]
2564#define SWIGTYPE_p_wxMetaFileDC swig_types[98]
2565#define SWIGTYPE_p_wxMirrorDC swig_types[99]
2566#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[100]
2567#define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[101]
2568#define SWIGTYPE_p_wxMouseEvent swig_types[102]
2569#define SWIGTYPE_p_wxMoveEvent swig_types[103]
2570#define SWIGTYPE_p_wxNativeEncodingInfo swig_types[104]
2571#define SWIGTYPE_p_wxNativeFontInfo swig_types[105]
2572#define SWIGTYPE_p_wxNativePixelData swig_types[106]
2573#define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[107]
2574#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[108]
2575#define SWIGTYPE_p_wxNcPaintEvent swig_types[109]
2576#define SWIGTYPE_p_wxNotifyEvent swig_types[110]
2577#define SWIGTYPE_p_wxObject swig_types[111]
2578#define SWIGTYPE_p_wxOverlay swig_types[112]
2579#define SWIGTYPE_p_wxPCXHandler swig_types[113]
2580#define SWIGTYPE_p_wxPNGHandler swig_types[114]
2581#define SWIGTYPE_p_wxPNMHandler swig_types[115]
2582#define SWIGTYPE_p_wxPaintDC swig_types[116]
2583#define SWIGTYPE_p_wxPaintEvent swig_types[117]
2584#define SWIGTYPE_p_wxPalette swig_types[118]
2585#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[119]
2586#define SWIGTYPE_p_wxPaperSize swig_types[120]
2587#define SWIGTYPE_p_wxPen swig_types[121]
2588#define SWIGTYPE_p_wxPenList swig_types[122]
2589#define SWIGTYPE_p_wxPixelDataBase swig_types[123]
2590#define SWIGTYPE_p_wxPoint swig_types[124]
2591#define SWIGTYPE_p_wxPoint2D swig_types[125]
2592#define SWIGTYPE_p_wxPostScriptDC swig_types[126]
2593#define SWIGTYPE_p_wxPrintData swig_types[127]
2594#define SWIGTYPE_p_wxPrinterDC swig_types[128]
2595#define SWIGTYPE_p_wxPseudoDC swig_types[129]
2596#define SWIGTYPE_p_wxPyApp swig_types[130]
2597#define SWIGTYPE_p_wxPyCommandEvent swig_types[131]
2598#define SWIGTYPE_p_wxPyEvent swig_types[132]
2599#define SWIGTYPE_p_wxPyFontEnumerator swig_types[133]
2600#define SWIGTYPE_p_wxPyImageHandler swig_types[134]
2601#define SWIGTYPE_p_wxPyLocale swig_types[135]
2602#define SWIGTYPE_p_wxPySizer swig_types[136]
2603#define SWIGTYPE_p_wxPyValidator swig_types[137]
2604#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[138]
2605#define SWIGTYPE_p_wxRect swig_types[139]
2606#define SWIGTYPE_p_wxRect2D swig_types[140]
2607#define SWIGTYPE_p_wxRegion swig_types[141]
2608#define SWIGTYPE_p_wxRegionIterator swig_types[142]
2609#define SWIGTYPE_p_wxRendererNative swig_types[143]
2610#define SWIGTYPE_p_wxRendererVersion swig_types[144]
2611#define SWIGTYPE_p_wxScreenDC swig_types[145]
2612#define SWIGTYPE_p_wxScrollEvent swig_types[146]
2613#define SWIGTYPE_p_wxScrollWinEvent swig_types[147]
2614#define SWIGTYPE_p_wxSetCursorEvent swig_types[148]
2615#define SWIGTYPE_p_wxShowEvent swig_types[149]
2616#define SWIGTYPE_p_wxSize swig_types[150]
2617#define SWIGTYPE_p_wxSizeEvent swig_types[151]
2618#define SWIGTYPE_p_wxSizer swig_types[152]
2619#define SWIGTYPE_p_wxSizerItem swig_types[153]
2620#define SWIGTYPE_p_wxSplitterRenderParams swig_types[154]
2621#define SWIGTYPE_p_wxStaticBoxSizer swig_types[155]
2622#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[156]
2623#define SWIGTYPE_p_wxStockGDI swig_types[157]
2624#define SWIGTYPE_p_wxString swig_types[158]
2625#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[159]
2626#define SWIGTYPE_p_wxTGAHandler swig_types[160]
2627#define SWIGTYPE_p_wxTIFFHandler swig_types[161]
2628#define SWIGTYPE_p_wxUpdateUIEvent swig_types[162]
2629#define SWIGTYPE_p_wxValidator swig_types[163]
2630#define SWIGTYPE_p_wxWindow swig_types[164]
2631#define SWIGTYPE_p_wxWindowCreateEvent swig_types[165]
2632#define SWIGTYPE_p_wxWindowDC swig_types[166]
2633#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[167]
2634#define SWIGTYPE_p_wxXPMHandler swig_types[168]
2635static swig_type_info *swig_types[170];
2636static swig_module_info swig_module = {swig_types, 169, 0, 0, 0, 0};
32fe5131
RD
2637#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2638#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
d55e5bfc 2639
36ed4f51 2640/* -------- TYPES TABLE (END) -------- */
d55e5bfc 2641
1bd55598
RD
2642#if (PY_VERSION_HEX <= 0x02000000)
2643# if !defined(SWIG_PYTHON_CLASSIC)
2644# error "This python version requires to use swig with the '-classic' option"
2645# endif
2646#endif
2647#if (PY_VERSION_HEX <= 0x02020000)
2648# error "This python version requires to use swig with the '-nomodern' option"
2649#endif
2650#if (PY_VERSION_HEX <= 0x02020000)
2651# error "This python version requires to use swig with the '-nomodernargs' option"
2652#endif
2653#ifndef METH_O
2654# error "This python version requires to use swig with the '-nofastunpack' option"
2655#endif
d55e5bfc 2656
36ed4f51
RD
2657/*-----------------------------------------------
2658 @(target):= _gdi_.so
2659 ------------------------------------------------*/
2660#define SWIG_init init_gdi_
d55e5bfc 2661
36ed4f51 2662#define SWIG_name "_gdi_"
d55e5bfc 2663
1bd55598 2664#define SWIGVERSION 0x010329
d55e5bfc 2665
d55e5bfc 2666
1bd55598
RD
2667#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2668#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
d55e5bfc
RD
2669
2670
1bd55598
RD
2671#include <stdexcept>
2672
2673
2674namespace swig {
2675 class PyObject_ptr {
2676 protected:
2677 PyObject *_obj;
2678
2679 public:
2680 PyObject_ptr() :_obj(0)
2681 {
36ed4f51 2682 }
1bd55598
RD
2683
2684 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2685 {
2686 Py_XINCREF(_obj);
36ed4f51 2687 }
1bd55598
RD
2688
2689 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2690 {
2691 if (initial_ref) Py_XINCREF(_obj);
2692 }
2693
2694 PyObject_ptr & operator=(const PyObject_ptr& item)
2695 {
2696 Py_XINCREF(item._obj);
2697 Py_XDECREF(_obj);
2698 _obj = item._obj;
2699 return *this;
2700 }
2701
2702 ~PyObject_ptr()
2703 {
2704 Py_XDECREF(_obj);
2705 }
2706
2707 operator PyObject *() const
2708 {
2709 return _obj;
2710 }
2711
2712 PyObject *operator->() const
2713 {
2714 return _obj;
2715 }
2716 };
36ed4f51 2717}
d55e5bfc 2718
d55e5bfc 2719
1bd55598
RD
2720namespace swig {
2721 struct PyObject_var : PyObject_ptr {
2722 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2723
2724 PyObject_var & operator = (PyObject* obj)
2725 {
2726 Py_XDECREF(_obj);
2727 _obj = obj;
2728 return *this;
d55e5bfc 2729 }
1bd55598 2730 };
d55e5bfc
RD
2731}
2732
2733
1bd55598
RD
2734#include "wx/wxPython/wxPython.h"
2735#include "wx/wxPython/pyclasses.h"
2736
2737
2738 static const wxString wxPyEmptyString(wxEmptyString);
2739
2131d850
RD
2740 #define SWIG_From_long PyInt_FromLong
2741
2742
2743SWIGINTERNINLINE PyObject *
2744SWIG_From_int (int value)
2745{
2746 return SWIG_From_long (value);
2747}
2748
2749
1bd55598
RD
2750#include <limits.h>
2751#ifndef LLONG_MIN
2752# define LLONG_MIN LONG_LONG_MIN
2753#endif
2754#ifndef LLONG_MAX
2755# define LLONG_MAX LONG_LONG_MAX
2756#endif
2757#ifndef ULLONG_MAX
2758# define ULLONG_MAX ULONG_LONG_MAX
2759#endif
d55e5bfc
RD
2760
2761
da91cb0f
RD
2762SWIGINTERN int
2763SWIG_AsVal_long (PyObject* obj, long* val)
2764{
2765 if (PyNumber_Check(obj)) {
2766 if (val) *val = PyInt_AsLong(obj);
2767 return SWIG_OK;
2768 }
2769 return SWIG_TypeError;
2770}
2771
2772
36ed4f51 2773SWIGINTERN int
1bd55598 2774SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
36ed4f51
RD
2775{
2776 long v = 0;
2777 if (SWIG_AsVal_long(obj, &v) && v < 0) {
1bd55598 2778 return SWIG_TypeError;
36ed4f51
RD
2779 }
2780 else if (val)
2781 *val = (unsigned long)v;
1bd55598 2782 return SWIG_OK;
36ed4f51 2783}
d55e5bfc
RD
2784
2785
36ed4f51 2786SWIGINTERN int
1bd55598
RD
2787SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2788{
36ed4f51 2789 unsigned long v;
1bd55598
RD
2790 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2791 if (SWIG_IsOK(res)) {
2792 if ((v > UCHAR_MAX)) {
2793 return SWIG_OverflowError;
36ed4f51 2794 } else {
1bd55598 2795 if (val) *val = static_cast< unsigned char >(v);
36ed4f51 2796 }
1bd55598
RD
2797 }
2798 return res;
36ed4f51 2799}
d55e5bfc 2800
d55e5bfc 2801
1bd55598
RD
2802SWIGINTERNINLINE PyObject*
2803SWIG_From_unsigned_SS_long (unsigned long value)
36ed4f51 2804{
1bd55598
RD
2805 return (value > LONG_MAX) ?
2806 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
d55e5bfc
RD
2807}
2808
2809
1bd55598
RD
2810SWIGINTERNINLINE PyObject *
2811SWIG_From_unsigned_SS_char (unsigned char value)
2812{
2813 return SWIG_From_unsigned_SS_long (value);
2814}
d55e5bfc 2815
e9d6f3a4
RD
2816SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2817 wxColour temp, *obj = &temp;
2818 if ( other == Py_None ) return false;
2819 if ( ! wxColour_helper(other, &obj) ) {
2820 PyErr_Clear();
2821 return false;
2822 }
2823 return self->operator==(*obj);
2824 }
2825SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2826 wxColour temp, *obj = &temp;
2827 if ( other == Py_None ) return true;
2828 if ( ! wxColour_helper(other, &obj)) {
2829 PyErr_Clear();
2830 return true;
2831 }
2832 return self->operator!=(*obj);
2833 }
fc46b7f3
RD
2834
2835SWIGINTERN int
2836SWIG_AsVal_bool (PyObject *obj, bool *val)
2837{
2838 if (obj == Py_True) {
2839 if (val) *val = true;
2840 return SWIG_OK;
2841 } else if (obj == Py_False) {
2842 if (val) *val = false;
2843 return SWIG_OK;
2844 } else {
2845 long v = 0;
2846 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2847 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2848 return res;
2849 }
2850}
2851
2852SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2853 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
36ed4f51
RD
2854 int red = -1;
2855 int green = -1;
2856 int blue = -1;
fc46b7f3 2857 int alpha = wxALPHA_OPAQUE;
b39fe951 2858 if (self->IsOk()) {
36ed4f51
RD
2859 red = self->Red();
2860 green = self->Green();
2861 blue = self->Blue();
fc46b7f3 2862 alpha = self->Alpha();
36ed4f51
RD
2863 }
2864 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2865 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2866 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
fc46b7f3
RD
2867 if (includeAlpha)
2868 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
36ed4f51
RD
2869 return rv;
2870 }
1bd55598 2871SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
36ed4f51
RD
2872 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2873 }
d55e5bfc 2874
1bd55598
RD
2875SWIGINTERN int
2876SWIG_AsVal_int (PyObject * obj, int *val)
36ed4f51 2877{
1bd55598
RD
2878 long v;
2879 int res = SWIG_AsVal_long (obj, &v);
2880 if (SWIG_IsOK(res)) {
2881 if ((v < INT_MIN || v > INT_MAX)) {
2882 return SWIG_OverflowError;
2883 } else {
2884 if (val) *val = static_cast< int >(v);
2885 }
2886 }
2887 return res;
d55e5bfc
RD
2888}
2889
1bd55598 2890SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
36ed4f51
RD
2891 wxDash* dashes;
2892 int count = self->GetDashes(&dashes);
5a446332 2893 wxPyBlock_t blocked = wxPyBeginBlockThreads();
36ed4f51
RD
2894 PyObject* retval = PyList_New(0);
2895 for (int x=0; x<count; x++) {
2896 PyObject* pyint = PyInt_FromLong(dashes[x]);
2897 PyList_Append(retval, pyint);
2898 Py_DECREF(pyint);
2899 }
2900 wxPyEndBlockThreads(blocked);
2901 return retval;
2902 }
1bd55598 2903SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
5a446332 2904 wxPyBlock_t blocked = wxPyBeginBlockThreads();
36ed4f51
RD
2905 int size = PyList_Size(pyDashes);
2906 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
d55e5bfc 2907
36ed4f51
RD
2908 // black magic warning! The array of wxDashes needs to exist as
2909 // long as the pen does because wxPen does not copy the array. So
2910 // stick a copy in a Python string object and attach it to _self,
2911 // and then call SetDashes with a pointer to that array. Then
2912 // when the Python pen object is destroyed the array will be
2913 // cleaned up too.
2914 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2915 PyObject_SetAttrString(_self, "_dashes", strDashes);
2916
2917 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2918 delete [] dashes;
2919 Py_DECREF(strDashes);
2920 wxPyEndBlockThreads(blocked);
2921 }
1bd55598
RD
2922SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2923SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
d55e5bfc 2924
1bd55598
RD
2925SWIGINTERNINLINE PyObject *
2926SWIG_From_short (short value)
2927{
2928 return SWIG_From_long (value);
2929}
d55e5bfc
RD
2930
2931
36ed4f51 2932SWIGINTERN int
1bd55598
RD
2933SWIG_AsVal_short (PyObject * obj, short *val)
2934{
36ed4f51 2935 long v;
1bd55598
RD
2936 int res = SWIG_AsVal_long (obj, &v);
2937 if (SWIG_IsOK(res)) {
2938 if ((v < SHRT_MIN || v > SHRT_MAX)) {
2939 return SWIG_OverflowError;
36ed4f51 2940 } else {
1bd55598
RD
2941 if (val) *val = static_cast< short >(v);
2942 }
2943 }
2944 return res;
d55e5bfc
RD
2945}
2946
2947
fc46b7f3
RD
2948#include <wx/rawbmp.h>
2949
2950
8f514ab4
RD
2951// See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2952// appears to me that the other platforms are already doing it, so I'll just
2953// automatically do it for wxMSW here.
2954#ifdef __WXMSW__
2955#define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2956#define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2957#else
2958#define wxPy_premultiply(p, a) (p)
2959#define wxPy_unpremultiply(p, a) (p)
2960#endif
2961
2962
36ed4f51 2963#include <wx/image.h>
d55e5bfc 2964
36ed4f51
RD
2965 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2966 char** cArray = NULL;
2967 int count;
d55e5bfc 2968
36ed4f51
RD
2969 if (!PyList_Check(listOfStrings)) {
2970 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2971 return NULL;
2972 }
2973 count = PyList_Size(listOfStrings);
2974 cArray = new char*[count];
d55e5bfc 2975
36ed4f51
RD
2976 for(int x=0; x<count; x++) {
2977 // TODO: Need some validation and error checking here
2978 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2979 }
2980 return cArray;
d55e5bfc 2981 }
d55e5bfc
RD
2982
2983
1bd55598 2984SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
fc46b7f3
RD
2985 char** cArray = NULL;
2986 wxBitmap* bmp;
2987
2988 cArray = ConvertListOfStrings(listOfStrings);
2989 if (! cArray)
2990 return NULL;
2991 bmp = new wxBitmap(cArray);
2992 delete [] cArray;
2993 return bmp;
2994 }
1bd55598 2995SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
fc46b7f3
RD
2996 char* buf;
2997 Py_ssize_t length;
2998 PyString_AsStringAndSize(bits, &buf, &length);
2999 return new wxBitmap(buf, width, height, depth);
3000 }
1bd55598 3001SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
36ed4f51
RD
3002 wxSize size(self->GetWidth(), self->GetHeight());
3003 return size;
3004 }
1bd55598 3005SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
36ed4f51
RD
3006 wxMask *mask = new wxMask(*self, colour);
3007 self->SetMask(mask);
3008 }
1bd55598 3009SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
36ed4f51
RD
3010 self->SetWidth(size.x);
3011 self->SetHeight(size.y);
3012 }
8f514ab4
RD
3013SWIGINTERN void wxBitmap_CopyFromBuffer(wxBitmap *self,buffer data,int DATASIZE){
3014 int height=self->GetHeight();
3015 int width=self->GetWidth();
fc46b7f3 3016
8f514ab4
RD
3017 if (DATASIZE != width * height * 3) {
3018 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3019 }
3020 wxNativePixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3021 if (! pixData) {
3022 // raise an exception...
3023 wxPyErr_SetString(PyExc_RuntimeError,
3024 "Failed to gain raw access to bitmap data.");
3025 return;
3026 }
fc46b7f3 3027
8f514ab4
RD
3028 wxNativePixelData::Iterator p(pixData);
3029 for (int y=0; y<height; y++) {
3030 wxNativePixelData::Iterator rowStart = p;
3031 for (int x=0; x<width; x++) {
3032 p.Red() = *(data++);
3033 p.Green() = *(data++);
3034 p.Blue() = *(data++);
3035 ++p;
3036 }
3037 p = rowStart;
3038 p.OffsetY(pixData, 1);
3039 }
3040 }
3041SWIGINTERN void wxBitmap_CopyFromBufferRGBA(wxBitmap *self,buffer data,int DATASIZE){
3042 int height=self->GetHeight();
3043 int width=self->GetWidth();
3044
3045 if (DATASIZE != width * height * 4) {
3046 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3047 }
3048 wxAlphaPixelData pixData(*self, wxPoint(0,0), wxSize(width, height));
3049 if (! pixData) {
3050 // raise an exception...
3051 wxPyErr_SetString(PyExc_RuntimeError,
3052 "Failed to gain raw access to bitmap data.");
3053 return;
3054 }
3055
3056 pixData.UseAlpha();
3057 wxAlphaPixelData::Iterator p(pixData);
3058 for (int y=0; y<height; y++) {
3059 wxAlphaPixelData::Iterator rowStart = p;
3060 for (int x=0; x<width; x++) {
3061 byte a = data[3];
3062 p.Red() = wxPy_premultiply(*(data++), a);
3063 p.Green() = wxPy_premultiply(*(data++), a);
3064 p.Blue() = wxPy_premultiply(*(data++), a);
3065 p.Alpha() = a; data++;
3066 ++p;
3067 }
3068 p = rowStart;
3069 p.OffsetY(pixData, 1);
3070 }
3071 }
3072SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? self->IsSameAs(*other) : false; }
3073SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? !self->IsSameAs(*other) : true; }
fc46b7f3
RD
3074
3075 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
3076 buffer data, int DATASIZE,
3077 buffer alpha, int ALPHASIZE)
3078 {
3079 if (DATASIZE != width*height*3) {
3080 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3081 return NULL;
3082 }
3083
3084 if (ALPHASIZE != width*height) {
3085 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3086 return NULL;
3087 }
3088
3089 wxBitmap* bmp = new wxBitmap(width, height, 32);
3090 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3091 if (! pixData) {
3092 // raise an exception...
3093 wxPyErr_SetString(PyExc_RuntimeError,
3094 "Failed to gain raw access to bitmap data.");
3095 return NULL;
3096 }
3097
3098 pixData.UseAlpha();
3099 wxAlphaPixelData::Iterator p(pixData);
3100 for (int y=0; y<height; y++) {
3101 wxAlphaPixelData::Iterator rowStart = p;
3102 for (int x=0; x<width; x++) {
3103 byte a = *(alpha++);
3104 p.Red() = wxPy_premultiply(*(data++), a);
3105 p.Green() = wxPy_premultiply(*(data++), a);
3106 p.Blue() = wxPy_premultiply(*(data++), a);
3107 p.Alpha() = a;
3108 ++p;
3109 }
3110 p = rowStart;
3111 p.OffsetY(pixData, 1);
3112 }
3113 return bmp;
3114 }
3115
3116 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3117 {
3118 if (DATASIZE != width*height*3) {
3119 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3120 return NULL;
3121 }
3122
3123 wxBitmap* bmp = new wxBitmap(width, height, 24);
3124 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3125 if (! pixData) {
3126 // raise an exception...
3127 wxPyErr_SetString(PyExc_RuntimeError,
3128 "Failed to gain raw access to bitmap data.");
3129 return NULL;
3130 }
3131
3132 wxNativePixelData::Iterator p(pixData);
3133 for (int y=0; y<height; y++) {
3134 wxNativePixelData::Iterator rowStart = p;
3135 for (int x=0; x<width; x++) {
3136 p.Red() = *(data++);
3137 p.Green() = *(data++);
3138 p.Blue() = *(data++);
3139 ++p;
3140 }
3141 p = rowStart;
3142 p.OffsetY(pixData, 1);
3143 }
3144 return bmp;
3145 }
3146
3147
3148 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3149 {
3150 if (DATASIZE != width*height*4) {
3151 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3152 return NULL;
3153 }
3154
3155 wxBitmap* bmp = new wxBitmap(width, height, 32);
3156 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3157 if (! pixData) {
3158 // raise an exception...
3159 wxPyErr_SetString(PyExc_RuntimeError,
3160 "Failed to gain raw access to bitmap data.");
3161 return NULL;
3162 }
3163
3164 pixData.UseAlpha();
3165 wxAlphaPixelData::Iterator p(pixData);
3166 for (int y=0; y<height; y++) {
3167 wxAlphaPixelData::Iterator rowStart = p;
3168 for (int x=0; x<width; x++) {
3169 byte a = data[3];
3170 p.Red() = wxPy_premultiply(*(data++), a);
3171 p.Green() = wxPy_premultiply(*(data++), a);
3172 p.Blue() = wxPy_premultiply(*(data++), a);
3173 p.Alpha() = a; data++;
3174 ++p;
3175 }
3176 p = rowStart;
3177 p.OffsetY(pixData, 1);
3178 }
3179 return bmp;
3180 }
3181
3182
3183 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3184
3185SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3186SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3187SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3188 self->Red() = red;
3189 self->Green() = green;
3190 self->Blue() = blue;
3191 }
3192SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3193 PyObject* rv = PyTuple_New(3);
3194 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3195 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3196 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3197 return rv;
3198 }
3199
3200 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3201
3202SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3203SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3204SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3205 self->Red() = wxPy_premultiply(red, alpha);
3206 self->Green() = wxPy_premultiply(green, alpha);
3207 self->Blue() = wxPy_premultiply(blue, alpha);
3208 self->Alpha() = alpha;
3209 }
3210SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3211 PyObject* rv = PyTuple_New(4);
3212 int red = self->Red();
3213 int green = self->Green();
3214 int blue = self->Blue();
3215 int alpha = self->Alpha();
3216
3217 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3218 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3219 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3220 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3221 return rv;
3222 }
1bd55598 3223SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
b39fe951 3224 if ( !colour.IsOk() )
36ed4f51
RD
3225 return new wxMask(bitmap, *wxBLACK);
3226 else
3227 return new wxMask(bitmap, colour);
3228 }
d55e5bfc 3229
36ed4f51 3230#include <wx/iconbndl.h>
d55e5bfc 3231
1bd55598 3232SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
36ed4f51
RD
3233 wxIcon* icon = new wxIcon();
3234 icon->CopyFromBitmap(bmp);
3235 return icon;
3236 }
1bd55598 3237SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
36ed4f51
RD
3238 char** cArray = NULL;
3239 wxIcon* icon;
d55e5bfc 3240
36ed4f51
RD
3241 cArray = ConvertListOfStrings(listOfStrings);
3242 if (! cArray)
3243 return NULL;
3244 icon = new wxIcon(cArray);
3245 delete [] cArray;
3246 return icon;
3247 }
1bd55598 3248SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
d55e5bfc
RD
3249
3250
d55e5bfc 3251
36ed4f51 3252 return new wxIconLocation(*filename);
d55e5bfc 3253
36ed4f51 3254 }
1bd55598 3255SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
d55e5bfc
RD
3256
3257
d55e5bfc 3258
36ed4f51 3259 // do nothing
d55e5bfc 3260
36ed4f51 3261 }
1bd55598 3262SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
5cbf236d
RD
3263
3264
d55e5bfc 3265
36ed4f51 3266 return -1;
d55e5bfc 3267
36ed4f51 3268 }
1bd55598 3269SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
36ed4f51 3270#ifdef __WXGTK__
fef4c27a
RD
3271 wxImage img(cursorName, type);
3272 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3273 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3274 return new wxCursor(img);
36ed4f51 3275#else
fef4c27a 3276 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
36ed4f51
RD
3277#endif
3278 }
d55e5bfc 3279
d55e5bfc 3280
1bd55598 3281SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
36ed4f51
RD
3282 (*self) ++;
3283 }
1bd55598 3284SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
36ed4f51
RD
3285 return self->operator bool();
3286 }
d55e5bfc 3287
36ed4f51
RD
3288#include <wx/fontutil.h>
3289#include <wx/fontmap.h>
3290#include <wx/fontenum.h>
d55e5bfc 3291
1bd55598 3292SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
36ed4f51
RD
3293 return self->ToString();
3294 }
d55e5bfc 3295
36ed4f51
RD
3296 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3297 static wxNativeEncodingInfo info;
3298 if ( wxGetNativeFontEncoding(encoding, &info) )
3299 return &info;
3300 else
3301 return NULL;
d55e5bfc 3302 }
d55e5bfc 3303
1bd55598
RD
3304
3305SWIGINTERNINLINE PyObject *
3306SWIG_From_size_t (size_t value)
3307{
3308 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3309}
3310
3311
3312SWIGINTERNINLINE int
3313SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3314{
3315 unsigned long v;
3316 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3317 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3318 return res;
3319}
3320
3321SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
36ed4f51
RD
3322 wxFontEncoding alt_enc;
3323 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3324 return PyInt_FromLong(alt_enc);
3325 else {
3326 Py_INCREF(Py_None);
3327 return Py_None;
3328 }
3329 }
1bd55598 3330SWIGINTERN wxFont *new_wxFont(wxString const &info){
a97cefba
RD
3331 wxNativeFontInfo nfi;
3332 nfi.FromString(info);
3333 return new wxFont(nfi);
3334 }
1bd55598 3335SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3336 return wxFont::New(pointSize, family, flags, face, encoding);
3337 }
1bd55598 3338SWIGINTERN 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
3339 return wxFontBase::New(pixelSize, family,
3340 style, weight, underlined,
3341 face, encoding);
3342 }
1bd55598 3343SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
a97cefba
RD
3344 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3345 }
1bd55598
RD
3346SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3347SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
d55e5bfc 3348
36ed4f51
RD
3349class wxPyFontEnumerator : public wxFontEnumerator {
3350public:
3351 wxPyFontEnumerator() {}
3352 ~wxPyFontEnumerator() {}
d55e5bfc 3353
36ed4f51
RD
3354 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3355 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
d55e5bfc 3356
36ed4f51
RD
3357 PYPRIVATE;
3358};
d55e5bfc 3359
36ed4f51
RD
3360IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3361IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
d55e5bfc 3362
36ed4f51 3363
704eda0c 3364SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
e9d6f3a4 3365 PyObject* ret;
704eda0c 3366 wxArrayString arr = wxFontEnumerator::GetEncodings();
e9d6f3a4 3367 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3368 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3369 wxPyEndBlockThreads(blocked);
3370 return ret;
36ed4f51 3371 }
704eda0c 3372SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
e9d6f3a4 3373 PyObject* ret;
704eda0c 3374 wxArrayString arr = wxFontEnumerator::GetFacenames();
e9d6f3a4 3375 wxPyBlock_t blocked = wxPyBeginBlockThreads();
704eda0c 3376 ret = wxArrayString2PyList_helper(arr);
e9d6f3a4
RD
3377 wxPyEndBlockThreads(blocked);
3378 return ret;
36ed4f51
RD
3379 }
3380
3381#include <locale.h>
3382
1bd55598 3383SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
36ed4f51
RD
3384 wxLocale* loc;
3385 if (language == -1)
3386 loc = new wxLocale();
3387 else
3388 loc = new wxLocale(language, flags);
3389 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3390 // for the floating point conversions and such to work right.
3391#if PY_VERSION_HEX < 0x02040000
3392 setlocale(LC_NUMERIC, "C");
3393#endif
3394 return loc;
3395 }
1bd55598 3396SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
36ed4f51
RD
3397 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3398 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3399 // for the floating point conversions and such to work right.
3400#if PY_VERSION_HEX < 0x02040000
3401 setlocale(LC_NUMERIC, "C");
3402#endif
3403 return rc;
3404 }
1bd55598 3405SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
36ed4f51
RD
3406 bool rc = self->Init(language, flags);
3407 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3408 // for the floating point conversions and such to work right.
3409#if PY_VERSION_HEX < 0x02040000
3410 setlocale(LC_NUMERIC, "C");
3411#endif
3412 return rc;
3413 }
3414
fc46b7f3
RD
3415class wxPyLocale : public wxLocale
3416{
3417public:
3418 wxPyLocale();
3419
3420 wxPyLocale(const wxChar *szName, // name (for messages)
3421 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3422 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3423 bool bLoadDefault = true, // preload wxstd.mo?
3424 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3425
3426 wxPyLocale(int language, // wxLanguage id or custom language
3427 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3428
3429 ~wxPyLocale();
3430
3431 virtual const wxChar *GetString(const wxChar *szOrigString,
3432 const wxChar *szDomain = NULL) const;
3433 virtual const wxChar *GetString(const wxChar *szOrigString,
3434 const wxChar *szOrigString2, size_t n,
3435 const wxChar *szDomain = NULL) const;
3436
3437 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3438 const wxChar *szDomain = NULL) const;
3439 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3440 const wxChar *szOrigString2, size_t n,
3441 const wxChar *szDomain = NULL) const;
3442
3443 PYPRIVATE;
3444private:
3445 DECLARE_NO_COPY_CLASS(wxPyLocale)
3446};
3447
3448wxPyLocale::wxPyLocale() : wxLocale()
3449{
3450}
3451
3452wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3453 const wxChar *szShort, // dir prefix (for msg files)
3454 const wxChar *szLocale, // locale (for setlocale)
3455 bool bLoadDefault, // preload wxstd.mo?
3456 bool bConvertEncoding) // convert Win<->Unix if necessary?
3457 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3458{
3459}
3460
3461wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3462 int flags) : wxLocale(language, flags)
3463{
3464}
3465
3466wxPyLocale::~wxPyLocale()
3467{
3468}
3469
3470const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3471 const wxChar *szDomain) const
3472{
3473 wxChar *str = GetSingularString(szOrigString, szDomain);
3474 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3475}
3476
3477const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3478 const wxChar *szOrigString2, size_t n,
3479 const wxChar *szDomain) const
3480{
3481 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3482 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3483}
3484
3485wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3486 const wxChar *szDomain) const
3487{
3488 bool found;
3489 static wxString str;
3490 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.
3491 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3492 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3493 PyObject* param1 = wx2PyString(szOrigString);
3494 PyObject* param2 = wx2PyString(szDomain);
3495 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3496 Py_DECREF(param1);
3497 Py_DECREF(param2);
3498 if (ret) {
3499 str = Py2wxString(ret);
3500 Py_DECREF(ret);
3501 }
3502 }
3503 wxPyEndBlockThreads(blocked);
3504 return (found ? (wxChar*)str.c_str() : NULL);
3505}
3506
3507wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3508 const wxChar *szOrigString2, size_t n,
3509 const wxChar *szDomain) const
3510{
3511 bool found;
3512 static wxString str;
3513 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.
3514 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3515 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3516 PyObject* param1 = wx2PyString(szOrigString);
3517 PyObject* param2 = wx2PyString(szOrigString2);
3518 PyObject* param4 = wx2PyString(szDomain);
3519 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3520 Py_DECREF(param1);
3521 Py_DECREF(param2);
3522 Py_DECREF(param4);
3523 if( ret) {
3524 str = Py2wxString(ret);
3525 Py_DECREF(ret);
3526 }
3527 }
3528 wxPyEndBlockThreads(blocked);
3529 return (found ? (wxChar*)str.c_str() : NULL);
3530}
3531
3532SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3533 wxPyLocale* loc;
3534 if (language == -1)
3535 loc = new wxPyLocale();
3536 else
3537 loc = new wxPyLocale(language, flags);
3538 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3539 // for the floating point conversions and such to work right.
3540#if PY_VERSION_HEX < 0x02040000
3541 setlocale(LC_NUMERIC, "C");
3542#endif
3543 return loc;
3544 }
3545
36ed4f51
RD
3546#include "wx/wxPython/pydrawxxx.h"
3547
1bd55598 3548SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
36ed4f51
RD
3549 wxColour col;
3550 self->GetPixel(x, y, &col);
3551 return col;
3552 }
1bd55598 3553SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
36ed4f51
RD
3554 wxColour col;
3555 self->GetPixel(pt, &col);
3556 return col;
3557 }
3558
3559SWIGINTERN int
1bd55598 3560SWIG_AsVal_double (PyObject *obj, double* val)
36ed4f51
RD
3561{
3562 if (PyNumber_Check(obj)) {
3563 if (val) *val = PyFloat_AsDouble(obj);
1bd55598 3564 return SWIG_OK;
d55e5bfc 3565 }
1bd55598 3566 return SWIG_TypeError;
36ed4f51
RD
3567}
3568
1bd55598 3569SWIGINTERN 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
3570 wxRect rv;
3571 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3572 return rv;
3573 }
1bd55598 3574SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
36ed4f51
RD
3575 wxRect rect;
3576 self->GetClippingBox(rect);
3577 return rect;
3578 }
1bd55598 3579SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
36ed4f51
RD
3580 wxArrayInt widths;
3581 self->GetPartialTextExtents(text, widths);
3582 return widths;
3583 }
3584
1bd55598 3585 #define SWIG_From_double PyFloat_FromDouble
36ed4f51 3586
1bd55598 3587SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3588 self->SetLogicalOrigin(point.x, point.y);
3589 }
1bd55598 3590SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3591 self->SetDeviceOrigin(point.x, point.y);
3592 }
1bd55598 3593SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
36ed4f51
RD
3594 self->CalcBoundingBox(point.x, point.y);
3595 }
1bd55598 3596SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3597 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3598 }
1bd55598 3599SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3600 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3601 }
1bd55598 3602SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3603 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3604 }
1bd55598 3605SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3606 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3607 }
1bd55598 3608SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
36ed4f51
RD
3609 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3610 }
1bd55598 3611SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
36ed4f51
RD
3612 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3613 }
3614
3615static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3616 *x1 = dc->MinX();
3617 *y1 = dc->MinY();
3618 *x2 = dc->MaxX();
3619 *y2 = dc->MaxY();
3620}
3621
3622
3623#include <wx/dcbuffer.h>
3624
3625
3626#include <wx/dcps.h>
3627
3628
3629#include <wx/metafile.h>
3630
3631
72ef6efb
RD
3632#include <wx/graphics.h>
3633
3634
3635#if !wxUSE_GRAPHICS_CONTEXT
70d7cb34
RD
3636// C++ stub classes for platforms or build configurations that don't have
3637// wxGraphicsContext yet.
72ef6efb 3638
8bd35413
RD
3639class wxGraphicsRenderer;
3640class wxGraphicsMatrix;
3641
70d7cb34
RD
3642
3643class wxGraphicsObject : public wxObject
72ef6efb
RD
3644{
3645public :
8bd35413 3646 wxGraphicsObject() {}
70d7cb34 3647 wxGraphicsObject( wxGraphicsRenderer* ) {
72ef6efb 3648 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34
RD
3649 "wx.GraphicsObject is not available on this platform.");
3650 }
3651 wxGraphicsObject( const wxGraphicsObject& ) {}
3652 virtual ~wxGraphicsObject() {}
3653 bool IsNull() const { return false; }
3654 wxGraphicsRenderer* GetRenderer() const { return NULL; }
3655} ;
3656
3657
3658
3659class wxGraphicsPen : public wxGraphicsObject
3660{
8bd35413 3661public:
70d7cb34
RD
3662 wxGraphicsPen() {}
3663 virtual ~wxGraphicsPen() {}
3664} ;
3665wxGraphicsPen wxNullGraphicsPen;
3666
3667
3668
3669class wxGraphicsBrush : public wxGraphicsObject
3670{
3671public :
3672 wxGraphicsBrush() {}
3673 virtual ~wxGraphicsBrush() {}
3674} ;
3675wxGraphicsBrush wxNullGraphicsBrush;
3676
3677
3678
3679class wxGraphicsFont : public wxGraphicsObject
3680{
3681public :
3682 wxGraphicsFont() {}
3683 virtual ~wxGraphicsFont() {}
3684} ;
3685wxGraphicsFont wxNullGraphicsFont;
3686
3687
3688
3689class wxGraphicsPath : public wxGraphicsObject
3690{
3691public :
8bd35413 3692 wxGraphicsPath() { }
70d7cb34
RD
3693 wxGraphicsPath(wxGraphicsRenderer* ) {
3694 PyErr_SetString(PyExc_NotImplementedError,
3695 "wx.GraphicsPath is not available on this platform.");
72ef6efb
RD
3696 }
3697 virtual ~wxGraphicsPath() {}
70d7cb34 3698
72ef6efb 3699 void MoveToPoint( wxDouble, wxDouble ) {}
70d7cb34
RD
3700 void MoveToPoint( const wxPoint2DDouble& ) {}
3701 void AddLineToPoint( wxDouble, wxDouble ) {}
3702 void AddLineToPoint( const wxPoint2DDouble& ) {}
72ef6efb 3703 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
70d7cb34 3704 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
8bd35413 3705 void AddPath( const wxGraphicsPath& ) {}
72ef6efb 3706 void CloseSubpath() {}
8bd35413
RD
3707 void GetCurrentPoint( wxDouble&, wxDouble&) const {}
3708 wxPoint2DDouble GetCurrentPoint() const { return wxPoint2D(0,0); }
72ef6efb 3709 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
70d7cb34 3710 void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {}
72ef6efb
RD
3711
3712 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3713 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3714 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3715 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3716
70d7cb34
RD
3717 void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3718 void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3719 void * GetNativePath() const { return NULL; }
8bd35413
RD
3720 void UnGetNativePath(void *) const {}
3721 void Transform( const wxGraphicsMatrix& ) {}
3722 void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) const {}
3723 wxRect2D GetBox() const { return wxRect2D(0,0,0,0); }
70d7cb34 3724
8bd35413
RD
3725 bool Contains( wxDouble , wxDouble , int ) const { return false; }
3726 bool Contains( const wxPoint2DDouble& , int ) const { return false; }
70d7cb34 3727};
5c8c7dd3 3728wxGraphicsPath wxNullGraphicsPath;
70d7cb34
RD
3729
3730
3731class wxGraphicsMatrix : public wxGraphicsObject
3732{
3733public :
8bd35413 3734 wxGraphicsMatrix() { }
70d7cb34
RD
3735 wxGraphicsMatrix(wxGraphicsRenderer* ) {
3736 PyErr_SetString(PyExc_NotImplementedError,
3737 "wx.GraphicsMatrix is not available on this platform.");
3738 }
3739 virtual ~wxGraphicsMatrix() {}
8bd35413
RD
3740 virtual void Concat( const wxGraphicsMatrix & ) {}
3741 virtual void Copy( const wxGraphicsMatrix & ) {}
70d7cb34
RD
3742 virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble ,
3743 wxDouble , wxDouble ) {}
248802d0
RD
3744 virtual void Get(wxDouble*, wxDouble*, wxDouble*,
3745 wxDouble*, wxDouble*, wxDouble*) {}
70d7cb34 3746 virtual void Invert() {}
8bd35413
RD
3747 virtual bool IsEqual( const wxGraphicsMatrix& t) const { return false; }
3748 virtual bool IsIdentity() const { return false; }
70d7cb34
RD
3749 virtual void Translate( wxDouble , wxDouble ) {}
3750 virtual void Scale( wxDouble , wxDouble ) {}
3751 virtual void Rotate( wxDouble ) {}
8bd35413
RD
3752 virtual void TransformPoint( wxDouble *, wxDouble * ) const {}
3753 virtual void TransformDistance( wxDouble *, wxDouble * ) const {}
70d7cb34 3754 virtual void * GetNativeMatrix() const { return NULL; }
72ef6efb 3755};
5c8c7dd3 3756wxGraphicsMatrix wxNullGraphicsMatrix;
72ef6efb 3757
70d7cb34
RD
3758
3759class wxGraphicsContext : public wxGraphicsObject
72ef6efb
RD
3760{
3761public:
70d7cb34
RD
3762
3763 wxGraphicsContext(wxGraphicsRenderer* ) {
72ef6efb 3764 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3765 "wx.GraphicsContext is not available on this platform.");
72ef6efb 3766 }
70d7cb34 3767
72ef6efb 3768 virtual ~wxGraphicsContext() {}
70d7cb34 3769
8bd35413
RD
3770 static wxGraphicsContext* Create() {
3771 PyErr_SetString(PyExc_NotImplementedError,
3772 "wx.GraphicsContext is not available on this platform.");
3773 return NULL;
3774 }
70d7cb34 3775 static wxGraphicsContext* Create( const wxWindowDC& ) {
72ef6efb 3776 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3777 "wx.GraphicsContext is not available on this platform.");
8bd35413 3778 return NULL;
72ef6efb 3779 }
b876c1e4 3780
70d7cb34 3781 static wxGraphicsContext* CreateFromNative( void * ) {
b876c1e4 3782 PyErr_SetString(PyExc_NotImplementedError,
70d7cb34 3783 "wx.GraphicsContext is not available on this platform.");
8bd35413 3784 return NULL;
70d7cb34 3785 }
b876c1e4 3786
70d7cb34
RD
3787 static wxGraphicsContext* CreateFromNativeWindow( void * ) {
3788 PyErr_SetString(PyExc_NotImplementedError,
3789 "wx.GraphicsContext is not available on this platform.");
8bd35413 3790 return NULL;
70d7cb34
RD
3791 }
3792
3793 static wxGraphicsContext* Create( wxWindow* ) {
3794 PyErr_SetString(PyExc_NotImplementedError,
3795 "wx.GraphicsContext is not available on this platform.");
8bd35413 3796 return NULL;
70d7cb34
RD
3797 }
3798
8bd35413 3799 wxGraphicsPath CreatePath() { return wxNullGraphicsPath; }
70d7cb34 3800
8bd35413 3801 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; }
70d7cb34 3802
8bd35413 3803 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; }
70d7cb34
RD
3804
3805 virtual wxGraphicsBrush CreateLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
8bd35413 3806 const wxColour&, const wxColour&) { return wxNullGraphicsBrush; }
70d7cb34
RD
3807
3808 virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo, wxDouble yo,
3809 wxDouble xc, wxDouble yc, wxDouble radius,
8bd35413 3810 const wxColour &oColor, const wxColour &cColor) { return wxNullGraphicsBrush; }
70d7cb34 3811
8bd35413 3812 virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & ) { return wxNullGraphicsFont; }
70d7cb34 3813
8bd35413
RD
3814 virtual wxGraphicsMatrix CreateMatrix( wxDouble, wxDouble, wxDouble, wxDouble,
3815 wxDouble, wxDouble) { return wxNullGraphicsMatrix; }
70d7cb34
RD
3816
3817 virtual void PushState() {}
3818 virtual void PopState() {}
3819 virtual void Clip( const wxRegion & ) {}
3820 virtual void Clip( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3821 virtual void ResetClip() {}
3822 virtual void * GetNativeContext() { return NULL; }
c8aaaf9e
RD
3823 virtual int GetLogicalFunction() const { return 0; }
3824 virtual bool SetLogicalFunction(int ) {}
70d7cb34
RD
3825 virtual void Translate( wxDouble , wxDouble ) {}
3826 virtual void Scale( wxDouble , wxDouble ) {}
3827 virtual void Rotate( wxDouble ) {}
8bd35413
RD
3828 virtual void ConcatTransform( const wxGraphicsMatrix& ) {}
3829 virtual void SetTransform( const wxGraphicsMatrix& ) {}
3830 virtual wxGraphicsMatrix GetTransform() const { return wxNullGraphicsMatrix; }
70d7cb34
RD
3831
3832 virtual void SetPen( const wxGraphicsPen& ) {}
3833 void SetPen( const wxPen& ) {}
3834
3835 virtual void SetBrush( const wxGraphicsBrush& ) {}
3836 void SetBrush( const wxBrush& ) {}
3837
3838 virtual void SetFont( const wxGraphicsFont& ) {}
3839 void SetFont( const wxFont&, const wxColour& ) {}
3840
8bd35413
RD
3841 virtual void StrokePath( const wxGraphicsPath & ) {}
3842 virtual void FillPath( const wxGraphicsPath &, int ) {}
3843 virtual void DrawPath( const wxGraphicsPath &, int ) {}
70d7cb34
RD
3844
3845 virtual void DrawText( const wxString &, wxDouble , wxDouble ) {}
3846 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
8bd35413
RD
3847 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxGraphicsBrush ) {}
3848 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble , wxGraphicsBrush ) {}
70d7cb34
RD
3849 virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3850 wxDouble *, wxDouble * ) const {}
3851 virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3852
3853 virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3854 virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3855
3856 virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3857 virtual void StrokeLines( size_t , const wxPoint2DDouble *) {}
3858 virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3859 virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3860 virtual void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
8bd35413 3861 virtual void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
70d7cb34
RD
3862 virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3863 virtual void DrawRoundedRectangle( wxDouble wxDouble , wxDouble , wxDouble , wxDouble ) {}
3864 virtual bool ShouldOffset() const { return false; }
3865};
3866
3867
3868class wxGraphicsRenderer : public wxObject
3869{
3870public :
3871 wxGraphicsRenderer() {
3872 PyErr_SetString(PyExc_NotImplementedError,
3873 "wx.GraphicsRenderer is not available on this platform.");
3874 }
3875
3876 virtual ~wxGraphicsRenderer() {}
3877
8bd35413 3878 static wxGraphicsRenderer* GetDefaultRenderer() {
70d7cb34
RD
3879 PyErr_SetString(PyExc_NotImplementedError,
3880 "wx.GraphicsRenderer is not available on this platform.");
8bd35413
RD
3881 return NULL;
3882 }
70d7cb34
RD
3883
3884 virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; }
3885 virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; }
3886 virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; }
3887 virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; }
8bd35413 3888 virtual wxGraphicsContext * CreateMeasuringContext() { return NULL; }
70d7cb34 3889
8bd35413 3890 virtual wxGraphicsPath CreatePath() { return wxNullGraphicsPath; }
70d7cb34 3891
8bd35413
RD
3892 virtual wxGraphicsMatrix CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble ,
3893 wxDouble , wxDouble ) { return wxNullGraphicsMatrix; }
70d7cb34 3894
8bd35413
RD
3895 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; }
3896 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; }
3897 virtual wxGraphicsBrush CreateLinearGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble ,
3898 const wxColour&, const wxColour&) { return wxNullGraphicsBrush; }
70d7cb34 3899 virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
8bd35413
RD
3900 const wxColour &, const wxColour &) { return wxNullGraphicsBrush; }
3901 virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGraphicsFont; }
72ef6efb
RD
3902};
3903
3904
70d7cb34 3905
72ef6efb
RD
3906class wxGCDC: public wxWindowDC
3907{
3908public:
3909 wxGCDC(const wxWindowDC&) {
3910 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3911 PyErr_SetString(PyExc_NotImplementedError,
3912 "wxGCDC is not available on this platform.");
3913 wxPyEndBlockThreads(blocked);
3914 }
70d7cb34 3915
48a0c021
RD
3916 wxGCDC(const wxWindow*) {
3917 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3918 PyErr_SetString(PyExc_NotImplementedError,
3919 "wxGCDC is not available on this platform.");
3920 wxPyEndBlockThreads(blocked);
3921 }
3922
72ef6efb
RD
3923 wxGCDC() {
3924 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3925 PyErr_SetString(PyExc_NotImplementedError,
3926 "wxGCDC is not available on this platform.");
3927 wxPyEndBlockThreads(blocked);
3928 }
70d7cb34 3929
72ef6efb
RD
3930 virtual ~wxGCDC() {}
3931
b876c1e4
RD
3932 wxGraphicsContext* GetGraphicsContext() { return NULL; }
3933 void SetGraphicsContext( wxGraphicsContext* ) {}
72ef6efb
RD
3934};
3935
3936#endif
3937
f89238b9
RD
3938SWIGINTERN void wxGraphicsContext_DrawText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){
3939 if ( !backgroundBrush.IsNull() )
3940 self->DrawText(str, x, y, backgroundBrush);
3941 else
3942 self->DrawText(str, x, y);
3943 }
3944SWIGINTERN void wxGraphicsContext_DrawRotatedText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxDouble angle,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){
3945 if ( !backgroundBrush.IsNull() )
3946 self->DrawText(str, x, y, angle, backgroundBrush);
3947 else
3948 self->DrawText(str, x, y, angle);
3949 }
be68621e
RD
3950SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){
3951 wxDouble width = 0.0,
3952 height = 0.0;
3953 self->GetTextExtent(text, &width, &height, NULL, NULL);
3954 // thread wrapers are turned off for this .i file, so no need to acquire GIL...
3955 PyObject* rv = PyTuple_New(2);
3956 PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width));
3957 PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height));
3958 return rv;
3959 }
b39fe951
RD
3960SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3961 wxArrayDouble widths;
3962 self->GetPartialTextExtents(text, widths);
3963 return widths;
3964 }
f8eb59b9 3965SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
b39fe951
RD
3966 size_t c1, c2, count;
3967 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3968 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3969
3970 if ( beginP != NULL && endP != NULL )
3971 {
3972 count = wxMin(c1, c2);
3973 self->StrokeLines(count, beginP, endP);
3974 }
3975 delete [] beginP;
3976 delete [] endP;
3977 }
72ef6efb 3978
0a27f394
RD
3979#include "wx/dcgraph.h"
3980
3981
66493fc7
RD
3982#include <wx/overlay.h>
3983
3984
36ed4f51 3985
1bd55598 3986SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
36ed4f51
RD
3987 self->AddColour(name, wxColour(red, green, blue));
3988 }
3989
da91cb0f
RD
3990 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3991 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3992 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3993 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3994
3995
36ed4f51
RD
3996#include <wx/effects.h>
3997
be9b1dca
RD
3998
3999#include "wx/renderer.h"
4000
4001
32fe5131 4002SWIGINTERNINLINE PyObject*
1bd55598 4003 SWIG_From_bool (bool value)
be9b1dca 4004{
1bd55598 4005 return PyBool_FromLong(value ? 1 : 0);
be9b1dca
RD
4006}
4007
27e45892
RD
4008
4009#include "wx/wxPython/pseudodc.h"
4010
4011SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
4012 wxRect rect;
4013 self->GetIdBounds(id, rect);
4014 return rect;
4015 }
36ed4f51
RD
4016#ifdef __cplusplus
4017extern "C" {
4018#endif
1bd55598
RD
4019SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4020 PyObject *resultobj = 0;
4021 wxGDIObject *result = 0 ;
4022
4023 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
4024 {
4025 if (!wxPyCheckForApp()) SWIG_fail;
4026 PyThreadState* __tstate = wxPyBeginAllowThreads();
4027 result = (wxGDIObject *)new wxGDIObject();
4028 wxPyEndAllowThreads(__tstate);
4029 if (PyErr_Occurred()) SWIG_fail;
4030 }
4031 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
4032 return resultobj;
4033fail:
4034 return NULL;
d55e5bfc
RD
4035}
4036
4037
1bd55598
RD
4038SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4039 PyObject *resultobj = 0;
4040 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4041 void *argp1 = 0 ;
4042 int res1 = 0 ;
4043 PyObject *swig_obj[1] ;
4044
4045 if (!args) SWIG_fail;
4046 swig_obj[0] = args;
4047 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
4048 if (!SWIG_IsOK(res1)) {
4049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4050 }
4051 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4052 {
4053 PyThreadState* __tstate = wxPyBeginAllowThreads();
4054 delete arg1;
d55e5bfc 4055
1bd55598
RD
4056 wxPyEndAllowThreads(__tstate);
4057 if (PyErr_Occurred()) SWIG_fail;
4058 }
4059 resultobj = SWIG_Py_Void();
4060 return resultobj;
4061fail:
4062 return NULL;
d55e5bfc
RD
4063}
4064
4065
1bd55598
RD
4066SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4067 PyObject *resultobj = 0;
4068 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
4069 bool result;
4070 void *argp1 = 0 ;
4071 int res1 = 0 ;
4072 PyObject *swig_obj[1] ;
4073
4074 if (!args) SWIG_fail;
4075 swig_obj[0] = args;
4076 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
4077 if (!SWIG_IsOK(res1)) {
4078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
4079 }
4080 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
4081 {
4082 PyThreadState* __tstate = wxPyBeginAllowThreads();
4083 result = (bool)(arg1)->IsNull();
4084 wxPyEndAllowThreads(__tstate);
4085 if (PyErr_Occurred()) SWIG_fail;
4086 }
4087 {
4088 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4089 }
4090 return resultobj;
4091fail:
4092 return NULL;
4093}
4094
4095
4096SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4097 PyObject *obj;
4098 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4099 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
4100 return SWIG_Py_Void();
4101}
4102
4103SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4104 return SWIG_Python_InitShadowInstance(args);
4105}
4106
4107SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4108 PyObject *resultobj = 0;
4109 byte arg1 = (byte) 0 ;
4110 byte arg2 = (byte) 0 ;
4111 byte arg3 = (byte) 0 ;
fc46b7f3 4112 byte arg4 = (byte) wxALPHA_OPAQUE ;
1bd55598
RD
4113 wxColour *result = 0 ;
4114 unsigned char val1 ;
4115 int ecode1 = 0 ;
4116 unsigned char val2 ;
4117 int ecode2 = 0 ;
4118 unsigned char val3 ;
4119 int ecode3 = 0 ;
fc46b7f3
RD
4120 unsigned char val4 ;
4121 int ecode4 = 0 ;
1bd55598
RD
4122 PyObject * obj0 = 0 ;
4123 PyObject * obj1 = 0 ;
4124 PyObject * obj2 = 0 ;
fc46b7f3 4125 PyObject * obj3 = 0 ;
1bd55598 4126 char * kwnames[] = {
fc46b7f3 4127 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
1bd55598
RD
4128 };
4129
fc46b7f3 4130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
4131 if (obj0) {
4132 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
4133 if (!SWIG_IsOK(ecode1)) {
4134 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
4135 }
4136 arg1 = static_cast< byte >(val1);
4137 }
4138 if (obj1) {
4139 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4140 if (!SWIG_IsOK(ecode2)) {
4141 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
4142 }
4143 arg2 = static_cast< byte >(val2);
4144 }
4145 if (obj2) {
4146 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4147 if (!SWIG_IsOK(ecode3)) {
4148 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
4149 }
4150 arg3 = static_cast< byte >(val3);
4151 }
fc46b7f3
RD
4152 if (obj3) {
4153 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4154 if (!SWIG_IsOK(ecode4)) {
4155 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
4156 }
4157 arg4 = static_cast< byte >(val4);
4158 }
1bd55598
RD
4159 {
4160 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4161 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
1bd55598
RD
4162 wxPyEndAllowThreads(__tstate);
4163 if (PyErr_Occurred()) SWIG_fail;
4164 }
4165 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
4166 return resultobj;
4167fail:
4168 return NULL;
d55e5bfc
RD
4169}
4170
4171
1bd55598
RD
4172SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4173 PyObject *resultobj = 0;
4174 wxString *arg1 = 0 ;
4175 wxColour *result = 0 ;
4176 bool temp1 = false ;
4177 PyObject * obj0 = 0 ;
4178 char * kwnames[] = {
4179 (char *) "colorName", NULL
4180 };
4181
4182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
4183 {
4184 arg1 = wxString_in_helper(obj0);
4185 if (arg1 == NULL) SWIG_fail;
4186 temp1 = true;
4187 }
4188 {
4189 if (!wxPyCheckForApp()) SWIG_fail;
4190 PyThreadState* __tstate = wxPyBeginAllowThreads();
4191 result = (wxColour *)new wxColour((wxString const &)*arg1);
4192 wxPyEndAllowThreads(__tstate);
4193 if (PyErr_Occurred()) SWIG_fail;
4194 }
4195 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4196 {
4197 if (temp1)
4198 delete arg1;
4199 }
4200 return resultobj;
4201fail:
4202 {
4203 if (temp1)
4204 delete arg1;
4205 }
4206 return NULL;
36ed4f51
RD
4207}
4208
4209
1bd55598
RD
4210SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4211 PyObject *resultobj = 0;
4212 unsigned long arg1 ;
4213 wxColour *result = 0 ;
4214 unsigned long val1 ;
4215 int ecode1 = 0 ;
4216 PyObject * obj0 = 0 ;
4217 char * kwnames[] = {
4218 (char *) "colRGB", NULL
4219 };
4220
4221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
4222 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
4223 if (!SWIG_IsOK(ecode1)) {
4224 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
4225 }
4226 arg1 = static_cast< unsigned long >(val1);
4227 {
4228 PyThreadState* __tstate = wxPyBeginAllowThreads();
4229 result = (wxColour *)new wxColour(arg1);
4230 wxPyEndAllowThreads(__tstate);
4231 if (PyErr_Occurred()) SWIG_fail;
4232 }
4233 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4234 return resultobj;
4235fail:
4236 return NULL;
d55e5bfc
RD
4237}
4238
4239
1bd55598
RD
4240SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4241 PyObject *resultobj = 0;
4242 wxColour *arg1 = (wxColour *) 0 ;
4243 void *argp1 = 0 ;
4244 int res1 = 0 ;
4245 PyObject *swig_obj[1] ;
4246
4247 if (!args) SWIG_fail;
4248 swig_obj[0] = args;
4249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
4250 if (!SWIG_IsOK(res1)) {
4251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
4252 }
4253 arg1 = reinterpret_cast< wxColour * >(argp1);
4254 {
4255 PyThreadState* __tstate = wxPyBeginAllowThreads();
4256 delete arg1;
d55e5bfc 4257
1bd55598
RD
4258 wxPyEndAllowThreads(__tstate);
4259 if (PyErr_Occurred()) SWIG_fail;
4260 }
4261 resultobj = SWIG_Py_Void();
4262 return resultobj;
4263fail:
4264 return NULL;
d55e5bfc
RD
4265}
4266
4267
1bd55598
RD
4268SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4269 PyObject *resultobj = 0;
4270 wxColour *arg1 = (wxColour *) 0 ;
4271 byte result;
4272 void *argp1 = 0 ;
4273 int res1 = 0 ;
4274 PyObject *swig_obj[1] ;
4275
4276 if (!args) SWIG_fail;
4277 swig_obj[0] = args;
4278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4279 if (!SWIG_IsOK(res1)) {
4280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
4281 }
4282 arg1 = reinterpret_cast< wxColour * >(argp1);
4283 {
4284 PyThreadState* __tstate = wxPyBeginAllowThreads();
4285 result = (byte)(arg1)->Red();
4286 wxPyEndAllowThreads(__tstate);
4287 if (PyErr_Occurred()) SWIG_fail;
4288 }
4289 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4290 return resultobj;
4291fail:
4292 return NULL;
d55e5bfc
RD
4293}
4294
4295
1bd55598
RD
4296SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4297 PyObject *resultobj = 0;
4298 wxColour *arg1 = (wxColour *) 0 ;
4299 byte result;
4300 void *argp1 = 0 ;
4301 int res1 = 0 ;
4302 PyObject *swig_obj[1] ;
4303
4304 if (!args) SWIG_fail;
4305 swig_obj[0] = args;
4306 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4307 if (!SWIG_IsOK(res1)) {
4308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4309 }
4310 arg1 = reinterpret_cast< wxColour * >(argp1);
4311 {
4312 PyThreadState* __tstate = wxPyBeginAllowThreads();
4313 result = (byte)(arg1)->Green();
4314 wxPyEndAllowThreads(__tstate);
4315 if (PyErr_Occurred()) SWIG_fail;
4316 }
4317 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4318 return resultobj;
4319fail:
4320 return NULL;
d55e5bfc
RD
4321}
4322
4323
1bd55598
RD
4324SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4325 PyObject *resultobj = 0;
4326 wxColour *arg1 = (wxColour *) 0 ;
4327 byte result;
4328 void *argp1 = 0 ;
4329 int res1 = 0 ;
4330 PyObject *swig_obj[1] ;
4331
4332 if (!args) SWIG_fail;
4333 swig_obj[0] = args;
4334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4335 if (!SWIG_IsOK(res1)) {
4336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4337 }
4338 arg1 = reinterpret_cast< wxColour * >(argp1);
4339 {
4340 PyThreadState* __tstate = wxPyBeginAllowThreads();
4341 result = (byte)(arg1)->Blue();
4342 wxPyEndAllowThreads(__tstate);
4343 if (PyErr_Occurred()) SWIG_fail;
4344 }
4345 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4346 return resultobj;
4347fail:
4348 return NULL;
d55e5bfc
RD
4349}
4350
4351
fc46b7f3
RD
4352SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4353 PyObject *resultobj = 0;
4354 wxColour *arg1 = (wxColour *) 0 ;
4355 byte result;
4356 void *argp1 = 0 ;
4357 int res1 = 0 ;
4358 PyObject *swig_obj[1] ;
4359
4360 if (!args) SWIG_fail;
4361 swig_obj[0] = args;
4362 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4363 if (!SWIG_IsOK(res1)) {
4364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4365 }
4366 arg1 = reinterpret_cast< wxColour * >(argp1);
4367 {
4368 PyThreadState* __tstate = wxPyBeginAllowThreads();
4369 result = (byte)(arg1)->Alpha();
4370 wxPyEndAllowThreads(__tstate);
4371 if (PyErr_Occurred()) SWIG_fail;
4372 }
4373 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4374 return resultobj;
4375fail:
4376 return NULL;
4377}
4378
4379
b39fe951 4380SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
4381 PyObject *resultobj = 0;
4382 wxColour *arg1 = (wxColour *) 0 ;
4383 bool result;
4384 void *argp1 = 0 ;
4385 int res1 = 0 ;
4386 PyObject *swig_obj[1] ;
4387
4388 if (!args) SWIG_fail;
4389 swig_obj[0] = args;
4390 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4391 if (!SWIG_IsOK(res1)) {
b39fe951 4392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
1bd55598
RD
4393 }
4394 arg1 = reinterpret_cast< wxColour * >(argp1);
4395 {
4396 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 4397 result = (bool)(arg1)->IsOk();
1bd55598
RD
4398 wxPyEndAllowThreads(__tstate);
4399 if (PyErr_Occurred()) SWIG_fail;
4400 }
4401 {
4402 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4403 }
4404 return resultobj;
4405fail:
4406 return NULL;
4407}
4408
4409
4410SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4411 PyObject *resultobj = 0;
4412 wxColour *arg1 = (wxColour *) 0 ;
4413 byte arg2 ;
4414 byte arg3 ;
4415 byte arg4 ;
fc46b7f3 4416 byte arg5 = (byte) wxALPHA_OPAQUE ;
1bd55598
RD
4417 void *argp1 = 0 ;
4418 int res1 = 0 ;
4419 unsigned char val2 ;
4420 int ecode2 = 0 ;
4421 unsigned char val3 ;
4422 int ecode3 = 0 ;
4423 unsigned char val4 ;
4424 int ecode4 = 0 ;
fc46b7f3
RD
4425 unsigned char val5 ;
4426 int ecode5 = 0 ;
1bd55598
RD
4427 PyObject * obj0 = 0 ;
4428 PyObject * obj1 = 0 ;
4429 PyObject * obj2 = 0 ;
4430 PyObject * obj3 = 0 ;
fc46b7f3 4431 PyObject * obj4 = 0 ;
1bd55598 4432 char * kwnames[] = {
fc46b7f3 4433 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
1bd55598
RD
4434 };
4435
fc46b7f3 4436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
1bd55598
RD
4437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4438 if (!SWIG_IsOK(res1)) {
4439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4440 }
4441 arg1 = reinterpret_cast< wxColour * >(argp1);
4442 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4443 if (!SWIG_IsOK(ecode2)) {
4444 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4445 }
4446 arg2 = static_cast< byte >(val2);
4447 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4448 if (!SWIG_IsOK(ecode3)) {
4449 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4450 }
4451 arg3 = static_cast< byte >(val3);
4452 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4453 if (!SWIG_IsOK(ecode4)) {
4454 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4455 }
4456 arg4 = static_cast< byte >(val4);
fc46b7f3
RD
4457 if (obj4) {
4458 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4459 if (!SWIG_IsOK(ecode5)) {
4460 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4461 }
4462 arg5 = static_cast< byte >(val5);
4463 }
1bd55598
RD
4464 {
4465 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 4466 (arg1)->Set(arg2,arg3,arg4,arg5);
1bd55598
RD
4467 wxPyEndAllowThreads(__tstate);
4468 if (PyErr_Occurred()) SWIG_fail;
4469 }
4470 resultobj = SWIG_Py_Void();
4471 return resultobj;
4472fail:
4473 return NULL;
4474}
4475
4476
4477SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4478 PyObject *resultobj = 0;
4479 wxColour *arg1 = (wxColour *) 0 ;
4480 unsigned long arg2 ;
4481 void *argp1 = 0 ;
4482 int res1 = 0 ;
4483 unsigned long val2 ;
4484 int ecode2 = 0 ;
4485 PyObject * obj0 = 0 ;
4486 PyObject * obj1 = 0 ;
4487 char * kwnames[] = {
4488 (char *) "self",(char *) "colRGB", NULL
4489 };
4490
4491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4493 if (!SWIG_IsOK(res1)) {
4494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4495 }
4496 arg1 = reinterpret_cast< wxColour * >(argp1);
4497 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4498 if (!SWIG_IsOK(ecode2)) {
4499 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4500 }
4501 arg2 = static_cast< unsigned long >(val2);
4502 {
4503 PyThreadState* __tstate = wxPyBeginAllowThreads();
4504 (arg1)->Set(arg2);
4505 wxPyEndAllowThreads(__tstate);
4506 if (PyErr_Occurred()) SWIG_fail;
4507 }
4508 resultobj = SWIG_Py_Void();
4509 return resultobj;
4510fail:
4511 return NULL;
4512}
4513
4514
4515SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4516 PyObject *resultobj = 0;
4517 wxColour *arg1 = (wxColour *) 0 ;
4518 wxString *arg2 = 0 ;
4519 void *argp1 = 0 ;
4520 int res1 = 0 ;
4521 bool temp2 = false ;
4522 PyObject * obj0 = 0 ;
4523 PyObject * obj1 = 0 ;
4524 char * kwnames[] = {
4525 (char *) "self",(char *) "colourName", NULL
4526 };
4527
4528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4530 if (!SWIG_IsOK(res1)) {
4531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4532 }
4533 arg1 = reinterpret_cast< wxColour * >(argp1);
4534 {
4535 arg2 = wxString_in_helper(obj1);
4536 if (arg2 == NULL) SWIG_fail;
4537 temp2 = true;
4538 }
4539 {
4540 PyThreadState* __tstate = wxPyBeginAllowThreads();
72ef6efb 4541 (arg1)->Set((wxString const &)*arg2);
1bd55598
RD
4542 wxPyEndAllowThreads(__tstate);
4543 if (PyErr_Occurred()) SWIG_fail;
4544 }
4545 resultobj = SWIG_Py_Void();
4546 {
4547 if (temp2)
4548 delete arg2;
4549 }
4550 return resultobj;
4551fail:
4552 {
4553 if (temp2)
4554 delete arg2;
4555 }
4556 return NULL;
d55e5bfc
RD
4557}
4558
4559
2131d850
RD
4560SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4561 PyObject *resultobj = 0;
4562 wxColour *arg1 = (wxColour *) 0 ;
4563 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4564 wxString result;
4565 void *argp1 = 0 ;
4566 int res1 = 0 ;
4567 long val2 ;
4568 int ecode2 = 0 ;
4569 PyObject * obj0 = 0 ;
4570 PyObject * obj1 = 0 ;
4571 char * kwnames[] = {
4572 (char *) "self",(char *) "flags", NULL
4573 };
4574
4575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4577 if (!SWIG_IsOK(res1)) {
4578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4579 }
4580 arg1 = reinterpret_cast< wxColour * >(argp1);
4581 if (obj1) {
4582 ecode2 = SWIG_AsVal_long(obj1, &val2);
4583 if (!SWIG_IsOK(ecode2)) {
4584 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4585 }
4586 arg2 = static_cast< long >(val2);
4587 }
4588 {
4589 PyThreadState* __tstate = wxPyBeginAllowThreads();
4590 result = ((wxColour const *)arg1)->GetAsString(arg2);
4591 wxPyEndAllowThreads(__tstate);
4592 if (PyErr_Occurred()) SWIG_fail;
4593 }
4594 {
4595#if wxUSE_UNICODE
4596 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4597#else
4598 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4599#endif
4600 }
4601 return resultobj;
4602fail:
4603 return NULL;
4604}
4605
4606
1bd55598
RD
4607SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4608 PyObject *resultobj = 0;
4609 wxColour *arg1 = (wxColour *) 0 ;
4610 long result;
4611 void *argp1 = 0 ;
4612 int res1 = 0 ;
4613 PyObject *swig_obj[1] ;
4614
4615 if (!args) SWIG_fail;
4616 swig_obj[0] = args;
4617 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4618 if (!SWIG_IsOK(res1)) {
4619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4620 }
4621 arg1 = reinterpret_cast< wxColour * >(argp1);
4622 {
4623 PyThreadState* __tstate = wxPyBeginAllowThreads();
4624 result = (long)((wxColour const *)arg1)->GetPixel();
4625 wxPyEndAllowThreads(__tstate);
4626 if (PyErr_Occurred()) SWIG_fail;
4627 }
4628 resultobj = SWIG_From_long(static_cast< long >(result));
4629 return resultobj;
4630fail:
4631 return NULL;
4632}
4633
4634
4635SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4636 PyObject *resultobj = 0;
4637 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4638 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
4639 bool result;
4640 void *argp1 = 0 ;
4641 int res1 = 0 ;
1bd55598
RD
4642 PyObject * obj0 = 0 ;
4643 PyObject * obj1 = 0 ;
4644 char * kwnames[] = {
e9d6f3a4 4645 (char *) "self",(char *) "other", NULL
1bd55598
RD
4646 };
4647
4648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4650 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
1bd55598
RD
4652 }
4653 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4654 arg2 = obj1;
1bd55598 4655 {
e9d6f3a4 4656 result = (bool)wxColour___eq__(arg1,arg2);
1bd55598
RD
4657 if (PyErr_Occurred()) SWIG_fail;
4658 }
4659 {
4660 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4661 }
4662 return resultobj;
4663fail:
4664 return NULL;
4665}
4666
4667
4668SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4669 PyObject *resultobj = 0;
4670 wxColour *arg1 = (wxColour *) 0 ;
e9d6f3a4 4671 PyObject *arg2 = (PyObject *) 0 ;
1bd55598
RD
4672 bool result;
4673 void *argp1 = 0 ;
4674 int res1 = 0 ;
1bd55598
RD
4675 PyObject * obj0 = 0 ;
4676 PyObject * obj1 = 0 ;
4677 char * kwnames[] = {
e9d6f3a4 4678 (char *) "self",(char *) "other", NULL
1bd55598
RD
4679 };
4680
4681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4683 if (!SWIG_IsOK(res1)) {
e9d6f3a4 4684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
1bd55598
RD
4685 }
4686 arg1 = reinterpret_cast< wxColour * >(argp1);
e9d6f3a4 4687 arg2 = obj1;
1bd55598 4688 {
e9d6f3a4 4689 result = (bool)wxColour___ne__(arg1,arg2);
1bd55598
RD
4690 if (PyErr_Occurred()) SWIG_fail;
4691 }
4692 {
4693 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4694 }
4695 return resultobj;
4696fail:
4697 return NULL;
d55e5bfc
RD
4698}
4699
4700
fc46b7f3 4701SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
4702 PyObject *resultobj = 0;
4703 wxColour *arg1 = (wxColour *) 0 ;
fc46b7f3 4704 bool arg2 = (bool) false ;
1bd55598
RD
4705 PyObject *result = 0 ;
4706 void *argp1 = 0 ;
4707 int res1 = 0 ;
fc46b7f3
RD
4708 bool val2 ;
4709 int ecode2 = 0 ;
4710 PyObject * obj0 = 0 ;
4711 PyObject * obj1 = 0 ;
4712 char * kwnames[] = {
4713 (char *) "self",(char *) "includeAlpha", NULL
4714 };
1bd55598 4715
fc46b7f3
RD
4716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
1bd55598
RD
4718 if (!SWIG_IsOK(res1)) {
4719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4720 }
4721 arg1 = reinterpret_cast< wxColour * >(argp1);
fc46b7f3
RD
4722 if (obj1) {
4723 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4724 if (!SWIG_IsOK(ecode2)) {
4725 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4726 }
4727 arg2 = static_cast< bool >(val2);
4728 }
1bd55598 4729 {
fc46b7f3 4730 result = (PyObject *)wxColour_Get(arg1,arg2);
1bd55598
RD
4731 if (PyErr_Occurred()) SWIG_fail;
4732 }
4733 resultobj = result;
4734 return resultobj;
4735fail:
4736 return NULL;
d55e5bfc
RD
4737}
4738
4739
1bd55598
RD
4740SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4741 PyObject *resultobj = 0;
4742 wxColour *arg1 = (wxColour *) 0 ;
4743 unsigned long result;
4744 void *argp1 = 0 ;
4745 int res1 = 0 ;
4746 PyObject *swig_obj[1] ;
4747
4748 if (!args) SWIG_fail;
4749 swig_obj[0] = args;
4750 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4751 if (!SWIG_IsOK(res1)) {
4752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4753 }
4754 arg1 = reinterpret_cast< wxColour * >(argp1);
4755 {
1bd55598 4756 result = (unsigned long)wxColour_GetRGB(arg1);
1bd55598
RD
4757 if (PyErr_Occurred()) SWIG_fail;
4758 }
4759 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4760 return resultobj;
4761fail:
4762 return NULL;
4763}
4764
4765
4766SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4767 PyObject *obj;
4768 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4769 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4770 return SWIG_Py_Void();
4771}
4772
4773SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4774 return SWIG_Python_InitShadowInstance(args);
4775}
4776
4777SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4778 PyObject *resultobj = 0;
4779 int arg1 ;
4780 unsigned char *arg2 = (unsigned char *) 0 ;
4781 unsigned char *arg3 = (unsigned char *) 0 ;
4782 unsigned char *arg4 = (unsigned char *) 0 ;
4783 wxPalette *result = 0 ;
4784 int val1 ;
4785 int ecode1 = 0 ;
4786 void *argp2 = 0 ;
4787 int res2 = 0 ;
4788 void *argp3 = 0 ;
4789 int res3 = 0 ;
4790 void *argp4 = 0 ;
4791 int res4 = 0 ;
4792 PyObject * obj0 = 0 ;
4793 PyObject * obj1 = 0 ;
4794 PyObject * obj2 = 0 ;
4795 PyObject * obj3 = 0 ;
4796 char * kwnames[] = {
4797 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4798 };
4799
4800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4801 ecode1 = SWIG_AsVal_int(obj0, &val1);
4802 if (!SWIG_IsOK(ecode1)) {
4803 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4804 }
4805 arg1 = static_cast< int >(val1);
4806 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4807 if (!SWIG_IsOK(res2)) {
4808 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4809 }
4810 arg2 = reinterpret_cast< unsigned char * >(argp2);
4811 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4812 if (!SWIG_IsOK(res3)) {
4813 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4814 }
4815 arg3 = reinterpret_cast< unsigned char * >(argp3);
4816 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4817 if (!SWIG_IsOK(res4)) {
4818 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4819 }
4820 arg4 = reinterpret_cast< unsigned char * >(argp4);
4821 {
4822 if (!wxPyCheckForApp()) SWIG_fail;
4823 PyThreadState* __tstate = wxPyBeginAllowThreads();
4824 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4825 wxPyEndAllowThreads(__tstate);
4826 if (PyErr_Occurred()) SWIG_fail;
4827 }
4828 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4829 return resultobj;
4830fail:
4831 return NULL;
d55e5bfc
RD
4832}
4833
4834
1bd55598
RD
4835SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4836 PyObject *resultobj = 0;
4837 wxPalette *arg1 = (wxPalette *) 0 ;
4838 void *argp1 = 0 ;
4839 int res1 = 0 ;
4840 PyObject *swig_obj[1] ;
4841
4842 if (!args) SWIG_fail;
4843 swig_obj[0] = args;
4844 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4845 if (!SWIG_IsOK(res1)) {
4846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4847 }
4848 arg1 = reinterpret_cast< wxPalette * >(argp1);
4849 {
4850 PyThreadState* __tstate = wxPyBeginAllowThreads();
4851 delete arg1;
d55e5bfc 4852
1bd55598
RD
4853 wxPyEndAllowThreads(__tstate);
4854 if (PyErr_Occurred()) SWIG_fail;
4855 }
4856 resultobj = SWIG_Py_Void();
4857 return resultobj;
4858fail:
4859 return NULL;
4860}
4861
4862
4863SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4864 PyObject *resultobj = 0;
4865 wxPalette *arg1 = (wxPalette *) 0 ;
4866 byte arg2 ;
4867 byte arg3 ;
4868 byte arg4 ;
4869 int result;
4870 void *argp1 = 0 ;
4871 int res1 = 0 ;
4872 unsigned char val2 ;
4873 int ecode2 = 0 ;
4874 unsigned char val3 ;
4875 int ecode3 = 0 ;
4876 unsigned char val4 ;
4877 int ecode4 = 0 ;
4878 PyObject * obj0 = 0 ;
4879 PyObject * obj1 = 0 ;
4880 PyObject * obj2 = 0 ;
4881 PyObject * obj3 = 0 ;
4882 char * kwnames[] = {
4883 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4884 };
4885
4886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4888 if (!SWIG_IsOK(res1)) {
4889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4890 }
4891 arg1 = reinterpret_cast< wxPalette * >(argp1);
4892 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4893 if (!SWIG_IsOK(ecode2)) {
4894 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4895 }
4896 arg2 = static_cast< byte >(val2);
4897 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4898 if (!SWIG_IsOK(ecode3)) {
4899 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4900 }
4901 arg3 = static_cast< byte >(val3);
4902 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4903 if (!SWIG_IsOK(ecode4)) {
4904 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4905 }
4906 arg4 = static_cast< byte >(val4);
4907 {
4908 PyThreadState* __tstate = wxPyBeginAllowThreads();
4909 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4910 wxPyEndAllowThreads(__tstate);
4911 if (PyErr_Occurred()) SWIG_fail;
4912 }
4913 resultobj = SWIG_From_int(static_cast< int >(result));
4914 return resultobj;
4915fail:
4916 return NULL;
4917}
4918
4919
4920SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4921 PyObject *resultobj = 0;
4922 wxPalette *arg1 = (wxPalette *) 0 ;
4923 int arg2 ;
4924 byte *arg3 = (byte *) 0 ;
4925 byte *arg4 = (byte *) 0 ;
4926 byte *arg5 = (byte *) 0 ;
4927 bool result;
4928 void *argp1 = 0 ;
4929 int res1 = 0 ;
4930 int val2 ;
4931 int ecode2 = 0 ;
4932 byte temp3 ;
4933 int res3 = SWIG_TMPOBJ ;
4934 byte temp4 ;
4935 int res4 = SWIG_TMPOBJ ;
4936 byte temp5 ;
4937 int res5 = SWIG_TMPOBJ ;
4938 PyObject * obj0 = 0 ;
4939 PyObject * obj1 = 0 ;
4940 char * kwnames[] = {
4941 (char *) "self",(char *) "pixel", NULL
4942 };
4943
4944 arg3 = &temp3;
4945 arg4 = &temp4;
4946 arg5 = &temp5;
4947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4949 if (!SWIG_IsOK(res1)) {
4950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4951 }
4952 arg1 = reinterpret_cast< wxPalette * >(argp1);
4953 ecode2 = SWIG_AsVal_int(obj1, &val2);
4954 if (!SWIG_IsOK(ecode2)) {
4955 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4956 }
4957 arg2 = static_cast< int >(val2);
4958 {
4959 PyThreadState* __tstate = wxPyBeginAllowThreads();
4960 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4961 wxPyEndAllowThreads(__tstate);
4962 if (PyErr_Occurred()) SWIG_fail;
4963 }
4964 {
4965 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4966 }
4967 if (SWIG_IsTmpObj(res3)) {
4968 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4969 } else {
4970 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4971 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4972 }
4973 if (SWIG_IsTmpObj(res4)) {
4974 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4975 } else {
4976 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4977 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4978 }
4979 if (SWIG_IsTmpObj(res5)) {
4980 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4981 } else {
4982 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4983 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4984 }
4985 return resultobj;
4986fail:
4987 return NULL;
d55e5bfc
RD
4988}
4989
4990
1bd55598
RD
4991SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4992 PyObject *resultobj = 0;
4993 wxPalette *arg1 = (wxPalette *) 0 ;
4994 int result;
4995 void *argp1 = 0 ;
4996 int res1 = 0 ;
4997 PyObject *swig_obj[1] ;
4998
4999 if (!args) SWIG_fail;
5000 swig_obj[0] = args;
5001 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
5002 if (!SWIG_IsOK(res1)) {
5003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
5004 }
5005 arg1 = reinterpret_cast< wxPalette * >(argp1);
5006 {
5007 PyThreadState* __tstate = wxPyBeginAllowThreads();
5008 result = (int)((wxPalette const *)arg1)->GetColoursCount();
5009 wxPyEndAllowThreads(__tstate);
5010 if (PyErr_Occurred()) SWIG_fail;
5011 }
5012 resultobj = SWIG_From_int(static_cast< int >(result));
5013 return resultobj;
5014fail:
5015 return NULL;
d55e5bfc
RD
5016}
5017
5018
b39fe951 5019SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
5020 PyObject *resultobj = 0;
5021 wxPalette *arg1 = (wxPalette *) 0 ;
5022 bool result;
5023 void *argp1 = 0 ;
5024 int res1 = 0 ;
5025 PyObject *swig_obj[1] ;
5026
5027 if (!args) SWIG_fail;
5028 swig_obj[0] = args;
5029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
5030 if (!SWIG_IsOK(res1)) {
b39fe951 5031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
1bd55598
RD
5032 }
5033 arg1 = reinterpret_cast< wxPalette * >(argp1);
5034 {
5035 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 5036 result = (bool)(arg1)->IsOk();
1bd55598
RD
5037 wxPyEndAllowThreads(__tstate);
5038 if (PyErr_Occurred()) SWIG_fail;
5039 }
5040 {
5041 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5042 }
5043 return resultobj;
5044fail:
5045 return NULL;
5046}
5047
5048
5049SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5050 PyObject *obj;
5051 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5052 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
5053 return SWIG_Py_Void();
5054}
5055
5056SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5057 return SWIG_Python_InitShadowInstance(args);
5058}
5059
5060SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5061 PyObject *resultobj = 0;
5062 wxColour *arg1 = 0 ;
5063 int arg2 = (int) 1 ;
5064 int arg3 = (int) wxSOLID ;
5065 wxPen *result = 0 ;
5066 wxColour temp1 ;
5067 int val2 ;
5068 int ecode2 = 0 ;
5069 int val3 ;
5070 int ecode3 = 0 ;
5071 PyObject * obj0 = 0 ;
5072 PyObject * obj1 = 0 ;
5073 PyObject * obj2 = 0 ;
5074 char * kwnames[] = {
5075 (char *) "colour",(char *) "width",(char *) "style", NULL
5076 };
5077
5078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5079 {
5080 arg1 = &temp1;
5081 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5082 }
5083 if (obj1) {
5084 ecode2 = SWIG_AsVal_int(obj1, &val2);
5085 if (!SWIG_IsOK(ecode2)) {
5086 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
5087 }
5088 arg2 = static_cast< int >(val2);
5089 }
5090 if (obj2) {
5091 ecode3 = SWIG_AsVal_int(obj2, &val3);
5092 if (!SWIG_IsOK(ecode3)) {
5093 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
5094 }
5095 arg3 = static_cast< int >(val3);
5096 }
5097 {
5098 if (!wxPyCheckForApp()) SWIG_fail;
5099 PyThreadState* __tstate = wxPyBeginAllowThreads();
5100 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
5101 wxPyEndAllowThreads(__tstate);
5102 if (PyErr_Occurred()) SWIG_fail;
5103 }
5104 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
5105 return resultobj;
5106fail:
5107 return NULL;
d55e5bfc
RD
5108}
5109
5110
1bd55598
RD
5111SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5112 PyObject *resultobj = 0;
5113 wxPen *arg1 = (wxPen *) 0 ;
5114 void *argp1 = 0 ;
5115 int res1 = 0 ;
5116 PyObject *swig_obj[1] ;
5117
5118 if (!args) SWIG_fail;
5119 swig_obj[0] = args;
5120 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
5121 if (!SWIG_IsOK(res1)) {
5122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
5123 }
5124 arg1 = reinterpret_cast< wxPen * >(argp1);
5125 {
5126 PyThreadState* __tstate = wxPyBeginAllowThreads();
5127 delete arg1;
f78cc896 5128
1bd55598
RD
5129 wxPyEndAllowThreads(__tstate);
5130 if (PyErr_Occurred()) SWIG_fail;
5131 }
5132 resultobj = SWIG_Py_Void();
5133 return resultobj;
5134fail:
5135 return NULL;
f78cc896
RD
5136}
5137
5138
1bd55598
RD
5139SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5140 PyObject *resultobj = 0;
5141 wxPen *arg1 = (wxPen *) 0 ;
5142 int result;
5143 void *argp1 = 0 ;
5144 int res1 = 0 ;
5145 PyObject *swig_obj[1] ;
5146
5147 if (!args) SWIG_fail;
5148 swig_obj[0] = args;
5149 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5150 if (!SWIG_IsOK(res1)) {
5151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5152 }
5153 arg1 = reinterpret_cast< wxPen * >(argp1);
5154 {
5155 PyThreadState* __tstate = wxPyBeginAllowThreads();
5156 result = (int)(arg1)->GetCap();
5157 wxPyEndAllowThreads(__tstate);
5158 if (PyErr_Occurred()) SWIG_fail;
5159 }
5160 resultobj = SWIG_From_int(static_cast< int >(result));
5161 return resultobj;
5162fail:
5163 return NULL;
d55e5bfc
RD
5164}
5165
5166
1bd55598
RD
5167SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5168 PyObject *resultobj = 0;
5169 wxPen *arg1 = (wxPen *) 0 ;
5170 wxColour result;
5171 void *argp1 = 0 ;
5172 int res1 = 0 ;
5173 PyObject *swig_obj[1] ;
5174
5175 if (!args) SWIG_fail;
5176 swig_obj[0] = args;
5177 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5178 if (!SWIG_IsOK(res1)) {
5179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5180 }
5181 arg1 = reinterpret_cast< wxPen * >(argp1);
5182 {
5183 PyThreadState* __tstate = wxPyBeginAllowThreads();
5184 result = (arg1)->GetColour();
5185 wxPyEndAllowThreads(__tstate);
5186 if (PyErr_Occurred()) SWIG_fail;
5187 }
5188 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5189 return resultobj;
5190fail:
5191 return NULL;
d55e5bfc
RD
5192}
5193
5194
1bd55598
RD
5195SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5196 PyObject *resultobj = 0;
5197 wxPen *arg1 = (wxPen *) 0 ;
5198 int result;
5199 void *argp1 = 0 ;
5200 int res1 = 0 ;
5201 PyObject *swig_obj[1] ;
5202
5203 if (!args) SWIG_fail;
5204 swig_obj[0] = args;
5205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5206 if (!SWIG_IsOK(res1)) {
5207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5208 }
5209 arg1 = reinterpret_cast< wxPen * >(argp1);
5210 {
5211 PyThreadState* __tstate = wxPyBeginAllowThreads();
5212 result = (int)(arg1)->GetJoin();
5213 wxPyEndAllowThreads(__tstate);
5214 if (PyErr_Occurred()) SWIG_fail;
5215 }
5216 resultobj = SWIG_From_int(static_cast< int >(result));
5217 return resultobj;
5218fail:
5219 return NULL;
d55e5bfc
RD
5220}
5221
5222
1bd55598
RD
5223SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5224 PyObject *resultobj = 0;
5225 wxPen *arg1 = (wxPen *) 0 ;
5226 int result;
5227 void *argp1 = 0 ;
5228 int res1 = 0 ;
5229 PyObject *swig_obj[1] ;
5230
5231 if (!args) SWIG_fail;
5232 swig_obj[0] = args;
5233 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5234 if (!SWIG_IsOK(res1)) {
5235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5236 }
5237 arg1 = reinterpret_cast< wxPen * >(argp1);
5238 {
5239 PyThreadState* __tstate = wxPyBeginAllowThreads();
5240 result = (int)(arg1)->GetStyle();
5241 wxPyEndAllowThreads(__tstate);
5242 if (PyErr_Occurred()) SWIG_fail;
5243 }
5244 resultobj = SWIG_From_int(static_cast< int >(result));
5245 return resultobj;
5246fail:
5247 return NULL;
d55e5bfc
RD
5248}
5249
5250
1bd55598
RD
5251SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5252 PyObject *resultobj = 0;
5253 wxPen *arg1 = (wxPen *) 0 ;
5254 int result;
5255 void *argp1 = 0 ;
5256 int res1 = 0 ;
5257 PyObject *swig_obj[1] ;
5258
5259 if (!args) SWIG_fail;
5260 swig_obj[0] = args;
5261 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5262 if (!SWIG_IsOK(res1)) {
5263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5264 }
5265 arg1 = reinterpret_cast< wxPen * >(argp1);
5266 {
5267 PyThreadState* __tstate = wxPyBeginAllowThreads();
5268 result = (int)(arg1)->GetWidth();
5269 wxPyEndAllowThreads(__tstate);
5270 if (PyErr_Occurred()) SWIG_fail;
5271 }
5272 resultobj = SWIG_From_int(static_cast< int >(result));
5273 return resultobj;
5274fail:
5275 return NULL;
d55e5bfc
RD
5276}
5277
5278
b39fe951 5279SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
5280 PyObject *resultobj = 0;
5281 wxPen *arg1 = (wxPen *) 0 ;
5282 bool result;
5283 void *argp1 = 0 ;
5284 int res1 = 0 ;
5285 PyObject *swig_obj[1] ;
5286
5287 if (!args) SWIG_fail;
5288 swig_obj[0] = args;
5289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5290 if (!SWIG_IsOK(res1)) {
b39fe951 5291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
1bd55598
RD
5292 }
5293 arg1 = reinterpret_cast< wxPen * >(argp1);
5294 {
5295 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 5296 result = (bool)(arg1)->IsOk();
1bd55598
RD
5297 wxPyEndAllowThreads(__tstate);
5298 if (PyErr_Occurred()) SWIG_fail;
5299 }
5300 {
5301 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5302 }
5303 return resultobj;
5304fail:
5305 return NULL;
5306}
5307
5308
5309SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5310 PyObject *resultobj = 0;
5311 wxPen *arg1 = (wxPen *) 0 ;
5312 int arg2 ;
5313 void *argp1 = 0 ;
5314 int res1 = 0 ;
5315 int val2 ;
5316 int ecode2 = 0 ;
5317 PyObject * obj0 = 0 ;
5318 PyObject * obj1 = 0 ;
5319 char * kwnames[] = {
5320 (char *) "self",(char *) "cap_style", NULL
5321 };
5322
5323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5325 if (!SWIG_IsOK(res1)) {
5326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5327 }
5328 arg1 = reinterpret_cast< wxPen * >(argp1);
5329 ecode2 = SWIG_AsVal_int(obj1, &val2);
5330 if (!SWIG_IsOK(ecode2)) {
5331 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5332 }
5333 arg2 = static_cast< int >(val2);
5334 {
5335 PyThreadState* __tstate = wxPyBeginAllowThreads();
5336 (arg1)->SetCap(arg2);
5337 wxPyEndAllowThreads(__tstate);
5338 if (PyErr_Occurred()) SWIG_fail;
5339 }
5340 resultobj = SWIG_Py_Void();
5341 return resultobj;
5342fail:
5343 return NULL;
5344}
5345
5346
5347SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5348 PyObject *resultobj = 0;
5349 wxPen *arg1 = (wxPen *) 0 ;
5350 wxColour *arg2 = 0 ;
5351 void *argp1 = 0 ;
5352 int res1 = 0 ;
5353 wxColour temp2 ;
5354 PyObject * obj0 = 0 ;
5355 PyObject * obj1 = 0 ;
5356 char * kwnames[] = {
5357 (char *) "self",(char *) "colour", NULL
5358 };
5359
5360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5362 if (!SWIG_IsOK(res1)) {
5363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5364 }
5365 arg1 = reinterpret_cast< wxPen * >(argp1);
5366 {
5367 arg2 = &temp2;
5368 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5369 }
5370 {
5371 PyThreadState* __tstate = wxPyBeginAllowThreads();
5372 (arg1)->SetColour(*arg2);
5373 wxPyEndAllowThreads(__tstate);
5374 if (PyErr_Occurred()) SWIG_fail;
5375 }
5376 resultobj = SWIG_Py_Void();
5377 return resultobj;
5378fail:
5379 return NULL;
5380}
5381
5382
5383SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5384 PyObject *resultobj = 0;
5385 wxPen *arg1 = (wxPen *) 0 ;
5386 int arg2 ;
5387 void *argp1 = 0 ;
5388 int res1 = 0 ;
5389 int val2 ;
5390 int ecode2 = 0 ;
5391 PyObject * obj0 = 0 ;
5392 PyObject * obj1 = 0 ;
5393 char * kwnames[] = {
5394 (char *) "self",(char *) "join_style", NULL
5395 };
5396
5397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5399 if (!SWIG_IsOK(res1)) {
5400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5401 }
5402 arg1 = reinterpret_cast< wxPen * >(argp1);
5403 ecode2 = SWIG_AsVal_int(obj1, &val2);
5404 if (!SWIG_IsOK(ecode2)) {
5405 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5406 }
5407 arg2 = static_cast< int >(val2);
5408 {
5409 PyThreadState* __tstate = wxPyBeginAllowThreads();
5410 (arg1)->SetJoin(arg2);
5411 wxPyEndAllowThreads(__tstate);
5412 if (PyErr_Occurred()) SWIG_fail;
5413 }
5414 resultobj = SWIG_Py_Void();
5415 return resultobj;
5416fail:
5417 return NULL;
5418}
5419
5420
5421SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5422 PyObject *resultobj = 0;
5423 wxPen *arg1 = (wxPen *) 0 ;
5424 int arg2 ;
5425 void *argp1 = 0 ;
5426 int res1 = 0 ;
5427 int val2 ;
5428 int ecode2 = 0 ;
5429 PyObject * obj0 = 0 ;
5430 PyObject * obj1 = 0 ;
5431 char * kwnames[] = {
5432 (char *) "self",(char *) "style", NULL
5433 };
5434
5435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5437 if (!SWIG_IsOK(res1)) {
5438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5439 }
5440 arg1 = reinterpret_cast< wxPen * >(argp1);
5441 ecode2 = SWIG_AsVal_int(obj1, &val2);
5442 if (!SWIG_IsOK(ecode2)) {
5443 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5444 }
5445 arg2 = static_cast< int >(val2);
5446 {
5447 PyThreadState* __tstate = wxPyBeginAllowThreads();
5448 (arg1)->SetStyle(arg2);
5449 wxPyEndAllowThreads(__tstate);
5450 if (PyErr_Occurred()) SWIG_fail;
5451 }
5452 resultobj = SWIG_Py_Void();
5453 return resultobj;
5454fail:
5455 return NULL;
5456}
5457
5458
5459SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5460 PyObject *resultobj = 0;
5461 wxPen *arg1 = (wxPen *) 0 ;
5462 int arg2 ;
5463 void *argp1 = 0 ;
5464 int res1 = 0 ;
5465 int val2 ;
5466 int ecode2 = 0 ;
5467 PyObject * obj0 = 0 ;
5468 PyObject * obj1 = 0 ;
5469 char * kwnames[] = {
5470 (char *) "self",(char *) "width", NULL
5471 };
5472
5473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5475 if (!SWIG_IsOK(res1)) {
5476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5477 }
5478 arg1 = reinterpret_cast< wxPen * >(argp1);
5479 ecode2 = SWIG_AsVal_int(obj1, &val2);
5480 if (!SWIG_IsOK(ecode2)) {
5481 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5482 }
5483 arg2 = static_cast< int >(val2);
5484 {
5485 PyThreadState* __tstate = wxPyBeginAllowThreads();
5486 (arg1)->SetWidth(arg2);
5487 wxPyEndAllowThreads(__tstate);
5488 if (PyErr_Occurred()) SWIG_fail;
5489 }
5490 resultobj = SWIG_Py_Void();
5491 return resultobj;
5492fail:
5493 return NULL;
5494}
5495
5496
5497SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5498 PyObject *resultobj = 0;
5499 wxPen *arg1 = (wxPen *) 0 ;
5500 int arg2 ;
5501 wxDash *arg3 = (wxDash *) 0 ;
5502 void *argp1 = 0 ;
5503 int res1 = 0 ;
5504 PyObject * obj0 = 0 ;
5505 PyObject * obj1 = 0 ;
5506 char * kwnames[] = {
5507 (char *) "self",(char *) "dashes", NULL
5508 };
5509
5510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5512 if (!SWIG_IsOK(res1)) {
5513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5514 }
5515 arg1 = reinterpret_cast< wxPen * >(argp1);
5516 {
5517 arg2 = PyList_Size(obj1);
5518 arg3 = (wxDash*)byte_LIST_helper(obj1);
5519 if (arg3 == NULL) SWIG_fail;
5520 }
5521 {
5522 PyThreadState* __tstate = wxPyBeginAllowThreads();
5523 (arg1)->SetDashes(arg2,arg3);
5524 wxPyEndAllowThreads(__tstate);
5525 if (PyErr_Occurred()) SWIG_fail;
5526 }
5527 resultobj = SWIG_Py_Void();
5528 {
5529 if (arg3) delete [] arg3;
5530 }
5531 return resultobj;
5532fail:
5533 {
5534 if (arg3) delete [] arg3;
5535 }
5536 return NULL;
d6c14a4c
RD
5537}
5538
5539
1bd55598
RD
5540SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5541 PyObject *resultobj = 0;
5542 wxPen *arg1 = (wxPen *) 0 ;
5543 PyObject *result = 0 ;
5544 void *argp1 = 0 ;
5545 int res1 = 0 ;
5546 PyObject *swig_obj[1] ;
5547
5548 if (!args) SWIG_fail;
5549 swig_obj[0] = args;
5550 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5551 if (!SWIG_IsOK(res1)) {
5552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5553 }
5554 arg1 = reinterpret_cast< wxPen * >(argp1);
5555 {
5556 PyThreadState* __tstate = wxPyBeginAllowThreads();
5557 result = (PyObject *)wxPen_GetDashes(arg1);
5558 wxPyEndAllowThreads(__tstate);
5559 if (PyErr_Occurred()) SWIG_fail;
5560 }
5561 resultobj = result;
5562 return resultobj;
5563fail:
5564 return NULL;
5565}
5566
5567
5568SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5569 PyObject *resultobj = 0;
5570 wxPen *arg1 = (wxPen *) 0 ;
5571 PyObject *arg2 = (PyObject *) 0 ;
5572 PyObject *arg3 = (PyObject *) 0 ;
5573 void *argp1 = 0 ;
5574 int res1 = 0 ;
5575 PyObject * obj0 = 0 ;
5576 PyObject * obj1 = 0 ;
5577 PyObject * obj2 = 0 ;
5578 char * kwnames[] = {
5579 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5580 };
5581
5582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5584 if (!SWIG_IsOK(res1)) {
5585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5586 }
5587 arg1 = reinterpret_cast< wxPen * >(argp1);
5588 arg2 = obj1;
5589 arg3 = obj2;
5590 {
5591 PyThreadState* __tstate = wxPyBeginAllowThreads();
5592 wxPen__SetDashes(arg1,arg2,arg3);
5593 wxPyEndAllowThreads(__tstate);
5594 if (PyErr_Occurred()) SWIG_fail;
5595 }
5596 resultobj = SWIG_Py_Void();
5597 return resultobj;
5598fail:
5599 return NULL;
5600}
5601
5602
5603SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5604 PyObject *resultobj = 0;
5605 wxPen *arg1 = (wxPen *) 0 ;
5606 wxPen *arg2 = (wxPen *) 0 ;
5607 bool result;
5608 void *argp1 = 0 ;
5609 int res1 = 0 ;
5610 void *argp2 = 0 ;
5611 int res2 = 0 ;
5612 PyObject * obj0 = 0 ;
5613 PyObject * obj1 = 0 ;
5614 char * kwnames[] = {
5615 (char *) "self",(char *) "other", NULL
5616 };
5617
5618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5620 if (!SWIG_IsOK(res1)) {
5621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5622 }
5623 arg1 = reinterpret_cast< wxPen * >(argp1);
5624 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5625 if (!SWIG_IsOK(res2)) {
5626 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5627 }
5628 arg2 = reinterpret_cast< wxPen * >(argp2);
5629 {
5630 PyThreadState* __tstate = wxPyBeginAllowThreads();
5631 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5632 wxPyEndAllowThreads(__tstate);
5633 if (PyErr_Occurred()) SWIG_fail;
5634 }
5635 {
5636 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5637 }
5638 return resultobj;
5639fail:
5640 return NULL;
5641}
5642
5643
5644SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5645 PyObject *resultobj = 0;
5646 wxPen *arg1 = (wxPen *) 0 ;
5647 wxPen *arg2 = (wxPen *) 0 ;
5648 bool result;
5649 void *argp1 = 0 ;
5650 int res1 = 0 ;
5651 void *argp2 = 0 ;
5652 int res2 = 0 ;
5653 PyObject * obj0 = 0 ;
5654 PyObject * obj1 = 0 ;
5655 char * kwnames[] = {
5656 (char *) "self",(char *) "other", NULL
5657 };
5658
5659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5661 if (!SWIG_IsOK(res1)) {
5662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5663 }
5664 arg1 = reinterpret_cast< wxPen * >(argp1);
5665 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5666 if (!SWIG_IsOK(res2)) {
5667 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5668 }
5669 arg2 = reinterpret_cast< wxPen * >(argp2);
5670 {
5671 PyThreadState* __tstate = wxPyBeginAllowThreads();
5672 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5673 wxPyEndAllowThreads(__tstate);
5674 if (PyErr_Occurred()) SWIG_fail;
5675 }
5676 {
5677 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5678 }
5679 return resultobj;
5680fail:
5681 return NULL;
5682}
d55e5bfc
RD
5683
5684
1bd55598
RD
5685SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5686 PyObject *obj;
5687 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5688 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5689 return SWIG_Py_Void();
d55e5bfc
RD
5690}
5691
1bd55598
RD
5692SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5693 return SWIG_Python_InitShadowInstance(args);
5694}
d55e5bfc 5695
1bd55598
RD
5696SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5697 PyObject *resultobj = 0;
5698 wxColour *arg1 = 0 ;
5699 int arg2 = (int) wxSOLID ;
5700 wxBrush *result = 0 ;
5701 wxColour temp1 ;
5702 int val2 ;
5703 int ecode2 = 0 ;
5704 PyObject * obj0 = 0 ;
5705 PyObject * obj1 = 0 ;
5706 char * kwnames[] = {
5707 (char *) "colour",(char *) "style", NULL
5708 };
5709
5710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5711 {
5712 arg1 = &temp1;
5713 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5714 }
5715 if (obj1) {
5716 ecode2 = SWIG_AsVal_int(obj1, &val2);
5717 if (!SWIG_IsOK(ecode2)) {
5718 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5719 }
5720 arg2 = static_cast< int >(val2);
5721 }
5722 {
5723 if (!wxPyCheckForApp()) SWIG_fail;
5724 PyThreadState* __tstate = wxPyBeginAllowThreads();
5725 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5726 wxPyEndAllowThreads(__tstate);
5727 if (PyErr_Occurred()) SWIG_fail;
5728 }
5729 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5730 return resultobj;
5731fail:
5732 return NULL;
5733}
5734
5735
5736SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5737 PyObject *resultobj = 0;
5738 wxBitmap *arg1 = 0 ;
5739 wxBrush *result = 0 ;
5740 void *argp1 = 0 ;
5741 int res1 = 0 ;
5742 PyObject * obj0 = 0 ;
5743 char * kwnames[] = {
5744 (char *) "stippleBitmap", NULL
5745 };
5746
5747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5748 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5749 if (!SWIG_IsOK(res1)) {
5750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5751 }
5752 if (!argp1) {
5753 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5754 }
5755 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5756 {
5757 if (!wxPyCheckForApp()) SWIG_fail;
5758 PyThreadState* __tstate = wxPyBeginAllowThreads();
5759 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5760 wxPyEndAllowThreads(__tstate);
5761 if (PyErr_Occurred()) SWIG_fail;
5762 }
5763 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5764 return resultobj;
5765fail:
5766 return NULL;
d55e5bfc
RD
5767}
5768
5769
1bd55598
RD
5770SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5771 PyObject *resultobj = 0;
5772 wxBrush *arg1 = (wxBrush *) 0 ;
5773 void *argp1 = 0 ;
5774 int res1 = 0 ;
5775 PyObject *swig_obj[1] ;
5776
5777 if (!args) SWIG_fail;
5778 swig_obj[0] = args;
5779 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5780 if (!SWIG_IsOK(res1)) {
5781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5782 }
5783 arg1 = reinterpret_cast< wxBrush * >(argp1);
5784 {
5785 PyThreadState* __tstate = wxPyBeginAllowThreads();
5786 delete arg1;
d55e5bfc 5787
1bd55598
RD
5788 wxPyEndAllowThreads(__tstate);
5789 if (PyErr_Occurred()) SWIG_fail;
5790 }
5791 resultobj = SWIG_Py_Void();
5792 return resultobj;
5793fail:
5794 return NULL;
5795}
5796
5797
5798SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5799 PyObject *resultobj = 0;
5800 wxBrush *arg1 = (wxBrush *) 0 ;
5801 wxColour *arg2 = 0 ;
5802 void *argp1 = 0 ;
5803 int res1 = 0 ;
5804 wxColour temp2 ;
5805 PyObject * obj0 = 0 ;
5806 PyObject * obj1 = 0 ;
5807 char * kwnames[] = {
5808 (char *) "self",(char *) "col", NULL
5809 };
5810
5811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5813 if (!SWIG_IsOK(res1)) {
5814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5815 }
5816 arg1 = reinterpret_cast< wxBrush * >(argp1);
5817 {
5818 arg2 = &temp2;
5819 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5820 }
5821 {
5822 PyThreadState* __tstate = wxPyBeginAllowThreads();
5823 (arg1)->SetColour((wxColour const &)*arg2);
5824 wxPyEndAllowThreads(__tstate);
5825 if (PyErr_Occurred()) SWIG_fail;
5826 }
5827 resultobj = SWIG_Py_Void();
5828 return resultobj;
5829fail:
5830 return NULL;
5831}
5832
5833
5834SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5835 PyObject *resultobj = 0;
5836 wxBrush *arg1 = (wxBrush *) 0 ;
5837 int arg2 ;
5838 void *argp1 = 0 ;
5839 int res1 = 0 ;
5840 int val2 ;
5841 int ecode2 = 0 ;
5842 PyObject * obj0 = 0 ;
5843 PyObject * obj1 = 0 ;
5844 char * kwnames[] = {
5845 (char *) "self",(char *) "style", NULL
5846 };
5847
5848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5850 if (!SWIG_IsOK(res1)) {
5851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5852 }
5853 arg1 = reinterpret_cast< wxBrush * >(argp1);
5854 ecode2 = SWIG_AsVal_int(obj1, &val2);
5855 if (!SWIG_IsOK(ecode2)) {
5856 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5857 }
5858 arg2 = static_cast< int >(val2);
5859 {
5860 PyThreadState* __tstate = wxPyBeginAllowThreads();
5861 (arg1)->SetStyle(arg2);
5862 wxPyEndAllowThreads(__tstate);
5863 if (PyErr_Occurred()) SWIG_fail;
5864 }
5865 resultobj = SWIG_Py_Void();
5866 return resultobj;
5867fail:
5868 return NULL;
5869}
5870
5871
5872SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5873 PyObject *resultobj = 0;
5874 wxBrush *arg1 = (wxBrush *) 0 ;
5875 wxBitmap *arg2 = 0 ;
5876 void *argp1 = 0 ;
5877 int res1 = 0 ;
5878 void *argp2 = 0 ;
5879 int res2 = 0 ;
5880 PyObject * obj0 = 0 ;
5881 PyObject * obj1 = 0 ;
5882 char * kwnames[] = {
5883 (char *) "self",(char *) "stipple", NULL
5884 };
5885
5886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5888 if (!SWIG_IsOK(res1)) {
5889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5890 }
5891 arg1 = reinterpret_cast< wxBrush * >(argp1);
5892 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5893 if (!SWIG_IsOK(res2)) {
5894 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5895 }
5896 if (!argp2) {
5897 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5898 }
5899 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5900 {
5901 PyThreadState* __tstate = wxPyBeginAllowThreads();
5902 (arg1)->SetStipple((wxBitmap const &)*arg2);
5903 wxPyEndAllowThreads(__tstate);
5904 if (PyErr_Occurred()) SWIG_fail;
5905 }
5906 resultobj = SWIG_Py_Void();
5907 return resultobj;
5908fail:
5909 return NULL;
d55e5bfc
RD
5910}
5911
5912
1bd55598
RD
5913SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5914 PyObject *resultobj = 0;
5915 wxBrush *arg1 = (wxBrush *) 0 ;
5916 wxColour result;
5917 void *argp1 = 0 ;
5918 int res1 = 0 ;
5919 PyObject *swig_obj[1] ;
5920
5921 if (!args) SWIG_fail;
5922 swig_obj[0] = args;
5923 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5924 if (!SWIG_IsOK(res1)) {
5925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5926 }
5927 arg1 = reinterpret_cast< wxBrush * >(argp1);
5928 {
5929 PyThreadState* __tstate = wxPyBeginAllowThreads();
5930 result = ((wxBrush const *)arg1)->GetColour();
5931 wxPyEndAllowThreads(__tstate);
5932 if (PyErr_Occurred()) SWIG_fail;
5933 }
5934 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5935 return resultobj;
5936fail:
5937 return NULL;
d55e5bfc
RD
5938}
5939
5940
1bd55598
RD
5941SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5942 PyObject *resultobj = 0;
5943 wxBrush *arg1 = (wxBrush *) 0 ;
5944 int result;
5945 void *argp1 = 0 ;
5946 int res1 = 0 ;
5947 PyObject *swig_obj[1] ;
5948
5949 if (!args) SWIG_fail;
5950 swig_obj[0] = args;
5951 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5952 if (!SWIG_IsOK(res1)) {
5953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5954 }
5955 arg1 = reinterpret_cast< wxBrush * >(argp1);
5956 {
5957 PyThreadState* __tstate = wxPyBeginAllowThreads();
5958 result = (int)((wxBrush const *)arg1)->GetStyle();
5959 wxPyEndAllowThreads(__tstate);
5960 if (PyErr_Occurred()) SWIG_fail;
5961 }
5962 resultobj = SWIG_From_int(static_cast< int >(result));
5963 return resultobj;
5964fail:
5965 return NULL;
d55e5bfc
RD
5966}
5967
5968
1bd55598
RD
5969SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5970 PyObject *resultobj = 0;
5971 wxBrush *arg1 = (wxBrush *) 0 ;
5972 wxBitmap *result = 0 ;
5973 void *argp1 = 0 ;
5974 int res1 = 0 ;
5975 PyObject *swig_obj[1] ;
5976
5977 if (!args) SWIG_fail;
5978 swig_obj[0] = args;
5979 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5980 if (!SWIG_IsOK(res1)) {
5981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5982 }
5983 arg1 = reinterpret_cast< wxBrush * >(argp1);
5984 {
5985 PyThreadState* __tstate = wxPyBeginAllowThreads();
5986 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5987 wxPyEndAllowThreads(__tstate);
5988 if (PyErr_Occurred()) SWIG_fail;
5989 }
5990 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5991 return resultobj;
5992fail:
5993 return NULL;
d55e5bfc
RD
5994}
5995
5996
1bd55598
RD
5997SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5998 PyObject *resultobj = 0;
5999 wxBrush *arg1 = (wxBrush *) 0 ;
6000 bool result;
6001 void *argp1 = 0 ;
6002 int res1 = 0 ;
6003 PyObject *swig_obj[1] ;
6004
6005 if (!args) SWIG_fail;
6006 swig_obj[0] = args;
6007 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6008 if (!SWIG_IsOK(res1)) {
6009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
6010 }
6011 arg1 = reinterpret_cast< wxBrush * >(argp1);
6012 {
6013 PyThreadState* __tstate = wxPyBeginAllowThreads();
6014 result = (bool)((wxBrush const *)arg1)->IsHatch();
6015 wxPyEndAllowThreads(__tstate);
6016 if (PyErr_Occurred()) SWIG_fail;
6017 }
6018 {
6019 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6020 }
6021 return resultobj;
6022fail:
6023 return NULL;
d55e5bfc
RD
6024}
6025
6026
b39fe951 6027SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
6028 PyObject *resultobj = 0;
6029 wxBrush *arg1 = (wxBrush *) 0 ;
6030 bool result;
6031 void *argp1 = 0 ;
6032 int res1 = 0 ;
6033 PyObject *swig_obj[1] ;
6034
6035 if (!args) SWIG_fail;
6036 swig_obj[0] = args;
6037 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6038 if (!SWIG_IsOK(res1)) {
b39fe951 6039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
1bd55598
RD
6040 }
6041 arg1 = reinterpret_cast< wxBrush * >(argp1);
6042 {
6043 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 6044 result = (bool)(arg1)->IsOk();
1bd55598
RD
6045 wxPyEndAllowThreads(__tstate);
6046 if (PyErr_Occurred()) SWIG_fail;
6047 }
6048 {
6049 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6050 }
6051 return resultobj;
6052fail:
6053 return NULL;
d55e5bfc
RD
6054}
6055
6056
1bd55598
RD
6057SWIGINTERN PyObject *_wrap_Brush_MacGetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6058 PyObject *resultobj = 0;
6059 wxBrush *arg1 = (wxBrush *) 0 ;
6060 short result;
6061 void *argp1 = 0 ;
6062 int res1 = 0 ;
6063 PyObject *swig_obj[1] ;
6064
6065 if (!args) SWIG_fail;
6066 swig_obj[0] = args;
6067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6068 if (!SWIG_IsOK(res1)) {
6069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacGetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
6070 }
6071 arg1 = reinterpret_cast< wxBrush * >(argp1);
6072 {
6073 PyThreadState* __tstate = wxPyBeginAllowThreads();
6074 result = (short)(arg1)->MacGetTheme();
6075 wxPyEndAllowThreads(__tstate);
6076 if (PyErr_Occurred()) SWIG_fail;
6077 }
6078 resultobj = SWIG_From_short(static_cast< short >(result));
6079 return resultobj;
6080fail:
6081 return NULL;
6082}
6083
6084
6085SWIGINTERN PyObject *_wrap_Brush_MacSetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6086 PyObject *resultobj = 0;
6087 wxBrush *arg1 = (wxBrush *) 0 ;
6088 short arg2 ;
6089 void *argp1 = 0 ;
6090 int res1 = 0 ;
6091 short val2 ;
6092 int ecode2 = 0 ;
6093 PyObject * obj0 = 0 ;
6094 PyObject * obj1 = 0 ;
6095 char * kwnames[] = {
6096 (char *) "self",(char *) "macThemeBrush", NULL
6097 };
6098
6099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) SWIG_fail;
6100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
6101 if (!SWIG_IsOK(res1)) {
6102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacSetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
6103 }
6104 arg1 = reinterpret_cast< wxBrush * >(argp1);
6105 ecode2 = SWIG_AsVal_short(obj1, &val2);
6106 if (!SWIG_IsOK(ecode2)) {
6107 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_MacSetTheme" "', expected argument " "2"" of type '" "short""'");
6108 }
6109 arg2 = static_cast< short >(val2);
6110 {
6111 PyThreadState* __tstate = wxPyBeginAllowThreads();
6112 (arg1)->MacSetTheme(arg2);
6113 wxPyEndAllowThreads(__tstate);
6114 if (PyErr_Occurred()) SWIG_fail;
6115 }
6116 resultobj = SWIG_Py_Void();
6117 return resultobj;
6118fail:
6119 return NULL;
d55e5bfc
RD
6120}
6121
6122
1bd55598
RD
6123SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6124 PyObject *obj;
6125 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6126 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
6127 return SWIG_Py_Void();
d55e5bfc
RD
6128}
6129
1bd55598
RD
6130SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6131 return SWIG_Python_InitShadowInstance(args);
6132}
d55e5bfc 6133
1bd55598
RD
6134SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6135 PyObject *resultobj = 0;
6136 wxString *arg1 = 0 ;
6137 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
6138 wxBitmap *result = 0 ;
6139 bool temp1 = false ;
6140 int val2 ;
6141 int ecode2 = 0 ;
6142 PyObject * obj0 = 0 ;
6143 PyObject * obj1 = 0 ;
6144 char * kwnames[] = {
6145 (char *) "name",(char *) "type", NULL
6146 };
6147
6148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6149 {
6150 arg1 = wxString_in_helper(obj0);
6151 if (arg1 == NULL) SWIG_fail;
6152 temp1 = true;
6153 }
6154 if (obj1) {
6155 ecode2 = SWIG_AsVal_int(obj1, &val2);
6156 if (!SWIG_IsOK(ecode2)) {
6157 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
6158 }
6159 arg2 = static_cast< wxBitmapType >(val2);
6160 }
6161 {
6162 if (!wxPyCheckForApp()) SWIG_fail;
6163 PyThreadState* __tstate = wxPyBeginAllowThreads();
6164 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
6165 wxPyEndAllowThreads(__tstate);
6166 if (PyErr_Occurred()) SWIG_fail;
6167 }
6168 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
6169 {
6170 if (temp1)
6171 delete arg1;
6172 }
6173 return resultobj;
6174fail:
6175 {
6176 if (temp1)
6177 delete arg1;
6178 }
6179 return NULL;
d55e5bfc
RD
6180}
6181
6182
1bd55598
RD
6183SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6184 PyObject *resultobj = 0;
6185 wxBitmap *arg1 = (wxBitmap *) 0 ;
6186 void *argp1 = 0 ;
6187 int res1 = 0 ;
6188 PyObject *swig_obj[1] ;
6189
6190 if (!args) SWIG_fail;
6191 swig_obj[0] = args;
6192 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
6193 if (!SWIG_IsOK(res1)) {
6194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
6195 }
6196 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6197 {
1bd55598 6198 delete arg1;
d55e5bfc 6199
1bd55598
RD
6200 if (PyErr_Occurred()) SWIG_fail;
6201 }
6202 resultobj = SWIG_Py_Void();
6203 return resultobj;
6204fail:
6205 return NULL;
6206}
6207
6208
6209SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6210 PyObject *resultobj = 0;
6211 int arg1 ;
6212 int arg2 ;
6213 int arg3 = (int) -1 ;
6214 wxBitmap *result = 0 ;
6215 int val1 ;
6216 int ecode1 = 0 ;
6217 int val2 ;
6218 int ecode2 = 0 ;
6219 int val3 ;
6220 int ecode3 = 0 ;
6221 PyObject * obj0 = 0 ;
6222 PyObject * obj1 = 0 ;
6223 PyObject * obj2 = 0 ;
6224 char * kwnames[] = {
6225 (char *) "width",(char *) "height",(char *) "depth", NULL
6226 };
6227
6228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6229 ecode1 = SWIG_AsVal_int(obj0, &val1);
6230 if (!SWIG_IsOK(ecode1)) {
6231 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
6232 }
6233 arg1 = static_cast< int >(val1);
6234 ecode2 = SWIG_AsVal_int(obj1, &val2);
6235 if (!SWIG_IsOK(ecode2)) {
6236 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
6237 }
6238 arg2 = static_cast< int >(val2);
6239 if (obj2) {
6240 ecode3 = SWIG_AsVal_int(obj2, &val3);
6241 if (!SWIG_IsOK(ecode3)) {
6242 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
6243 }
6244 arg3 = static_cast< int >(val3);
6245 }
6246 {
6247 if (!wxPyCheckForApp()) SWIG_fail;
6248 PyThreadState* __tstate = wxPyBeginAllowThreads();
6249 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
6250 wxPyEndAllowThreads(__tstate);
6251 if (PyErr_Occurred()) SWIG_fail;
6252 }
6253 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6254 return resultobj;
6255fail:
6256 return NULL;
6257}
6258
6259
6260SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6261 PyObject *resultobj = 0;
6262 wxIcon *arg1 = 0 ;
6263 wxBitmap *result = 0 ;
6264 void *argp1 = 0 ;
6265 int res1 = 0 ;
6266 PyObject * obj0 = 0 ;
6267 char * kwnames[] = {
6268 (char *) "icon", NULL
6269 };
6270
6271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
6272 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
6273 if (!SWIG_IsOK(res1)) {
6274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6275 }
6276 if (!argp1) {
6277 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6278 }
6279 arg1 = reinterpret_cast< wxIcon * >(argp1);
6280 {
6281 if (!wxPyCheckForApp()) SWIG_fail;
6282 PyThreadState* __tstate = wxPyBeginAllowThreads();
6283 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
6284 wxPyEndAllowThreads(__tstate);
6285 if (PyErr_Occurred()) SWIG_fail;
6286 }
6287 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6288 return resultobj;
6289fail:
6290 return NULL;
6291}
6292
6293
6294SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6295 PyObject *resultobj = 0;
6296 wxImage *arg1 = 0 ;
6297 int arg2 = (int) -1 ;
6298 wxBitmap *result = 0 ;
6299 void *argp1 = 0 ;
6300 int res1 = 0 ;
6301 int val2 ;
6302 int ecode2 = 0 ;
6303 PyObject * obj0 = 0 ;
6304 PyObject * obj1 = 0 ;
6305 char * kwnames[] = {
6306 (char *) "image",(char *) "depth", NULL
6307 };
6308
6309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6310 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6311 if (!SWIG_IsOK(res1)) {
6312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6313 }
6314 if (!argp1) {
6315 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6316 }
6317 arg1 = reinterpret_cast< wxImage * >(argp1);
6318 if (obj1) {
6319 ecode2 = SWIG_AsVal_int(obj1, &val2);
6320 if (!SWIG_IsOK(ecode2)) {
6321 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6322 }
6323 arg2 = static_cast< int >(val2);
6324 }
6325 {
6326 if (!wxPyCheckForApp()) SWIG_fail;
6327 PyThreadState* __tstate = wxPyBeginAllowThreads();
6328 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6329 wxPyEndAllowThreads(__tstate);
6330 if (PyErr_Occurred()) SWIG_fail;
6331 }
6332 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6333 return resultobj;
6334fail:
6335 return NULL;
d55e5bfc
RD
6336}
6337
6338
1bd55598
RD
6339SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6340 PyObject *resultobj = 0;
6341 PyObject *arg1 = (PyObject *) 0 ;
6342 wxBitmap *result = 0 ;
6343 PyObject * obj0 = 0 ;
6344 char * kwnames[] = {
6345 (char *) "listOfStrings", NULL
6346 };
6347
6348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6349 arg1 = obj0;
6350 {
6351 if (!wxPyCheckForApp()) SWIG_fail;
6352 PyThreadState* __tstate = wxPyBeginAllowThreads();
6353 result = (wxBitmap *)new_wxBitmap(arg1);
6354 wxPyEndAllowThreads(__tstate);
6355 if (PyErr_Occurred()) SWIG_fail;
6356 }
6357 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6358 return resultobj;
6359fail:
6360 return NULL;
6361}
6362
6363
6364SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6365 PyObject *resultobj = 0;
6366 PyObject *arg1 = (PyObject *) 0 ;
6367 int arg2 ;
6368 int arg3 ;
6369 int arg4 = (int) 1 ;
6370 wxBitmap *result = 0 ;
6371 int val2 ;
6372 int ecode2 = 0 ;
6373 int val3 ;
6374 int ecode3 = 0 ;
6375 int val4 ;
6376 int ecode4 = 0 ;
6377 PyObject * obj0 = 0 ;
6378 PyObject * obj1 = 0 ;
6379 PyObject * obj2 = 0 ;
6380 PyObject * obj3 = 0 ;
6381 char * kwnames[] = {
6382 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6383 };
6384
6385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6386 arg1 = obj0;
6387 ecode2 = SWIG_AsVal_int(obj1, &val2);
6388 if (!SWIG_IsOK(ecode2)) {
6389 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6390 }
6391 arg2 = static_cast< int >(val2);
6392 ecode3 = SWIG_AsVal_int(obj2, &val3);
6393 if (!SWIG_IsOK(ecode3)) {
6394 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6395 }
6396 arg3 = static_cast< int >(val3);
6397 if (obj3) {
6398 ecode4 = SWIG_AsVal_int(obj3, &val4);
6399 if (!SWIG_IsOK(ecode4)) {
6400 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6401 }
6402 arg4 = static_cast< int >(val4);
6403 }
6404 {
6405 if (!wxPyCheckForApp()) SWIG_fail;
6406 PyThreadState* __tstate = wxPyBeginAllowThreads();
6407 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6408 wxPyEndAllowThreads(__tstate);
6409 if (PyErr_Occurred()) SWIG_fail;
6410 }
6411 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6412 return resultobj;
6413fail:
6414 return NULL;
d55e5bfc
RD
6415}
6416
6417
b39fe951 6418SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
6419 PyObject *resultobj = 0;
6420 wxBitmap *arg1 = (wxBitmap *) 0 ;
6421 bool result;
6422 void *argp1 = 0 ;
6423 int res1 = 0 ;
6424 PyObject *swig_obj[1] ;
6425
6426 if (!args) SWIG_fail;
6427 swig_obj[0] = args;
6428 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6429 if (!SWIG_IsOK(res1)) {
b39fe951 6430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
1bd55598
RD
6431 }
6432 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6433 {
b39fe951 6434 result = (bool)(arg1)->IsOk();
1bd55598
RD
6435 if (PyErr_Occurred()) SWIG_fail;
6436 }
6437 {
6438 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6439 }
6440 return resultobj;
6441fail:
6442 return NULL;
d55e5bfc
RD
6443}
6444
6445
1bd55598
RD
6446SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6447 PyObject *resultobj = 0;
6448 wxBitmap *arg1 = (wxBitmap *) 0 ;
6449 int result;
6450 void *argp1 = 0 ;
6451 int res1 = 0 ;
6452 PyObject *swig_obj[1] ;
6453
6454 if (!args) SWIG_fail;
6455 swig_obj[0] = args;
6456 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6457 if (!SWIG_IsOK(res1)) {
6458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6459 }
6460 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6461 {
1bd55598 6462 result = (int)(arg1)->GetWidth();
1bd55598
RD
6463 if (PyErr_Occurred()) SWIG_fail;
6464 }
6465 resultobj = SWIG_From_int(static_cast< int >(result));
6466 return resultobj;
6467fail:
6468 return NULL;
070c48b4
RD
6469}
6470
6471
1bd55598
RD
6472SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6473 PyObject *resultobj = 0;
6474 wxBitmap *arg1 = (wxBitmap *) 0 ;
6475 int result;
6476 void *argp1 = 0 ;
6477 int res1 = 0 ;
6478 PyObject *swig_obj[1] ;
6479
6480 if (!args) SWIG_fail;
6481 swig_obj[0] = args;
6482 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6483 if (!SWIG_IsOK(res1)) {
6484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6485 }
6486 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6487 {
1bd55598 6488 result = (int)(arg1)->GetHeight();
1bd55598
RD
6489 if (PyErr_Occurred()) SWIG_fail;
6490 }
6491 resultobj = SWIG_From_int(static_cast< int >(result));
6492 return resultobj;
6493fail:
6494 return NULL;
d55e5bfc
RD
6495}
6496
6497
1bd55598
RD
6498SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6499 PyObject *resultobj = 0;
6500 wxBitmap *arg1 = (wxBitmap *) 0 ;
6501 int result;
6502 void *argp1 = 0 ;
6503 int res1 = 0 ;
6504 PyObject *swig_obj[1] ;
6505
6506 if (!args) SWIG_fail;
6507 swig_obj[0] = args;
6508 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6509 if (!SWIG_IsOK(res1)) {
6510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6511 }
6512 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6513 {
1bd55598 6514 result = (int)(arg1)->GetDepth();
1bd55598
RD
6515 if (PyErr_Occurred()) SWIG_fail;
6516 }
6517 resultobj = SWIG_From_int(static_cast< int >(result));
6518 return resultobj;
6519fail:
6520 return NULL;
d55e5bfc
RD
6521}
6522
6523
1bd55598
RD
6524SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6525 PyObject *resultobj = 0;
6526 wxBitmap *arg1 = (wxBitmap *) 0 ;
6527 wxSize result;
6528 void *argp1 = 0 ;
6529 int res1 = 0 ;
6530 PyObject *swig_obj[1] ;
6531
6532 if (!args) SWIG_fail;
6533 swig_obj[0] = args;
6534 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6535 if (!SWIG_IsOK(res1)) {
6536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6537 }
6538 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6539 {
1bd55598 6540 result = wxBitmap_GetSize(arg1);
1bd55598
RD
6541 if (PyErr_Occurred()) SWIG_fail;
6542 }
6543 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6544 return resultobj;
6545fail:
6546 return NULL;
d55e5bfc
RD
6547}
6548
6549
1bd55598
RD
6550SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6551 PyObject *resultobj = 0;
6552 wxBitmap *arg1 = (wxBitmap *) 0 ;
6553 SwigValueWrapper<wxImage > result;
6554 void *argp1 = 0 ;
6555 int res1 = 0 ;
6556 PyObject *swig_obj[1] ;
6557
6558 if (!args) SWIG_fail;
6559 swig_obj[0] = args;
6560 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6561 if (!SWIG_IsOK(res1)) {
6562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6563 }
6564 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6565 {
1bd55598 6566 result = ((wxBitmap const *)arg1)->ConvertToImage();
1bd55598
RD
6567 if (PyErr_Occurred()) SWIG_fail;
6568 }
6569 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6570 return resultobj;
6571fail:
6572 return NULL;
d55e5bfc
RD
6573}
6574
6575
1bd55598
RD
6576SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6577 PyObject *resultobj = 0;
6578 wxBitmap *arg1 = (wxBitmap *) 0 ;
6579 wxMask *result = 0 ;
6580 void *argp1 = 0 ;
6581 int res1 = 0 ;
6582 PyObject *swig_obj[1] ;
6583
6584 if (!args) SWIG_fail;
6585 swig_obj[0] = args;
6586 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6587 if (!SWIG_IsOK(res1)) {
6588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6589 }
6590 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6591 {
1bd55598 6592 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
1bd55598
RD
6593 if (PyErr_Occurred()) SWIG_fail;
6594 }
6595 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6596 return resultobj;
6597fail:
6598 return NULL;
6599}
6600
6601
6602SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6603 PyObject *resultobj = 0;
6604 wxBitmap *arg1 = (wxBitmap *) 0 ;
6605 wxMask *arg2 = (wxMask *) 0 ;
6606 void *argp1 = 0 ;
6607 int res1 = 0 ;
6608 int res2 = 0 ;
6609 PyObject * obj0 = 0 ;
6610 PyObject * obj1 = 0 ;
6611 char * kwnames[] = {
6612 (char *) "self",(char *) "mask", NULL
6613 };
6614
6615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6617 if (!SWIG_IsOK(res1)) {
6618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6619 }
6620 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6621 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6622 if (!SWIG_IsOK(res2)) {
6623 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6624 }
6625 {
1bd55598 6626 (arg1)->SetMask(arg2);
1bd55598
RD
6627 if (PyErr_Occurred()) SWIG_fail;
6628 }
6629 resultobj = SWIG_Py_Void();
6630 return resultobj;
6631fail:
6632 return NULL;
6633}
6634
6635
6636SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6637 PyObject *resultobj = 0;
6638 wxBitmap *arg1 = (wxBitmap *) 0 ;
6639 wxColour *arg2 = 0 ;
6640 void *argp1 = 0 ;
6641 int res1 = 0 ;
6642 wxColour temp2 ;
6643 PyObject * obj0 = 0 ;
6644 PyObject * obj1 = 0 ;
6645 char * kwnames[] = {
6646 (char *) "self",(char *) "colour", NULL
6647 };
6648
6649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6651 if (!SWIG_IsOK(res1)) {
6652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6653 }
6654 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6655 {
6656 arg2 = &temp2;
6657 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6658 }
6659 {
1bd55598 6660 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
1bd55598
RD
6661 if (PyErr_Occurred()) SWIG_fail;
6662 }
6663 resultobj = SWIG_Py_Void();
6664 return resultobj;
6665fail:
6666 return NULL;
6667}
6668
6669
6670SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6671 PyObject *resultobj = 0;
6672 wxBitmap *arg1 = (wxBitmap *) 0 ;
6673 wxRect *arg2 = 0 ;
6674 SwigValueWrapper<wxBitmap > result;
6675 void *argp1 = 0 ;
6676 int res1 = 0 ;
6677 wxRect temp2 ;
6678 PyObject * obj0 = 0 ;
6679 PyObject * obj1 = 0 ;
6680 char * kwnames[] = {
6681 (char *) "self",(char *) "rect", NULL
6682 };
6683
6684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6686 if (!SWIG_IsOK(res1)) {
6687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6688 }
6689 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6690 {
6691 arg2 = &temp2;
6692 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6693 }
6694 {
1bd55598 6695 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
1bd55598
RD
6696 if (PyErr_Occurred()) SWIG_fail;
6697 }
6698 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6699 return resultobj;
6700fail:
6701 return NULL;
6702}
6703
6704
6705SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6706 PyObject *resultobj = 0;
6707 wxBitmap *arg1 = (wxBitmap *) 0 ;
6708 wxString *arg2 = 0 ;
6709 wxBitmapType arg3 ;
6710 wxPalette *arg4 = (wxPalette *) NULL ;
6711 bool result;
6712 void *argp1 = 0 ;
6713 int res1 = 0 ;
6714 bool temp2 = false ;
6715 int val3 ;
6716 int ecode3 = 0 ;
6717 void *argp4 = 0 ;
6718 int res4 = 0 ;
6719 PyObject * obj0 = 0 ;
6720 PyObject * obj1 = 0 ;
6721 PyObject * obj2 = 0 ;
6722 PyObject * obj3 = 0 ;
6723 char * kwnames[] = {
6724 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6725 };
6726
6727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6729 if (!SWIG_IsOK(res1)) {
6730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6731 }
6732 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6733 {
6734 arg2 = wxString_in_helper(obj1);
6735 if (arg2 == NULL) SWIG_fail;
6736 temp2 = true;
6737 }
6738 ecode3 = SWIG_AsVal_int(obj2, &val3);
6739 if (!SWIG_IsOK(ecode3)) {
6740 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6741 }
6742 arg3 = static_cast< wxBitmapType >(val3);
6743 if (obj3) {
6744 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6745 if (!SWIG_IsOK(res4)) {
6746 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
d04418a7 6747 }
1bd55598
RD
6748 arg4 = reinterpret_cast< wxPalette * >(argp4);
6749 }
6750 {
1bd55598 6751 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
1bd55598
RD
6752 if (PyErr_Occurred()) SWIG_fail;
6753 }
6754 {
6755 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6756 }
6757 {
6758 if (temp2)
6759 delete arg2;
6760 }
6761 return resultobj;
6762fail:
6763 {
6764 if (temp2)
6765 delete arg2;
6766 }
6767 return NULL;
6768}
6769
6770
6771SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6772 PyObject *resultobj = 0;
6773 wxBitmap *arg1 = (wxBitmap *) 0 ;
6774 wxString *arg2 = 0 ;
6775 wxBitmapType arg3 ;
6776 bool result;
6777 void *argp1 = 0 ;
6778 int res1 = 0 ;
6779 bool temp2 = false ;
6780 int val3 ;
6781 int ecode3 = 0 ;
6782 PyObject * obj0 = 0 ;
6783 PyObject * obj1 = 0 ;
6784 PyObject * obj2 = 0 ;
6785 char * kwnames[] = {
6786 (char *) "self",(char *) "name",(char *) "type", NULL
6787 };
6788
6789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6791 if (!SWIG_IsOK(res1)) {
6792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6793 }
6794 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6795 {
6796 arg2 = wxString_in_helper(obj1);
6797 if (arg2 == NULL) SWIG_fail;
6798 temp2 = true;
6799 }
6800 ecode3 = SWIG_AsVal_int(obj2, &val3);
6801 if (!SWIG_IsOK(ecode3)) {
6802 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6803 }
6804 arg3 = static_cast< wxBitmapType >(val3);
6805 {
1bd55598 6806 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
1bd55598
RD
6807 if (PyErr_Occurred()) SWIG_fail;
6808 }
6809 {
6810 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6811 }
6812 {
6813 if (temp2)
6814 delete arg2;
6815 }
6816 return resultobj;
6817fail:
6818 {
6819 if (temp2)
6820 delete arg2;
6821 }
6822 return NULL;
d04418a7
RD
6823}
6824
6825
1bd55598
RD
6826SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6827 PyObject *resultobj = 0;
6828 wxBitmap *arg1 = (wxBitmap *) 0 ;
6829 wxPalette *result = 0 ;
6830 void *argp1 = 0 ;
6831 int res1 = 0 ;
6832 PyObject *swig_obj[1] ;
6833
6834 if (!args) SWIG_fail;
6835 swig_obj[0] = args;
6836 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6837 if (!SWIG_IsOK(res1)) {
6838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6839 }
6840 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6841 {
1bd55598 6842 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
1bd55598
RD
6843 if (PyErr_Occurred()) SWIG_fail;
6844 }
6845 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6846 return resultobj;
6847fail:
6848 return NULL;
6849}
6850
6851
6852SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6853 PyObject *resultobj = 0;
6854 wxBitmap *arg1 = (wxBitmap *) 0 ;
6855 wxIcon *arg2 = 0 ;
6856 bool result;
6857 void *argp1 = 0 ;
6858 int res1 = 0 ;
6859 void *argp2 = 0 ;
6860 int res2 = 0 ;
6861 PyObject * obj0 = 0 ;
6862 PyObject * obj1 = 0 ;
6863 char * kwnames[] = {
6864 (char *) "self",(char *) "icon", NULL
6865 };
6866
6867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6869 if (!SWIG_IsOK(res1)) {
6870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6871 }
6872 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6873 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6874 if (!SWIG_IsOK(res2)) {
6875 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6876 }
6877 if (!argp2) {
6878 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6879 }
6880 arg2 = reinterpret_cast< wxIcon * >(argp2);
6881 {
1bd55598 6882 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
1bd55598
RD
6883 if (PyErr_Occurred()) SWIG_fail;
6884 }
6885 {
6886 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6887 }
6888 return resultobj;
6889fail:
6890 return NULL;
6891}
6892
6893
6894SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6895 PyObject *resultobj = 0;
6896 wxBitmap *arg1 = (wxBitmap *) 0 ;
6897 int arg2 ;
6898 void *argp1 = 0 ;
6899 int res1 = 0 ;
6900 int val2 ;
6901 int ecode2 = 0 ;
6902 PyObject * obj0 = 0 ;
6903 PyObject * obj1 = 0 ;
6904 char * kwnames[] = {
6905 (char *) "self",(char *) "height", NULL
6906 };
6907
6908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6910 if (!SWIG_IsOK(res1)) {
6911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6912 }
6913 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6914 ecode2 = SWIG_AsVal_int(obj1, &val2);
6915 if (!SWIG_IsOK(ecode2)) {
6916 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6917 }
6918 arg2 = static_cast< int >(val2);
6919 {
1bd55598 6920 (arg1)->SetHeight(arg2);
1bd55598
RD
6921 if (PyErr_Occurred()) SWIG_fail;
6922 }
6923 resultobj = SWIG_Py_Void();
6924 return resultobj;
6925fail:
6926 return NULL;
6927}
6928
6929
6930SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6931 PyObject *resultobj = 0;
6932 wxBitmap *arg1 = (wxBitmap *) 0 ;
6933 int arg2 ;
6934 void *argp1 = 0 ;
6935 int res1 = 0 ;
6936 int val2 ;
6937 int ecode2 = 0 ;
6938 PyObject * obj0 = 0 ;
6939 PyObject * obj1 = 0 ;
6940 char * kwnames[] = {
6941 (char *) "self",(char *) "width", NULL
6942 };
6943
6944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6946 if (!SWIG_IsOK(res1)) {
6947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6948 }
6949 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6950 ecode2 = SWIG_AsVal_int(obj1, &val2);
6951 if (!SWIG_IsOK(ecode2)) {
6952 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6953 }
6954 arg2 = static_cast< int >(val2);
6955 {
1bd55598 6956 (arg1)->SetWidth(arg2);
1bd55598
RD
6957 if (PyErr_Occurred()) SWIG_fail;
6958 }
6959 resultobj = SWIG_Py_Void();
6960 return resultobj;
6961fail:
6962 return NULL;
6963}
6964
6965
6966SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6967 PyObject *resultobj = 0;
6968 wxBitmap *arg1 = (wxBitmap *) 0 ;
6969 int arg2 ;
6970 void *argp1 = 0 ;
6971 int res1 = 0 ;
6972 int val2 ;
6973 int ecode2 = 0 ;
6974 PyObject * obj0 = 0 ;
6975 PyObject * obj1 = 0 ;
6976 char * kwnames[] = {
6977 (char *) "self",(char *) "depth", NULL
6978 };
6979
6980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6982 if (!SWIG_IsOK(res1)) {
6983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6984 }
6985 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6986 ecode2 = SWIG_AsVal_int(obj1, &val2);
6987 if (!SWIG_IsOK(ecode2)) {
6988 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6989 }
6990 arg2 = static_cast< int >(val2);
6991 {
1bd55598 6992 (arg1)->SetDepth(arg2);
1bd55598
RD
6993 if (PyErr_Occurred()) SWIG_fail;
6994 }
6995 resultobj = SWIG_Py_Void();
6996 return resultobj;
6997fail:
6998 return NULL;
6999}
7000
7001
7002SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7003 PyObject *resultobj = 0;
7004 wxBitmap *arg1 = (wxBitmap *) 0 ;
7005 wxSize *arg2 = 0 ;
7006 void *argp1 = 0 ;
7007 int res1 = 0 ;
7008 wxSize temp2 ;
7009 PyObject * obj0 = 0 ;
7010 PyObject * obj1 = 0 ;
7011 char * kwnames[] = {
7012 (char *) "self",(char *) "size", NULL
7013 };
7014
7015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
7016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7017 if (!SWIG_IsOK(res1)) {
7018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
7019 }
7020 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7021 {
7022 arg2 = &temp2;
7023 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7024 }
7025 {
1bd55598 7026 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
1bd55598
RD
7027 if (PyErr_Occurred()) SWIG_fail;
7028 }
7029 resultobj = SWIG_Py_Void();
7030 return resultobj;
7031fail:
7032 return NULL;
7033}
7034
7035
8f514ab4
RD
7036SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7037 PyObject *resultobj = 0;
7038 wxBitmap *arg1 = (wxBitmap *) 0 ;
7039 buffer arg2 ;
7040 int arg3 ;
7041 void *argp1 = 0 ;
7042 int res1 = 0 ;
7043 Py_ssize_t temp2 ;
7044 PyObject * obj0 = 0 ;
7045 PyObject * obj1 = 0 ;
7046 char * kwnames[] = {
7047 (char *) "self",(char *) "data", NULL
7048 };
7049
7050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBuffer",kwnames,&obj0,&obj1)) SWIG_fail;
7051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7052 if (!SWIG_IsOK(res1)) {
7053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBuffer" "', expected argument " "1"" of type '" "wxBitmap *""'");
7054 }
7055 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7056 {
7057 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7058 arg3 = (int)temp2;
7059 }
7060 {
7061 wxBitmap_CopyFromBuffer(arg1,arg2,arg3);
7062 if (PyErr_Occurred()) SWIG_fail;
7063 }
7064 resultobj = SWIG_Py_Void();
7065 return resultobj;
7066fail:
7067 return NULL;
7068}
7069
7070
7071SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7072 PyObject *resultobj = 0;
7073 wxBitmap *arg1 = (wxBitmap *) 0 ;
7074 buffer arg2 ;
7075 int arg3 ;
7076 void *argp1 = 0 ;
7077 int res1 = 0 ;
7078 Py_ssize_t temp2 ;
7079 PyObject * obj0 = 0 ;
7080 PyObject * obj1 = 0 ;
7081 char * kwnames[] = {
7082 (char *) "self",(char *) "data", NULL
7083 };
7084
7085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBufferRGBA",kwnames,&obj0,&obj1)) SWIG_fail;
7086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7087 if (!SWIG_IsOK(res1)) {
7088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBufferRGBA" "', expected argument " "1"" of type '" "wxBitmap *""'");
7089 }
7090 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7091 {
7092 if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
7093 arg3 = (int)temp2;
7094 }
7095 {
7096 wxBitmap_CopyFromBufferRGBA(arg1,arg2,arg3);
7097 if (PyErr_Occurred()) SWIG_fail;
7098 }
7099 resultobj = SWIG_Py_Void();
7100 return resultobj;
7101fail:
7102 return NULL;
7103}
7104
7105
1bd55598
RD
7106SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7107 PyObject *resultobj = 0;
7108 wxBitmap *arg1 = (wxBitmap *) 0 ;
7109 wxBitmap *arg2 = (wxBitmap *) 0 ;
7110 bool result;
7111 void *argp1 = 0 ;
7112 int res1 = 0 ;
7113 void *argp2 = 0 ;
7114 int res2 = 0 ;
7115 PyObject * obj0 = 0 ;
7116 PyObject * obj1 = 0 ;
7117 char * kwnames[] = {
7118 (char *) "self",(char *) "other", NULL
7119 };
7120
7121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
7122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7123 if (!SWIG_IsOK(res1)) {
7124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7125 }
7126 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7127 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7128 if (!SWIG_IsOK(res2)) {
7129 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7130 }
7131 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7132 {
1bd55598 7133 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
1bd55598
RD
7134 if (PyErr_Occurred()) SWIG_fail;
7135 }
7136 {
fc46b7f3
RD
7137 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7138 }
7139 return resultobj;
7140fail:
7141 return NULL;
7142}
7143
7144
7145SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7146 PyObject *resultobj = 0;
7147 wxBitmap *arg1 = (wxBitmap *) 0 ;
7148 wxBitmap *arg2 = (wxBitmap *) 0 ;
7149 bool result;
7150 void *argp1 = 0 ;
7151 int res1 = 0 ;
7152 void *argp2 = 0 ;
7153 int res2 = 0 ;
7154 PyObject * obj0 = 0 ;
7155 PyObject * obj1 = 0 ;
7156 char * kwnames[] = {
7157 (char *) "self",(char *) "other", NULL
7158 };
7159
7160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
7161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
7162 if (!SWIG_IsOK(res1)) {
7163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
7164 }
7165 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7166 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
7167 if (!SWIG_IsOK(res2)) {
7168 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
7169 }
7170 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7171 {
7172 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
7173 if (PyErr_Occurred()) SWIG_fail;
7174 }
7175 {
7176 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7177 }
7178 return resultobj;
7179fail:
7180 return NULL;
7181}
7182
7183
7184SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7185 PyObject *obj;
7186 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7187 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
7188 return SWIG_Py_Void();
7189}
7190
7191SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7192 return SWIG_Python_InitShadowInstance(args);
7193}
7194
7195SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7196 PyObject *resultobj = 0;
7197 int arg1 ;
7198 int arg2 ;
7199 buffer arg3 ;
7200 int arg4 ;
7201 buffer arg5 ;
7202 int arg6 ;
7203 wxBitmap *result = 0 ;
7204 int val1 ;
7205 int ecode1 = 0 ;
7206 int val2 ;
7207 int ecode2 = 0 ;
8c9c423b
RD
7208 Py_ssize_t temp3 ;
7209 Py_ssize_t temp5 ;
fc46b7f3
RD
7210 PyObject * obj0 = 0 ;
7211 PyObject * obj1 = 0 ;
7212 PyObject * obj2 = 0 ;
7213 PyObject * obj3 = 0 ;
7214 char * kwnames[] = {
7215 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
7216 };
7217
7218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7219 ecode1 = SWIG_AsVal_int(obj0, &val1);
7220 if (!SWIG_IsOK(ecode1)) {
7221 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
7222 }
7223 arg1 = static_cast< int >(val1);
7224 ecode2 = SWIG_AsVal_int(obj1, &val2);
7225 if (!SWIG_IsOK(ecode2)) {
7226 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
7227 }
7228 arg2 = static_cast< int >(val2);
7229 {
8c9c423b
RD
7230 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7231 arg4 = (int)temp3;
fc46b7f3
RD
7232 }
7233 {
7234 if (obj3 != Py_None) {
8c9c423b
RD
7235 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
7236 arg6 = (int)temp5;
fc46b7f3
RD
7237 }
7238 }
7239 {
7240 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
7241 if (PyErr_Occurred()) SWIG_fail;
7242 }
7243 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7244 return resultobj;
7245fail:
7246 return NULL;
7247}
7248
7249
7250SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7251 PyObject *resultobj = 0;
7252 int arg1 ;
7253 int arg2 ;
7254 buffer arg3 ;
7255 int arg4 ;
7256 wxBitmap *result = 0 ;
7257 int val1 ;
7258 int ecode1 = 0 ;
7259 int val2 ;
7260 int ecode2 = 0 ;
8c9c423b 7261 Py_ssize_t temp3 ;
fc46b7f3
RD
7262 PyObject * obj0 = 0 ;
7263 PyObject * obj1 = 0 ;
7264 PyObject * obj2 = 0 ;
7265 char * kwnames[] = {
7266 (char *) "width",(char *) "height",(char *) "data", NULL
7267 };
7268
7269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7270 ecode1 = SWIG_AsVal_int(obj0, &val1);
7271 if (!SWIG_IsOK(ecode1)) {
7272 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
7273 }
7274 arg1 = static_cast< int >(val1);
7275 ecode2 = SWIG_AsVal_int(obj1, &val2);
7276 if (!SWIG_IsOK(ecode2)) {
7277 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
7278 }
7279 arg2 = static_cast< int >(val2);
7280 {
8c9c423b
RD
7281 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7282 arg4 = (int)temp3;
fc46b7f3
RD
7283 }
7284 {
7285 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
7286 if (PyErr_Occurred()) SWIG_fail;
7287 }
7288 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7289 return resultobj;
7290fail:
7291 return NULL;
7292}
7293
7294
7295SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7296 PyObject *resultobj = 0;
7297 int arg1 ;
7298 int arg2 ;
7299 buffer arg3 ;
7300 int arg4 ;
7301 wxBitmap *result = 0 ;
7302 int val1 ;
7303 int ecode1 = 0 ;
7304 int val2 ;
7305 int ecode2 = 0 ;
8c9c423b 7306 Py_ssize_t temp3 ;
fc46b7f3
RD
7307 PyObject * obj0 = 0 ;
7308 PyObject * obj1 = 0 ;
7309 PyObject * obj2 = 0 ;
7310 char * kwnames[] = {
7311 (char *) "width",(char *) "height",(char *) "data", NULL
7312 };
7313
7314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7315 ecode1 = SWIG_AsVal_int(obj0, &val1);
7316 if (!SWIG_IsOK(ecode1)) {
7317 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
7318 }
7319 arg1 = static_cast< int >(val1);
7320 ecode2 = SWIG_AsVal_int(obj1, &val2);
7321 if (!SWIG_IsOK(ecode2)) {
7322 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
7323 }
7324 arg2 = static_cast< int >(val2);
7325 {
8c9c423b
RD
7326 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7327 arg4 = (int)temp3;
fc46b7f3
RD
7328 }
7329 {
7330 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
7331 if (PyErr_Occurred()) SWIG_fail;
7332 }
7333 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7334 return resultobj;
7335fail:
7336 return NULL;
7337}
7338
7339
7340SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7341 PyObject *resultobj = 0;
7342 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7343 wxPoint result;
7344 void *argp1 = 0 ;
7345 int res1 = 0 ;
7346 PyObject *swig_obj[1] ;
7347
7348 if (!args) SWIG_fail;
7349 swig_obj[0] = args;
7350 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7351 if (!SWIG_IsOK(res1)) {
7352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7353 }
7354 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7355 {
7356 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7357 if (PyErr_Occurred()) SWIG_fail;
7358 }
7359 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7360 return resultobj;
7361fail:
7362 return NULL;
7363}
7364
7365
7366SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7367 PyObject *resultobj = 0;
7368 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7369 int result;
7370 void *argp1 = 0 ;
7371 int res1 = 0 ;
7372 PyObject *swig_obj[1] ;
7373
7374 if (!args) SWIG_fail;
7375 swig_obj[0] = args;
7376 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7377 if (!SWIG_IsOK(res1)) {
7378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7379 }
7380 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7381 {
7382 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7383 if (PyErr_Occurred()) SWIG_fail;
7384 }
7385 resultobj = SWIG_From_int(static_cast< int >(result));
7386 return resultobj;
7387fail:
7388 return NULL;
7389}
7390
7391
7392SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7393 PyObject *resultobj = 0;
7394 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7395 int result;
7396 void *argp1 = 0 ;
7397 int res1 = 0 ;
7398 PyObject *swig_obj[1] ;
7399
7400 if (!args) SWIG_fail;
7401 swig_obj[0] = args;
7402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7403 if (!SWIG_IsOK(res1)) {
7404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7405 }
7406 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7407 {
7408 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7409 if (PyErr_Occurred()) SWIG_fail;
7410 }
7411 resultobj = SWIG_From_int(static_cast< int >(result));
7412 return resultobj;
7413fail:
7414 return NULL;
7415}
7416
7417
7418SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7419 PyObject *resultobj = 0;
7420 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7421 wxSize result;
7422 void *argp1 = 0 ;
7423 int res1 = 0 ;
7424 PyObject *swig_obj[1] ;
7425
7426 if (!args) SWIG_fail;
7427 swig_obj[0] = args;
7428 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7429 if (!SWIG_IsOK(res1)) {
7430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7431 }
7432 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7433 {
7434 result = ((wxPixelDataBase const *)arg1)->GetSize();
7435 if (PyErr_Occurred()) SWIG_fail;
7436 }
7437 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7438 return resultobj;
7439fail:
7440 return NULL;
7441}
7442
7443
7444SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7445 PyObject *resultobj = 0;
7446 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7447 int result;
7448 void *argp1 = 0 ;
7449 int res1 = 0 ;
7450 PyObject *swig_obj[1] ;
7451
7452 if (!args) SWIG_fail;
7453 swig_obj[0] = args;
7454 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7455 if (!SWIG_IsOK(res1)) {
7456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7457 }
7458 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7459 {
7460 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7461 if (PyErr_Occurred()) SWIG_fail;
7462 }
7463 resultobj = SWIG_From_int(static_cast< int >(result));
7464 return resultobj;
7465fail:
7466 return NULL;
7467}
7468
7469
7470SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7471 PyObject *obj;
7472 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7473 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7474 return SWIG_Py_Void();
7475}
7476
7477SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7478 PyObject *resultobj = 0;
7479 wxBitmap *arg1 = 0 ;
7480 wxNativePixelData *result = 0 ;
7481 void *argp1 = 0 ;
7482 int res1 = 0 ;
7483
7484 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7485 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7486 if (!SWIG_IsOK(res1)) {
7487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7488 }
7489 if (!argp1) {
7490 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7491 }
7492 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7493 {
7494 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7495 if (PyErr_Occurred()) SWIG_fail;
7496 }
7497 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7498 return resultobj;
7499fail:
7500 return NULL;
7501}
7502
7503
7504SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7505 PyObject *resultobj = 0;
7506 wxBitmap *arg1 = 0 ;
7507 wxRect *arg2 = 0 ;
7508 wxNativePixelData *result = 0 ;
7509 void *argp1 = 0 ;
7510 int res1 = 0 ;
7511 wxRect temp2 ;
7512
7513 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7514 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7515 if (!SWIG_IsOK(res1)) {
7516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7517 }
7518 if (!argp1) {
7519 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7520 }
7521 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7522 {
7523 arg2 = &temp2;
7524 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7525 }
7526 {
7527 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7528 if (PyErr_Occurred()) SWIG_fail;
7529 }
7530 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7531 return resultobj;
7532fail:
7533 return NULL;
7534}
7535
7536
7537SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7538 PyObject *resultobj = 0;
7539 wxBitmap *arg1 = 0 ;
7540 wxPoint *arg2 = 0 ;
7541 wxSize *arg3 = 0 ;
7542 wxNativePixelData *result = 0 ;
7543 void *argp1 = 0 ;
7544 int res1 = 0 ;
7545 wxPoint temp2 ;
7546 wxSize temp3 ;
7547
7548 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7549 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7550 if (!SWIG_IsOK(res1)) {
7551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7552 }
7553 if (!argp1) {
7554 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7555 }
7556 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7557 {
7558 arg2 = &temp2;
7559 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7560 }
7561 {
7562 arg3 = &temp3;
7563 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7564 }
7565 {
7566 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7567 if (PyErr_Occurred()) SWIG_fail;
7568 }
7569 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7570 return resultobj;
7571fail:
7572 return NULL;
7573}
7574
7575
7576SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7577 int argc;
7578 PyObject *argv[4];
7579
7580 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7581 --argc;
7582 if (argc == 1) {
7583 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7584 }
7585 if (argc == 2) {
7586 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7587 }
7588 if (argc == 3) {
7589 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7590 }
7591
7592fail:
7593 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7594 return NULL;
7595}
7596
7597
7598SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7599 PyObject *resultobj = 0;
7600 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7601 void *argp1 = 0 ;
7602 int res1 = 0 ;
7603 PyObject *swig_obj[1] ;
7604
7605 if (!args) SWIG_fail;
7606 swig_obj[0] = args;
7607 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7608 if (!SWIG_IsOK(res1)) {
7609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7610 }
7611 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7612 {
7613 delete arg1;
7614
7615 if (PyErr_Occurred()) SWIG_fail;
7616 }
7617 resultobj = SWIG_Py_Void();
7618 return resultobj;
7619fail:
7620 return NULL;
7621}
7622
7623
7624SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7625 PyObject *resultobj = 0;
7626 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7627 wxNativePixelData_Accessor result;
7628 void *argp1 = 0 ;
7629 int res1 = 0 ;
7630 PyObject *swig_obj[1] ;
7631
7632 if (!args) SWIG_fail;
7633 swig_obj[0] = args;
7634 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7635 if (!SWIG_IsOK(res1)) {
7636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7637 }
7638 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7639 {
7640 result = ((wxNativePixelData const *)arg1)->GetPixels();
7641 if (PyErr_Occurred()) SWIG_fail;
7642 }
7643 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7644 return resultobj;
7645fail:
7646 return NULL;
7647}
7648
7649
7650SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7651 PyObject *resultobj = 0;
7652 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7653 void *argp1 = 0 ;
7654 int res1 = 0 ;
7655 PyObject *swig_obj[1] ;
7656
7657 if (!args) SWIG_fail;
7658 swig_obj[0] = args;
7659 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7660 if (!SWIG_IsOK(res1)) {
7661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7662 }
7663 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7664 {
7665 (arg1)->UseAlpha();
7666 if (PyErr_Occurred()) SWIG_fail;
7667 }
7668 resultobj = SWIG_Py_Void();
7669 return resultobj;
7670fail:
7671 return NULL;
7672}
7673
7674
7675SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7676 PyObject *resultobj = 0;
7677 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7678 bool result;
7679 void *argp1 = 0 ;
7680 int res1 = 0 ;
7681 PyObject *swig_obj[1] ;
7682
7683 if (!args) SWIG_fail;
7684 swig_obj[0] = args;
7685 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7686 if (!SWIG_IsOK(res1)) {
7687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7688 }
7689 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7690 {
7691 result = (bool)wxNativePixelData___nonzero__(arg1);
7692 if (PyErr_Occurred()) SWIG_fail;
7693 }
7694 {
7695 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7696 }
7697 return resultobj;
7698fail:
7699 return NULL;
7700}
7701
7702
7703SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7704 PyObject *obj;
7705 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7706 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7707 return SWIG_Py_Void();
7708}
7709
7710SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7711 return SWIG_Python_InitShadowInstance(args);
7712}
7713
7714SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7715 PyObject *resultobj = 0;
7716 wxNativePixelData *arg1 = 0 ;
7717 wxNativePixelData_Accessor *result = 0 ;
7718 void *argp1 = 0 ;
7719 int res1 = 0 ;
7720
7721 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7722 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7723 if (!SWIG_IsOK(res1)) {
7724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7725 }
7726 if (!argp1) {
7727 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7728 }
7729 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7730 {
7731 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7732 if (PyErr_Occurred()) SWIG_fail;
7733 }
7734 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7735 return resultobj;
7736fail:
7737 return NULL;
7738}
7739
7740
7741SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7742 PyObject *resultobj = 0;
7743 wxBitmap *arg1 = 0 ;
7744 wxNativePixelData *arg2 = 0 ;
7745 wxNativePixelData_Accessor *result = 0 ;
7746 void *argp1 = 0 ;
7747 int res1 = 0 ;
7748 void *argp2 = 0 ;
7749 int res2 = 0 ;
7750
7751 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7752 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7753 if (!SWIG_IsOK(res1)) {
7754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7755 }
7756 if (!argp1) {
7757 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7758 }
7759 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7760 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7761 if (!SWIG_IsOK(res2)) {
7762 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7763 }
7764 if (!argp2) {
7765 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7766 }
7767 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7768 {
7769 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7770 if (PyErr_Occurred()) SWIG_fail;
7771 }
7772 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7773 return resultobj;
7774fail:
7775 return NULL;
7776}
7777
7778
7779SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7780 PyObject *resultobj = 0;
7781 wxNativePixelData_Accessor *result = 0 ;
7782
7783 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7784 {
7785 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7786 if (PyErr_Occurred()) SWIG_fail;
7787 }
7788 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7789 return resultobj;
7790fail:
7791 return NULL;
7792}
7793
7794
7795SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7796 int argc;
7797 PyObject *argv[3];
7798
7799 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7800 --argc;
7801 if (argc == 0) {
7802 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7803 }
7804 if (argc == 1) {
7805 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7806 }
7807 if (argc == 2) {
7808 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7809 }
7810
7811fail:
7812 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7813 return NULL;
7814}
7815
7816
7817SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7818 PyObject *resultobj = 0;
7819 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7820 void *argp1 = 0 ;
7821 int res1 = 0 ;
7822 PyObject *swig_obj[1] ;
7823
7824 if (!args) SWIG_fail;
7825 swig_obj[0] = args;
7826 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7827 if (!SWIG_IsOK(res1)) {
7828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7829 }
7830 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7831 {
7832 delete arg1;
7833
7834 if (PyErr_Occurred()) SWIG_fail;
7835 }
7836 resultobj = SWIG_Py_Void();
7837 return resultobj;
7838fail:
7839 return NULL;
7840}
7841
7842
7843SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7844 PyObject *resultobj = 0;
7845 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7846 wxNativePixelData *arg2 = 0 ;
7847 void *argp1 = 0 ;
7848 int res1 = 0 ;
7849 void *argp2 = 0 ;
7850 int res2 = 0 ;
7851 PyObject * obj0 = 0 ;
7852 PyObject * obj1 = 0 ;
7853 char * kwnames[] = {
7854 (char *) "self",(char *) "data", NULL
7855 };
7856
7857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7859 if (!SWIG_IsOK(res1)) {
7860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7861 }
7862 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7863 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7864 if (!SWIG_IsOK(res2)) {
7865 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7866 }
7867 if (!argp2) {
7868 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7869 }
7870 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7871 {
7872 (arg1)->Reset((wxNativePixelData const &)*arg2);
7873 if (PyErr_Occurred()) SWIG_fail;
7874 }
7875 resultobj = SWIG_Py_Void();
7876 return resultobj;
7877fail:
7878 return NULL;
7879}
7880
7881
7882SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7883 PyObject *resultobj = 0;
7884 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7885 bool result;
7886 void *argp1 = 0 ;
7887 int res1 = 0 ;
7888 PyObject *swig_obj[1] ;
7889
7890 if (!args) SWIG_fail;
7891 swig_obj[0] = args;
7892 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7893 if (!SWIG_IsOK(res1)) {
7894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7895 }
7896 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7897 {
7898 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7899 if (PyErr_Occurred()) SWIG_fail;
7900 }
7901 {
7902 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7903 }
7904 return resultobj;
7905fail:
7906 return NULL;
7907}
7908
7909
7910SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7911 PyObject *resultobj = 0;
7912 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7913 void *argp1 = 0 ;
7914 int res1 = 0 ;
7915 PyObject *swig_obj[1] ;
7916
7917 if (!args) SWIG_fail;
7918 swig_obj[0] = args;
7919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7920 if (!SWIG_IsOK(res1)) {
7921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7922 }
7923 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7924 {
7925 wxNativePixelData_Accessor_nextPixel(arg1);
7926 if (PyErr_Occurred()) SWIG_fail;
7927 }
7928 resultobj = SWIG_Py_Void();
7929 return resultobj;
7930fail:
7931 return NULL;
7932}
7933
7934
7935SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7936 PyObject *resultobj = 0;
7937 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7938 wxNativePixelData *arg2 = 0 ;
7939 int arg3 ;
7940 int arg4 ;
7941 void *argp1 = 0 ;
7942 int res1 = 0 ;
7943 void *argp2 = 0 ;
7944 int res2 = 0 ;
7945 int val3 ;
7946 int ecode3 = 0 ;
7947 int val4 ;
7948 int ecode4 = 0 ;
7949 PyObject * obj0 = 0 ;
7950 PyObject * obj1 = 0 ;
7951 PyObject * obj2 = 0 ;
7952 PyObject * obj3 = 0 ;
7953 char * kwnames[] = {
7954 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7955 };
7956
7957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7959 if (!SWIG_IsOK(res1)) {
7960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7961 }
7962 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7963 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7964 if (!SWIG_IsOK(res2)) {
7965 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7966 }
7967 if (!argp2) {
7968 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7969 }
7970 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7971 ecode3 = SWIG_AsVal_int(obj2, &val3);
7972 if (!SWIG_IsOK(ecode3)) {
7973 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7974 }
7975 arg3 = static_cast< int >(val3);
7976 ecode4 = SWIG_AsVal_int(obj3, &val4);
7977 if (!SWIG_IsOK(ecode4)) {
7978 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7979 }
7980 arg4 = static_cast< int >(val4);
7981 {
7982 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7983 if (PyErr_Occurred()) SWIG_fail;
7984 }
7985 resultobj = SWIG_Py_Void();
7986 return resultobj;
7987fail:
7988 return NULL;
7989}
7990
7991
7992SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7993 PyObject *resultobj = 0;
7994 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7995 wxNativePixelData *arg2 = 0 ;
7996 int arg3 ;
7997 void *argp1 = 0 ;
7998 int res1 = 0 ;
7999 void *argp2 = 0 ;
8000 int res2 = 0 ;
8001 int val3 ;
8002 int ecode3 = 0 ;
8003 PyObject * obj0 = 0 ;
8004 PyObject * obj1 = 0 ;
8005 PyObject * obj2 = 0 ;
8006 char * kwnames[] = {
8007 (char *) "self",(char *) "data",(char *) "x", NULL
8008 };
8009
8010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8012 if (!SWIG_IsOK(res1)) {
8013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8014 }
8015 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8016 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8017 if (!SWIG_IsOK(res2)) {
8018 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8019 }
8020 if (!argp2) {
8021 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8022 }
8023 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8024 ecode3 = SWIG_AsVal_int(obj2, &val3);
8025 if (!SWIG_IsOK(ecode3)) {
8026 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8027 }
8028 arg3 = static_cast< int >(val3);
8029 {
8030 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
8031 if (PyErr_Occurred()) SWIG_fail;
8032 }
8033 resultobj = SWIG_Py_Void();
8034 return resultobj;
8035fail:
8036 return NULL;
8037}
8038
8039
8040SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8041 PyObject *resultobj = 0;
8042 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8043 wxNativePixelData *arg2 = 0 ;
8044 int arg3 ;
8045 void *argp1 = 0 ;
8046 int res1 = 0 ;
8047 void *argp2 = 0 ;
8048 int res2 = 0 ;
8049 int val3 ;
8050 int ecode3 = 0 ;
8051 PyObject * obj0 = 0 ;
8052 PyObject * obj1 = 0 ;
8053 PyObject * obj2 = 0 ;
8054 char * kwnames[] = {
8055 (char *) "self",(char *) "data",(char *) "y", NULL
8056 };
8057
8058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8060 if (!SWIG_IsOK(res1)) {
8061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8062 }
8063 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8064 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8065 if (!SWIG_IsOK(res2)) {
8066 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8067 }
8068 if (!argp2) {
8069 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8070 }
8071 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8072 ecode3 = SWIG_AsVal_int(obj2, &val3);
8073 if (!SWIG_IsOK(ecode3)) {
8074 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8075 }
8076 arg3 = static_cast< int >(val3);
8077 {
8078 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
8079 if (PyErr_Occurred()) SWIG_fail;
8080 }
8081 resultobj = SWIG_Py_Void();
8082 return resultobj;
8083fail:
8084 return NULL;
8085}
8086
8087
8088SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8089 PyObject *resultobj = 0;
8090 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8091 wxNativePixelData *arg2 = 0 ;
8092 int arg3 ;
8093 int arg4 ;
8094 void *argp1 = 0 ;
8095 int res1 = 0 ;
8096 void *argp2 = 0 ;
8097 int res2 = 0 ;
8098 int val3 ;
8099 int ecode3 = 0 ;
8100 int val4 ;
8101 int ecode4 = 0 ;
8102 PyObject * obj0 = 0 ;
8103 PyObject * obj1 = 0 ;
8104 PyObject * obj2 = 0 ;
8105 PyObject * obj3 = 0 ;
8106 char * kwnames[] = {
8107 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8108 };
8109
8110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8112 if (!SWIG_IsOK(res1)) {
8113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8114 }
8115 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8116 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
8117 if (!SWIG_IsOK(res2)) {
8118 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8119 }
8120 if (!argp2) {
8121 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
8122 }
8123 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
8124 ecode3 = SWIG_AsVal_int(obj2, &val3);
8125 if (!SWIG_IsOK(ecode3)) {
8126 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8127 }
8128 arg3 = static_cast< int >(val3);
8129 ecode4 = SWIG_AsVal_int(obj3, &val4);
8130 if (!SWIG_IsOK(ecode4)) {
8131 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8132 }
8133 arg4 = static_cast< int >(val4);
8134 {
8135 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
8136 if (PyErr_Occurred()) SWIG_fail;
8137 }
8138 resultobj = SWIG_Py_Void();
8139 return resultobj;
8140fail:
8141 return NULL;
8142}
8143
8144
8145SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8146 PyObject *resultobj = 0;
8147 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8148 byte arg2 ;
8149 byte arg3 ;
8150 byte arg4 ;
8151 void *argp1 = 0 ;
8152 int res1 = 0 ;
8153 unsigned char val2 ;
8154 int ecode2 = 0 ;
8155 unsigned char val3 ;
8156 int ecode3 = 0 ;
8157 unsigned char val4 ;
8158 int ecode4 = 0 ;
8159 PyObject * obj0 = 0 ;
8160 PyObject * obj1 = 0 ;
8161 PyObject * obj2 = 0 ;
8162 PyObject * obj3 = 0 ;
8163 char * kwnames[] = {
8164 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
8165 };
8166
8167 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8169 if (!SWIG_IsOK(res1)) {
8170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8171 }
8172 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8173 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8174 if (!SWIG_IsOK(ecode2)) {
8175 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8176 }
8177 arg2 = static_cast< byte >(val2);
8178 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8179 if (!SWIG_IsOK(ecode3)) {
8180 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8181 }
8182 arg3 = static_cast< byte >(val3);
8183 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8184 if (!SWIG_IsOK(ecode4)) {
8185 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8186 }
8187 arg4 = static_cast< byte >(val4);
8188 {
8189 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
8190 if (PyErr_Occurred()) SWIG_fail;
8191 }
8192 resultobj = SWIG_Py_Void();
8193 return resultobj;
8194fail:
8195 return NULL;
8196}
8197
8198
8199SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8200 PyObject *resultobj = 0;
8201 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8202 PyObject *result = 0 ;
8203 void *argp1 = 0 ;
8204 int res1 = 0 ;
8205 PyObject *swig_obj[1] ;
8206
8207 if (!args) SWIG_fail;
8208 swig_obj[0] = args;
8209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8210 if (!SWIG_IsOK(res1)) {
8211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8212 }
8213 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8214 {
8215 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
8216 if (PyErr_Occurred()) SWIG_fail;
8217 }
8218 resultobj = result;
8219 return resultobj;
8220fail:
8221 return NULL;
8222}
8223
8224
8225SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8226 PyObject *obj;
8227 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8228 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
8229 return SWIG_Py_Void();
8230}
8231
8232SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8233 return SWIG_Python_InitShadowInstance(args);
8234}
8235
8236SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8237 PyObject *resultobj = 0;
8238 wxBitmap *arg1 = 0 ;
8239 wxAlphaPixelData *result = 0 ;
8240 void *argp1 = 0 ;
8241 int res1 = 0 ;
8242
8243 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8244 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8245 if (!SWIG_IsOK(res1)) {
8246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8247 }
8248 if (!argp1) {
8249 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8250 }
8251 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8252 {
8253 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
8254 if (PyErr_Occurred()) SWIG_fail;
8255 }
8256 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8257 return resultobj;
8258fail:
8259 return NULL;
8260}
8261
8262
8263SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8264 PyObject *resultobj = 0;
8265 wxBitmap *arg1 = 0 ;
8266 wxRect *arg2 = 0 ;
8267 wxAlphaPixelData *result = 0 ;
8268 void *argp1 = 0 ;
8269 int res1 = 0 ;
8270 wxRect temp2 ;
8271
8272 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8273 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8274 if (!SWIG_IsOK(res1)) {
8275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8276 }
8277 if (!argp1) {
8278 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8279 }
8280 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8281 {
8282 arg2 = &temp2;
8283 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
8284 }
8285 {
8286 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
8287 if (PyErr_Occurred()) SWIG_fail;
8288 }
8289 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8290 return resultobj;
8291fail:
8292 return NULL;
8293}
8294
8295
8296SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8297 PyObject *resultobj = 0;
8298 wxBitmap *arg1 = 0 ;
8299 wxPoint *arg2 = 0 ;
8300 wxSize *arg3 = 0 ;
8301 wxAlphaPixelData *result = 0 ;
8302 void *argp1 = 0 ;
8303 int res1 = 0 ;
8304 wxPoint temp2 ;
8305 wxSize temp3 ;
8306
8307 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8308 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8309 if (!SWIG_IsOK(res1)) {
8310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8311 }
8312 if (!argp1) {
8313 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8314 }
8315 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8316 {
8317 arg2 = &temp2;
8318 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
8319 }
8320 {
8321 arg3 = &temp3;
8322 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
8323 }
8324 {
8325 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
8326 if (PyErr_Occurred()) SWIG_fail;
8327 }
8328 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8329 return resultobj;
8330fail:
8331 return NULL;
8332}
8333
8334
8335SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
8336 int argc;
8337 PyObject *argv[4];
8338
8339 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
8340 --argc;
8341 if (argc == 1) {
8342 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
8343 }
8344 if (argc == 2) {
8345 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8346 }
8347 if (argc == 3) {
8348 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8349 }
8350
8351fail:
8352 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8353 return NULL;
8354}
8355
8356
8357SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8358 PyObject *resultobj = 0;
8359 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8360 void *argp1 = 0 ;
8361 int res1 = 0 ;
8362 PyObject *swig_obj[1] ;
8363
8364 if (!args) SWIG_fail;
8365 swig_obj[0] = args;
8366 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8367 if (!SWIG_IsOK(res1)) {
8368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8369 }
8370 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8371 {
8372 delete arg1;
8373
8374 if (PyErr_Occurred()) SWIG_fail;
8375 }
8376 resultobj = SWIG_Py_Void();
8377 return resultobj;
8378fail:
8379 return NULL;
8380}
8381
8382
8383SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8384 PyObject *resultobj = 0;
8385 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8386 wxAlphaPixelData_Accessor result;
8387 void *argp1 = 0 ;
8388 int res1 = 0 ;
8389 PyObject *swig_obj[1] ;
8390
8391 if (!args) SWIG_fail;
8392 swig_obj[0] = args;
8393 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8394 if (!SWIG_IsOK(res1)) {
8395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8396 }
8397 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8398 {
8399 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8400 if (PyErr_Occurred()) SWIG_fail;
8401 }
8402 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8403 return resultobj;
8404fail:
8405 return NULL;
8406}
8407
8408
8409SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8410 PyObject *resultobj = 0;
8411 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8412 void *argp1 = 0 ;
8413 int res1 = 0 ;
8414 PyObject *swig_obj[1] ;
8415
8416 if (!args) SWIG_fail;
8417 swig_obj[0] = args;
8418 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8419 if (!SWIG_IsOK(res1)) {
8420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8421 }
8422 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8423 {
8424 (arg1)->UseAlpha();
8425 if (PyErr_Occurred()) SWIG_fail;
8426 }
8427 resultobj = SWIG_Py_Void();
8428 return resultobj;
8429fail:
8430 return NULL;
8431}
8432
8433
8434SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8435 PyObject *resultobj = 0;
8436 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8437 bool result;
8438 void *argp1 = 0 ;
8439 int res1 = 0 ;
8440 PyObject *swig_obj[1] ;
8441
8442 if (!args) SWIG_fail;
8443 swig_obj[0] = args;
8444 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8445 if (!SWIG_IsOK(res1)) {
8446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8447 }
8448 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8449 {
8450 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8451 if (PyErr_Occurred()) SWIG_fail;
8452 }
8453 {
8454 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8455 }
8456 return resultobj;
8457fail:
8458 return NULL;
8459}
8460
8461
8462SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8463 PyObject *obj;
8464 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8465 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8466 return SWIG_Py_Void();
8467}
8468
8469SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8470 return SWIG_Python_InitShadowInstance(args);
8471}
8472
8473SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8474 PyObject *resultobj = 0;
8475 wxAlphaPixelData *arg1 = 0 ;
8476 wxAlphaPixelData_Accessor *result = 0 ;
8477 void *argp1 = 0 ;
8478 int res1 = 0 ;
8479
8480 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8481 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8482 if (!SWIG_IsOK(res1)) {
8483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8484 }
8485 if (!argp1) {
8486 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8487 }
8488 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8489 {
8490 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8491 if (PyErr_Occurred()) SWIG_fail;
8492 }
8493 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8494 return resultobj;
8495fail:
8496 return NULL;
8497}
8498
8499
8500SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8501 PyObject *resultobj = 0;
8502 wxBitmap *arg1 = 0 ;
8503 wxAlphaPixelData *arg2 = 0 ;
8504 wxAlphaPixelData_Accessor *result = 0 ;
8505 void *argp1 = 0 ;
8506 int res1 = 0 ;
8507 void *argp2 = 0 ;
8508 int res2 = 0 ;
8509
8510 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8512 if (!SWIG_IsOK(res1)) {
8513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8514 }
8515 if (!argp1) {
8516 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8517 }
8518 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8519 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8520 if (!SWIG_IsOK(res2)) {
8521 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8522 }
8523 if (!argp2) {
8524 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8525 }
8526 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8527 {
8528 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8529 if (PyErr_Occurred()) SWIG_fail;
8530 }
8531 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8532 return resultobj;
8533fail:
8534 return NULL;
8535}
8536
8537
8538SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8539 PyObject *resultobj = 0;
8540 wxAlphaPixelData_Accessor *result = 0 ;
8541
8542 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8543 {
8544 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8545 if (PyErr_Occurred()) SWIG_fail;
8546 }
8547 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8548 return resultobj;
8549fail:
8550 return NULL;
8551}
8552
8553
8554SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8555 int argc;
8556 PyObject *argv[3];
8557
8558 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8559 --argc;
8560 if (argc == 0) {
8561 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8562 }
8563 if (argc == 1) {
8564 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8565 }
8566 if (argc == 2) {
8567 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8568 }
8569
8570fail:
8571 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8572 return NULL;
8573}
8574
8575
8576SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8577 PyObject *resultobj = 0;
8578 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8579 void *argp1 = 0 ;
8580 int res1 = 0 ;
8581 PyObject *swig_obj[1] ;
8582
8583 if (!args) SWIG_fail;
8584 swig_obj[0] = args;
8585 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8586 if (!SWIG_IsOK(res1)) {
8587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8588 }
8589 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8590 {
8591 delete arg1;
8592
8593 if (PyErr_Occurred()) SWIG_fail;
8594 }
8595 resultobj = SWIG_Py_Void();
8596 return resultobj;
8597fail:
8598 return NULL;
8599}
8600
8601
8602SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8603 PyObject *resultobj = 0;
8604 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8605 wxAlphaPixelData *arg2 = 0 ;
8606 void *argp1 = 0 ;
8607 int res1 = 0 ;
8608 void *argp2 = 0 ;
8609 int res2 = 0 ;
8610 PyObject * obj0 = 0 ;
8611 PyObject * obj1 = 0 ;
8612 char * kwnames[] = {
8613 (char *) "self",(char *) "data", NULL
8614 };
8615
8616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8618 if (!SWIG_IsOK(res1)) {
8619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8620 }
8621 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8622 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8623 if (!SWIG_IsOK(res2)) {
8624 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8625 }
8626 if (!argp2) {
8627 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8628 }
8629 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8630 {
8631 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8632 if (PyErr_Occurred()) SWIG_fail;
8633 }
8634 resultobj = SWIG_Py_Void();
8635 return resultobj;
8636fail:
8637 return NULL;
8638}
8639
8640
8641SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8642 PyObject *resultobj = 0;
8643 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8644 bool result;
8645 void *argp1 = 0 ;
8646 int res1 = 0 ;
8647 PyObject *swig_obj[1] ;
8648
8649 if (!args) SWIG_fail;
8650 swig_obj[0] = args;
8651 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8652 if (!SWIG_IsOK(res1)) {
8653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8654 }
8655 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8656 {
8657 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8658 if (PyErr_Occurred()) SWIG_fail;
8659 }
8660 {
8661 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8662 }
8663 return resultobj;
8664fail:
8665 return NULL;
8666}
8667
8668
8669SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8670 PyObject *resultobj = 0;
8671 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8672 void *argp1 = 0 ;
8673 int res1 = 0 ;
8674 PyObject *swig_obj[1] ;
8675
8676 if (!args) SWIG_fail;
8677 swig_obj[0] = args;
8678 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8679 if (!SWIG_IsOK(res1)) {
8680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8681 }
8682 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8683 {
8684 wxAlphaPixelData_Accessor_nextPixel(arg1);
8685 if (PyErr_Occurred()) SWIG_fail;
8686 }
8687 resultobj = SWIG_Py_Void();
8688 return resultobj;
8689fail:
8690 return NULL;
8691}
8692
8693
8694SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8695 PyObject *resultobj = 0;
8696 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8697 wxAlphaPixelData *arg2 = 0 ;
8698 int arg3 ;
8699 int arg4 ;
8700 void *argp1 = 0 ;
8701 int res1 = 0 ;
8702 void *argp2 = 0 ;
8703 int res2 = 0 ;
8704 int val3 ;
8705 int ecode3 = 0 ;
8706 int val4 ;
8707 int ecode4 = 0 ;
8708 PyObject * obj0 = 0 ;
8709 PyObject * obj1 = 0 ;
8710 PyObject * obj2 = 0 ;
8711 PyObject * obj3 = 0 ;
8712 char * kwnames[] = {
8713 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8714 };
8715
8716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8718 if (!SWIG_IsOK(res1)) {
8719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8720 }
8721 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8722 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8723 if (!SWIG_IsOK(res2)) {
8724 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8725 }
8726 if (!argp2) {
8727 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8728 }
8729 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8730 ecode3 = SWIG_AsVal_int(obj2, &val3);
8731 if (!SWIG_IsOK(ecode3)) {
8732 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8733 }
8734 arg3 = static_cast< int >(val3);
8735 ecode4 = SWIG_AsVal_int(obj3, &val4);
8736 if (!SWIG_IsOK(ecode4)) {
8737 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8738 }
8739 arg4 = static_cast< int >(val4);
8740 {
8741 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8742 if (PyErr_Occurred()) SWIG_fail;
8743 }
8744 resultobj = SWIG_Py_Void();
8745 return resultobj;
8746fail:
8747 return NULL;
8748}
8749
8750
8751SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8752 PyObject *resultobj = 0;
8753 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8754 wxAlphaPixelData *arg2 = 0 ;
8755 int arg3 ;
8756 void *argp1 = 0 ;
8757 int res1 = 0 ;
8758 void *argp2 = 0 ;
8759 int res2 = 0 ;
8760 int val3 ;
8761 int ecode3 = 0 ;
8762 PyObject * obj0 = 0 ;
8763 PyObject * obj1 = 0 ;
8764 PyObject * obj2 = 0 ;
8765 char * kwnames[] = {
8766 (char *) "self",(char *) "data",(char *) "x", NULL
8767 };
8768
8769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8771 if (!SWIG_IsOK(res1)) {
8772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8773 }
8774 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8775 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8776 if (!SWIG_IsOK(res2)) {
8777 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8778 }
8779 if (!argp2) {
8780 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8781 }
8782 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8783 ecode3 = SWIG_AsVal_int(obj2, &val3);
8784 if (!SWIG_IsOK(ecode3)) {
8785 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8786 }
8787 arg3 = static_cast< int >(val3);
8788 {
8789 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8790 if (PyErr_Occurred()) SWIG_fail;
8791 }
8792 resultobj = SWIG_Py_Void();
8793 return resultobj;
8794fail:
8795 return NULL;
8796}
8797
8798
8799SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8800 PyObject *resultobj = 0;
8801 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8802 wxAlphaPixelData *arg2 = 0 ;
8803 int arg3 ;
8804 void *argp1 = 0 ;
8805 int res1 = 0 ;
8806 void *argp2 = 0 ;
8807 int res2 = 0 ;
8808 int val3 ;
8809 int ecode3 = 0 ;
8810 PyObject * obj0 = 0 ;
8811 PyObject * obj1 = 0 ;
8812 PyObject * obj2 = 0 ;
8813 char * kwnames[] = {
8814 (char *) "self",(char *) "data",(char *) "y", NULL
8815 };
8816
8817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8818 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8819 if (!SWIG_IsOK(res1)) {
8820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8821 }
8822 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8823 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8824 if (!SWIG_IsOK(res2)) {
8825 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8826 }
8827 if (!argp2) {
8828 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8829 }
8830 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8831 ecode3 = SWIG_AsVal_int(obj2, &val3);
8832 if (!SWIG_IsOK(ecode3)) {
8833 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8834 }
8835 arg3 = static_cast< int >(val3);
8836 {
8837 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8838 if (PyErr_Occurred()) SWIG_fail;
8839 }
8840 resultobj = SWIG_Py_Void();
8841 return resultobj;
8842fail:
8843 return NULL;
8844}
8845
8846
8847SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8848 PyObject *resultobj = 0;
8849 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8850 wxAlphaPixelData *arg2 = 0 ;
8851 int arg3 ;
8852 int arg4 ;
8853 void *argp1 = 0 ;
8854 int res1 = 0 ;
8855 void *argp2 = 0 ;
8856 int res2 = 0 ;
8857 int val3 ;
8858 int ecode3 = 0 ;
8859 int val4 ;
8860 int ecode4 = 0 ;
8861 PyObject * obj0 = 0 ;
8862 PyObject * obj1 = 0 ;
8863 PyObject * obj2 = 0 ;
8864 PyObject * obj3 = 0 ;
8865 char * kwnames[] = {
8866 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8867 };
8868
8869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8871 if (!SWIG_IsOK(res1)) {
8872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8873 }
8874 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8875 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8876 if (!SWIG_IsOK(res2)) {
8877 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8878 }
8879 if (!argp2) {
8880 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8881 }
8882 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8883 ecode3 = SWIG_AsVal_int(obj2, &val3);
8884 if (!SWIG_IsOK(ecode3)) {
8885 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8886 }
8887 arg3 = static_cast< int >(val3);
8888 ecode4 = SWIG_AsVal_int(obj3, &val4);
8889 if (!SWIG_IsOK(ecode4)) {
8890 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8891 }
8892 arg4 = static_cast< int >(val4);
8893 {
8894 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8895 if (PyErr_Occurred()) SWIG_fail;
8896 }
8897 resultobj = SWIG_Py_Void();
8898 return resultobj;
8899fail:
8900 return NULL;
8901}
8902
8903
8904SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8905 PyObject *resultobj = 0;
8906 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8907 byte arg2 ;
8908 byte arg3 ;
8909 byte arg4 ;
8910 byte arg5 ;
8911 void *argp1 = 0 ;
8912 int res1 = 0 ;
8913 unsigned char val2 ;
8914 int ecode2 = 0 ;
8915 unsigned char val3 ;
8916 int ecode3 = 0 ;
8917 unsigned char val4 ;
8918 int ecode4 = 0 ;
8919 unsigned char val5 ;
8920 int ecode5 = 0 ;
8921 PyObject * obj0 = 0 ;
8922 PyObject * obj1 = 0 ;
8923 PyObject * obj2 = 0 ;
8924 PyObject * obj3 = 0 ;
8925 PyObject * obj4 = 0 ;
8926 char * kwnames[] = {
8927 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8928 };
8929
8930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8932 if (!SWIG_IsOK(res1)) {
8933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8934 }
8935 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8936 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8937 if (!SWIG_IsOK(ecode2)) {
8938 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8939 }
8940 arg2 = static_cast< byte >(val2);
8941 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8942 if (!SWIG_IsOK(ecode3)) {
8943 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8944 }
8945 arg3 = static_cast< byte >(val3);
8946 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8947 if (!SWIG_IsOK(ecode4)) {
8948 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8949 }
8950 arg4 = static_cast< byte >(val4);
8951 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8952 if (!SWIG_IsOK(ecode5)) {
8953 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8954 }
8955 arg5 = static_cast< byte >(val5);
8956 {
8957 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8958 if (PyErr_Occurred()) SWIG_fail;
1bd55598 8959 }
fc46b7f3 8960 resultobj = SWIG_Py_Void();
1bd55598
RD
8961 return resultobj;
8962fail:
8963 return NULL;
8964}
8965
8966
fc46b7f3 8967SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 8968 PyObject *resultobj = 0;
fc46b7f3
RD
8969 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8970 PyObject *result = 0 ;
1bd55598
RD
8971 void *argp1 = 0 ;
8972 int res1 = 0 ;
fc46b7f3 8973 PyObject *swig_obj[1] ;
1bd55598 8974
fc46b7f3
RD
8975 if (!args) SWIG_fail;
8976 swig_obj[0] = args;
8977 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
1bd55598 8978 if (!SWIG_IsOK(res1)) {
fc46b7f3 8979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
1bd55598 8980 }
fc46b7f3 8981 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
1bd55598 8982 {
fc46b7f3 8983 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
1bd55598
RD
8984 if (PyErr_Occurred()) SWIG_fail;
8985 }
fc46b7f3 8986 resultobj = result;
1bd55598
RD
8987 return resultobj;
8988fail:
8989 return NULL;
d55e5bfc
RD
8990}
8991
8992
fc46b7f3 8993SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
8994 PyObject *obj;
8995 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 8996 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
1bd55598 8997 return SWIG_Py_Void();
d55e5bfc
RD
8998}
8999
fc46b7f3 9000SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 9001 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
9002}
9003
1bd55598
RD
9004SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9005 PyObject *resultobj = 0;
9006 wxBitmap *arg1 = 0 ;
9007 wxColour const &arg2_defvalue = wxNullColour ;
9008 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
9009 wxMask *result = 0 ;
9010 void *argp1 = 0 ;
9011 int res1 = 0 ;
9012 wxColour temp2 ;
9013 PyObject * obj0 = 0 ;
9014 PyObject * obj1 = 0 ;
9015 char * kwnames[] = {
9016 (char *) "bitmap",(char *) "colour", NULL
9017 };
9018
9019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
9020 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9021 if (!SWIG_IsOK(res1)) {
9022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9023 }
9024 if (!argp1) {
9025 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9026 }
9027 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9028 if (obj1) {
d55e5bfc 9029 {
1bd55598
RD
9030 arg2 = &temp2;
9031 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 9032 }
1bd55598
RD
9033 }
9034 {
9035 if (!wxPyCheckForApp()) SWIG_fail;
9036 PyThreadState* __tstate = wxPyBeginAllowThreads();
9037 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
9038 wxPyEndAllowThreads(__tstate);
9039 if (PyErr_Occurred()) SWIG_fail;
9040 }
9041 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
9042 return resultobj;
9043fail:
9044 return NULL;
d55e5bfc
RD
9045}
9046
9047
1bd55598
RD
9048SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9049 PyObject *resultobj = 0;
9050 wxMask *arg1 = (wxMask *) 0 ;
9051 void *argp1 = 0 ;
9052 int res1 = 0 ;
9053 PyObject *swig_obj[1] ;
9054
9055 if (!args) SWIG_fail;
9056 swig_obj[0] = args;
9057 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
9058 if (!SWIG_IsOK(res1)) {
9059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
9060 }
9061 arg1 = reinterpret_cast< wxMask * >(argp1);
9062 {
1bd55598 9063 delete arg1;
d55e5bfc 9064
1bd55598
RD
9065 if (PyErr_Occurred()) SWIG_fail;
9066 }
9067 resultobj = SWIG_Py_Void();
9068 return resultobj;
9069fail:
9070 return NULL;
9071}
9072
9073
9074SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9075 PyObject *obj;
9076 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9077 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
9078 return SWIG_Py_Void();
9079}
9080
9081SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9082 return SWIG_Python_InitShadowInstance(args);
9083}
9084
9085SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9086 PyObject *resultobj = 0;
9087 wxString *arg1 = 0 ;
9088 wxBitmapType arg2 ;
9089 int arg3 = (int) -1 ;
9090 int arg4 = (int) -1 ;
9091 wxIcon *result = 0 ;
9092 bool temp1 = false ;
9093 int val2 ;
9094 int ecode2 = 0 ;
9095 int val3 ;
9096 int ecode3 = 0 ;
9097 int val4 ;
9098 int ecode4 = 0 ;
9099 PyObject * obj0 = 0 ;
9100 PyObject * obj1 = 0 ;
9101 PyObject * obj2 = 0 ;
9102 PyObject * obj3 = 0 ;
9103 char * kwnames[] = {
9104 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
9105 };
9106
9107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9108 {
9109 arg1 = wxString_in_helper(obj0);
9110 if (arg1 == NULL) SWIG_fail;
9111 temp1 = true;
9112 }
9113 ecode2 = SWIG_AsVal_int(obj1, &val2);
9114 if (!SWIG_IsOK(ecode2)) {
9115 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
9116 }
9117 arg2 = static_cast< wxBitmapType >(val2);
9118 if (obj2) {
9119 ecode3 = SWIG_AsVal_int(obj2, &val3);
9120 if (!SWIG_IsOK(ecode3)) {
9121 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
9122 }
9123 arg3 = static_cast< int >(val3);
9124 }
9125 if (obj3) {
9126 ecode4 = SWIG_AsVal_int(obj3, &val4);
9127 if (!SWIG_IsOK(ecode4)) {
9128 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
9129 }
9130 arg4 = static_cast< int >(val4);
9131 }
9132 {
9133 if (!wxPyCheckForApp()) SWIG_fail;
9134 PyThreadState* __tstate = wxPyBeginAllowThreads();
9135 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
9136 wxPyEndAllowThreads(__tstate);
9137 if (PyErr_Occurred()) SWIG_fail;
9138 }
9139 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
9140 {
9141 if (temp1)
9142 delete arg1;
9143 }
9144 return resultobj;
9145fail:
9146 {
9147 if (temp1)
9148 delete arg1;
9149 }
9150 return NULL;
d55e5bfc
RD
9151}
9152
9153
1bd55598
RD
9154SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9155 PyObject *resultobj = 0;
9156 wxIcon *arg1 = (wxIcon *) 0 ;
9157 void *argp1 = 0 ;
9158 int res1 = 0 ;
9159 PyObject *swig_obj[1] ;
9160
9161 if (!args) SWIG_fail;
9162 swig_obj[0] = args;
9163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
9164 if (!SWIG_IsOK(res1)) {
9165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
9166 }
9167 arg1 = reinterpret_cast< wxIcon * >(argp1);
9168 {
9169 PyThreadState* __tstate = wxPyBeginAllowThreads();
9170 delete arg1;
d55e5bfc 9171
1bd55598
RD
9172 wxPyEndAllowThreads(__tstate);
9173 if (PyErr_Occurred()) SWIG_fail;
9174 }
9175 resultobj = SWIG_Py_Void();
9176 return resultobj;
9177fail:
9178 return NULL;
d55e5bfc
RD
9179}
9180
9181
1bd55598
RD
9182SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9183 PyObject *resultobj = 0;
9184 wxIcon *result = 0 ;
9185
9186 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
9187 {
9188 if (!wxPyCheckForApp()) SWIG_fail;
9189 PyThreadState* __tstate = wxPyBeginAllowThreads();
9190 result = (wxIcon *)new wxIcon();
9191 wxPyEndAllowThreads(__tstate);
9192 if (PyErr_Occurred()) SWIG_fail;
9193 }
9194 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9195 return resultobj;
9196fail:
9197 return NULL;
9198}
9199
9200
9201SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9202 PyObject *resultobj = 0;
9203 wxIconLocation *arg1 = 0 ;
9204 wxIcon *result = 0 ;
9205 void *argp1 = 0 ;
9206 int res1 = 0 ;
9207 PyObject * obj0 = 0 ;
9208 char * kwnames[] = {
9209 (char *) "loc", NULL
9210 };
9211
9212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
9213 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
9214 if (!SWIG_IsOK(res1)) {
9215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9216 }
9217 if (!argp1) {
9218 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9219 }
9220 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9221 {
9222 if (!wxPyCheckForApp()) SWIG_fail;
9223 PyThreadState* __tstate = wxPyBeginAllowThreads();
9224 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
9225 wxPyEndAllowThreads(__tstate);
9226 if (PyErr_Occurred()) SWIG_fail;
9227 }
9228 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9229 return resultobj;
9230fail:
9231 return NULL;
9232}
9233
9234
9235SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9236 PyObject *resultobj = 0;
9237 wxBitmap *arg1 = 0 ;
9238 wxIcon *result = 0 ;
9239 void *argp1 = 0 ;
9240 int res1 = 0 ;
9241 PyObject * obj0 = 0 ;
9242 char * kwnames[] = {
9243 (char *) "bmp", NULL
9244 };
9245
9246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
9247 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9248 if (!SWIG_IsOK(res1)) {
9249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9250 }
9251 if (!argp1) {
9252 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9253 }
9254 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9255 {
9256 if (!wxPyCheckForApp()) SWIG_fail;
9257 PyThreadState* __tstate = wxPyBeginAllowThreads();
9258 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
9259 wxPyEndAllowThreads(__tstate);
9260 if (PyErr_Occurred()) SWIG_fail;
9261 }
9262 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9263 return resultobj;
9264fail:
9265 return NULL;
d55e5bfc
RD
9266}
9267
9268
1bd55598
RD
9269SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9270 PyObject *resultobj = 0;
9271 PyObject *arg1 = (PyObject *) 0 ;
9272 wxIcon *result = 0 ;
9273 PyObject * obj0 = 0 ;
9274 char * kwnames[] = {
9275 (char *) "listOfStrings", NULL
9276 };
9277
9278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
9279 arg1 = obj0;
9280 {
9281 if (!wxPyCheckForApp()) SWIG_fail;
9282 PyThreadState* __tstate = wxPyBeginAllowThreads();
9283 result = (wxIcon *)new_wxIcon(arg1);
9284 wxPyEndAllowThreads(__tstate);
9285 if (PyErr_Occurred()) SWIG_fail;
9286 }
9287 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9288 return resultobj;
9289fail:
9290 return NULL;
d55e5bfc
RD
9291}
9292
9293
b39fe951 9294SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
9295 PyObject *resultobj = 0;
9296 wxIcon *arg1 = (wxIcon *) 0 ;
9297 bool result;
9298 void *argp1 = 0 ;
9299 int res1 = 0 ;
9300 PyObject *swig_obj[1] ;
9301
9302 if (!args) SWIG_fail;
9303 swig_obj[0] = args;
9304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9305 if (!SWIG_IsOK(res1)) {
b39fe951 9306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
1bd55598
RD
9307 }
9308 arg1 = reinterpret_cast< wxIcon * >(argp1);
9309 {
9310 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 9311 result = (bool)(arg1)->IsOk();
1bd55598
RD
9312 wxPyEndAllowThreads(__tstate);
9313 if (PyErr_Occurred()) SWIG_fail;
9314 }
9315 {
9316 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9317 }
9318 return resultobj;
9319fail:
9320 return NULL;
d55e5bfc
RD
9321}
9322
9323
1bd55598
RD
9324SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9325 PyObject *resultobj = 0;
9326 wxIcon *arg1 = (wxIcon *) 0 ;
9327 int result;
9328 void *argp1 = 0 ;
9329 int res1 = 0 ;
9330 PyObject *swig_obj[1] ;
9331
9332 if (!args) SWIG_fail;
9333 swig_obj[0] = args;
9334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9335 if (!SWIG_IsOK(res1)) {
9336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9337 }
9338 arg1 = reinterpret_cast< wxIcon * >(argp1);
9339 {
9340 PyThreadState* __tstate = wxPyBeginAllowThreads();
9341 result = (int)(arg1)->GetWidth();
9342 wxPyEndAllowThreads(__tstate);
9343 if (PyErr_Occurred()) SWIG_fail;
9344 }
9345 resultobj = SWIG_From_int(static_cast< int >(result));
9346 return resultobj;
9347fail:
9348 return NULL;
d55e5bfc
RD
9349}
9350
9351
1bd55598
RD
9352SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9353 PyObject *resultobj = 0;
9354 wxIcon *arg1 = (wxIcon *) 0 ;
9355 int result;
9356 void *argp1 = 0 ;
9357 int res1 = 0 ;
9358 PyObject *swig_obj[1] ;
9359
9360 if (!args) SWIG_fail;
9361 swig_obj[0] = args;
9362 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9363 if (!SWIG_IsOK(res1)) {
9364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9365 }
9366 arg1 = reinterpret_cast< wxIcon * >(argp1);
9367 {
9368 PyThreadState* __tstate = wxPyBeginAllowThreads();
9369 result = (int)(arg1)->GetHeight();
9370 wxPyEndAllowThreads(__tstate);
9371 if (PyErr_Occurred()) SWIG_fail;
9372 }
9373 resultobj = SWIG_From_int(static_cast< int >(result));
9374 return resultobj;
9375fail:
9376 return NULL;
d55e5bfc
RD
9377}
9378
9379
1bd55598
RD
9380SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9381 PyObject *resultobj = 0;
9382 wxIcon *arg1 = (wxIcon *) 0 ;
9383 int result;
9384 void *argp1 = 0 ;
9385 int res1 = 0 ;
9386 PyObject *swig_obj[1] ;
9387
9388 if (!args) SWIG_fail;
9389 swig_obj[0] = args;
9390 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9391 if (!SWIG_IsOK(res1)) {
9392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9393 }
9394 arg1 = reinterpret_cast< wxIcon * >(argp1);
9395 {
9396 PyThreadState* __tstate = wxPyBeginAllowThreads();
9397 result = (int)(arg1)->GetDepth();
9398 wxPyEndAllowThreads(__tstate);
9399 if (PyErr_Occurred()) SWIG_fail;
9400 }
9401 resultobj = SWIG_From_int(static_cast< int >(result));
9402 return resultobj;
9403fail:
9404 return NULL;
9405}
9406
9407
9408SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9409 PyObject *resultobj = 0;
9410 wxIcon *arg1 = (wxIcon *) 0 ;
9411 int arg2 ;
9412 void *argp1 = 0 ;
9413 int res1 = 0 ;
9414 int val2 ;
9415 int ecode2 = 0 ;
9416 PyObject * obj0 = 0 ;
9417 PyObject * obj1 = 0 ;
9418 char * kwnames[] = {
9419 (char *) "self",(char *) "w", NULL
9420 };
9421
9422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9424 if (!SWIG_IsOK(res1)) {
9425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9426 }
9427 arg1 = reinterpret_cast< wxIcon * >(argp1);
9428 ecode2 = SWIG_AsVal_int(obj1, &val2);
9429 if (!SWIG_IsOK(ecode2)) {
9430 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9431 }
9432 arg2 = static_cast< int >(val2);
9433 {
9434 PyThreadState* __tstate = wxPyBeginAllowThreads();
9435 (arg1)->SetWidth(arg2);
9436 wxPyEndAllowThreads(__tstate);
9437 if (PyErr_Occurred()) SWIG_fail;
9438 }
9439 resultobj = SWIG_Py_Void();
9440 return resultobj;
9441fail:
9442 return NULL;
9443}
9444
9445
9446SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9447 PyObject *resultobj = 0;
9448 wxIcon *arg1 = (wxIcon *) 0 ;
9449 int arg2 ;
9450 void *argp1 = 0 ;
9451 int res1 = 0 ;
9452 int val2 ;
9453 int ecode2 = 0 ;
9454 PyObject * obj0 = 0 ;
9455 PyObject * obj1 = 0 ;
9456 char * kwnames[] = {
9457 (char *) "self",(char *) "h", NULL
9458 };
9459
9460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9462 if (!SWIG_IsOK(res1)) {
9463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9464 }
9465 arg1 = reinterpret_cast< wxIcon * >(argp1);
9466 ecode2 = SWIG_AsVal_int(obj1, &val2);
9467 if (!SWIG_IsOK(ecode2)) {
9468 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9469 }
9470 arg2 = static_cast< int >(val2);
9471 {
9472 PyThreadState* __tstate = wxPyBeginAllowThreads();
9473 (arg1)->SetHeight(arg2);
9474 wxPyEndAllowThreads(__tstate);
9475 if (PyErr_Occurred()) SWIG_fail;
9476 }
9477 resultobj = SWIG_Py_Void();
9478 return resultobj;
9479fail:
9480 return NULL;
9481}
9482
9483
9484SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9485 PyObject *resultobj = 0;
9486 wxIcon *arg1 = (wxIcon *) 0 ;
9487 int arg2 ;
9488 void *argp1 = 0 ;
9489 int res1 = 0 ;
9490 int val2 ;
9491 int ecode2 = 0 ;
9492 PyObject * obj0 = 0 ;
9493 PyObject * obj1 = 0 ;
9494 char * kwnames[] = {
9495 (char *) "self",(char *) "d", NULL
9496 };
9497
9498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9500 if (!SWIG_IsOK(res1)) {
9501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9502 }
9503 arg1 = reinterpret_cast< wxIcon * >(argp1);
9504 ecode2 = SWIG_AsVal_int(obj1, &val2);
9505 if (!SWIG_IsOK(ecode2)) {
9506 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9507 }
9508 arg2 = static_cast< int >(val2);
9509 {
9510 PyThreadState* __tstate = wxPyBeginAllowThreads();
9511 (arg1)->SetDepth(arg2);
9512 wxPyEndAllowThreads(__tstate);
9513 if (PyErr_Occurred()) SWIG_fail;
9514 }
9515 resultobj = SWIG_Py_Void();
9516 return resultobj;
9517fail:
9518 return NULL;
9519}
9520
9521
9522SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9523 PyObject *resultobj = 0;
9524 wxIcon *arg1 = (wxIcon *) 0 ;
9525 wxBitmap *arg2 = 0 ;
9526 void *argp1 = 0 ;
9527 int res1 = 0 ;
9528 void *argp2 = 0 ;
9529 int res2 = 0 ;
9530 PyObject * obj0 = 0 ;
9531 PyObject * obj1 = 0 ;
9532 char * kwnames[] = {
9533 (char *) "self",(char *) "bmp", NULL
9534 };
9535
9536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9538 if (!SWIG_IsOK(res1)) {
9539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9540 }
9541 arg1 = reinterpret_cast< wxIcon * >(argp1);
9542 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9543 if (!SWIG_IsOK(res2)) {
9544 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9545 }
9546 if (!argp2) {
9547 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9548 }
9549 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9550 {
9551 PyThreadState* __tstate = wxPyBeginAllowThreads();
9552 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9553 wxPyEndAllowThreads(__tstate);
9554 if (PyErr_Occurred()) SWIG_fail;
9555 }
9556 resultobj = SWIG_Py_Void();
9557 return resultobj;
9558fail:
9559 return NULL;
d55e5bfc
RD
9560}
9561
9562
1bd55598
RD
9563SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9564 PyObject *obj;
9565 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9566 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9567 return SWIG_Py_Void();
d55e5bfc
RD
9568}
9569
1bd55598
RD
9570SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9571 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
9572}
9573
1bd55598
RD
9574SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9575 PyObject *resultobj = 0;
9576 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9577 int arg2 = (int) 0 ;
9578 wxIconLocation *result = 0 ;
9579 bool temp1 = false ;
9580 int val2 ;
9581 int ecode2 = 0 ;
9582 PyObject * obj0 = 0 ;
9583 PyObject * obj1 = 0 ;
9584 char * kwnames[] = {
9585 (char *) "filename",(char *) "num", NULL
9586 };
9587
9588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9589 if (obj0) {
d55e5bfc 9590 {
1bd55598
RD
9591 arg1 = wxString_in_helper(obj0);
9592 if (arg1 == NULL) SWIG_fail;
9593 temp1 = true;
d55e5bfc 9594 }
1bd55598
RD
9595 }
9596 if (obj1) {
9597 ecode2 = SWIG_AsVal_int(obj1, &val2);
9598 if (!SWIG_IsOK(ecode2)) {
9599 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9600 }
9601 arg2 = static_cast< int >(val2);
9602 }
9603 {
9604 PyThreadState* __tstate = wxPyBeginAllowThreads();
9605 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9606 wxPyEndAllowThreads(__tstate);
9607 if (PyErr_Occurred()) SWIG_fail;
9608 }
9609 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9610 {
9611 if (temp1)
9612 delete arg1;
9613 }
9614 return resultobj;
9615fail:
9616 {
9617 if (temp1)
9618 delete arg1;
9619 }
9620 return NULL;
d55e5bfc
RD
9621}
9622
9623
1bd55598
RD
9624SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9625 PyObject *resultobj = 0;
9626 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9627 void *argp1 = 0 ;
9628 int res1 = 0 ;
9629 PyObject *swig_obj[1] ;
9630
9631 if (!args) SWIG_fail;
9632 swig_obj[0] = args;
9633 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9634 if (!SWIG_IsOK(res1)) {
9635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9636 }
9637 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9638 {
9639 PyThreadState* __tstate = wxPyBeginAllowThreads();
9640 delete arg1;
d55e5bfc 9641
1bd55598
RD
9642 wxPyEndAllowThreads(__tstate);
9643 if (PyErr_Occurred()) SWIG_fail;
9644 }
9645 resultobj = SWIG_Py_Void();
9646 return resultobj;
9647fail:
9648 return NULL;
d55e5bfc
RD
9649}
9650
9651
1bd55598
RD
9652SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9653 PyObject *resultobj = 0;
9654 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9655 bool result;
9656 void *argp1 = 0 ;
9657 int res1 = 0 ;
9658 PyObject *swig_obj[1] ;
9659
9660 if (!args) SWIG_fail;
9661 swig_obj[0] = args;
9662 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9663 if (!SWIG_IsOK(res1)) {
9664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9665 }
9666 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9667 {
9668 PyThreadState* __tstate = wxPyBeginAllowThreads();
9669 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9670 wxPyEndAllowThreads(__tstate);
9671 if (PyErr_Occurred()) SWIG_fail;
9672 }
9673 {
9674 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9675 }
9676 return resultobj;
9677fail:
9678 return NULL;
9679}
9680
9681
9682SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9683 PyObject *resultobj = 0;
9684 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9685 wxString *arg2 = 0 ;
9686 void *argp1 = 0 ;
9687 int res1 = 0 ;
9688 bool temp2 = false ;
9689 PyObject * obj0 = 0 ;
9690 PyObject * obj1 = 0 ;
9691 char * kwnames[] = {
9692 (char *) "self",(char *) "filename", NULL
9693 };
9694
9695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9697 if (!SWIG_IsOK(res1)) {
9698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9699 }
9700 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9701 {
9702 arg2 = wxString_in_helper(obj1);
9703 if (arg2 == NULL) SWIG_fail;
9704 temp2 = true;
9705 }
9706 {
9707 PyThreadState* __tstate = wxPyBeginAllowThreads();
9708 (arg1)->SetFileName((wxString const &)*arg2);
9709 wxPyEndAllowThreads(__tstate);
9710 if (PyErr_Occurred()) SWIG_fail;
9711 }
9712 resultobj = SWIG_Py_Void();
9713 {
9714 if (temp2)
9715 delete arg2;
9716 }
9717 return resultobj;
9718fail:
9719 {
9720 if (temp2)
9721 delete arg2;
9722 }
9723 return NULL;
d55e5bfc
RD
9724}
9725
9726
1bd55598
RD
9727SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9728 PyObject *resultobj = 0;
9729 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9730 wxString *result = 0 ;
9731 void *argp1 = 0 ;
9732 int res1 = 0 ;
9733 PyObject *swig_obj[1] ;
9734
9735 if (!args) SWIG_fail;
9736 swig_obj[0] = args;
9737 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9738 if (!SWIG_IsOK(res1)) {
9739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9740 }
9741 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9742 {
9743 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 9744 {
1bd55598
RD
9745 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9746 result = (wxString *) &_result_ref;
d55e5bfc 9747 }
1bd55598
RD
9748 wxPyEndAllowThreads(__tstate);
9749 if (PyErr_Occurred()) SWIG_fail;
9750 }
9751 {
9752#if wxUSE_UNICODE
9753 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9754#else
9755 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9756#endif
9757 }
9758 return resultobj;
9759fail:
9760 return NULL;
9761}
9762
9763
9764SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9765 PyObject *resultobj = 0;
9766 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9767 int arg2 ;
9768 void *argp1 = 0 ;
9769 int res1 = 0 ;
9770 int val2 ;
9771 int ecode2 = 0 ;
9772 PyObject * obj0 = 0 ;
9773 PyObject * obj1 = 0 ;
9774 char * kwnames[] = {
9775 (char *) "self",(char *) "num", NULL
9776 };
9777
9778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9780 if (!SWIG_IsOK(res1)) {
9781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9782 }
9783 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9784 ecode2 = SWIG_AsVal_int(obj1, &val2);
9785 if (!SWIG_IsOK(ecode2)) {
9786 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9787 }
9788 arg2 = static_cast< int >(val2);
9789 {
9790 PyThreadState* __tstate = wxPyBeginAllowThreads();
9791 wxIconLocation_SetIndex(arg1,arg2);
9792 wxPyEndAllowThreads(__tstate);
9793 if (PyErr_Occurred()) SWIG_fail;
9794 }
9795 resultobj = SWIG_Py_Void();
9796 return resultobj;
9797fail:
9798 return NULL;
d55e5bfc
RD
9799}
9800
9801
1bd55598
RD
9802SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9803 PyObject *resultobj = 0;
9804 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9805 int result;
9806 void *argp1 = 0 ;
9807 int res1 = 0 ;
9808 PyObject *swig_obj[1] ;
9809
9810 if (!args) SWIG_fail;
9811 swig_obj[0] = args;
9812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9813 if (!SWIG_IsOK(res1)) {
9814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9815 }
9816 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9817 {
9818 PyThreadState* __tstate = wxPyBeginAllowThreads();
9819 result = (int)wxIconLocation_GetIndex(arg1);
9820 wxPyEndAllowThreads(__tstate);
9821 if (PyErr_Occurred()) SWIG_fail;
9822 }
9823 resultobj = SWIG_From_int(static_cast< int >(result));
9824 return resultobj;
9825fail:
9826 return NULL;
d55e5bfc
RD
9827}
9828
9829
1bd55598
RD
9830SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9831 PyObject *obj;
9832 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9833 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9834 return SWIG_Py_Void();
d55e5bfc
RD
9835}
9836
1bd55598
RD
9837SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9838 return SWIG_Python_InitShadowInstance(args);
9839}
d55e5bfc 9840
1bd55598
RD
9841SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9842 PyObject *resultobj = 0;
9843 wxIconBundle *result = 0 ;
9844
9845 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9846 {
9847 PyThreadState* __tstate = wxPyBeginAllowThreads();
9848 result = (wxIconBundle *)new wxIconBundle();
9849 wxPyEndAllowThreads(__tstate);
9850 if (PyErr_Occurred()) SWIG_fail;
9851 }
9852 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9853 return resultobj;
9854fail:
9855 return NULL;
9856}
9857
9858
9859SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9860 PyObject *resultobj = 0;
9861 wxString *arg1 = 0 ;
9862 long arg2 ;
9863 wxIconBundle *result = 0 ;
9864 bool temp1 = false ;
9865 long val2 ;
9866 int ecode2 = 0 ;
9867 PyObject * obj0 = 0 ;
9868 PyObject * obj1 = 0 ;
9869 char * kwnames[] = {
9870 (char *) "file",(char *) "type", NULL
9871 };
9872
9873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9874 {
9875 arg1 = wxString_in_helper(obj0);
9876 if (arg1 == NULL) SWIG_fail;
9877 temp1 = true;
9878 }
9879 ecode2 = SWIG_AsVal_long(obj1, &val2);
9880 if (!SWIG_IsOK(ecode2)) {
9881 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9882 }
9883 arg2 = static_cast< long >(val2);
9884 {
9885 PyThreadState* __tstate = wxPyBeginAllowThreads();
9886 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9887 wxPyEndAllowThreads(__tstate);
9888 if (PyErr_Occurred()) SWIG_fail;
9889 }
9890 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9891 {
9892 if (temp1)
9893 delete arg1;
9894 }
9895 return resultobj;
9896fail:
9897 {
9898 if (temp1)
9899 delete arg1;
9900 }
9901 return NULL;
d55e5bfc
RD
9902}
9903
9904
1bd55598
RD
9905SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9906 PyObject *resultobj = 0;
9907 wxIcon *arg1 = 0 ;
9908 wxIconBundle *result = 0 ;
9909 void *argp1 = 0 ;
9910 int res1 = 0 ;
9911 PyObject * obj0 = 0 ;
9912 char * kwnames[] = {
9913 (char *) "icon", NULL
9914 };
9915
9916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9917 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9918 if (!SWIG_IsOK(res1)) {
9919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9920 }
9921 if (!argp1) {
9922 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9923 }
9924 arg1 = reinterpret_cast< wxIcon * >(argp1);
9925 {
9926 PyThreadState* __tstate = wxPyBeginAllowThreads();
9927 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9928 wxPyEndAllowThreads(__tstate);
9929 if (PyErr_Occurred()) SWIG_fail;
9930 }
9931 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9932 return resultobj;
9933fail:
9934 return NULL;
d55e5bfc
RD
9935}
9936
9937
1bd55598
RD
9938SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9939 PyObject *resultobj = 0;
9940 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9941 void *argp1 = 0 ;
9942 int res1 = 0 ;
9943 PyObject *swig_obj[1] ;
9944
9945 if (!args) SWIG_fail;
9946 swig_obj[0] = args;
9947 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9948 if (!SWIG_IsOK(res1)) {
9949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9950 }
9951 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9952 {
9953 PyThreadState* __tstate = wxPyBeginAllowThreads();
9954 delete arg1;
d55e5bfc 9955
1bd55598
RD
9956 wxPyEndAllowThreads(__tstate);
9957 if (PyErr_Occurred()) SWIG_fail;
9958 }
9959 resultobj = SWIG_Py_Void();
9960 return resultobj;
9961fail:
9962 return NULL;
9963}
9964
9965
9966SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9967 PyObject *resultobj = 0;
9968 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9969 wxIcon *arg2 = 0 ;
9970 void *argp1 = 0 ;
9971 int res1 = 0 ;
9972 void *argp2 = 0 ;
9973 int res2 = 0 ;
9974 PyObject * obj0 = 0 ;
9975 PyObject * obj1 = 0 ;
9976 char * kwnames[] = {
9977 (char *) "self",(char *) "icon", NULL
9978 };
9979
9980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9982 if (!SWIG_IsOK(res1)) {
9983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9984 }
9985 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9986 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9987 if (!SWIG_IsOK(res2)) {
9988 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9989 }
9990 if (!argp2) {
9991 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9992 }
9993 arg2 = reinterpret_cast< wxIcon * >(argp2);
9994 {
9995 PyThreadState* __tstate = wxPyBeginAllowThreads();
9996 (arg1)->AddIcon((wxIcon const &)*arg2);
9997 wxPyEndAllowThreads(__tstate);
9998 if (PyErr_Occurred()) SWIG_fail;
9999 }
10000 resultobj = SWIG_Py_Void();
10001 return resultobj;
10002fail:
10003 return NULL;
10004}
10005
10006
10007SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10008 PyObject *resultobj = 0;
10009 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10010 wxString *arg2 = 0 ;
10011 long arg3 ;
10012 void *argp1 = 0 ;
10013 int res1 = 0 ;
10014 bool temp2 = false ;
10015 long val3 ;
10016 int ecode3 = 0 ;
10017 PyObject * obj0 = 0 ;
10018 PyObject * obj1 = 0 ;
10019 PyObject * obj2 = 0 ;
10020 char * kwnames[] = {
10021 (char *) "self",(char *) "file",(char *) "type", NULL
10022 };
10023
10024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10026 if (!SWIG_IsOK(res1)) {
10027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
10028 }
10029 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10030 {
10031 arg2 = wxString_in_helper(obj1);
10032 if (arg2 == NULL) SWIG_fail;
10033 temp2 = true;
10034 }
10035 ecode3 = SWIG_AsVal_long(obj2, &val3);
10036 if (!SWIG_IsOK(ecode3)) {
10037 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
10038 }
10039 arg3 = static_cast< long >(val3);
10040 {
10041 PyThreadState* __tstate = wxPyBeginAllowThreads();
10042 (arg1)->AddIcon((wxString const &)*arg2,arg3);
10043 wxPyEndAllowThreads(__tstate);
10044 if (PyErr_Occurred()) SWIG_fail;
10045 }
10046 resultobj = SWIG_Py_Void();
10047 {
10048 if (temp2)
10049 delete arg2;
10050 }
10051 return resultobj;
10052fail:
10053 {
10054 if (temp2)
10055 delete arg2;
10056 }
10057 return NULL;
10058}
10059
10060
10061SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10062 PyObject *resultobj = 0;
10063 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10064 wxSize *arg2 = 0 ;
10065 wxIcon *result = 0 ;
10066 void *argp1 = 0 ;
10067 int res1 = 0 ;
10068 wxSize temp2 ;
10069 PyObject * obj0 = 0 ;
10070 PyObject * obj1 = 0 ;
10071 char * kwnames[] = {
10072 (char *) "self",(char *) "size", NULL
10073 };
10074
10075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10077 if (!SWIG_IsOK(res1)) {
10078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10079 }
10080 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10081 {
10082 arg2 = &temp2;
10083 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10084 }
10085 {
10086 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 10087 {
1bd55598
RD
10088 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
10089 result = (wxIcon *) &_result_ref;
d55e5bfc 10090 }
1bd55598
RD
10091 wxPyEndAllowThreads(__tstate);
10092 if (PyErr_Occurred()) SWIG_fail;
10093 }
10094 {
10095 wxIcon* resultptr = new wxIcon(*result);
10096 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
10097 }
10098 return resultobj;
10099fail:
10100 return NULL;
10101}
10102
10103
10104SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10105 PyObject *obj;
10106 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10107 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
10108 return SWIG_Py_Void();
10109}
10110
10111SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10112 return SWIG_Python_InitShadowInstance(args);
10113}
10114
10115SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10116 PyObject *resultobj = 0;
10117 wxString *arg1 = 0 ;
10118 long arg2 ;
10119 int arg3 = (int) 0 ;
10120 int arg4 = (int) 0 ;
10121 wxCursor *result = 0 ;
10122 bool temp1 = false ;
10123 long val2 ;
10124 int ecode2 = 0 ;
10125 int val3 ;
10126 int ecode3 = 0 ;
10127 int val4 ;
10128 int ecode4 = 0 ;
10129 PyObject * obj0 = 0 ;
10130 PyObject * obj1 = 0 ;
10131 PyObject * obj2 = 0 ;
10132 PyObject * obj3 = 0 ;
10133 char * kwnames[] = {
10134 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
10135 };
10136
10137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10138 {
10139 arg1 = wxString_in_helper(obj0);
10140 if (arg1 == NULL) SWIG_fail;
10141 temp1 = true;
10142 }
10143 ecode2 = SWIG_AsVal_long(obj1, &val2);
10144 if (!SWIG_IsOK(ecode2)) {
10145 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
10146 }
10147 arg2 = static_cast< long >(val2);
10148 if (obj2) {
10149 ecode3 = SWIG_AsVal_int(obj2, &val3);
10150 if (!SWIG_IsOK(ecode3)) {
10151 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
10152 }
10153 arg3 = static_cast< int >(val3);
10154 }
10155 if (obj3) {
10156 ecode4 = SWIG_AsVal_int(obj3, &val4);
10157 if (!SWIG_IsOK(ecode4)) {
10158 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
10159 }
10160 arg4 = static_cast< int >(val4);
10161 }
10162 {
10163 if (!wxPyCheckForApp()) SWIG_fail;
10164 PyThreadState* __tstate = wxPyBeginAllowThreads();
10165 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
10166 wxPyEndAllowThreads(__tstate);
10167 if (PyErr_Occurred()) SWIG_fail;
10168 }
10169 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
10170 {
10171 if (temp1)
10172 delete arg1;
10173 }
10174 return resultobj;
10175fail:
10176 {
10177 if (temp1)
10178 delete arg1;
10179 }
10180 return NULL;
d55e5bfc
RD
10181}
10182
10183
1bd55598
RD
10184SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10185 PyObject *resultobj = 0;
10186 wxCursor *arg1 = (wxCursor *) 0 ;
10187 void *argp1 = 0 ;
10188 int res1 = 0 ;
10189 PyObject *swig_obj[1] ;
10190
10191 if (!args) SWIG_fail;
10192 swig_obj[0] = args;
10193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10194 if (!SWIG_IsOK(res1)) {
10195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10196 }
10197 arg1 = reinterpret_cast< wxCursor * >(argp1);
10198 {
10199 PyThreadState* __tstate = wxPyBeginAllowThreads();
10200 delete arg1;
d55e5bfc 10201
1bd55598
RD
10202 wxPyEndAllowThreads(__tstate);
10203 if (PyErr_Occurred()) SWIG_fail;
10204 }
10205 resultobj = SWIG_Py_Void();
10206 return resultobj;
10207fail:
10208 return NULL;
10209}
10210
10211
10212SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10213 PyObject *resultobj = 0;
10214 int arg1 ;
10215 wxCursor *result = 0 ;
10216 int val1 ;
10217 int ecode1 = 0 ;
10218 PyObject * obj0 = 0 ;
10219 char * kwnames[] = {
10220 (char *) "id", NULL
10221 };
10222
10223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10224 ecode1 = SWIG_AsVal_int(obj0, &val1);
10225 if (!SWIG_IsOK(ecode1)) {
10226 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10227 }
10228 arg1 = static_cast< int >(val1);
10229 {
10230 if (!wxPyCheckForApp()) SWIG_fail;
10231 PyThreadState* __tstate = wxPyBeginAllowThreads();
10232 result = (wxCursor *)new wxCursor(arg1);
10233 wxPyEndAllowThreads(__tstate);
10234 if (PyErr_Occurred()) SWIG_fail;
10235 }
10236 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10237 return resultobj;
10238fail:
10239 return NULL;
10240}
10241
10242
10243SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10244 PyObject *resultobj = 0;
10245 wxImage *arg1 = 0 ;
10246 wxCursor *result = 0 ;
10247 void *argp1 = 0 ;
10248 int res1 = 0 ;
10249 PyObject * obj0 = 0 ;
10250 char * kwnames[] = {
10251 (char *) "image", NULL
10252 };
10253
10254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10255 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10256 if (!SWIG_IsOK(res1)) {
10257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10258 }
10259 if (!argp1) {
10260 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10261 }
10262 arg1 = reinterpret_cast< wxImage * >(argp1);
10263 {
10264 if (!wxPyCheckForApp()) SWIG_fail;
10265 PyThreadState* __tstate = wxPyBeginAllowThreads();
10266 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10267 wxPyEndAllowThreads(__tstate);
10268 if (PyErr_Occurred()) SWIG_fail;
10269 }
10270 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10271 return resultobj;
10272fail:
10273 return NULL;
d55e5bfc
RD
10274}
10275
10276
b39fe951 10277SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
10278 PyObject *resultobj = 0;
10279 wxCursor *arg1 = (wxCursor *) 0 ;
10280 bool result;
10281 void *argp1 = 0 ;
10282 int res1 = 0 ;
10283 PyObject *swig_obj[1] ;
10284
10285 if (!args) SWIG_fail;
10286 swig_obj[0] = args;
10287 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10288 if (!SWIG_IsOK(res1)) {
b39fe951 10289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
1bd55598
RD
10290 }
10291 arg1 = reinterpret_cast< wxCursor * >(argp1);
10292 {
10293 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 10294 result = (bool)(arg1)->IsOk();
1bd55598
RD
10295 wxPyEndAllowThreads(__tstate);
10296 if (PyErr_Occurred()) SWIG_fail;
10297 }
10298 {
10299 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10300 }
10301 return resultobj;
10302fail:
10303 return NULL;
10304}
10305
10306
10307SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10308 PyObject *obj;
10309 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10310 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10311 return SWIG_Py_Void();
10312}
10313
10314SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10315 return SWIG_Python_InitShadowInstance(args);
10316}
10317
10318SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10319 PyObject *resultobj = 0;
10320 int arg1 = (int) 0 ;
10321 int arg2 = (int) 0 ;
10322 int arg3 = (int) 0 ;
10323 int arg4 = (int) 0 ;
10324 wxRegion *result = 0 ;
10325 int val1 ;
10326 int ecode1 = 0 ;
10327 int val2 ;
10328 int ecode2 = 0 ;
10329 int val3 ;
10330 int ecode3 = 0 ;
10331 int val4 ;
10332 int ecode4 = 0 ;
10333 PyObject * obj0 = 0 ;
10334 PyObject * obj1 = 0 ;
10335 PyObject * obj2 = 0 ;
10336 PyObject * obj3 = 0 ;
10337 char * kwnames[] = {
10338 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10339 };
10340
10341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10342 if (obj0) {
10343 ecode1 = SWIG_AsVal_int(obj0, &val1);
10344 if (!SWIG_IsOK(ecode1)) {
10345 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10346 }
10347 arg1 = static_cast< int >(val1);
10348 }
10349 if (obj1) {
10350 ecode2 = SWIG_AsVal_int(obj1, &val2);
10351 if (!SWIG_IsOK(ecode2)) {
10352 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10353 }
10354 arg2 = static_cast< int >(val2);
10355 }
10356 if (obj2) {
10357 ecode3 = SWIG_AsVal_int(obj2, &val3);
10358 if (!SWIG_IsOK(ecode3)) {
10359 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10360 }
10361 arg3 = static_cast< int >(val3);
10362 }
10363 if (obj3) {
10364 ecode4 = SWIG_AsVal_int(obj3, &val4);
10365 if (!SWIG_IsOK(ecode4)) {
10366 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10367 }
10368 arg4 = static_cast< int >(val4);
10369 }
10370 {
10371 if (!wxPyCheckForApp()) SWIG_fail;
10372 PyThreadState* __tstate = wxPyBeginAllowThreads();
10373 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10374 wxPyEndAllowThreads(__tstate);
10375 if (PyErr_Occurred()) SWIG_fail;
10376 }
10377 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10378 return resultobj;
10379fail:
10380 return NULL;
10381}
10382
10383
10384SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10385 PyObject *resultobj = 0;
10386 wxBitmap *arg1 = 0 ;
10387 wxRegion *result = 0 ;
10388 void *argp1 = 0 ;
10389 int res1 = 0 ;
10390 PyObject * obj0 = 0 ;
10391 char * kwnames[] = {
10392 (char *) "bmp", NULL
10393 };
10394
10395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10396 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10397 if (!SWIG_IsOK(res1)) {
10398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10399 }
10400 if (!argp1) {
10401 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10402 }
10403 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10404 {
10405 if (!wxPyCheckForApp()) SWIG_fail;
10406 PyThreadState* __tstate = wxPyBeginAllowThreads();
10407 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10408 wxPyEndAllowThreads(__tstate);
10409 if (PyErr_Occurred()) SWIG_fail;
10410 }
10411 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10412 return resultobj;
10413fail:
10414 return NULL;
10415}
10416
10417
10418SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10419 PyObject *resultobj = 0;
10420 wxBitmap *arg1 = 0 ;
10421 wxColour *arg2 = 0 ;
10422 int arg3 = (int) 0 ;
10423 wxRegion *result = 0 ;
10424 void *argp1 = 0 ;
10425 int res1 = 0 ;
10426 wxColour temp2 ;
10427 int val3 ;
10428 int ecode3 = 0 ;
10429 PyObject * obj0 = 0 ;
10430 PyObject * obj1 = 0 ;
10431 PyObject * obj2 = 0 ;
10432 char * kwnames[] = {
10433 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10434 };
10435
10436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10437 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10438 if (!SWIG_IsOK(res1)) {
10439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10440 }
10441 if (!argp1) {
10442 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10443 }
10444 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10445 {
10446 arg2 = &temp2;
10447 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10448 }
10449 if (obj2) {
10450 ecode3 = SWIG_AsVal_int(obj2, &val3);
10451 if (!SWIG_IsOK(ecode3)) {
10452 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10453 }
10454 arg3 = static_cast< int >(val3);
10455 }
10456 {
10457 if (!wxPyCheckForApp()) SWIG_fail;
10458 PyThreadState* __tstate = wxPyBeginAllowThreads();
10459 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10460 wxPyEndAllowThreads(__tstate);
10461 if (PyErr_Occurred()) SWIG_fail;
10462 }
10463 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10464 return resultobj;
10465fail:
10466 return NULL;
10467}
10468
10469
10470SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10471 PyObject *resultobj = 0;
10472 int arg1 ;
10473 wxPoint *arg2 = (wxPoint *) 0 ;
10474 int arg3 = (int) wxWINDING_RULE ;
10475 wxRegion *result = 0 ;
10476 int val3 ;
10477 int ecode3 = 0 ;
10478 PyObject * obj0 = 0 ;
10479 PyObject * obj1 = 0 ;
10480 char * kwnames[] = {
10481 (char *) "points",(char *) "fillStyle", NULL
10482 };
10483
10484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10485 {
10486 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10487 if (arg2 == NULL) SWIG_fail;
10488 }
10489 if (obj1) {
10490 ecode3 = SWIG_AsVal_int(obj1, &val3);
10491 if (!SWIG_IsOK(ecode3)) {
10492 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10493 }
10494 arg3 = static_cast< int >(val3);
10495 }
10496 {
10497 if (!wxPyCheckForApp()) SWIG_fail;
10498 PyThreadState* __tstate = wxPyBeginAllowThreads();
10499 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10500 wxPyEndAllowThreads(__tstate);
10501 if (PyErr_Occurred()) SWIG_fail;
10502 }
10503 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10504 {
10505 if (arg2) delete [] arg2;
10506 }
10507 return resultobj;
10508fail:
10509 {
10510 if (arg2) delete [] arg2;
10511 }
10512 return NULL;
d55e5bfc
RD
10513}
10514
10515
1bd55598
RD
10516SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10517 PyObject *resultobj = 0;
10518 wxRegion *arg1 = (wxRegion *) 0 ;
10519 void *argp1 = 0 ;
10520 int res1 = 0 ;
10521 PyObject *swig_obj[1] ;
10522
10523 if (!args) SWIG_fail;
10524 swig_obj[0] = args;
10525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10526 if (!SWIG_IsOK(res1)) {
10527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10528 }
10529 arg1 = reinterpret_cast< wxRegion * >(argp1);
10530 {
10531 PyThreadState* __tstate = wxPyBeginAllowThreads();
10532 delete arg1;
d55e5bfc 10533
1bd55598
RD
10534 wxPyEndAllowThreads(__tstate);
10535 if (PyErr_Occurred()) SWIG_fail;
10536 }
10537 resultobj = SWIG_Py_Void();
10538 return resultobj;
10539fail:
10540 return NULL;
d55e5bfc
RD
10541}
10542
10543
1bd55598
RD
10544SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10545 PyObject *resultobj = 0;
10546 wxRegion *arg1 = (wxRegion *) 0 ;
10547 void *argp1 = 0 ;
10548 int res1 = 0 ;
10549 PyObject *swig_obj[1] ;
10550
10551 if (!args) SWIG_fail;
10552 swig_obj[0] = args;
10553 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10554 if (!SWIG_IsOK(res1)) {
10555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10556 }
10557 arg1 = reinterpret_cast< wxRegion * >(argp1);
10558 {
10559 PyThreadState* __tstate = wxPyBeginAllowThreads();
10560 (arg1)->Clear();
10561 wxPyEndAllowThreads(__tstate);
10562 if (PyErr_Occurred()) SWIG_fail;
10563 }
10564 resultobj = SWIG_Py_Void();
10565 return resultobj;
10566fail:
10567 return NULL;
10568}
10569
10570
10571SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10572 PyObject *resultobj = 0;
10573 wxRegion *arg1 = (wxRegion *) 0 ;
10574 int arg2 ;
10575 int arg3 ;
10576 bool result;
10577 void *argp1 = 0 ;
10578 int res1 = 0 ;
10579 int val2 ;
10580 int ecode2 = 0 ;
10581 int val3 ;
10582 int ecode3 = 0 ;
10583 PyObject * obj0 = 0 ;
10584 PyObject * obj1 = 0 ;
10585 PyObject * obj2 = 0 ;
10586 char * kwnames[] = {
10587 (char *) "self",(char *) "x",(char *) "y", NULL
10588 };
10589
10590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10592 if (!SWIG_IsOK(res1)) {
10593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10594 }
10595 arg1 = reinterpret_cast< wxRegion * >(argp1);
10596 ecode2 = SWIG_AsVal_int(obj1, &val2);
10597 if (!SWIG_IsOK(ecode2)) {
10598 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10599 }
10600 arg2 = static_cast< int >(val2);
10601 ecode3 = SWIG_AsVal_int(obj2, &val3);
10602 if (!SWIG_IsOK(ecode3)) {
10603 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10604 }
10605 arg3 = static_cast< int >(val3);
10606 {
10607 PyThreadState* __tstate = wxPyBeginAllowThreads();
10608 result = (bool)(arg1)->Offset(arg2,arg3);
10609 wxPyEndAllowThreads(__tstate);
10610 if (PyErr_Occurred()) SWIG_fail;
10611 }
10612 {
10613 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10614 }
10615 return resultobj;
10616fail:
10617 return NULL;
10618}
10619
10620
10621SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10622 PyObject *resultobj = 0;
10623 wxRegion *arg1 = (wxRegion *) 0 ;
10624 int arg2 ;
10625 int arg3 ;
10626 wxRegionContain result;
10627 void *argp1 = 0 ;
10628 int res1 = 0 ;
10629 int val2 ;
10630 int ecode2 = 0 ;
10631 int val3 ;
10632 int ecode3 = 0 ;
10633 PyObject * obj0 = 0 ;
10634 PyObject * obj1 = 0 ;
10635 PyObject * obj2 = 0 ;
10636 char * kwnames[] = {
10637 (char *) "self",(char *) "x",(char *) "y", NULL
10638 };
10639
10640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10642 if (!SWIG_IsOK(res1)) {
10643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10644 }
10645 arg1 = reinterpret_cast< wxRegion * >(argp1);
10646 ecode2 = SWIG_AsVal_int(obj1, &val2);
10647 if (!SWIG_IsOK(ecode2)) {
10648 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10649 }
10650 arg2 = static_cast< int >(val2);
10651 ecode3 = SWIG_AsVal_int(obj2, &val3);
10652 if (!SWIG_IsOK(ecode3)) {
10653 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10654 }
10655 arg3 = static_cast< int >(val3);
10656 {
10657 PyThreadState* __tstate = wxPyBeginAllowThreads();
10658 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10659 wxPyEndAllowThreads(__tstate);
10660 if (PyErr_Occurred()) SWIG_fail;
10661 }
10662 resultobj = SWIG_From_int(static_cast< int >(result));
10663 return resultobj;
10664fail:
10665 return NULL;
10666}
10667
10668
10669SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10670 PyObject *resultobj = 0;
10671 wxRegion *arg1 = (wxRegion *) 0 ;
10672 wxPoint *arg2 = 0 ;
10673 wxRegionContain result;
10674 void *argp1 = 0 ;
10675 int res1 = 0 ;
10676 wxPoint temp2 ;
10677 PyObject * obj0 = 0 ;
10678 PyObject * obj1 = 0 ;
10679 char * kwnames[] = {
10680 (char *) "self",(char *) "pt", NULL
10681 };
10682
10683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10685 if (!SWIG_IsOK(res1)) {
10686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10687 }
10688 arg1 = reinterpret_cast< wxRegion * >(argp1);
10689 {
10690 arg2 = &temp2;
10691 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10692 }
10693 {
10694 PyThreadState* __tstate = wxPyBeginAllowThreads();
10695 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10696 wxPyEndAllowThreads(__tstate);
10697 if (PyErr_Occurred()) SWIG_fail;
10698 }
10699 resultobj = SWIG_From_int(static_cast< int >(result));
10700 return resultobj;
10701fail:
10702 return NULL;
10703}
10704
10705
10706SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10707 PyObject *resultobj = 0;
10708 wxRegion *arg1 = (wxRegion *) 0 ;
10709 wxRect *arg2 = 0 ;
10710 wxRegionContain result;
10711 void *argp1 = 0 ;
10712 int res1 = 0 ;
10713 wxRect temp2 ;
10714 PyObject * obj0 = 0 ;
10715 PyObject * obj1 = 0 ;
10716 char * kwnames[] = {
10717 (char *) "self",(char *) "rect", NULL
10718 };
10719
10720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10722 if (!SWIG_IsOK(res1)) {
10723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10724 }
10725 arg1 = reinterpret_cast< wxRegion * >(argp1);
10726 {
10727 arg2 = &temp2;
10728 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10729 }
10730 {
10731 PyThreadState* __tstate = wxPyBeginAllowThreads();
10732 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10733 wxPyEndAllowThreads(__tstate);
10734 if (PyErr_Occurred()) SWIG_fail;
10735 }
10736 resultobj = SWIG_From_int(static_cast< int >(result));
10737 return resultobj;
10738fail:
10739 return NULL;
10740}
10741
10742
10743SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10744 PyObject *resultobj = 0;
10745 wxRegion *arg1 = (wxRegion *) 0 ;
10746 int arg2 ;
10747 int arg3 ;
10748 int arg4 ;
10749 int arg5 ;
10750 wxRegionContain result;
10751 void *argp1 = 0 ;
10752 int res1 = 0 ;
10753 int val2 ;
10754 int ecode2 = 0 ;
10755 int val3 ;
10756 int ecode3 = 0 ;
10757 int val4 ;
10758 int ecode4 = 0 ;
10759 int val5 ;
10760 int ecode5 = 0 ;
10761 PyObject * obj0 = 0 ;
10762 PyObject * obj1 = 0 ;
10763 PyObject * obj2 = 0 ;
10764 PyObject * obj3 = 0 ;
10765 PyObject * obj4 = 0 ;
10766 char * kwnames[] = {
10767 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10768 };
10769
10770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10772 if (!SWIG_IsOK(res1)) {
10773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10774 }
10775 arg1 = reinterpret_cast< wxRegion * >(argp1);
10776 ecode2 = SWIG_AsVal_int(obj1, &val2);
10777 if (!SWIG_IsOK(ecode2)) {
10778 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10779 }
10780 arg2 = static_cast< int >(val2);
10781 ecode3 = SWIG_AsVal_int(obj2, &val3);
10782 if (!SWIG_IsOK(ecode3)) {
10783 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10784 }
10785 arg3 = static_cast< int >(val3);
10786 ecode4 = SWIG_AsVal_int(obj3, &val4);
10787 if (!SWIG_IsOK(ecode4)) {
10788 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10789 }
10790 arg4 = static_cast< int >(val4);
10791 ecode5 = SWIG_AsVal_int(obj4, &val5);
10792 if (!SWIG_IsOK(ecode5)) {
10793 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10794 }
10795 arg5 = static_cast< int >(val5);
10796 {
10797 PyThreadState* __tstate = wxPyBeginAllowThreads();
10798 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10799 wxPyEndAllowThreads(__tstate);
10800 if (PyErr_Occurred()) SWIG_fail;
10801 }
10802 resultobj = SWIG_From_int(static_cast< int >(result));
10803 return resultobj;
10804fail:
10805 return NULL;
d55e5bfc
RD
10806}
10807
10808
1bd55598
RD
10809SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10810 PyObject *resultobj = 0;
10811 wxRegion *arg1 = (wxRegion *) 0 ;
10812 wxRect result;
10813 void *argp1 = 0 ;
10814 int res1 = 0 ;
10815 PyObject *swig_obj[1] ;
10816
10817 if (!args) SWIG_fail;
10818 swig_obj[0] = args;
10819 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10820 if (!SWIG_IsOK(res1)) {
10821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10822 }
10823 arg1 = reinterpret_cast< wxRegion * >(argp1);
10824 {
10825 PyThreadState* __tstate = wxPyBeginAllowThreads();
10826 result = (arg1)->GetBox();
10827 wxPyEndAllowThreads(__tstate);
10828 if (PyErr_Occurred()) SWIG_fail;
10829 }
10830 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10831 return resultobj;
10832fail:
10833 return NULL;
10834}
10835
10836
10837SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10838 PyObject *resultobj = 0;
10839 wxRegion *arg1 = (wxRegion *) 0 ;
10840 int arg2 ;
10841 int arg3 ;
10842 int arg4 ;
10843 int arg5 ;
10844 bool result;
10845 void *argp1 = 0 ;
10846 int res1 = 0 ;
10847 int val2 ;
10848 int ecode2 = 0 ;
10849 int val3 ;
10850 int ecode3 = 0 ;
10851 int val4 ;
10852 int ecode4 = 0 ;
10853 int val5 ;
10854 int ecode5 = 0 ;
10855 PyObject * obj0 = 0 ;
10856 PyObject * obj1 = 0 ;
10857 PyObject * obj2 = 0 ;
10858 PyObject * obj3 = 0 ;
10859 PyObject * obj4 = 0 ;
10860 char * kwnames[] = {
10861 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10862 };
10863
10864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10866 if (!SWIG_IsOK(res1)) {
10867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
10868 }
10869 arg1 = reinterpret_cast< wxRegion * >(argp1);
10870 ecode2 = SWIG_AsVal_int(obj1, &val2);
10871 if (!SWIG_IsOK(ecode2)) {
10872 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
10873 }
10874 arg2 = static_cast< int >(val2);
10875 ecode3 = SWIG_AsVal_int(obj2, &val3);
10876 if (!SWIG_IsOK(ecode3)) {
10877 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
10878 }
10879 arg3 = static_cast< int >(val3);
10880 ecode4 = SWIG_AsVal_int(obj3, &val4);
10881 if (!SWIG_IsOK(ecode4)) {
10882 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
10883 }
10884 arg4 = static_cast< int >(val4);
10885 ecode5 = SWIG_AsVal_int(obj4, &val5);
10886 if (!SWIG_IsOK(ecode5)) {
10887 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
10888 }
10889 arg5 = static_cast< int >(val5);
10890 {
10891 PyThreadState* __tstate = wxPyBeginAllowThreads();
10892 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
10893 wxPyEndAllowThreads(__tstate);
10894 if (PyErr_Occurred()) SWIG_fail;
10895 }
10896 {
10897 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10898 }
10899 return resultobj;
10900fail:
10901 return NULL;
10902}
10903
10904
10905SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10906 PyObject *resultobj = 0;
10907 wxRegion *arg1 = (wxRegion *) 0 ;
10908 wxRect *arg2 = 0 ;
10909 bool result;
10910 void *argp1 = 0 ;
10911 int res1 = 0 ;
10912 wxRect temp2 ;
10913 PyObject * obj0 = 0 ;
10914 PyObject * obj1 = 0 ;
10915 char * kwnames[] = {
10916 (char *) "self",(char *) "rect", NULL
10917 };
10918
10919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
10920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10921 if (!SWIG_IsOK(res1)) {
10922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10923 }
10924 arg1 = reinterpret_cast< wxRegion * >(argp1);
10925 {
10926 arg2 = &temp2;
10927 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10928 }
10929 {
10930 PyThreadState* __tstate = wxPyBeginAllowThreads();
10931 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
10932 wxPyEndAllowThreads(__tstate);
10933 if (PyErr_Occurred()) SWIG_fail;
10934 }
10935 {
10936 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10937 }
10938 return resultobj;
10939fail:
10940 return NULL;
10941}
10942
10943
10944SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10945 PyObject *resultobj = 0;
10946 wxRegion *arg1 = (wxRegion *) 0 ;
10947 wxRegion *arg2 = 0 ;
10948 bool result;
10949 void *argp1 = 0 ;
10950 int res1 = 0 ;
10951 void *argp2 = 0 ;
10952 int res2 = 0 ;
10953 PyObject * obj0 = 0 ;
10954 PyObject * obj1 = 0 ;
10955 char * kwnames[] = {
10956 (char *) "self",(char *) "region", NULL
10957 };
10958
10959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10961 if (!SWIG_IsOK(res1)) {
10962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10963 }
10964 arg1 = reinterpret_cast< wxRegion * >(argp1);
10965 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10966 if (!SWIG_IsOK(res2)) {
10967 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10968 }
10969 if (!argp2) {
10970 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10971 }
10972 arg2 = reinterpret_cast< wxRegion * >(argp2);
10973 {
10974 PyThreadState* __tstate = wxPyBeginAllowThreads();
10975 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
10976 wxPyEndAllowThreads(__tstate);
10977 if (PyErr_Occurred()) SWIG_fail;
10978 }
10979 {
10980 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10981 }
10982 return resultobj;
10983fail:
10984 return NULL;
d55e5bfc
RD
10985}
10986
10987
1bd55598
RD
10988SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10989 PyObject *resultobj = 0;
10990 wxRegion *arg1 = (wxRegion *) 0 ;
10991 bool result;
10992 void *argp1 = 0 ;
10993 int res1 = 0 ;
10994 PyObject *swig_obj[1] ;
10995
10996 if (!args) SWIG_fail;
10997 swig_obj[0] = args;
10998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10999 if (!SWIG_IsOK(res1)) {
11000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
11001 }
11002 arg1 = reinterpret_cast< wxRegion * >(argp1);
11003 {
11004 PyThreadState* __tstate = wxPyBeginAllowThreads();
11005 result = (bool)(arg1)->IsEmpty();
11006 wxPyEndAllowThreads(__tstate);
11007 if (PyErr_Occurred()) SWIG_fail;
11008 }
11009 {
11010 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11011 }
11012 return resultobj;
11013fail:
11014 return NULL;
11015}
11016
11017
f5263701
RD
11018SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11019 PyObject *resultobj = 0;
11020 wxRegion *arg1 = (wxRegion *) 0 ;
11021 wxRegion *arg2 = 0 ;
11022 bool result;
11023 void *argp1 = 0 ;
11024 int res1 = 0 ;
11025 void *argp2 = 0 ;
11026 int res2 = 0 ;
11027 PyObject * obj0 = 0 ;
11028 PyObject * obj1 = 0 ;
11029 char * kwnames[] = {
11030 (char *) "self",(char *) "region", NULL
11031 };
11032
11033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
11034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11035 if (!SWIG_IsOK(res1)) {
11036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
11037 }
11038 arg1 = reinterpret_cast< wxRegion * >(argp1);
11039 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11040 if (!SWIG_IsOK(res2)) {
11041 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11042 }
11043 if (!argp2) {
11044 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11045 }
11046 arg2 = reinterpret_cast< wxRegion * >(argp2);
11047 {
11048 PyThreadState* __tstate = wxPyBeginAllowThreads();
11049 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
11050 wxPyEndAllowThreads(__tstate);
11051 if (PyErr_Occurred()) SWIG_fail;
11052 }
11053 {
11054 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11055 }
11056 return resultobj;
11057fail:
11058 return NULL;
11059}
11060
11061
1bd55598
RD
11062SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11063 PyObject *resultobj = 0;
11064 wxRegion *arg1 = (wxRegion *) 0 ;
11065 int arg2 ;
11066 int arg3 ;
11067 int arg4 ;
11068 int arg5 ;
11069 bool result;
11070 void *argp1 = 0 ;
11071 int res1 = 0 ;
11072 int val2 ;
11073 int ecode2 = 0 ;
11074 int val3 ;
11075 int ecode3 = 0 ;
11076 int val4 ;
11077 int ecode4 = 0 ;
11078 int val5 ;
11079 int ecode5 = 0 ;
11080 PyObject * obj0 = 0 ;
11081 PyObject * obj1 = 0 ;
11082 PyObject * obj2 = 0 ;
11083 PyObject * obj3 = 0 ;
11084 PyObject * obj4 = 0 ;
11085 char * kwnames[] = {
11086 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11087 };
11088
11089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11091 if (!SWIG_IsOK(res1)) {
11092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11093 }
11094 arg1 = reinterpret_cast< wxRegion * >(argp1);
11095 ecode2 = SWIG_AsVal_int(obj1, &val2);
11096 if (!SWIG_IsOK(ecode2)) {
11097 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11098 }
11099 arg2 = static_cast< int >(val2);
11100 ecode3 = SWIG_AsVal_int(obj2, &val3);
11101 if (!SWIG_IsOK(ecode3)) {
11102 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11103 }
11104 arg3 = static_cast< int >(val3);
11105 ecode4 = SWIG_AsVal_int(obj3, &val4);
11106 if (!SWIG_IsOK(ecode4)) {
11107 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11108 }
11109 arg4 = static_cast< int >(val4);
11110 ecode5 = SWIG_AsVal_int(obj4, &val5);
11111 if (!SWIG_IsOK(ecode5)) {
11112 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11113 }
11114 arg5 = static_cast< int >(val5);
11115 {
11116 PyThreadState* __tstate = wxPyBeginAllowThreads();
11117 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11118 wxPyEndAllowThreads(__tstate);
11119 if (PyErr_Occurred()) SWIG_fail;
11120 }
11121 {
11122 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11123 }
11124 return resultobj;
11125fail:
11126 return NULL;
11127}
11128
11129
11130SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11131 PyObject *resultobj = 0;
11132 wxRegion *arg1 = (wxRegion *) 0 ;
11133 wxRect *arg2 = 0 ;
11134 bool result;
11135 void *argp1 = 0 ;
11136 int res1 = 0 ;
11137 wxRect temp2 ;
11138 PyObject * obj0 = 0 ;
11139 PyObject * obj1 = 0 ;
11140 char * kwnames[] = {
11141 (char *) "self",(char *) "rect", NULL
11142 };
11143
11144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
11145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11146 if (!SWIG_IsOK(res1)) {
11147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11148 }
11149 arg1 = reinterpret_cast< wxRegion * >(argp1);
11150 {
11151 arg2 = &temp2;
11152 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11153 }
11154 {
11155 PyThreadState* __tstate = wxPyBeginAllowThreads();
11156 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11157 wxPyEndAllowThreads(__tstate);
11158 if (PyErr_Occurred()) SWIG_fail;
11159 }
11160 {
11161 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11162 }
11163 return resultobj;
11164fail:
11165 return NULL;
11166}
11167
11168
11169SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11170 PyObject *resultobj = 0;
11171 wxRegion *arg1 = (wxRegion *) 0 ;
11172 wxRegion *arg2 = 0 ;
11173 bool result;
11174 void *argp1 = 0 ;
11175 int res1 = 0 ;
11176 void *argp2 = 0 ;
11177 int res2 = 0 ;
11178 PyObject * obj0 = 0 ;
11179 PyObject * obj1 = 0 ;
11180 char * kwnames[] = {
11181 (char *) "self",(char *) "region", NULL
11182 };
11183
11184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11186 if (!SWIG_IsOK(res1)) {
11187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11188 }
11189 arg1 = reinterpret_cast< wxRegion * >(argp1);
11190 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11191 if (!SWIG_IsOK(res2)) {
11192 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11193 }
11194 if (!argp2) {
11195 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11196 }
11197 arg2 = reinterpret_cast< wxRegion * >(argp2);
11198 {
11199 PyThreadState* __tstate = wxPyBeginAllowThreads();
11200 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11201 wxPyEndAllowThreads(__tstate);
11202 if (PyErr_Occurred()) SWIG_fail;
11203 }
11204 {
11205 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11206 }
11207 return resultobj;
11208fail:
11209 return NULL;
11210}
11211
11212
11213SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11214 PyObject *resultobj = 0;
11215 wxRegion *arg1 = (wxRegion *) 0 ;
11216 int arg2 ;
11217 int arg3 ;
11218 int arg4 ;
11219 int arg5 ;
11220 bool result;
11221 void *argp1 = 0 ;
11222 int res1 = 0 ;
11223 int val2 ;
11224 int ecode2 = 0 ;
11225 int val3 ;
11226 int ecode3 = 0 ;
11227 int val4 ;
11228 int ecode4 = 0 ;
11229 int val5 ;
11230 int ecode5 = 0 ;
11231 PyObject * obj0 = 0 ;
11232 PyObject * obj1 = 0 ;
11233 PyObject * obj2 = 0 ;
11234 PyObject * obj3 = 0 ;
11235 PyObject * obj4 = 0 ;
11236 char * kwnames[] = {
11237 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11238 };
11239
11240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11242 if (!SWIG_IsOK(res1)) {
11243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11244 }
11245 arg1 = reinterpret_cast< wxRegion * >(argp1);
11246 ecode2 = SWIG_AsVal_int(obj1, &val2);
11247 if (!SWIG_IsOK(ecode2)) {
11248 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11249 }
11250 arg2 = static_cast< int >(val2);
11251 ecode3 = SWIG_AsVal_int(obj2, &val3);
11252 if (!SWIG_IsOK(ecode3)) {
11253 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11254 }
11255 arg3 = static_cast< int >(val3);
11256 ecode4 = SWIG_AsVal_int(obj3, &val4);
11257 if (!SWIG_IsOK(ecode4)) {
11258 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11259 }
11260 arg4 = static_cast< int >(val4);
11261 ecode5 = SWIG_AsVal_int(obj4, &val5);
11262 if (!SWIG_IsOK(ecode5)) {
11263 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11264 }
11265 arg5 = static_cast< int >(val5);
11266 {
11267 PyThreadState* __tstate = wxPyBeginAllowThreads();
11268 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11269 wxPyEndAllowThreads(__tstate);
11270 if (PyErr_Occurred()) SWIG_fail;
11271 }
11272 {
11273 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11274 }
11275 return resultobj;
11276fail:
11277 return NULL;
11278}
11279
11280
11281SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11282 PyObject *resultobj = 0;
11283 wxRegion *arg1 = (wxRegion *) 0 ;
11284 wxRect *arg2 = 0 ;
11285 bool result;
11286 void *argp1 = 0 ;
11287 int res1 = 0 ;
11288 wxRect temp2 ;
11289 PyObject * obj0 = 0 ;
11290 PyObject * obj1 = 0 ;
11291 char * kwnames[] = {
11292 (char *) "self",(char *) "rect", NULL
11293 };
11294
11295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
11296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11297 if (!SWIG_IsOK(res1)) {
11298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11299 }
11300 arg1 = reinterpret_cast< wxRegion * >(argp1);
11301 {
11302 arg2 = &temp2;
11303 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11304 }
11305 {
11306 PyThreadState* __tstate = wxPyBeginAllowThreads();
11307 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11308 wxPyEndAllowThreads(__tstate);
11309 if (PyErr_Occurred()) SWIG_fail;
11310 }
11311 {
11312 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11313 }
11314 return resultobj;
11315fail:
11316 return NULL;
11317}
11318
11319
11320SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11321 PyObject *resultobj = 0;
11322 wxRegion *arg1 = (wxRegion *) 0 ;
11323 wxRegion *arg2 = 0 ;
11324 bool result;
11325 void *argp1 = 0 ;
11326 int res1 = 0 ;
11327 void *argp2 = 0 ;
11328 int res2 = 0 ;
11329 PyObject * obj0 = 0 ;
11330 PyObject * obj1 = 0 ;
11331 char * kwnames[] = {
11332 (char *) "self",(char *) "region", NULL
11333 };
11334
11335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11337 if (!SWIG_IsOK(res1)) {
11338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11339 }
11340 arg1 = reinterpret_cast< wxRegion * >(argp1);
11341 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11342 if (!SWIG_IsOK(res2)) {
11343 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11344 }
11345 if (!argp2) {
11346 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11347 }
11348 arg2 = reinterpret_cast< wxRegion * >(argp2);
11349 {
11350 PyThreadState* __tstate = wxPyBeginAllowThreads();
11351 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11352 wxPyEndAllowThreads(__tstate);
11353 if (PyErr_Occurred()) SWIG_fail;
11354 }
11355 {
11356 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11357 }
11358 return resultobj;
11359fail:
11360 return NULL;
11361}
11362
11363
11364SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11365 PyObject *resultobj = 0;
11366 wxRegion *arg1 = (wxRegion *) 0 ;
11367 int arg2 ;
11368 int arg3 ;
11369 int arg4 ;
11370 int arg5 ;
11371 bool result;
11372 void *argp1 = 0 ;
11373 int res1 = 0 ;
11374 int val2 ;
11375 int ecode2 = 0 ;
11376 int val3 ;
11377 int ecode3 = 0 ;
11378 int val4 ;
11379 int ecode4 = 0 ;
11380 int val5 ;
11381 int ecode5 = 0 ;
11382 PyObject * obj0 = 0 ;
11383 PyObject * obj1 = 0 ;
11384 PyObject * obj2 = 0 ;
11385 PyObject * obj3 = 0 ;
11386 PyObject * obj4 = 0 ;
11387 char * kwnames[] = {
11388 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11389 };
11390
11391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11393 if (!SWIG_IsOK(res1)) {
11394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11395 }
11396 arg1 = reinterpret_cast< wxRegion * >(argp1);
11397 ecode2 = SWIG_AsVal_int(obj1, &val2);
11398 if (!SWIG_IsOK(ecode2)) {
11399 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11400 }
11401 arg2 = static_cast< int >(val2);
11402 ecode3 = SWIG_AsVal_int(obj2, &val3);
11403 if (!SWIG_IsOK(ecode3)) {
11404 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11405 }
11406 arg3 = static_cast< int >(val3);
11407 ecode4 = SWIG_AsVal_int(obj3, &val4);
11408 if (!SWIG_IsOK(ecode4)) {
11409 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11410 }
11411 arg4 = static_cast< int >(val4);
11412 ecode5 = SWIG_AsVal_int(obj4, &val5);
11413 if (!SWIG_IsOK(ecode5)) {
11414 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11415 }
11416 arg5 = static_cast< int >(val5);
11417 {
11418 PyThreadState* __tstate = wxPyBeginAllowThreads();
11419 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11420 wxPyEndAllowThreads(__tstate);
11421 if (PyErr_Occurred()) SWIG_fail;
11422 }
11423 {
11424 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11425 }
11426 return resultobj;
11427fail:
11428 return NULL;
11429}
11430
11431
11432SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11433 PyObject *resultobj = 0;
11434 wxRegion *arg1 = (wxRegion *) 0 ;
11435 wxRect *arg2 = 0 ;
11436 bool result;
11437 void *argp1 = 0 ;
11438 int res1 = 0 ;
11439 wxRect temp2 ;
11440 PyObject * obj0 = 0 ;
11441 PyObject * obj1 = 0 ;
11442 char * kwnames[] = {
11443 (char *) "self",(char *) "rect", NULL
11444 };
11445
11446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11448 if (!SWIG_IsOK(res1)) {
11449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11450 }
11451 arg1 = reinterpret_cast< wxRegion * >(argp1);
11452 {
11453 arg2 = &temp2;
11454 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11455 }
11456 {
11457 PyThreadState* __tstate = wxPyBeginAllowThreads();
11458 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11459 wxPyEndAllowThreads(__tstate);
11460 if (PyErr_Occurred()) SWIG_fail;
11461 }
11462 {
11463 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11464 }
11465 return resultobj;
11466fail:
11467 return NULL;
11468}
11469
11470
11471SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11472 PyObject *resultobj = 0;
11473 wxRegion *arg1 = (wxRegion *) 0 ;
11474 wxRegion *arg2 = 0 ;
11475 bool result;
11476 void *argp1 = 0 ;
11477 int res1 = 0 ;
11478 void *argp2 = 0 ;
11479 int res2 = 0 ;
11480 PyObject * obj0 = 0 ;
11481 PyObject * obj1 = 0 ;
11482 char * kwnames[] = {
11483 (char *) "self",(char *) "region", NULL
11484 };
11485
11486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11487 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11488 if (!SWIG_IsOK(res1)) {
11489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11490 }
11491 arg1 = reinterpret_cast< wxRegion * >(argp1);
11492 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11493 if (!SWIG_IsOK(res2)) {
11494 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11495 }
11496 if (!argp2) {
11497 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11498 }
11499 arg2 = reinterpret_cast< wxRegion * >(argp2);
11500 {
11501 PyThreadState* __tstate = wxPyBeginAllowThreads();
11502 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11503 wxPyEndAllowThreads(__tstate);
11504 if (PyErr_Occurred()) SWIG_fail;
11505 }
11506 {
11507 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11508 }
11509 return resultobj;
11510fail:
11511 return NULL;
d55e5bfc
RD
11512}
11513
11514
1bd55598
RD
11515SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11516 PyObject *resultobj = 0;
11517 wxRegion *arg1 = (wxRegion *) 0 ;
11518 SwigValueWrapper<wxBitmap > result;
11519 void *argp1 = 0 ;
11520 int res1 = 0 ;
11521 PyObject *swig_obj[1] ;
11522
11523 if (!args) SWIG_fail;
11524 swig_obj[0] = args;
11525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11526 if (!SWIG_IsOK(res1)) {
11527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11528 }
11529 arg1 = reinterpret_cast< wxRegion * >(argp1);
11530 {
11531 PyThreadState* __tstate = wxPyBeginAllowThreads();
11532 result = (arg1)->ConvertToBitmap();
11533 wxPyEndAllowThreads(__tstate);
11534 if (PyErr_Occurred()) SWIG_fail;
11535 }
11536 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11537 return resultobj;
11538fail:
11539 return NULL;
11540}
11541
11542
11543SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11544 PyObject *resultobj = 0;
11545 wxRegion *arg1 = (wxRegion *) 0 ;
11546 wxBitmap *arg2 = 0 ;
11547 bool result;
11548 void *argp1 = 0 ;
11549 int res1 = 0 ;
11550 void *argp2 = 0 ;
11551 int res2 = 0 ;
11552 PyObject * obj0 = 0 ;
11553 PyObject * obj1 = 0 ;
11554 char * kwnames[] = {
11555 (char *) "self",(char *) "bmp", NULL
11556 };
11557
11558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11560 if (!SWIG_IsOK(res1)) {
11561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11562 }
11563 arg1 = reinterpret_cast< wxRegion * >(argp1);
11564 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11565 if (!SWIG_IsOK(res2)) {
11566 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11567 }
11568 if (!argp2) {
11569 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11570 }
11571 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11572 {
11573 PyThreadState* __tstate = wxPyBeginAllowThreads();
11574 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11575 wxPyEndAllowThreads(__tstate);
11576 if (PyErr_Occurred()) SWIG_fail;
11577 }
11578 {
11579 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11580 }
11581 return resultobj;
11582fail:
11583 return NULL;
11584}
11585
11586
11587SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11588 PyObject *resultobj = 0;
11589 wxRegion *arg1 = (wxRegion *) 0 ;
11590 wxBitmap *arg2 = 0 ;
11591 wxColour *arg3 = 0 ;
11592 int arg4 = (int) 0 ;
11593 bool result;
11594 void *argp1 = 0 ;
11595 int res1 = 0 ;
11596 void *argp2 = 0 ;
11597 int res2 = 0 ;
11598 wxColour temp3 ;
11599 int val4 ;
11600 int ecode4 = 0 ;
11601 PyObject * obj0 = 0 ;
11602 PyObject * obj1 = 0 ;
11603 PyObject * obj2 = 0 ;
11604 PyObject * obj3 = 0 ;
11605 char * kwnames[] = {
11606 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11607 };
11608
11609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11611 if (!SWIG_IsOK(res1)) {
11612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11613 }
11614 arg1 = reinterpret_cast< wxRegion * >(argp1);
11615 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11616 if (!SWIG_IsOK(res2)) {
11617 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11618 }
11619 if (!argp2) {
11620 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11621 }
11622 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11623 {
11624 arg3 = &temp3;
11625 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11626 }
11627 if (obj3) {
11628 ecode4 = SWIG_AsVal_int(obj3, &val4);
11629 if (!SWIG_IsOK(ecode4)) {
11630 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11631 }
11632 arg4 = static_cast< int >(val4);
11633 }
11634 {
11635 PyThreadState* __tstate = wxPyBeginAllowThreads();
11636 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11637 wxPyEndAllowThreads(__tstate);
11638 if (PyErr_Occurred()) SWIG_fail;
11639 }
11640 {
11641 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11642 }
11643 return resultobj;
11644fail:
11645 return NULL;
d55e5bfc
RD
11646}
11647
11648
1bd55598
RD
11649SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11650 PyObject *obj;
11651 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11652 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11653 return SWIG_Py_Void();
d55e5bfc
RD
11654}
11655
1bd55598
RD
11656SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11657 return SWIG_Python_InitShadowInstance(args);
11658}
d55e5bfc 11659
1bd55598
RD
11660SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11661 PyObject *resultobj = 0;
11662 wxRegion *arg1 = 0 ;
11663 wxRegionIterator *result = 0 ;
11664 void *argp1 = 0 ;
11665 int res1 = 0 ;
11666 PyObject * obj0 = 0 ;
11667 char * kwnames[] = {
11668 (char *) "region", NULL
11669 };
11670
11671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11672 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11673 if (!SWIG_IsOK(res1)) {
11674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11675 }
11676 if (!argp1) {
11677 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11678 }
11679 arg1 = reinterpret_cast< wxRegion * >(argp1);
11680 {
11681 if (!wxPyCheckForApp()) SWIG_fail;
11682 PyThreadState* __tstate = wxPyBeginAllowThreads();
11683 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11684 wxPyEndAllowThreads(__tstate);
11685 if (PyErr_Occurred()) SWIG_fail;
11686 }
11687 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11688 return resultobj;
11689fail:
11690 return NULL;
d55e5bfc
RD
11691}
11692
11693
1bd55598
RD
11694SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11695 PyObject *resultobj = 0;
11696 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11697 void *argp1 = 0 ;
11698 int res1 = 0 ;
11699 PyObject *swig_obj[1] ;
11700
11701 if (!args) SWIG_fail;
11702 swig_obj[0] = args;
11703 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11704 if (!SWIG_IsOK(res1)) {
11705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11706 }
11707 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11708 {
11709 PyThreadState* __tstate = wxPyBeginAllowThreads();
11710 delete arg1;
d55e5bfc 11711
1bd55598
RD
11712 wxPyEndAllowThreads(__tstate);
11713 if (PyErr_Occurred()) SWIG_fail;
11714 }
11715 resultobj = SWIG_Py_Void();
11716 return resultobj;
11717fail:
11718 return NULL;
d55e5bfc
RD
11719}
11720
11721
1bd55598
RD
11722SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11723 PyObject *resultobj = 0;
11724 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11725 int result;
11726 void *argp1 = 0 ;
11727 int res1 = 0 ;
11728 PyObject *swig_obj[1] ;
11729
11730 if (!args) SWIG_fail;
11731 swig_obj[0] = args;
11732 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11733 if (!SWIG_IsOK(res1)) {
11734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11735 }
11736 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11737 {
11738 PyThreadState* __tstate = wxPyBeginAllowThreads();
11739 result = (int)(arg1)->GetX();
11740 wxPyEndAllowThreads(__tstate);
11741 if (PyErr_Occurred()) SWIG_fail;
11742 }
11743 resultobj = SWIG_From_int(static_cast< int >(result));
11744 return resultobj;
11745fail:
11746 return NULL;
d55e5bfc
RD
11747}
11748
11749
1bd55598
RD
11750SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11751 PyObject *resultobj = 0;
11752 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11753 int result;
11754 void *argp1 = 0 ;
11755 int res1 = 0 ;
11756 PyObject *swig_obj[1] ;
11757
11758 if (!args) SWIG_fail;
11759 swig_obj[0] = args;
11760 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11761 if (!SWIG_IsOK(res1)) {
11762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11763 }
11764 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11765 {
11766 PyThreadState* __tstate = wxPyBeginAllowThreads();
11767 result = (int)(arg1)->GetY();
11768 wxPyEndAllowThreads(__tstate);
11769 if (PyErr_Occurred()) SWIG_fail;
11770 }
11771 resultobj = SWIG_From_int(static_cast< int >(result));
11772 return resultobj;
11773fail:
11774 return NULL;
d55e5bfc
RD
11775}
11776
11777
1bd55598
RD
11778SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11779 PyObject *resultobj = 0;
11780 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11781 int result;
11782 void *argp1 = 0 ;
11783 int res1 = 0 ;
11784 PyObject *swig_obj[1] ;
11785
11786 if (!args) SWIG_fail;
11787 swig_obj[0] = args;
11788 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11789 if (!SWIG_IsOK(res1)) {
11790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11791 }
11792 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11793 {
11794 PyThreadState* __tstate = wxPyBeginAllowThreads();
11795 result = (int)(arg1)->GetW();
11796 wxPyEndAllowThreads(__tstate);
11797 if (PyErr_Occurred()) SWIG_fail;
11798 }
11799 resultobj = SWIG_From_int(static_cast< int >(result));
11800 return resultobj;
11801fail:
11802 return NULL;
d55e5bfc
RD
11803}
11804
11805
1bd55598
RD
11806SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11807 PyObject *resultobj = 0;
11808 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11809 int result;
11810 void *argp1 = 0 ;
11811 int res1 = 0 ;
11812 PyObject *swig_obj[1] ;
11813
11814 if (!args) SWIG_fail;
11815 swig_obj[0] = args;
11816 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11817 if (!SWIG_IsOK(res1)) {
11818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11819 }
11820 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11821 {
11822 PyThreadState* __tstate = wxPyBeginAllowThreads();
11823 result = (int)(arg1)->GetWidth();
11824 wxPyEndAllowThreads(__tstate);
11825 if (PyErr_Occurred()) SWIG_fail;
11826 }
11827 resultobj = SWIG_From_int(static_cast< int >(result));
11828 return resultobj;
11829fail:
11830 return NULL;
d55e5bfc
RD
11831}
11832
11833
1bd55598
RD
11834SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11835 PyObject *resultobj = 0;
11836 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11837 int result;
11838 void *argp1 = 0 ;
11839 int res1 = 0 ;
11840 PyObject *swig_obj[1] ;
11841
11842 if (!args) SWIG_fail;
11843 swig_obj[0] = args;
11844 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11845 if (!SWIG_IsOK(res1)) {
11846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11847 }
11848 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11849 {
11850 PyThreadState* __tstate = wxPyBeginAllowThreads();
11851 result = (int)(arg1)->GetH();
11852 wxPyEndAllowThreads(__tstate);
11853 if (PyErr_Occurred()) SWIG_fail;
11854 }
11855 resultobj = SWIG_From_int(static_cast< int >(result));
11856 return resultobj;
11857fail:
11858 return NULL;
d07096ad
RD
11859}
11860
11861
1bd55598
RD
11862SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11863 PyObject *resultobj = 0;
11864 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11865 int result;
11866 void *argp1 = 0 ;
11867 int res1 = 0 ;
11868 PyObject *swig_obj[1] ;
11869
11870 if (!args) SWIG_fail;
11871 swig_obj[0] = args;
11872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11873 if (!SWIG_IsOK(res1)) {
11874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11875 }
11876 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11877 {
11878 PyThreadState* __tstate = wxPyBeginAllowThreads();
11879 result = (int)(arg1)->GetHeight();
11880 wxPyEndAllowThreads(__tstate);
11881 if (PyErr_Occurred()) SWIG_fail;
11882 }
11883 resultobj = SWIG_From_int(static_cast< int >(result));
11884 return resultobj;
11885fail:
11886 return NULL;
d55e5bfc
RD
11887}
11888
11889
1bd55598
RD
11890SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11891 PyObject *resultobj = 0;
11892 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11893 wxRect result;
11894 void *argp1 = 0 ;
11895 int res1 = 0 ;
11896 PyObject *swig_obj[1] ;
11897
11898 if (!args) SWIG_fail;
11899 swig_obj[0] = args;
11900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11901 if (!SWIG_IsOK(res1)) {
11902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11903 }
11904 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11905 {
11906 PyThreadState* __tstate = wxPyBeginAllowThreads();
11907 result = (arg1)->GetRect();
11908 wxPyEndAllowThreads(__tstate);
11909 if (PyErr_Occurred()) SWIG_fail;
11910 }
11911 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11912 return resultobj;
11913fail:
11914 return NULL;
d55e5bfc
RD
11915}
11916
11917
1bd55598
RD
11918SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11919 PyObject *resultobj = 0;
11920 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11921 bool result;
11922 void *argp1 = 0 ;
11923 int res1 = 0 ;
11924 PyObject *swig_obj[1] ;
11925
11926 if (!args) SWIG_fail;
11927 swig_obj[0] = args;
11928 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11929 if (!SWIG_IsOK(res1)) {
11930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11931 }
11932 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11933 {
11934 PyThreadState* __tstate = wxPyBeginAllowThreads();
11935 result = (bool)(arg1)->HaveRects();
11936 wxPyEndAllowThreads(__tstate);
11937 if (PyErr_Occurred()) SWIG_fail;
11938 }
11939 {
11940 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11941 }
11942 return resultobj;
11943fail:
11944 return NULL;
d55e5bfc
RD
11945}
11946
11947
1bd55598
RD
11948SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11949 PyObject *resultobj = 0;
11950 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11951 void *argp1 = 0 ;
11952 int res1 = 0 ;
11953 PyObject *swig_obj[1] ;
11954
11955 if (!args) SWIG_fail;
11956 swig_obj[0] = args;
11957 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11958 if (!SWIG_IsOK(res1)) {
11959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11960 }
11961 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11962 {
11963 PyThreadState* __tstate = wxPyBeginAllowThreads();
11964 (arg1)->Reset();
11965 wxPyEndAllowThreads(__tstate);
11966 if (PyErr_Occurred()) SWIG_fail;
11967 }
11968 resultobj = SWIG_Py_Void();
11969 return resultobj;
11970fail:
11971 return NULL;
d55e5bfc
RD
11972}
11973
11974
1bd55598
RD
11975SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11976 PyObject *resultobj = 0;
11977 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11978 void *argp1 = 0 ;
11979 int res1 = 0 ;
11980 PyObject *swig_obj[1] ;
11981
11982 if (!args) SWIG_fail;
11983 swig_obj[0] = args;
11984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11985 if (!SWIG_IsOK(res1)) {
11986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11987 }
11988 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11989 {
11990 PyThreadState* __tstate = wxPyBeginAllowThreads();
11991 wxRegionIterator_Next(arg1);
11992 wxPyEndAllowThreads(__tstate);
11993 if (PyErr_Occurred()) SWIG_fail;
11994 }
11995 resultobj = SWIG_Py_Void();
11996 return resultobj;
11997fail:
11998 return NULL;
070c48b4
RD
11999}
12000
12001
1bd55598
RD
12002SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12003 PyObject *resultobj = 0;
12004 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12005 bool result;
12006 void *argp1 = 0 ;
12007 int res1 = 0 ;
12008 PyObject *swig_obj[1] ;
12009
12010 if (!args) SWIG_fail;
12011 swig_obj[0] = args;
12012 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12013 if (!SWIG_IsOK(res1)) {
12014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12015 }
12016 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12017 {
12018 PyThreadState* __tstate = wxPyBeginAllowThreads();
12019 result = (bool)wxRegionIterator___nonzero__(arg1);
12020 wxPyEndAllowThreads(__tstate);
12021 if (PyErr_Occurred()) SWIG_fail;
12022 }
12023 {
12024 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12025 }
12026 return resultobj;
12027fail:
12028 return NULL;
d55e5bfc
RD
12029}
12030
12031
1bd55598
RD
12032SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12033 PyObject *obj;
12034 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12035 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
12036 return SWIG_Py_Void();
d55e5bfc
RD
12037}
12038
1bd55598
RD
12039SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12040 return SWIG_Python_InitShadowInstance(args);
12041}
d55e5bfc 12042
1bd55598
RD
12043SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12044 PyObject *resultobj = 0;
12045 wxNativeFontInfo *result = 0 ;
12046
12047 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12048 {
12049 PyThreadState* __tstate = wxPyBeginAllowThreads();
12050 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12051 wxPyEndAllowThreads(__tstate);
12052 if (PyErr_Occurred()) SWIG_fail;
12053 }
12054 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12055 return resultobj;
12056fail:
12057 return NULL;
d55e5bfc
RD
12058}
12059
12060
1bd55598
RD
12061SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12062 PyObject *resultobj = 0;
12063 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12064 void *argp1 = 0 ;
12065 int res1 = 0 ;
12066 PyObject *swig_obj[1] ;
12067
12068 if (!args) SWIG_fail;
12069 swig_obj[0] = args;
12070 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12071 if (!SWIG_IsOK(res1)) {
12072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12073 }
12074 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12075 {
12076 PyThreadState* __tstate = wxPyBeginAllowThreads();
12077 delete arg1;
d55e5bfc 12078
1bd55598
RD
12079 wxPyEndAllowThreads(__tstate);
12080 if (PyErr_Occurred()) SWIG_fail;
12081 }
12082 resultobj = SWIG_Py_Void();
12083 return resultobj;
12084fail:
12085 return NULL;
d55e5bfc
RD
12086}
12087
12088
1bd55598
RD
12089SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12090 PyObject *resultobj = 0;
12091 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12092 void *argp1 = 0 ;
12093 int res1 = 0 ;
12094 PyObject *swig_obj[1] ;
12095
12096 if (!args) SWIG_fail;
12097 swig_obj[0] = args;
12098 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12099 if (!SWIG_IsOK(res1)) {
12100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12101 }
12102 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12103 {
12104 PyThreadState* __tstate = wxPyBeginAllowThreads();
12105 (arg1)->Init();
12106 wxPyEndAllowThreads(__tstate);
12107 if (PyErr_Occurred()) SWIG_fail;
12108 }
12109 resultobj = SWIG_Py_Void();
12110 return resultobj;
12111fail:
12112 return NULL;
12113}
12114
12115
12116SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12117 PyObject *resultobj = 0;
12118 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12119 wxFont *arg2 = 0 ;
12120 void *argp1 = 0 ;
12121 int res1 = 0 ;
12122 void *argp2 = 0 ;
12123 int res2 = 0 ;
12124 PyObject * obj0 = 0 ;
12125 PyObject * obj1 = 0 ;
12126 char * kwnames[] = {
12127 (char *) "self",(char *) "font", NULL
12128 };
12129
12130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12132 if (!SWIG_IsOK(res1)) {
12133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12134 }
12135 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12136 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12137 if (!SWIG_IsOK(res2)) {
12138 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12139 }
12140 if (!argp2) {
12141 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12142 }
12143 arg2 = reinterpret_cast< wxFont * >(argp2);
12144 {
12145 PyThreadState* __tstate = wxPyBeginAllowThreads();
12146 (arg1)->InitFromFont((wxFont const &)*arg2);
12147 wxPyEndAllowThreads(__tstate);
12148 if (PyErr_Occurred()) SWIG_fail;
12149 }
12150 resultobj = SWIG_Py_Void();
12151 return resultobj;
12152fail:
12153 return NULL;
d55e5bfc
RD
12154}
12155
12156
1bd55598
RD
12157SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12158 PyObject *resultobj = 0;
12159 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12160 int result;
12161 void *argp1 = 0 ;
12162 int res1 = 0 ;
12163 PyObject *swig_obj[1] ;
12164
12165 if (!args) SWIG_fail;
12166 swig_obj[0] = args;
12167 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12168 if (!SWIG_IsOK(res1)) {
12169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12170 }
12171 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12172 {
12173 PyThreadState* __tstate = wxPyBeginAllowThreads();
12174 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12175 wxPyEndAllowThreads(__tstate);
12176 if (PyErr_Occurred()) SWIG_fail;
12177 }
12178 resultobj = SWIG_From_int(static_cast< int >(result));
12179 return resultobj;
12180fail:
12181 return NULL;
d55e5bfc
RD
12182}
12183
12184
1bd55598
RD
12185SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12186 PyObject *resultobj = 0;
12187 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12188 wxFontStyle result;
12189 void *argp1 = 0 ;
12190 int res1 = 0 ;
12191 PyObject *swig_obj[1] ;
12192
12193 if (!args) SWIG_fail;
12194 swig_obj[0] = args;
12195 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12196 if (!SWIG_IsOK(res1)) {
12197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12198 }
12199 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12200 {
12201 PyThreadState* __tstate = wxPyBeginAllowThreads();
12202 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12203 wxPyEndAllowThreads(__tstate);
12204 if (PyErr_Occurred()) SWIG_fail;
12205 }
12206 resultobj = SWIG_From_int(static_cast< int >(result));
12207 return resultobj;
12208fail:
12209 return NULL;
d55e5bfc
RD
12210}
12211
12212
1bd55598
RD
12213SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12214 PyObject *resultobj = 0;
12215 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12216 wxFontWeight result;
12217 void *argp1 = 0 ;
12218 int res1 = 0 ;
12219 PyObject *swig_obj[1] ;
12220
12221 if (!args) SWIG_fail;
12222 swig_obj[0] = args;
12223 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12224 if (!SWIG_IsOK(res1)) {
12225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12226 }
12227 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12228 {
12229 PyThreadState* __tstate = wxPyBeginAllowThreads();
12230 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12231 wxPyEndAllowThreads(__tstate);
12232 if (PyErr_Occurred()) SWIG_fail;
12233 }
12234 resultobj = SWIG_From_int(static_cast< int >(result));
12235 return resultobj;
12236fail:
12237 return NULL;
d55e5bfc
RD
12238}
12239
12240
1bd55598
RD
12241SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12242 PyObject *resultobj = 0;
12243 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12244 bool result;
12245 void *argp1 = 0 ;
12246 int res1 = 0 ;
12247 PyObject *swig_obj[1] ;
12248
12249 if (!args) SWIG_fail;
12250 swig_obj[0] = args;
12251 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12252 if (!SWIG_IsOK(res1)) {
12253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12254 }
12255 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12256 {
12257 PyThreadState* __tstate = wxPyBeginAllowThreads();
12258 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12259 wxPyEndAllowThreads(__tstate);
12260 if (PyErr_Occurred()) SWIG_fail;
12261 }
12262 {
12263 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12264 }
12265 return resultobj;
12266fail:
12267 return NULL;
d55e5bfc
RD
12268}
12269
12270
1bd55598
RD
12271SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12272 PyObject *resultobj = 0;
12273 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12274 wxString result;
12275 void *argp1 = 0 ;
12276 int res1 = 0 ;
12277 PyObject *swig_obj[1] ;
12278
12279 if (!args) SWIG_fail;
12280 swig_obj[0] = args;
12281 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12282 if (!SWIG_IsOK(res1)) {
12283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12284 }
12285 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12286 {
12287 PyThreadState* __tstate = wxPyBeginAllowThreads();
12288 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12289 wxPyEndAllowThreads(__tstate);
12290 if (PyErr_Occurred()) SWIG_fail;
12291 }
12292 {
12293#if wxUSE_UNICODE
12294 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12295#else
12296 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12297#endif
12298 }
12299 return resultobj;
12300fail:
12301 return NULL;
d55e5bfc
RD
12302}
12303
12304
1bd55598
RD
12305SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12306 PyObject *resultobj = 0;
12307 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12308 wxFontFamily result;
12309 void *argp1 = 0 ;
12310 int res1 = 0 ;
12311 PyObject *swig_obj[1] ;
12312
12313 if (!args) SWIG_fail;
12314 swig_obj[0] = args;
12315 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12316 if (!SWIG_IsOK(res1)) {
12317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12318 }
12319 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12320 {
12321 PyThreadState* __tstate = wxPyBeginAllowThreads();
12322 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12323 wxPyEndAllowThreads(__tstate);
12324 if (PyErr_Occurred()) SWIG_fail;
12325 }
12326 resultobj = SWIG_From_int(static_cast< int >(result));
12327 return resultobj;
12328fail:
12329 return NULL;
d55e5bfc
RD
12330}
12331
12332
1bd55598
RD
12333SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12334 PyObject *resultobj = 0;
12335 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12336 wxFontEncoding result;
12337 void *argp1 = 0 ;
12338 int res1 = 0 ;
12339 PyObject *swig_obj[1] ;
12340
12341 if (!args) SWIG_fail;
12342 swig_obj[0] = args;
12343 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12344 if (!SWIG_IsOK(res1)) {
12345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12346 }
12347 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12348 {
12349 PyThreadState* __tstate = wxPyBeginAllowThreads();
12350 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12351 wxPyEndAllowThreads(__tstate);
12352 if (PyErr_Occurred()) SWIG_fail;
12353 }
12354 resultobj = SWIG_From_int(static_cast< int >(result));
12355 return resultobj;
12356fail:
12357 return NULL;
12358}
12359
12360
12361SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12362 PyObject *resultobj = 0;
12363 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12364 int arg2 ;
12365 void *argp1 = 0 ;
12366 int res1 = 0 ;
12367 int val2 ;
12368 int ecode2 = 0 ;
12369 PyObject * obj0 = 0 ;
12370 PyObject * obj1 = 0 ;
12371 char * kwnames[] = {
12372 (char *) "self",(char *) "pointsize", NULL
12373 };
12374
12375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12377 if (!SWIG_IsOK(res1)) {
12378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12379 }
12380 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12381 ecode2 = SWIG_AsVal_int(obj1, &val2);
12382 if (!SWIG_IsOK(ecode2)) {
12383 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12384 }
12385 arg2 = static_cast< int >(val2);
12386 {
12387 PyThreadState* __tstate = wxPyBeginAllowThreads();
12388 (arg1)->SetPointSize(arg2);
12389 wxPyEndAllowThreads(__tstate);
12390 if (PyErr_Occurred()) SWIG_fail;
12391 }
12392 resultobj = SWIG_Py_Void();
12393 return resultobj;
12394fail:
12395 return NULL;
12396}
12397
12398
12399SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12400 PyObject *resultobj = 0;
12401 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12402 wxFontStyle arg2 ;
12403 void *argp1 = 0 ;
12404 int res1 = 0 ;
12405 int val2 ;
12406 int ecode2 = 0 ;
12407 PyObject * obj0 = 0 ;
12408 PyObject * obj1 = 0 ;
12409 char * kwnames[] = {
12410 (char *) "self",(char *) "style", NULL
12411 };
12412
12413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12415 if (!SWIG_IsOK(res1)) {
12416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12417 }
12418 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12419 ecode2 = SWIG_AsVal_int(obj1, &val2);
12420 if (!SWIG_IsOK(ecode2)) {
12421 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12422 }
12423 arg2 = static_cast< wxFontStyle >(val2);
12424 {
12425 PyThreadState* __tstate = wxPyBeginAllowThreads();
12426 (arg1)->SetStyle(arg2);
12427 wxPyEndAllowThreads(__tstate);
12428 if (PyErr_Occurred()) SWIG_fail;
12429 }
12430 resultobj = SWIG_Py_Void();
12431 return resultobj;
12432fail:
12433 return NULL;
12434}
12435
12436
12437SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12438 PyObject *resultobj = 0;
12439 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12440 wxFontWeight arg2 ;
12441 void *argp1 = 0 ;
12442 int res1 = 0 ;
12443 int val2 ;
12444 int ecode2 = 0 ;
12445 PyObject * obj0 = 0 ;
12446 PyObject * obj1 = 0 ;
12447 char * kwnames[] = {
12448 (char *) "self",(char *) "weight", NULL
12449 };
12450
12451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12453 if (!SWIG_IsOK(res1)) {
12454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12455 }
12456 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12457 ecode2 = SWIG_AsVal_int(obj1, &val2);
12458 if (!SWIG_IsOK(ecode2)) {
12459 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12460 }
12461 arg2 = static_cast< wxFontWeight >(val2);
12462 {
12463 PyThreadState* __tstate = wxPyBeginAllowThreads();
12464 (arg1)->SetWeight(arg2);
12465 wxPyEndAllowThreads(__tstate);
12466 if (PyErr_Occurred()) SWIG_fail;
12467 }
12468 resultobj = SWIG_Py_Void();
12469 return resultobj;
12470fail:
12471 return NULL;
12472}
12473
12474
12475SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12476 PyObject *resultobj = 0;
12477 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12478 bool arg2 ;
12479 void *argp1 = 0 ;
12480 int res1 = 0 ;
12481 bool val2 ;
12482 int ecode2 = 0 ;
12483 PyObject * obj0 = 0 ;
12484 PyObject * obj1 = 0 ;
12485 char * kwnames[] = {
12486 (char *) "self",(char *) "underlined", NULL
12487 };
12488
12489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12490 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12491 if (!SWIG_IsOK(res1)) {
12492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12493 }
12494 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12495 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12496 if (!SWIG_IsOK(ecode2)) {
12497 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12498 }
12499 arg2 = static_cast< bool >(val2);
12500 {
12501 PyThreadState* __tstate = wxPyBeginAllowThreads();
12502 (arg1)->SetUnderlined(arg2);
12503 wxPyEndAllowThreads(__tstate);
12504 if (PyErr_Occurred()) SWIG_fail;
12505 }
12506 resultobj = SWIG_Py_Void();
12507 return resultobj;
12508fail:
12509 return NULL;
12510}
12511
12512
12513SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12514 PyObject *resultobj = 0;
12515 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12516 wxString arg2 ;
704eda0c 12517 bool result;
1bd55598
RD
12518 void *argp1 = 0 ;
12519 int res1 = 0 ;
12520 PyObject * obj0 = 0 ;
12521 PyObject * obj1 = 0 ;
12522 char * kwnames[] = {
12523 (char *) "self",(char *) "facename", NULL
12524 };
12525
12526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12528 if (!SWIG_IsOK(res1)) {
12529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12530 }
12531 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12532 {
12533 wxString* sptr = wxString_in_helper(obj1);
12534 if (sptr == NULL) SWIG_fail;
12535 arg2 = *sptr;
12536 delete sptr;
12537 }
12538 {
12539 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 12540 result = (bool)(arg1)->SetFaceName(arg2);
1bd55598
RD
12541 wxPyEndAllowThreads(__tstate);
12542 if (PyErr_Occurred()) SWIG_fail;
12543 }
704eda0c
RD
12544 {
12545 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12546 }
1bd55598
RD
12547 return resultobj;
12548fail:
12549 return NULL;
12550}
12551
12552
12553SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12554 PyObject *resultobj = 0;
12555 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12556 wxFontFamily arg2 ;
12557 void *argp1 = 0 ;
12558 int res1 = 0 ;
12559 int val2 ;
12560 int ecode2 = 0 ;
12561 PyObject * obj0 = 0 ;
12562 PyObject * obj1 = 0 ;
12563 char * kwnames[] = {
12564 (char *) "self",(char *) "family", NULL
12565 };
12566
12567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12569 if (!SWIG_IsOK(res1)) {
12570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12571 }
12572 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12573 ecode2 = SWIG_AsVal_int(obj1, &val2);
12574 if (!SWIG_IsOK(ecode2)) {
12575 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12576 }
12577 arg2 = static_cast< wxFontFamily >(val2);
12578 {
12579 PyThreadState* __tstate = wxPyBeginAllowThreads();
12580 (arg1)->SetFamily(arg2);
12581 wxPyEndAllowThreads(__tstate);
12582 if (PyErr_Occurred()) SWIG_fail;
12583 }
12584 resultobj = SWIG_Py_Void();
12585 return resultobj;
12586fail:
12587 return NULL;
12588}
12589
12590
12591SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12592 PyObject *resultobj = 0;
12593 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12594 wxFontEncoding arg2 ;
12595 void *argp1 = 0 ;
12596 int res1 = 0 ;
12597 int val2 ;
12598 int ecode2 = 0 ;
12599 PyObject * obj0 = 0 ;
12600 PyObject * obj1 = 0 ;
12601 char * kwnames[] = {
12602 (char *) "self",(char *) "encoding", NULL
12603 };
12604
12605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12607 if (!SWIG_IsOK(res1)) {
12608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12609 }
12610 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12611 ecode2 = SWIG_AsVal_int(obj1, &val2);
12612 if (!SWIG_IsOK(ecode2)) {
12613 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12614 }
12615 arg2 = static_cast< wxFontEncoding >(val2);
12616 {
12617 PyThreadState* __tstate = wxPyBeginAllowThreads();
12618 (arg1)->SetEncoding(arg2);
12619 wxPyEndAllowThreads(__tstate);
12620 if (PyErr_Occurred()) SWIG_fail;
12621 }
12622 resultobj = SWIG_Py_Void();
12623 return resultobj;
12624fail:
12625 return NULL;
12626}
12627
12628
12629SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12630 PyObject *resultobj = 0;
12631 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12632 wxString *arg2 = 0 ;
12633 bool result;
12634 void *argp1 = 0 ;
12635 int res1 = 0 ;
12636 bool temp2 = false ;
12637 PyObject * obj0 = 0 ;
12638 PyObject * obj1 = 0 ;
12639 char * kwnames[] = {
12640 (char *) "self",(char *) "s", NULL
12641 };
12642
12643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12645 if (!SWIG_IsOK(res1)) {
12646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12647 }
12648 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12649 {
12650 arg2 = wxString_in_helper(obj1);
12651 if (arg2 == NULL) SWIG_fail;
12652 temp2 = true;
12653 }
12654 {
12655 PyThreadState* __tstate = wxPyBeginAllowThreads();
12656 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12657 wxPyEndAllowThreads(__tstate);
12658 if (PyErr_Occurred()) SWIG_fail;
12659 }
12660 {
12661 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12662 }
12663 {
12664 if (temp2)
12665 delete arg2;
12666 }
12667 return resultobj;
12668fail:
12669 {
12670 if (temp2)
12671 delete arg2;
12672 }
12673 return NULL;
d55e5bfc
RD
12674}
12675
12676
1bd55598
RD
12677SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12678 PyObject *resultobj = 0;
12679 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12680 wxString result;
12681 void *argp1 = 0 ;
12682 int res1 = 0 ;
12683 PyObject *swig_obj[1] ;
12684
12685 if (!args) SWIG_fail;
12686 swig_obj[0] = args;
12687 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12688 if (!SWIG_IsOK(res1)) {
12689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12690 }
12691 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12692 {
12693 PyThreadState* __tstate = wxPyBeginAllowThreads();
12694 result = ((wxNativeFontInfo const *)arg1)->ToString();
12695 wxPyEndAllowThreads(__tstate);
12696 if (PyErr_Occurred()) SWIG_fail;
12697 }
12698 {
12699#if wxUSE_UNICODE
12700 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12701#else
12702 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12703#endif
12704 }
12705 return resultobj;
12706fail:
12707 return NULL;
d55e5bfc
RD
12708}
12709
12710
1bd55598
RD
12711SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12712 PyObject *resultobj = 0;
12713 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12714 wxString result;
12715 void *argp1 = 0 ;
12716 int res1 = 0 ;
12717 PyObject *swig_obj[1] ;
12718
12719 if (!args) SWIG_fail;
12720 swig_obj[0] = args;
12721 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12722 if (!SWIG_IsOK(res1)) {
12723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12724 }
12725 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12726 {
12727 PyThreadState* __tstate = wxPyBeginAllowThreads();
12728 result = wxNativeFontInfo___str__(arg1);
12729 wxPyEndAllowThreads(__tstate);
12730 if (PyErr_Occurred()) SWIG_fail;
12731 }
12732 {
12733#if wxUSE_UNICODE
12734 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12735#else
12736 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12737#endif
12738 }
12739 return resultobj;
12740fail:
12741 return NULL;
12742}
12743
12744
12745SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12746 PyObject *resultobj = 0;
12747 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12748 wxString *arg2 = 0 ;
12749 bool result;
12750 void *argp1 = 0 ;
12751 int res1 = 0 ;
12752 bool temp2 = false ;
12753 PyObject * obj0 = 0 ;
12754 PyObject * obj1 = 0 ;
12755 char * kwnames[] = {
12756 (char *) "self",(char *) "s", NULL
12757 };
12758
12759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12761 if (!SWIG_IsOK(res1)) {
12762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12763 }
12764 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12765 {
12766 arg2 = wxString_in_helper(obj1);
12767 if (arg2 == NULL) SWIG_fail;
12768 temp2 = true;
12769 }
12770 {
12771 PyThreadState* __tstate = wxPyBeginAllowThreads();
12772 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12773 wxPyEndAllowThreads(__tstate);
12774 if (PyErr_Occurred()) SWIG_fail;
12775 }
12776 {
12777 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12778 }
12779 {
12780 if (temp2)
12781 delete arg2;
12782 }
12783 return resultobj;
12784fail:
12785 {
12786 if (temp2)
12787 delete arg2;
12788 }
12789 return NULL;
d55e5bfc
RD
12790}
12791
12792
1bd55598
RD
12793SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12794 PyObject *resultobj = 0;
12795 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12796 wxString result;
12797 void *argp1 = 0 ;
12798 int res1 = 0 ;
12799 PyObject *swig_obj[1] ;
12800
12801 if (!args) SWIG_fail;
12802 swig_obj[0] = args;
12803 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12804 if (!SWIG_IsOK(res1)) {
12805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12806 }
12807 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12808 {
12809 PyThreadState* __tstate = wxPyBeginAllowThreads();
12810 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12811 wxPyEndAllowThreads(__tstate);
12812 if (PyErr_Occurred()) SWIG_fail;
12813 }
12814 {
36ed4f51 12815#if wxUSE_UNICODE
1bd55598 12816 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 12817#else
1bd55598 12818 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 12819#endif
1bd55598
RD
12820 }
12821 return resultobj;
12822fail:
12823 return NULL;
d55e5bfc
RD
12824}
12825
12826
1bd55598
RD
12827SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12828 PyObject *obj;
12829 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12830 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
12831 return SWIG_Py_Void();
d55e5bfc
RD
12832}
12833
1bd55598
RD
12834SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12835 return SWIG_Python_InitShadowInstance(args);
12836}
d55e5bfc 12837
1bd55598
RD
12838SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12839 PyObject *resultobj = 0;
12840 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12841 wxString *arg2 = (wxString *) 0 ;
12842 void *argp1 = 0 ;
12843 int res1 = 0 ;
12844 bool temp2 = false ;
12845 PyObject *swig_obj[2] ;
12846
12847 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
12848 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12849 if (!SWIG_IsOK(res1)) {
12850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12851 }
12852 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12853 {
12854 arg2 = wxString_in_helper(swig_obj[1]);
12855 if (arg2 == NULL) SWIG_fail;
12856 temp2 = true;
12857 }
12858 if (arg1) (arg1)->facename = *arg2;
12859
12860 resultobj = SWIG_Py_Void();
12861 {
12862 if (temp2)
12863 delete arg2;
12864 }
12865 return resultobj;
12866fail:
12867 {
12868 if (temp2)
12869 delete arg2;
12870 }
12871 return NULL;
d55e5bfc
RD
12872}
12873
12874
1bd55598
RD
12875SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12876 PyObject *resultobj = 0;
12877 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12878 wxString *result = 0 ;
12879 void *argp1 = 0 ;
12880 int res1 = 0 ;
12881 PyObject *swig_obj[1] ;
12882
12883 if (!args) SWIG_fail;
12884 swig_obj[0] = args;
12885 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12886 if (!SWIG_IsOK(res1)) {
12887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12888 }
12889 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12890 result = (wxString *)& ((arg1)->facename);
12891 {
12892#if wxUSE_UNICODE
12893 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12894#else
12895 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12896#endif
12897 }
12898 return resultobj;
12899fail:
12900 return NULL;
d55e5bfc
RD
12901}
12902
12903
1bd55598
RD
12904SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12905 PyObject *resultobj = 0;
12906 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12907 wxFontEncoding arg2 ;
12908 void *argp1 = 0 ;
12909 int res1 = 0 ;
12910 int val2 ;
12911 int ecode2 = 0 ;
12912 PyObject *swig_obj[2] ;
12913
12914 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
12915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12916 if (!SWIG_IsOK(res1)) {
12917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12918 }
12919 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12920 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12921 if (!SWIG_IsOK(ecode2)) {
12922 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12923 }
12924 arg2 = static_cast< wxFontEncoding >(val2);
12925 if (arg1) (arg1)->encoding = arg2;
12926
12927 resultobj = SWIG_Py_Void();
12928 return resultobj;
12929fail:
12930 return NULL;
d55e5bfc
RD
12931}
12932
12933
1bd55598
RD
12934SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12935 PyObject *resultobj = 0;
12936 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12937 wxFontEncoding result;
12938 void *argp1 = 0 ;
12939 int res1 = 0 ;
12940 PyObject *swig_obj[1] ;
12941
12942 if (!args) SWIG_fail;
12943 swig_obj[0] = args;
12944 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12945 if (!SWIG_IsOK(res1)) {
12946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12947 }
12948 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12949 result = (wxFontEncoding) ((arg1)->encoding);
12950 resultobj = SWIG_From_int(static_cast< int >(result));
12951 return resultobj;
12952fail:
12953 return NULL;
d07096ad
RD
12954}
12955
12956
1bd55598
RD
12957SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12958 PyObject *resultobj = 0;
12959 wxNativeEncodingInfo *result = 0 ;
12960
12961 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
12962 {
12963 PyThreadState* __tstate = wxPyBeginAllowThreads();
12964 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
12965 wxPyEndAllowThreads(__tstate);
12966 if (PyErr_Occurred()) SWIG_fail;
12967 }
12968 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
12969 return resultobj;
12970fail:
12971 return NULL;
d55e5bfc
RD
12972}
12973
12974
1bd55598
RD
12975SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12976 PyObject *resultobj = 0;
12977 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12978 void *argp1 = 0 ;
12979 int res1 = 0 ;
12980 PyObject *swig_obj[1] ;
12981
12982 if (!args) SWIG_fail;
12983 swig_obj[0] = args;
12984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
12985 if (!SWIG_IsOK(res1)) {
12986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12987 }
12988 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12989 {
12990 PyThreadState* __tstate = wxPyBeginAllowThreads();
12991 delete arg1;
d55e5bfc 12992
1bd55598
RD
12993 wxPyEndAllowThreads(__tstate);
12994 if (PyErr_Occurred()) SWIG_fail;
12995 }
12996 resultobj = SWIG_Py_Void();
12997 return resultobj;
12998fail:
12999 return NULL;
13000}
13001
13002
13003SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13004 PyObject *resultobj = 0;
13005 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13006 wxString *arg2 = 0 ;
13007 bool result;
13008 void *argp1 = 0 ;
13009 int res1 = 0 ;
13010 bool temp2 = false ;
13011 PyObject * obj0 = 0 ;
13012 PyObject * obj1 = 0 ;
13013 char * kwnames[] = {
13014 (char *) "self",(char *) "s", NULL
13015 };
13016
13017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13019 if (!SWIG_IsOK(res1)) {
13020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13021 }
13022 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13023 {
13024 arg2 = wxString_in_helper(obj1);
13025 if (arg2 == NULL) SWIG_fail;
13026 temp2 = true;
13027 }
13028 {
13029 PyThreadState* __tstate = wxPyBeginAllowThreads();
13030 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13031 wxPyEndAllowThreads(__tstate);
13032 if (PyErr_Occurred()) SWIG_fail;
13033 }
13034 {
13035 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13036 }
13037 {
13038 if (temp2)
13039 delete arg2;
13040 }
13041 return resultobj;
13042fail:
13043 {
13044 if (temp2)
13045 delete arg2;
13046 }
13047 return NULL;
d55e5bfc
RD
13048}
13049
13050
1bd55598
RD
13051SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13052 PyObject *resultobj = 0;
13053 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13054 wxString result;
13055 void *argp1 = 0 ;
13056 int res1 = 0 ;
13057 PyObject *swig_obj[1] ;
13058
13059 if (!args) SWIG_fail;
13060 swig_obj[0] = args;
13061 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13062 if (!SWIG_IsOK(res1)) {
13063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13064 }
13065 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13066 {
13067 PyThreadState* __tstate = wxPyBeginAllowThreads();
13068 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13069 wxPyEndAllowThreads(__tstate);
13070 if (PyErr_Occurred()) SWIG_fail;
13071 }
13072 {
13073#if wxUSE_UNICODE
13074 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13075#else
13076 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13077#endif
13078 }
13079 return resultobj;
13080fail:
13081 return NULL;
d55e5bfc
RD
13082}
13083
13084
1bd55598
RD
13085SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13086 PyObject *obj;
13087 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13088 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13089 return SWIG_Py_Void();
d55e5bfc
RD
13090}
13091
1bd55598
RD
13092SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13093 return SWIG_Python_InitShadowInstance(args);
13094}
d55e5bfc 13095
1bd55598
RD
13096SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13097 PyObject *resultobj = 0;
13098 wxFontEncoding arg1 ;
13099 wxNativeEncodingInfo *result = 0 ;
13100 int val1 ;
13101 int ecode1 = 0 ;
13102 PyObject * obj0 = 0 ;
13103 char * kwnames[] = {
13104 (char *) "encoding", NULL
13105 };
13106
13107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13108 ecode1 = SWIG_AsVal_int(obj0, &val1);
13109 if (!SWIG_IsOK(ecode1)) {
13110 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13111 }
13112 arg1 = static_cast< wxFontEncoding >(val1);
13113 {
13114 PyThreadState* __tstate = wxPyBeginAllowThreads();
13115 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13116 wxPyEndAllowThreads(__tstate);
13117 if (PyErr_Occurred()) SWIG_fail;
13118 }
13119 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13120 return resultobj;
13121fail:
13122 return NULL;
13123}
13124
13125
13126SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13127 PyObject *resultobj = 0;
13128 wxNativeEncodingInfo *arg1 = 0 ;
13129 bool result;
13130 void *argp1 = 0 ;
13131 int res1 = 0 ;
13132 PyObject * obj0 = 0 ;
13133 char * kwnames[] = {
13134 (char *) "info", NULL
13135 };
13136
13137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13138 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13139 if (!SWIG_IsOK(res1)) {
13140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13141 }
13142 if (!argp1) {
13143 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13144 }
13145 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13146 {
13147 PyThreadState* __tstate = wxPyBeginAllowThreads();
13148 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13149 wxPyEndAllowThreads(__tstate);
13150 if (PyErr_Occurred()) SWIG_fail;
13151 }
13152 {
13153 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13154 }
13155 return resultobj;
13156fail:
13157 return NULL;
d55e5bfc
RD
13158}
13159
13160
1bd55598
RD
13161SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13162 PyObject *resultobj = 0;
13163 wxFontMapper *result = 0 ;
13164
13165 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
13166 {
13167 PyThreadState* __tstate = wxPyBeginAllowThreads();
13168 result = (wxFontMapper *)new wxFontMapper();
13169 wxPyEndAllowThreads(__tstate);
13170 if (PyErr_Occurred()) SWIG_fail;
13171 }
13172 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13173 return resultobj;
13174fail:
13175 return NULL;
d55e5bfc
RD
13176}
13177
13178
1bd55598
RD
13179SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13180 PyObject *resultobj = 0;
13181 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13182 void *argp1 = 0 ;
13183 int res1 = 0 ;
13184 PyObject *swig_obj[1] ;
13185
13186 if (!args) SWIG_fail;
13187 swig_obj[0] = args;
13188 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13189 if (!SWIG_IsOK(res1)) {
13190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13191 }
13192 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13193 {
13194 PyThreadState* __tstate = wxPyBeginAllowThreads();
13195 delete arg1;
d55e5bfc 13196
1bd55598
RD
13197 wxPyEndAllowThreads(__tstate);
13198 if (PyErr_Occurred()) SWIG_fail;
13199 }
13200 resultobj = SWIG_Py_Void();
13201 return resultobj;
13202fail:
13203 return NULL;
d55e5bfc
RD
13204}
13205
13206
1bd55598
RD
13207SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13208 PyObject *resultobj = 0;
13209 wxFontMapper *result = 0 ;
13210
13211 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13212 {
13213 PyThreadState* __tstate = wxPyBeginAllowThreads();
13214 result = (wxFontMapper *)wxFontMapper::Get();
13215 wxPyEndAllowThreads(__tstate);
13216 if (PyErr_Occurred()) SWIG_fail;
13217 }
13218 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13219 return resultobj;
13220fail:
13221 return NULL;
13222}
13223
13224
13225SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13226 PyObject *resultobj = 0;
13227 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13228 wxFontMapper *result = 0 ;
13229 void *argp1 = 0 ;
13230 int res1 = 0 ;
13231 PyObject * obj0 = 0 ;
13232 char * kwnames[] = {
13233 (char *) "mapper", NULL
13234 };
13235
13236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13238 if (!SWIG_IsOK(res1)) {
13239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13240 }
13241 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13242 {
13243 PyThreadState* __tstate = wxPyBeginAllowThreads();
13244 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13245 wxPyEndAllowThreads(__tstate);
13246 if (PyErr_Occurred()) SWIG_fail;
13247 }
13248 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13249 return resultobj;
13250fail:
13251 return NULL;
13252}
13253
13254
13255SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13256 PyObject *resultobj = 0;
13257 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13258 wxString *arg2 = 0 ;
13259 bool arg3 = (bool) true ;
13260 wxFontEncoding result;
13261 void *argp1 = 0 ;
13262 int res1 = 0 ;
13263 bool temp2 = false ;
13264 bool val3 ;
13265 int ecode3 = 0 ;
13266 PyObject * obj0 = 0 ;
13267 PyObject * obj1 = 0 ;
13268 PyObject * obj2 = 0 ;
13269 char * kwnames[] = {
13270 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13271 };
13272
13273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13275 if (!SWIG_IsOK(res1)) {
13276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13277 }
13278 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13279 {
13280 arg2 = wxString_in_helper(obj1);
13281 if (arg2 == NULL) SWIG_fail;
13282 temp2 = true;
13283 }
13284 if (obj2) {
13285 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13286 if (!SWIG_IsOK(ecode3)) {
13287 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13288 }
13289 arg3 = static_cast< bool >(val3);
13290 }
13291 {
13292 PyThreadState* __tstate = wxPyBeginAllowThreads();
13293 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13294 wxPyEndAllowThreads(__tstate);
13295 if (PyErr_Occurred()) SWIG_fail;
13296 }
13297 resultobj = SWIG_From_int(static_cast< int >(result));
13298 {
13299 if (temp2)
13300 delete arg2;
13301 }
13302 return resultobj;
13303fail:
13304 {
13305 if (temp2)
13306 delete arg2;
13307 }
13308 return NULL;
d55e5bfc
RD
13309}
13310
13311
1bd55598
RD
13312SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13313 PyObject *resultobj = 0;
13314 size_t result;
13315
13316 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13317 {
13318 PyThreadState* __tstate = wxPyBeginAllowThreads();
13319 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13320 wxPyEndAllowThreads(__tstate);
13321 if (PyErr_Occurred()) SWIG_fail;
13322 }
13323 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13324 return resultobj;
13325fail:
13326 return NULL;
13327}
13328
13329
13330SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13331 PyObject *resultobj = 0;
13332 size_t arg1 ;
13333 wxFontEncoding result;
13334 size_t val1 ;
13335 int ecode1 = 0 ;
13336 PyObject * obj0 = 0 ;
13337 char * kwnames[] = {
13338 (char *) "n", NULL
13339 };
13340
13341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13342 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13343 if (!SWIG_IsOK(ecode1)) {
13344 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13345 }
13346 arg1 = static_cast< size_t >(val1);
13347 {
13348 PyThreadState* __tstate = wxPyBeginAllowThreads();
13349 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13350 wxPyEndAllowThreads(__tstate);
13351 if (PyErr_Occurred()) SWIG_fail;
13352 }
13353 resultobj = SWIG_From_int(static_cast< int >(result));
13354 return resultobj;
13355fail:
13356 return NULL;
13357}
13358
13359
13360SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13361 PyObject *resultobj = 0;
13362 wxFontEncoding arg1 ;
13363 wxString result;
13364 int val1 ;
13365 int ecode1 = 0 ;
13366 PyObject * obj0 = 0 ;
13367 char * kwnames[] = {
13368 (char *) "encoding", NULL
13369 };
13370
13371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13372 ecode1 = SWIG_AsVal_int(obj0, &val1);
13373 if (!SWIG_IsOK(ecode1)) {
13374 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13375 }
13376 arg1 = static_cast< wxFontEncoding >(val1);
13377 {
13378 PyThreadState* __tstate = wxPyBeginAllowThreads();
13379 result = wxFontMapper::GetEncodingName(arg1);
13380 wxPyEndAllowThreads(__tstate);
13381 if (PyErr_Occurred()) SWIG_fail;
13382 }
13383 {
13384#if wxUSE_UNICODE
13385 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13386#else
13387 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13388#endif
13389 }
13390 return resultobj;
13391fail:
13392 return NULL;
d55e5bfc
RD
13393}
13394
13395
1bd55598
RD
13396SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13397 PyObject *resultobj = 0;
13398 wxFontEncoding arg1 ;
13399 wxString result;
13400 int val1 ;
13401 int ecode1 = 0 ;
13402 PyObject * obj0 = 0 ;
13403 char * kwnames[] = {
13404 (char *) "encoding", NULL
13405 };
13406
13407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13408 ecode1 = SWIG_AsVal_int(obj0, &val1);
13409 if (!SWIG_IsOK(ecode1)) {
13410 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13411 }
13412 arg1 = static_cast< wxFontEncoding >(val1);
13413 {
13414 PyThreadState* __tstate = wxPyBeginAllowThreads();
13415 result = wxFontMapper::GetEncodingDescription(arg1);
13416 wxPyEndAllowThreads(__tstate);
13417 if (PyErr_Occurred()) SWIG_fail;
13418 }
13419 {
13420#if wxUSE_UNICODE
13421 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13422#else
13423 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13424#endif
13425 }
13426 return resultobj;
13427fail:
13428 return NULL;
d55e5bfc
RD
13429}
13430
13431
1bd55598
RD
13432SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13433 PyObject *resultobj = 0;
13434 wxString *arg1 = 0 ;
13435 wxFontEncoding result;
13436 bool temp1 = false ;
13437 PyObject * obj0 = 0 ;
13438 char * kwnames[] = {
13439 (char *) "name", NULL
13440 };
13441
13442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13443 {
13444 arg1 = wxString_in_helper(obj0);
13445 if (arg1 == NULL) SWIG_fail;
13446 temp1 = true;
13447 }
13448 {
13449 PyThreadState* __tstate = wxPyBeginAllowThreads();
13450 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13451 wxPyEndAllowThreads(__tstate);
13452 if (PyErr_Occurred()) SWIG_fail;
13453 }
13454 resultobj = SWIG_From_int(static_cast< int >(result));
13455 {
13456 if (temp1)
13457 delete arg1;
13458 }
13459 return resultobj;
13460fail:
13461 {
13462 if (temp1)
13463 delete arg1;
13464 }
13465 return NULL;
d55e5bfc
RD
13466}
13467
13468
1bd55598
RD
13469SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13470 PyObject *resultobj = 0;
13471 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13472 wxString *arg2 = 0 ;
13473 void *argp1 = 0 ;
13474 int res1 = 0 ;
13475 bool temp2 = false ;
13476 PyObject * obj0 = 0 ;
13477 PyObject * obj1 = 0 ;
13478 char * kwnames[] = {
13479 (char *) "self",(char *) "prefix", NULL
13480 };
13481
13482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13484 if (!SWIG_IsOK(res1)) {
13485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13486 }
13487 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13488 {
13489 arg2 = wxString_in_helper(obj1);
13490 if (arg2 == NULL) SWIG_fail;
13491 temp2 = true;
13492 }
13493 {
13494 PyThreadState* __tstate = wxPyBeginAllowThreads();
13495 (arg1)->SetConfigPath((wxString const &)*arg2);
13496 wxPyEndAllowThreads(__tstate);
13497 if (PyErr_Occurred()) SWIG_fail;
13498 }
13499 resultobj = SWIG_Py_Void();
13500 {
13501 if (temp2)
13502 delete arg2;
13503 }
13504 return resultobj;
13505fail:
13506 {
13507 if (temp2)
13508 delete arg2;
13509 }
13510 return NULL;
13511}
13512
13513
13514SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13515 PyObject *resultobj = 0;
13516 wxString result;
13517
13518 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13519 {
13520 PyThreadState* __tstate = wxPyBeginAllowThreads();
13521 result = wxFontMapper::GetDefaultConfigPath();
13522 wxPyEndAllowThreads(__tstate);
13523 if (PyErr_Occurred()) SWIG_fail;
13524 }
13525 {
13526#if wxUSE_UNICODE
13527 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13528#else
13529 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13530#endif
13531 }
13532 return resultobj;
13533fail:
13534 return NULL;
13535}
13536
13537
13538SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13539 PyObject *resultobj = 0;
13540 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13541 wxFontEncoding arg2 ;
13542 wxString const &arg3_defvalue = wxPyEmptyString ;
13543 wxString *arg3 = (wxString *) &arg3_defvalue ;
13544 bool arg4 = (bool) true ;
13545 PyObject *result = 0 ;
13546 void *argp1 = 0 ;
13547 int res1 = 0 ;
13548 int val2 ;
13549 int ecode2 = 0 ;
13550 bool temp3 = false ;
13551 bool val4 ;
13552 int ecode4 = 0 ;
13553 PyObject * obj0 = 0 ;
13554 PyObject * obj1 = 0 ;
13555 PyObject * obj2 = 0 ;
13556 PyObject * obj3 = 0 ;
13557 char * kwnames[] = {
13558 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13559 };
13560
13561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13563 if (!SWIG_IsOK(res1)) {
13564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13565 }
13566 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13567 ecode2 = SWIG_AsVal_int(obj1, &val2);
13568 if (!SWIG_IsOK(ecode2)) {
13569 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13570 }
13571 arg2 = static_cast< wxFontEncoding >(val2);
13572 if (obj2) {
36ed4f51 13573 {
1bd55598
RD
13574 arg3 = wxString_in_helper(obj2);
13575 if (arg3 == NULL) SWIG_fail;
13576 temp3 = true;
36ed4f51 13577 }
1bd55598
RD
13578 }
13579 if (obj3) {
13580 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13581 if (!SWIG_IsOK(ecode4)) {
13582 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13583 }
13584 arg4 = static_cast< bool >(val4);
13585 }
13586 {
13587 PyThreadState* __tstate = wxPyBeginAllowThreads();
13588 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13589 wxPyEndAllowThreads(__tstate);
13590 if (PyErr_Occurred()) SWIG_fail;
13591 }
13592 resultobj = result;
13593 {
13594 if (temp3)
13595 delete arg3;
13596 }
13597 return resultobj;
13598fail:
13599 {
13600 if (temp3)
13601 delete arg3;
13602 }
13603 return NULL;
13604}
13605
13606
13607SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13608 PyObject *resultobj = 0;
13609 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13610 wxFontEncoding arg2 ;
13611 wxString const &arg3_defvalue = wxPyEmptyString ;
13612 wxString *arg3 = (wxString *) &arg3_defvalue ;
13613 bool result;
13614 void *argp1 = 0 ;
13615 int res1 = 0 ;
13616 int val2 ;
13617 int ecode2 = 0 ;
13618 bool temp3 = false ;
13619 PyObject * obj0 = 0 ;
13620 PyObject * obj1 = 0 ;
13621 PyObject * obj2 = 0 ;
13622 char * kwnames[] = {
13623 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13624 };
13625
13626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13628 if (!SWIG_IsOK(res1)) {
13629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13630 }
13631 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13632 ecode2 = SWIG_AsVal_int(obj1, &val2);
13633 if (!SWIG_IsOK(ecode2)) {
13634 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13635 }
13636 arg2 = static_cast< wxFontEncoding >(val2);
13637 if (obj2) {
36ed4f51 13638 {
1bd55598
RD
13639 arg3 = wxString_in_helper(obj2);
13640 if (arg3 == NULL) SWIG_fail;
13641 temp3 = true;
36ed4f51 13642 }
1bd55598
RD
13643 }
13644 {
13645 PyThreadState* __tstate = wxPyBeginAllowThreads();
13646 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13647 wxPyEndAllowThreads(__tstate);
13648 if (PyErr_Occurred()) SWIG_fail;
13649 }
13650 {
13651 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13652 }
13653 {
13654 if (temp3)
13655 delete arg3;
13656 }
13657 return resultobj;
13658fail:
13659 {
13660 if (temp3)
13661 delete arg3;
13662 }
13663 return NULL;
13664}
13665
13666
13667SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13668 PyObject *resultobj = 0;
13669 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13670 wxWindow *arg2 = (wxWindow *) 0 ;
13671 void *argp1 = 0 ;
13672 int res1 = 0 ;
13673 void *argp2 = 0 ;
13674 int res2 = 0 ;
13675 PyObject * obj0 = 0 ;
13676 PyObject * obj1 = 0 ;
13677 char * kwnames[] = {
13678 (char *) "self",(char *) "parent", NULL
13679 };
13680
13681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13683 if (!SWIG_IsOK(res1)) {
13684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13685 }
13686 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13687 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13688 if (!SWIG_IsOK(res2)) {
13689 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13690 }
13691 arg2 = reinterpret_cast< wxWindow * >(argp2);
13692 {
13693 PyThreadState* __tstate = wxPyBeginAllowThreads();
13694 (arg1)->SetDialogParent(arg2);
13695 wxPyEndAllowThreads(__tstate);
13696 if (PyErr_Occurred()) SWIG_fail;
13697 }
13698 resultobj = SWIG_Py_Void();
13699 return resultobj;
13700fail:
13701 return NULL;
13702}
13703
13704
13705SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13706 PyObject *resultobj = 0;
13707 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13708 wxString *arg2 = 0 ;
13709 void *argp1 = 0 ;
13710 int res1 = 0 ;
13711 bool temp2 = false ;
13712 PyObject * obj0 = 0 ;
13713 PyObject * obj1 = 0 ;
13714 char * kwnames[] = {
13715 (char *) "self",(char *) "title", NULL
13716 };
13717
13718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13720 if (!SWIG_IsOK(res1)) {
13721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13722 }
13723 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13724 {
13725 arg2 = wxString_in_helper(obj1);
13726 if (arg2 == NULL) SWIG_fail;
13727 temp2 = true;
13728 }
13729 {
13730 PyThreadState* __tstate = wxPyBeginAllowThreads();
13731 (arg1)->SetDialogTitle((wxString const &)*arg2);
13732 wxPyEndAllowThreads(__tstate);
13733 if (PyErr_Occurred()) SWIG_fail;
13734 }
13735 resultobj = SWIG_Py_Void();
13736 {
13737 if (temp2)
13738 delete arg2;
13739 }
13740 return resultobj;
13741fail:
13742 {
13743 if (temp2)
13744 delete arg2;
13745 }
13746 return NULL;
13747}
13748
13749
13750SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13751 PyObject *obj;
13752 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13753 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13754 return SWIG_Py_Void();
13755}
13756
13757SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13758 return SWIG_Python_InitShadowInstance(args);
13759}
13760
13761SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13762 PyObject *resultobj = 0;
13763 int arg1 ;
13764 int arg2 ;
13765 int arg3 ;
13766 int arg4 ;
13767 bool arg5 = (bool) false ;
13768 wxString const &arg6_defvalue = wxPyEmptyString ;
13769 wxString *arg6 = (wxString *) &arg6_defvalue ;
13770 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13771 wxFont *result = 0 ;
13772 int val1 ;
13773 int ecode1 = 0 ;
13774 int val2 ;
13775 int ecode2 = 0 ;
13776 int val3 ;
13777 int ecode3 = 0 ;
13778 int val4 ;
13779 int ecode4 = 0 ;
13780 bool val5 ;
13781 int ecode5 = 0 ;
13782 bool temp6 = false ;
13783 int val7 ;
13784 int ecode7 = 0 ;
13785 PyObject * obj0 = 0 ;
13786 PyObject * obj1 = 0 ;
13787 PyObject * obj2 = 0 ;
13788 PyObject * obj3 = 0 ;
13789 PyObject * obj4 = 0 ;
13790 PyObject * obj5 = 0 ;
13791 PyObject * obj6 = 0 ;
13792 char * kwnames[] = {
13793 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13794 };
13795
13796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13797 ecode1 = SWIG_AsVal_int(obj0, &val1);
13798 if (!SWIG_IsOK(ecode1)) {
13799 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13800 }
13801 arg1 = static_cast< int >(val1);
13802 ecode2 = SWIG_AsVal_int(obj1, &val2);
13803 if (!SWIG_IsOK(ecode2)) {
13804 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13805 }
13806 arg2 = static_cast< int >(val2);
13807 ecode3 = SWIG_AsVal_int(obj2, &val3);
13808 if (!SWIG_IsOK(ecode3)) {
13809 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13810 }
13811 arg3 = static_cast< int >(val3);
13812 ecode4 = SWIG_AsVal_int(obj3, &val4);
13813 if (!SWIG_IsOK(ecode4)) {
13814 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13815 }
13816 arg4 = static_cast< int >(val4);
13817 if (obj4) {
13818 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13819 if (!SWIG_IsOK(ecode5)) {
13820 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13821 }
13822 arg5 = static_cast< bool >(val5);
13823 }
13824 if (obj5) {
d55e5bfc 13825 {
1bd55598
RD
13826 arg6 = wxString_in_helper(obj5);
13827 if (arg6 == NULL) SWIG_fail;
13828 temp6 = true;
d55e5bfc 13829 }
1bd55598
RD
13830 }
13831 if (obj6) {
13832 ecode7 = SWIG_AsVal_int(obj6, &val7);
13833 if (!SWIG_IsOK(ecode7)) {
13834 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13835 }
13836 arg7 = static_cast< wxFontEncoding >(val7);
13837 }
13838 {
13839 if (!wxPyCheckForApp()) SWIG_fail;
13840 PyThreadState* __tstate = wxPyBeginAllowThreads();
13841 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13842 wxPyEndAllowThreads(__tstate);
13843 if (PyErr_Occurred()) SWIG_fail;
13844 }
13845 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
13846 {
13847 if (temp6)
13848 delete arg6;
13849 }
13850 return resultobj;
13851fail:
13852 {
13853 if (temp6)
13854 delete arg6;
13855 }
13856 return NULL;
d55e5bfc
RD
13857}
13858
13859
1bd55598
RD
13860SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13861 PyObject *resultobj = 0;
13862 wxFont *arg1 = (wxFont *) 0 ;
13863 void *argp1 = 0 ;
13864 int res1 = 0 ;
13865 PyObject *swig_obj[1] ;
13866
13867 if (!args) SWIG_fail;
13868 swig_obj[0] = args;
13869 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
13870 if (!SWIG_IsOK(res1)) {
13871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
13872 }
13873 arg1 = reinterpret_cast< wxFont * >(argp1);
13874 {
13875 PyThreadState* __tstate = wxPyBeginAllowThreads();
13876 delete arg1;
d55e5bfc 13877
1bd55598
RD
13878 wxPyEndAllowThreads(__tstate);
13879 if (PyErr_Occurred()) SWIG_fail;
13880 }
13881 resultobj = SWIG_Py_Void();
13882 return resultobj;
13883fail:
13884 return NULL;
13885}
13886
13887
13888SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13889 PyObject *resultobj = 0;
13890 wxNativeFontInfo *arg1 = 0 ;
13891 wxFont *result = 0 ;
13892 void *argp1 = 0 ;
13893 int res1 = 0 ;
13894 PyObject * obj0 = 0 ;
13895 char * kwnames[] = {
13896 (char *) "info", NULL
13897 };
13898
13899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
13900 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13901 if (!SWIG_IsOK(res1)) {
13902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13903 }
13904 if (!argp1) {
13905 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13906 }
13907 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13908 {
13909 if (!wxPyCheckForApp()) SWIG_fail;
13910 PyThreadState* __tstate = wxPyBeginAllowThreads();
13911 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
13912 wxPyEndAllowThreads(__tstate);
13913 if (PyErr_Occurred()) SWIG_fail;
13914 }
13915 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13916 return resultobj;
13917fail:
13918 return NULL;
d55e5bfc
RD
13919}
13920
13921
1bd55598
RD
13922SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13923 PyObject *resultobj = 0;
13924 wxString *arg1 = 0 ;
13925 wxFont *result = 0 ;
13926 bool temp1 = false ;
13927 PyObject * obj0 = 0 ;
13928 char * kwnames[] = {
13929 (char *) "info", NULL
13930 };
13931
13932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
13933 {
13934 arg1 = wxString_in_helper(obj0);
13935 if (arg1 == NULL) SWIG_fail;
13936 temp1 = true;
13937 }
13938 {
13939 if (!wxPyCheckForApp()) SWIG_fail;
13940 PyThreadState* __tstate = wxPyBeginAllowThreads();
13941 result = (wxFont *)new_wxFont((wxString const &)*arg1);
13942 wxPyEndAllowThreads(__tstate);
13943 if (PyErr_Occurred()) SWIG_fail;
13944 }
13945 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13946 {
13947 if (temp1)
13948 delete arg1;
13949 }
13950 return resultobj;
13951fail:
13952 {
13953 if (temp1)
13954 delete arg1;
13955 }
13956 return NULL;
13957}
13958
13959
13960SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13961 PyObject *resultobj = 0;
13962 int arg1 ;
13963 wxFontFamily arg2 ;
13964 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13965 wxString const &arg4_defvalue = wxPyEmptyString ;
13966 wxString *arg4 = (wxString *) &arg4_defvalue ;
13967 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13968 wxFont *result = 0 ;
13969 int val1 ;
13970 int ecode1 = 0 ;
13971 int val2 ;
13972 int ecode2 = 0 ;
13973 int val3 ;
13974 int ecode3 = 0 ;
13975 bool temp4 = false ;
13976 int val5 ;
13977 int ecode5 = 0 ;
13978 PyObject * obj0 = 0 ;
13979 PyObject * obj1 = 0 ;
13980 PyObject * obj2 = 0 ;
13981 PyObject * obj3 = 0 ;
13982 PyObject * obj4 = 0 ;
13983 char * kwnames[] = {
13984 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13985 };
13986
13987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13988 ecode1 = SWIG_AsVal_int(obj0, &val1);
13989 if (!SWIG_IsOK(ecode1)) {
13990 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
13991 }
13992 arg1 = static_cast< int >(val1);
13993 ecode2 = SWIG_AsVal_int(obj1, &val2);
13994 if (!SWIG_IsOK(ecode2)) {
13995 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
13996 }
13997 arg2 = static_cast< wxFontFamily >(val2);
13998 if (obj2) {
13999 ecode3 = SWIG_AsVal_int(obj2, &val3);
14000 if (!SWIG_IsOK(ecode3)) {
14001 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
14002 }
14003 arg3 = static_cast< int >(val3);
14004 }
14005 if (obj3) {
36ed4f51 14006 {
1bd55598
RD
14007 arg4 = wxString_in_helper(obj3);
14008 if (arg4 == NULL) SWIG_fail;
14009 temp4 = true;
36ed4f51 14010 }
1bd55598
RD
14011 }
14012 if (obj4) {
14013 ecode5 = SWIG_AsVal_int(obj4, &val5);
14014 if (!SWIG_IsOK(ecode5)) {
14015 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14016 }
14017 arg5 = static_cast< wxFontEncoding >(val5);
14018 }
14019 {
14020 if (!wxPyCheckForApp()) SWIG_fail;
14021 PyThreadState* __tstate = wxPyBeginAllowThreads();
14022 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14023 wxPyEndAllowThreads(__tstate);
14024 if (PyErr_Occurred()) SWIG_fail;
14025 }
14026 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14027 {
14028 if (temp4)
14029 delete arg4;
14030 }
14031 return resultobj;
14032fail:
14033 {
14034 if (temp4)
14035 delete arg4;
14036 }
14037 return NULL;
14038}
14039
14040
14041SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14042 PyObject *resultobj = 0;
14043 wxSize *arg1 = 0 ;
14044 int arg2 ;
14045 int arg3 ;
14046 int arg4 ;
14047 bool arg5 = (bool) false ;
14048 wxString const &arg6_defvalue = wxEmptyString ;
14049 wxString *arg6 = (wxString *) &arg6_defvalue ;
14050 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14051 wxFont *result = 0 ;
14052 wxSize temp1 ;
14053 int val2 ;
14054 int ecode2 = 0 ;
14055 int val3 ;
14056 int ecode3 = 0 ;
14057 int val4 ;
14058 int ecode4 = 0 ;
14059 bool val5 ;
14060 int ecode5 = 0 ;
14061 bool temp6 = false ;
14062 int val7 ;
14063 int ecode7 = 0 ;
14064 PyObject * obj0 = 0 ;
14065 PyObject * obj1 = 0 ;
14066 PyObject * obj2 = 0 ;
14067 PyObject * obj3 = 0 ;
14068 PyObject * obj4 = 0 ;
14069 PyObject * obj5 = 0 ;
14070 PyObject * obj6 = 0 ;
14071 char * kwnames[] = {
14072 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14073 };
14074
14075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14076 {
14077 arg1 = &temp1;
14078 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14079 }
14080 ecode2 = SWIG_AsVal_int(obj1, &val2);
14081 if (!SWIG_IsOK(ecode2)) {
14082 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14083 }
14084 arg2 = static_cast< int >(val2);
14085 ecode3 = SWIG_AsVal_int(obj2, &val3);
14086 if (!SWIG_IsOK(ecode3)) {
14087 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14088 }
14089 arg3 = static_cast< int >(val3);
14090 ecode4 = SWIG_AsVal_int(obj3, &val4);
14091 if (!SWIG_IsOK(ecode4)) {
14092 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14093 }
14094 arg4 = static_cast< int >(val4);
14095 if (obj4) {
14096 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14097 if (!SWIG_IsOK(ecode5)) {
14098 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14099 }
14100 arg5 = static_cast< bool >(val5);
14101 }
14102 if (obj5) {
d55e5bfc 14103 {
1bd55598
RD
14104 arg6 = wxString_in_helper(obj5);
14105 if (arg6 == NULL) SWIG_fail;
14106 temp6 = true;
d55e5bfc 14107 }
1bd55598
RD
14108 }
14109 if (obj6) {
14110 ecode7 = SWIG_AsVal_int(obj6, &val7);
14111 if (!SWIG_IsOK(ecode7)) {
14112 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14113 }
14114 arg7 = static_cast< wxFontEncoding >(val7);
14115 }
14116 {
14117 if (!wxPyCheckForApp()) SWIG_fail;
14118 PyThreadState* __tstate = wxPyBeginAllowThreads();
14119 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14120 wxPyEndAllowThreads(__tstate);
14121 if (PyErr_Occurred()) SWIG_fail;
14122 }
14123 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14124 {
14125 if (temp6)
14126 delete arg6;
14127 }
14128 return resultobj;
14129fail:
14130 {
14131 if (temp6)
14132 delete arg6;
14133 }
14134 return NULL;
14135}
14136
14137
14138SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14139 PyObject *resultobj = 0;
14140 wxSize *arg1 = 0 ;
14141 wxFontFamily arg2 ;
14142 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14143 wxString const &arg4_defvalue = wxEmptyString ;
14144 wxString *arg4 = (wxString *) &arg4_defvalue ;
14145 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14146 wxFont *result = 0 ;
14147 wxSize temp1 ;
14148 int val2 ;
14149 int ecode2 = 0 ;
14150 int val3 ;
14151 int ecode3 = 0 ;
14152 bool temp4 = false ;
14153 int val5 ;
14154 int ecode5 = 0 ;
14155 PyObject * obj0 = 0 ;
14156 PyObject * obj1 = 0 ;
14157 PyObject * obj2 = 0 ;
14158 PyObject * obj3 = 0 ;
14159 PyObject * obj4 = 0 ;
14160 char * kwnames[] = {
14161 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14162 };
14163
14164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14165 {
14166 arg1 = &temp1;
14167 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14168 }
14169 ecode2 = SWIG_AsVal_int(obj1, &val2);
14170 if (!SWIG_IsOK(ecode2)) {
14171 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14172 }
14173 arg2 = static_cast< wxFontFamily >(val2);
14174 if (obj2) {
14175 ecode3 = SWIG_AsVal_int(obj2, &val3);
14176 if (!SWIG_IsOK(ecode3)) {
14177 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14178 }
14179 arg3 = static_cast< int >(val3);
14180 }
14181 if (obj3) {
36ed4f51 14182 {
1bd55598
RD
14183 arg4 = wxString_in_helper(obj3);
14184 if (arg4 == NULL) SWIG_fail;
14185 temp4 = true;
36ed4f51 14186 }
1bd55598
RD
14187 }
14188 if (obj4) {
14189 ecode5 = SWIG_AsVal_int(obj4, &val5);
14190 if (!SWIG_IsOK(ecode5)) {
14191 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14192 }
14193 arg5 = static_cast< wxFontEncoding >(val5);
14194 }
14195 {
14196 if (!wxPyCheckForApp()) SWIG_fail;
14197 PyThreadState* __tstate = wxPyBeginAllowThreads();
14198 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14199 wxPyEndAllowThreads(__tstate);
14200 if (PyErr_Occurred()) SWIG_fail;
14201 }
14202 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14203 {
14204 if (temp4)
14205 delete arg4;
14206 }
14207 return resultobj;
14208fail:
14209 {
14210 if (temp4)
14211 delete arg4;
14212 }
14213 return NULL;
d55e5bfc
RD
14214}
14215
14216
b39fe951 14217SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
14218 PyObject *resultobj = 0;
14219 wxFont *arg1 = (wxFont *) 0 ;
14220 bool result;
14221 void *argp1 = 0 ;
14222 int res1 = 0 ;
14223 PyObject *swig_obj[1] ;
14224
14225 if (!args) SWIG_fail;
14226 swig_obj[0] = args;
14227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14228 if (!SWIG_IsOK(res1)) {
b39fe951 14229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
1bd55598
RD
14230 }
14231 arg1 = reinterpret_cast< wxFont * >(argp1);
14232 {
14233 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 14234 result = (bool)((wxFont const *)arg1)->IsOk();
1bd55598
RD
14235 wxPyEndAllowThreads(__tstate);
14236 if (PyErr_Occurred()) SWIG_fail;
14237 }
14238 {
14239 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14240 }
14241 return resultobj;
14242fail:
14243 return NULL;
14244}
14245
14246
14247SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14248 PyObject *resultobj = 0;
14249 wxFont *arg1 = (wxFont *) 0 ;
14250 wxFont *arg2 = (wxFont *) 0 ;
14251 bool result;
14252 void *argp1 = 0 ;
14253 int res1 = 0 ;
14254 void *argp2 = 0 ;
14255 int res2 = 0 ;
14256 PyObject * obj0 = 0 ;
14257 PyObject * obj1 = 0 ;
14258 char * kwnames[] = {
14259 (char *) "self",(char *) "other", NULL
14260 };
14261
14262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14264 if (!SWIG_IsOK(res1)) {
14265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14266 }
14267 arg1 = reinterpret_cast< wxFont * >(argp1);
14268 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14269 if (!SWIG_IsOK(res2)) {
14270 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14271 }
14272 arg2 = reinterpret_cast< wxFont * >(argp2);
14273 {
14274 PyThreadState* __tstate = wxPyBeginAllowThreads();
14275 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14276 wxPyEndAllowThreads(__tstate);
14277 if (PyErr_Occurred()) SWIG_fail;
14278 }
14279 {
14280 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14281 }
14282 return resultobj;
14283fail:
14284 return NULL;
14285}
14286
14287
14288SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14289 PyObject *resultobj = 0;
14290 wxFont *arg1 = (wxFont *) 0 ;
14291 wxFont *arg2 = (wxFont *) 0 ;
14292 bool result;
14293 void *argp1 = 0 ;
14294 int res1 = 0 ;
14295 void *argp2 = 0 ;
14296 int res2 = 0 ;
14297 PyObject * obj0 = 0 ;
14298 PyObject * obj1 = 0 ;
14299 char * kwnames[] = {
14300 (char *) "self",(char *) "other", NULL
14301 };
14302
14303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14305 if (!SWIG_IsOK(res1)) {
14306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14307 }
14308 arg1 = reinterpret_cast< wxFont * >(argp1);
14309 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14310 if (!SWIG_IsOK(res2)) {
14311 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14312 }
14313 arg2 = reinterpret_cast< wxFont * >(argp2);
14314 {
14315 PyThreadState* __tstate = wxPyBeginAllowThreads();
14316 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14317 wxPyEndAllowThreads(__tstate);
14318 if (PyErr_Occurred()) SWIG_fail;
14319 }
14320 {
14321 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14322 }
14323 return resultobj;
14324fail:
14325 return NULL;
d55e5bfc
RD
14326}
14327
14328
1bd55598
RD
14329SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14330 PyObject *resultobj = 0;
14331 wxFont *arg1 = (wxFont *) 0 ;
14332 int result;
14333 void *argp1 = 0 ;
14334 int res1 = 0 ;
14335 PyObject *swig_obj[1] ;
14336
14337 if (!args) SWIG_fail;
14338 swig_obj[0] = args;
14339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14340 if (!SWIG_IsOK(res1)) {
14341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14342 }
14343 arg1 = reinterpret_cast< wxFont * >(argp1);
14344 {
14345 PyThreadState* __tstate = wxPyBeginAllowThreads();
14346 result = (int)((wxFont const *)arg1)->GetPointSize();
14347 wxPyEndAllowThreads(__tstate);
14348 if (PyErr_Occurred()) SWIG_fail;
14349 }
14350 resultobj = SWIG_From_int(static_cast< int >(result));
14351 return resultobj;
14352fail:
14353 return NULL;
d55e5bfc
RD
14354}
14355
14356
1bd55598
RD
14357SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14358 PyObject *resultobj = 0;
14359 wxFont *arg1 = (wxFont *) 0 ;
14360 wxSize result;
14361 void *argp1 = 0 ;
14362 int res1 = 0 ;
14363 PyObject *swig_obj[1] ;
14364
14365 if (!args) SWIG_fail;
14366 swig_obj[0] = args;
14367 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14368 if (!SWIG_IsOK(res1)) {
14369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14370 }
14371 arg1 = reinterpret_cast< wxFont * >(argp1);
14372 {
14373 PyThreadState* __tstate = wxPyBeginAllowThreads();
14374 result = ((wxFont const *)arg1)->GetPixelSize();
14375 wxPyEndAllowThreads(__tstate);
14376 if (PyErr_Occurred()) SWIG_fail;
14377 }
14378 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14379 return resultobj;
14380fail:
14381 return NULL;
d55e5bfc
RD
14382}
14383
14384
1bd55598
RD
14385SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14386 PyObject *resultobj = 0;
14387 wxFont *arg1 = (wxFont *) 0 ;
14388 bool result;
14389 void *argp1 = 0 ;
14390 int res1 = 0 ;
14391 PyObject *swig_obj[1] ;
14392
14393 if (!args) SWIG_fail;
14394 swig_obj[0] = args;
14395 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14396 if (!SWIG_IsOK(res1)) {
14397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14398 }
14399 arg1 = reinterpret_cast< wxFont * >(argp1);
14400 {
14401 PyThreadState* __tstate = wxPyBeginAllowThreads();
14402 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14403 wxPyEndAllowThreads(__tstate);
14404 if (PyErr_Occurred()) SWIG_fail;
14405 }
14406 {
14407 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14408 }
14409 return resultobj;
14410fail:
14411 return NULL;
d55e5bfc
RD
14412}
14413
14414
1bd55598
RD
14415SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14416 PyObject *resultobj = 0;
14417 wxFont *arg1 = (wxFont *) 0 ;
14418 int result;
14419 void *argp1 = 0 ;
14420 int res1 = 0 ;
14421 PyObject *swig_obj[1] ;
14422
14423 if (!args) SWIG_fail;
14424 swig_obj[0] = args;
14425 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14426 if (!SWIG_IsOK(res1)) {
14427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14428 }
14429 arg1 = reinterpret_cast< wxFont * >(argp1);
14430 {
14431 PyThreadState* __tstate = wxPyBeginAllowThreads();
14432 result = (int)((wxFont const *)arg1)->GetFamily();
14433 wxPyEndAllowThreads(__tstate);
14434 if (PyErr_Occurred()) SWIG_fail;
14435 }
14436 resultobj = SWIG_From_int(static_cast< int >(result));
14437 return resultobj;
14438fail:
14439 return NULL;
d55e5bfc
RD
14440}
14441
14442
1bd55598
RD
14443SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14444 PyObject *resultobj = 0;
14445 wxFont *arg1 = (wxFont *) 0 ;
14446 int result;
14447 void *argp1 = 0 ;
14448 int res1 = 0 ;
14449 PyObject *swig_obj[1] ;
14450
14451 if (!args) SWIG_fail;
14452 swig_obj[0] = args;
14453 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14454 if (!SWIG_IsOK(res1)) {
14455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14456 }
14457 arg1 = reinterpret_cast< wxFont * >(argp1);
14458 {
14459 PyThreadState* __tstate = wxPyBeginAllowThreads();
14460 result = (int)((wxFont const *)arg1)->GetStyle();
14461 wxPyEndAllowThreads(__tstate);
14462 if (PyErr_Occurred()) SWIG_fail;
14463 }
14464 resultobj = SWIG_From_int(static_cast< int >(result));
14465 return resultobj;
14466fail:
14467 return NULL;
d55e5bfc
RD
14468}
14469
14470
1bd55598
RD
14471SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14472 PyObject *resultobj = 0;
14473 wxFont *arg1 = (wxFont *) 0 ;
14474 int result;
14475 void *argp1 = 0 ;
14476 int res1 = 0 ;
14477 PyObject *swig_obj[1] ;
14478
14479 if (!args) SWIG_fail;
14480 swig_obj[0] = args;
14481 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14482 if (!SWIG_IsOK(res1)) {
14483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14484 }
14485 arg1 = reinterpret_cast< wxFont * >(argp1);
14486 {
14487 PyThreadState* __tstate = wxPyBeginAllowThreads();
14488 result = (int)((wxFont const *)arg1)->GetWeight();
14489 wxPyEndAllowThreads(__tstate);
14490 if (PyErr_Occurred()) SWIG_fail;
14491 }
14492 resultobj = SWIG_From_int(static_cast< int >(result));
14493 return resultobj;
14494fail:
14495 return NULL;
d55e5bfc
RD
14496}
14497
14498
1bd55598
RD
14499SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14500 PyObject *resultobj = 0;
14501 wxFont *arg1 = (wxFont *) 0 ;
14502 bool result;
14503 void *argp1 = 0 ;
14504 int res1 = 0 ;
14505 PyObject *swig_obj[1] ;
14506
14507 if (!args) SWIG_fail;
14508 swig_obj[0] = args;
14509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14510 if (!SWIG_IsOK(res1)) {
14511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14512 }
14513 arg1 = reinterpret_cast< wxFont * >(argp1);
14514 {
14515 PyThreadState* __tstate = wxPyBeginAllowThreads();
14516 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14517 wxPyEndAllowThreads(__tstate);
14518 if (PyErr_Occurred()) SWIG_fail;
14519 }
14520 {
14521 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14522 }
14523 return resultobj;
14524fail:
14525 return NULL;
d55e5bfc
RD
14526}
14527
14528
1bd55598
RD
14529SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14530 PyObject *resultobj = 0;
14531 wxFont *arg1 = (wxFont *) 0 ;
14532 wxString result;
14533 void *argp1 = 0 ;
14534 int res1 = 0 ;
14535 PyObject *swig_obj[1] ;
14536
14537 if (!args) SWIG_fail;
14538 swig_obj[0] = args;
14539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14540 if (!SWIG_IsOK(res1)) {
14541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14542 }
14543 arg1 = reinterpret_cast< wxFont * >(argp1);
14544 {
14545 PyThreadState* __tstate = wxPyBeginAllowThreads();
14546 result = ((wxFont const *)arg1)->GetFaceName();
14547 wxPyEndAllowThreads(__tstate);
14548 if (PyErr_Occurred()) SWIG_fail;
14549 }
14550 {
14551#if wxUSE_UNICODE
14552 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14553#else
14554 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14555#endif
14556 }
14557 return resultobj;
14558fail:
14559 return NULL;
d55e5bfc
RD
14560}
14561
14562
1bd55598
RD
14563SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14564 PyObject *resultobj = 0;
14565 wxFont *arg1 = (wxFont *) 0 ;
14566 wxFontEncoding result;
14567 void *argp1 = 0 ;
14568 int res1 = 0 ;
14569 PyObject *swig_obj[1] ;
14570
14571 if (!args) SWIG_fail;
14572 swig_obj[0] = args;
14573 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14574 if (!SWIG_IsOK(res1)) {
14575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14576 }
14577 arg1 = reinterpret_cast< wxFont * >(argp1);
14578 {
14579 PyThreadState* __tstate = wxPyBeginAllowThreads();
14580 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14581 wxPyEndAllowThreads(__tstate);
14582 if (PyErr_Occurred()) SWIG_fail;
14583 }
14584 resultobj = SWIG_From_int(static_cast< int >(result));
14585 return resultobj;
14586fail:
14587 return NULL;
d55e5bfc
RD
14588}
14589
14590
1bd55598
RD
14591SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14592 PyObject *resultobj = 0;
14593 wxFont *arg1 = (wxFont *) 0 ;
14594 wxNativeFontInfo *result = 0 ;
14595 void *argp1 = 0 ;
14596 int res1 = 0 ;
14597 PyObject *swig_obj[1] ;
14598
14599 if (!args) SWIG_fail;
14600 swig_obj[0] = args;
14601 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14602 if (!SWIG_IsOK(res1)) {
14603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14604 }
14605 arg1 = reinterpret_cast< wxFont * >(argp1);
14606 {
14607 PyThreadState* __tstate = wxPyBeginAllowThreads();
14608 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14609 wxPyEndAllowThreads(__tstate);
14610 if (PyErr_Occurred()) SWIG_fail;
14611 }
14612 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14613 return resultobj;
14614fail:
14615 return NULL;
d55e5bfc
RD
14616}
14617
14618
1bd55598
RD
14619SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14620 PyObject *resultobj = 0;
14621 wxFont *arg1 = (wxFont *) 0 ;
14622 bool result;
14623 void *argp1 = 0 ;
14624 int res1 = 0 ;
14625 PyObject *swig_obj[1] ;
14626
14627 if (!args) SWIG_fail;
14628 swig_obj[0] = args;
14629 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14630 if (!SWIG_IsOK(res1)) {
14631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14632 }
14633 arg1 = reinterpret_cast< wxFont * >(argp1);
14634 {
14635 PyThreadState* __tstate = wxPyBeginAllowThreads();
14636 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14637 wxPyEndAllowThreads(__tstate);
14638 if (PyErr_Occurred()) SWIG_fail;
14639 }
14640 {
14641 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14642 }
14643 return resultobj;
14644fail:
14645 return NULL;
d55e5bfc
RD
14646}
14647
14648
1bd55598
RD
14649SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14650 PyObject *resultobj = 0;
14651 wxFont *arg1 = (wxFont *) 0 ;
14652 wxString result;
14653 void *argp1 = 0 ;
14654 int res1 = 0 ;
14655 PyObject *swig_obj[1] ;
14656
14657 if (!args) SWIG_fail;
14658 swig_obj[0] = args;
14659 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14660 if (!SWIG_IsOK(res1)) {
14661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14662 }
14663 arg1 = reinterpret_cast< wxFont * >(argp1);
14664 {
14665 PyThreadState* __tstate = wxPyBeginAllowThreads();
14666 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14667 wxPyEndAllowThreads(__tstate);
14668 if (PyErr_Occurred()) SWIG_fail;
14669 }
14670 {
14671#if wxUSE_UNICODE
14672 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14673#else
14674 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14675#endif
14676 }
14677 return resultobj;
14678fail:
14679 return NULL;
d55e5bfc
RD
14680}
14681
14682
1bd55598
RD
14683SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14684 PyObject *resultobj = 0;
14685 wxFont *arg1 = (wxFont *) 0 ;
14686 wxString result;
14687 void *argp1 = 0 ;
14688 int res1 = 0 ;
14689 PyObject *swig_obj[1] ;
14690
14691 if (!args) SWIG_fail;
14692 swig_obj[0] = args;
14693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14694 if (!SWIG_IsOK(res1)) {
14695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14696 }
14697 arg1 = reinterpret_cast< wxFont * >(argp1);
14698 {
14699 PyThreadState* __tstate = wxPyBeginAllowThreads();
14700 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14701 wxPyEndAllowThreads(__tstate);
14702 if (PyErr_Occurred()) SWIG_fail;
14703 }
14704 {
14705#if wxUSE_UNICODE
14706 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14707#else
14708 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14709#endif
14710 }
14711 return resultobj;
14712fail:
14713 return NULL;
14714}
14715
14716
14717SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14718 PyObject *resultobj = 0;
14719 wxFont *arg1 = (wxFont *) 0 ;
14720 int arg2 ;
14721 void *argp1 = 0 ;
14722 int res1 = 0 ;
14723 int val2 ;
14724 int ecode2 = 0 ;
14725 PyObject * obj0 = 0 ;
14726 PyObject * obj1 = 0 ;
14727 char * kwnames[] = {
14728 (char *) "self",(char *) "pointSize", NULL
14729 };
14730
14731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14732 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14733 if (!SWIG_IsOK(res1)) {
14734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14735 }
14736 arg1 = reinterpret_cast< wxFont * >(argp1);
14737 ecode2 = SWIG_AsVal_int(obj1, &val2);
14738 if (!SWIG_IsOK(ecode2)) {
14739 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14740 }
14741 arg2 = static_cast< int >(val2);
14742 {
14743 PyThreadState* __tstate = wxPyBeginAllowThreads();
14744 (arg1)->SetPointSize(arg2);
14745 wxPyEndAllowThreads(__tstate);
14746 if (PyErr_Occurred()) SWIG_fail;
14747 }
14748 resultobj = SWIG_Py_Void();
14749 return resultobj;
14750fail:
14751 return NULL;
14752}
14753
14754
14755SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14756 PyObject *resultobj = 0;
14757 wxFont *arg1 = (wxFont *) 0 ;
14758 wxSize *arg2 = 0 ;
14759 void *argp1 = 0 ;
14760 int res1 = 0 ;
14761 wxSize temp2 ;
14762 PyObject * obj0 = 0 ;
14763 PyObject * obj1 = 0 ;
14764 char * kwnames[] = {
14765 (char *) "self",(char *) "pixelSize", NULL
14766 };
14767
14768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14770 if (!SWIG_IsOK(res1)) {
14771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14772 }
14773 arg1 = reinterpret_cast< wxFont * >(argp1);
14774 {
14775 arg2 = &temp2;
14776 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14777 }
14778 {
14779 PyThreadState* __tstate = wxPyBeginAllowThreads();
14780 (arg1)->SetPixelSize((wxSize const &)*arg2);
14781 wxPyEndAllowThreads(__tstate);
14782 if (PyErr_Occurred()) SWIG_fail;
14783 }
14784 resultobj = SWIG_Py_Void();
14785 return resultobj;
14786fail:
14787 return NULL;
14788}
14789
14790
14791SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14792 PyObject *resultobj = 0;
14793 wxFont *arg1 = (wxFont *) 0 ;
14794 int arg2 ;
14795 void *argp1 = 0 ;
14796 int res1 = 0 ;
14797 int val2 ;
14798 int ecode2 = 0 ;
14799 PyObject * obj0 = 0 ;
14800 PyObject * obj1 = 0 ;
14801 char * kwnames[] = {
14802 (char *) "self",(char *) "family", NULL
14803 };
14804
14805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14807 if (!SWIG_IsOK(res1)) {
14808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14809 }
14810 arg1 = reinterpret_cast< wxFont * >(argp1);
14811 ecode2 = SWIG_AsVal_int(obj1, &val2);
14812 if (!SWIG_IsOK(ecode2)) {
14813 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14814 }
14815 arg2 = static_cast< int >(val2);
14816 {
14817 PyThreadState* __tstate = wxPyBeginAllowThreads();
14818 (arg1)->SetFamily(arg2);
14819 wxPyEndAllowThreads(__tstate);
14820 if (PyErr_Occurred()) SWIG_fail;
14821 }
14822 resultobj = SWIG_Py_Void();
14823 return resultobj;
14824fail:
14825 return NULL;
14826}
14827
14828
14829SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14830 PyObject *resultobj = 0;
14831 wxFont *arg1 = (wxFont *) 0 ;
14832 int arg2 ;
14833 void *argp1 = 0 ;
14834 int res1 = 0 ;
14835 int val2 ;
14836 int ecode2 = 0 ;
14837 PyObject * obj0 = 0 ;
14838 PyObject * obj1 = 0 ;
14839 char * kwnames[] = {
14840 (char *) "self",(char *) "style", NULL
14841 };
14842
14843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
14844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14845 if (!SWIG_IsOK(res1)) {
14846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
14847 }
14848 arg1 = reinterpret_cast< wxFont * >(argp1);
14849 ecode2 = SWIG_AsVal_int(obj1, &val2);
14850 if (!SWIG_IsOK(ecode2)) {
14851 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
14852 }
14853 arg2 = static_cast< int >(val2);
14854 {
14855 PyThreadState* __tstate = wxPyBeginAllowThreads();
14856 (arg1)->SetStyle(arg2);
14857 wxPyEndAllowThreads(__tstate);
14858 if (PyErr_Occurred()) SWIG_fail;
14859 }
14860 resultobj = SWIG_Py_Void();
14861 return resultobj;
14862fail:
14863 return NULL;
14864}
14865
14866
14867SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14868 PyObject *resultobj = 0;
14869 wxFont *arg1 = (wxFont *) 0 ;
14870 int arg2 ;
14871 void *argp1 = 0 ;
14872 int res1 = 0 ;
14873 int val2 ;
14874 int ecode2 = 0 ;
14875 PyObject * obj0 = 0 ;
14876 PyObject * obj1 = 0 ;
14877 char * kwnames[] = {
14878 (char *) "self",(char *) "weight", NULL
14879 };
14880
14881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
14882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14883 if (!SWIG_IsOK(res1)) {
14884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
14885 }
14886 arg1 = reinterpret_cast< wxFont * >(argp1);
14887 ecode2 = SWIG_AsVal_int(obj1, &val2);
14888 if (!SWIG_IsOK(ecode2)) {
14889 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
14890 }
14891 arg2 = static_cast< int >(val2);
14892 {
14893 PyThreadState* __tstate = wxPyBeginAllowThreads();
14894 (arg1)->SetWeight(arg2);
14895 wxPyEndAllowThreads(__tstate);
14896 if (PyErr_Occurred()) SWIG_fail;
14897 }
14898 resultobj = SWIG_Py_Void();
14899 return resultobj;
14900fail:
14901 return NULL;
14902}
14903
14904
14905SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14906 PyObject *resultobj = 0;
14907 wxFont *arg1 = (wxFont *) 0 ;
14908 wxString *arg2 = 0 ;
704eda0c 14909 bool result;
1bd55598
RD
14910 void *argp1 = 0 ;
14911 int res1 = 0 ;
14912 bool temp2 = false ;
14913 PyObject * obj0 = 0 ;
14914 PyObject * obj1 = 0 ;
14915 char * kwnames[] = {
14916 (char *) "self",(char *) "faceName", NULL
14917 };
14918
14919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
14920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14921 if (!SWIG_IsOK(res1)) {
14922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
14923 }
14924 arg1 = reinterpret_cast< wxFont * >(argp1);
14925 {
14926 arg2 = wxString_in_helper(obj1);
14927 if (arg2 == NULL) SWIG_fail;
14928 temp2 = true;
14929 }
14930 {
14931 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 14932 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
1bd55598
RD
14933 wxPyEndAllowThreads(__tstate);
14934 if (PyErr_Occurred()) SWIG_fail;
14935 }
704eda0c
RD
14936 {
14937 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14938 }
1bd55598
RD
14939 {
14940 if (temp2)
14941 delete arg2;
14942 }
14943 return resultobj;
14944fail:
14945 {
14946 if (temp2)
14947 delete arg2;
14948 }
14949 return NULL;
14950}
14951
14952
14953SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14954 PyObject *resultobj = 0;
14955 wxFont *arg1 = (wxFont *) 0 ;
14956 bool arg2 ;
14957 void *argp1 = 0 ;
14958 int res1 = 0 ;
14959 bool val2 ;
14960 int ecode2 = 0 ;
14961 PyObject * obj0 = 0 ;
14962 PyObject * obj1 = 0 ;
14963 char * kwnames[] = {
14964 (char *) "self",(char *) "underlined", NULL
14965 };
14966
14967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
14968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14969 if (!SWIG_IsOK(res1)) {
14970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
14971 }
14972 arg1 = reinterpret_cast< wxFont * >(argp1);
14973 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14974 if (!SWIG_IsOK(ecode2)) {
14975 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
14976 }
14977 arg2 = static_cast< bool >(val2);
14978 {
14979 PyThreadState* __tstate = wxPyBeginAllowThreads();
14980 (arg1)->SetUnderlined(arg2);
14981 wxPyEndAllowThreads(__tstate);
14982 if (PyErr_Occurred()) SWIG_fail;
14983 }
14984 resultobj = SWIG_Py_Void();
14985 return resultobj;
14986fail:
14987 return NULL;
14988}
14989
14990
14991SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14992 PyObject *resultobj = 0;
14993 wxFont *arg1 = (wxFont *) 0 ;
14994 wxFontEncoding arg2 ;
14995 void *argp1 = 0 ;
14996 int res1 = 0 ;
14997 int val2 ;
14998 int ecode2 = 0 ;
14999 PyObject * obj0 = 0 ;
15000 PyObject * obj1 = 0 ;
15001 char * kwnames[] = {
15002 (char *) "self",(char *) "encoding", NULL
15003 };
15004
15005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
15006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15007 if (!SWIG_IsOK(res1)) {
15008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
15009 }
15010 arg1 = reinterpret_cast< wxFont * >(argp1);
15011 ecode2 = SWIG_AsVal_int(obj1, &val2);
15012 if (!SWIG_IsOK(ecode2)) {
15013 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15014 }
15015 arg2 = static_cast< wxFontEncoding >(val2);
15016 {
15017 PyThreadState* __tstate = wxPyBeginAllowThreads();
15018 (arg1)->SetEncoding(arg2);
15019 wxPyEndAllowThreads(__tstate);
15020 if (PyErr_Occurred()) SWIG_fail;
15021 }
15022 resultobj = SWIG_Py_Void();
15023 return resultobj;
15024fail:
15025 return NULL;
15026}
15027
15028
15029SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15030 PyObject *resultobj = 0;
15031 wxFont *arg1 = (wxFont *) 0 ;
15032 wxNativeFontInfo *arg2 = 0 ;
15033 void *argp1 = 0 ;
15034 int res1 = 0 ;
15035 void *argp2 = 0 ;
15036 int res2 = 0 ;
15037 PyObject * obj0 = 0 ;
15038 PyObject * obj1 = 0 ;
15039 char * kwnames[] = {
15040 (char *) "self",(char *) "info", NULL
15041 };
15042
15043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15045 if (!SWIG_IsOK(res1)) {
15046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15047 }
15048 arg1 = reinterpret_cast< wxFont * >(argp1);
15049 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15050 if (!SWIG_IsOK(res2)) {
15051 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15052 }
15053 if (!argp2) {
15054 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15055 }
15056 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15057 {
15058 PyThreadState* __tstate = wxPyBeginAllowThreads();
15059 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15060 wxPyEndAllowThreads(__tstate);
15061 if (PyErr_Occurred()) SWIG_fail;
15062 }
15063 resultobj = SWIG_Py_Void();
15064 return resultobj;
15065fail:
15066 return NULL;
15067}
15068
15069
15070SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15071 PyObject *resultobj = 0;
15072 wxFont *arg1 = (wxFont *) 0 ;
15073 wxString *arg2 = 0 ;
704eda0c 15074 bool result;
1bd55598
RD
15075 void *argp1 = 0 ;
15076 int res1 = 0 ;
15077 bool temp2 = false ;
15078 PyObject * obj0 = 0 ;
15079 PyObject * obj1 = 0 ;
15080 char * kwnames[] = {
15081 (char *) "self",(char *) "info", NULL
15082 };
15083
15084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15086 if (!SWIG_IsOK(res1)) {
15087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15088 }
15089 arg1 = reinterpret_cast< wxFont * >(argp1);
15090 {
15091 arg2 = wxString_in_helper(obj1);
15092 if (arg2 == NULL) SWIG_fail;
15093 temp2 = true;
15094 }
15095 {
15096 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15097 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
1bd55598
RD
15098 wxPyEndAllowThreads(__tstate);
15099 if (PyErr_Occurred()) SWIG_fail;
15100 }
704eda0c
RD
15101 {
15102 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15103 }
1bd55598
RD
15104 {
15105 if (temp2)
15106 delete arg2;
15107 }
15108 return resultobj;
15109fail:
15110 {
15111 if (temp2)
15112 delete arg2;
15113 }
15114 return NULL;
d55e5bfc
RD
15115}
15116
15117
1bd55598
RD
15118SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15119 PyObject *resultobj = 0;
15120 wxFont *arg1 = (wxFont *) 0 ;
15121 wxString *arg2 = 0 ;
704eda0c 15122 bool result;
1bd55598
RD
15123 void *argp1 = 0 ;
15124 int res1 = 0 ;
15125 bool temp2 = false ;
15126 PyObject * obj0 = 0 ;
15127 PyObject * obj1 = 0 ;
15128 char * kwnames[] = {
15129 (char *) "self",(char *) "info", NULL
15130 };
15131
15132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15134 if (!SWIG_IsOK(res1)) {
15135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15136 }
15137 arg1 = reinterpret_cast< wxFont * >(argp1);
15138 {
15139 arg2 = wxString_in_helper(obj1);
15140 if (arg2 == NULL) SWIG_fail;
15141 temp2 = true;
15142 }
15143 {
15144 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15145 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
1bd55598
RD
15146 wxPyEndAllowThreads(__tstate);
15147 if (PyErr_Occurred()) SWIG_fail;
15148 }
704eda0c
RD
15149 {
15150 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15151 }
1bd55598
RD
15152 {
15153 if (temp2)
15154 delete arg2;
15155 }
15156 return resultobj;
15157fail:
15158 {
15159 if (temp2)
15160 delete arg2;
15161 }
15162 return NULL;
d55e5bfc
RD
15163}
15164
15165
1bd55598
RD
15166SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15167 PyObject *resultobj = 0;
15168 wxFont *arg1 = (wxFont *) 0 ;
15169 wxString result;
15170 void *argp1 = 0 ;
15171 int res1 = 0 ;
15172 PyObject *swig_obj[1] ;
15173
15174 if (!args) SWIG_fail;
15175 swig_obj[0] = args;
15176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15177 if (!SWIG_IsOK(res1)) {
15178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15179 }
15180 arg1 = reinterpret_cast< wxFont * >(argp1);
15181 {
15182 PyThreadState* __tstate = wxPyBeginAllowThreads();
15183 result = ((wxFont const *)arg1)->GetFamilyString();
15184 wxPyEndAllowThreads(__tstate);
15185 if (PyErr_Occurred()) SWIG_fail;
15186 }
15187 {
15188#if wxUSE_UNICODE
15189 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15190#else
15191 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15192#endif
15193 }
15194 return resultobj;
15195fail:
15196 return NULL;
d55e5bfc
RD
15197}
15198
15199
1bd55598
RD
15200SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15201 PyObject *resultobj = 0;
15202 wxFont *arg1 = (wxFont *) 0 ;
15203 wxString result;
15204 void *argp1 = 0 ;
15205 int res1 = 0 ;
15206 PyObject *swig_obj[1] ;
15207
15208 if (!args) SWIG_fail;
15209 swig_obj[0] = args;
15210 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15211 if (!SWIG_IsOK(res1)) {
15212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15213 }
15214 arg1 = reinterpret_cast< wxFont * >(argp1);
15215 {
15216 PyThreadState* __tstate = wxPyBeginAllowThreads();
15217 result = ((wxFont const *)arg1)->GetStyleString();
15218 wxPyEndAllowThreads(__tstate);
15219 if (PyErr_Occurred()) SWIG_fail;
15220 }
15221 {
15222#if wxUSE_UNICODE
15223 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15224#else
15225 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15226#endif
15227 }
15228 return resultobj;
15229fail:
15230 return NULL;
d55e5bfc
RD
15231}
15232
15233
1bd55598
RD
15234SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15235 PyObject *resultobj = 0;
15236 wxFont *arg1 = (wxFont *) 0 ;
15237 wxString result;
15238 void *argp1 = 0 ;
15239 int res1 = 0 ;
15240 PyObject *swig_obj[1] ;
15241
15242 if (!args) SWIG_fail;
15243 swig_obj[0] = args;
15244 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15245 if (!SWIG_IsOK(res1)) {
15246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15247 }
15248 arg1 = reinterpret_cast< wxFont * >(argp1);
15249 {
15250 PyThreadState* __tstate = wxPyBeginAllowThreads();
15251 result = ((wxFont const *)arg1)->GetWeightString();
15252 wxPyEndAllowThreads(__tstate);
15253 if (PyErr_Occurred()) SWIG_fail;
15254 }
15255 {
15256#if wxUSE_UNICODE
15257 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15258#else
15259 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15260#endif
15261 }
15262 return resultobj;
15263fail:
15264 return NULL;
15265}
15266
15267
15268SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15269 PyObject *resultobj = 0;
15270 wxFont *arg1 = (wxFont *) 0 ;
15271 bool arg2 = (bool) true ;
15272 void *argp1 = 0 ;
15273 int res1 = 0 ;
15274 bool val2 ;
15275 int ecode2 = 0 ;
15276 PyObject * obj0 = 0 ;
15277 PyObject * obj1 = 0 ;
15278 char * kwnames[] = {
15279 (char *) "self",(char *) "no", NULL
15280 };
15281
15282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15284 if (!SWIG_IsOK(res1)) {
15285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15286 }
15287 arg1 = reinterpret_cast< wxFont * >(argp1);
15288 if (obj1) {
15289 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15290 if (!SWIG_IsOK(ecode2)) {
15291 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15292 }
15293 arg2 = static_cast< bool >(val2);
15294 }
15295 {
15296 PyThreadState* __tstate = wxPyBeginAllowThreads();
15297 (arg1)->SetNoAntiAliasing(arg2);
15298 wxPyEndAllowThreads(__tstate);
15299 if (PyErr_Occurred()) SWIG_fail;
15300 }
15301 resultobj = SWIG_Py_Void();
15302 return resultobj;
15303fail:
15304 return NULL;
d55e5bfc
RD
15305}
15306
15307
1bd55598
RD
15308SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15309 PyObject *resultobj = 0;
15310 wxFont *arg1 = (wxFont *) 0 ;
15311 bool result;
15312 void *argp1 = 0 ;
15313 int res1 = 0 ;
15314 PyObject *swig_obj[1] ;
15315
15316 if (!args) SWIG_fail;
15317 swig_obj[0] = args;
15318 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15319 if (!SWIG_IsOK(res1)) {
15320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15321 }
15322 arg1 = reinterpret_cast< wxFont * >(argp1);
15323 {
15324 PyThreadState* __tstate = wxPyBeginAllowThreads();
15325 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
15326 wxPyEndAllowThreads(__tstate);
15327 if (PyErr_Occurred()) SWIG_fail;
15328 }
15329 {
15330 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15331 }
15332 return resultobj;
15333fail:
15334 return NULL;
d55e5bfc
RD
15335}
15336
15337
1bd55598
RD
15338SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15339 PyObject *resultobj = 0;
15340 wxFontEncoding result;
15341
15342 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15343 {
15344 if (!wxPyCheckForApp()) SWIG_fail;
15345 PyThreadState* __tstate = wxPyBeginAllowThreads();
15346 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15347 wxPyEndAllowThreads(__tstate);
15348 if (PyErr_Occurred()) SWIG_fail;
15349 }
15350 resultobj = SWIG_From_int(static_cast< int >(result));
15351 return resultobj;
15352fail:
15353 return NULL;
d55e5bfc
RD
15354}
15355
15356
1bd55598
RD
15357SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15358 PyObject *resultobj = 0;
15359 wxFontEncoding arg1 ;
15360 int val1 ;
15361 int ecode1 = 0 ;
15362 PyObject * obj0 = 0 ;
15363 char * kwnames[] = {
15364 (char *) "encoding", NULL
15365 };
15366
15367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15368 ecode1 = SWIG_AsVal_int(obj0, &val1);
15369 if (!SWIG_IsOK(ecode1)) {
15370 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15371 }
15372 arg1 = static_cast< wxFontEncoding >(val1);
15373 {
15374 if (!wxPyCheckForApp()) SWIG_fail;
15375 PyThreadState* __tstate = wxPyBeginAllowThreads();
15376 wxFont::SetDefaultEncoding(arg1);
15377 wxPyEndAllowThreads(__tstate);
15378 if (PyErr_Occurred()) SWIG_fail;
15379 }
15380 resultobj = SWIG_Py_Void();
15381 return resultobj;
15382fail:
15383 return NULL;
d55e5bfc
RD
15384}
15385
15386
1bd55598
RD
15387SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15388 PyObject *obj;
15389 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15390 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15391 return SWIG_Py_Void();
d55e5bfc 15392}
d55e5bfc 15393
1bd55598
RD
15394SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15395 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
15396}
15397
1bd55598
RD
15398SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15399 PyObject *resultobj = 0;
15400 wxPyFontEnumerator *result = 0 ;
15401
15402 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15403 {
15404 if (!wxPyCheckForApp()) SWIG_fail;
15405 PyThreadState* __tstate = wxPyBeginAllowThreads();
15406 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15407 wxPyEndAllowThreads(__tstate);
15408 if (PyErr_Occurred()) SWIG_fail;
15409 }
15410 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15411 return resultobj;
15412fail:
15413 return NULL;
d55e5bfc
RD
15414}
15415
15416
1bd55598
RD
15417SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15418 PyObject *resultobj = 0;
15419 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15420 void *argp1 = 0 ;
15421 int res1 = 0 ;
15422 PyObject *swig_obj[1] ;
15423
15424 if (!args) SWIG_fail;
15425 swig_obj[0] = args;
15426 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15427 if (!SWIG_IsOK(res1)) {
15428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15429 }
15430 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15431 {
15432 PyThreadState* __tstate = wxPyBeginAllowThreads();
15433 delete arg1;
d55e5bfc 15434
1bd55598
RD
15435 wxPyEndAllowThreads(__tstate);
15436 if (PyErr_Occurred()) SWIG_fail;
15437 }
15438 resultobj = SWIG_Py_Void();
15439 return resultobj;
15440fail:
15441 return NULL;
15442}
15443
15444
15445SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15446 PyObject *resultobj = 0;
15447 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15448 PyObject *arg2 = (PyObject *) 0 ;
15449 PyObject *arg3 = (PyObject *) 0 ;
c25f90f6 15450 int arg4 = (int) 0 ;
1bd55598
RD
15451 void *argp1 = 0 ;
15452 int res1 = 0 ;
c25f90f6 15453 int val4 ;
1bd55598
RD
15454 int ecode4 = 0 ;
15455 PyObject * obj0 = 0 ;
15456 PyObject * obj1 = 0 ;
15457 PyObject * obj2 = 0 ;
15458 PyObject * obj3 = 0 ;
15459 char * kwnames[] = {
15460 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15461 };
15462
c25f90f6 15463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
15464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15465 if (!SWIG_IsOK(res1)) {
15466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15467 }
15468 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15469 arg2 = obj1;
15470 arg3 = obj2;
c25f90f6
RD
15471 if (obj3) {
15472 ecode4 = SWIG_AsVal_int(obj3, &val4);
15473 if (!SWIG_IsOK(ecode4)) {
15474 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "int""'");
15475 }
15476 arg4 = static_cast< int >(val4);
15477 }
1bd55598
RD
15478 {
15479 PyThreadState* __tstate = wxPyBeginAllowThreads();
15480 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15481 wxPyEndAllowThreads(__tstate);
15482 if (PyErr_Occurred()) SWIG_fail;
15483 }
15484 resultobj = SWIG_Py_Void();
15485 return resultobj;
15486fail:
15487 return NULL;
15488}
15489
15490
15491SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15492 PyObject *resultobj = 0;
15493 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15494 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15495 bool arg3 = (bool) false ;
15496 bool result;
15497 void *argp1 = 0 ;
15498 int res1 = 0 ;
15499 int val2 ;
15500 int ecode2 = 0 ;
15501 bool val3 ;
15502 int ecode3 = 0 ;
15503 PyObject * obj0 = 0 ;
15504 PyObject * obj1 = 0 ;
15505 PyObject * obj2 = 0 ;
15506 char * kwnames[] = {
15507 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15508 };
15509
15510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15512 if (!SWIG_IsOK(res1)) {
15513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15514 }
15515 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15516 if (obj1) {
15517 ecode2 = SWIG_AsVal_int(obj1, &val2);
15518 if (!SWIG_IsOK(ecode2)) {
15519 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15520 }
15521 arg2 = static_cast< wxFontEncoding >(val2);
15522 }
15523 if (obj2) {
15524 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15525 if (!SWIG_IsOK(ecode3)) {
15526 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15527 }
15528 arg3 = static_cast< bool >(val3);
15529 }
15530 {
15531 PyThreadState* __tstate = wxPyBeginAllowThreads();
15532 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15533 wxPyEndAllowThreads(__tstate);
15534 if (PyErr_Occurred()) SWIG_fail;
15535 }
15536 {
15537 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15538 }
15539 return resultobj;
15540fail:
15541 return NULL;
15542}
15543
15544
15545SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15546 PyObject *resultobj = 0;
15547 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15548 wxString const &arg2_defvalue = wxPyEmptyString ;
15549 wxString *arg2 = (wxString *) &arg2_defvalue ;
15550 bool result;
15551 void *argp1 = 0 ;
15552 int res1 = 0 ;
15553 bool temp2 = false ;
15554 PyObject * obj0 = 0 ;
15555 PyObject * obj1 = 0 ;
15556 char * kwnames[] = {
15557 (char *) "self",(char *) "facename", NULL
15558 };
15559
15560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15562 if (!SWIG_IsOK(res1)) {
15563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15564 }
15565 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15566 if (obj1) {
36ed4f51 15567 {
1bd55598
RD
15568 arg2 = wxString_in_helper(obj1);
15569 if (arg2 == NULL) SWIG_fail;
15570 temp2 = true;
36ed4f51 15571 }
1bd55598
RD
15572 }
15573 {
15574 PyThreadState* __tstate = wxPyBeginAllowThreads();
15575 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15576 wxPyEndAllowThreads(__tstate);
15577 if (PyErr_Occurred()) SWIG_fail;
15578 }
15579 {
15580 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15581 }
15582 {
15583 if (temp2)
15584 delete arg2;
15585 }
15586 return resultobj;
15587fail:
15588 {
15589 if (temp2)
15590 delete arg2;
15591 }
15592 return NULL;
d55e5bfc
RD
15593}
15594
15595
1bd55598
RD
15596SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15597 PyObject *resultobj = 0;
1bd55598 15598 PyObject *result = 0 ;
1bd55598 15599
704eda0c 15600 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
1bd55598
RD
15601 {
15602 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15603 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
1bd55598
RD
15604 wxPyEndAllowThreads(__tstate);
15605 if (PyErr_Occurred()) SWIG_fail;
15606 }
15607 resultobj = result;
15608 return resultobj;
15609fail:
15610 return NULL;
d55e5bfc
RD
15611}
15612
15613
1bd55598
RD
15614SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15615 PyObject *resultobj = 0;
1bd55598 15616 PyObject *result = 0 ;
1bd55598 15617
704eda0c 15618 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
1bd55598
RD
15619 {
15620 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 15621 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
1bd55598
RD
15622 wxPyEndAllowThreads(__tstate);
15623 if (PyErr_Occurred()) SWIG_fail;
15624 }
15625 resultobj = result;
15626 return resultobj;
15627fail:
15628 return NULL;
d55e5bfc
RD
15629}
15630
15631
704eda0c
RD
15632SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15633 PyObject *resultobj = 0;
15634 wxString *arg1 = 0 ;
15635 bool result;
15636 bool temp1 = false ;
15637 PyObject * obj0 = 0 ;
15638 char * kwnames[] = {
15639 (char *) "str", NULL
15640 };
15641
15642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15643 {
15644 arg1 = wxString_in_helper(obj0);
15645 if (arg1 == NULL) SWIG_fail;
15646 temp1 = true;
15647 }
15648 {
15649 PyThreadState* __tstate = wxPyBeginAllowThreads();
15650 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15651 wxPyEndAllowThreads(__tstate);
15652 if (PyErr_Occurred()) SWIG_fail;
15653 }
15654 {
15655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15656 }
15657 {
15658 if (temp1)
15659 delete arg1;
15660 }
15661 return resultobj;
15662fail:
15663 {
15664 if (temp1)
15665 delete arg1;
15666 }
15667 return NULL;
15668}
15669
15670
1bd55598
RD
15671SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15672 PyObject *obj;
15673 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15674 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15675 return SWIG_Py_Void();
d55e5bfc
RD
15676}
15677
1bd55598
RD
15678SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15679 return SWIG_Python_InitShadowInstance(args);
15680}
d55e5bfc 15681
1bd55598
RD
15682SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15683 PyObject *resultobj = 0;
15684 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15685 int arg2 ;
15686 void *argp1 = 0 ;
15687 int res1 = 0 ;
15688 int val2 ;
15689 int ecode2 = 0 ;
15690 PyObject *swig_obj[2] ;
15691
15692 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15694 if (!SWIG_IsOK(res1)) {
15695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15696 }
15697 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15698 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15699 if (!SWIG_IsOK(ecode2)) {
15700 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15701 }
15702 arg2 = static_cast< int >(val2);
15703 if (arg1) (arg1)->Language = arg2;
15704
15705 resultobj = SWIG_Py_Void();
15706 return resultobj;
15707fail:
15708 return NULL;
d55e5bfc
RD
15709}
15710
15711
1bd55598
RD
15712SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15713 PyObject *resultobj = 0;
15714 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15715 int result;
15716 void *argp1 = 0 ;
15717 int res1 = 0 ;
15718 PyObject *swig_obj[1] ;
15719
15720 if (!args) SWIG_fail;
15721 swig_obj[0] = args;
15722 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15723 if (!SWIG_IsOK(res1)) {
15724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15725 }
15726 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15727 result = (int) ((arg1)->Language);
15728 resultobj = SWIG_From_int(static_cast< int >(result));
15729 return resultobj;
15730fail:
15731 return NULL;
15732}
15733
15734
15735SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15736 PyObject *resultobj = 0;
15737 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15738 wxString *arg2 = (wxString *) 0 ;
15739 void *argp1 = 0 ;
15740 int res1 = 0 ;
15741 bool temp2 = false ;
15742 PyObject *swig_obj[2] ;
15743
15744 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15746 if (!SWIG_IsOK(res1)) {
15747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15748 }
15749 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15750 {
15751 arg2 = wxString_in_helper(swig_obj[1]);
15752 if (arg2 == NULL) SWIG_fail;
15753 temp2 = true;
15754 }
15755 if (arg1) (arg1)->CanonicalName = *arg2;
15756
15757 resultobj = SWIG_Py_Void();
15758 {
15759 if (temp2)
15760 delete arg2;
15761 }
15762 return resultobj;
15763fail:
15764 {
15765 if (temp2)
15766 delete arg2;
15767 }
15768 return NULL;
d55e5bfc
RD
15769}
15770
15771
1bd55598
RD
15772SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15773 PyObject *resultobj = 0;
15774 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15775 wxString *result = 0 ;
15776 void *argp1 = 0 ;
15777 int res1 = 0 ;
15778 PyObject *swig_obj[1] ;
15779
15780 if (!args) SWIG_fail;
15781 swig_obj[0] = args;
15782 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15783 if (!SWIG_IsOK(res1)) {
15784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15785 }
15786 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15787 result = (wxString *)& ((arg1)->CanonicalName);
15788 {
15789#if wxUSE_UNICODE
15790 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15791#else
15792 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15793#endif
15794 }
15795 return resultobj;
15796fail:
15797 return NULL;
d55e5bfc
RD
15798}
15799
15800
1bd55598
RD
15801SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15802 PyObject *resultobj = 0;
15803 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15804 wxString *arg2 = (wxString *) 0 ;
15805 void *argp1 = 0 ;
15806 int res1 = 0 ;
15807 bool temp2 = false ;
15808 PyObject *swig_obj[2] ;
15809
15810 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15812 if (!SWIG_IsOK(res1)) {
15813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15814 }
15815 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15816 {
15817 arg2 = wxString_in_helper(swig_obj[1]);
15818 if (arg2 == NULL) SWIG_fail;
15819 temp2 = true;
15820 }
15821 if (arg1) (arg1)->Description = *arg2;
15822
15823 resultobj = SWIG_Py_Void();
15824 {
15825 if (temp2)
15826 delete arg2;
15827 }
15828 return resultobj;
15829fail:
15830 {
15831 if (temp2)
15832 delete arg2;
15833 }
15834 return NULL;
d55e5bfc
RD
15835}
15836
15837
1bd55598
RD
15838SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15839 PyObject *resultobj = 0;
15840 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15841 wxString *result = 0 ;
15842 void *argp1 = 0 ;
15843 int res1 = 0 ;
15844 PyObject *swig_obj[1] ;
15845
15846 if (!args) SWIG_fail;
15847 swig_obj[0] = args;
15848 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15849 if (!SWIG_IsOK(res1)) {
15850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15851 }
15852 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15853 result = (wxString *)& ((arg1)->Description);
15854 {
15855#if wxUSE_UNICODE
15856 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15857#else
15858 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15859#endif
15860 }
15861 return resultobj;
15862fail:
15863 return NULL;
15864}
15865
15866
15867SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15868 PyObject *obj;
15869 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15870 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
15871 return SWIG_Py_Void();
15872}
15873
15874SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15875 PyObject *resultobj = 0;
15876 int arg1 = (int) -1 ;
15877 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15878 wxLocale *result = 0 ;
15879 int val1 ;
15880 int ecode1 = 0 ;
15881 int val2 ;
15882 int ecode2 = 0 ;
15883 PyObject * obj0 = 0 ;
15884 PyObject * obj1 = 0 ;
15885 char * kwnames[] = {
15886 (char *) "language",(char *) "flags", NULL
15887 };
15888
15889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
15890 if (obj0) {
15891 ecode1 = SWIG_AsVal_int(obj0, &val1);
15892 if (!SWIG_IsOK(ecode1)) {
15893 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
15894 }
15895 arg1 = static_cast< int >(val1);
15896 }
15897 if (obj1) {
15898 ecode2 = SWIG_AsVal_int(obj1, &val2);
15899 if (!SWIG_IsOK(ecode2)) {
15900 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
15901 }
15902 arg2 = static_cast< int >(val2);
15903 }
15904 {
15905 PyThreadState* __tstate = wxPyBeginAllowThreads();
15906 result = (wxLocale *)new_wxLocale(arg1,arg2);
15907 wxPyEndAllowThreads(__tstate);
15908 if (PyErr_Occurred()) SWIG_fail;
15909 }
15910 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
15911 return resultobj;
15912fail:
15913 return NULL;
d55e5bfc
RD
15914}
15915
15916
1bd55598
RD
15917SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15918 PyObject *resultobj = 0;
15919 wxLocale *arg1 = (wxLocale *) 0 ;
15920 void *argp1 = 0 ;
15921 int res1 = 0 ;
15922 PyObject *swig_obj[1] ;
15923
15924 if (!args) SWIG_fail;
15925 swig_obj[0] = args;
15926 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
15927 if (!SWIG_IsOK(res1)) {
15928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
15929 }
15930 arg1 = reinterpret_cast< wxLocale * >(argp1);
15931 {
15932 PyThreadState* __tstate = wxPyBeginAllowThreads();
15933 delete arg1;
d55e5bfc 15934
1bd55598
RD
15935 wxPyEndAllowThreads(__tstate);
15936 if (PyErr_Occurred()) SWIG_fail;
15937 }
15938 resultobj = SWIG_Py_Void();
15939 return resultobj;
15940fail:
15941 return NULL;
15942}
15943
15944
15945SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15946 PyObject *resultobj = 0;
15947 wxLocale *arg1 = (wxLocale *) 0 ;
15948 wxString *arg2 = 0 ;
15949 wxString const &arg3_defvalue = wxPyEmptyString ;
15950 wxString *arg3 = (wxString *) &arg3_defvalue ;
15951 wxString const &arg4_defvalue = wxPyEmptyString ;
15952 wxString *arg4 = (wxString *) &arg4_defvalue ;
15953 bool arg5 = (bool) true ;
15954 bool arg6 = (bool) false ;
15955 bool result;
15956 void *argp1 = 0 ;
15957 int res1 = 0 ;
15958 bool temp2 = false ;
15959 bool temp3 = false ;
15960 bool temp4 = false ;
15961 bool val5 ;
15962 int ecode5 = 0 ;
15963 bool val6 ;
15964 int ecode6 = 0 ;
15965 PyObject * obj0 = 0 ;
15966 PyObject * obj1 = 0 ;
15967 PyObject * obj2 = 0 ;
15968 PyObject * obj3 = 0 ;
15969 PyObject * obj4 = 0 ;
15970 PyObject * obj5 = 0 ;
15971 char * kwnames[] = {
15972 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
15973 };
15974
15975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15977 if (!SWIG_IsOK(res1)) {
15978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
15979 }
15980 arg1 = reinterpret_cast< wxLocale * >(argp1);
15981 {
15982 arg2 = wxString_in_helper(obj1);
15983 if (arg2 == NULL) SWIG_fail;
15984 temp2 = true;
15985 }
15986 if (obj2) {
d55e5bfc 15987 {
1bd55598
RD
15988 arg3 = wxString_in_helper(obj2);
15989 if (arg3 == NULL) SWIG_fail;
15990 temp3 = true;
d55e5bfc 15991 }
1bd55598
RD
15992 }
15993 if (obj3) {
36ed4f51 15994 {
1bd55598
RD
15995 arg4 = wxString_in_helper(obj3);
15996 if (arg4 == NULL) SWIG_fail;
15997 temp4 = true;
36ed4f51 15998 }
1bd55598
RD
15999 }
16000 if (obj4) {
16001 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16002 if (!SWIG_IsOK(ecode5)) {
16003 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
16004 }
16005 arg5 = static_cast< bool >(val5);
16006 }
16007 if (obj5) {
16008 ecode6 = SWIG_AsVal_bool(obj5, &val6);
16009 if (!SWIG_IsOK(ecode6)) {
16010 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
16011 }
16012 arg6 = static_cast< bool >(val6);
16013 }
16014 {
16015 PyThreadState* __tstate = wxPyBeginAllowThreads();
16016 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
16017 wxPyEndAllowThreads(__tstate);
16018 if (PyErr_Occurred()) SWIG_fail;
16019 }
16020 {
16021 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16022 }
16023 {
16024 if (temp2)
16025 delete arg2;
16026 }
16027 {
16028 if (temp3)
16029 delete arg3;
16030 }
16031 {
16032 if (temp4)
16033 delete arg4;
16034 }
16035 return resultobj;
16036fail:
16037 {
16038 if (temp2)
16039 delete arg2;
16040 }
16041 {
16042 if (temp3)
16043 delete arg3;
16044 }
16045 {
16046 if (temp4)
16047 delete arg4;
16048 }
16049 return NULL;
16050}
16051
16052
16053SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16054 PyObject *resultobj = 0;
16055 wxLocale *arg1 = (wxLocale *) 0 ;
16056 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16057 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16058 bool result;
16059 void *argp1 = 0 ;
16060 int res1 = 0 ;
16061 int val2 ;
16062 int ecode2 = 0 ;
16063 int val3 ;
16064 int ecode3 = 0 ;
16065 PyObject * obj0 = 0 ;
16066 PyObject * obj1 = 0 ;
16067 PyObject * obj2 = 0 ;
16068 char * kwnames[] = {
16069 (char *) "self",(char *) "language",(char *) "flags", NULL
16070 };
16071
16072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16074 if (!SWIG_IsOK(res1)) {
16075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16076 }
16077 arg1 = reinterpret_cast< wxLocale * >(argp1);
16078 if (obj1) {
16079 ecode2 = SWIG_AsVal_int(obj1, &val2);
16080 if (!SWIG_IsOK(ecode2)) {
16081 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16082 }
16083 arg2 = static_cast< int >(val2);
16084 }
16085 if (obj2) {
16086 ecode3 = SWIG_AsVal_int(obj2, &val3);
16087 if (!SWIG_IsOK(ecode3)) {
16088 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16089 }
16090 arg3 = static_cast< int >(val3);
16091 }
16092 {
16093 PyThreadState* __tstate = wxPyBeginAllowThreads();
16094 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16095 wxPyEndAllowThreads(__tstate);
16096 if (PyErr_Occurred()) SWIG_fail;
16097 }
16098 {
16099 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16100 }
16101 return resultobj;
16102fail:
16103 return NULL;
d55e5bfc
RD
16104}
16105
16106
1bd55598
RD
16107SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16108 PyObject *resultobj = 0;
16109 int result;
16110
16111 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16112 {
16113 PyThreadState* __tstate = wxPyBeginAllowThreads();
16114 result = (int)wxLocale::GetSystemLanguage();
16115 wxPyEndAllowThreads(__tstate);
16116 if (PyErr_Occurred()) SWIG_fail;
16117 }
16118 resultobj = SWIG_From_int(static_cast< int >(result));
16119 return resultobj;
16120fail:
16121 return NULL;
d55e5bfc
RD
16122}
16123
16124
1bd55598
RD
16125SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16126 PyObject *resultobj = 0;
16127 wxFontEncoding result;
16128
16129 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16130 {
16131 PyThreadState* __tstate = wxPyBeginAllowThreads();
16132 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16133 wxPyEndAllowThreads(__tstate);
16134 if (PyErr_Occurred()) SWIG_fail;
16135 }
16136 resultobj = SWIG_From_int(static_cast< int >(result));
16137 return resultobj;
16138fail:
16139 return NULL;
d55e5bfc
RD
16140}
16141
16142
1bd55598
RD
16143SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16144 PyObject *resultobj = 0;
16145 wxString result;
16146
16147 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16148 {
16149 PyThreadState* __tstate = wxPyBeginAllowThreads();
16150 result = wxLocale::GetSystemEncodingName();
16151 wxPyEndAllowThreads(__tstate);
16152 if (PyErr_Occurred()) SWIG_fail;
16153 }
16154 {
16155#if wxUSE_UNICODE
16156 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16157#else
16158 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16159#endif
16160 }
16161 return resultobj;
16162fail:
16163 return NULL;
d55e5bfc
RD
16164}
16165
16166
1bd55598
RD
16167SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16168 PyObject *resultobj = 0;
16169 wxLocale *arg1 = (wxLocale *) 0 ;
16170 bool result;
16171 void *argp1 = 0 ;
16172 int res1 = 0 ;
16173 PyObject *swig_obj[1] ;
16174
16175 if (!args) SWIG_fail;
16176 swig_obj[0] = args;
16177 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16178 if (!SWIG_IsOK(res1)) {
16179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16180 }
16181 arg1 = reinterpret_cast< wxLocale * >(argp1);
16182 {
16183 PyThreadState* __tstate = wxPyBeginAllowThreads();
16184 result = (bool)((wxLocale const *)arg1)->IsOk();
16185 wxPyEndAllowThreads(__tstate);
16186 if (PyErr_Occurred()) SWIG_fail;
16187 }
16188 {
16189 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16190 }
16191 return resultobj;
16192fail:
16193 return NULL;
d55e5bfc
RD
16194}
16195
16196
1bd55598
RD
16197SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16198 PyObject *resultobj = 0;
16199 wxLocale *arg1 = (wxLocale *) 0 ;
16200 wxString result;
16201 void *argp1 = 0 ;
16202 int res1 = 0 ;
16203 PyObject *swig_obj[1] ;
16204
16205 if (!args) SWIG_fail;
16206 swig_obj[0] = args;
16207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16208 if (!SWIG_IsOK(res1)) {
16209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16210 }
16211 arg1 = reinterpret_cast< wxLocale * >(argp1);
16212 {
16213 PyThreadState* __tstate = wxPyBeginAllowThreads();
16214 result = ((wxLocale const *)arg1)->GetLocale();
16215 wxPyEndAllowThreads(__tstate);
16216 if (PyErr_Occurred()) SWIG_fail;
16217 }
16218 {
16219#if wxUSE_UNICODE
16220 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16221#else
16222 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16223#endif
16224 }
16225 return resultobj;
16226fail:
16227 return NULL;
d55e5bfc
RD
16228}
16229
16230
1bd55598
RD
16231SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16232 PyObject *resultobj = 0;
16233 wxLocale *arg1 = (wxLocale *) 0 ;
16234 int result;
16235 void *argp1 = 0 ;
16236 int res1 = 0 ;
16237 PyObject *swig_obj[1] ;
16238
16239 if (!args) SWIG_fail;
16240 swig_obj[0] = args;
16241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16242 if (!SWIG_IsOK(res1)) {
16243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16244 }
16245 arg1 = reinterpret_cast< wxLocale * >(argp1);
16246 {
16247 PyThreadState* __tstate = wxPyBeginAllowThreads();
16248 result = (int)((wxLocale const *)arg1)->GetLanguage();
16249 wxPyEndAllowThreads(__tstate);
16250 if (PyErr_Occurred()) SWIG_fail;
16251 }
16252 resultobj = SWIG_From_int(static_cast< int >(result));
16253 return resultobj;
16254fail:
16255 return NULL;
d55e5bfc
RD
16256}
16257
16258
1bd55598
RD
16259SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16260 PyObject *resultobj = 0;
16261 wxLocale *arg1 = (wxLocale *) 0 ;
16262 wxString result;
16263 void *argp1 = 0 ;
16264 int res1 = 0 ;
16265 PyObject *swig_obj[1] ;
16266
16267 if (!args) SWIG_fail;
16268 swig_obj[0] = args;
16269 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16270 if (!SWIG_IsOK(res1)) {
16271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16272 }
16273 arg1 = reinterpret_cast< wxLocale * >(argp1);
16274 {
16275 PyThreadState* __tstate = wxPyBeginAllowThreads();
16276 result = ((wxLocale const *)arg1)->GetSysName();
16277 wxPyEndAllowThreads(__tstate);
16278 if (PyErr_Occurred()) SWIG_fail;
16279 }
16280 {
36ed4f51 16281#if wxUSE_UNICODE
1bd55598 16282 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 16283#else
1bd55598 16284 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 16285#endif
1bd55598
RD
16286 }
16287 return resultobj;
16288fail:
16289 return NULL;
d55e5bfc
RD
16290}
16291
16292
1bd55598
RD
16293SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16294 PyObject *resultobj = 0;
16295 wxLocale *arg1 = (wxLocale *) 0 ;
16296 wxString result;
16297 void *argp1 = 0 ;
16298 int res1 = 0 ;
16299 PyObject *swig_obj[1] ;
16300
16301 if (!args) SWIG_fail;
16302 swig_obj[0] = args;
16303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16304 if (!SWIG_IsOK(res1)) {
16305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16306 }
16307 arg1 = reinterpret_cast< wxLocale * >(argp1);
16308 {
16309 PyThreadState* __tstate = wxPyBeginAllowThreads();
16310 result = ((wxLocale const *)arg1)->GetCanonicalName();
16311 wxPyEndAllowThreads(__tstate);
16312 if (PyErr_Occurred()) SWIG_fail;
16313 }
16314 {
16315#if wxUSE_UNICODE
16316 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16317#else
16318 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16319#endif
16320 }
16321 return resultobj;
16322fail:
16323 return NULL;
d55e5bfc
RD
16324}
16325
16326
1bd55598
RD
16327SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16328 PyObject *resultobj = 0;
16329 wxString *arg1 = 0 ;
16330 bool temp1 = false ;
16331 PyObject * obj0 = 0 ;
16332 char * kwnames[] = {
16333 (char *) "prefix", NULL
16334 };
16335
16336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
16337 {
16338 arg1 = wxString_in_helper(obj0);
16339 if (arg1 == NULL) SWIG_fail;
16340 temp1 = true;
16341 }
16342 {
16343 PyThreadState* __tstate = wxPyBeginAllowThreads();
16344 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16345 wxPyEndAllowThreads(__tstate);
16346 if (PyErr_Occurred()) SWIG_fail;
16347 }
16348 resultobj = SWIG_Py_Void();
16349 {
16350 if (temp1)
16351 delete arg1;
16352 }
16353 return resultobj;
16354fail:
16355 {
16356 if (temp1)
16357 delete arg1;
16358 }
16359 return NULL;
16360}
16361
16362
16363SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16364 PyObject *resultobj = 0;
16365 wxLocale *arg1 = (wxLocale *) 0 ;
16366 wxString *arg2 = 0 ;
16367 bool result;
16368 void *argp1 = 0 ;
16369 int res1 = 0 ;
16370 bool temp2 = false ;
16371 PyObject * obj0 = 0 ;
16372 PyObject * obj1 = 0 ;
16373 char * kwnames[] = {
16374 (char *) "self",(char *) "szDomain", NULL
16375 };
16376
16377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16379 if (!SWIG_IsOK(res1)) {
16380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16381 }
16382 arg1 = reinterpret_cast< wxLocale * >(argp1);
16383 {
16384 arg2 = wxString_in_helper(obj1);
16385 if (arg2 == NULL) SWIG_fail;
16386 temp2 = true;
16387 }
16388 {
16389 PyThreadState* __tstate = wxPyBeginAllowThreads();
16390 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16391 wxPyEndAllowThreads(__tstate);
16392 if (PyErr_Occurred()) SWIG_fail;
16393 }
16394 {
16395 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16396 }
16397 {
16398 if (temp2)
16399 delete arg2;
16400 }
16401 return resultobj;
16402fail:
16403 {
16404 if (temp2)
16405 delete arg2;
16406 }
16407 return NULL;
16408}
16409
16410
33d6fd3b
RD
16411SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16412 PyObject *resultobj = 0;
16413 int arg1 ;
16414 bool result;
16415 int val1 ;
16416 int ecode1 = 0 ;
16417 PyObject * obj0 = 0 ;
16418 char * kwnames[] = {
16419 (char *) "lang", NULL
16420 };
16421
16422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16423 ecode1 = SWIG_AsVal_int(obj0, &val1);
16424 if (!SWIG_IsOK(ecode1)) {
16425 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16426 }
16427 arg1 = static_cast< int >(val1);
16428 {
16429 PyThreadState* __tstate = wxPyBeginAllowThreads();
16430 result = (bool)wxLocale::IsAvailable(arg1);
16431 wxPyEndAllowThreads(__tstate);
16432 if (PyErr_Occurred()) SWIG_fail;
16433 }
16434 {
16435 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16436 }
16437 return resultobj;
16438fail:
16439 return NULL;
16440}
16441
16442
1bd55598
RD
16443SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16444 PyObject *resultobj = 0;
16445 wxLocale *arg1 = (wxLocale *) 0 ;
16446 wxString *arg2 = 0 ;
16447 bool result;
16448 void *argp1 = 0 ;
16449 int res1 = 0 ;
16450 bool temp2 = false ;
16451 PyObject * obj0 = 0 ;
16452 PyObject * obj1 = 0 ;
16453 char * kwnames[] = {
16454 (char *) "self",(char *) "szDomain", NULL
16455 };
16456
16457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16459 if (!SWIG_IsOK(res1)) {
16460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16461 }
16462 arg1 = reinterpret_cast< wxLocale * >(argp1);
16463 {
16464 arg2 = wxString_in_helper(obj1);
16465 if (arg2 == NULL) SWIG_fail;
16466 temp2 = true;
16467 }
16468 {
16469 PyThreadState* __tstate = wxPyBeginAllowThreads();
16470 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16471 wxPyEndAllowThreads(__tstate);
16472 if (PyErr_Occurred()) SWIG_fail;
16473 }
16474 {
16475 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16476 }
16477 {
16478 if (temp2)
16479 delete arg2;
16480 }
16481 return resultobj;
16482fail:
16483 {
16484 if (temp2)
16485 delete arg2;
16486 }
16487 return NULL;
d55e5bfc
RD
16488}
16489
16490
1bd55598
RD
16491SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16492 PyObject *resultobj = 0;
16493 int arg1 ;
16494 wxLanguageInfo *result = 0 ;
16495 int val1 ;
16496 int ecode1 = 0 ;
16497 PyObject * obj0 = 0 ;
16498 char * kwnames[] = {
16499 (char *) "lang", NULL
16500 };
16501
16502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16503 ecode1 = SWIG_AsVal_int(obj0, &val1);
16504 if (!SWIG_IsOK(ecode1)) {
16505 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16506 }
16507 arg1 = static_cast< int >(val1);
16508 {
16509 PyThreadState* __tstate = wxPyBeginAllowThreads();
16510 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16511 wxPyEndAllowThreads(__tstate);
16512 if (PyErr_Occurred()) SWIG_fail;
16513 }
16514 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16515 return resultobj;
16516fail:
16517 return NULL;
16518}
16519
16520
16521SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16522 PyObject *resultobj = 0;
16523 int arg1 ;
16524 wxString result;
16525 int val1 ;
16526 int ecode1 = 0 ;
16527 PyObject * obj0 = 0 ;
16528 char * kwnames[] = {
16529 (char *) "lang", NULL
16530 };
16531
16532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16533 ecode1 = SWIG_AsVal_int(obj0, &val1);
16534 if (!SWIG_IsOK(ecode1)) {
16535 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16536 }
16537 arg1 = static_cast< int >(val1);
16538 {
16539 PyThreadState* __tstate = wxPyBeginAllowThreads();
16540 result = wxLocale::GetLanguageName(arg1);
16541 wxPyEndAllowThreads(__tstate);
16542 if (PyErr_Occurred()) SWIG_fail;
16543 }
16544 {
16545#if wxUSE_UNICODE
16546 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16547#else
16548 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16549#endif
16550 }
16551 return resultobj;
16552fail:
16553 return NULL;
d55e5bfc
RD
16554}
16555
16556
1bd55598
RD
16557SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16558 PyObject *resultobj = 0;
16559 wxString *arg1 = 0 ;
16560 wxLanguageInfo *result = 0 ;
16561 bool temp1 = false ;
16562 PyObject * obj0 = 0 ;
16563 char * kwnames[] = {
16564 (char *) "locale", NULL
16565 };
16566
16567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16568 {
16569 arg1 = wxString_in_helper(obj0);
16570 if (arg1 == NULL) SWIG_fail;
16571 temp1 = true;
16572 }
16573 {
16574 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3
RD
16575 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16576 wxPyEndAllowThreads(__tstate);
16577 if (PyErr_Occurred()) SWIG_fail;
16578 }
16579 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16580 {
16581 if (temp1)
16582 delete arg1;
16583 }
16584 return resultobj;
16585fail:
16586 {
16587 if (temp1)
16588 delete arg1;
16589 }
16590 return NULL;
16591}
16592
16593
16594SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16595 PyObject *resultobj = 0;
16596 wxLanguageInfo *arg1 = 0 ;
16597 void *argp1 = 0 ;
16598 int res1 = 0 ;
16599 PyObject * obj0 = 0 ;
16600 char * kwnames[] = {
16601 (char *) "info", NULL
16602 };
16603
16604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16605 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16606 if (!SWIG_IsOK(res1)) {
16607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16608 }
16609 if (!argp1) {
16610 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16611 }
16612 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16613 {
16614 PyThreadState* __tstate = wxPyBeginAllowThreads();
16615 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16616 wxPyEndAllowThreads(__tstate);
16617 if (PyErr_Occurred()) SWIG_fail;
16618 }
16619 resultobj = SWIG_Py_Void();
16620 return resultobj;
16621fail:
16622 return NULL;
16623}
16624
16625
16626SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16627 PyObject *resultobj = 0;
16628 wxLocale *arg1 = (wxLocale *) 0 ;
16629 wxString *arg2 = 0 ;
16630 wxString const &arg3_defvalue = wxPyEmptyString ;
16631 wxString *arg3 = (wxString *) &arg3_defvalue ;
16632 wxString result;
16633 void *argp1 = 0 ;
16634 int res1 = 0 ;
16635 bool temp2 = false ;
16636 bool temp3 = false ;
16637 PyObject * obj0 = 0 ;
16638 PyObject * obj1 = 0 ;
16639 PyObject * obj2 = 0 ;
16640 char * kwnames[] = {
16641 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16642 };
16643
16644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16646 if (!SWIG_IsOK(res1)) {
16647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16648 }
16649 arg1 = reinterpret_cast< wxLocale * >(argp1);
16650 {
16651 arg2 = wxString_in_helper(obj1);
16652 if (arg2 == NULL) SWIG_fail;
16653 temp2 = true;
16654 }
16655 if (obj2) {
16656 {
16657 arg3 = wxString_in_helper(obj2);
16658 if (arg3 == NULL) SWIG_fail;
16659 temp3 = true;
16660 }
16661 }
16662 {
16663 PyThreadState* __tstate = wxPyBeginAllowThreads();
16664 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16665 wxPyEndAllowThreads(__tstate);
16666 if (PyErr_Occurred()) SWIG_fail;
16667 }
16668 {
16669#if wxUSE_UNICODE
16670 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16671#else
16672 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16673#endif
16674 }
16675 {
16676 if (temp2)
16677 delete arg2;
16678 }
16679 {
16680 if (temp3)
16681 delete arg3;
16682 }
16683 return resultobj;
16684fail:
16685 {
16686 if (temp2)
16687 delete arg2;
16688 }
16689 {
16690 if (temp3)
16691 delete arg3;
16692 }
16693 return NULL;
16694}
16695
16696
16697SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16698 PyObject *resultobj = 0;
16699 wxLocale *arg1 = (wxLocale *) 0 ;
16700 wxString *result = 0 ;
16701 void *argp1 = 0 ;
16702 int res1 = 0 ;
16703 PyObject *swig_obj[1] ;
16704
16705 if (!args) SWIG_fail;
16706 swig_obj[0] = args;
16707 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16708 if (!SWIG_IsOK(res1)) {
16709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16710 }
16711 arg1 = reinterpret_cast< wxLocale * >(argp1);
16712 {
16713 PyThreadState* __tstate = wxPyBeginAllowThreads();
16714 {
16715 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16716 result = (wxString *) &_result_ref;
16717 }
16718 wxPyEndAllowThreads(__tstate);
16719 if (PyErr_Occurred()) SWIG_fail;
16720 }
16721 {
16722#if wxUSE_UNICODE
16723 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16724#else
16725 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16726#endif
16727 }
16728 return resultobj;
16729fail:
16730 return NULL;
16731}
16732
16733
16734SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16735 PyObject *obj;
16736 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16737 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16738 return SWIG_Py_Void();
16739}
16740
16741SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16742 return SWIG_Python_InitShadowInstance(args);
16743}
16744
16745SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16746 PyObject *resultobj = 0;
16747 int arg1 = (int) -1 ;
16748 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16749 wxPyLocale *result = 0 ;
16750 int val1 ;
16751 int ecode1 = 0 ;
16752 int val2 ;
16753 int ecode2 = 0 ;
16754 PyObject * obj0 = 0 ;
16755 PyObject * obj1 = 0 ;
16756 char * kwnames[] = {
16757 (char *) "language",(char *) "flags", NULL
16758 };
16759
16760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16761 if (obj0) {
16762 ecode1 = SWIG_AsVal_int(obj0, &val1);
16763 if (!SWIG_IsOK(ecode1)) {
16764 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16765 }
16766 arg1 = static_cast< int >(val1);
16767 }
16768 if (obj1) {
16769 ecode2 = SWIG_AsVal_int(obj1, &val2);
16770 if (!SWIG_IsOK(ecode2)) {
16771 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16772 }
16773 arg2 = static_cast< int >(val2);
16774 }
16775 {
16776 PyThreadState* __tstate = wxPyBeginAllowThreads();
16777 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16778 wxPyEndAllowThreads(__tstate);
16779 if (PyErr_Occurred()) SWIG_fail;
16780 }
16781 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16782 return resultobj;
16783fail:
16784 return NULL;
16785}
16786
16787
16788SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16789 PyObject *resultobj = 0;
16790 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16791 void *argp1 = 0 ;
16792 int res1 = 0 ;
16793 PyObject *swig_obj[1] ;
16794
16795 if (!args) SWIG_fail;
16796 swig_obj[0] = args;
16797 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16798 if (!SWIG_IsOK(res1)) {
16799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16800 }
16801 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16802 {
16803 PyThreadState* __tstate = wxPyBeginAllowThreads();
16804 delete arg1;
16805
1bd55598
RD
16806 wxPyEndAllowThreads(__tstate);
16807 if (PyErr_Occurred()) SWIG_fail;
16808 }
fc46b7f3 16809 resultobj = SWIG_Py_Void();
1bd55598
RD
16810 return resultobj;
16811fail:
1bd55598 16812 return NULL;
d55e5bfc
RD
16813}
16814
16815
fc46b7f3 16816SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 16817 PyObject *resultobj = 0;
fc46b7f3
RD
16818 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16819 PyObject *arg2 = (PyObject *) 0 ;
16820 PyObject *arg3 = (PyObject *) 0 ;
1bd55598
RD
16821 void *argp1 = 0 ;
16822 int res1 = 0 ;
16823 PyObject * obj0 = 0 ;
fc46b7f3
RD
16824 PyObject * obj1 = 0 ;
16825 PyObject * obj2 = 0 ;
1bd55598 16826 char * kwnames[] = {
fc46b7f3 16827 (char *) "self",(char *) "self",(char *) "_class", NULL
1bd55598
RD
16828 };
16829
fc46b7f3
RD
16830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
1bd55598 16832 if (!SWIG_IsOK(res1)) {
fc46b7f3 16833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
1bd55598 16834 }
fc46b7f3
RD
16835 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16836 arg2 = obj1;
16837 arg3 = obj2;
1bd55598
RD
16838 {
16839 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16840 (arg1)->_setCallbackInfo(arg2,arg3);
1bd55598
RD
16841 wxPyEndAllowThreads(__tstate);
16842 if (PyErr_Occurred()) SWIG_fail;
16843 }
16844 resultobj = SWIG_Py_Void();
16845 return resultobj;
16846fail:
16847 return NULL;
16848}
16849
16850
fc46b7f3 16851SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 16852 PyObject *resultobj = 0;
fc46b7f3
RD
16853 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16854 wxChar *arg2 = (wxChar *) 0 ;
16855 wxChar *arg3 = (wxChar *) NULL ;
16856 wxChar *result = 0 ;
1bd55598
RD
16857 void *argp1 = 0 ;
16858 int res1 = 0 ;
fc46b7f3
RD
16859 void *argp2 = 0 ;
16860 int res2 = 0 ;
16861 void *argp3 = 0 ;
16862 int res3 = 0 ;
1bd55598
RD
16863 PyObject * obj0 = 0 ;
16864 PyObject * obj1 = 0 ;
16865 PyObject * obj2 = 0 ;
16866 char * kwnames[] = {
16867 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16868 };
16869
fc46b7f3
RD
16870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
1bd55598 16872 if (!SWIG_IsOK(res1)) {
fc46b7f3 16873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
1bd55598 16874 }
fc46b7f3
RD
16875 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16876 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16877 if (!SWIG_IsOK(res2)) {
16878 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
1bd55598 16879 }
fc46b7f3 16880 arg2 = reinterpret_cast< wxChar * >(argp2);
1bd55598 16881 if (obj2) {
fc46b7f3
RD
16882 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16883 if (!SWIG_IsOK(res3)) {
16884 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
d55e5bfc 16885 }
fc46b7f3 16886 arg3 = reinterpret_cast< wxChar * >(argp3);
1bd55598
RD
16887 }
16888 {
16889 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16890 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
1bd55598
RD
16891 wxPyEndAllowThreads(__tstate);
16892 if (PyErr_Occurred()) SWIG_fail;
16893 }
fc46b7f3 16894 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
1bd55598
RD
16895 return resultobj;
16896fail:
1bd55598 16897 return NULL;
d55e5bfc
RD
16898}
16899
16900
fc46b7f3 16901SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 16902 PyObject *resultobj = 0;
fc46b7f3
RD
16903 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16904 wxChar *arg2 = (wxChar *) 0 ;
16905 wxChar *arg3 = (wxChar *) 0 ;
16906 size_t arg4 ;
16907 wxChar *arg5 = (wxChar *) NULL ;
16908 wxChar *result = 0 ;
1bd55598
RD
16909 void *argp1 = 0 ;
16910 int res1 = 0 ;
fc46b7f3
RD
16911 void *argp2 = 0 ;
16912 int res2 = 0 ;
16913 void *argp3 = 0 ;
16914 int res3 = 0 ;
16915 size_t val4 ;
16916 int ecode4 = 0 ;
16917 void *argp5 = 0 ;
16918 int res5 = 0 ;
16919 PyObject * obj0 = 0 ;
16920 PyObject * obj1 = 0 ;
16921 PyObject * obj2 = 0 ;
16922 PyObject * obj3 = 0 ;
16923 PyObject * obj4 = 0 ;
16924 char * kwnames[] = {
16925 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
16926 };
1bd55598 16927
fc46b7f3
RD
16928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
1bd55598 16930 if (!SWIG_IsOK(res1)) {
fc46b7f3
RD
16931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16932 }
16933 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16934 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16935 if (!SWIG_IsOK(res2)) {
16936 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
16937 }
16938 arg2 = reinterpret_cast< wxChar * >(argp2);
16939 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16940 if (!SWIG_IsOK(res3)) {
16941 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
16942 }
16943 arg3 = reinterpret_cast< wxChar * >(argp3);
16944 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16945 if (!SWIG_IsOK(ecode4)) {
16946 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
16947 }
16948 arg4 = static_cast< size_t >(val4);
16949 if (obj4) {
16950 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
16951 if (!SWIG_IsOK(res5)) {
16952 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
16953 }
16954 arg5 = reinterpret_cast< wxChar * >(argp5);
1bd55598 16955 }
1bd55598
RD
16956 {
16957 PyThreadState* __tstate = wxPyBeginAllowThreads();
fc46b7f3 16958 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
1bd55598
RD
16959 wxPyEndAllowThreads(__tstate);
16960 if (PyErr_Occurred()) SWIG_fail;
16961 }
fc46b7f3 16962 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
1bd55598
RD
16963 return resultobj;
16964fail:
16965 return NULL;
d55e5bfc
RD
16966}
16967
16968
fc46b7f3 16969SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
16970 PyObject *obj;
16971 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
fc46b7f3 16972 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
1bd55598 16973 return SWIG_Py_Void();
d55e5bfc
RD
16974}
16975
fc46b7f3 16976SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 16977 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
16978}
16979
1bd55598
RD
16980SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16981 PyObject *resultobj = 0;
16982 wxLocale *result = 0 ;
16983
16984 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
16985 {
16986 PyThreadState* __tstate = wxPyBeginAllowThreads();
16987 result = (wxLocale *)wxGetLocale();
16988 wxPyEndAllowThreads(__tstate);
16989 if (PyErr_Occurred()) SWIG_fail;
16990 }
16991 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
16992 return resultobj;
16993fail:
16994 return NULL;
d55e5bfc
RD
16995}
16996
16997
1bd55598
RD
16998SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16999 PyObject *resultobj = 0;
17000 wxString *arg1 = 0 ;
17001 wxString result;
17002 bool temp1 = false ;
17003
17004 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
17005 {
17006 arg1 = wxString_in_helper(swig_obj[0]);
17007 if (arg1 == NULL) SWIG_fail;
17008 temp1 = true;
17009 }
17010 {
17011 PyThreadState* __tstate = wxPyBeginAllowThreads();
17012 result = wxGetTranslation((wxString const &)*arg1);
17013 wxPyEndAllowThreads(__tstate);
17014 if (PyErr_Occurred()) SWIG_fail;
17015 }
17016 {
36ed4f51 17017#if wxUSE_UNICODE
1bd55598 17018 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 17019#else
1bd55598 17020 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 17021#endif
1bd55598
RD
17022 }
17023 {
17024 if (temp1)
17025 delete arg1;
17026 }
17027 return resultobj;
17028fail:
17029 {
17030 if (temp1)
17031 delete arg1;
17032 }
17033 return NULL;
5e483524
RD
17034}
17035
17036
1bd55598 17037SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
fc46b7f3
RD
17038 PyObject *resultobj = 0;
17039 wxString *arg1 = 0 ;
17040 wxString *arg2 = 0 ;
17041 wxString result;
17042 bool temp1 = false ;
17043 bool temp2 = false ;
17044
17045 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17046 {
17047 arg1 = wxString_in_helper(swig_obj[0]);
17048 if (arg1 == NULL) SWIG_fail;
17049 temp1 = true;
17050 }
17051 {
17052 arg2 = wxString_in_helper(swig_obj[1]);
17053 if (arg2 == NULL) SWIG_fail;
17054 temp2 = true;
17055 }
17056 {
17057 PyThreadState* __tstate = wxPyBeginAllowThreads();
17058 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
17059 wxPyEndAllowThreads(__tstate);
17060 if (PyErr_Occurred()) SWIG_fail;
17061 }
17062 {
17063#if wxUSE_UNICODE
17064 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17065#else
17066 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17067#endif
17068 }
17069 {
17070 if (temp1)
17071 delete arg1;
17072 }
17073 {
17074 if (temp2)
17075 delete arg2;
17076 }
17077 return resultobj;
17078fail:
17079 {
17080 if (temp1)
17081 delete arg1;
17082 }
17083 {
17084 if (temp2)
17085 delete arg2;
17086 }
17087 return NULL;
17088}
17089
17090
17091SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
1bd55598
RD
17092 PyObject *resultobj = 0;
17093 wxString *arg1 = 0 ;
17094 wxString *arg2 = 0 ;
17095 size_t arg3 ;
17096 wxString result;
17097 bool temp1 = false ;
17098 bool temp2 = false ;
17099 size_t val3 ;
17100 int ecode3 = 0 ;
17101
17102 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17103 {
17104 arg1 = wxString_in_helper(swig_obj[0]);
17105 if (arg1 == NULL) SWIG_fail;
17106 temp1 = true;
17107 }
17108 {
17109 arg2 = wxString_in_helper(swig_obj[1]);
17110 if (arg2 == NULL) SWIG_fail;
17111 temp2 = true;
17112 }
17113 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17114 if (!SWIG_IsOK(ecode3)) {
17115 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17116 }
17117 arg3 = static_cast< size_t >(val3);
17118 {
17119 PyThreadState* __tstate = wxPyBeginAllowThreads();
17120 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
17121 wxPyEndAllowThreads(__tstate);
17122 if (PyErr_Occurred()) SWIG_fail;
17123 }
17124 {
36ed4f51 17125#if wxUSE_UNICODE
1bd55598 17126 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
36ed4f51 17127#else
1bd55598 17128 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
36ed4f51 17129#endif
1bd55598
RD
17130 }
17131 {
17132 if (temp1)
17133 delete arg1;
17134 }
17135 {
17136 if (temp2)
17137 delete arg2;
17138 }
17139 return resultobj;
17140fail:
17141 {
17142 if (temp1)
17143 delete arg1;
17144 }
17145 {
17146 if (temp2)
17147 delete arg2;
17148 }
17149 return NULL;
d55e5bfc
RD
17150}
17151
17152
fc46b7f3
RD
17153SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17154 PyObject *resultobj = 0;
17155 wxString *arg1 = 0 ;
17156 wxString *arg2 = 0 ;
17157 size_t arg3 ;
17158 wxString *arg4 = 0 ;
17159 wxString result;
17160 bool temp1 = false ;
17161 bool temp2 = false ;
17162 size_t val3 ;
17163 int ecode3 = 0 ;
17164 bool temp4 = false ;
17165
17166 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17167 {
17168 arg1 = wxString_in_helper(swig_obj[0]);
17169 if (arg1 == NULL) SWIG_fail;
17170 temp1 = true;
17171 }
17172 {
17173 arg2 = wxString_in_helper(swig_obj[1]);
17174 if (arg2 == NULL) SWIG_fail;
17175 temp2 = true;
17176 }
17177 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17178 if (!SWIG_IsOK(ecode3)) {
17179 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17180 }
17181 arg3 = static_cast< size_t >(val3);
17182 {
17183 arg4 = wxString_in_helper(swig_obj[3]);
17184 if (arg4 == NULL) SWIG_fail;
17185 temp4 = true;
17186 }
17187 {
17188 PyThreadState* __tstate = wxPyBeginAllowThreads();
17189 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17190 wxPyEndAllowThreads(__tstate);
17191 if (PyErr_Occurred()) SWIG_fail;
17192 }
17193 {
17194#if wxUSE_UNICODE
17195 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17196#else
17197 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17198#endif
17199 }
17200 {
17201 if (temp1)
17202 delete arg1;
17203 }
17204 {
17205 if (temp2)
17206 delete arg2;
17207 }
17208 {
17209 if (temp4)
17210 delete arg4;
17211 }
17212 return resultobj;
17213fail:
17214 {
17215 if (temp1)
17216 delete arg1;
17217 }
17218 {
17219 if (temp2)
17220 delete arg2;
17221 }
17222 {
17223 if (temp4)
17224 delete arg4;
17225 }
17226 return NULL;
17227}
17228
17229
1bd55598
RD
17230SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17231 int argc;
fc46b7f3 17232 PyObject *argv[5];
1bd55598 17233
fc46b7f3 17234 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
1bd55598
RD
17235 --argc;
17236 if (argc == 1) {
17237 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17238 }
fc46b7f3 17239 if (argc == 2) {
1bd55598
RD
17240 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17241 }
fc46b7f3
RD
17242 if (argc == 3) {
17243 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17244 }
17245 if (argc == 4) {
17246 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17247 }
1bd55598
RD
17248
17249fail:
17250 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17251 return NULL;
d55e5bfc
RD
17252}
17253
17254
1bd55598
RD
17255SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17256 PyObject *resultobj = 0;
17257 wxEncodingConverter *result = 0 ;
17258
17259 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17260 {
17261 PyThreadState* __tstate = wxPyBeginAllowThreads();
17262 result = (wxEncodingConverter *)new wxEncodingConverter();
17263 wxPyEndAllowThreads(__tstate);
17264 if (PyErr_Occurred()) SWIG_fail;
17265 }
17266 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17267 return resultobj;
17268fail:
17269 return NULL;
d55e5bfc
RD
17270}
17271
17272
1bd55598
RD
17273SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17274 PyObject *resultobj = 0;
17275 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17276 void *argp1 = 0 ;
17277 int res1 = 0 ;
17278 PyObject *swig_obj[1] ;
17279
17280 if (!args) SWIG_fail;
17281 swig_obj[0] = args;
17282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17283 if (!SWIG_IsOK(res1)) {
17284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17285 }
17286 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17287 {
17288 PyThreadState* __tstate = wxPyBeginAllowThreads();
17289 delete arg1;
d55e5bfc 17290
1bd55598
RD
17291 wxPyEndAllowThreads(__tstate);
17292 if (PyErr_Occurred()) SWIG_fail;
17293 }
17294 resultobj = SWIG_Py_Void();
17295 return resultobj;
17296fail:
17297 return NULL;
17298}
17299
17300
17301SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17302 PyObject *resultobj = 0;
17303 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17304 wxFontEncoding arg2 ;
17305 wxFontEncoding arg3 ;
17306 int arg4 = (int) wxCONVERT_STRICT ;
17307 bool result;
17308 void *argp1 = 0 ;
17309 int res1 = 0 ;
17310 int val2 ;
17311 int ecode2 = 0 ;
17312 int val3 ;
17313 int ecode3 = 0 ;
17314 int val4 ;
17315 int ecode4 = 0 ;
17316 PyObject * obj0 = 0 ;
17317 PyObject * obj1 = 0 ;
17318 PyObject * obj2 = 0 ;
17319 PyObject * obj3 = 0 ;
17320 char * kwnames[] = {
17321 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17322 };
17323
17324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17326 if (!SWIG_IsOK(res1)) {
17327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17328 }
17329 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17330 ecode2 = SWIG_AsVal_int(obj1, &val2);
17331 if (!SWIG_IsOK(ecode2)) {
17332 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17333 }
17334 arg2 = static_cast< wxFontEncoding >(val2);
17335 ecode3 = SWIG_AsVal_int(obj2, &val3);
17336 if (!SWIG_IsOK(ecode3)) {
17337 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
17338 }
17339 arg3 = static_cast< wxFontEncoding >(val3);
17340 if (obj3) {
17341 ecode4 = SWIG_AsVal_int(obj3, &val4);
17342 if (!SWIG_IsOK(ecode4)) {
17343 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17344 }
17345 arg4 = static_cast< int >(val4);
17346 }
17347 {
17348 PyThreadState* __tstate = wxPyBeginAllowThreads();
17349 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17350 wxPyEndAllowThreads(__tstate);
17351 if (PyErr_Occurred()) SWIG_fail;
17352 }
17353 {
17354 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17355 }
17356 return resultobj;
17357fail:
17358 return NULL;
17359}
17360
17361
17362SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17363 PyObject *resultobj = 0;
17364 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17365 wxString *arg2 = 0 ;
17366 wxString result;
17367 void *argp1 = 0 ;
17368 int res1 = 0 ;
17369 bool temp2 = false ;
17370 PyObject * obj0 = 0 ;
17371 PyObject * obj1 = 0 ;
17372 char * kwnames[] = {
17373 (char *) "self",(char *) "input", NULL
17374 };
17375
17376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17378 if (!SWIG_IsOK(res1)) {
17379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17380 }
17381 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17382 {
17383 arg2 = wxString_in_helper(obj1);
17384 if (arg2 == NULL) SWIG_fail;
17385 temp2 = true;
17386 }
17387 {
17388 PyThreadState* __tstate = wxPyBeginAllowThreads();
17389 result = (arg1)->Convert((wxString const &)*arg2);
17390 wxPyEndAllowThreads(__tstate);
17391 if (PyErr_Occurred()) SWIG_fail;
17392 }
17393 {
d55e5bfc 17394#if wxUSE_UNICODE
1bd55598 17395 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 17396#else
1bd55598 17397 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 17398#endif
1bd55598
RD
17399 }
17400 {
17401 if (temp2)
17402 delete arg2;
17403 }
17404 return resultobj;
17405fail:
17406 {
17407 if (temp2)
17408 delete arg2;
17409 }
17410 return NULL;
17411}
17412
17413
17414SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17415 PyObject *resultobj = 0;
17416 wxFontEncoding arg1 ;
17417 int arg2 = (int) wxPLATFORM_CURRENT ;
17418 wxFontEncodingArray result;
17419 int val1 ;
17420 int ecode1 = 0 ;
17421 int val2 ;
17422 int ecode2 = 0 ;
17423 PyObject * obj0 = 0 ;
17424 PyObject * obj1 = 0 ;
17425 char * kwnames[] = {
17426 (char *) "enc",(char *) "platform", NULL
17427 };
17428
17429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17430 ecode1 = SWIG_AsVal_int(obj0, &val1);
17431 if (!SWIG_IsOK(ecode1)) {
17432 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17433 }
17434 arg1 = static_cast< wxFontEncoding >(val1);
17435 if (obj1) {
17436 ecode2 = SWIG_AsVal_int(obj1, &val2);
17437 if (!SWIG_IsOK(ecode2)) {
17438 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17439 }
17440 arg2 = static_cast< int >(val2);
17441 }
17442 {
17443 PyThreadState* __tstate = wxPyBeginAllowThreads();
17444 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17445 wxPyEndAllowThreads(__tstate);
17446 if (PyErr_Occurred()) SWIG_fail;
17447 }
17448 {
17449 resultobj = PyList_New(0);
17450 for (size_t i=0; i < (&result)->GetCount(); i++) {
17451 PyObject* number = PyInt_FromLong((&result)->Item(i));
17452 PyList_Append(resultobj, number);
17453 Py_DECREF(number);
d55e5bfc 17454 }
1bd55598
RD
17455 }
17456 return resultobj;
17457fail:
17458 return NULL;
d55e5bfc
RD
17459}
17460
17461
1bd55598
RD
17462SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17463 PyObject *resultobj = 0;
17464 wxFontEncoding arg1 ;
17465 wxFontEncodingArray result;
17466 int val1 ;
17467 int ecode1 = 0 ;
17468 PyObject * obj0 = 0 ;
17469 char * kwnames[] = {
17470 (char *) "enc", NULL
17471 };
17472
17473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17474 ecode1 = SWIG_AsVal_int(obj0, &val1);
17475 if (!SWIG_IsOK(ecode1)) {
17476 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17477 }
17478 arg1 = static_cast< wxFontEncoding >(val1);
17479 {
17480 PyThreadState* __tstate = wxPyBeginAllowThreads();
17481 result = wxEncodingConverter::GetAllEquivalents(arg1);
17482 wxPyEndAllowThreads(__tstate);
17483 if (PyErr_Occurred()) SWIG_fail;
17484 }
17485 {
17486 resultobj = PyList_New(0);
17487 for (size_t i=0; i < (&result)->GetCount(); i++) {
17488 PyObject* number = PyInt_FromLong((&result)->Item(i));
17489 PyList_Append(resultobj, number);
17490 Py_DECREF(number);
d55e5bfc 17491 }
1bd55598
RD
17492 }
17493 return resultobj;
17494fail:
17495 return NULL;
17496}
17497
17498
17499SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17500 PyObject *resultobj = 0;
17501 wxFontEncoding arg1 ;
17502 wxFontEncoding arg2 ;
17503 bool result;
17504 int val1 ;
17505 int ecode1 = 0 ;
17506 int val2 ;
17507 int ecode2 = 0 ;
17508 PyObject * obj0 = 0 ;
17509 PyObject * obj1 = 0 ;
17510 char * kwnames[] = {
17511 (char *) "encIn",(char *) "encOut", NULL
17512 };
17513
17514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17515 ecode1 = SWIG_AsVal_int(obj0, &val1);
17516 if (!SWIG_IsOK(ecode1)) {
17517 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17518 }
17519 arg1 = static_cast< wxFontEncoding >(val1);
17520 ecode2 = SWIG_AsVal_int(obj1, &val2);
17521 if (!SWIG_IsOK(ecode2)) {
17522 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17523 }
17524 arg2 = static_cast< wxFontEncoding >(val2);
17525 {
17526 PyThreadState* __tstate = wxPyBeginAllowThreads();
17527 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17528 wxPyEndAllowThreads(__tstate);
17529 if (PyErr_Occurred()) SWIG_fail;
17530 }
17531 {
17532 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17533 }
17534 return resultobj;
17535fail:
17536 return NULL;
d55e5bfc
RD
17537}
17538
17539
1bd55598
RD
17540SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17541 PyObject *obj;
17542 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17543 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17544 return SWIG_Py_Void();
d55e5bfc
RD
17545}
17546
1bd55598
RD
17547SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17548 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
17549}
17550
1bd55598
RD
17551SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17552 PyObject *resultobj = 0;
17553 wxDC *arg1 = (wxDC *) 0 ;
17554 void *argp1 = 0 ;
17555 int res1 = 0 ;
17556 PyObject *swig_obj[1] ;
17557
17558 if (!args) SWIG_fail;
17559 swig_obj[0] = args;
17560 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17561 if (!SWIG_IsOK(res1)) {
17562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17563 }
17564 arg1 = reinterpret_cast< wxDC * >(argp1);
17565 {
17566 PyThreadState* __tstate = wxPyBeginAllowThreads();
17567 delete arg1;
d55e5bfc 17568
1bd55598
RD
17569 wxPyEndAllowThreads(__tstate);
17570 if (PyErr_Occurred()) SWIG_fail;
17571 }
17572 resultobj = SWIG_Py_Void();
17573 return resultobj;
17574fail:
17575 return NULL;
17576}
17577
17578
17579SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17580 PyObject *resultobj = 0;
17581 wxDC *arg1 = (wxDC *) 0 ;
17582 int arg2 ;
17583 int arg3 ;
17584 wxColour *arg4 = 0 ;
17585 int arg5 = (int) wxFLOOD_SURFACE ;
17586 bool result;
17587 void *argp1 = 0 ;
17588 int res1 = 0 ;
17589 int val2 ;
17590 int ecode2 = 0 ;
17591 int val3 ;
17592 int ecode3 = 0 ;
17593 wxColour temp4 ;
17594 int val5 ;
17595 int ecode5 = 0 ;
17596 PyObject * obj0 = 0 ;
17597 PyObject * obj1 = 0 ;
17598 PyObject * obj2 = 0 ;
17599 PyObject * obj3 = 0 ;
17600 PyObject * obj4 = 0 ;
17601 char * kwnames[] = {
17602 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17603 };
17604
17605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17607 if (!SWIG_IsOK(res1)) {
17608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17609 }
17610 arg1 = reinterpret_cast< wxDC * >(argp1);
17611 ecode2 = SWIG_AsVal_int(obj1, &val2);
17612 if (!SWIG_IsOK(ecode2)) {
17613 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17614 }
17615 arg2 = static_cast< int >(val2);
17616 ecode3 = SWIG_AsVal_int(obj2, &val3);
17617 if (!SWIG_IsOK(ecode3)) {
17618 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17619 }
17620 arg3 = static_cast< int >(val3);
17621 {
17622 arg4 = &temp4;
17623 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17624 }
17625 if (obj4) {
17626 ecode5 = SWIG_AsVal_int(obj4, &val5);
17627 if (!SWIG_IsOK(ecode5)) {
17628 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17629 }
17630 arg5 = static_cast< int >(val5);
17631 }
17632 {
17633 PyThreadState* __tstate = wxPyBeginAllowThreads();
17634 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17635 wxPyEndAllowThreads(__tstate);
17636 if (PyErr_Occurred()) SWIG_fail;
17637 }
17638 {
17639 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17640 }
17641 return resultobj;
17642fail:
17643 return NULL;
17644}
17645
17646
17647SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17648 PyObject *resultobj = 0;
17649 wxDC *arg1 = (wxDC *) 0 ;
17650 wxPoint *arg2 = 0 ;
17651 wxColour *arg3 = 0 ;
17652 int arg4 = (int) wxFLOOD_SURFACE ;
17653 bool result;
17654 void *argp1 = 0 ;
17655 int res1 = 0 ;
17656 wxPoint temp2 ;
17657 wxColour temp3 ;
17658 int val4 ;
17659 int ecode4 = 0 ;
17660 PyObject * obj0 = 0 ;
17661 PyObject * obj1 = 0 ;
17662 PyObject * obj2 = 0 ;
17663 PyObject * obj3 = 0 ;
17664 char * kwnames[] = {
17665 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17666 };
17667
17668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17670 if (!SWIG_IsOK(res1)) {
17671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17672 }
17673 arg1 = reinterpret_cast< wxDC * >(argp1);
17674 {
17675 arg2 = &temp2;
17676 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17677 }
17678 {
17679 arg3 = &temp3;
17680 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17681 }
17682 if (obj3) {
17683 ecode4 = SWIG_AsVal_int(obj3, &val4);
17684 if (!SWIG_IsOK(ecode4)) {
17685 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17686 }
17687 arg4 = static_cast< int >(val4);
17688 }
17689 {
17690 PyThreadState* __tstate = wxPyBeginAllowThreads();
17691 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17692 wxPyEndAllowThreads(__tstate);
17693 if (PyErr_Occurred()) SWIG_fail;
17694 }
17695 {
17696 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17697 }
17698 return resultobj;
17699fail:
17700 return NULL;
17701}
17702
17703
17704SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17705 PyObject *resultobj = 0;
17706 wxDC *arg1 = (wxDC *) 0 ;
17707 wxRect *arg2 = 0 ;
17708 wxColour *arg3 = 0 ;
17709 wxColour *arg4 = 0 ;
17710 wxPoint *arg5 = 0 ;
17711 void *argp1 = 0 ;
17712 int res1 = 0 ;
17713 wxRect temp2 ;
17714 wxColour temp3 ;
17715 wxColour temp4 ;
17716 wxPoint temp5 ;
17717 PyObject * obj0 = 0 ;
17718 PyObject * obj1 = 0 ;
17719 PyObject * obj2 = 0 ;
17720 PyObject * obj3 = 0 ;
17721 PyObject * obj4 = 0 ;
17722 char * kwnames[] = {
17723 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17724 };
17725
17726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17728 if (!SWIG_IsOK(res1)) {
17729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17730 }
17731 arg1 = reinterpret_cast< wxDC * >(argp1);
17732 {
17733 arg2 = &temp2;
17734 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17735 }
17736 {
17737 arg3 = &temp3;
17738 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17739 }
17740 {
17741 arg4 = &temp4;
17742 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17743 }
17744 {
17745 arg5 = &temp5;
17746 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17747 }
17748 {
17749 PyThreadState* __tstate = wxPyBeginAllowThreads();
17750 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17751 wxPyEndAllowThreads(__tstate);
17752 if (PyErr_Occurred()) SWIG_fail;
17753 }
17754 resultobj = SWIG_Py_Void();
17755 return resultobj;
17756fail:
17757 return NULL;
17758}
17759
17760
17761SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17762 PyObject *resultobj = 0;
17763 wxDC *arg1 = (wxDC *) 0 ;
17764 wxRect *arg2 = 0 ;
17765 wxColour *arg3 = 0 ;
17766 wxColour *arg4 = 0 ;
17767 wxDirection arg5 = (wxDirection) wxEAST ;
17768 void *argp1 = 0 ;
17769 int res1 = 0 ;
17770 wxRect temp2 ;
17771 wxColour temp3 ;
17772 wxColour temp4 ;
17773 int val5 ;
17774 int ecode5 = 0 ;
17775 PyObject * obj0 = 0 ;
17776 PyObject * obj1 = 0 ;
17777 PyObject * obj2 = 0 ;
17778 PyObject * obj3 = 0 ;
17779 PyObject * obj4 = 0 ;
17780 char * kwnames[] = {
17781 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
17782 };
17783
17784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17786 if (!SWIG_IsOK(res1)) {
17787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
17788 }
17789 arg1 = reinterpret_cast< wxDC * >(argp1);
17790 {
17791 arg2 = &temp2;
17792 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17793 }
17794 {
17795 arg3 = &temp3;
17796 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17797 }
17798 {
17799 arg4 = &temp4;
17800 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17801 }
17802 if (obj4) {
17803 ecode5 = SWIG_AsVal_int(obj4, &val5);
17804 if (!SWIG_IsOK(ecode5)) {
17805 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
17806 }
17807 arg5 = static_cast< wxDirection >(val5);
17808 }
17809 {
17810 PyThreadState* __tstate = wxPyBeginAllowThreads();
17811 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
17812 wxPyEndAllowThreads(__tstate);
17813 if (PyErr_Occurred()) SWIG_fail;
17814 }
17815 resultobj = SWIG_Py_Void();
17816 return resultobj;
17817fail:
17818 return NULL;
17819}
17820
17821
17822SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17823 PyObject *resultobj = 0;
17824 wxDC *arg1 = (wxDC *) 0 ;
17825 int arg2 ;
17826 int arg3 ;
17827 wxColour result;
17828 void *argp1 = 0 ;
17829 int res1 = 0 ;
17830 int val2 ;
17831 int ecode2 = 0 ;
17832 int val3 ;
17833 int ecode3 = 0 ;
17834 PyObject * obj0 = 0 ;
17835 PyObject * obj1 = 0 ;
17836 PyObject * obj2 = 0 ;
17837 char * kwnames[] = {
17838 (char *) "self",(char *) "x",(char *) "y", NULL
17839 };
17840
17841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17843 if (!SWIG_IsOK(res1)) {
17844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
17845 }
17846 arg1 = reinterpret_cast< wxDC * >(argp1);
17847 ecode2 = SWIG_AsVal_int(obj1, &val2);
17848 if (!SWIG_IsOK(ecode2)) {
17849 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
17850 }
17851 arg2 = static_cast< int >(val2);
17852 ecode3 = SWIG_AsVal_int(obj2, &val3);
17853 if (!SWIG_IsOK(ecode3)) {
17854 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
17855 }
17856 arg3 = static_cast< int >(val3);
17857 {
17858 PyThreadState* __tstate = wxPyBeginAllowThreads();
17859 result = wxDC_GetPixel(arg1,arg2,arg3);
17860 wxPyEndAllowThreads(__tstate);
17861 if (PyErr_Occurred()) SWIG_fail;
17862 }
17863 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17864 return resultobj;
17865fail:
17866 return NULL;
17867}
17868
17869
17870SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17871 PyObject *resultobj = 0;
17872 wxDC *arg1 = (wxDC *) 0 ;
17873 wxPoint *arg2 = 0 ;
17874 wxColour result;
17875 void *argp1 = 0 ;
17876 int res1 = 0 ;
17877 wxPoint temp2 ;
17878 PyObject * obj0 = 0 ;
17879 PyObject * obj1 = 0 ;
17880 char * kwnames[] = {
17881 (char *) "self",(char *) "pt", NULL
17882 };
17883
17884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17886 if (!SWIG_IsOK(res1)) {
17887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17888 }
17889 arg1 = reinterpret_cast< wxDC * >(argp1);
17890 {
17891 arg2 = &temp2;
17892 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17893 }
17894 {
17895 PyThreadState* __tstate = wxPyBeginAllowThreads();
17896 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
17897 wxPyEndAllowThreads(__tstate);
17898 if (PyErr_Occurred()) SWIG_fail;
17899 }
17900 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17901 return resultobj;
17902fail:
17903 return NULL;
17904}
17905
17906
17907SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17908 PyObject *resultobj = 0;
17909 wxDC *arg1 = (wxDC *) 0 ;
17910 int arg2 ;
17911 int arg3 ;
17912 int arg4 ;
17913 int arg5 ;
17914 void *argp1 = 0 ;
17915 int res1 = 0 ;
17916 int val2 ;
17917 int ecode2 = 0 ;
17918 int val3 ;
17919 int ecode3 = 0 ;
17920 int val4 ;
17921 int ecode4 = 0 ;
17922 int val5 ;
17923 int ecode5 = 0 ;
17924 PyObject * obj0 = 0 ;
17925 PyObject * obj1 = 0 ;
17926 PyObject * obj2 = 0 ;
17927 PyObject * obj3 = 0 ;
17928 PyObject * obj4 = 0 ;
17929 char * kwnames[] = {
17930 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
17931 };
17932
17933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17935 if (!SWIG_IsOK(res1)) {
17936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
17937 }
17938 arg1 = reinterpret_cast< wxDC * >(argp1);
17939 ecode2 = SWIG_AsVal_int(obj1, &val2);
17940 if (!SWIG_IsOK(ecode2)) {
17941 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
17942 }
17943 arg2 = static_cast< int >(val2);
17944 ecode3 = SWIG_AsVal_int(obj2, &val3);
17945 if (!SWIG_IsOK(ecode3)) {
17946 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
17947 }
17948 arg3 = static_cast< int >(val3);
17949 ecode4 = SWIG_AsVal_int(obj3, &val4);
17950 if (!SWIG_IsOK(ecode4)) {
17951 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
17952 }
17953 arg4 = static_cast< int >(val4);
17954 ecode5 = SWIG_AsVal_int(obj4, &val5);
17955 if (!SWIG_IsOK(ecode5)) {
17956 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
17957 }
17958 arg5 = static_cast< int >(val5);
17959 {
17960 PyThreadState* __tstate = wxPyBeginAllowThreads();
17961 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
17962 wxPyEndAllowThreads(__tstate);
17963 if (PyErr_Occurred()) SWIG_fail;
17964 }
17965 resultobj = SWIG_Py_Void();
17966 return resultobj;
17967fail:
17968 return NULL;
17969}
17970
17971
17972SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17973 PyObject *resultobj = 0;
17974 wxDC *arg1 = (wxDC *) 0 ;
17975 wxPoint *arg2 = 0 ;
17976 wxPoint *arg3 = 0 ;
17977 void *argp1 = 0 ;
17978 int res1 = 0 ;
17979 wxPoint temp2 ;
17980 wxPoint temp3 ;
17981 PyObject * obj0 = 0 ;
17982 PyObject * obj1 = 0 ;
17983 PyObject * obj2 = 0 ;
17984 char * kwnames[] = {
17985 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
17986 };
17987
17988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17989 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17990 if (!SWIG_IsOK(res1)) {
17991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
17992 }
17993 arg1 = reinterpret_cast< wxDC * >(argp1);
17994 {
17995 arg2 = &temp2;
17996 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17997 }
17998 {
17999 arg3 = &temp3;
18000 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18001 }
18002 {
18003 PyThreadState* __tstate = wxPyBeginAllowThreads();
18004 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
18005 wxPyEndAllowThreads(__tstate);
18006 if (PyErr_Occurred()) SWIG_fail;
18007 }
18008 resultobj = SWIG_Py_Void();
18009 return resultobj;
18010fail:
18011 return NULL;
18012}
18013
18014
18015SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18016 PyObject *resultobj = 0;
18017 wxDC *arg1 = (wxDC *) 0 ;
18018 int arg2 ;
18019 int arg3 ;
18020 void *argp1 = 0 ;
18021 int res1 = 0 ;
18022 int val2 ;
18023 int ecode2 = 0 ;
18024 int val3 ;
18025 int ecode3 = 0 ;
18026 PyObject * obj0 = 0 ;
18027 PyObject * obj1 = 0 ;
18028 PyObject * obj2 = 0 ;
18029 char * kwnames[] = {
18030 (char *) "self",(char *) "x",(char *) "y", NULL
18031 };
18032
18033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18035 if (!SWIG_IsOK(res1)) {
18036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
18037 }
18038 arg1 = reinterpret_cast< wxDC * >(argp1);
18039 ecode2 = SWIG_AsVal_int(obj1, &val2);
18040 if (!SWIG_IsOK(ecode2)) {
18041 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
18042 }
18043 arg2 = static_cast< int >(val2);
18044 ecode3 = SWIG_AsVal_int(obj2, &val3);
18045 if (!SWIG_IsOK(ecode3)) {
18046 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18047 }
18048 arg3 = static_cast< int >(val3);
18049 {
18050 PyThreadState* __tstate = wxPyBeginAllowThreads();
18051 (arg1)->CrossHair(arg2,arg3);
18052 wxPyEndAllowThreads(__tstate);
18053 if (PyErr_Occurred()) SWIG_fail;
18054 }
18055 resultobj = SWIG_Py_Void();
18056 return resultobj;
18057fail:
18058 return NULL;
18059}
18060
18061
18062SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18063 PyObject *resultobj = 0;
18064 wxDC *arg1 = (wxDC *) 0 ;
18065 wxPoint *arg2 = 0 ;
18066 void *argp1 = 0 ;
18067 int res1 = 0 ;
18068 wxPoint temp2 ;
18069 PyObject * obj0 = 0 ;
18070 PyObject * obj1 = 0 ;
18071 char * kwnames[] = {
18072 (char *) "self",(char *) "pt", NULL
18073 };
18074
18075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18077 if (!SWIG_IsOK(res1)) {
18078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18079 }
18080 arg1 = reinterpret_cast< wxDC * >(argp1);
18081 {
18082 arg2 = &temp2;
18083 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18084 }
18085 {
18086 PyThreadState* __tstate = wxPyBeginAllowThreads();
18087 (arg1)->CrossHair((wxPoint const &)*arg2);
18088 wxPyEndAllowThreads(__tstate);
18089 if (PyErr_Occurred()) SWIG_fail;
18090 }
18091 resultobj = SWIG_Py_Void();
18092 return resultobj;
18093fail:
18094 return NULL;
18095}
18096
18097
18098SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18099 PyObject *resultobj = 0;
18100 wxDC *arg1 = (wxDC *) 0 ;
18101 int arg2 ;
18102 int arg3 ;
18103 int arg4 ;
18104 int arg5 ;
18105 int arg6 ;
18106 int arg7 ;
18107 void *argp1 = 0 ;
18108 int res1 = 0 ;
18109 int val2 ;
18110 int ecode2 = 0 ;
18111 int val3 ;
18112 int ecode3 = 0 ;
18113 int val4 ;
18114 int ecode4 = 0 ;
18115 int val5 ;
18116 int ecode5 = 0 ;
18117 int val6 ;
18118 int ecode6 = 0 ;
18119 int val7 ;
18120 int ecode7 = 0 ;
18121 PyObject * obj0 = 0 ;
18122 PyObject * obj1 = 0 ;
18123 PyObject * obj2 = 0 ;
18124 PyObject * obj3 = 0 ;
18125 PyObject * obj4 = 0 ;
18126 PyObject * obj5 = 0 ;
18127 PyObject * obj6 = 0 ;
18128 char * kwnames[] = {
18129 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
18130 };
18131
18132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18134 if (!SWIG_IsOK(res1)) {
18135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
18136 }
18137 arg1 = reinterpret_cast< wxDC * >(argp1);
18138 ecode2 = SWIG_AsVal_int(obj1, &val2);
18139 if (!SWIG_IsOK(ecode2)) {
18140 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
18141 }
18142 arg2 = static_cast< int >(val2);
18143 ecode3 = SWIG_AsVal_int(obj2, &val3);
18144 if (!SWIG_IsOK(ecode3)) {
18145 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
18146 }
18147 arg3 = static_cast< int >(val3);
18148 ecode4 = SWIG_AsVal_int(obj3, &val4);
18149 if (!SWIG_IsOK(ecode4)) {
18150 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
18151 }
18152 arg4 = static_cast< int >(val4);
18153 ecode5 = SWIG_AsVal_int(obj4, &val5);
18154 if (!SWIG_IsOK(ecode5)) {
18155 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
18156 }
18157 arg5 = static_cast< int >(val5);
18158 ecode6 = SWIG_AsVal_int(obj5, &val6);
18159 if (!SWIG_IsOK(ecode6)) {
18160 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
18161 }
18162 arg6 = static_cast< int >(val6);
18163 ecode7 = SWIG_AsVal_int(obj6, &val7);
18164 if (!SWIG_IsOK(ecode7)) {
18165 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
18166 }
18167 arg7 = static_cast< int >(val7);
18168 {
18169 PyThreadState* __tstate = wxPyBeginAllowThreads();
18170 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18171 wxPyEndAllowThreads(__tstate);
18172 if (PyErr_Occurred()) SWIG_fail;
18173 }
18174 resultobj = SWIG_Py_Void();
18175 return resultobj;
18176fail:
18177 return NULL;
18178}
18179
18180
18181SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18182 PyObject *resultobj = 0;
18183 wxDC *arg1 = (wxDC *) 0 ;
18184 wxPoint *arg2 = 0 ;
18185 wxPoint *arg3 = 0 ;
18186 wxPoint *arg4 = 0 ;
18187 void *argp1 = 0 ;
18188 int res1 = 0 ;
18189 wxPoint temp2 ;
18190 wxPoint temp3 ;
18191 wxPoint temp4 ;
18192 PyObject * obj0 = 0 ;
18193 PyObject * obj1 = 0 ;
18194 PyObject * obj2 = 0 ;
18195 PyObject * obj3 = 0 ;
18196 char * kwnames[] = {
18197 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18198 };
18199
18200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18202 if (!SWIG_IsOK(res1)) {
18203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18204 }
18205 arg1 = reinterpret_cast< wxDC * >(argp1);
18206 {
18207 arg2 = &temp2;
18208 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18209 }
18210 {
18211 arg3 = &temp3;
18212 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18213 }
18214 {
18215 arg4 = &temp4;
18216 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18217 }
18218 {
18219 PyThreadState* __tstate = wxPyBeginAllowThreads();
18220 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18221 wxPyEndAllowThreads(__tstate);
18222 if (PyErr_Occurred()) SWIG_fail;
18223 }
18224 resultobj = SWIG_Py_Void();
18225 return resultobj;
18226fail:
18227 return NULL;
18228}
18229
18230
18231SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18232 PyObject *resultobj = 0;
18233 wxDC *arg1 = (wxDC *) 0 ;
18234 int arg2 ;
18235 int arg3 ;
18236 int arg4 ;
18237 int arg5 ;
18238 void *argp1 = 0 ;
18239 int res1 = 0 ;
18240 int val2 ;
18241 int ecode2 = 0 ;
18242 int val3 ;
18243 int ecode3 = 0 ;
18244 int val4 ;
18245 int ecode4 = 0 ;
18246 int val5 ;
18247 int ecode5 = 0 ;
18248 PyObject * obj0 = 0 ;
18249 PyObject * obj1 = 0 ;
18250 PyObject * obj2 = 0 ;
18251 PyObject * obj3 = 0 ;
18252 PyObject * obj4 = 0 ;
18253 char * kwnames[] = {
18254 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18255 };
18256
18257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18259 if (!SWIG_IsOK(res1)) {
18260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18261 }
18262 arg1 = reinterpret_cast< wxDC * >(argp1);
18263 ecode2 = SWIG_AsVal_int(obj1, &val2);
18264 if (!SWIG_IsOK(ecode2)) {
18265 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18266 }
18267 arg2 = static_cast< int >(val2);
18268 ecode3 = SWIG_AsVal_int(obj2, &val3);
18269 if (!SWIG_IsOK(ecode3)) {
18270 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18271 }
18272 arg3 = static_cast< int >(val3);
18273 ecode4 = SWIG_AsVal_int(obj3, &val4);
18274 if (!SWIG_IsOK(ecode4)) {
18275 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18276 }
18277 arg4 = static_cast< int >(val4);
18278 ecode5 = SWIG_AsVal_int(obj4, &val5);
18279 if (!SWIG_IsOK(ecode5)) {
18280 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18281 }
18282 arg5 = static_cast< int >(val5);
18283 {
18284 PyThreadState* __tstate = wxPyBeginAllowThreads();
18285 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18286 wxPyEndAllowThreads(__tstate);
18287 if (PyErr_Occurred()) SWIG_fail;
18288 }
18289 resultobj = SWIG_Py_Void();
18290 return resultobj;
18291fail:
18292 return NULL;
18293}
18294
18295
18296SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18297 PyObject *resultobj = 0;
18298 wxDC *arg1 = (wxDC *) 0 ;
18299 wxRect *arg2 = 0 ;
18300 void *argp1 = 0 ;
18301 int res1 = 0 ;
18302 wxRect temp2 ;
18303 PyObject * obj0 = 0 ;
18304 PyObject * obj1 = 0 ;
18305 char * kwnames[] = {
18306 (char *) "self",(char *) "rect", NULL
18307 };
18308
18309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
18310 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18311 if (!SWIG_IsOK(res1)) {
18312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18313 }
18314 arg1 = reinterpret_cast< wxDC * >(argp1);
18315 {
18316 arg2 = &temp2;
18317 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18318 }
18319 {
18320 PyThreadState* __tstate = wxPyBeginAllowThreads();
18321 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18322 wxPyEndAllowThreads(__tstate);
18323 if (PyErr_Occurred()) SWIG_fail;
18324 }
18325 resultobj = SWIG_Py_Void();
18326 return resultobj;
18327fail:
18328 return NULL;
18329}
18330
18331
18332SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18333 PyObject *resultobj = 0;
18334 wxDC *arg1 = (wxDC *) 0 ;
18335 int arg2 ;
18336 int arg3 ;
18337 int arg4 ;
18338 int arg5 ;
18339 double arg6 ;
18340 double arg7 ;
18341 void *argp1 = 0 ;
18342 int res1 = 0 ;
18343 int val2 ;
18344 int ecode2 = 0 ;
18345 int val3 ;
18346 int ecode3 = 0 ;
18347 int val4 ;
18348 int ecode4 = 0 ;
18349 int val5 ;
18350 int ecode5 = 0 ;
18351 double val6 ;
18352 int ecode6 = 0 ;
18353 double val7 ;
18354 int ecode7 = 0 ;
18355 PyObject * obj0 = 0 ;
18356 PyObject * obj1 = 0 ;
18357 PyObject * obj2 = 0 ;
18358 PyObject * obj3 = 0 ;
18359 PyObject * obj4 = 0 ;
18360 PyObject * obj5 = 0 ;
18361 PyObject * obj6 = 0 ;
18362 char * kwnames[] = {
18363 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18364 };
18365
18366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18368 if (!SWIG_IsOK(res1)) {
18369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18370 }
18371 arg1 = reinterpret_cast< wxDC * >(argp1);
18372 ecode2 = SWIG_AsVal_int(obj1, &val2);
18373 if (!SWIG_IsOK(ecode2)) {
18374 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18375 }
18376 arg2 = static_cast< int >(val2);
18377 ecode3 = SWIG_AsVal_int(obj2, &val3);
18378 if (!SWIG_IsOK(ecode3)) {
18379 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18380 }
18381 arg3 = static_cast< int >(val3);
18382 ecode4 = SWIG_AsVal_int(obj3, &val4);
18383 if (!SWIG_IsOK(ecode4)) {
18384 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18385 }
18386 arg4 = static_cast< int >(val4);
18387 ecode5 = SWIG_AsVal_int(obj4, &val5);
18388 if (!SWIG_IsOK(ecode5)) {
18389 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18390 }
18391 arg5 = static_cast< int >(val5);
18392 ecode6 = SWIG_AsVal_double(obj5, &val6);
18393 if (!SWIG_IsOK(ecode6)) {
18394 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18395 }
18396 arg6 = static_cast< double >(val6);
18397 ecode7 = SWIG_AsVal_double(obj6, &val7);
18398 if (!SWIG_IsOK(ecode7)) {
18399 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18400 }
18401 arg7 = static_cast< double >(val7);
18402 {
18403 PyThreadState* __tstate = wxPyBeginAllowThreads();
18404 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18405 wxPyEndAllowThreads(__tstate);
18406 if (PyErr_Occurred()) SWIG_fail;
18407 }
18408 resultobj = SWIG_Py_Void();
18409 return resultobj;
18410fail:
18411 return NULL;
18412}
18413
18414
18415SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18416 PyObject *resultobj = 0;
18417 wxDC *arg1 = (wxDC *) 0 ;
18418 wxPoint *arg2 = 0 ;
18419 wxSize *arg3 = 0 ;
18420 double arg4 ;
18421 double arg5 ;
18422 void *argp1 = 0 ;
18423 int res1 = 0 ;
18424 wxPoint temp2 ;
18425 wxSize temp3 ;
18426 double val4 ;
18427 int ecode4 = 0 ;
18428 double val5 ;
18429 int ecode5 = 0 ;
18430 PyObject * obj0 = 0 ;
18431 PyObject * obj1 = 0 ;
18432 PyObject * obj2 = 0 ;
18433 PyObject * obj3 = 0 ;
18434 PyObject * obj4 = 0 ;
18435 char * kwnames[] = {
18436 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18437 };
18438
18439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18441 if (!SWIG_IsOK(res1)) {
18442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18443 }
18444 arg1 = reinterpret_cast< wxDC * >(argp1);
18445 {
18446 arg2 = &temp2;
18447 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18448 }
18449 {
18450 arg3 = &temp3;
18451 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18452 }
18453 ecode4 = SWIG_AsVal_double(obj3, &val4);
18454 if (!SWIG_IsOK(ecode4)) {
18455 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18456 }
18457 arg4 = static_cast< double >(val4);
18458 ecode5 = SWIG_AsVal_double(obj4, &val5);
18459 if (!SWIG_IsOK(ecode5)) {
18460 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18461 }
18462 arg5 = static_cast< double >(val5);
18463 {
18464 PyThreadState* __tstate = wxPyBeginAllowThreads();
18465 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18466 wxPyEndAllowThreads(__tstate);
18467 if (PyErr_Occurred()) SWIG_fail;
18468 }
18469 resultobj = SWIG_Py_Void();
18470 return resultobj;
18471fail:
18472 return NULL;
18473}
18474
18475
18476SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18477 PyObject *resultobj = 0;
18478 wxDC *arg1 = (wxDC *) 0 ;
18479 int arg2 ;
18480 int arg3 ;
18481 void *argp1 = 0 ;
18482 int res1 = 0 ;
18483 int val2 ;
18484 int ecode2 = 0 ;
18485 int val3 ;
18486 int ecode3 = 0 ;
18487 PyObject * obj0 = 0 ;
18488 PyObject * obj1 = 0 ;
18489 PyObject * obj2 = 0 ;
18490 char * kwnames[] = {
18491 (char *) "self",(char *) "x",(char *) "y", NULL
18492 };
18493
18494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18496 if (!SWIG_IsOK(res1)) {
18497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18498 }
18499 arg1 = reinterpret_cast< wxDC * >(argp1);
18500 ecode2 = SWIG_AsVal_int(obj1, &val2);
18501 if (!SWIG_IsOK(ecode2)) {
18502 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18503 }
18504 arg2 = static_cast< int >(val2);
18505 ecode3 = SWIG_AsVal_int(obj2, &val3);
18506 if (!SWIG_IsOK(ecode3)) {
18507 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18508 }
18509 arg3 = static_cast< int >(val3);
18510 {
18511 PyThreadState* __tstate = wxPyBeginAllowThreads();
18512 (arg1)->DrawPoint(arg2,arg3);
18513 wxPyEndAllowThreads(__tstate);
18514 if (PyErr_Occurred()) SWIG_fail;
18515 }
18516 resultobj = SWIG_Py_Void();
18517 return resultobj;
18518fail:
18519 return NULL;
18520}
18521
18522
18523SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18524 PyObject *resultobj = 0;
18525 wxDC *arg1 = (wxDC *) 0 ;
18526 wxPoint *arg2 = 0 ;
18527 void *argp1 = 0 ;
18528 int res1 = 0 ;
18529 wxPoint temp2 ;
18530 PyObject * obj0 = 0 ;
18531 PyObject * obj1 = 0 ;
18532 char * kwnames[] = {
18533 (char *) "self",(char *) "pt", NULL
18534 };
18535
18536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18538 if (!SWIG_IsOK(res1)) {
18539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18540 }
18541 arg1 = reinterpret_cast< wxDC * >(argp1);
18542 {
18543 arg2 = &temp2;
18544 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18545 }
18546 {
18547 PyThreadState* __tstate = wxPyBeginAllowThreads();
18548 (arg1)->DrawPoint((wxPoint const &)*arg2);
18549 wxPyEndAllowThreads(__tstate);
18550 if (PyErr_Occurred()) SWIG_fail;
18551 }
18552 resultobj = SWIG_Py_Void();
18553 return resultobj;
18554fail:
18555 return NULL;
18556}
18557
18558
18559SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18560 PyObject *resultobj = 0;
18561 wxDC *arg1 = (wxDC *) 0 ;
18562 int arg2 ;
18563 int arg3 ;
18564 int arg4 ;
18565 int arg5 ;
18566 void *argp1 = 0 ;
18567 int res1 = 0 ;
18568 int val2 ;
18569 int ecode2 = 0 ;
18570 int val3 ;
18571 int ecode3 = 0 ;
18572 int val4 ;
18573 int ecode4 = 0 ;
18574 int val5 ;
18575 int ecode5 = 0 ;
18576 PyObject * obj0 = 0 ;
18577 PyObject * obj1 = 0 ;
18578 PyObject * obj2 = 0 ;
18579 PyObject * obj3 = 0 ;
18580 PyObject * obj4 = 0 ;
18581 char * kwnames[] = {
18582 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18583 };
18584
18585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18587 if (!SWIG_IsOK(res1)) {
18588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18589 }
18590 arg1 = reinterpret_cast< wxDC * >(argp1);
18591 ecode2 = SWIG_AsVal_int(obj1, &val2);
18592 if (!SWIG_IsOK(ecode2)) {
18593 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18594 }
18595 arg2 = static_cast< int >(val2);
18596 ecode3 = SWIG_AsVal_int(obj2, &val3);
18597 if (!SWIG_IsOK(ecode3)) {
18598 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18599 }
18600 arg3 = static_cast< int >(val3);
18601 ecode4 = SWIG_AsVal_int(obj3, &val4);
18602 if (!SWIG_IsOK(ecode4)) {
18603 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18604 }
18605 arg4 = static_cast< int >(val4);
18606 ecode5 = SWIG_AsVal_int(obj4, &val5);
18607 if (!SWIG_IsOK(ecode5)) {
18608 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18609 }
18610 arg5 = static_cast< int >(val5);
18611 {
18612 PyThreadState* __tstate = wxPyBeginAllowThreads();
18613 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18614 wxPyEndAllowThreads(__tstate);
18615 if (PyErr_Occurred()) SWIG_fail;
18616 }
18617 resultobj = SWIG_Py_Void();
18618 return resultobj;
18619fail:
18620 return NULL;
18621}
18622
18623
18624SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18625 PyObject *resultobj = 0;
18626 wxDC *arg1 = (wxDC *) 0 ;
18627 wxRect *arg2 = 0 ;
18628 void *argp1 = 0 ;
18629 int res1 = 0 ;
18630 wxRect temp2 ;
18631 PyObject * obj0 = 0 ;
18632 PyObject * obj1 = 0 ;
18633 char * kwnames[] = {
18634 (char *) "self",(char *) "rect", NULL
18635 };
18636
18637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18639 if (!SWIG_IsOK(res1)) {
18640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18641 }
18642 arg1 = reinterpret_cast< wxDC * >(argp1);
18643 {
18644 arg2 = &temp2;
18645 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18646 }
18647 {
18648 PyThreadState* __tstate = wxPyBeginAllowThreads();
18649 (arg1)->DrawRectangle((wxRect const &)*arg2);
18650 wxPyEndAllowThreads(__tstate);
18651 if (PyErr_Occurred()) SWIG_fail;
18652 }
18653 resultobj = SWIG_Py_Void();
18654 return resultobj;
18655fail:
18656 return NULL;
18657}
18658
18659
18660SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18661 PyObject *resultobj = 0;
18662 wxDC *arg1 = (wxDC *) 0 ;
18663 wxPoint *arg2 = 0 ;
18664 wxSize *arg3 = 0 ;
18665 void *argp1 = 0 ;
18666 int res1 = 0 ;
18667 wxPoint temp2 ;
18668 wxSize temp3 ;
18669 PyObject * obj0 = 0 ;
18670 PyObject * obj1 = 0 ;
18671 PyObject * obj2 = 0 ;
18672 char * kwnames[] = {
18673 (char *) "self",(char *) "pt",(char *) "sz", NULL
18674 };
18675
18676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18678 if (!SWIG_IsOK(res1)) {
18679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18680 }
18681 arg1 = reinterpret_cast< wxDC * >(argp1);
18682 {
18683 arg2 = &temp2;
18684 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18685 }
18686 {
18687 arg3 = &temp3;
18688 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18689 }
18690 {
18691 PyThreadState* __tstate = wxPyBeginAllowThreads();
18692 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18693 wxPyEndAllowThreads(__tstate);
18694 if (PyErr_Occurred()) SWIG_fail;
18695 }
18696 resultobj = SWIG_Py_Void();
18697 return resultobj;
18698fail:
18699 return NULL;
18700}
18701
18702
18703SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18704 PyObject *resultobj = 0;
18705 wxDC *arg1 = (wxDC *) 0 ;
18706 int arg2 ;
18707 int arg3 ;
18708 int arg4 ;
18709 int arg5 ;
18710 double arg6 ;
18711 void *argp1 = 0 ;
18712 int res1 = 0 ;
18713 int val2 ;
18714 int ecode2 = 0 ;
18715 int val3 ;
18716 int ecode3 = 0 ;
18717 int val4 ;
18718 int ecode4 = 0 ;
18719 int val5 ;
18720 int ecode5 = 0 ;
18721 double val6 ;
18722 int ecode6 = 0 ;
18723 PyObject * obj0 = 0 ;
18724 PyObject * obj1 = 0 ;
18725 PyObject * obj2 = 0 ;
18726 PyObject * obj3 = 0 ;
18727 PyObject * obj4 = 0 ;
18728 PyObject * obj5 = 0 ;
18729 char * kwnames[] = {
18730 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18731 };
18732
18733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18735 if (!SWIG_IsOK(res1)) {
18736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18737 }
18738 arg1 = reinterpret_cast< wxDC * >(argp1);
18739 ecode2 = SWIG_AsVal_int(obj1, &val2);
18740 if (!SWIG_IsOK(ecode2)) {
18741 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18742 }
18743 arg2 = static_cast< int >(val2);
18744 ecode3 = SWIG_AsVal_int(obj2, &val3);
18745 if (!SWIG_IsOK(ecode3)) {
18746 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18747 }
18748 arg3 = static_cast< int >(val3);
18749 ecode4 = SWIG_AsVal_int(obj3, &val4);
18750 if (!SWIG_IsOK(ecode4)) {
18751 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18752 }
18753 arg4 = static_cast< int >(val4);
18754 ecode5 = SWIG_AsVal_int(obj4, &val5);
18755 if (!SWIG_IsOK(ecode5)) {
18756 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18757 }
18758 arg5 = static_cast< int >(val5);
18759 ecode6 = SWIG_AsVal_double(obj5, &val6);
18760 if (!SWIG_IsOK(ecode6)) {
18761 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18762 }
18763 arg6 = static_cast< double >(val6);
18764 {
18765 PyThreadState* __tstate = wxPyBeginAllowThreads();
18766 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18767 wxPyEndAllowThreads(__tstate);
18768 if (PyErr_Occurred()) SWIG_fail;
18769 }
18770 resultobj = SWIG_Py_Void();
18771 return resultobj;
18772fail:
18773 return NULL;
18774}
18775
18776
18777SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18778 PyObject *resultobj = 0;
18779 wxDC *arg1 = (wxDC *) 0 ;
18780 wxRect *arg2 = 0 ;
18781 double arg3 ;
18782 void *argp1 = 0 ;
18783 int res1 = 0 ;
18784 wxRect temp2 ;
18785 double val3 ;
18786 int ecode3 = 0 ;
18787 PyObject * obj0 = 0 ;
18788 PyObject * obj1 = 0 ;
18789 PyObject * obj2 = 0 ;
18790 char * kwnames[] = {
18791 (char *) "self",(char *) "r",(char *) "radius", NULL
18792 };
18793
18794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18796 if (!SWIG_IsOK(res1)) {
18797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18798 }
18799 arg1 = reinterpret_cast< wxDC * >(argp1);
18800 {
18801 arg2 = &temp2;
18802 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18803 }
18804 ecode3 = SWIG_AsVal_double(obj2, &val3);
18805 if (!SWIG_IsOK(ecode3)) {
18806 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
18807 }
18808 arg3 = static_cast< double >(val3);
18809 {
18810 PyThreadState* __tstate = wxPyBeginAllowThreads();
18811 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
18812 wxPyEndAllowThreads(__tstate);
18813 if (PyErr_Occurred()) SWIG_fail;
18814 }
18815 resultobj = SWIG_Py_Void();
18816 return resultobj;
18817fail:
18818 return NULL;
18819}
18820
18821
18822SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18823 PyObject *resultobj = 0;
18824 wxDC *arg1 = (wxDC *) 0 ;
18825 wxPoint *arg2 = 0 ;
18826 wxSize *arg3 = 0 ;
18827 double arg4 ;
18828 void *argp1 = 0 ;
18829 int res1 = 0 ;
18830 wxPoint temp2 ;
18831 wxSize temp3 ;
18832 double val4 ;
18833 int ecode4 = 0 ;
18834 PyObject * obj0 = 0 ;
18835 PyObject * obj1 = 0 ;
18836 PyObject * obj2 = 0 ;
18837 PyObject * obj3 = 0 ;
18838 char * kwnames[] = {
18839 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
18840 };
18841
18842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18844 if (!SWIG_IsOK(res1)) {
18845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18846 }
18847 arg1 = reinterpret_cast< wxDC * >(argp1);
18848 {
18849 arg2 = &temp2;
18850 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18851 }
18852 {
18853 arg3 = &temp3;
18854 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18855 }
18856 ecode4 = SWIG_AsVal_double(obj3, &val4);
18857 if (!SWIG_IsOK(ecode4)) {
18858 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
18859 }
18860 arg4 = static_cast< double >(val4);
18861 {
18862 PyThreadState* __tstate = wxPyBeginAllowThreads();
18863 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
18864 wxPyEndAllowThreads(__tstate);
18865 if (PyErr_Occurred()) SWIG_fail;
18866 }
18867 resultobj = SWIG_Py_Void();
18868 return resultobj;
18869fail:
18870 return NULL;
18871}
18872
18873
18874SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18875 PyObject *resultobj = 0;
18876 wxDC *arg1 = (wxDC *) 0 ;
18877 int arg2 ;
18878 int arg3 ;
18879 int arg4 ;
18880 void *argp1 = 0 ;
18881 int res1 = 0 ;
18882 int val2 ;
18883 int ecode2 = 0 ;
18884 int val3 ;
18885 int ecode3 = 0 ;
18886 int val4 ;
18887 int ecode4 = 0 ;
18888 PyObject * obj0 = 0 ;
18889 PyObject * obj1 = 0 ;
18890 PyObject * obj2 = 0 ;
18891 PyObject * obj3 = 0 ;
18892 char * kwnames[] = {
18893 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
18894 };
18895
18896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18898 if (!SWIG_IsOK(res1)) {
18899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
18900 }
18901 arg1 = reinterpret_cast< wxDC * >(argp1);
18902 ecode2 = SWIG_AsVal_int(obj1, &val2);
18903 if (!SWIG_IsOK(ecode2)) {
18904 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
18905 }
18906 arg2 = static_cast< int >(val2);
18907 ecode3 = SWIG_AsVal_int(obj2, &val3);
18908 if (!SWIG_IsOK(ecode3)) {
18909 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
18910 }
18911 arg3 = static_cast< int >(val3);
18912 ecode4 = SWIG_AsVal_int(obj3, &val4);
18913 if (!SWIG_IsOK(ecode4)) {
18914 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
18915 }
18916 arg4 = static_cast< int >(val4);
18917 {
18918 PyThreadState* __tstate = wxPyBeginAllowThreads();
18919 (arg1)->DrawCircle(arg2,arg3,arg4);
18920 wxPyEndAllowThreads(__tstate);
18921 if (PyErr_Occurred()) SWIG_fail;
18922 }
18923 resultobj = SWIG_Py_Void();
18924 return resultobj;
18925fail:
18926 return NULL;
18927}
18928
18929
18930SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18931 PyObject *resultobj = 0;
18932 wxDC *arg1 = (wxDC *) 0 ;
18933 wxPoint *arg2 = 0 ;
18934 int arg3 ;
18935 void *argp1 = 0 ;
18936 int res1 = 0 ;
18937 wxPoint temp2 ;
18938 int val3 ;
18939 int ecode3 = 0 ;
18940 PyObject * obj0 = 0 ;
18941 PyObject * obj1 = 0 ;
18942 PyObject * obj2 = 0 ;
18943 char * kwnames[] = {
18944 (char *) "self",(char *) "pt",(char *) "radius", NULL
18945 };
18946
18947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18949 if (!SWIG_IsOK(res1)) {
18950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18951 }
18952 arg1 = reinterpret_cast< wxDC * >(argp1);
18953 {
18954 arg2 = &temp2;
18955 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18956 }
18957 ecode3 = SWIG_AsVal_int(obj2, &val3);
18958 if (!SWIG_IsOK(ecode3)) {
18959 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
18960 }
18961 arg3 = static_cast< int >(val3);
18962 {
18963 PyThreadState* __tstate = wxPyBeginAllowThreads();
18964 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
18965 wxPyEndAllowThreads(__tstate);
18966 if (PyErr_Occurred()) SWIG_fail;
18967 }
18968 resultobj = SWIG_Py_Void();
18969 return resultobj;
18970fail:
18971 return NULL;
18972}
18973
18974
18975SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18976 PyObject *resultobj = 0;
18977 wxDC *arg1 = (wxDC *) 0 ;
18978 int arg2 ;
18979 int arg3 ;
18980 int arg4 ;
18981 int arg5 ;
18982 void *argp1 = 0 ;
18983 int res1 = 0 ;
18984 int val2 ;
18985 int ecode2 = 0 ;
18986 int val3 ;
18987 int ecode3 = 0 ;
18988 int val4 ;
18989 int ecode4 = 0 ;
18990 int val5 ;
18991 int ecode5 = 0 ;
18992 PyObject * obj0 = 0 ;
18993 PyObject * obj1 = 0 ;
18994 PyObject * obj2 = 0 ;
18995 PyObject * obj3 = 0 ;
18996 PyObject * obj4 = 0 ;
18997 char * kwnames[] = {
18998 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18999 };
19000
19001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19003 if (!SWIG_IsOK(res1)) {
19004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
19005 }
19006 arg1 = reinterpret_cast< wxDC * >(argp1);
19007 ecode2 = SWIG_AsVal_int(obj1, &val2);
19008 if (!SWIG_IsOK(ecode2)) {
19009 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
19010 }
19011 arg2 = static_cast< int >(val2);
19012 ecode3 = SWIG_AsVal_int(obj2, &val3);
19013 if (!SWIG_IsOK(ecode3)) {
19014 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
19015 }
19016 arg3 = static_cast< int >(val3);
19017 ecode4 = SWIG_AsVal_int(obj3, &val4);
19018 if (!SWIG_IsOK(ecode4)) {
19019 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
19020 }
19021 arg4 = static_cast< int >(val4);
19022 ecode5 = SWIG_AsVal_int(obj4, &val5);
19023 if (!SWIG_IsOK(ecode5)) {
19024 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
19025 }
19026 arg5 = static_cast< int >(val5);
19027 {
19028 PyThreadState* __tstate = wxPyBeginAllowThreads();
19029 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
19030 wxPyEndAllowThreads(__tstate);
19031 if (PyErr_Occurred()) SWIG_fail;
19032 }
19033 resultobj = SWIG_Py_Void();
19034 return resultobj;
19035fail:
19036 return NULL;
19037}
19038
19039
19040SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19041 PyObject *resultobj = 0;
19042 wxDC *arg1 = (wxDC *) 0 ;
19043 wxRect *arg2 = 0 ;
19044 void *argp1 = 0 ;
19045 int res1 = 0 ;
19046 wxRect temp2 ;
19047 PyObject * obj0 = 0 ;
19048 PyObject * obj1 = 0 ;
19049 char * kwnames[] = {
19050 (char *) "self",(char *) "rect", NULL
19051 };
19052
19053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
19054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19055 if (!SWIG_IsOK(res1)) {
19056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19057 }
19058 arg1 = reinterpret_cast< wxDC * >(argp1);
19059 {
19060 arg2 = &temp2;
19061 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19062 }
19063 {
19064 PyThreadState* __tstate = wxPyBeginAllowThreads();
19065 (arg1)->DrawEllipse((wxRect const &)*arg2);
19066 wxPyEndAllowThreads(__tstate);
19067 if (PyErr_Occurred()) SWIG_fail;
19068 }
19069 resultobj = SWIG_Py_Void();
19070 return resultobj;
19071fail:
19072 return NULL;
19073}
19074
19075
19076SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19077 PyObject *resultobj = 0;
19078 wxDC *arg1 = (wxDC *) 0 ;
19079 wxPoint *arg2 = 0 ;
19080 wxSize *arg3 = 0 ;
19081 void *argp1 = 0 ;
19082 int res1 = 0 ;
19083 wxPoint temp2 ;
19084 wxSize temp3 ;
19085 PyObject * obj0 = 0 ;
19086 PyObject * obj1 = 0 ;
19087 PyObject * obj2 = 0 ;
19088 char * kwnames[] = {
19089 (char *) "self",(char *) "pt",(char *) "sz", NULL
19090 };
19091
19092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19094 if (!SWIG_IsOK(res1)) {
19095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19096 }
19097 arg1 = reinterpret_cast< wxDC * >(argp1);
19098 {
19099 arg2 = &temp2;
19100 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19101 }
19102 {
19103 arg3 = &temp3;
19104 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19105 }
19106 {
19107 PyThreadState* __tstate = wxPyBeginAllowThreads();
19108 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
19109 wxPyEndAllowThreads(__tstate);
19110 if (PyErr_Occurred()) SWIG_fail;
19111 }
19112 resultobj = SWIG_Py_Void();
19113 return resultobj;
19114fail:
19115 return NULL;
19116}
19117
19118
19119SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19120 PyObject *resultobj = 0;
19121 wxDC *arg1 = (wxDC *) 0 ;
19122 wxIcon *arg2 = 0 ;
19123 int arg3 ;
19124 int arg4 ;
19125 void *argp1 = 0 ;
19126 int res1 = 0 ;
19127 void *argp2 = 0 ;
19128 int res2 = 0 ;
19129 int val3 ;
19130 int ecode3 = 0 ;
19131 int val4 ;
19132 int ecode4 = 0 ;
19133 PyObject * obj0 = 0 ;
19134 PyObject * obj1 = 0 ;
19135 PyObject * obj2 = 0 ;
19136 PyObject * obj3 = 0 ;
19137 char * kwnames[] = {
19138 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
19139 };
19140
19141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19143 if (!SWIG_IsOK(res1)) {
19144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
19145 }
19146 arg1 = reinterpret_cast< wxDC * >(argp1);
19147 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19148 if (!SWIG_IsOK(res2)) {
19149 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19150 }
19151 if (!argp2) {
19152 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19153 }
19154 arg2 = reinterpret_cast< wxIcon * >(argp2);
19155 ecode3 = SWIG_AsVal_int(obj2, &val3);
19156 if (!SWIG_IsOK(ecode3)) {
19157 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
19158 }
19159 arg3 = static_cast< int >(val3);
19160 ecode4 = SWIG_AsVal_int(obj3, &val4);
19161 if (!SWIG_IsOK(ecode4)) {
19162 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
19163 }
19164 arg4 = static_cast< int >(val4);
19165 {
19166 PyThreadState* __tstate = wxPyBeginAllowThreads();
19167 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
19168 wxPyEndAllowThreads(__tstate);
19169 if (PyErr_Occurred()) SWIG_fail;
19170 }
19171 resultobj = SWIG_Py_Void();
19172 return resultobj;
19173fail:
19174 return NULL;
19175}
19176
19177
19178SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19179 PyObject *resultobj = 0;
19180 wxDC *arg1 = (wxDC *) 0 ;
19181 wxIcon *arg2 = 0 ;
19182 wxPoint *arg3 = 0 ;
19183 void *argp1 = 0 ;
19184 int res1 = 0 ;
19185 void *argp2 = 0 ;
19186 int res2 = 0 ;
19187 wxPoint temp3 ;
19188 PyObject * obj0 = 0 ;
19189 PyObject * obj1 = 0 ;
19190 PyObject * obj2 = 0 ;
19191 char * kwnames[] = {
19192 (char *) "self",(char *) "icon",(char *) "pt", NULL
19193 };
19194
19195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19197 if (!SWIG_IsOK(res1)) {
19198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19199 }
19200 arg1 = reinterpret_cast< wxDC * >(argp1);
19201 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19202 if (!SWIG_IsOK(res2)) {
19203 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19204 }
19205 if (!argp2) {
19206 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19207 }
19208 arg2 = reinterpret_cast< wxIcon * >(argp2);
19209 {
19210 arg3 = &temp3;
19211 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19212 }
19213 {
19214 PyThreadState* __tstate = wxPyBeginAllowThreads();
19215 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19216 wxPyEndAllowThreads(__tstate);
19217 if (PyErr_Occurred()) SWIG_fail;
19218 }
19219 resultobj = SWIG_Py_Void();
19220 return resultobj;
19221fail:
19222 return NULL;
19223}
19224
19225
19226SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19227 PyObject *resultobj = 0;
19228 wxDC *arg1 = (wxDC *) 0 ;
19229 wxBitmap *arg2 = 0 ;
19230 int arg3 ;
19231 int arg4 ;
19232 bool arg5 = (bool) false ;
19233 void *argp1 = 0 ;
19234 int res1 = 0 ;
19235 void *argp2 = 0 ;
19236 int res2 = 0 ;
19237 int val3 ;
19238 int ecode3 = 0 ;
19239 int val4 ;
19240 int ecode4 = 0 ;
19241 bool val5 ;
19242 int ecode5 = 0 ;
19243 PyObject * obj0 = 0 ;
19244 PyObject * obj1 = 0 ;
19245 PyObject * obj2 = 0 ;
19246 PyObject * obj3 = 0 ;
19247 PyObject * obj4 = 0 ;
19248 char * kwnames[] = {
19249 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19250 };
19251
19252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19254 if (!SWIG_IsOK(res1)) {
19255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19256 }
19257 arg1 = reinterpret_cast< wxDC * >(argp1);
19258 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19259 if (!SWIG_IsOK(res2)) {
19260 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19261 }
19262 if (!argp2) {
19263 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19264 }
19265 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19266 ecode3 = SWIG_AsVal_int(obj2, &val3);
19267 if (!SWIG_IsOK(ecode3)) {
19268 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
19269 }
19270 arg3 = static_cast< int >(val3);
19271 ecode4 = SWIG_AsVal_int(obj3, &val4);
19272 if (!SWIG_IsOK(ecode4)) {
19273 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19274 }
19275 arg4 = static_cast< int >(val4);
19276 if (obj4) {
19277 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19278 if (!SWIG_IsOK(ecode5)) {
19279 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19280 }
19281 arg5 = static_cast< bool >(val5);
19282 }
19283 {
19284 PyThreadState* __tstate = wxPyBeginAllowThreads();
19285 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
19286 wxPyEndAllowThreads(__tstate);
19287 if (PyErr_Occurred()) SWIG_fail;
19288 }
19289 resultobj = SWIG_Py_Void();
19290 return resultobj;
19291fail:
19292 return NULL;
19293}
19294
19295
19296SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19297 PyObject *resultobj = 0;
19298 wxDC *arg1 = (wxDC *) 0 ;
19299 wxBitmap *arg2 = 0 ;
19300 wxPoint *arg3 = 0 ;
19301 bool arg4 = (bool) false ;
19302 void *argp1 = 0 ;
19303 int res1 = 0 ;
19304 void *argp2 = 0 ;
19305 int res2 = 0 ;
19306 wxPoint temp3 ;
19307 bool val4 ;
19308 int ecode4 = 0 ;
19309 PyObject * obj0 = 0 ;
19310 PyObject * obj1 = 0 ;
19311 PyObject * obj2 = 0 ;
19312 PyObject * obj3 = 0 ;
19313 char * kwnames[] = {
19314 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
19315 };
19316
19317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19319 if (!SWIG_IsOK(res1)) {
19320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19321 }
19322 arg1 = reinterpret_cast< wxDC * >(argp1);
19323 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19324 if (!SWIG_IsOK(res2)) {
19325 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19326 }
19327 if (!argp2) {
19328 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19329 }
19330 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19331 {
19332 arg3 = &temp3;
19333 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19334 }
19335 if (obj3) {
19336 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19337 if (!SWIG_IsOK(ecode4)) {
19338 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
19339 }
19340 arg4 = static_cast< bool >(val4);
19341 }
19342 {
19343 PyThreadState* __tstate = wxPyBeginAllowThreads();
19344 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
19345 wxPyEndAllowThreads(__tstate);
19346 if (PyErr_Occurred()) SWIG_fail;
19347 }
19348 resultobj = SWIG_Py_Void();
19349 return resultobj;
19350fail:
19351 return NULL;
19352}
19353
19354
19355SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19356 PyObject *resultobj = 0;
19357 wxDC *arg1 = (wxDC *) 0 ;
19358 wxString *arg2 = 0 ;
19359 int arg3 ;
19360 int arg4 ;
19361 void *argp1 = 0 ;
19362 int res1 = 0 ;
19363 bool temp2 = false ;
19364 int val3 ;
19365 int ecode3 = 0 ;
19366 int val4 ;
19367 int ecode4 = 0 ;
19368 PyObject * obj0 = 0 ;
19369 PyObject * obj1 = 0 ;
19370 PyObject * obj2 = 0 ;
19371 PyObject * obj3 = 0 ;
19372 char * kwnames[] = {
19373 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19374 };
19375
19376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19378 if (!SWIG_IsOK(res1)) {
19379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19380 }
19381 arg1 = reinterpret_cast< wxDC * >(argp1);
19382 {
19383 arg2 = wxString_in_helper(obj1);
19384 if (arg2 == NULL) SWIG_fail;
19385 temp2 = true;
19386 }
19387 ecode3 = SWIG_AsVal_int(obj2, &val3);
19388 if (!SWIG_IsOK(ecode3)) {
19389 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19390 }
19391 arg3 = static_cast< int >(val3);
19392 ecode4 = SWIG_AsVal_int(obj3, &val4);
19393 if (!SWIG_IsOK(ecode4)) {
19394 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19395 }
19396 arg4 = static_cast< int >(val4);
19397 {
19398 PyThreadState* __tstate = wxPyBeginAllowThreads();
19399 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19400 wxPyEndAllowThreads(__tstate);
19401 if (PyErr_Occurred()) SWIG_fail;
19402 }
19403 resultobj = SWIG_Py_Void();
19404 {
19405 if (temp2)
19406 delete arg2;
19407 }
19408 return resultobj;
19409fail:
19410 {
19411 if (temp2)
19412 delete arg2;
19413 }
19414 return NULL;
19415}
19416
19417
19418SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19419 PyObject *resultobj = 0;
19420 wxDC *arg1 = (wxDC *) 0 ;
19421 wxString *arg2 = 0 ;
19422 wxPoint *arg3 = 0 ;
19423 void *argp1 = 0 ;
19424 int res1 = 0 ;
19425 bool temp2 = false ;
19426 wxPoint temp3 ;
19427 PyObject * obj0 = 0 ;
19428 PyObject * obj1 = 0 ;
19429 PyObject * obj2 = 0 ;
19430 char * kwnames[] = {
19431 (char *) "self",(char *) "text",(char *) "pt", NULL
19432 };
19433
19434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19436 if (!SWIG_IsOK(res1)) {
19437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19438 }
19439 arg1 = reinterpret_cast< wxDC * >(argp1);
19440 {
19441 arg2 = wxString_in_helper(obj1);
19442 if (arg2 == NULL) SWIG_fail;
19443 temp2 = true;
19444 }
19445 {
19446 arg3 = &temp3;
19447 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19448 }
19449 {
19450 PyThreadState* __tstate = wxPyBeginAllowThreads();
19451 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19452 wxPyEndAllowThreads(__tstate);
19453 if (PyErr_Occurred()) SWIG_fail;
19454 }
19455 resultobj = SWIG_Py_Void();
19456 {
19457 if (temp2)
19458 delete arg2;
19459 }
19460 return resultobj;
19461fail:
19462 {
19463 if (temp2)
19464 delete arg2;
19465 }
19466 return NULL;
19467}
19468
19469
19470SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19471 PyObject *resultobj = 0;
19472 wxDC *arg1 = (wxDC *) 0 ;
19473 wxString *arg2 = 0 ;
19474 int arg3 ;
19475 int arg4 ;
19476 double arg5 ;
19477 void *argp1 = 0 ;
19478 int res1 = 0 ;
19479 bool temp2 = false ;
19480 int val3 ;
19481 int ecode3 = 0 ;
19482 int val4 ;
19483 int ecode4 = 0 ;
19484 double val5 ;
19485 int ecode5 = 0 ;
19486 PyObject * obj0 = 0 ;
19487 PyObject * obj1 = 0 ;
19488 PyObject * obj2 = 0 ;
19489 PyObject * obj3 = 0 ;
19490 PyObject * obj4 = 0 ;
19491 char * kwnames[] = {
19492 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19493 };
19494
19495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19497 if (!SWIG_IsOK(res1)) {
19498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19499 }
19500 arg1 = reinterpret_cast< wxDC * >(argp1);
19501 {
19502 arg2 = wxString_in_helper(obj1);
19503 if (arg2 == NULL) SWIG_fail;
19504 temp2 = true;
19505 }
19506 ecode3 = SWIG_AsVal_int(obj2, &val3);
19507 if (!SWIG_IsOK(ecode3)) {
19508 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19509 }
19510 arg3 = static_cast< int >(val3);
19511 ecode4 = SWIG_AsVal_int(obj3, &val4);
19512 if (!SWIG_IsOK(ecode4)) {
19513 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19514 }
19515 arg4 = static_cast< int >(val4);
19516 ecode5 = SWIG_AsVal_double(obj4, &val5);
19517 if (!SWIG_IsOK(ecode5)) {
19518 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19519 }
19520 arg5 = static_cast< double >(val5);
19521 {
19522 PyThreadState* __tstate = wxPyBeginAllowThreads();
19523 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19524 wxPyEndAllowThreads(__tstate);
19525 if (PyErr_Occurred()) SWIG_fail;
19526 }
19527 resultobj = SWIG_Py_Void();
19528 {
19529 if (temp2)
19530 delete arg2;
19531 }
19532 return resultobj;
19533fail:
19534 {
19535 if (temp2)
19536 delete arg2;
19537 }
19538 return NULL;
19539}
19540
19541
19542SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19543 PyObject *resultobj = 0;
19544 wxDC *arg1 = (wxDC *) 0 ;
19545 wxString *arg2 = 0 ;
19546 wxPoint *arg3 = 0 ;
19547 double arg4 ;
19548 void *argp1 = 0 ;
19549 int res1 = 0 ;
19550 bool temp2 = false ;
19551 wxPoint temp3 ;
19552 double val4 ;
19553 int ecode4 = 0 ;
19554 PyObject * obj0 = 0 ;
19555 PyObject * obj1 = 0 ;
19556 PyObject * obj2 = 0 ;
19557 PyObject * obj3 = 0 ;
19558 char * kwnames[] = {
19559 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19560 };
19561
19562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19564 if (!SWIG_IsOK(res1)) {
19565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19566 }
19567 arg1 = reinterpret_cast< wxDC * >(argp1);
19568 {
19569 arg2 = wxString_in_helper(obj1);
19570 if (arg2 == NULL) SWIG_fail;
19571 temp2 = true;
19572 }
19573 {
19574 arg3 = &temp3;
19575 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19576 }
19577 ecode4 = SWIG_AsVal_double(obj3, &val4);
19578 if (!SWIG_IsOK(ecode4)) {
19579 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19580 }
19581 arg4 = static_cast< double >(val4);
19582 {
19583 PyThreadState* __tstate = wxPyBeginAllowThreads();
19584 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19585 wxPyEndAllowThreads(__tstate);
19586 if (PyErr_Occurred()) SWIG_fail;
19587 }
19588 resultobj = SWIG_Py_Void();
19589 {
19590 if (temp2)
19591 delete arg2;
19592 }
19593 return resultobj;
19594fail:
19595 {
19596 if (temp2)
19597 delete arg2;
19598 }
19599 return NULL;
19600}
19601
19602
19603SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19604 PyObject *resultobj = 0;
19605 wxDC *arg1 = (wxDC *) 0 ;
19606 int arg2 ;
19607 int arg3 ;
19608 int arg4 ;
19609 int arg5 ;
19610 wxDC *arg6 = (wxDC *) 0 ;
19611 int arg7 ;
19612 int arg8 ;
19613 int arg9 = (int) wxCOPY ;
19614 bool arg10 = (bool) false ;
19615 int arg11 = (int) -1 ;
19616 int arg12 = (int) -1 ;
19617 bool result;
19618 void *argp1 = 0 ;
19619 int res1 = 0 ;
19620 int val2 ;
19621 int ecode2 = 0 ;
19622 int val3 ;
19623 int ecode3 = 0 ;
19624 int val4 ;
19625 int ecode4 = 0 ;
19626 int val5 ;
19627 int ecode5 = 0 ;
19628 void *argp6 = 0 ;
19629 int res6 = 0 ;
19630 int val7 ;
19631 int ecode7 = 0 ;
19632 int val8 ;
19633 int ecode8 = 0 ;
19634 int val9 ;
19635 int ecode9 = 0 ;
19636 bool val10 ;
19637 int ecode10 = 0 ;
19638 int val11 ;
19639 int ecode11 = 0 ;
19640 int val12 ;
19641 int ecode12 = 0 ;
19642 PyObject * obj0 = 0 ;
19643 PyObject * obj1 = 0 ;
19644 PyObject * obj2 = 0 ;
19645 PyObject * obj3 = 0 ;
19646 PyObject * obj4 = 0 ;
19647 PyObject * obj5 = 0 ;
19648 PyObject * obj6 = 0 ;
19649 PyObject * obj7 = 0 ;
19650 PyObject * obj8 = 0 ;
19651 PyObject * obj9 = 0 ;
19652 PyObject * obj10 = 0 ;
19653 PyObject * obj11 = 0 ;
19654 char * kwnames[] = {
19655 (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
19656 };
19657
19658 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;
19659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19660 if (!SWIG_IsOK(res1)) {
19661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19662 }
19663 arg1 = reinterpret_cast< wxDC * >(argp1);
19664 ecode2 = SWIG_AsVal_int(obj1, &val2);
19665 if (!SWIG_IsOK(ecode2)) {
19666 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19667 }
19668 arg2 = static_cast< int >(val2);
19669 ecode3 = SWIG_AsVal_int(obj2, &val3);
19670 if (!SWIG_IsOK(ecode3)) {
19671 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19672 }
19673 arg3 = static_cast< int >(val3);
19674 ecode4 = SWIG_AsVal_int(obj3, &val4);
19675 if (!SWIG_IsOK(ecode4)) {
19676 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19677 }
19678 arg4 = static_cast< int >(val4);
19679 ecode5 = SWIG_AsVal_int(obj4, &val5);
19680 if (!SWIG_IsOK(ecode5)) {
19681 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19682 }
19683 arg5 = static_cast< int >(val5);
19684 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19685 if (!SWIG_IsOK(res6)) {
19686 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19687 }
19688 arg6 = reinterpret_cast< wxDC * >(argp6);
19689 ecode7 = SWIG_AsVal_int(obj6, &val7);
19690 if (!SWIG_IsOK(ecode7)) {
19691 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19692 }
19693 arg7 = static_cast< int >(val7);
19694 ecode8 = SWIG_AsVal_int(obj7, &val8);
19695 if (!SWIG_IsOK(ecode8)) {
19696 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19697 }
19698 arg8 = static_cast< int >(val8);
19699 if (obj8) {
19700 ecode9 = SWIG_AsVal_int(obj8, &val9);
19701 if (!SWIG_IsOK(ecode9)) {
19702 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19703 }
19704 arg9 = static_cast< int >(val9);
19705 }
19706 if (obj9) {
19707 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19708 if (!SWIG_IsOK(ecode10)) {
19709 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19710 }
19711 arg10 = static_cast< bool >(val10);
19712 }
19713 if (obj10) {
19714 ecode11 = SWIG_AsVal_int(obj10, &val11);
19715 if (!SWIG_IsOK(ecode11)) {
19716 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19717 }
19718 arg11 = static_cast< int >(val11);
19719 }
19720 if (obj11) {
19721 ecode12 = SWIG_AsVal_int(obj11, &val12);
19722 if (!SWIG_IsOK(ecode12)) {
19723 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19724 }
19725 arg12 = static_cast< int >(val12);
19726 }
19727 {
19728 PyThreadState* __tstate = wxPyBeginAllowThreads();
19729 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19730 wxPyEndAllowThreads(__tstate);
19731 if (PyErr_Occurred()) SWIG_fail;
19732 }
19733 {
19734 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19735 }
19736 return resultobj;
19737fail:
19738 return NULL;
19739}
19740
19741
19742SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19743 PyObject *resultobj = 0;
19744 wxDC *arg1 = (wxDC *) 0 ;
19745 wxPoint *arg2 = 0 ;
19746 wxSize *arg3 = 0 ;
19747 wxDC *arg4 = (wxDC *) 0 ;
19748 wxPoint *arg5 = 0 ;
19749 int arg6 = (int) wxCOPY ;
19750 bool arg7 = (bool) false ;
19751 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19752 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19753 bool result;
19754 void *argp1 = 0 ;
19755 int res1 = 0 ;
19756 wxPoint temp2 ;
19757 wxSize temp3 ;
19758 void *argp4 = 0 ;
19759 int res4 = 0 ;
19760 wxPoint temp5 ;
19761 int val6 ;
19762 int ecode6 = 0 ;
19763 bool val7 ;
19764 int ecode7 = 0 ;
19765 wxPoint temp8 ;
19766 PyObject * obj0 = 0 ;
19767 PyObject * obj1 = 0 ;
19768 PyObject * obj2 = 0 ;
19769 PyObject * obj3 = 0 ;
19770 PyObject * obj4 = 0 ;
19771 PyObject * obj5 = 0 ;
19772 PyObject * obj6 = 0 ;
19773 PyObject * obj7 = 0 ;
19774 char * kwnames[] = {
19775 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19776 };
19777
19778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
19779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19780 if (!SWIG_IsOK(res1)) {
19781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19782 }
19783 arg1 = reinterpret_cast< wxDC * >(argp1);
19784 {
19785 arg2 = &temp2;
19786 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19787 }
19788 {
19789 arg3 = &temp3;
19790 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19791 }
19792 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
19793 if (!SWIG_IsOK(res4)) {
19794 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
19795 }
19796 arg4 = reinterpret_cast< wxDC * >(argp4);
19797 {
19798 arg5 = &temp5;
19799 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19800 }
19801 if (obj5) {
19802 ecode6 = SWIG_AsVal_int(obj5, &val6);
19803 if (!SWIG_IsOK(ecode6)) {
19804 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
19805 }
19806 arg6 = static_cast< int >(val6);
19807 }
19808 if (obj6) {
19809 ecode7 = SWIG_AsVal_bool(obj6, &val7);
19810 if (!SWIG_IsOK(ecode7)) {
19811 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
19812 }
19813 arg7 = static_cast< bool >(val7);
19814 }
19815 if (obj7) {
36ed4f51 19816 {
1bd55598
RD
19817 arg8 = &temp8;
19818 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
36ed4f51 19819 }
1bd55598
RD
19820 }
19821 {
19822 PyThreadState* __tstate = wxPyBeginAllowThreads();
19823 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
19824 wxPyEndAllowThreads(__tstate);
19825 if (PyErr_Occurred()) SWIG_fail;
19826 }
19827 {
19828 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19829 }
19830 return resultobj;
19831fail:
19832 return NULL;
19833}
19834
19835
8f514ab4
RD
19836SWIGINTERN PyObject *_wrap_DC_GetAsBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19837 PyObject *resultobj = 0;
19838 wxDC *arg1 = (wxDC *) 0 ;
19839 wxRect *arg2 = (wxRect *) NULL ;
19840 SwigValueWrapper<wxBitmap > result;
19841 void *argp1 = 0 ;
19842 int res1 = 0 ;
19843 void *argp2 = 0 ;
19844 int res2 = 0 ;
19845 PyObject * obj0 = 0 ;
19846 PyObject * obj1 = 0 ;
19847 char * kwnames[] = {
19848 (char *) "self",(char *) "subrect", NULL
19849 };
19850
19851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DC_GetAsBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
19852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19853 if (!SWIG_IsOK(res1)) {
19854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetAsBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
19855 }
19856 arg1 = reinterpret_cast< wxDC * >(argp1);
19857 if (obj1) {
19858 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
19859 if (!SWIG_IsOK(res2)) {
19860 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_GetAsBitmap" "', expected argument " "2"" of type '" "wxRect const *""'");
19861 }
19862 arg2 = reinterpret_cast< wxRect * >(argp2);
19863 }
19864 {
19865 PyThreadState* __tstate = wxPyBeginAllowThreads();
19866 result = ((wxDC const *)arg1)->GetAsBitmap((wxRect const *)arg2);
19867 wxPyEndAllowThreads(__tstate);
19868 if (PyErr_Occurred()) SWIG_fail;
19869 }
19870 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
19871 return resultobj;
19872fail:
19873 return NULL;
19874}
19875
19876
1bd55598
RD
19877SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19878 PyObject *resultobj = 0;
19879 wxDC *arg1 = (wxDC *) 0 ;
19880 int arg2 ;
19881 int arg3 ;
19882 int arg4 ;
19883 int arg5 ;
19884 void *argp1 = 0 ;
19885 int res1 = 0 ;
19886 int val2 ;
19887 int ecode2 = 0 ;
19888 int val3 ;
19889 int ecode3 = 0 ;
19890 int val4 ;
19891 int ecode4 = 0 ;
19892 int val5 ;
19893 int ecode5 = 0 ;
19894 PyObject * obj0 = 0 ;
19895 PyObject * obj1 = 0 ;
19896 PyObject * obj2 = 0 ;
19897 PyObject * obj3 = 0 ;
19898 PyObject * obj4 = 0 ;
19899 char * kwnames[] = {
19900 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19901 };
19902
19903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19905 if (!SWIG_IsOK(res1)) {
19906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19907 }
19908 arg1 = reinterpret_cast< wxDC * >(argp1);
19909 ecode2 = SWIG_AsVal_int(obj1, &val2);
19910 if (!SWIG_IsOK(ecode2)) {
19911 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
19912 }
19913 arg2 = static_cast< int >(val2);
19914 ecode3 = SWIG_AsVal_int(obj2, &val3);
19915 if (!SWIG_IsOK(ecode3)) {
19916 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
19917 }
19918 arg3 = static_cast< int >(val3);
19919 ecode4 = SWIG_AsVal_int(obj3, &val4);
19920 if (!SWIG_IsOK(ecode4)) {
19921 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
19922 }
19923 arg4 = static_cast< int >(val4);
19924 ecode5 = SWIG_AsVal_int(obj4, &val5);
19925 if (!SWIG_IsOK(ecode5)) {
19926 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
19927 }
19928 arg5 = static_cast< int >(val5);
19929 {
19930 PyThreadState* __tstate = wxPyBeginAllowThreads();
19931 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
19932 wxPyEndAllowThreads(__tstate);
19933 if (PyErr_Occurred()) SWIG_fail;
19934 }
19935 resultobj = SWIG_Py_Void();
19936 return resultobj;
19937fail:
19938 return NULL;
19939}
19940
19941
19942SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19943 PyObject *resultobj = 0;
19944 wxDC *arg1 = (wxDC *) 0 ;
19945 wxPoint *arg2 = 0 ;
19946 wxSize *arg3 = 0 ;
19947 void *argp1 = 0 ;
19948 int res1 = 0 ;
19949 wxPoint temp2 ;
19950 wxSize temp3 ;
19951 PyObject * obj0 = 0 ;
19952 PyObject * obj1 = 0 ;
19953 PyObject * obj2 = 0 ;
19954 char * kwnames[] = {
19955 (char *) "self",(char *) "pt",(char *) "sz", NULL
19956 };
19957
19958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19960 if (!SWIG_IsOK(res1)) {
19961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19962 }
19963 arg1 = reinterpret_cast< wxDC * >(argp1);
19964 {
19965 arg2 = &temp2;
19966 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19967 }
19968 {
19969 arg3 = &temp3;
19970 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19971 }
19972 {
19973 PyThreadState* __tstate = wxPyBeginAllowThreads();
19974 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
19975 wxPyEndAllowThreads(__tstate);
19976 if (PyErr_Occurred()) SWIG_fail;
19977 }
19978 resultobj = SWIG_Py_Void();
19979 return resultobj;
19980fail:
19981 return NULL;
19982}
19983
19984
19985SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19986 PyObject *resultobj = 0;
19987 wxDC *arg1 = (wxDC *) 0 ;
19988 wxRegion *arg2 = 0 ;
19989 void *argp1 = 0 ;
19990 int res1 = 0 ;
19991 void *argp2 = 0 ;
19992 int res2 = 0 ;
19993 PyObject * obj0 = 0 ;
19994 PyObject * obj1 = 0 ;
19995 char * kwnames[] = {
19996 (char *) "self",(char *) "region", NULL
19997 };
19998
19999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
20000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20001 if (!SWIG_IsOK(res1)) {
20002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20003 }
20004 arg1 = reinterpret_cast< wxDC * >(argp1);
20005 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
20006 if (!SWIG_IsOK(res2)) {
20007 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20008 }
20009 if (!argp2) {
20010 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20011 }
20012 arg2 = reinterpret_cast< wxRegion * >(argp2);
20013 {
20014 PyThreadState* __tstate = wxPyBeginAllowThreads();
20015 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
20016 wxPyEndAllowThreads(__tstate);
20017 if (PyErr_Occurred()) SWIG_fail;
20018 }
20019 resultobj = SWIG_Py_Void();
20020 return resultobj;
20021fail:
20022 return NULL;
20023}
20024
20025
20026SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20027 PyObject *resultobj = 0;
20028 wxDC *arg1 = (wxDC *) 0 ;
20029 wxRect *arg2 = 0 ;
20030 void *argp1 = 0 ;
20031 int res1 = 0 ;
20032 wxRect temp2 ;
20033 PyObject * obj0 = 0 ;
20034 PyObject * obj1 = 0 ;
20035 char * kwnames[] = {
20036 (char *) "self",(char *) "rect", NULL
20037 };
20038
20039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) 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_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20043 }
20044 arg1 = reinterpret_cast< wxDC * >(argp1);
20045 {
20046 arg2 = &temp2;
20047 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20048 }
20049 {
20050 PyThreadState* __tstate = wxPyBeginAllowThreads();
20051 (arg1)->SetClippingRegion((wxRect const &)*arg2);
20052 wxPyEndAllowThreads(__tstate);
20053 if (PyErr_Occurred()) SWIG_fail;
20054 }
20055 resultobj = SWIG_Py_Void();
20056 return resultobj;
20057fail:
20058 return NULL;
20059}
20060
20061
20062SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20063 PyObject *resultobj = 0;
20064 wxDC *arg1 = (wxDC *) 0 ;
20065 int arg2 ;
20066 wxPoint *arg3 = (wxPoint *) 0 ;
20067 int arg4 = (int) 0 ;
20068 int arg5 = (int) 0 ;
20069 void *argp1 = 0 ;
20070 int res1 = 0 ;
20071 int val4 ;
20072 int ecode4 = 0 ;
20073 int val5 ;
20074 int ecode5 = 0 ;
20075 PyObject * obj0 = 0 ;
20076 PyObject * obj1 = 0 ;
20077 PyObject * obj2 = 0 ;
20078 PyObject * obj3 = 0 ;
20079 char * kwnames[] = {
20080 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
20081 };
20082
20083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20085 if (!SWIG_IsOK(res1)) {
20086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
20087 }
20088 arg1 = reinterpret_cast< wxDC * >(argp1);
20089 {
20090 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20091 if (arg3 == NULL) SWIG_fail;
20092 }
20093 if (obj2) {
20094 ecode4 = SWIG_AsVal_int(obj2, &val4);
20095 if (!SWIG_IsOK(ecode4)) {
20096 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
20097 }
20098 arg4 = static_cast< int >(val4);
20099 }
20100 if (obj3) {
20101 ecode5 = SWIG_AsVal_int(obj3, &val5);
20102 if (!SWIG_IsOK(ecode5)) {
20103 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
20104 }
20105 arg5 = static_cast< int >(val5);
20106 }
20107 {
20108 PyThreadState* __tstate = wxPyBeginAllowThreads();
20109 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
20110 wxPyEndAllowThreads(__tstate);
20111 if (PyErr_Occurred()) SWIG_fail;
20112 }
20113 resultobj = SWIG_Py_Void();
20114 {
20115 if (arg3) delete [] arg3;
20116 }
20117 return resultobj;
20118fail:
20119 {
20120 if (arg3) delete [] arg3;
20121 }
20122 return NULL;
20123}
20124
20125
20126SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20127 PyObject *resultobj = 0;
20128 wxDC *arg1 = (wxDC *) 0 ;
20129 int arg2 ;
20130 wxPoint *arg3 = (wxPoint *) 0 ;
20131 int arg4 = (int) 0 ;
20132 int arg5 = (int) 0 ;
20133 int arg6 = (int) wxODDEVEN_RULE ;
20134 void *argp1 = 0 ;
20135 int res1 = 0 ;
20136 int val4 ;
20137 int ecode4 = 0 ;
20138 int val5 ;
20139 int ecode5 = 0 ;
20140 int val6 ;
20141 int ecode6 = 0 ;
20142 PyObject * obj0 = 0 ;
20143 PyObject * obj1 = 0 ;
20144 PyObject * obj2 = 0 ;
20145 PyObject * obj3 = 0 ;
20146 PyObject * obj4 = 0 ;
20147 char * kwnames[] = {
20148 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
20149 };
20150
20151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20153 if (!SWIG_IsOK(res1)) {
20154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
20155 }
20156 arg1 = reinterpret_cast< wxDC * >(argp1);
20157 {
20158 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20159 if (arg3 == NULL) SWIG_fail;
20160 }
20161 if (obj2) {
20162 ecode4 = SWIG_AsVal_int(obj2, &val4);
20163 if (!SWIG_IsOK(ecode4)) {
20164 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
20165 }
20166 arg4 = static_cast< int >(val4);
20167 }
20168 if (obj3) {
20169 ecode5 = SWIG_AsVal_int(obj3, &val5);
20170 if (!SWIG_IsOK(ecode5)) {
20171 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
20172 }
20173 arg5 = static_cast< int >(val5);
20174 }
20175 if (obj4) {
20176 ecode6 = SWIG_AsVal_int(obj4, &val6);
20177 if (!SWIG_IsOK(ecode6)) {
20178 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
20179 }
20180 arg6 = static_cast< int >(val6);
20181 }
20182 {
20183 PyThreadState* __tstate = wxPyBeginAllowThreads();
20184 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
20185 wxPyEndAllowThreads(__tstate);
20186 if (PyErr_Occurred()) SWIG_fail;
20187 }
20188 resultobj = SWIG_Py_Void();
20189 {
20190 if (arg3) delete [] arg3;
20191 }
20192 return resultobj;
20193fail:
20194 {
20195 if (arg3) delete [] arg3;
20196 }
20197 return NULL;
20198}
20199
20200
20201SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20202 PyObject *resultobj = 0;
20203 wxDC *arg1 = (wxDC *) 0 ;
20204 wxString *arg2 = 0 ;
20205 wxRect *arg3 = 0 ;
20206 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20207 int arg5 = (int) -1 ;
20208 void *argp1 = 0 ;
20209 int res1 = 0 ;
20210 bool temp2 = false ;
20211 wxRect temp3 ;
20212 int val4 ;
20213 int ecode4 = 0 ;
20214 int val5 ;
20215 int ecode5 = 0 ;
20216 PyObject * obj0 = 0 ;
20217 PyObject * obj1 = 0 ;
20218 PyObject * obj2 = 0 ;
20219 PyObject * obj3 = 0 ;
20220 PyObject * obj4 = 0 ;
20221 char * kwnames[] = {
20222 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20223 };
20224
20225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20226 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20227 if (!SWIG_IsOK(res1)) {
20228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20229 }
20230 arg1 = reinterpret_cast< wxDC * >(argp1);
20231 {
20232 arg2 = wxString_in_helper(obj1);
20233 if (arg2 == NULL) SWIG_fail;
20234 temp2 = true;
20235 }
20236 {
20237 arg3 = &temp3;
20238 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20239 }
20240 if (obj3) {
20241 ecode4 = SWIG_AsVal_int(obj3, &val4);
20242 if (!SWIG_IsOK(ecode4)) {
20243 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20244 }
20245 arg4 = static_cast< int >(val4);
20246 }
20247 if (obj4) {
20248 ecode5 = SWIG_AsVal_int(obj4, &val5);
20249 if (!SWIG_IsOK(ecode5)) {
20250 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20251 }
20252 arg5 = static_cast< int >(val5);
20253 }
20254 {
20255 PyThreadState* __tstate = wxPyBeginAllowThreads();
20256 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20257 wxPyEndAllowThreads(__tstate);
20258 if (PyErr_Occurred()) SWIG_fail;
20259 }
20260 resultobj = SWIG_Py_Void();
20261 {
20262 if (temp2)
20263 delete arg2;
20264 }
20265 return resultobj;
20266fail:
20267 {
20268 if (temp2)
20269 delete arg2;
20270 }
20271 return NULL;
20272}
20273
20274
20275SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20276 PyObject *resultobj = 0;
20277 wxDC *arg1 = (wxDC *) 0 ;
20278 wxString *arg2 = 0 ;
20279 wxBitmap *arg3 = 0 ;
20280 wxRect *arg4 = 0 ;
20281 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20282 int arg6 = (int) -1 ;
20283 wxRect result;
20284 void *argp1 = 0 ;
20285 int res1 = 0 ;
20286 bool temp2 = false ;
20287 void *argp3 = 0 ;
20288 int res3 = 0 ;
20289 wxRect temp4 ;
20290 int val5 ;
20291 int ecode5 = 0 ;
20292 int val6 ;
20293 int ecode6 = 0 ;
20294 PyObject * obj0 = 0 ;
20295 PyObject * obj1 = 0 ;
20296 PyObject * obj2 = 0 ;
20297 PyObject * obj3 = 0 ;
20298 PyObject * obj4 = 0 ;
20299 PyObject * obj5 = 0 ;
20300 char * kwnames[] = {
20301 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20302 };
20303
20304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20306 if (!SWIG_IsOK(res1)) {
20307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20308 }
20309 arg1 = reinterpret_cast< wxDC * >(argp1);
20310 {
20311 arg2 = wxString_in_helper(obj1);
20312 if (arg2 == NULL) SWIG_fail;
20313 temp2 = true;
20314 }
20315 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20316 if (!SWIG_IsOK(res3)) {
20317 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20318 }
20319 if (!argp3) {
20320 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20321 }
20322 arg3 = reinterpret_cast< wxBitmap * >(argp3);
20323 {
20324 arg4 = &temp4;
20325 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
20326 }
20327 if (obj4) {
20328 ecode5 = SWIG_AsVal_int(obj4, &val5);
20329 if (!SWIG_IsOK(ecode5)) {
20330 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
20331 }
20332 arg5 = static_cast< int >(val5);
20333 }
20334 if (obj5) {
20335 ecode6 = SWIG_AsVal_int(obj5, &val6);
20336 if (!SWIG_IsOK(ecode6)) {
20337 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
20338 }
20339 arg6 = static_cast< int >(val6);
20340 }
20341 {
20342 PyThreadState* __tstate = wxPyBeginAllowThreads();
20343 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
20344 wxPyEndAllowThreads(__tstate);
20345 if (PyErr_Occurred()) SWIG_fail;
20346 }
20347 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20348 {
20349 if (temp2)
20350 delete arg2;
20351 }
20352 return resultobj;
20353fail:
20354 {
20355 if (temp2)
20356 delete arg2;
20357 }
20358 return NULL;
20359}
20360
20361
20362SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20363 PyObject *resultobj = 0;
20364 wxDC *arg1 = (wxDC *) 0 ;
20365 int arg2 ;
20366 wxPoint *arg3 = (wxPoint *) 0 ;
20367 void *argp1 = 0 ;
20368 int res1 = 0 ;
20369 PyObject * obj0 = 0 ;
20370 PyObject * obj1 = 0 ;
20371 char * kwnames[] = {
20372 (char *) "self",(char *) "points", NULL
20373 };
20374
20375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
20376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20377 if (!SWIG_IsOK(res1)) {
20378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
20379 }
20380 arg1 = reinterpret_cast< wxDC * >(argp1);
20381 {
20382 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20383 if (arg3 == NULL) SWIG_fail;
20384 }
20385 {
20386 PyThreadState* __tstate = wxPyBeginAllowThreads();
20387 (arg1)->DrawSpline(arg2,arg3);
20388 wxPyEndAllowThreads(__tstate);
20389 if (PyErr_Occurred()) SWIG_fail;
20390 }
20391 resultobj = SWIG_Py_Void();
20392 {
20393 if (arg3) delete [] arg3;
20394 }
20395 return resultobj;
20396fail:
20397 {
20398 if (arg3) delete [] arg3;
20399 }
20400 return NULL;
20401}
20402
20403
20404SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20405 PyObject *resultobj = 0;
20406 wxDC *arg1 = (wxDC *) 0 ;
20407 void *argp1 = 0 ;
20408 int res1 = 0 ;
20409 PyObject *swig_obj[1] ;
20410
20411 if (!args) SWIG_fail;
20412 swig_obj[0] = args;
20413 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20414 if (!SWIG_IsOK(res1)) {
20415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20416 }
20417 arg1 = reinterpret_cast< wxDC * >(argp1);
20418 {
20419 PyThreadState* __tstate = wxPyBeginAllowThreads();
20420 (arg1)->Clear();
20421 wxPyEndAllowThreads(__tstate);
20422 if (PyErr_Occurred()) SWIG_fail;
20423 }
20424 resultobj = SWIG_Py_Void();
20425 return resultobj;
20426fail:
20427 return NULL;
20428}
20429
20430
20431SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20432 PyObject *resultobj = 0;
20433 wxDC *arg1 = (wxDC *) 0 ;
20434 wxString *arg2 = 0 ;
20435 bool result;
20436 void *argp1 = 0 ;
20437 int res1 = 0 ;
20438 bool temp2 = false ;
20439 PyObject * obj0 = 0 ;
20440 PyObject * obj1 = 0 ;
20441 char * kwnames[] = {
20442 (char *) "self",(char *) "message", NULL
20443 };
20444
20445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20447 if (!SWIG_IsOK(res1)) {
20448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20449 }
20450 arg1 = reinterpret_cast< wxDC * >(argp1);
20451 {
20452 arg2 = wxString_in_helper(obj1);
20453 if (arg2 == NULL) SWIG_fail;
20454 temp2 = true;
20455 }
20456 {
20457 PyThreadState* __tstate = wxPyBeginAllowThreads();
20458 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20459 wxPyEndAllowThreads(__tstate);
20460 if (PyErr_Occurred()) SWIG_fail;
20461 }
20462 {
20463 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20464 }
20465 {
20466 if (temp2)
20467 delete arg2;
20468 }
20469 return resultobj;
20470fail:
20471 {
20472 if (temp2)
20473 delete arg2;
20474 }
20475 return NULL;
20476}
20477
20478
20479SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20480 PyObject *resultobj = 0;
20481 wxDC *arg1 = (wxDC *) 0 ;
20482 void *argp1 = 0 ;
20483 int res1 = 0 ;
20484 PyObject *swig_obj[1] ;
20485
20486 if (!args) SWIG_fail;
20487 swig_obj[0] = args;
20488 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20489 if (!SWIG_IsOK(res1)) {
20490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20491 }
20492 arg1 = reinterpret_cast< wxDC * >(argp1);
20493 {
20494 PyThreadState* __tstate = wxPyBeginAllowThreads();
20495 (arg1)->EndDoc();
20496 wxPyEndAllowThreads(__tstate);
20497 if (PyErr_Occurred()) SWIG_fail;
20498 }
20499 resultobj = SWIG_Py_Void();
20500 return resultobj;
20501fail:
20502 return NULL;
20503}
20504
20505
20506SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20507 PyObject *resultobj = 0;
20508 wxDC *arg1 = (wxDC *) 0 ;
20509 void *argp1 = 0 ;
20510 int res1 = 0 ;
20511 PyObject *swig_obj[1] ;
20512
20513 if (!args) SWIG_fail;
20514 swig_obj[0] = args;
20515 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20516 if (!SWIG_IsOK(res1)) {
20517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20518 }
20519 arg1 = reinterpret_cast< wxDC * >(argp1);
20520 {
20521 PyThreadState* __tstate = wxPyBeginAllowThreads();
20522 (arg1)->StartPage();
20523 wxPyEndAllowThreads(__tstate);
20524 if (PyErr_Occurred()) SWIG_fail;
20525 }
20526 resultobj = SWIG_Py_Void();
20527 return resultobj;
20528fail:
20529 return NULL;
20530}
20531
20532
20533SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20534 PyObject *resultobj = 0;
20535 wxDC *arg1 = (wxDC *) 0 ;
20536 void *argp1 = 0 ;
20537 int res1 = 0 ;
20538 PyObject *swig_obj[1] ;
20539
20540 if (!args) SWIG_fail;
20541 swig_obj[0] = args;
20542 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20543 if (!SWIG_IsOK(res1)) {
20544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20545 }
20546 arg1 = reinterpret_cast< wxDC * >(argp1);
20547 {
20548 PyThreadState* __tstate = wxPyBeginAllowThreads();
20549 (arg1)->EndPage();
20550 wxPyEndAllowThreads(__tstate);
20551 if (PyErr_Occurred()) SWIG_fail;
20552 }
20553 resultobj = SWIG_Py_Void();
20554 return resultobj;
20555fail:
20556 return NULL;
20557}
20558
20559
20560SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20561 PyObject *resultobj = 0;
20562 wxDC *arg1 = (wxDC *) 0 ;
20563 wxFont *arg2 = 0 ;
20564 void *argp1 = 0 ;
20565 int res1 = 0 ;
20566 void *argp2 = 0 ;
20567 int res2 = 0 ;
20568 PyObject * obj0 = 0 ;
20569 PyObject * obj1 = 0 ;
20570 char * kwnames[] = {
20571 (char *) "self",(char *) "font", NULL
20572 };
20573
20574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20576 if (!SWIG_IsOK(res1)) {
20577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20578 }
20579 arg1 = reinterpret_cast< wxDC * >(argp1);
20580 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20581 if (!SWIG_IsOK(res2)) {
20582 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20583 }
20584 if (!argp2) {
20585 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20586 }
20587 arg2 = reinterpret_cast< wxFont * >(argp2);
20588 {
20589 PyThreadState* __tstate = wxPyBeginAllowThreads();
20590 (arg1)->SetFont((wxFont const &)*arg2);
20591 wxPyEndAllowThreads(__tstate);
20592 if (PyErr_Occurred()) SWIG_fail;
20593 }
20594 resultobj = SWIG_Py_Void();
20595 return resultobj;
20596fail:
20597 return NULL;
20598}
20599
20600
20601SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20602 PyObject *resultobj = 0;
20603 wxDC *arg1 = (wxDC *) 0 ;
20604 wxPen *arg2 = 0 ;
20605 void *argp1 = 0 ;
20606 int res1 = 0 ;
20607 void *argp2 = 0 ;
20608 int res2 = 0 ;
20609 PyObject * obj0 = 0 ;
20610 PyObject * obj1 = 0 ;
20611 char * kwnames[] = {
20612 (char *) "self",(char *) "pen", NULL
20613 };
20614
20615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20617 if (!SWIG_IsOK(res1)) {
20618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20619 }
20620 arg1 = reinterpret_cast< wxDC * >(argp1);
20621 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20622 if (!SWIG_IsOK(res2)) {
20623 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20624 }
20625 if (!argp2) {
20626 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20627 }
20628 arg2 = reinterpret_cast< wxPen * >(argp2);
20629 {
20630 PyThreadState* __tstate = wxPyBeginAllowThreads();
20631 (arg1)->SetPen((wxPen const &)*arg2);
20632 wxPyEndAllowThreads(__tstate);
20633 if (PyErr_Occurred()) SWIG_fail;
20634 }
20635 resultobj = SWIG_Py_Void();
20636 return resultobj;
20637fail:
20638 return NULL;
20639}
20640
20641
20642SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20643 PyObject *resultobj = 0;
20644 wxDC *arg1 = (wxDC *) 0 ;
20645 wxBrush *arg2 = 0 ;
20646 void *argp1 = 0 ;
20647 int res1 = 0 ;
20648 void *argp2 = 0 ;
20649 int res2 = 0 ;
20650 PyObject * obj0 = 0 ;
20651 PyObject * obj1 = 0 ;
20652 char * kwnames[] = {
20653 (char *) "self",(char *) "brush", NULL
20654 };
20655
20656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20658 if (!SWIG_IsOK(res1)) {
20659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20660 }
20661 arg1 = reinterpret_cast< wxDC * >(argp1);
20662 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20663 if (!SWIG_IsOK(res2)) {
20664 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20665 }
20666 if (!argp2) {
20667 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20668 }
20669 arg2 = reinterpret_cast< wxBrush * >(argp2);
20670 {
20671 PyThreadState* __tstate = wxPyBeginAllowThreads();
20672 (arg1)->SetBrush((wxBrush const &)*arg2);
20673 wxPyEndAllowThreads(__tstate);
20674 if (PyErr_Occurred()) SWIG_fail;
20675 }
20676 resultobj = SWIG_Py_Void();
20677 return resultobj;
20678fail:
20679 return NULL;
20680}
20681
20682
20683SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20684 PyObject *resultobj = 0;
20685 wxDC *arg1 = (wxDC *) 0 ;
20686 wxBrush *arg2 = 0 ;
20687 void *argp1 = 0 ;
20688 int res1 = 0 ;
20689 void *argp2 = 0 ;
20690 int res2 = 0 ;
20691 PyObject * obj0 = 0 ;
20692 PyObject * obj1 = 0 ;
20693 char * kwnames[] = {
20694 (char *) "self",(char *) "brush", NULL
20695 };
20696
20697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20699 if (!SWIG_IsOK(res1)) {
20700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20701 }
20702 arg1 = reinterpret_cast< wxDC * >(argp1);
20703 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20704 if (!SWIG_IsOK(res2)) {
20705 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20706 }
20707 if (!argp2) {
20708 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20709 }
20710 arg2 = reinterpret_cast< wxBrush * >(argp2);
20711 {
20712 PyThreadState* __tstate = wxPyBeginAllowThreads();
20713 (arg1)->SetBackground((wxBrush const &)*arg2);
20714 wxPyEndAllowThreads(__tstate);
20715 if (PyErr_Occurred()) SWIG_fail;
20716 }
20717 resultobj = SWIG_Py_Void();
20718 return resultobj;
20719fail:
20720 return NULL;
20721}
20722
20723
20724SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20725 PyObject *resultobj = 0;
20726 wxDC *arg1 = (wxDC *) 0 ;
20727 int arg2 ;
20728 void *argp1 = 0 ;
20729 int res1 = 0 ;
20730 int val2 ;
20731 int ecode2 = 0 ;
20732 PyObject * obj0 = 0 ;
20733 PyObject * obj1 = 0 ;
20734 char * kwnames[] = {
20735 (char *) "self",(char *) "mode", NULL
20736 };
20737
20738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
20739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20740 if (!SWIG_IsOK(res1)) {
20741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
20742 }
20743 arg1 = reinterpret_cast< wxDC * >(argp1);
20744 ecode2 = SWIG_AsVal_int(obj1, &val2);
20745 if (!SWIG_IsOK(ecode2)) {
20746 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
20747 }
20748 arg2 = static_cast< int >(val2);
20749 {
20750 PyThreadState* __tstate = wxPyBeginAllowThreads();
20751 (arg1)->SetBackgroundMode(arg2);
20752 wxPyEndAllowThreads(__tstate);
20753 if (PyErr_Occurred()) SWIG_fail;
20754 }
20755 resultobj = SWIG_Py_Void();
20756 return resultobj;
20757fail:
20758 return NULL;
20759}
20760
20761
20762SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20763 PyObject *resultobj = 0;
20764 wxDC *arg1 = (wxDC *) 0 ;
20765 wxPalette *arg2 = 0 ;
20766 void *argp1 = 0 ;
20767 int res1 = 0 ;
20768 void *argp2 = 0 ;
20769 int res2 = 0 ;
20770 PyObject * obj0 = 0 ;
20771 PyObject * obj1 = 0 ;
20772 char * kwnames[] = {
20773 (char *) "self",(char *) "palette", NULL
20774 };
20775
20776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
20777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20778 if (!SWIG_IsOK(res1)) {
20779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
20780 }
20781 arg1 = reinterpret_cast< wxDC * >(argp1);
20782 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
20783 if (!SWIG_IsOK(res2)) {
20784 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20785 }
20786 if (!argp2) {
20787 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20788 }
20789 arg2 = reinterpret_cast< wxPalette * >(argp2);
20790 {
20791 PyThreadState* __tstate = wxPyBeginAllowThreads();
20792 (arg1)->SetPalette((wxPalette const &)*arg2);
20793 wxPyEndAllowThreads(__tstate);
20794 if (PyErr_Occurred()) SWIG_fail;
20795 }
20796 resultobj = SWIG_Py_Void();
20797 return resultobj;
20798fail:
20799 return NULL;
20800}
20801
20802
20803SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20804 PyObject *resultobj = 0;
20805 wxDC *arg1 = (wxDC *) 0 ;
20806 void *argp1 = 0 ;
20807 int res1 = 0 ;
20808 PyObject *swig_obj[1] ;
20809
20810 if (!args) SWIG_fail;
20811 swig_obj[0] = args;
20812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20813 if (!SWIG_IsOK(res1)) {
20814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20815 }
20816 arg1 = reinterpret_cast< wxDC * >(argp1);
20817 {
20818 PyThreadState* __tstate = wxPyBeginAllowThreads();
20819 (arg1)->DestroyClippingRegion();
20820 wxPyEndAllowThreads(__tstate);
20821 if (PyErr_Occurred()) SWIG_fail;
20822 }
20823 resultobj = SWIG_Py_Void();
20824 return resultobj;
20825fail:
20826 return NULL;
20827}
20828
20829
20830SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20831 PyObject *resultobj = 0;
20832 wxDC *arg1 = (wxDC *) 0 ;
20833 int *arg2 = (int *) 0 ;
20834 int *arg3 = (int *) 0 ;
20835 int *arg4 = (int *) 0 ;
20836 int *arg5 = (int *) 0 ;
20837 void *argp1 = 0 ;
20838 int res1 = 0 ;
20839 int temp2 ;
20840 int res2 = SWIG_TMPOBJ ;
20841 int temp3 ;
20842 int res3 = SWIG_TMPOBJ ;
20843 int temp4 ;
20844 int res4 = SWIG_TMPOBJ ;
20845 int temp5 ;
20846 int res5 = SWIG_TMPOBJ ;
20847 PyObject *swig_obj[1] ;
20848
20849 arg2 = &temp2;
20850 arg3 = &temp3;
20851 arg4 = &temp4;
20852 arg5 = &temp5;
20853 if (!args) SWIG_fail;
20854 swig_obj[0] = args;
20855 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20856 if (!SWIG_IsOK(res1)) {
20857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
20858 }
20859 arg1 = reinterpret_cast< wxDC * >(argp1);
20860 {
20861 PyThreadState* __tstate = wxPyBeginAllowThreads();
20862 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
20863 wxPyEndAllowThreads(__tstate);
20864 if (PyErr_Occurred()) SWIG_fail;
20865 }
20866 resultobj = SWIG_Py_Void();
20867 if (SWIG_IsTmpObj(res2)) {
20868 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20869 } else {
20870 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20871 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20872 }
20873 if (SWIG_IsTmpObj(res3)) {
20874 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20875 } else {
20876 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20877 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20878 }
20879 if (SWIG_IsTmpObj(res4)) {
20880 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20881 } else {
20882 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20883 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20884 }
20885 if (SWIG_IsTmpObj(res5)) {
20886 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20887 } else {
20888 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20889 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20890 }
20891 return resultobj;
20892fail:
20893 return NULL;
20894}
20895
20896
20897SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20898 PyObject *resultobj = 0;
20899 wxDC *arg1 = (wxDC *) 0 ;
20900 wxRect result;
20901 void *argp1 = 0 ;
20902 int res1 = 0 ;
20903 PyObject *swig_obj[1] ;
20904
20905 if (!args) SWIG_fail;
20906 swig_obj[0] = args;
20907 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20908 if (!SWIG_IsOK(res1)) {
20909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20910 }
20911 arg1 = reinterpret_cast< wxDC * >(argp1);
20912 {
20913 PyThreadState* __tstate = wxPyBeginAllowThreads();
20914 result = wxDC_GetClippingRect(arg1);
20915 wxPyEndAllowThreads(__tstate);
20916 if (PyErr_Occurred()) SWIG_fail;
20917 }
20918 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20919 return resultobj;
20920fail:
20921 return NULL;
20922}
20923
20924
20925SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20926 PyObject *resultobj = 0;
20927 wxDC *arg1 = (wxDC *) 0 ;
20928 int result;
20929 void *argp1 = 0 ;
20930 int res1 = 0 ;
20931 PyObject *swig_obj[1] ;
20932
20933 if (!args) SWIG_fail;
20934 swig_obj[0] = args;
20935 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20936 if (!SWIG_IsOK(res1)) {
20937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
20938 }
20939 arg1 = reinterpret_cast< wxDC * >(argp1);
20940 {
20941 PyThreadState* __tstate = wxPyBeginAllowThreads();
20942 result = (int)((wxDC const *)arg1)->GetCharHeight();
20943 wxPyEndAllowThreads(__tstate);
20944 if (PyErr_Occurred()) SWIG_fail;
20945 }
20946 resultobj = SWIG_From_int(static_cast< int >(result));
20947 return resultobj;
20948fail:
20949 return NULL;
20950}
20951
20952
20953SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20954 PyObject *resultobj = 0;
20955 wxDC *arg1 = (wxDC *) 0 ;
20956 int result;
20957 void *argp1 = 0 ;
20958 int res1 = 0 ;
20959 PyObject *swig_obj[1] ;
20960
20961 if (!args) SWIG_fail;
20962 swig_obj[0] = args;
20963 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20964 if (!SWIG_IsOK(res1)) {
20965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
20966 }
20967 arg1 = reinterpret_cast< wxDC * >(argp1);
20968 {
20969 PyThreadState* __tstate = wxPyBeginAllowThreads();
20970 result = (int)((wxDC const *)arg1)->GetCharWidth();
20971 wxPyEndAllowThreads(__tstate);
20972 if (PyErr_Occurred()) SWIG_fail;
20973 }
20974 resultobj = SWIG_From_int(static_cast< int >(result));
20975 return resultobj;
20976fail:
20977 return NULL;
20978}
20979
20980
20981SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20982 PyObject *resultobj = 0;
20983 wxDC *arg1 = (wxDC *) 0 ;
20984 wxString *arg2 = 0 ;
20985 int *arg3 = (int *) 0 ;
20986 int *arg4 = (int *) 0 ;
20987 void *argp1 = 0 ;
20988 int res1 = 0 ;
20989 bool temp2 = false ;
20990 int temp3 ;
20991 int res3 = SWIG_TMPOBJ ;
20992 int temp4 ;
20993 int res4 = SWIG_TMPOBJ ;
20994 PyObject * obj0 = 0 ;
20995 PyObject * obj1 = 0 ;
20996 char * kwnames[] = {
20997 (char *) "self",(char *) "string", NULL
20998 };
20999
21000 arg3 = &temp3;
21001 arg4 = &temp4;
21002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
21003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21004 if (!SWIG_IsOK(res1)) {
21005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21006 }
21007 arg1 = reinterpret_cast< wxDC * >(argp1);
21008 {
21009 arg2 = wxString_in_helper(obj1);
21010 if (arg2 == NULL) SWIG_fail;
21011 temp2 = true;
21012 }
21013 {
21014 PyThreadState* __tstate = wxPyBeginAllowThreads();
21015 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
21016 wxPyEndAllowThreads(__tstate);
21017 if (PyErr_Occurred()) SWIG_fail;
21018 }
21019 resultobj = SWIG_Py_Void();
21020 if (SWIG_IsTmpObj(res3)) {
21021 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21022 } else {
21023 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21024 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21025 }
21026 if (SWIG_IsTmpObj(res4)) {
21027 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21028 } else {
21029 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21030 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21031 }
21032 {
21033 if (temp2)
21034 delete arg2;
21035 }
21036 return resultobj;
21037fail:
21038 {
21039 if (temp2)
21040 delete arg2;
21041 }
21042 return NULL;
21043}
21044
21045
21046SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21047 PyObject *resultobj = 0;
21048 wxDC *arg1 = (wxDC *) 0 ;
21049 wxString *arg2 = 0 ;
21050 int *arg3 = (int *) 0 ;
21051 int *arg4 = (int *) 0 ;
21052 int *arg5 = (int *) 0 ;
21053 int *arg6 = (int *) 0 ;
21054 wxFont *arg7 = (wxFont *) NULL ;
21055 void *argp1 = 0 ;
21056 int res1 = 0 ;
21057 bool temp2 = false ;
21058 int temp3 ;
21059 int res3 = SWIG_TMPOBJ ;
21060 int temp4 ;
21061 int res4 = SWIG_TMPOBJ ;
21062 int temp5 ;
21063 int res5 = SWIG_TMPOBJ ;
21064 int temp6 ;
21065 int res6 = SWIG_TMPOBJ ;
21066 void *argp7 = 0 ;
21067 int res7 = 0 ;
21068 PyObject * obj0 = 0 ;
21069 PyObject * obj1 = 0 ;
21070 PyObject * obj2 = 0 ;
21071 char * kwnames[] = {
21072 (char *) "self",(char *) "string",(char *) "font", NULL
21073 };
21074
21075 arg3 = &temp3;
21076 arg4 = &temp4;
21077 arg5 = &temp5;
21078 arg6 = &temp6;
21079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21081 if (!SWIG_IsOK(res1)) {
21082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21083 }
21084 arg1 = reinterpret_cast< wxDC * >(argp1);
21085 {
21086 arg2 = wxString_in_helper(obj1);
21087 if (arg2 == NULL) SWIG_fail;
21088 temp2 = true;
21089 }
21090 if (obj2) {
21091 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
21092 if (!SWIG_IsOK(res7)) {
21093 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
36ed4f51 21094 }
1bd55598
RD
21095 arg7 = reinterpret_cast< wxFont * >(argp7);
21096 }
21097 {
21098 PyThreadState* __tstate = wxPyBeginAllowThreads();
21099 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
21100 wxPyEndAllowThreads(__tstate);
21101 if (PyErr_Occurred()) SWIG_fail;
21102 }
21103 resultobj = SWIG_Py_Void();
21104 if (SWIG_IsTmpObj(res3)) {
21105 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21106 } else {
21107 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21108 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21109 }
21110 if (SWIG_IsTmpObj(res4)) {
21111 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21112 } else {
21113 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21114 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21115 }
21116 if (SWIG_IsTmpObj(res5)) {
21117 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21118 } else {
21119 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21120 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21121 }
21122 if (SWIG_IsTmpObj(res6)) {
21123 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
21124 } else {
21125 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21126 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
21127 }
21128 {
21129 if (temp2)
21130 delete arg2;
21131 }
21132 return resultobj;
21133fail:
21134 {
21135 if (temp2)
21136 delete arg2;
21137 }
21138 return NULL;
21139}
21140
21141
21142SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21143 PyObject *resultobj = 0;
21144 wxDC *arg1 = (wxDC *) 0 ;
21145 wxString *arg2 = 0 ;
21146 int *arg3 = (int *) 0 ;
21147 int *arg4 = (int *) 0 ;
21148 int *arg5 = (int *) 0 ;
21149 wxFont *arg6 = (wxFont *) NULL ;
21150 void *argp1 = 0 ;
21151 int res1 = 0 ;
21152 bool temp2 = false ;
21153 int temp3 ;
21154 int res3 = SWIG_TMPOBJ ;
21155 int temp4 ;
21156 int res4 = SWIG_TMPOBJ ;
21157 int temp5 ;
21158 int res5 = SWIG_TMPOBJ ;
21159 void *argp6 = 0 ;
21160 int res6 = 0 ;
21161 PyObject * obj0 = 0 ;
21162 PyObject * obj1 = 0 ;
21163 PyObject * obj2 = 0 ;
21164 char * kwnames[] = {
21165 (char *) "self",(char *) "text",(char *) "font", NULL
21166 };
21167
21168 arg3 = &temp3;
21169 arg4 = &temp4;
21170 arg5 = &temp5;
21171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21173 if (!SWIG_IsOK(res1)) {
21174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21175 }
21176 arg1 = reinterpret_cast< wxDC * >(argp1);
21177 {
21178 arg2 = wxString_in_helper(obj1);
21179 if (arg2 == NULL) SWIG_fail;
21180 temp2 = true;
21181 }
21182 if (obj2) {
21183 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
21184 if (!SWIG_IsOK(res6)) {
21185 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
36ed4f51 21186 }
1bd55598
RD
21187 arg6 = reinterpret_cast< wxFont * >(argp6);
21188 }
21189 {
21190 PyThreadState* __tstate = wxPyBeginAllowThreads();
21191 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
21192 wxPyEndAllowThreads(__tstate);
21193 if (PyErr_Occurred()) SWIG_fail;
21194 }
21195 resultobj = SWIG_Py_Void();
21196 if (SWIG_IsTmpObj(res3)) {
21197 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21198 } else {
21199 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21200 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21201 }
21202 if (SWIG_IsTmpObj(res4)) {
21203 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21204 } else {
21205 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21206 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21207 }
21208 if (SWIG_IsTmpObj(res5)) {
21209 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21210 } else {
21211 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21212 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21213 }
21214 {
21215 if (temp2)
21216 delete arg2;
21217 }
21218 return resultobj;
21219fail:
21220 {
21221 if (temp2)
21222 delete arg2;
21223 }
21224 return NULL;
21225}
21226
21227
21228SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21229 PyObject *resultobj = 0;
21230 wxDC *arg1 = (wxDC *) 0 ;
21231 wxString *arg2 = 0 ;
21232 wxArrayInt result;
21233 void *argp1 = 0 ;
21234 int res1 = 0 ;
21235 bool temp2 = false ;
21236 PyObject * obj0 = 0 ;
21237 PyObject * obj1 = 0 ;
21238 char * kwnames[] = {
21239 (char *) "self",(char *) "text", NULL
21240 };
21241
21242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21244 if (!SWIG_IsOK(res1)) {
21245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21246 }
21247 arg1 = reinterpret_cast< wxDC * >(argp1);
21248 {
21249 arg2 = wxString_in_helper(obj1);
21250 if (arg2 == NULL) SWIG_fail;
21251 temp2 = true;
21252 }
21253 {
21254 PyThreadState* __tstate = wxPyBeginAllowThreads();
21255 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21256 wxPyEndAllowThreads(__tstate);
21257 if (PyErr_Occurred()) SWIG_fail;
21258 }
21259 {
b39fe951 21260 resultobj = wxArrayInt2PyList_helper(result);
1bd55598
RD
21261 }
21262 {
21263 if (temp2)
21264 delete arg2;
21265 }
21266 return resultobj;
21267fail:
21268 {
21269 if (temp2)
21270 delete arg2;
21271 }
21272 return NULL;
21273}
21274
21275
21276SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21277 PyObject *resultobj = 0;
21278 wxDC *arg1 = (wxDC *) 0 ;
21279 wxSize result;
21280 void *argp1 = 0 ;
21281 int res1 = 0 ;
21282 PyObject *swig_obj[1] ;
21283
21284 if (!args) SWIG_fail;
21285 swig_obj[0] = args;
21286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21287 if (!SWIG_IsOK(res1)) {
21288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21289 }
21290 arg1 = reinterpret_cast< wxDC * >(argp1);
21291 {
21292 PyThreadState* __tstate = wxPyBeginAllowThreads();
21293 result = (arg1)->GetSize();
21294 wxPyEndAllowThreads(__tstate);
21295 if (PyErr_Occurred()) SWIG_fail;
21296 }
21297 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21298 return resultobj;
21299fail:
21300 return NULL;
21301}
21302
21303
21304SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21305 PyObject *resultobj = 0;
21306 wxDC *arg1 = (wxDC *) 0 ;
21307 int *arg2 = (int *) 0 ;
21308 int *arg3 = (int *) 0 ;
21309 void *argp1 = 0 ;
21310 int res1 = 0 ;
21311 int temp2 ;
21312 int res2 = SWIG_TMPOBJ ;
21313 int temp3 ;
21314 int res3 = SWIG_TMPOBJ ;
21315 PyObject *swig_obj[1] ;
21316
21317 arg2 = &temp2;
21318 arg3 = &temp3;
21319 if (!args) SWIG_fail;
21320 swig_obj[0] = args;
21321 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21322 if (!SWIG_IsOK(res1)) {
21323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
21324 }
21325 arg1 = reinterpret_cast< wxDC * >(argp1);
21326 {
21327 PyThreadState* __tstate = wxPyBeginAllowThreads();
21328 (arg1)->GetSize(arg2,arg3);
21329 wxPyEndAllowThreads(__tstate);
21330 if (PyErr_Occurred()) SWIG_fail;
21331 }
21332 resultobj = SWIG_Py_Void();
21333 if (SWIG_IsTmpObj(res2)) {
21334 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21335 } else {
21336 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21337 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21338 }
21339 if (SWIG_IsTmpObj(res3)) {
21340 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21341 } else {
21342 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21343 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21344 }
21345 return resultobj;
21346fail:
21347 return NULL;
21348}
21349
21350
21351SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21352 PyObject *resultobj = 0;
21353 wxDC *arg1 = (wxDC *) 0 ;
21354 wxSize result;
21355 void *argp1 = 0 ;
21356 int res1 = 0 ;
21357 PyObject *swig_obj[1] ;
21358
21359 if (!args) SWIG_fail;
21360 swig_obj[0] = args;
21361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21362 if (!SWIG_IsOK(res1)) {
21363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
21364 }
21365 arg1 = reinterpret_cast< wxDC * >(argp1);
21366 {
21367 PyThreadState* __tstate = wxPyBeginAllowThreads();
21368 result = ((wxDC const *)arg1)->GetSizeMM();
21369 wxPyEndAllowThreads(__tstate);
21370 if (PyErr_Occurred()) SWIG_fail;
21371 }
21372 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21373 return resultobj;
21374fail:
21375 return NULL;
21376}
21377
21378
21379SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21380 PyObject *resultobj = 0;
21381 wxDC *arg1 = (wxDC *) 0 ;
21382 int *arg2 = (int *) 0 ;
21383 int *arg3 = (int *) 0 ;
21384 void *argp1 = 0 ;
21385 int res1 = 0 ;
21386 int temp2 ;
21387 int res2 = SWIG_TMPOBJ ;
21388 int temp3 ;
21389 int res3 = SWIG_TMPOBJ ;
21390 PyObject *swig_obj[1] ;
21391
21392 arg2 = &temp2;
21393 arg3 = &temp3;
21394 if (!args) SWIG_fail;
21395 swig_obj[0] = args;
21396 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21397 if (!SWIG_IsOK(res1)) {
21398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21399 }
21400 arg1 = reinterpret_cast< wxDC * >(argp1);
21401 {
21402 PyThreadState* __tstate = wxPyBeginAllowThreads();
21403 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21404 wxPyEndAllowThreads(__tstate);
21405 if (PyErr_Occurred()) SWIG_fail;
21406 }
21407 resultobj = SWIG_Py_Void();
21408 if (SWIG_IsTmpObj(res2)) {
21409 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21410 } else {
21411 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21412 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21413 }
21414 if (SWIG_IsTmpObj(res3)) {
21415 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21416 } else {
21417 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21418 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21419 }
21420 return resultobj;
21421fail:
21422 return NULL;
21423}
21424
21425
21426SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21427 PyObject *resultobj = 0;
21428 wxDC *arg1 = (wxDC *) 0 ;
21429 int arg2 ;
21430 int result;
21431 void *argp1 = 0 ;
21432 int res1 = 0 ;
21433 int val2 ;
21434 int ecode2 = 0 ;
21435 PyObject * obj0 = 0 ;
21436 PyObject * obj1 = 0 ;
21437 char * kwnames[] = {
21438 (char *) "self",(char *) "x", NULL
21439 };
21440
21441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21443 if (!SWIG_IsOK(res1)) {
21444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21445 }
21446 arg1 = reinterpret_cast< wxDC * >(argp1);
21447 ecode2 = SWIG_AsVal_int(obj1, &val2);
21448 if (!SWIG_IsOK(ecode2)) {
21449 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21450 }
21451 arg2 = static_cast< int >(val2);
21452 {
21453 PyThreadState* __tstate = wxPyBeginAllowThreads();
21454 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21455 wxPyEndAllowThreads(__tstate);
21456 if (PyErr_Occurred()) SWIG_fail;
21457 }
21458 resultobj = SWIG_From_int(static_cast< int >(result));
21459 return resultobj;
21460fail:
21461 return NULL;
21462}
21463
21464
21465SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21466 PyObject *resultobj = 0;
21467 wxDC *arg1 = (wxDC *) 0 ;
21468 int arg2 ;
21469 int result;
21470 void *argp1 = 0 ;
21471 int res1 = 0 ;
21472 int val2 ;
21473 int ecode2 = 0 ;
21474 PyObject * obj0 = 0 ;
21475 PyObject * obj1 = 0 ;
21476 char * kwnames[] = {
21477 (char *) "self",(char *) "y", NULL
21478 };
21479
21480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21482 if (!SWIG_IsOK(res1)) {
21483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21484 }
21485 arg1 = reinterpret_cast< wxDC * >(argp1);
21486 ecode2 = SWIG_AsVal_int(obj1, &val2);
21487 if (!SWIG_IsOK(ecode2)) {
21488 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21489 }
21490 arg2 = static_cast< int >(val2);
21491 {
21492 PyThreadState* __tstate = wxPyBeginAllowThreads();
21493 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21494 wxPyEndAllowThreads(__tstate);
21495 if (PyErr_Occurred()) SWIG_fail;
21496 }
21497 resultobj = SWIG_From_int(static_cast< int >(result));
21498 return resultobj;
21499fail:
21500 return NULL;
21501}
21502
21503
21504SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21505 PyObject *resultobj = 0;
21506 wxDC *arg1 = (wxDC *) 0 ;
21507 int arg2 ;
21508 int result;
21509 void *argp1 = 0 ;
21510 int res1 = 0 ;
21511 int val2 ;
21512 int ecode2 = 0 ;
21513 PyObject * obj0 = 0 ;
21514 PyObject * obj1 = 0 ;
21515 char * kwnames[] = {
21516 (char *) "self",(char *) "x", NULL
21517 };
21518
21519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21521 if (!SWIG_IsOK(res1)) {
21522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21523 }
21524 arg1 = reinterpret_cast< wxDC * >(argp1);
21525 ecode2 = SWIG_AsVal_int(obj1, &val2);
21526 if (!SWIG_IsOK(ecode2)) {
21527 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21528 }
21529 arg2 = static_cast< int >(val2);
21530 {
21531 PyThreadState* __tstate = wxPyBeginAllowThreads();
21532 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21533 wxPyEndAllowThreads(__tstate);
21534 if (PyErr_Occurred()) SWIG_fail;
21535 }
21536 resultobj = SWIG_From_int(static_cast< int >(result));
21537 return resultobj;
21538fail:
21539 return NULL;
21540}
21541
21542
21543SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21544 PyObject *resultobj = 0;
21545 wxDC *arg1 = (wxDC *) 0 ;
21546 int arg2 ;
21547 int result;
21548 void *argp1 = 0 ;
21549 int res1 = 0 ;
21550 int val2 ;
21551 int ecode2 = 0 ;
21552 PyObject * obj0 = 0 ;
21553 PyObject * obj1 = 0 ;
21554 char * kwnames[] = {
21555 (char *) "self",(char *) "y", NULL
21556 };
21557
21558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21560 if (!SWIG_IsOK(res1)) {
21561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21562 }
21563 arg1 = reinterpret_cast< wxDC * >(argp1);
21564 ecode2 = SWIG_AsVal_int(obj1, &val2);
21565 if (!SWIG_IsOK(ecode2)) {
21566 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21567 }
21568 arg2 = static_cast< int >(val2);
21569 {
21570 PyThreadState* __tstate = wxPyBeginAllowThreads();
21571 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21572 wxPyEndAllowThreads(__tstate);
21573 if (PyErr_Occurred()) SWIG_fail;
21574 }
21575 resultobj = SWIG_From_int(static_cast< int >(result));
21576 return resultobj;
21577fail:
21578 return NULL;
21579}
21580
21581
21582SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21583 PyObject *resultobj = 0;
21584 wxDC *arg1 = (wxDC *) 0 ;
21585 int arg2 ;
21586 int result;
21587 void *argp1 = 0 ;
21588 int res1 = 0 ;
21589 int val2 ;
21590 int ecode2 = 0 ;
21591 PyObject * obj0 = 0 ;
21592 PyObject * obj1 = 0 ;
21593 char * kwnames[] = {
21594 (char *) "self",(char *) "x", NULL
21595 };
21596
21597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21599 if (!SWIG_IsOK(res1)) {
21600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21601 }
21602 arg1 = reinterpret_cast< wxDC * >(argp1);
21603 ecode2 = SWIG_AsVal_int(obj1, &val2);
21604 if (!SWIG_IsOK(ecode2)) {
21605 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21606 }
21607 arg2 = static_cast< int >(val2);
21608 {
21609 PyThreadState* __tstate = wxPyBeginAllowThreads();
21610 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21611 wxPyEndAllowThreads(__tstate);
21612 if (PyErr_Occurred()) SWIG_fail;
21613 }
21614 resultobj = SWIG_From_int(static_cast< int >(result));
21615 return resultobj;
21616fail:
21617 return NULL;
21618}
21619
21620
21621SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21622 PyObject *resultobj = 0;
21623 wxDC *arg1 = (wxDC *) 0 ;
21624 int arg2 ;
21625 int result;
21626 void *argp1 = 0 ;
21627 int res1 = 0 ;
21628 int val2 ;
21629 int ecode2 = 0 ;
21630 PyObject * obj0 = 0 ;
21631 PyObject * obj1 = 0 ;
21632 char * kwnames[] = {
21633 (char *) "self",(char *) "y", NULL
21634 };
21635
21636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21638 if (!SWIG_IsOK(res1)) {
21639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21640 }
21641 arg1 = reinterpret_cast< wxDC * >(argp1);
21642 ecode2 = SWIG_AsVal_int(obj1, &val2);
21643 if (!SWIG_IsOK(ecode2)) {
21644 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21645 }
21646 arg2 = static_cast< int >(val2);
21647 {
21648 PyThreadState* __tstate = wxPyBeginAllowThreads();
21649 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21650 wxPyEndAllowThreads(__tstate);
21651 if (PyErr_Occurred()) SWIG_fail;
21652 }
21653 resultobj = SWIG_From_int(static_cast< int >(result));
21654 return resultobj;
21655fail:
21656 return NULL;
21657}
21658
21659
21660SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21661 PyObject *resultobj = 0;
21662 wxDC *arg1 = (wxDC *) 0 ;
21663 int arg2 ;
21664 int result;
21665 void *argp1 = 0 ;
21666 int res1 = 0 ;
21667 int val2 ;
21668 int ecode2 = 0 ;
21669 PyObject * obj0 = 0 ;
21670 PyObject * obj1 = 0 ;
21671 char * kwnames[] = {
21672 (char *) "self",(char *) "x", NULL
21673 };
21674
21675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21677 if (!SWIG_IsOK(res1)) {
21678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21679 }
21680 arg1 = reinterpret_cast< wxDC * >(argp1);
21681 ecode2 = SWIG_AsVal_int(obj1, &val2);
21682 if (!SWIG_IsOK(ecode2)) {
21683 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21684 }
21685 arg2 = static_cast< int >(val2);
21686 {
21687 PyThreadState* __tstate = wxPyBeginAllowThreads();
21688 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21689 wxPyEndAllowThreads(__tstate);
21690 if (PyErr_Occurred()) SWIG_fail;
21691 }
21692 resultobj = SWIG_From_int(static_cast< int >(result));
21693 return resultobj;
21694fail:
21695 return NULL;
21696}
21697
21698
21699SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21700 PyObject *resultobj = 0;
21701 wxDC *arg1 = (wxDC *) 0 ;
21702 int arg2 ;
21703 int result;
21704 void *argp1 = 0 ;
21705 int res1 = 0 ;
21706 int val2 ;
21707 int ecode2 = 0 ;
21708 PyObject * obj0 = 0 ;
21709 PyObject * obj1 = 0 ;
21710 char * kwnames[] = {
21711 (char *) "self",(char *) "y", NULL
21712 };
21713
21714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21716 if (!SWIG_IsOK(res1)) {
21717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21718 }
21719 arg1 = reinterpret_cast< wxDC * >(argp1);
21720 ecode2 = SWIG_AsVal_int(obj1, &val2);
21721 if (!SWIG_IsOK(ecode2)) {
21722 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21723 }
21724 arg2 = static_cast< int >(val2);
21725 {
21726 PyThreadState* __tstate = wxPyBeginAllowThreads();
21727 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21728 wxPyEndAllowThreads(__tstate);
21729 if (PyErr_Occurred()) SWIG_fail;
21730 }
21731 resultobj = SWIG_From_int(static_cast< int >(result));
21732 return resultobj;
21733fail:
21734 return NULL;
21735}
21736
21737
21738SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21739 PyObject *resultobj = 0;
21740 wxDC *arg1 = (wxDC *) 0 ;
21741 bool result;
21742 void *argp1 = 0 ;
21743 int res1 = 0 ;
21744 PyObject *swig_obj[1] ;
21745
21746 if (!args) SWIG_fail;
21747 swig_obj[0] = args;
21748 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21749 if (!SWIG_IsOK(res1)) {
21750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
21751 }
21752 arg1 = reinterpret_cast< wxDC * >(argp1);
21753 {
21754 PyThreadState* __tstate = wxPyBeginAllowThreads();
21755 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
21756 wxPyEndAllowThreads(__tstate);
21757 if (PyErr_Occurred()) SWIG_fail;
21758 }
21759 {
21760 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21761 }
21762 return resultobj;
21763fail:
21764 return NULL;
21765}
21766
21767
21768SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21769 PyObject *resultobj = 0;
21770 wxDC *arg1 = (wxDC *) 0 ;
21771 bool result;
21772 void *argp1 = 0 ;
21773 int res1 = 0 ;
21774 PyObject *swig_obj[1] ;
21775
21776 if (!args) SWIG_fail;
21777 swig_obj[0] = args;
21778 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21779 if (!SWIG_IsOK(res1)) {
21780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
21781 }
21782 arg1 = reinterpret_cast< wxDC * >(argp1);
21783 {
21784 PyThreadState* __tstate = wxPyBeginAllowThreads();
21785 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
21786 wxPyEndAllowThreads(__tstate);
21787 if (PyErr_Occurred()) SWIG_fail;
21788 }
21789 {
21790 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21791 }
21792 return resultobj;
21793fail:
21794 return NULL;
21795}
21796
21797
21798SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21799 PyObject *resultobj = 0;
21800 wxDC *arg1 = (wxDC *) 0 ;
21801 int result;
21802 void *argp1 = 0 ;
21803 int res1 = 0 ;
21804 PyObject *swig_obj[1] ;
21805
21806 if (!args) SWIG_fail;
21807 swig_obj[0] = args;
21808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21809 if (!SWIG_IsOK(res1)) {
21810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
21811 }
21812 arg1 = reinterpret_cast< wxDC * >(argp1);
21813 {
21814 PyThreadState* __tstate = wxPyBeginAllowThreads();
21815 result = (int)((wxDC const *)arg1)->GetDepth();
21816 wxPyEndAllowThreads(__tstate);
21817 if (PyErr_Occurred()) SWIG_fail;
21818 }
21819 resultobj = SWIG_From_int(static_cast< int >(result));
21820 return resultobj;
21821fail:
21822 return NULL;
21823}
21824
21825
21826SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21827 PyObject *resultobj = 0;
21828 wxDC *arg1 = (wxDC *) 0 ;
21829 wxSize result;
21830 void *argp1 = 0 ;
21831 int res1 = 0 ;
21832 PyObject *swig_obj[1] ;
21833
21834 if (!args) SWIG_fail;
21835 swig_obj[0] = args;
21836 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21837 if (!SWIG_IsOK(res1)) {
21838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
21839 }
21840 arg1 = reinterpret_cast< wxDC * >(argp1);
21841 {
21842 PyThreadState* __tstate = wxPyBeginAllowThreads();
21843 result = ((wxDC const *)arg1)->GetPPI();
21844 wxPyEndAllowThreads(__tstate);
21845 if (PyErr_Occurred()) SWIG_fail;
21846 }
21847 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21848 return resultobj;
21849fail:
21850 return NULL;
21851}
21852
21853
b39fe951 21854SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
21855 PyObject *resultobj = 0;
21856 wxDC *arg1 = (wxDC *) 0 ;
21857 bool result;
21858 void *argp1 = 0 ;
21859 int res1 = 0 ;
21860 PyObject *swig_obj[1] ;
21861
21862 if (!args) SWIG_fail;
21863 swig_obj[0] = args;
21864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21865 if (!SWIG_IsOK(res1)) {
b39fe951 21866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
1bd55598
RD
21867 }
21868 arg1 = reinterpret_cast< wxDC * >(argp1);
21869 {
21870 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 21871 result = (bool)((wxDC const *)arg1)->IsOk();
1bd55598
RD
21872 wxPyEndAllowThreads(__tstate);
21873 if (PyErr_Occurred()) SWIG_fail;
21874 }
21875 {
21876 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21877 }
21878 return resultobj;
21879fail:
21880 return NULL;
21881}
21882
21883
21884SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21885 PyObject *resultobj = 0;
21886 wxDC *arg1 = (wxDC *) 0 ;
21887 int result;
21888 void *argp1 = 0 ;
21889 int res1 = 0 ;
21890 PyObject *swig_obj[1] ;
21891
21892 if (!args) SWIG_fail;
21893 swig_obj[0] = args;
21894 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21895 if (!SWIG_IsOK(res1)) {
21896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21897 }
21898 arg1 = reinterpret_cast< wxDC * >(argp1);
21899 {
21900 PyThreadState* __tstate = wxPyBeginAllowThreads();
21901 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
21902 wxPyEndAllowThreads(__tstate);
21903 if (PyErr_Occurred()) SWIG_fail;
21904 }
21905 resultobj = SWIG_From_int(static_cast< int >(result));
21906 return resultobj;
21907fail:
21908 return NULL;
21909}
21910
21911
21912SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21913 PyObject *resultobj = 0;
21914 wxDC *arg1 = (wxDC *) 0 ;
21915 wxBrush *result = 0 ;
21916 void *argp1 = 0 ;
21917 int res1 = 0 ;
21918 PyObject *swig_obj[1] ;
21919
21920 if (!args) SWIG_fail;
21921 swig_obj[0] = args;
21922 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21923 if (!SWIG_IsOK(res1)) {
21924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21925 }
21926 arg1 = reinterpret_cast< wxDC * >(argp1);
21927 {
21928 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21929 {
1bd55598
RD
21930 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
21931 result = (wxBrush *) &_result_ref;
36ed4f51 21932 }
1bd55598
RD
21933 wxPyEndAllowThreads(__tstate);
21934 if (PyErr_Occurred()) SWIG_fail;
21935 }
21936 {
21937 wxBrush* resultptr = new wxBrush(*result);
21938 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21939 }
21940 return resultobj;
21941fail:
21942 return NULL;
21943}
21944
21945
21946SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21947 PyObject *resultobj = 0;
21948 wxDC *arg1 = (wxDC *) 0 ;
21949 wxBrush *result = 0 ;
21950 void *argp1 = 0 ;
21951 int res1 = 0 ;
21952 PyObject *swig_obj[1] ;
21953
21954 if (!args) SWIG_fail;
21955 swig_obj[0] = args;
21956 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21957 if (!SWIG_IsOK(res1)) {
21958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
21959 }
21960 arg1 = reinterpret_cast< wxDC * >(argp1);
21961 {
21962 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21963 {
1bd55598
RD
21964 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
21965 result = (wxBrush *) &_result_ref;
36ed4f51 21966 }
1bd55598
RD
21967 wxPyEndAllowThreads(__tstate);
21968 if (PyErr_Occurred()) SWIG_fail;
21969 }
21970 {
21971 wxBrush* resultptr = new wxBrush(*result);
21972 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21973 }
21974 return resultobj;
21975fail:
21976 return NULL;
21977}
21978
21979
21980SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21981 PyObject *resultobj = 0;
21982 wxDC *arg1 = (wxDC *) 0 ;
21983 wxFont *result = 0 ;
21984 void *argp1 = 0 ;
21985 int res1 = 0 ;
21986 PyObject *swig_obj[1] ;
21987
21988 if (!args) SWIG_fail;
21989 swig_obj[0] = args;
21990 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21991 if (!SWIG_IsOK(res1)) {
21992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
21993 }
21994 arg1 = reinterpret_cast< wxDC * >(argp1);
21995 {
21996 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 21997 {
1bd55598
RD
21998 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
21999 result = (wxFont *) &_result_ref;
36ed4f51 22000 }
1bd55598
RD
22001 wxPyEndAllowThreads(__tstate);
22002 if (PyErr_Occurred()) SWIG_fail;
22003 }
22004 {
22005 wxFont* resultptr = new wxFont(*result);
22006 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
22007 }
22008 return resultobj;
22009fail:
22010 return NULL;
22011}
22012
22013
22014SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22015 PyObject *resultobj = 0;
22016 wxDC *arg1 = (wxDC *) 0 ;
22017 wxPen *result = 0 ;
22018 void *argp1 = 0 ;
22019 int res1 = 0 ;
22020 PyObject *swig_obj[1] ;
22021
22022 if (!args) SWIG_fail;
22023 swig_obj[0] = args;
22024 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22025 if (!SWIG_IsOK(res1)) {
22026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
22027 }
22028 arg1 = reinterpret_cast< wxDC * >(argp1);
22029 {
22030 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 22031 {
1bd55598
RD
22032 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
22033 result = (wxPen *) &_result_ref;
36ed4f51 22034 }
1bd55598
RD
22035 wxPyEndAllowThreads(__tstate);
22036 if (PyErr_Occurred()) SWIG_fail;
22037 }
22038 {
22039 wxPen* resultptr = new wxPen(*result);
22040 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
22041 }
22042 return resultobj;
22043fail:
22044 return NULL;
22045}
22046
22047
22048SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22049 PyObject *resultobj = 0;
22050 wxDC *arg1 = (wxDC *) 0 ;
22051 wxColour *result = 0 ;
22052 void *argp1 = 0 ;
22053 int res1 = 0 ;
22054 PyObject *swig_obj[1] ;
22055
22056 if (!args) SWIG_fail;
22057 swig_obj[0] = args;
22058 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22059 if (!SWIG_IsOK(res1)) {
22060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22061 }
22062 arg1 = reinterpret_cast< wxDC * >(argp1);
22063 {
22064 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 22065 {
1bd55598
RD
22066 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
22067 result = (wxColour *) &_result_ref;
36ed4f51 22068 }
1bd55598
RD
22069 wxPyEndAllowThreads(__tstate);
22070 if (PyErr_Occurred()) SWIG_fail;
22071 }
22072 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22073 return resultobj;
22074fail:
22075 return NULL;
22076}
22077
22078
22079SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22080 PyObject *resultobj = 0;
22081 wxDC *arg1 = (wxDC *) 0 ;
22082 wxColour *result = 0 ;
22083 void *argp1 = 0 ;
22084 int res1 = 0 ;
22085 PyObject *swig_obj[1] ;
22086
22087 if (!args) SWIG_fail;
22088 swig_obj[0] = args;
22089 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22090 if (!SWIG_IsOK(res1)) {
22091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
22092 }
22093 arg1 = reinterpret_cast< wxDC * >(argp1);
22094 {
22095 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 22096 {
1bd55598
RD
22097 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
22098 result = (wxColour *) &_result_ref;
36ed4f51 22099 }
1bd55598
RD
22100 wxPyEndAllowThreads(__tstate);
22101 if (PyErr_Occurred()) SWIG_fail;
22102 }
22103 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22104 return resultobj;
22105fail:
22106 return NULL;
22107}
22108
22109
22110SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22111 PyObject *resultobj = 0;
22112 wxDC *arg1 = (wxDC *) 0 ;
22113 wxColour *arg2 = 0 ;
22114 void *argp1 = 0 ;
22115 int res1 = 0 ;
22116 wxColour temp2 ;
22117 PyObject * obj0 = 0 ;
22118 PyObject * obj1 = 0 ;
22119 char * kwnames[] = {
22120 (char *) "self",(char *) "colour", NULL
22121 };
22122
22123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
22124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22125 if (!SWIG_IsOK(res1)) {
22126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
22127 }
22128 arg1 = reinterpret_cast< wxDC * >(argp1);
22129 {
22130 arg2 = &temp2;
22131 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22132 }
22133 {
22134 PyThreadState* __tstate = wxPyBeginAllowThreads();
22135 (arg1)->SetTextForeground((wxColour const &)*arg2);
22136 wxPyEndAllowThreads(__tstate);
22137 if (PyErr_Occurred()) SWIG_fail;
22138 }
22139 resultobj = SWIG_Py_Void();
22140 return resultobj;
22141fail:
22142 return NULL;
22143}
22144
22145
22146SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22147 PyObject *resultobj = 0;
22148 wxDC *arg1 = (wxDC *) 0 ;
22149 wxColour *arg2 = 0 ;
22150 void *argp1 = 0 ;
22151 int res1 = 0 ;
22152 wxColour temp2 ;
22153 PyObject * obj0 = 0 ;
22154 PyObject * obj1 = 0 ;
22155 char * kwnames[] = {
22156 (char *) "self",(char *) "colour", NULL
22157 };
22158
22159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
22160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22161 if (!SWIG_IsOK(res1)) {
22162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
22163 }
22164 arg1 = reinterpret_cast< wxDC * >(argp1);
22165 {
22166 arg2 = &temp2;
22167 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22168 }
22169 {
22170 PyThreadState* __tstate = wxPyBeginAllowThreads();
22171 (arg1)->SetTextBackground((wxColour const &)*arg2);
22172 wxPyEndAllowThreads(__tstate);
22173 if (PyErr_Occurred()) SWIG_fail;
22174 }
22175 resultobj = SWIG_Py_Void();
22176 return resultobj;
22177fail:
22178 return NULL;
22179}
22180
22181
22182SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22183 PyObject *resultobj = 0;
22184 wxDC *arg1 = (wxDC *) 0 ;
22185 int result;
22186 void *argp1 = 0 ;
22187 int res1 = 0 ;
22188 PyObject *swig_obj[1] ;
22189
22190 if (!args) SWIG_fail;
22191 swig_obj[0] = args;
22192 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22193 if (!SWIG_IsOK(res1)) {
22194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22195 }
22196 arg1 = reinterpret_cast< wxDC * >(argp1);
22197 {
22198 PyThreadState* __tstate = wxPyBeginAllowThreads();
22199 result = (int)((wxDC const *)arg1)->GetMapMode();
22200 wxPyEndAllowThreads(__tstate);
22201 if (PyErr_Occurred()) SWIG_fail;
22202 }
22203 resultobj = SWIG_From_int(static_cast< int >(result));
22204 return resultobj;
22205fail:
22206 return NULL;
22207}
22208
22209
22210SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22211 PyObject *resultobj = 0;
22212 wxDC *arg1 = (wxDC *) 0 ;
22213 int arg2 ;
22214 void *argp1 = 0 ;
22215 int res1 = 0 ;
22216 int val2 ;
22217 int ecode2 = 0 ;
22218 PyObject * obj0 = 0 ;
22219 PyObject * obj1 = 0 ;
22220 char * kwnames[] = {
22221 (char *) "self",(char *) "mode", NULL
22222 };
22223
22224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22226 if (!SWIG_IsOK(res1)) {
22227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22228 }
22229 arg1 = reinterpret_cast< wxDC * >(argp1);
22230 ecode2 = SWIG_AsVal_int(obj1, &val2);
22231 if (!SWIG_IsOK(ecode2)) {
22232 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22233 }
22234 arg2 = static_cast< int >(val2);
22235 {
22236 PyThreadState* __tstate = wxPyBeginAllowThreads();
22237 (arg1)->SetMapMode(arg2);
22238 wxPyEndAllowThreads(__tstate);
22239 if (PyErr_Occurred()) SWIG_fail;
22240 }
22241 resultobj = SWIG_Py_Void();
22242 return resultobj;
22243fail:
22244 return NULL;
22245}
22246
22247
22248SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22249 PyObject *resultobj = 0;
22250 wxDC *arg1 = (wxDC *) 0 ;
22251 double *arg2 = (double *) 0 ;
22252 double *arg3 = (double *) 0 ;
22253 void *argp1 = 0 ;
22254 int res1 = 0 ;
22255 double temp2 ;
22256 int res2 = SWIG_TMPOBJ ;
22257 double temp3 ;
22258 int res3 = SWIG_TMPOBJ ;
22259 PyObject *swig_obj[1] ;
22260
22261 arg2 = &temp2;
22262 arg3 = &temp3;
22263 if (!args) SWIG_fail;
22264 swig_obj[0] = args;
22265 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22266 if (!SWIG_IsOK(res1)) {
22267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22268 }
22269 arg1 = reinterpret_cast< wxDC * >(argp1);
22270 {
22271 PyThreadState* __tstate = wxPyBeginAllowThreads();
22272 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22273 wxPyEndAllowThreads(__tstate);
22274 if (PyErr_Occurred()) SWIG_fail;
22275 }
22276 resultobj = SWIG_Py_Void();
22277 if (SWIG_IsTmpObj(res2)) {
22278 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22279 } else {
22280 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22281 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22282 }
22283 if (SWIG_IsTmpObj(res3)) {
22284 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22285 } else {
22286 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22287 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22288 }
22289 return resultobj;
22290fail:
22291 return NULL;
22292}
22293
22294
22295SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22296 PyObject *resultobj = 0;
22297 wxDC *arg1 = (wxDC *) 0 ;
22298 double arg2 ;
22299 double arg3 ;
22300 void *argp1 = 0 ;
22301 int res1 = 0 ;
22302 double val2 ;
22303 int ecode2 = 0 ;
22304 double val3 ;
22305 int ecode3 = 0 ;
22306 PyObject * obj0 = 0 ;
22307 PyObject * obj1 = 0 ;
22308 PyObject * obj2 = 0 ;
22309 char * kwnames[] = {
22310 (char *) "self",(char *) "x",(char *) "y", NULL
22311 };
22312
22313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22315 if (!SWIG_IsOK(res1)) {
22316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22317 }
22318 arg1 = reinterpret_cast< wxDC * >(argp1);
22319 ecode2 = SWIG_AsVal_double(obj1, &val2);
22320 if (!SWIG_IsOK(ecode2)) {
22321 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22322 }
22323 arg2 = static_cast< double >(val2);
22324 ecode3 = SWIG_AsVal_double(obj2, &val3);
22325 if (!SWIG_IsOK(ecode3)) {
22326 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
22327 }
22328 arg3 = static_cast< double >(val3);
22329 {
22330 PyThreadState* __tstate = wxPyBeginAllowThreads();
22331 (arg1)->SetUserScale(arg2,arg3);
22332 wxPyEndAllowThreads(__tstate);
22333 if (PyErr_Occurred()) SWIG_fail;
22334 }
22335 resultobj = SWIG_Py_Void();
22336 return resultobj;
22337fail:
22338 return NULL;
22339}
22340
22341
22342SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22343 PyObject *resultobj = 0;
22344 wxDC *arg1 = (wxDC *) 0 ;
22345 double *arg2 = (double *) 0 ;
22346 double *arg3 = (double *) 0 ;
22347 void *argp1 = 0 ;
22348 int res1 = 0 ;
22349 double temp2 ;
22350 int res2 = SWIG_TMPOBJ ;
22351 double temp3 ;
22352 int res3 = SWIG_TMPOBJ ;
22353 PyObject *swig_obj[1] ;
22354
22355 arg2 = &temp2;
22356 arg3 = &temp3;
22357 if (!args) SWIG_fail;
22358 swig_obj[0] = args;
22359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22360 if (!SWIG_IsOK(res1)) {
22361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22362 }
22363 arg1 = reinterpret_cast< wxDC * >(argp1);
22364 {
22365 PyThreadState* __tstate = wxPyBeginAllowThreads();
22366 (arg1)->GetLogicalScale(arg2,arg3);
22367 wxPyEndAllowThreads(__tstate);
22368 if (PyErr_Occurred()) SWIG_fail;
22369 }
22370 resultobj = SWIG_Py_Void();
22371 if (SWIG_IsTmpObj(res2)) {
22372 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22373 } else {
22374 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22375 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22376 }
22377 if (SWIG_IsTmpObj(res3)) {
22378 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22379 } else {
22380 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22381 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22382 }
22383 return resultobj;
22384fail:
22385 return NULL;
22386}
22387
22388
22389SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22390 PyObject *resultobj = 0;
22391 wxDC *arg1 = (wxDC *) 0 ;
22392 double arg2 ;
22393 double arg3 ;
22394 void *argp1 = 0 ;
22395 int res1 = 0 ;
22396 double val2 ;
22397 int ecode2 = 0 ;
22398 double val3 ;
22399 int ecode3 = 0 ;
22400 PyObject * obj0 = 0 ;
22401 PyObject * obj1 = 0 ;
22402 PyObject * obj2 = 0 ;
22403 char * kwnames[] = {
22404 (char *) "self",(char *) "x",(char *) "y", NULL
22405 };
22406
22407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22409 if (!SWIG_IsOK(res1)) {
22410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22411 }
22412 arg1 = reinterpret_cast< wxDC * >(argp1);
22413 ecode2 = SWIG_AsVal_double(obj1, &val2);
22414 if (!SWIG_IsOK(ecode2)) {
22415 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22416 }
22417 arg2 = static_cast< double >(val2);
22418 ecode3 = SWIG_AsVal_double(obj2, &val3);
22419 if (!SWIG_IsOK(ecode3)) {
22420 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22421 }
22422 arg3 = static_cast< double >(val3);
22423 {
22424 PyThreadState* __tstate = wxPyBeginAllowThreads();
22425 (arg1)->SetLogicalScale(arg2,arg3);
22426 wxPyEndAllowThreads(__tstate);
22427 if (PyErr_Occurred()) SWIG_fail;
22428 }
22429 resultobj = SWIG_Py_Void();
22430 return resultobj;
22431fail:
22432 return NULL;
22433}
22434
22435
22436SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22437 PyObject *resultobj = 0;
22438 wxDC *arg1 = (wxDC *) 0 ;
22439 wxPoint result;
22440 void *argp1 = 0 ;
22441 int res1 = 0 ;
22442 PyObject *swig_obj[1] ;
22443
22444 if (!args) SWIG_fail;
22445 swig_obj[0] = args;
22446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22447 if (!SWIG_IsOK(res1)) {
22448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22449 }
22450 arg1 = reinterpret_cast< wxDC * >(argp1);
22451 {
22452 PyThreadState* __tstate = wxPyBeginAllowThreads();
22453 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22454 wxPyEndAllowThreads(__tstate);
22455 if (PyErr_Occurred()) SWIG_fail;
22456 }
22457 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22458 return resultobj;
22459fail:
22460 return NULL;
22461}
22462
22463
22464SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22465 PyObject *resultobj = 0;
22466 wxDC *arg1 = (wxDC *) 0 ;
22467 int *arg2 = (int *) 0 ;
22468 int *arg3 = (int *) 0 ;
22469 void *argp1 = 0 ;
22470 int res1 = 0 ;
22471 int temp2 ;
22472 int res2 = SWIG_TMPOBJ ;
22473 int temp3 ;
22474 int res3 = SWIG_TMPOBJ ;
22475 PyObject *swig_obj[1] ;
22476
22477 arg2 = &temp2;
22478 arg3 = &temp3;
22479 if (!args) SWIG_fail;
22480 swig_obj[0] = args;
22481 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22482 if (!SWIG_IsOK(res1)) {
22483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22484 }
22485 arg1 = reinterpret_cast< wxDC * >(argp1);
22486 {
22487 PyThreadState* __tstate = wxPyBeginAllowThreads();
22488 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22489 wxPyEndAllowThreads(__tstate);
22490 if (PyErr_Occurred()) SWIG_fail;
22491 }
22492 resultobj = SWIG_Py_Void();
22493 if (SWIG_IsTmpObj(res2)) {
22494 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22495 } else {
22496 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22497 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22498 }
22499 if (SWIG_IsTmpObj(res3)) {
22500 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22501 } else {
22502 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22503 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22504 }
22505 return resultobj;
22506fail:
22507 return NULL;
22508}
22509
22510
22511SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22512 PyObject *resultobj = 0;
22513 wxDC *arg1 = (wxDC *) 0 ;
22514 int arg2 ;
22515 int arg3 ;
22516 void *argp1 = 0 ;
22517 int res1 = 0 ;
22518 int val2 ;
22519 int ecode2 = 0 ;
22520 int val3 ;
22521 int ecode3 = 0 ;
22522 PyObject * obj0 = 0 ;
22523 PyObject * obj1 = 0 ;
22524 PyObject * obj2 = 0 ;
22525 char * kwnames[] = {
22526 (char *) "self",(char *) "x",(char *) "y", NULL
22527 };
22528
22529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22531 if (!SWIG_IsOK(res1)) {
22532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22533 }
22534 arg1 = reinterpret_cast< wxDC * >(argp1);
22535 ecode2 = SWIG_AsVal_int(obj1, &val2);
22536 if (!SWIG_IsOK(ecode2)) {
22537 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22538 }
22539 arg2 = static_cast< int >(val2);
22540 ecode3 = SWIG_AsVal_int(obj2, &val3);
22541 if (!SWIG_IsOK(ecode3)) {
22542 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22543 }
22544 arg3 = static_cast< int >(val3);
22545 {
22546 PyThreadState* __tstate = wxPyBeginAllowThreads();
22547 (arg1)->SetLogicalOrigin(arg2,arg3);
22548 wxPyEndAllowThreads(__tstate);
22549 if (PyErr_Occurred()) SWIG_fail;
22550 }
22551 resultobj = SWIG_Py_Void();
22552 return resultobj;
22553fail:
22554 return NULL;
22555}
22556
22557
22558SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22559 PyObject *resultobj = 0;
22560 wxDC *arg1 = (wxDC *) 0 ;
22561 wxPoint *arg2 = 0 ;
22562 void *argp1 = 0 ;
22563 int res1 = 0 ;
22564 wxPoint temp2 ;
22565 PyObject * obj0 = 0 ;
22566 PyObject * obj1 = 0 ;
22567 char * kwnames[] = {
22568 (char *) "self",(char *) "point", NULL
22569 };
22570
22571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22573 if (!SWIG_IsOK(res1)) {
22574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22575 }
22576 arg1 = reinterpret_cast< wxDC * >(argp1);
22577 {
22578 arg2 = &temp2;
22579 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22580 }
22581 {
22582 PyThreadState* __tstate = wxPyBeginAllowThreads();
22583 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22584 wxPyEndAllowThreads(__tstate);
22585 if (PyErr_Occurred()) SWIG_fail;
22586 }
22587 resultobj = SWIG_Py_Void();
22588 return resultobj;
22589fail:
22590 return NULL;
22591}
22592
22593
22594SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22595 PyObject *resultobj = 0;
22596 wxDC *arg1 = (wxDC *) 0 ;
22597 wxPoint result;
22598 void *argp1 = 0 ;
22599 int res1 = 0 ;
22600 PyObject *swig_obj[1] ;
22601
22602 if (!args) SWIG_fail;
22603 swig_obj[0] = args;
22604 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22605 if (!SWIG_IsOK(res1)) {
22606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22607 }
22608 arg1 = reinterpret_cast< wxDC * >(argp1);
22609 {
22610 PyThreadState* __tstate = wxPyBeginAllowThreads();
22611 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22612 wxPyEndAllowThreads(__tstate);
22613 if (PyErr_Occurred()) SWIG_fail;
22614 }
22615 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22616 return resultobj;
22617fail:
22618 return NULL;
22619}
22620
22621
22622SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22623 PyObject *resultobj = 0;
22624 wxDC *arg1 = (wxDC *) 0 ;
22625 int *arg2 = (int *) 0 ;
22626 int *arg3 = (int *) 0 ;
22627 void *argp1 = 0 ;
22628 int res1 = 0 ;
22629 int temp2 ;
22630 int res2 = SWIG_TMPOBJ ;
22631 int temp3 ;
22632 int res3 = SWIG_TMPOBJ ;
22633 PyObject *swig_obj[1] ;
22634
22635 arg2 = &temp2;
22636 arg3 = &temp3;
22637 if (!args) SWIG_fail;
22638 swig_obj[0] = args;
22639 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22640 if (!SWIG_IsOK(res1)) {
22641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22642 }
22643 arg1 = reinterpret_cast< wxDC * >(argp1);
22644 {
22645 PyThreadState* __tstate = wxPyBeginAllowThreads();
22646 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22647 wxPyEndAllowThreads(__tstate);
22648 if (PyErr_Occurred()) SWIG_fail;
22649 }
22650 resultobj = SWIG_Py_Void();
22651 if (SWIG_IsTmpObj(res2)) {
22652 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22653 } else {
22654 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22655 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22656 }
22657 if (SWIG_IsTmpObj(res3)) {
22658 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22659 } else {
22660 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22661 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22662 }
22663 return resultobj;
22664fail:
22665 return NULL;
22666}
22667
22668
22669SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22670 PyObject *resultobj = 0;
22671 wxDC *arg1 = (wxDC *) 0 ;
22672 int arg2 ;
22673 int arg3 ;
22674 void *argp1 = 0 ;
22675 int res1 = 0 ;
22676 int val2 ;
22677 int ecode2 = 0 ;
22678 int val3 ;
22679 int ecode3 = 0 ;
22680 PyObject * obj0 = 0 ;
22681 PyObject * obj1 = 0 ;
22682 PyObject * obj2 = 0 ;
22683 char * kwnames[] = {
22684 (char *) "self",(char *) "x",(char *) "y", NULL
22685 };
22686
22687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22689 if (!SWIG_IsOK(res1)) {
22690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22691 }
22692 arg1 = reinterpret_cast< wxDC * >(argp1);
22693 ecode2 = SWIG_AsVal_int(obj1, &val2);
22694 if (!SWIG_IsOK(ecode2)) {
22695 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22696 }
22697 arg2 = static_cast< int >(val2);
22698 ecode3 = SWIG_AsVal_int(obj2, &val3);
22699 if (!SWIG_IsOK(ecode3)) {
22700 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22701 }
22702 arg3 = static_cast< int >(val3);
22703 {
22704 PyThreadState* __tstate = wxPyBeginAllowThreads();
22705 (arg1)->SetDeviceOrigin(arg2,arg3);
22706 wxPyEndAllowThreads(__tstate);
22707 if (PyErr_Occurred()) SWIG_fail;
22708 }
22709 resultobj = SWIG_Py_Void();
22710 return resultobj;
22711fail:
22712 return NULL;
22713}
22714
22715
22716SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22717 PyObject *resultobj = 0;
22718 wxDC *arg1 = (wxDC *) 0 ;
22719 wxPoint *arg2 = 0 ;
22720 void *argp1 = 0 ;
22721 int res1 = 0 ;
22722 wxPoint temp2 ;
22723 PyObject * obj0 = 0 ;
22724 PyObject * obj1 = 0 ;
22725 char * kwnames[] = {
22726 (char *) "self",(char *) "point", NULL
22727 };
22728
22729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22731 if (!SWIG_IsOK(res1)) {
22732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22733 }
22734 arg1 = reinterpret_cast< wxDC * >(argp1);
22735 {
22736 arg2 = &temp2;
22737 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22738 }
22739 {
22740 PyThreadState* __tstate = wxPyBeginAllowThreads();
22741 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
22742 wxPyEndAllowThreads(__tstate);
22743 if (PyErr_Occurred()) SWIG_fail;
22744 }
22745 resultobj = SWIG_Py_Void();
22746 return resultobj;
22747fail:
22748 return NULL;
22749}
22750
22751
22752SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22753 PyObject *resultobj = 0;
22754 wxDC *arg1 = (wxDC *) 0 ;
22755 bool arg2 ;
22756 bool arg3 ;
22757 void *argp1 = 0 ;
22758 int res1 = 0 ;
22759 bool val2 ;
22760 int ecode2 = 0 ;
22761 bool val3 ;
22762 int ecode3 = 0 ;
22763 PyObject * obj0 = 0 ;
22764 PyObject * obj1 = 0 ;
22765 PyObject * obj2 = 0 ;
22766 char * kwnames[] = {
22767 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
22768 };
22769
22770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22772 if (!SWIG_IsOK(res1)) {
22773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
22774 }
22775 arg1 = reinterpret_cast< wxDC * >(argp1);
22776 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22777 if (!SWIG_IsOK(ecode2)) {
22778 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
22779 }
22780 arg2 = static_cast< bool >(val2);
22781 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22782 if (!SWIG_IsOK(ecode3)) {
22783 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
22784 }
22785 arg3 = static_cast< bool >(val3);
22786 {
22787 PyThreadState* __tstate = wxPyBeginAllowThreads();
22788 (arg1)->SetAxisOrientation(arg2,arg3);
22789 wxPyEndAllowThreads(__tstate);
22790 if (PyErr_Occurred()) SWIG_fail;
22791 }
22792 resultobj = SWIG_Py_Void();
22793 return resultobj;
22794fail:
22795 return NULL;
22796}
22797
22798
22799SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22800 PyObject *resultobj = 0;
22801 wxDC *arg1 = (wxDC *) 0 ;
22802 int result;
22803 void *argp1 = 0 ;
22804 int res1 = 0 ;
22805 PyObject *swig_obj[1] ;
22806
22807 if (!args) SWIG_fail;
22808 swig_obj[0] = args;
22809 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22810 if (!SWIG_IsOK(res1)) {
22811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
22812 }
22813 arg1 = reinterpret_cast< wxDC * >(argp1);
22814 {
22815 PyThreadState* __tstate = wxPyBeginAllowThreads();
22816 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
22817 wxPyEndAllowThreads(__tstate);
22818 if (PyErr_Occurred()) SWIG_fail;
22819 }
22820 resultobj = SWIG_From_int(static_cast< int >(result));
22821 return resultobj;
22822fail:
22823 return NULL;
22824}
22825
22826
22827SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22828 PyObject *resultobj = 0;
22829 wxDC *arg1 = (wxDC *) 0 ;
22830 int arg2 ;
22831 void *argp1 = 0 ;
22832 int res1 = 0 ;
22833 int val2 ;
22834 int ecode2 = 0 ;
22835 PyObject * obj0 = 0 ;
22836 PyObject * obj1 = 0 ;
22837 char * kwnames[] = {
22838 (char *) "self",(char *) "function", NULL
22839 };
22840
22841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
22842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22843 if (!SWIG_IsOK(res1)) {
22844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
22845 }
22846 arg1 = reinterpret_cast< wxDC * >(argp1);
22847 ecode2 = SWIG_AsVal_int(obj1, &val2);
22848 if (!SWIG_IsOK(ecode2)) {
22849 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
22850 }
22851 arg2 = static_cast< int >(val2);
22852 {
22853 PyThreadState* __tstate = wxPyBeginAllowThreads();
22854 (arg1)->SetLogicalFunction(arg2);
22855 wxPyEndAllowThreads(__tstate);
22856 if (PyErr_Occurred()) SWIG_fail;
22857 }
22858 resultobj = SWIG_Py_Void();
22859 return resultobj;
22860fail:
22861 return NULL;
22862}
22863
22864
22865SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22866 PyObject *resultobj = 0;
22867 wxDC *arg1 = (wxDC *) 0 ;
22868 void *argp1 = 0 ;
22869 int res1 = 0 ;
22870 PyObject *swig_obj[1] ;
22871
22872 if (!args) SWIG_fail;
22873 swig_obj[0] = args;
22874 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22875 if (!SWIG_IsOK(res1)) {
22876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22877 }
22878 arg1 = reinterpret_cast< wxDC * >(argp1);
22879 {
22880 PyThreadState* __tstate = wxPyBeginAllowThreads();
22881 (arg1)->ComputeScaleAndOrigin();
22882 wxPyEndAllowThreads(__tstate);
22883 if (PyErr_Occurred()) SWIG_fail;
22884 }
22885 resultobj = SWIG_Py_Void();
22886 return resultobj;
22887fail:
22888 return NULL;
22889}
22890
22891
22892SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22893 PyObject *resultobj = 0;
22894 wxDC *arg1 = (wxDC *) 0 ;
22895 int arg2 ;
22896 int arg3 ;
22897 void *argp1 = 0 ;
22898 int res1 = 0 ;
22899 int val2 ;
22900 int ecode2 = 0 ;
22901 int val3 ;
22902 int ecode3 = 0 ;
22903 PyObject * obj0 = 0 ;
22904 PyObject * obj1 = 0 ;
22905 PyObject * obj2 = 0 ;
22906 char * kwnames[] = {
22907 (char *) "self",(char *) "x",(char *) "y", NULL
22908 };
22909
22910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22912 if (!SWIG_IsOK(res1)) {
22913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22914 }
22915 arg1 = reinterpret_cast< wxDC * >(argp1);
22916 ecode2 = SWIG_AsVal_int(obj1, &val2);
22917 if (!SWIG_IsOK(ecode2)) {
22918 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
22919 }
22920 arg2 = static_cast< int >(val2);
22921 ecode3 = SWIG_AsVal_int(obj2, &val3);
22922 if (!SWIG_IsOK(ecode3)) {
22923 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
22924 }
22925 arg3 = static_cast< int >(val3);
22926 {
22927 PyThreadState* __tstate = wxPyBeginAllowThreads();
22928 (arg1)->CalcBoundingBox(arg2,arg3);
22929 wxPyEndAllowThreads(__tstate);
22930 if (PyErr_Occurred()) SWIG_fail;
22931 }
22932 resultobj = SWIG_Py_Void();
22933 return resultobj;
22934fail:
22935 return NULL;
22936}
22937
22938
22939SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22940 PyObject *resultobj = 0;
22941 wxDC *arg1 = (wxDC *) 0 ;
22942 wxPoint *arg2 = 0 ;
22943 void *argp1 = 0 ;
22944 int res1 = 0 ;
22945 wxPoint temp2 ;
22946 PyObject * obj0 = 0 ;
22947 PyObject * obj1 = 0 ;
22948 char * kwnames[] = {
22949 (char *) "self",(char *) "point", NULL
22950 };
22951
22952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22954 if (!SWIG_IsOK(res1)) {
22955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22956 }
22957 arg1 = reinterpret_cast< wxDC * >(argp1);
22958 {
22959 arg2 = &temp2;
22960 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22961 }
22962 {
22963 PyThreadState* __tstate = wxPyBeginAllowThreads();
22964 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
22965 wxPyEndAllowThreads(__tstate);
22966 if (PyErr_Occurred()) SWIG_fail;
22967 }
22968 resultobj = SWIG_Py_Void();
22969 return resultobj;
22970fail:
22971 return NULL;
22972}
22973
22974
22975SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22976 PyObject *resultobj = 0;
22977 wxDC *arg1 = (wxDC *) 0 ;
22978 void *argp1 = 0 ;
22979 int res1 = 0 ;
22980 PyObject *swig_obj[1] ;
22981
22982 if (!args) SWIG_fail;
22983 swig_obj[0] = args;
22984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22985 if (!SWIG_IsOK(res1)) {
22986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22987 }
22988 arg1 = reinterpret_cast< wxDC * >(argp1);
22989 {
22990 PyThreadState* __tstate = wxPyBeginAllowThreads();
22991 (arg1)->ResetBoundingBox();
22992 wxPyEndAllowThreads(__tstate);
22993 if (PyErr_Occurred()) SWIG_fail;
22994 }
22995 resultobj = SWIG_Py_Void();
22996 return resultobj;
22997fail:
22998 return NULL;
22999}
23000
23001
23002SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23003 PyObject *resultobj = 0;
23004 wxDC *arg1 = (wxDC *) 0 ;
23005 int result;
23006 void *argp1 = 0 ;
23007 int res1 = 0 ;
23008 PyObject *swig_obj[1] ;
23009
23010 if (!args) SWIG_fail;
23011 swig_obj[0] = args;
23012 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23013 if (!SWIG_IsOK(res1)) {
23014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
23015 }
23016 arg1 = reinterpret_cast< wxDC * >(argp1);
23017 {
23018 PyThreadState* __tstate = wxPyBeginAllowThreads();
23019 result = (int)((wxDC const *)arg1)->MinX();
23020 wxPyEndAllowThreads(__tstate);
23021 if (PyErr_Occurred()) SWIG_fail;
23022 }
23023 resultobj = SWIG_From_int(static_cast< int >(result));
23024 return resultobj;
23025fail:
23026 return NULL;
23027}
23028
23029
23030SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23031 PyObject *resultobj = 0;
23032 wxDC *arg1 = (wxDC *) 0 ;
23033 int result;
23034 void *argp1 = 0 ;
23035 int res1 = 0 ;
23036 PyObject *swig_obj[1] ;
23037
23038 if (!args) SWIG_fail;
23039 swig_obj[0] = args;
23040 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23041 if (!SWIG_IsOK(res1)) {
23042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
23043 }
23044 arg1 = reinterpret_cast< wxDC * >(argp1);
23045 {
23046 PyThreadState* __tstate = wxPyBeginAllowThreads();
23047 result = (int)((wxDC const *)arg1)->MaxX();
23048 wxPyEndAllowThreads(__tstate);
23049 if (PyErr_Occurred()) SWIG_fail;
23050 }
23051 resultobj = SWIG_From_int(static_cast< int >(result));
23052 return resultobj;
23053fail:
23054 return NULL;
23055}
23056
23057
23058SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23059 PyObject *resultobj = 0;
23060 wxDC *arg1 = (wxDC *) 0 ;
23061 int result;
23062 void *argp1 = 0 ;
23063 int res1 = 0 ;
23064 PyObject *swig_obj[1] ;
23065
23066 if (!args) SWIG_fail;
23067 swig_obj[0] = args;
23068 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23069 if (!SWIG_IsOK(res1)) {
23070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
23071 }
23072 arg1 = reinterpret_cast< wxDC * >(argp1);
23073 {
23074 PyThreadState* __tstate = wxPyBeginAllowThreads();
23075 result = (int)((wxDC const *)arg1)->MinY();
23076 wxPyEndAllowThreads(__tstate);
23077 if (PyErr_Occurred()) SWIG_fail;
23078 }
23079 resultobj = SWIG_From_int(static_cast< int >(result));
23080 return resultobj;
23081fail:
23082 return NULL;
23083}
23084
23085
23086SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23087 PyObject *resultobj = 0;
23088 wxDC *arg1 = (wxDC *) 0 ;
23089 int result;
23090 void *argp1 = 0 ;
23091 int res1 = 0 ;
23092 PyObject *swig_obj[1] ;
23093
23094 if (!args) SWIG_fail;
23095 swig_obj[0] = args;
23096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23097 if (!SWIG_IsOK(res1)) {
23098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
23099 }
23100 arg1 = reinterpret_cast< wxDC * >(argp1);
23101 {
23102 PyThreadState* __tstate = wxPyBeginAllowThreads();
23103 result = (int)((wxDC const *)arg1)->MaxY();
23104 wxPyEndAllowThreads(__tstate);
23105 if (PyErr_Occurred()) SWIG_fail;
23106 }
23107 resultobj = SWIG_From_int(static_cast< int >(result));
23108 return resultobj;
23109fail:
23110 return NULL;
23111}
23112
23113
23114SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23115 PyObject *resultobj = 0;
23116 wxDC *arg1 = (wxDC *) 0 ;
23117 int *arg2 = (int *) 0 ;
23118 int *arg3 = (int *) 0 ;
23119 int *arg4 = (int *) 0 ;
23120 int *arg5 = (int *) 0 ;
23121 void *argp1 = 0 ;
23122 int res1 = 0 ;
23123 int temp2 ;
23124 int res2 = SWIG_TMPOBJ ;
23125 int temp3 ;
23126 int res3 = SWIG_TMPOBJ ;
23127 int temp4 ;
23128 int res4 = SWIG_TMPOBJ ;
23129 int temp5 ;
23130 int res5 = SWIG_TMPOBJ ;
23131 PyObject *swig_obj[1] ;
23132
23133 arg2 = &temp2;
23134 arg3 = &temp3;
23135 arg4 = &temp4;
23136 arg5 = &temp5;
23137 if (!args) SWIG_fail;
23138 swig_obj[0] = args;
23139 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23140 if (!SWIG_IsOK(res1)) {
23141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23142 }
23143 arg1 = reinterpret_cast< wxDC * >(argp1);
23144 {
23145 PyThreadState* __tstate = wxPyBeginAllowThreads();
23146 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
23147 wxPyEndAllowThreads(__tstate);
23148 if (PyErr_Occurred()) SWIG_fail;
23149 }
23150 resultobj = SWIG_Py_Void();
23151 if (SWIG_IsTmpObj(res2)) {
23152 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23153 } else {
23154 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23155 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23156 }
23157 if (SWIG_IsTmpObj(res3)) {
23158 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23159 } else {
23160 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23161 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23162 }
23163 if (SWIG_IsTmpObj(res4)) {
23164 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
23165 } else {
23166 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23167 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
23168 }
23169 if (SWIG_IsTmpObj(res5)) {
23170 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
23171 } else {
23172 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23173 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
23174 }
23175 return resultobj;
23176fail:
23177 return NULL;
23178}
23179
23180
b39fe951
RD
23181SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23182 PyObject *resultobj = 0;
23183 wxDC *arg1 = (wxDC *) 0 ;
23184 wxLayoutDirection result;
23185 void *argp1 = 0 ;
23186 int res1 = 0 ;
23187 PyObject *swig_obj[1] ;
23188
23189 if (!args) SWIG_fail;
23190 swig_obj[0] = args;
23191 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23192 if (!SWIG_IsOK(res1)) {
23193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
23194 }
23195 arg1 = reinterpret_cast< wxDC * >(argp1);
23196 {
23197 PyThreadState* __tstate = wxPyBeginAllowThreads();
23198 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
23199 wxPyEndAllowThreads(__tstate);
23200 if (PyErr_Occurred()) SWIG_fail;
23201 }
23202 resultobj = SWIG_From_int(static_cast< int >(result));
23203 return resultobj;
23204fail:
23205 return NULL;
23206}
23207
23208
23209SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23210 PyObject *resultobj = 0;
23211 wxDC *arg1 = (wxDC *) 0 ;
23212 wxLayoutDirection arg2 ;
23213 void *argp1 = 0 ;
23214 int res1 = 0 ;
23215 int val2 ;
23216 int ecode2 = 0 ;
23217 PyObject * obj0 = 0 ;
23218 PyObject * obj1 = 0 ;
23219 char * kwnames[] = {
23220 (char *) "self",(char *) "dir", NULL
23221 };
23222
23223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
23224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23225 if (!SWIG_IsOK(res1)) {
23226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
23227 }
23228 arg1 = reinterpret_cast< wxDC * >(argp1);
23229 ecode2 = SWIG_AsVal_int(obj1, &val2);
23230 if (!SWIG_IsOK(ecode2)) {
23231 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
23232 }
23233 arg2 = static_cast< wxLayoutDirection >(val2);
23234 {
23235 PyThreadState* __tstate = wxPyBeginAllowThreads();
23236 (arg1)->SetLayoutDirection(arg2);
23237 wxPyEndAllowThreads(__tstate);
23238 if (PyErr_Occurred()) SWIG_fail;
23239 }
23240 resultobj = SWIG_Py_Void();
23241 return resultobj;
23242fail:
23243 return NULL;
23244}
23245
23246
1bd55598
RD
23247SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23248 PyObject *resultobj = 0;
23249 wxDC *arg1 = (wxDC *) 0 ;
23250 PyObject *arg2 = (PyObject *) 0 ;
23251 PyObject *arg3 = (PyObject *) 0 ;
23252 PyObject *arg4 = (PyObject *) 0 ;
23253 PyObject *result = 0 ;
23254 void *argp1 = 0 ;
23255 int res1 = 0 ;
23256 PyObject * obj0 = 0 ;
23257 PyObject * obj1 = 0 ;
23258 PyObject * obj2 = 0 ;
23259 PyObject * obj3 = 0 ;
23260 char * kwnames[] = {
23261 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23262 };
23263
23264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23266 if (!SWIG_IsOK(res1)) {
23267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23268 }
23269 arg1 = reinterpret_cast< wxDC * >(argp1);
23270 arg2 = obj1;
23271 arg3 = obj2;
23272 arg4 = obj3;
23273 {
23274 PyThreadState* __tstate = wxPyBeginAllowThreads();
23275 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23276 wxPyEndAllowThreads(__tstate);
23277 if (PyErr_Occurred()) SWIG_fail;
23278 }
23279 resultobj = result;
23280 return resultobj;
23281fail:
23282 return NULL;
23283}
23284
23285
23286SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23287 PyObject *resultobj = 0;
23288 wxDC *arg1 = (wxDC *) 0 ;
23289 PyObject *arg2 = (PyObject *) 0 ;
23290 PyObject *arg3 = (PyObject *) 0 ;
23291 PyObject *arg4 = (PyObject *) 0 ;
23292 PyObject *result = 0 ;
23293 void *argp1 = 0 ;
23294 int res1 = 0 ;
23295 PyObject * obj0 = 0 ;
23296 PyObject * obj1 = 0 ;
23297 PyObject * obj2 = 0 ;
23298 PyObject * obj3 = 0 ;
23299 char * kwnames[] = {
23300 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23301 };
23302
23303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23305 if (!SWIG_IsOK(res1)) {
23306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
23307 }
23308 arg1 = reinterpret_cast< wxDC * >(argp1);
23309 arg2 = obj1;
23310 arg3 = obj2;
23311 arg4 = obj3;
23312 {
23313 PyThreadState* __tstate = wxPyBeginAllowThreads();
23314 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
23315 wxPyEndAllowThreads(__tstate);
23316 if (PyErr_Occurred()) SWIG_fail;
23317 }
23318 resultobj = result;
23319 return resultobj;
23320fail:
23321 return NULL;
23322}
23323
23324
23325SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23326 PyObject *resultobj = 0;
23327 wxDC *arg1 = (wxDC *) 0 ;
23328 PyObject *arg2 = (PyObject *) 0 ;
23329 PyObject *arg3 = (PyObject *) 0 ;
23330 PyObject *arg4 = (PyObject *) 0 ;
23331 PyObject *result = 0 ;
23332 void *argp1 = 0 ;
23333 int res1 = 0 ;
23334 PyObject * obj0 = 0 ;
23335 PyObject * obj1 = 0 ;
23336 PyObject * obj2 = 0 ;
23337 PyObject * obj3 = 0 ;
23338 char * kwnames[] = {
23339 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23340 };
23341
23342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23344 if (!SWIG_IsOK(res1)) {
23345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
23346 }
23347 arg1 = reinterpret_cast< wxDC * >(argp1);
23348 arg2 = obj1;
23349 arg3 = obj2;
23350 arg4 = obj3;
23351 {
23352 PyThreadState* __tstate = wxPyBeginAllowThreads();
23353 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
23354 wxPyEndAllowThreads(__tstate);
23355 if (PyErr_Occurred()) SWIG_fail;
23356 }
23357 resultobj = result;
23358 return resultobj;
23359fail:
23360 return NULL;
23361}
23362
23363
23364SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23365 PyObject *resultobj = 0;
23366 wxDC *arg1 = (wxDC *) 0 ;
23367 PyObject *arg2 = (PyObject *) 0 ;
23368 PyObject *arg3 = (PyObject *) 0 ;
23369 PyObject *arg4 = (PyObject *) 0 ;
23370 PyObject *result = 0 ;
23371 void *argp1 = 0 ;
23372 int res1 = 0 ;
23373 PyObject * obj0 = 0 ;
23374 PyObject * obj1 = 0 ;
23375 PyObject * obj2 = 0 ;
23376 PyObject * obj3 = 0 ;
23377 char * kwnames[] = {
23378 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23379 };
23380
23381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23383 if (!SWIG_IsOK(res1)) {
23384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
23385 }
23386 arg1 = reinterpret_cast< wxDC * >(argp1);
23387 arg2 = obj1;
23388 arg3 = obj2;
23389 arg4 = obj3;
23390 {
23391 PyThreadState* __tstate = wxPyBeginAllowThreads();
23392 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
23393 wxPyEndAllowThreads(__tstate);
23394 if (PyErr_Occurred()) SWIG_fail;
23395 }
23396 resultobj = result;
23397 return resultobj;
23398fail:
23399 return NULL;
23400}
23401
23402
23403SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23404 PyObject *resultobj = 0;
23405 wxDC *arg1 = (wxDC *) 0 ;
23406 PyObject *arg2 = (PyObject *) 0 ;
23407 PyObject *arg3 = (PyObject *) 0 ;
23408 PyObject *arg4 = (PyObject *) 0 ;
23409 PyObject *result = 0 ;
23410 void *argp1 = 0 ;
23411 int res1 = 0 ;
23412 PyObject * obj0 = 0 ;
23413 PyObject * obj1 = 0 ;
23414 PyObject * obj2 = 0 ;
23415 PyObject * obj3 = 0 ;
23416 char * kwnames[] = {
23417 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23418 };
23419
23420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23422 if (!SWIG_IsOK(res1)) {
23423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23424 }
23425 arg1 = reinterpret_cast< wxDC * >(argp1);
23426 arg2 = obj1;
23427 arg3 = obj2;
23428 arg4 = obj3;
23429 {
23430 PyThreadState* __tstate = wxPyBeginAllowThreads();
23431 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23432 wxPyEndAllowThreads(__tstate);
23433 if (PyErr_Occurred()) SWIG_fail;
23434 }
23435 resultobj = result;
23436 return resultobj;
23437fail:
23438 return NULL;
23439}
23440
23441
23442SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23443 PyObject *resultobj = 0;
23444 wxDC *arg1 = (wxDC *) 0 ;
23445 PyObject *arg2 = (PyObject *) 0 ;
23446 PyObject *arg3 = (PyObject *) 0 ;
23447 PyObject *arg4 = (PyObject *) 0 ;
23448 PyObject *arg5 = (PyObject *) 0 ;
23449 PyObject *result = 0 ;
23450 void *argp1 = 0 ;
23451 int res1 = 0 ;
23452 PyObject * obj0 = 0 ;
23453 PyObject * obj1 = 0 ;
23454 PyObject * obj2 = 0 ;
23455 PyObject * obj3 = 0 ;
23456 PyObject * obj4 = 0 ;
23457 char * kwnames[] = {
23458 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23459 };
23460
23461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23463 if (!SWIG_IsOK(res1)) {
23464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23465 }
23466 arg1 = reinterpret_cast< wxDC * >(argp1);
23467 arg2 = obj1;
23468 arg3 = obj2;
23469 arg4 = obj3;
23470 arg5 = obj4;
23471 {
23472 PyThreadState* __tstate = wxPyBeginAllowThreads();
23473 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23474 wxPyEndAllowThreads(__tstate);
23475 if (PyErr_Occurred()) SWIG_fail;
23476 }
23477 resultobj = result;
23478 return resultobj;
23479fail:
23480 return NULL;
23481}
23482
23483
23484SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23485 PyObject *obj;
23486 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23487 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23488 return SWIG_Py_Void();
23489}
23490
70d7cb34
RD
23491SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23492 PyObject *resultobj = 0;
23493 wxDC *arg1 = 0 ;
23494 wxColour *arg2 = 0 ;
23495 wxDCTextColourChanger *result = 0 ;
23496 void *argp1 = 0 ;
23497 int res1 = 0 ;
23498 wxColour temp2 ;
23499 PyObject * obj0 = 0 ;
23500 PyObject * obj1 = 0 ;
23501 char * kwnames[] = {
23502 (char *) "dc",(char *) "col", NULL
23503 };
23504
23505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23506 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23507 if (!SWIG_IsOK(res1)) {
23508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23509 }
23510 if (!argp1) {
23511 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23512 }
23513 arg1 = reinterpret_cast< wxDC * >(argp1);
23514 {
23515 arg2 = &temp2;
23516 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23517 }
23518 {
23519 PyThreadState* __tstate = wxPyBeginAllowThreads();
23520 result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2);
23521 wxPyEndAllowThreads(__tstate);
23522 if (PyErr_Occurred()) SWIG_fail;
23523 }
23524 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 );
23525 return resultobj;
23526fail:
23527 return NULL;
23528}
23529
23530
23531SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23532 PyObject *resultobj = 0;
23533 wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ;
23534 void *argp1 = 0 ;
23535 int res1 = 0 ;
23536 PyObject *swig_obj[1] ;
23537
23538 if (!args) SWIG_fail;
23539 swig_obj[0] = args;
23540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 );
23541 if (!SWIG_IsOK(res1)) {
23542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'");
23543 }
23544 arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1);
23545 {
23546 PyThreadState* __tstate = wxPyBeginAllowThreads();
23547 delete arg1;
23548
23549 wxPyEndAllowThreads(__tstate);
23550 if (PyErr_Occurred()) SWIG_fail;
23551 }
23552 resultobj = SWIG_Py_Void();
23553 return resultobj;
23554fail:
23555 return NULL;
23556}
23557
23558
23559SWIGINTERN PyObject *DCTextColourChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23560 PyObject *obj;
23561 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23562 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCTextColourChanger, SWIG_NewClientData(obj));
23563 return SWIG_Py_Void();
23564}
23565
23566SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23567 return SWIG_Python_InitShadowInstance(args);
23568}
23569
23570SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23571 PyObject *resultobj = 0;
23572 wxDC *arg1 = 0 ;
23573 wxPen *arg2 = 0 ;
23574 wxDCPenChanger *result = 0 ;
23575 void *argp1 = 0 ;
23576 int res1 = 0 ;
23577 void *argp2 = 0 ;
23578 int res2 = 0 ;
23579 PyObject * obj0 = 0 ;
23580 PyObject * obj1 = 0 ;
23581 char * kwnames[] = {
23582 (char *) "dc",(char *) "pen", NULL
23583 };
23584
23585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23586 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23587 if (!SWIG_IsOK(res1)) {
23588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23589 }
23590 if (!argp1) {
23591 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23592 }
23593 arg1 = reinterpret_cast< wxDC * >(argp1);
23594 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
23595 if (!SWIG_IsOK(res2)) {
23596 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
23597 }
23598 if (!argp2) {
23599 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
23600 }
23601 arg2 = reinterpret_cast< wxPen * >(argp2);
23602 {
23603 PyThreadState* __tstate = wxPyBeginAllowThreads();
23604 result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2);
23605 wxPyEndAllowThreads(__tstate);
23606 if (PyErr_Occurred()) SWIG_fail;
23607 }
23608 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 );
23609 return resultobj;
23610fail:
23611 return NULL;
23612}
23613
23614
23615SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23616 PyObject *resultobj = 0;
23617 wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ;
23618 void *argp1 = 0 ;
23619 int res1 = 0 ;
23620 PyObject *swig_obj[1] ;
23621
23622 if (!args) SWIG_fail;
23623 swig_obj[0] = args;
23624 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 );
23625 if (!SWIG_IsOK(res1)) {
23626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'");
23627 }
23628 arg1 = reinterpret_cast< wxDCPenChanger * >(argp1);
23629 {
23630 PyThreadState* __tstate = wxPyBeginAllowThreads();
23631 delete arg1;
23632
23633 wxPyEndAllowThreads(__tstate);
23634 if (PyErr_Occurred()) SWIG_fail;
23635 }
23636 resultobj = SWIG_Py_Void();
23637 return resultobj;
23638fail:
23639 return NULL;
23640}
23641
23642
23643SWIGINTERN PyObject *DCPenChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23644 PyObject *obj;
23645 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23646 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCPenChanger, SWIG_NewClientData(obj));
23647 return SWIG_Py_Void();
23648}
23649
23650SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23651 return SWIG_Python_InitShadowInstance(args);
23652}
23653
23654SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23655 PyObject *resultobj = 0;
23656 wxDC *arg1 = 0 ;
23657 wxBrush *arg2 = 0 ;
23658 wxDCBrushChanger *result = 0 ;
23659 void *argp1 = 0 ;
23660 int res1 = 0 ;
23661 void *argp2 = 0 ;
23662 int res2 = 0 ;
23663 PyObject * obj0 = 0 ;
23664 PyObject * obj1 = 0 ;
23665 char * kwnames[] = {
23666 (char *) "dc",(char *) "brush", NULL
23667 };
23668
23669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23670 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23671 if (!SWIG_IsOK(res1)) {
23672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23673 }
23674 if (!argp1) {
23675 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23676 }
23677 arg1 = reinterpret_cast< wxDC * >(argp1);
23678 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
23679 if (!SWIG_IsOK(res2)) {
23680 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
23681 }
23682 if (!argp2) {
23683 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
23684 }
23685 arg2 = reinterpret_cast< wxBrush * >(argp2);
23686 {
23687 PyThreadState* __tstate = wxPyBeginAllowThreads();
23688 result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2);
23689 wxPyEndAllowThreads(__tstate);
23690 if (PyErr_Occurred()) SWIG_fail;
23691 }
23692 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 );
23693 return resultobj;
23694fail:
23695 return NULL;
23696}
23697
23698
23699SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23700 PyObject *resultobj = 0;
23701 wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ;
23702 void *argp1 = 0 ;
23703 int res1 = 0 ;
23704 PyObject *swig_obj[1] ;
23705
23706 if (!args) SWIG_fail;
23707 swig_obj[0] = args;
23708 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 );
23709 if (!SWIG_IsOK(res1)) {
23710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'");
23711 }
23712 arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1);
23713 {
23714 PyThreadState* __tstate = wxPyBeginAllowThreads();
23715 delete arg1;
23716
23717 wxPyEndAllowThreads(__tstate);
23718 if (PyErr_Occurred()) SWIG_fail;
23719 }
23720 resultobj = SWIG_Py_Void();
23721 return resultobj;
23722fail:
23723 return NULL;
23724}
23725
23726
23727SWIGINTERN PyObject *DCBrushChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23728 PyObject *obj;
23729 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23730 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCBrushChanger, SWIG_NewClientData(obj));
23731 return SWIG_Py_Void();
23732}
23733
23734SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23735 return SWIG_Python_InitShadowInstance(args);
23736}
23737
23738SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23739 PyObject *resultobj = 0;
23740 wxDC *arg1 = 0 ;
23741 wxRegion *arg2 = 0 ;
23742 wxDCClipper *result = 0 ;
23743 void *argp1 = 0 ;
23744 int res1 = 0 ;
23745 void *argp2 = 0 ;
23746 int res2 = 0 ;
23747
23748 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23749 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23750 if (!SWIG_IsOK(res1)) {
23751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23752 }
23753 if (!argp1) {
23754 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23755 }
23756 arg1 = reinterpret_cast< wxDC * >(argp1);
23757 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
23758 if (!SWIG_IsOK(res2)) {
23759 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
23760 }
23761 if (!argp2) {
23762 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
23763 }
23764 arg2 = reinterpret_cast< wxRegion * >(argp2);
23765 {
23766 PyThreadState* __tstate = wxPyBeginAllowThreads();
23767 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2);
23768 wxPyEndAllowThreads(__tstate);
23769 if (PyErr_Occurred()) SWIG_fail;
23770 }
23771 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23772 return resultobj;
23773fail:
23774 return NULL;
23775}
23776
23777
23778SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23779 PyObject *resultobj = 0;
23780 wxDC *arg1 = 0 ;
23781 wxRect *arg2 = 0 ;
23782 wxDCClipper *result = 0 ;
23783 void *argp1 = 0 ;
23784 int res1 = 0 ;
23785 wxRect temp2 ;
23786
23787 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23788 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23789 if (!SWIG_IsOK(res1)) {
23790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23791 }
23792 if (!argp1) {
23793 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23794 }
23795 arg1 = reinterpret_cast< wxDC * >(argp1);
23796 {
23797 arg2 = &temp2;
23798 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
23799 }
23800 {
23801 PyThreadState* __tstate = wxPyBeginAllowThreads();
23802 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2);
23803 wxPyEndAllowThreads(__tstate);
23804 if (PyErr_Occurred()) SWIG_fail;
23805 }
23806 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23807 return resultobj;
23808fail:
23809 return NULL;
23810}
23811
23812
23813SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23814 PyObject *resultobj = 0;
23815 wxDC *arg1 = 0 ;
23816 int arg2 ;
23817 int arg3 ;
23818 int arg4 ;
23819 int arg5 ;
23820 wxDCClipper *result = 0 ;
23821 void *argp1 = 0 ;
23822 int res1 = 0 ;
23823 int val2 ;
23824 int ecode2 = 0 ;
23825 int val3 ;
23826 int ecode3 = 0 ;
23827 int val4 ;
23828 int ecode4 = 0 ;
23829 int val5 ;
23830 int ecode5 = 0 ;
23831
23832 if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
23833 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23834 if (!SWIG_IsOK(res1)) {
23835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23836 }
23837 if (!argp1) {
23838 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23839 }
23840 arg1 = reinterpret_cast< wxDC * >(argp1);
23841 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
23842 if (!SWIG_IsOK(ecode2)) {
23843 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'");
23844 }
23845 arg2 = static_cast< int >(val2);
23846 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23847 if (!SWIG_IsOK(ecode3)) {
23848 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'");
23849 }
23850 arg3 = static_cast< int >(val3);
23851 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
23852 if (!SWIG_IsOK(ecode4)) {
23853 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'");
23854 }
23855 arg4 = static_cast< int >(val4);
23856 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
23857 if (!SWIG_IsOK(ecode5)) {
23858 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'");
23859 }
23860 arg5 = static_cast< int >(val5);
23861 {
23862 PyThreadState* __tstate = wxPyBeginAllowThreads();
23863 result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5);
23864 wxPyEndAllowThreads(__tstate);
23865 if (PyErr_Occurred()) SWIG_fail;
23866 }
23867 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23868 return resultobj;
23869fail:
23870 return NULL;
23871}
23872
23873
23874SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) {
23875 int argc;
23876 PyObject *argv[6];
23877
23878 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail;
23879 --argc;
23880 if (argc == 2) {
23881 int _v = 0;
23882 {
23883 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0);
23884 _v = SWIG_CheckState(res);
23885 }
23886 if (!_v) goto check_1;
23887 return _wrap_new_DCClipper__SWIG_0(self, argc, argv);
23888 }
23889check_1:
23890
23891 if (argc == 2) {
23892 return _wrap_new_DCClipper__SWIG_1(self, argc, argv);
23893 }
23894 if (argc == 5) {
23895 return _wrap_new_DCClipper__SWIG_2(self, argc, argv);
23896 }
23897
23898fail:
23899 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'");
23900 return NULL;
23901}
23902
23903
23904SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23905 PyObject *resultobj = 0;
23906 wxDCClipper *arg1 = (wxDCClipper *) 0 ;
23907 void *argp1 = 0 ;
23908 int res1 = 0 ;
23909 PyObject *swig_obj[1] ;
23910
23911 if (!args) SWIG_fail;
23912 swig_obj[0] = args;
23913 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 );
23914 if (!SWIG_IsOK(res1)) {
23915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'");
23916 }
23917 arg1 = reinterpret_cast< wxDCClipper * >(argp1);
23918 {
23919 PyThreadState* __tstate = wxPyBeginAllowThreads();
23920 delete arg1;
23921
23922 wxPyEndAllowThreads(__tstate);
23923 if (PyErr_Occurred()) SWIG_fail;
23924 }
23925 resultobj = SWIG_Py_Void();
23926 return resultobj;
23927fail:
23928 return NULL;
23929}
23930
23931
23932SWIGINTERN PyObject *DCClipper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23933 PyObject *obj;
23934 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23935 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCClipper, SWIG_NewClientData(obj));
23936 return SWIG_Py_Void();
23937}
23938
23939SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23940 return SWIG_Python_InitShadowInstance(args);
23941}
23942
24f6c4e8
RD
23943SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23944 PyObject *resultobj = 0;
23945 wxScreenDC *result = 0 ;
23946
23947 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
23948 {
23949 if (!wxPyCheckForApp()) SWIG_fail;
23950 PyThreadState* __tstate = wxPyBeginAllowThreads();
23951 result = (wxScreenDC *)new wxScreenDC();
23952 wxPyEndAllowThreads(__tstate);
23953 if (PyErr_Occurred()) SWIG_fail;
23954 }
23955 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
23956 return resultobj;
23957fail:
23958 return NULL;
23959}
23960
23961
23962SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23963 PyObject *resultobj = 0;
23964 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23965 wxWindow *arg2 = (wxWindow *) 0 ;
23966 bool result;
23967 void *argp1 = 0 ;
23968 int res1 = 0 ;
23969 void *argp2 = 0 ;
23970 int res2 = 0 ;
23971 PyObject * obj0 = 0 ;
23972 PyObject * obj1 = 0 ;
23973 char * kwnames[] = {
23974 (char *) "self",(char *) "window", NULL
23975 };
23976
23977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
23978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23979 if (!SWIG_IsOK(res1)) {
23980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23981 }
23982 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23983 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
23984 if (!SWIG_IsOK(res2)) {
23985 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
23986 }
23987 arg2 = reinterpret_cast< wxWindow * >(argp2);
23988 {
23989 PyThreadState* __tstate = wxPyBeginAllowThreads();
23990 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23991 wxPyEndAllowThreads(__tstate);
23992 if (PyErr_Occurred()) SWIG_fail;
23993 }
23994 {
23995 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23996 }
23997 return resultobj;
23998fail:
23999 return NULL;
24000}
24001
24002
24003SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24004 PyObject *resultobj = 0;
24005 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24006 wxRect *arg2 = (wxRect *) NULL ;
24007 bool result;
24008 void *argp1 = 0 ;
24009 int res1 = 0 ;
24010 void *argp2 = 0 ;
24011 int res2 = 0 ;
24012 PyObject * obj0 = 0 ;
24013 PyObject * obj1 = 0 ;
24014 char * kwnames[] = {
24015 (char *) "self",(char *) "rect", NULL
24016 };
24017
24018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
24019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24020 if (!SWIG_IsOK(res1)) {
24021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24022 }
24023 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24024 if (obj1) {
24025 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
24026 if (!SWIG_IsOK(res2)) {
24027 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
24028 }
24029 arg2 = reinterpret_cast< wxRect * >(argp2);
24030 }
24031 {
24032 PyThreadState* __tstate = wxPyBeginAllowThreads();
24033 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24034 wxPyEndAllowThreads(__tstate);
24035 if (PyErr_Occurred()) SWIG_fail;
24036 }
24037 {
24038 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24039 }
24040 return resultobj;
24041fail:
24042 return NULL;
24043}
24044
24045
24046SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24047 PyObject *resultobj = 0;
24048 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24049 bool result;
24050 void *argp1 = 0 ;
24051 int res1 = 0 ;
24052 PyObject *swig_obj[1] ;
24053
24054 if (!args) SWIG_fail;
24055 swig_obj[0] = args;
24056 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24057 if (!SWIG_IsOK(res1)) {
24058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24059 }
24060 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24061 {
24062 PyThreadState* __tstate = wxPyBeginAllowThreads();
24063 result = (bool)(arg1)->EndDrawingOnTop();
24064 wxPyEndAllowThreads(__tstate);
24065 if (PyErr_Occurred()) SWIG_fail;
24066 }
24067 {
24068 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24069 }
24070 return resultobj;
24071fail:
24072 return NULL;
24073}
24074
24075
24076SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24077 PyObject *obj;
24078 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24079 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
24080 return SWIG_Py_Void();
24081}
24082
24083SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24084 return SWIG_Python_InitShadowInstance(args);
24085}
24086
24087SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24088 PyObject *resultobj = 0;
24089 wxWindow *arg1 = (wxWindow *) 0 ;
24090 wxWindowDC *result = 0 ;
24091 void *argp1 = 0 ;
24092 int res1 = 0 ;
24093 PyObject * obj0 = 0 ;
24094 char * kwnames[] = {
24095 (char *) "win", NULL
24096 };
24097
24098 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24099 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24100 if (!SWIG_IsOK(res1)) {
24101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24102 }
24103 arg1 = reinterpret_cast< wxWindow * >(argp1);
24104 {
24105 if (!wxPyCheckForApp()) SWIG_fail;
24106 PyThreadState* __tstate = wxPyBeginAllowThreads();
24107 result = (wxWindowDC *)new wxWindowDC(arg1);
24108 wxPyEndAllowThreads(__tstate);
24109 if (PyErr_Occurred()) SWIG_fail;
24110 }
24111 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24112 return resultobj;
24113fail:
24114 return NULL;
24115}
24116
24117
24118SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24119 PyObject *obj;
24120 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24121 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24122 return SWIG_Py_Void();
24123}
24124
24125SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24126 return SWIG_Python_InitShadowInstance(args);
24127}
24128
24129SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24130 PyObject *resultobj = 0;
24131 wxWindow *arg1 = (wxWindow *) 0 ;
24132 wxClientDC *result = 0 ;
24133 void *argp1 = 0 ;
24134 int res1 = 0 ;
24135 PyObject * obj0 = 0 ;
24136 char * kwnames[] = {
24137 (char *) "win", NULL
24138 };
24139
24140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24142 if (!SWIG_IsOK(res1)) {
24143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24144 }
24145 arg1 = reinterpret_cast< wxWindow * >(argp1);
24146 {
24147 if (!wxPyCheckForApp()) SWIG_fail;
24148 PyThreadState* __tstate = wxPyBeginAllowThreads();
24149 result = (wxClientDC *)new wxClientDC(arg1);
24150 wxPyEndAllowThreads(__tstate);
24151 if (PyErr_Occurred()) SWIG_fail;
24152 }
24153 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24154 return resultobj;
24155fail:
24156 return NULL;
24157}
24158
24159
24160SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24161 PyObject *obj;
24162 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24163 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24164 return SWIG_Py_Void();
24165}
24166
24167SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24168 return SWIG_Python_InitShadowInstance(args);
24169}
24170
24171SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24172 PyObject *resultobj = 0;
24173 wxWindow *arg1 = (wxWindow *) 0 ;
24174 wxPaintDC *result = 0 ;
24175 void *argp1 = 0 ;
24176 int res1 = 0 ;
24177 PyObject * obj0 = 0 ;
24178 char * kwnames[] = {
24179 (char *) "win", NULL
24180 };
24181
24182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
24183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24184 if (!SWIG_IsOK(res1)) {
24185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24186 }
24187 arg1 = reinterpret_cast< wxWindow * >(argp1);
24188 {
24189 if (!wxPyCheckForApp()) SWIG_fail;
24190 PyThreadState* __tstate = wxPyBeginAllowThreads();
24191 result = (wxPaintDC *)new wxPaintDC(arg1);
24192 wxPyEndAllowThreads(__tstate);
24193 if (PyErr_Occurred()) SWIG_fail;
24194 }
24195 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
24196 return resultobj;
24197fail:
24198 return NULL;
24199}
24200
24201
24202SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24203 PyObject *obj;
24204 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24205 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
24206 return SWIG_Py_Void();
24207}
24208
24209SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24210 return SWIG_Python_InitShadowInstance(args);
24211}
24212
26c4d26f
RD
24213SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24214 PyObject *resultobj = 0;
24215 wxBitmap &arg1_defvalue = wxNullBitmap ;
24216 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
24217 wxMemoryDC *result = 0 ;
24218 void *argp1 = 0 ;
24219 int res1 = 0 ;
24220 PyObject * obj0 = 0 ;
24221 char * kwnames[] = {
24222 (char *) "bitmap", NULL
24223 };
24224
24225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
24226 if (obj0) {
24227 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 );
24228 if (!SWIG_IsOK(res1)) {
24229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24230 }
24231 if (!argp1) {
24232 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'");
24233 }
24234 arg1 = reinterpret_cast< wxBitmap * >(argp1);
24235 }
24236 {
24237 if (!wxPyCheckForApp()) SWIG_fail;
24238 PyThreadState* __tstate = wxPyBeginAllowThreads();
24239 result = (wxMemoryDC *)new wxMemoryDC(*arg1);
24240 wxPyEndAllowThreads(__tstate);
24241 if (PyErr_Occurred()) SWIG_fail;
24242 }
24243 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
24244 return resultobj;
24245fail:
24246 return NULL;
24247}
24248
24249
24250SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24251 PyObject *resultobj = 0;
24252 wxDC *arg1 = (wxDC *) 0 ;
24253 wxMemoryDC *result = 0 ;
24254 void *argp1 = 0 ;
24255 int res1 = 0 ;
24256 PyObject * obj0 = 0 ;
24257 char * kwnames[] = {
24258 (char *) "oldDC", NULL
24259 };
24260
24261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
24262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24263 if (!SWIG_IsOK(res1)) {
24264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
24265 }
24266 arg1 = reinterpret_cast< wxDC * >(argp1);
24267 {
24268 if (!wxPyCheckForApp()) SWIG_fail;
24269 PyThreadState* __tstate = wxPyBeginAllowThreads();
24270 result = (wxMemoryDC *)new wxMemoryDC(arg1);
24271 wxPyEndAllowThreads(__tstate);
24272 if (PyErr_Occurred()) SWIG_fail;
24273 }
24274 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
24275 return resultobj;
24276fail:
24277 return NULL;
24278}
24279
24280
24281SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24282 PyObject *resultobj = 0;
24283 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24284 wxBitmap *arg2 = 0 ;
24285 void *argp1 = 0 ;
24286 int res1 = 0 ;
24287 void *argp2 = 0 ;
24288 int res2 = 0 ;
24289 PyObject * obj0 = 0 ;
24290 PyObject * obj1 = 0 ;
24291 char * kwnames[] = {
24292 (char *) "self",(char *) "bitmap", NULL
24293 };
24294
24295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
24296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24297 if (!SWIG_IsOK(res1)) {
24298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24299 }
24300 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
24301 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
24302 if (!SWIG_IsOK(res2)) {
24303 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24304 }
24305 if (!argp2) {
24306 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'");
24307 }
24308 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24309 {
24310 PyThreadState* __tstate = wxPyBeginAllowThreads();
24311 (arg1)->SelectObject(*arg2);
24312 wxPyEndAllowThreads(__tstate);
24313 if (PyErr_Occurred()) SWIG_fail;
24314 }
24315 resultobj = SWIG_Py_Void();
24316 return resultobj;
24317fail:
24318 return NULL;
24319}
24320
24321
24322SWIGINTERN PyObject *_wrap_MemoryDC_SelectObjectAsSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24323 PyObject *resultobj = 0;
24324 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
24325 wxBitmap *arg2 = 0 ;
24326 void *argp1 = 0 ;
24327 int res1 = 0 ;
24328 void *argp2 = 0 ;
24329 int res2 = 0 ;
24330 PyObject * obj0 = 0 ;
24331 PyObject * obj1 = 0 ;
24332 char * kwnames[] = {
24333 (char *) "self",(char *) "bmp", NULL
24334 };
24335
24336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObjectAsSource",kwnames,&obj0,&obj1)) SWIG_fail;
24337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
24338 if (!SWIG_IsOK(res1)) {
24339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
24340 }
24341 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
24342 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24343 if (!SWIG_IsOK(res2)) {
24344 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24345 }
24346 if (!argp2) {
24347 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24348 }
24349 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24350 {
24351 PyThreadState* __tstate = wxPyBeginAllowThreads();
24352 (arg1)->SelectObjectAsSource((wxBitmap const &)*arg2);
24353 wxPyEndAllowThreads(__tstate);
24354 if (PyErr_Occurred()) SWIG_fail;
24355 }
24356 resultobj = SWIG_Py_Void();
24357 return resultobj;
24358fail:
24359 return NULL;
24360}
24361
24362
24363SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24364 PyObject *obj;
24365 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24366 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
24367 return SWIG_Py_Void();
24368}
24369
24370SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24371 return SWIG_Python_InitShadowInstance(args);
24372}
24373
1bd55598
RD
24374SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24375 PyObject *resultobj = 0;
24376 wxDC *arg1 = (wxDC *) 0 ;
b6df5cf9 24377 wxBitmap &arg2_defvalue = wxNullBitmap ;
1bd55598
RD
24378 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24379 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24380 wxBufferedDC *result = 0 ;
24381 void *argp1 = 0 ;
24382 int res1 = 0 ;
24383 void *argp2 = 0 ;
24384 int res2 = 0 ;
24385 int val3 ;
24386 int ecode3 = 0 ;
24387
24388 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
24389 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24390 if (!SWIG_IsOK(res1)) {
24391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24392 }
24393 arg1 = reinterpret_cast< wxDC * >(argp1);
24394 if (swig_obj[1]) {
b6df5cf9 24395 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 );
1bd55598 24396 if (!SWIG_IsOK(res2)) {
b6df5cf9 24397 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
36ed4f51 24398 }
1bd55598 24399 if (!argp2) {
b6df5cf9 24400 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
36ed4f51 24401 }
1bd55598
RD
24402 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24403 }
24404 if (swig_obj[2]) {
24405 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24406 if (!SWIG_IsOK(ecode3)) {
24407 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24408 }
24409 arg3 = static_cast< int >(val3);
24410 }
24411 {
24412 if (!wxPyCheckForApp()) SWIG_fail;
24413 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6df5cf9 24414 result = (wxBufferedDC *)new wxBufferedDC(arg1,*arg2,arg3);
1bd55598
RD
24415 wxPyEndAllowThreads(__tstate);
24416 if (PyErr_Occurred()) SWIG_fail;
24417 }
24418 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24419 return resultobj;
24420fail:
24421 return NULL;
24422}
24423
24424
24425SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24426 PyObject *resultobj = 0;
24427 wxDC *arg1 = (wxDC *) 0 ;
24428 wxSize *arg2 = 0 ;
24429 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24430 wxBufferedDC *result = 0 ;
24431 void *argp1 = 0 ;
24432 int res1 = 0 ;
24433 wxSize temp2 ;
24434 int val3 ;
24435 int ecode3 = 0 ;
24436
24437 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
24438 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24439 if (!SWIG_IsOK(res1)) {
24440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24441 }
24442 arg1 = reinterpret_cast< wxDC * >(argp1);
24443 {
24444 arg2 = &temp2;
24445 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
24446 }
24447 if (swig_obj[2]) {
24448 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24449 if (!SWIG_IsOK(ecode3)) {
24450 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24451 }
24452 arg3 = static_cast< int >(val3);
24453 }
24454 {
24455 if (!wxPyCheckForApp()) SWIG_fail;
24456 PyThreadState* __tstate = wxPyBeginAllowThreads();
24457 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
24458 wxPyEndAllowThreads(__tstate);
24459 if (PyErr_Occurred()) SWIG_fail;
24460 }
24461 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24462 return resultobj;
24463fail:
24464 return NULL;
24465}
24466
24467
24468SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
24469 int argc;
8e99bda9 24470 PyObject *argv[4];
1bd55598 24471
8e99bda9 24472 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
1bd55598
RD
24473 --argc;
24474 if ((argc >= 1) && (argc <= 3)) {
24475 int _v = 0;
24476 if (argc > 1) {
24477 {
b6df5cf9
RD
24478 void *vptr = 0;
24479 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxBitmap, 0);
1bd55598
RD
24480 _v = SWIG_CheckState(res);
24481 }
24482 if (!_v) goto check_1;
36ed4f51 24483 }
1bd55598
RD
24484 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
24485 }
24486check_1:
24487
24488 if ((argc >= 2) && (argc <= 3)) {
24489 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
24490 }
24491
24492fail:
24493 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
24494 return NULL;
24495}
24496
24497
24498SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24499 PyObject *resultobj = 0;
24500 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24501 void *argp1 = 0 ;
24502 int res1 = 0 ;
24503 PyObject *swig_obj[1] ;
24504
24505 if (!args) SWIG_fail;
24506 swig_obj[0] = args;
24507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
24508 if (!SWIG_IsOK(res1)) {
24509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24510 }
24511 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24512 {
24513 PyThreadState* __tstate = wxPyBeginAllowThreads();
24514 delete arg1;
24515
24516 wxPyEndAllowThreads(__tstate);
24517 if (PyErr_Occurred()) SWIG_fail;
24518 }
24519 resultobj = SWIG_Py_Void();
24520 return resultobj;
24521fail:
24522 return NULL;
24523}
24524
24525
24526SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24527 PyObject *resultobj = 0;
24528 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24529 void *argp1 = 0 ;
24530 int res1 = 0 ;
24531 PyObject *swig_obj[1] ;
24532
24533 if (!args) SWIG_fail;
24534 swig_obj[0] = args;
24535 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24536 if (!SWIG_IsOK(res1)) {
24537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24538 }
24539 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24540 {
24541 PyThreadState* __tstate = wxPyBeginAllowThreads();
24542 (arg1)->UnMask();
24543 wxPyEndAllowThreads(__tstate);
24544 if (PyErr_Occurred()) SWIG_fail;
24545 }
24546 resultobj = SWIG_Py_Void();
24547 return resultobj;
24548fail:
24549 return NULL;
24550}
24551
24552
b6df5cf9
RD
24553SWIGINTERN PyObject *_wrap_BufferedDC_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24554 PyObject *resultobj = 0;
24555 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24556 int arg2 ;
24557 void *argp1 = 0 ;
24558 int res1 = 0 ;
24559 int val2 ;
24560 int ecode2 = 0 ;
24561 PyObject * obj0 = 0 ;
24562 PyObject * obj1 = 0 ;
24563 char * kwnames[] = {
24564 (char *) "self",(char *) "style", NULL
24565 };
24566
24567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BufferedDC_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
24568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24569 if (!SWIG_IsOK(res1)) {
24570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_SetStyle" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24571 }
24572 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24573 ecode2 = SWIG_AsVal_int(obj1, &val2);
24574 if (!SWIG_IsOK(ecode2)) {
24575 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufferedDC_SetStyle" "', expected argument " "2"" of type '" "int""'");
24576 }
24577 arg2 = static_cast< int >(val2);
24578 {
24579 PyThreadState* __tstate = wxPyBeginAllowThreads();
24580 (arg1)->SetStyle(arg2);
24581 wxPyEndAllowThreads(__tstate);
24582 if (PyErr_Occurred()) SWIG_fail;
24583 }
24584 resultobj = SWIG_Py_Void();
24585 return resultobj;
24586fail:
24587 return NULL;
24588}
24589
24590
24591SWIGINTERN PyObject *_wrap_BufferedDC_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24592 PyObject *resultobj = 0;
24593 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24594 int result;
24595 void *argp1 = 0 ;
24596 int res1 = 0 ;
24597 PyObject *swig_obj[1] ;
24598
24599 if (!args) SWIG_fail;
24600 swig_obj[0] = args;
24601 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24602 if (!SWIG_IsOK(res1)) {
24603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_GetStyle" "', expected argument " "1"" of type '" "wxBufferedDC const *""'");
24604 }
24605 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24606 {
24607 PyThreadState* __tstate = wxPyBeginAllowThreads();
24608 result = (int)((wxBufferedDC const *)arg1)->GetStyle();
24609 wxPyEndAllowThreads(__tstate);
24610 if (PyErr_Occurred()) SWIG_fail;
24611 }
24612 resultobj = SWIG_From_int(static_cast< int >(result));
24613 return resultobj;
24614fail:
24615 return NULL;
24616}
24617
24618
1bd55598
RD
24619SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24620 PyObject *obj;
24621 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24622 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
24623 return SWIG_Py_Void();
24624}
24625
24626SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24627 return SWIG_Python_InitShadowInstance(args);
24628}
24629
24630SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24631 PyObject *resultobj = 0;
24632 wxWindow *arg1 = (wxWindow *) 0 ;
b6df5cf9 24633 wxBitmap &arg2_defvalue = wxNullBitmap ;
1bd55598
RD
24634 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24635 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24636 wxBufferedPaintDC *result = 0 ;
24637 void *argp1 = 0 ;
24638 int res1 = 0 ;
24639 void *argp2 = 0 ;
24640 int res2 = 0 ;
24641 int val3 ;
24642 int ecode3 = 0 ;
24643 PyObject * obj0 = 0 ;
24644 PyObject * obj1 = 0 ;
24645 PyObject * obj2 = 0 ;
24646 char * kwnames[] = {
24647 (char *) "window",(char *) "buffer",(char *) "style", NULL
24648 };
24649
24650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24652 if (!SWIG_IsOK(res1)) {
24653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24654 }
24655 arg1 = reinterpret_cast< wxWindow * >(argp1);
24656 if (obj1) {
b6df5cf9 24657 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
1bd55598 24658 if (!SWIG_IsOK(res2)) {
b6df5cf9 24659 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
36ed4f51 24660 }
1bd55598 24661 if (!argp2) {
b6df5cf9 24662 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'");
36ed4f51 24663 }
1bd55598
RD
24664 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24665 }
24666 if (obj2) {
24667 ecode3 = SWIG_AsVal_int(obj2, &val3);
24668 if (!SWIG_IsOK(ecode3)) {
24669 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
24670 }
24671 arg3 = static_cast< int >(val3);
24672 }
24673 {
24674 if (!wxPyCheckForApp()) SWIG_fail;
24675 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6df5cf9 24676 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,*arg2,arg3);
1bd55598
RD
24677 wxPyEndAllowThreads(__tstate);
24678 if (PyErr_Occurred()) SWIG_fail;
24679 }
24680 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
24681 return resultobj;
24682fail:
24683 return NULL;
24684}
24685
24686
24687SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24688 PyObject *obj;
24689 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24690 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
24691 return SWIG_Py_Void();
24692}
24693
24694SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24695 return SWIG_Python_InitShadowInstance(args);
24696}
24697
24f6c4e8 24698SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
24699 PyObject *resultobj = 0;
24700 wxWindow *arg1 = (wxWindow *) 0 ;
24f6c4e8 24701 wxAutoBufferedPaintDC *result = 0 ;
1bd55598
RD
24702 void *argp1 = 0 ;
24703 int res1 = 0 ;
24704 PyObject * obj0 = 0 ;
24705 char * kwnames[] = {
24706 (char *) "win", NULL
24707 };
24708
24f6c4e8 24709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
1bd55598
RD
24710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24711 if (!SWIG_IsOK(res1)) {
24f6c4e8 24712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
1bd55598
RD
24713 }
24714 arg1 = reinterpret_cast< wxWindow * >(argp1);
24715 {
1bd55598 24716 PyThreadState* __tstate = wxPyBeginAllowThreads();
24f6c4e8 24717 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
1bd55598
RD
24718 wxPyEndAllowThreads(__tstate);
24719 if (PyErr_Occurred()) SWIG_fail;
24720 }
24f6c4e8 24721 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
1bd55598
RD
24722 return resultobj;
24723fail:
24724 return NULL;
24725}
24726
24727
24f6c4e8 24728SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
24729 PyObject *obj;
24730 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24f6c4e8 24731 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
1bd55598
RD
24732 return SWIG_Py_Void();
24733}
24734
24f6c4e8 24735SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
24736 return SWIG_Python_InitShadowInstance(args);
24737}
24738
8e99bda9
RD
24739SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24740 PyObject *resultobj = 0;
24741 wxWindow *arg1 = (wxWindow *) 0 ;
24742 wxDC *result = 0 ;
24743 void *argp1 = 0 ;
24744 int res1 = 0 ;
24745 PyObject * obj0 = 0 ;
24746 char * kwnames[] = {
24747 (char *) "window", NULL
24748 };
24749
24750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
24751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24752 if (!SWIG_IsOK(res1)) {
24753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
24754 }
24755 arg1 = reinterpret_cast< wxWindow * >(argp1);
24756 {
24757 PyThreadState* __tstate = wxPyBeginAllowThreads();
24758 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
24759 wxPyEndAllowThreads(__tstate);
24760 if (PyErr_Occurred()) SWIG_fail;
24761 }
24762 {
24763 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
24764 }
24765 return resultobj;
24766fail:
24767 return NULL;
24768}
24769
24770
1bd55598
RD
24771SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24772 PyObject *resultobj = 0;
24773 wxDC *arg1 = 0 ;
24774 bool arg2 ;
24775 wxMirrorDC *result = 0 ;
24776 void *argp1 = 0 ;
24777 int res1 = 0 ;
24778 bool val2 ;
24779 int ecode2 = 0 ;
24780 PyObject * obj0 = 0 ;
24781 PyObject * obj1 = 0 ;
24782 char * kwnames[] = {
24783 (char *) "dc",(char *) "mirror", NULL
24784 };
24785
24786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
24787 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24788 if (!SWIG_IsOK(res1)) {
24789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24790 }
24791 if (!argp1) {
24792 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24793 }
24794 arg1 = reinterpret_cast< wxDC * >(argp1);
24795 ecode2 = SWIG_AsVal_bool(obj1, &val2);
24796 if (!SWIG_IsOK(ecode2)) {
24797 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
24798 }
24799 arg2 = static_cast< bool >(val2);
24800 {
24801 if (!wxPyCheckForApp()) SWIG_fail;
24802 PyThreadState* __tstate = wxPyBeginAllowThreads();
24803 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
24804 wxPyEndAllowThreads(__tstate);
24805 if (PyErr_Occurred()) SWIG_fail;
24806 }
24807 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
24808 return resultobj;
24809fail:
24810 return NULL;
24811}
24812
24813
24814SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24815 PyObject *obj;
24816 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24817 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
24818 return SWIG_Py_Void();
24819}
24820
24821SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24822 return SWIG_Python_InitShadowInstance(args);
24823}
24824
24825SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24826 PyObject *resultobj = 0;
24827 wxPrintData *arg1 = 0 ;
24828 wxPostScriptDC *result = 0 ;
24829 void *argp1 = 0 ;
24830 int res1 = 0 ;
24831 PyObject * obj0 = 0 ;
24832 char * kwnames[] = {
24833 (char *) "printData", NULL
24834 };
24835
24836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
24837 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24838 if (!SWIG_IsOK(res1)) {
24839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24840 }
24841 if (!argp1) {
24842 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24843 }
24844 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24845 {
24846 if (!wxPyCheckForApp()) SWIG_fail;
24847 PyThreadState* __tstate = wxPyBeginAllowThreads();
24848 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
24849 wxPyEndAllowThreads(__tstate);
24850 if (PyErr_Occurred()) SWIG_fail;
24851 }
24852 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
24853 return resultobj;
24854fail:
24855 return NULL;
24856}
24857
24858
24859SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24860 PyObject *resultobj = 0;
24861 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24862 wxPrintData *result = 0 ;
24863 void *argp1 = 0 ;
24864 int res1 = 0 ;
24865 PyObject *swig_obj[1] ;
24866
24867 if (!args) SWIG_fail;
24868 swig_obj[0] = args;
24869 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24870 if (!SWIG_IsOK(res1)) {
24871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24872 }
24873 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24874 {
24875 PyThreadState* __tstate = wxPyBeginAllowThreads();
e2950dbb 24876 {
1bd55598
RD
24877 wxPrintData &_result_ref = (arg1)->GetPrintData();
24878 result = (wxPrintData *) &_result_ref;
e2950dbb 24879 }
1bd55598
RD
24880 wxPyEndAllowThreads(__tstate);
24881 if (PyErr_Occurred()) SWIG_fail;
24882 }
24883 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
24884 return resultobj;
24885fail:
24886 return NULL;
24887}
24888
24889
24890SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24891 PyObject *resultobj = 0;
24892 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24893 wxPrintData *arg2 = 0 ;
24894 void *argp1 = 0 ;
24895 int res1 = 0 ;
24896 void *argp2 = 0 ;
24897 int res2 = 0 ;
24898 PyObject * obj0 = 0 ;
24899 PyObject * obj1 = 0 ;
24900 char * kwnames[] = {
24901 (char *) "self",(char *) "data", NULL
24902 };
24903
24904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
24905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24906 if (!SWIG_IsOK(res1)) {
24907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24908 }
24909 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24910 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
24911 if (!SWIG_IsOK(res2)) {
24912 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24913 }
24914 if (!argp2) {
24915 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24916 }
24917 arg2 = reinterpret_cast< wxPrintData * >(argp2);
24918 {
24919 PyThreadState* __tstate = wxPyBeginAllowThreads();
24920 (arg1)->SetPrintData((wxPrintData const &)*arg2);
24921 wxPyEndAllowThreads(__tstate);
24922 if (PyErr_Occurred()) SWIG_fail;
24923 }
24924 resultobj = SWIG_Py_Void();
24925 return resultobj;
24926fail:
24927 return NULL;
24928}
24929
24930
24931SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24932 PyObject *resultobj = 0;
24933 int arg1 ;
24934 int val1 ;
24935 int ecode1 = 0 ;
24936 PyObject * obj0 = 0 ;
24937 char * kwnames[] = {
24938 (char *) "ppi", NULL
24939 };
24940
24941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
24942 ecode1 = SWIG_AsVal_int(obj0, &val1);
24943 if (!SWIG_IsOK(ecode1)) {
24944 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
24945 }
24946 arg1 = static_cast< int >(val1);
24947 {
24948 PyThreadState* __tstate = wxPyBeginAllowThreads();
24949 wxPostScriptDC::SetResolution(arg1);
24950 wxPyEndAllowThreads(__tstate);
24951 if (PyErr_Occurred()) SWIG_fail;
24952 }
24953 resultobj = SWIG_Py_Void();
24954 return resultobj;
24955fail:
24956 return NULL;
24957}
24958
24959
24960SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24961 PyObject *resultobj = 0;
24962 int result;
24963
24964 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
24965 {
24966 PyThreadState* __tstate = wxPyBeginAllowThreads();
24967 result = (int)wxPostScriptDC::GetResolution();
24968 wxPyEndAllowThreads(__tstate);
24969 if (PyErr_Occurred()) SWIG_fail;
24970 }
24971 resultobj = SWIG_From_int(static_cast< int >(result));
24972 return resultobj;
24973fail:
24974 return NULL;
24975}
24976
24977
24978SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24979 PyObject *obj;
24980 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24981 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
24982 return SWIG_Py_Void();
24983}
24984
24985SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24986 return SWIG_Python_InitShadowInstance(args);
24987}
24988
24989SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24990 PyObject *resultobj = 0;
24991 wxString const &arg1_defvalue = wxPyEmptyString ;
24992 wxString *arg1 = (wxString *) &arg1_defvalue ;
24993 wxMetaFile *result = 0 ;
24994 bool temp1 = false ;
24995 PyObject * obj0 = 0 ;
24996 char * kwnames[] = {
24997 (char *) "filename", NULL
24998 };
24999
25000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
25001 if (obj0) {
36ed4f51 25002 {
1bd55598
RD
25003 arg1 = wxString_in_helper(obj0);
25004 if (arg1 == NULL) SWIG_fail;
25005 temp1 = true;
36ed4f51 25006 }
1bd55598
RD
25007 }
25008 {
25009 if (!wxPyCheckForApp()) SWIG_fail;
25010 PyThreadState* __tstate = wxPyBeginAllowThreads();
25011 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
25012 wxPyEndAllowThreads(__tstate);
25013 if (PyErr_Occurred()) SWIG_fail;
25014 }
25015 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
25016 {
25017 if (temp1)
25018 delete arg1;
25019 }
25020 return resultobj;
25021fail:
25022 {
25023 if (temp1)
25024 delete arg1;
25025 }
25026 return NULL;
25027}
25028
25029
25030SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25031 PyObject *resultobj = 0;
25032 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25033 void *argp1 = 0 ;
25034 int res1 = 0 ;
25035 PyObject *swig_obj[1] ;
25036
25037 if (!args) SWIG_fail;
25038 swig_obj[0] = args;
25039 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
25040 if (!SWIG_IsOK(res1)) {
25041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25042 }
25043 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25044 {
25045 PyThreadState* __tstate = wxPyBeginAllowThreads();
25046 delete arg1;
25047
25048 wxPyEndAllowThreads(__tstate);
25049 if (PyErr_Occurred()) SWIG_fail;
25050 }
25051 resultobj = SWIG_Py_Void();
25052 return resultobj;
25053fail:
25054 return NULL;
25055}
25056
25057
b39fe951 25058SWIGINTERN PyObject *_wrap_MetaFile_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
25059 PyObject *resultobj = 0;
25060 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25061 bool result;
25062 void *argp1 = 0 ;
25063 int res1 = 0 ;
25064 PyObject *swig_obj[1] ;
25065
25066 if (!args) SWIG_fail;
25067 swig_obj[0] = args;
25068 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25069 if (!SWIG_IsOK(res1)) {
b39fe951 25070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_IsOk" "', expected argument " "1"" of type '" "wxMetaFile *""'");
1bd55598
RD
25071 }
25072 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25073 {
25074 PyThreadState* __tstate = wxPyBeginAllowThreads();
b39fe951 25075 result = (bool)(arg1)->IsOk();
1bd55598
RD
25076 wxPyEndAllowThreads(__tstate);
25077 if (PyErr_Occurred()) SWIG_fail;
25078 }
25079 {
25080 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25081 }
25082 return resultobj;
25083fail:
25084 return NULL;
25085}
25086
25087
25088SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25089 PyObject *resultobj = 0;
25090 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25091 int arg2 = (int) 0 ;
25092 int arg3 = (int) 0 ;
25093 bool result;
25094 void *argp1 = 0 ;
25095 int res1 = 0 ;
25096 int val2 ;
25097 int ecode2 = 0 ;
25098 int val3 ;
25099 int ecode3 = 0 ;
25100 PyObject * obj0 = 0 ;
25101 PyObject * obj1 = 0 ;
25102 PyObject * obj2 = 0 ;
25103 char * kwnames[] = {
25104 (char *) "self",(char *) "width",(char *) "height", NULL
25105 };
25106
25107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25109 if (!SWIG_IsOK(res1)) {
25110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25111 }
25112 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25113 if (obj1) {
25114 ecode2 = SWIG_AsVal_int(obj1, &val2);
25115 if (!SWIG_IsOK(ecode2)) {
25116 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
25117 }
25118 arg2 = static_cast< int >(val2);
25119 }
25120 if (obj2) {
25121 ecode3 = SWIG_AsVal_int(obj2, &val3);
25122 if (!SWIG_IsOK(ecode3)) {
25123 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
25124 }
25125 arg3 = static_cast< int >(val3);
25126 }
25127 {
25128 PyThreadState* __tstate = wxPyBeginAllowThreads();
25129 result = (bool)(arg1)->SetClipboard(arg2,arg3);
25130 wxPyEndAllowThreads(__tstate);
25131 if (PyErr_Occurred()) SWIG_fail;
25132 }
25133 {
25134 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25135 }
25136 return resultobj;
25137fail:
25138 return NULL;
25139}
25140
25141
25142SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25143 PyObject *resultobj = 0;
25144 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25145 wxSize result;
25146 void *argp1 = 0 ;
25147 int res1 = 0 ;
25148 PyObject *swig_obj[1] ;
25149
25150 if (!args) SWIG_fail;
25151 swig_obj[0] = args;
25152 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25153 if (!SWIG_IsOK(res1)) {
25154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25155 }
25156 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25157 {
25158 PyThreadState* __tstate = wxPyBeginAllowThreads();
25159 result = (arg1)->GetSize();
25160 wxPyEndAllowThreads(__tstate);
25161 if (PyErr_Occurred()) SWIG_fail;
25162 }
25163 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25164 return resultobj;
25165fail:
25166 return NULL;
25167}
25168
25169
25170SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25171 PyObject *resultobj = 0;
25172 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25173 int result;
25174 void *argp1 = 0 ;
25175 int res1 = 0 ;
25176 PyObject *swig_obj[1] ;
25177
25178 if (!args) SWIG_fail;
25179 swig_obj[0] = args;
25180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25181 if (!SWIG_IsOK(res1)) {
25182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25183 }
25184 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25185 {
25186 PyThreadState* __tstate = wxPyBeginAllowThreads();
25187 result = (int)(arg1)->GetWidth();
25188 wxPyEndAllowThreads(__tstate);
25189 if (PyErr_Occurred()) SWIG_fail;
25190 }
25191 resultobj = SWIG_From_int(static_cast< int >(result));
25192 return resultobj;
25193fail:
25194 return NULL;
25195}
25196
25197
25198SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25199 PyObject *resultobj = 0;
25200 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
25201 int result;
25202 void *argp1 = 0 ;
25203 int res1 = 0 ;
25204 PyObject *swig_obj[1] ;
25205
25206 if (!args) SWIG_fail;
25207 swig_obj[0] = args;
25208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
25209 if (!SWIG_IsOK(res1)) {
25210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
25211 }
25212 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25213 {
25214 PyThreadState* __tstate = wxPyBeginAllowThreads();
25215 result = (int)(arg1)->GetHeight();
25216 wxPyEndAllowThreads(__tstate);
25217 if (PyErr_Occurred()) SWIG_fail;
25218 }
25219 resultobj = SWIG_From_int(static_cast< int >(result));
25220 return resultobj;
25221fail:
25222 return NULL;
25223}
25224
25225
25226SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25227 PyObject *obj;
25228 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25229 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
25230 return SWIG_Py_Void();
25231}
25232
25233SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25234 return SWIG_Python_InitShadowInstance(args);
25235}
25236
25237SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25238 PyObject *resultobj = 0;
25239 wxString const &arg1_defvalue = wxPyEmptyString ;
25240 wxString *arg1 = (wxString *) &arg1_defvalue ;
25241 int arg2 = (int) 0 ;
25242 int arg3 = (int) 0 ;
25243 wxString const &arg4_defvalue = wxPyEmptyString ;
25244 wxString *arg4 = (wxString *) &arg4_defvalue ;
25245 wxMetaFileDC *result = 0 ;
25246 bool temp1 = false ;
25247 int val2 ;
25248 int ecode2 = 0 ;
25249 int val3 ;
25250 int ecode3 = 0 ;
25251 bool temp4 = false ;
25252 PyObject * obj0 = 0 ;
25253 PyObject * obj1 = 0 ;
25254 PyObject * obj2 = 0 ;
25255 PyObject * obj3 = 0 ;
25256 char * kwnames[] = {
25257 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
25258 };
25259
25260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25261 if (obj0) {
36ed4f51 25262 {
1bd55598
RD
25263 arg1 = wxString_in_helper(obj0);
25264 if (arg1 == NULL) SWIG_fail;
25265 temp1 = true;
36ed4f51 25266 }
1bd55598
RD
25267 }
25268 if (obj1) {
25269 ecode2 = SWIG_AsVal_int(obj1, &val2);
25270 if (!SWIG_IsOK(ecode2)) {
25271 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
25272 }
25273 arg2 = static_cast< int >(val2);
25274 }
25275 if (obj2) {
25276 ecode3 = SWIG_AsVal_int(obj2, &val3);
25277 if (!SWIG_IsOK(ecode3)) {
25278 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
25279 }
25280 arg3 = static_cast< int >(val3);
25281 }
25282 if (obj3) {
36ed4f51 25283 {
1bd55598
RD
25284 arg4 = wxString_in_helper(obj3);
25285 if (arg4 == NULL) SWIG_fail;
25286 temp4 = true;
36ed4f51 25287 }
1bd55598
RD
25288 }
25289 {
25290 if (!wxPyCheckForApp()) SWIG_fail;
25291 PyThreadState* __tstate = wxPyBeginAllowThreads();
25292 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
25293 wxPyEndAllowThreads(__tstate);
25294 if (PyErr_Occurred()) SWIG_fail;
25295 }
25296 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
25297 {
25298 if (temp1)
25299 delete arg1;
25300 }
25301 {
25302 if (temp4)
25303 delete arg4;
25304 }
25305 return resultobj;
25306fail:
25307 {
25308 if (temp1)
25309 delete arg1;
25310 }
25311 {
25312 if (temp4)
25313 delete arg4;
25314 }
25315 return NULL;
25316}
25317
25318
25319SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25320 PyObject *resultobj = 0;
25321 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
25322 wxMetaFile *result = 0 ;
25323 void *argp1 = 0 ;
25324 int res1 = 0 ;
25325 PyObject *swig_obj[1] ;
25326
25327 if (!args) SWIG_fail;
25328 swig_obj[0] = args;
25329 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
25330 if (!SWIG_IsOK(res1)) {
25331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
25332 }
25333 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
25334 {
25335 PyThreadState* __tstate = wxPyBeginAllowThreads();
25336 result = (wxMetaFile *)(arg1)->Close();
25337 wxPyEndAllowThreads(__tstate);
25338 if (PyErr_Occurred()) SWIG_fail;
25339 }
25340 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
25341 return resultobj;
25342fail:
25343 return NULL;
25344}
25345
25346
25347SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25348 PyObject *obj;
25349 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25350 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
25351 return SWIG_Py_Void();
25352}
25353
25354SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25355 return SWIG_Python_InitShadowInstance(args);
25356}
25357
25358SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25359 PyObject *resultobj = 0;
25360 wxPrintData *arg1 = 0 ;
25361 wxPrinterDC *result = 0 ;
25362 void *argp1 = 0 ;
25363 int res1 = 0 ;
25364 PyObject * obj0 = 0 ;
25365 char * kwnames[] = {
25366 (char *) "printData", NULL
25367 };
25368
25369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
25370 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25371 if (!SWIG_IsOK(res1)) {
25372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25373 }
25374 if (!argp1) {
25375 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25376 }
25377 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25378 {
25379 if (!wxPyCheckForApp()) SWIG_fail;
25380 PyThreadState* __tstate = wxPyBeginAllowThreads();
25381 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
25382 wxPyEndAllowThreads(__tstate);
25383 if (PyErr_Occurred()) SWIG_fail;
25384 }
25385 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
25386 return resultobj;
25387fail:
25388 return NULL;
25389}
25390
25391
25392SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25393 PyObject *obj;
25394 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25395 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
25396 return SWIG_Py_Void();
25397}
25398
25399SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25400 return SWIG_Python_InitShadowInstance(args);
25401}
25402
70d7cb34
RD
25403SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25404 PyObject *resultobj = 0;
25405 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ;
25406 wxGraphicsObject *result = 0 ;
25407 void *argp1 = 0 ;
25408 int res1 = 0 ;
25409 PyObject * obj0 = 0 ;
25410 char * kwnames[] = {
25411 (char *) "renderer", NULL
25412 };
25413
25414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail;
25415 if (obj0) {
25416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25417 if (!SWIG_IsOK(res1)) {
25418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
25419 }
25420 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
25421 }
25422 {
25423 result = (wxGraphicsObject *)new wxGraphicsObject(arg1);
25424 if (PyErr_Occurred()) SWIG_fail;
25425 }
25426 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 );
25427 return resultobj;
25428fail:
25429 return NULL;
25430}
25431
25432
25433SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25434 PyObject *resultobj = 0;
25435 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25436 void *argp1 = 0 ;
25437 int res1 = 0 ;
25438 PyObject *swig_obj[1] ;
25439
25440 if (!args) SWIG_fail;
25441 swig_obj[0] = args;
25442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 );
25443 if (!SWIG_IsOK(res1)) {
25444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'");
25445 }
25446 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25447 {
25448 delete arg1;
25449
25450 if (PyErr_Occurred()) SWIG_fail;
25451 }
25452 resultobj = SWIG_Py_Void();
25453 return resultobj;
25454fail:
25455 return NULL;
25456}
25457
25458
25459SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25460 PyObject *resultobj = 0;
25461 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25462 bool result;
25463 void *argp1 = 0 ;
25464 int res1 = 0 ;
25465 PyObject *swig_obj[1] ;
25466
25467 if (!args) SWIG_fail;
25468 swig_obj[0] = args;
25469 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25470 if (!SWIG_IsOK(res1)) {
25471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25472 }
25473 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25474 {
25475 result = (bool)((wxGraphicsObject const *)arg1)->IsNull();
25476 if (PyErr_Occurred()) SWIG_fail;
25477 }
25478 {
25479 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25480 }
25481 return resultobj;
25482fail:
25483 return NULL;
25484}
25485
25486
25487SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25488 PyObject *resultobj = 0;
25489 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
25490 wxGraphicsRenderer *result = 0 ;
25491 void *argp1 = 0 ;
25492 int res1 = 0 ;
25493 PyObject *swig_obj[1] ;
25494
25495 if (!args) SWIG_fail;
25496 swig_obj[0] = args;
25497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
25498 if (!SWIG_IsOK(res1)) {
25499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
25500 }
25501 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
25502 {
25503 result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer();
25504 if (PyErr_Occurred()) SWIG_fail;
25505 }
25506 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
25507 return resultobj;
25508fail:
25509 return NULL;
25510}
25511
25512
25513SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25514 PyObject *obj;
25515 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25516 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj));
25517 return SWIG_Py_Void();
25518}
25519
25520SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25521 return SWIG_Python_InitShadowInstance(args);
25522}
25523
25524SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25525 PyObject *resultobj = 0;
25526 wxGraphicsPen *result = 0 ;
25527
25528 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail;
25529 {
25530 result = (wxGraphicsPen *)new wxGraphicsPen();
25531 if (PyErr_Occurred()) SWIG_fail;
25532 }
25533 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 );
25534 return resultobj;
25535fail:
25536 return NULL;
25537}
25538
25539
25540SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25541 PyObject *resultobj = 0;
25542 wxGraphicsPen *arg1 = (wxGraphicsPen *) 0 ;
25543 void *argp1 = 0 ;
25544 int res1 = 0 ;
25545 PyObject *swig_obj[1] ;
25546
25547 if (!args) SWIG_fail;
25548 swig_obj[0] = args;
25549 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 );
25550 if (!SWIG_IsOK(res1)) {
25551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'");
25552 }
25553 arg1 = reinterpret_cast< wxGraphicsPen * >(argp1);
25554 {
25555 delete arg1;
25556
25557 if (PyErr_Occurred()) SWIG_fail;
25558 }
25559 resultobj = SWIG_Py_Void();
25560 return resultobj;
25561fail:
25562 return NULL;
25563}
25564
25565
25566SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25567 PyObject *obj;
25568 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25569 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj));
25570 return SWIG_Py_Void();
25571}
25572
25573SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25574 return SWIG_Python_InitShadowInstance(args);
25575}
25576
25577SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25578 PyObject *resultobj = 0;
25579 wxGraphicsBrush *result = 0 ;
25580
25581 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail;
25582 {
25583 result = (wxGraphicsBrush *)new wxGraphicsBrush();
25584 if (PyErr_Occurred()) SWIG_fail;
25585 }
25586 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 );
25587 return resultobj;
25588fail:
25589 return NULL;
25590}
25591
25592
25593SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25594 PyObject *resultobj = 0;
25595 wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ;
25596 void *argp1 = 0 ;
25597 int res1 = 0 ;
25598 PyObject *swig_obj[1] ;
25599
25600 if (!args) SWIG_fail;
25601 swig_obj[0] = args;
25602 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 );
25603 if (!SWIG_IsOK(res1)) {
25604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'");
25605 }
25606 arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1);
25607 {
25608 delete arg1;
25609
25610 if (PyErr_Occurred()) SWIG_fail;
25611 }
25612 resultobj = SWIG_Py_Void();
25613 return resultobj;
25614fail:
25615 return NULL;
25616}
25617
25618
25619SWIGINTERN PyObject *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25620 PyObject *obj;
25621 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25622 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj));
25623 return SWIG_Py_Void();
25624}
25625
25626SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25627 return SWIG_Python_InitShadowInstance(args);
25628}
25629
25630SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25631 PyObject *resultobj = 0;
25632 wxGraphicsFont *result = 0 ;
25633
25634 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail;
25635 {
25636 result = (wxGraphicsFont *)new wxGraphicsFont();
25637 if (PyErr_Occurred()) SWIG_fail;
25638 }
25639 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 );
25640 return resultobj;
25641fail:
25642 return NULL;
25643}
25644
25645
25646SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25647 PyObject *resultobj = 0;
25648 wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ;
25649 void *argp1 = 0 ;
25650 int res1 = 0 ;
25651 PyObject *swig_obj[1] ;
25652
25653 if (!args) SWIG_fail;
25654 swig_obj[0] = args;
25655 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 );
25656 if (!SWIG_IsOK(res1)) {
25657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'");
25658 }
25659 arg1 = reinterpret_cast< wxGraphicsFont * >(argp1);
25660 {
25661 delete arg1;
25662
25663 if (PyErr_Occurred()) SWIG_fail;
25664 }
25665 resultobj = SWIG_Py_Void();
25666 return resultobj;
25667fail:
25668 return NULL;
25669}
25670
25671
25672SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25673 PyObject *obj;
25674 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25675 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj));
25676 return SWIG_Py_Void();
25677}
25678
25679SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25680 return SWIG_Python_InitShadowInstance(args);
25681}
25682
8f514ab4
RD
25683SWIGINTERN PyObject *_wrap_new_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25684 PyObject *resultobj = 0;
25685 wxGraphicsMatrix *result = 0 ;
25686
25687 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsMatrix",0,0,0)) SWIG_fail;
25688 {
25689 result = (wxGraphicsMatrix *)new wxGraphicsMatrix();
25690 if (PyErr_Occurred()) SWIG_fail;
25691 }
25692 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_NEW | 0 );
25693 return resultobj;
25694fail:
25695 return NULL;
25696}
25697
25698
5c8c7dd3 25699SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 25700 PyObject *resultobj = 0;
5c8c7dd3 25701 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
1bd55598
RD
25702 void *argp1 = 0 ;
25703 int res1 = 0 ;
25704 PyObject *swig_obj[1] ;
25705
25706 if (!args) SWIG_fail;
25707 swig_obj[0] = args;
5c8c7dd3 25708 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 );
1bd55598 25709 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
1bd55598 25711 }
5c8c7dd3 25712 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
1bd55598 25713 {
1bd55598
RD
25714 delete arg1;
25715
1bd55598
RD
25716 if (PyErr_Occurred()) SWIG_fail;
25717 }
25718 resultobj = SWIG_Py_Void();
25719 return resultobj;
25720fail:
25721 return NULL;
25722}
25723
25724
5c8c7dd3 25725SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25726 PyObject *resultobj = 0;
5c8c7dd3
RD
25727 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25728 wxGraphicsMatrix *arg2 = 0 ;
70d7cb34
RD
25729 void *argp1 = 0 ;
25730 int res1 = 0 ;
5c8c7dd3
RD
25731 void *argp2 = 0 ;
25732 int res2 = 0 ;
25733 PyObject * obj0 = 0 ;
25734 PyObject * obj1 = 0 ;
25735 char * kwnames[] = {
25736 (char *) "self",(char *) "t", NULL
25737 };
70d7cb34 25738
5c8c7dd3
RD
25739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail;
25740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25741 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 25743 }
5c8c7dd3
RD
25744 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25745 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
25746 if (!SWIG_IsOK(res2)) {
25747 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25748 }
25749 if (!argp2) {
25750 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25751 }
25752 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 25753 {
5c8c7dd3 25754 (arg1)->Concat((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
25755 if (PyErr_Occurred()) SWIG_fail;
25756 }
5c8c7dd3 25757 resultobj = SWIG_Py_Void();
70d7cb34
RD
25758 return resultobj;
25759fail:
25760 return NULL;
25761}
25762
25763
5c8c7dd3 25764SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25765 PyObject *resultobj = 0;
5c8c7dd3
RD
25766 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25767 wxDouble arg2 = (wxDouble) 1.0 ;
25768 wxDouble arg3 = (wxDouble) 0.0 ;
25769 wxDouble arg4 = (wxDouble) 0.0 ;
25770 wxDouble arg5 = (wxDouble) 1.0 ;
25771 wxDouble arg6 = (wxDouble) 0.0 ;
25772 wxDouble arg7 = (wxDouble) 0.0 ;
70d7cb34
RD
25773 void *argp1 = 0 ;
25774 int res1 = 0 ;
5c8c7dd3
RD
25775 double val2 ;
25776 int ecode2 = 0 ;
25777 double val3 ;
25778 int ecode3 = 0 ;
25779 double val4 ;
25780 int ecode4 = 0 ;
25781 double val5 ;
25782 int ecode5 = 0 ;
25783 double val6 ;
25784 int ecode6 = 0 ;
25785 double val7 ;
25786 int ecode7 = 0 ;
25787 PyObject * obj0 = 0 ;
25788 PyObject * obj1 = 0 ;
25789 PyObject * obj2 = 0 ;
25790 PyObject * obj3 = 0 ;
25791 PyObject * obj4 = 0 ;
25792 PyObject * obj5 = 0 ;
25793 PyObject * obj6 = 0 ;
25794 char * kwnames[] = {
25795 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
25796 };
70d7cb34 25797
5c8c7dd3
RD
25798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25800 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 25802 }
5c8c7dd3
RD
25803 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25804 if (obj1) {
25805 ecode2 = SWIG_AsVal_double(obj1, &val2);
25806 if (!SWIG_IsOK(ecode2)) {
25807 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'");
25808 }
25809 arg2 = static_cast< wxDouble >(val2);
25810 }
25811 if (obj2) {
25812 ecode3 = SWIG_AsVal_double(obj2, &val3);
25813 if (!SWIG_IsOK(ecode3)) {
25814 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'");
25815 }
25816 arg3 = static_cast< wxDouble >(val3);
25817 }
25818 if (obj3) {
25819 ecode4 = SWIG_AsVal_double(obj3, &val4);
25820 if (!SWIG_IsOK(ecode4)) {
25821 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'");
25822 }
25823 arg4 = static_cast< wxDouble >(val4);
25824 }
25825 if (obj4) {
25826 ecode5 = SWIG_AsVal_double(obj4, &val5);
25827 if (!SWIG_IsOK(ecode5)) {
25828 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'");
25829 }
25830 arg5 = static_cast< wxDouble >(val5);
25831 }
25832 if (obj5) {
25833 ecode6 = SWIG_AsVal_double(obj5, &val6);
25834 if (!SWIG_IsOK(ecode6)) {
25835 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'");
25836 }
25837 arg6 = static_cast< wxDouble >(val6);
25838 }
25839 if (obj6) {
25840 ecode7 = SWIG_AsVal_double(obj6, &val7);
25841 if (!SWIG_IsOK(ecode7)) {
25842 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'");
25843 }
25844 arg7 = static_cast< wxDouble >(val7);
70d7cb34
RD
25845 }
25846 {
5c8c7dd3 25847 (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
25848 if (PyErr_Occurred()) SWIG_fail;
25849 }
25850 resultobj = SWIG_Py_Void();
25851 return resultobj;
25852fail:
25853 return NULL;
25854}
25855
25856
248802d0
RD
25857SWIGINTERN PyObject *_wrap_GraphicsMatrix_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25858 PyObject *resultobj = 0;
25859 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25860 wxDouble *arg2 = (wxDouble *) 0 ;
25861 wxDouble *arg3 = (wxDouble *) 0 ;
25862 wxDouble *arg4 = (wxDouble *) 0 ;
25863 wxDouble *arg5 = (wxDouble *) 0 ;
25864 wxDouble *arg6 = (wxDouble *) 0 ;
25865 wxDouble *arg7 = (wxDouble *) 0 ;
25866 void *argp1 = 0 ;
25867 int res1 = 0 ;
25868 wxDouble temp2 ;
25869 int res2 = SWIG_TMPOBJ ;
25870 wxDouble temp3 ;
25871 int res3 = SWIG_TMPOBJ ;
25872 wxDouble temp4 ;
25873 int res4 = SWIG_TMPOBJ ;
25874 wxDouble temp5 ;
25875 int res5 = SWIG_TMPOBJ ;
25876 wxDouble temp6 ;
25877 int res6 = SWIG_TMPOBJ ;
25878 wxDouble temp7 ;
25879 int res7 = SWIG_TMPOBJ ;
25880 PyObject *swig_obj[1] ;
25881
25882 arg2 = &temp2;
25883 arg3 = &temp3;
25884 arg4 = &temp4;
25885 arg5 = &temp5;
25886 arg6 = &temp6;
25887 arg7 = &temp7;
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)) {
25892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Get" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
25893 }
25894 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25895 {
25896 (arg1)->Get(arg2,arg3,arg4,arg5,arg6,arg7);
25897 if (PyErr_Occurred()) SWIG_fail;
25898 }
25899 resultobj = SWIG_Py_Void();
25900 if (SWIG_IsTmpObj(res2)) {
25901 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
25902 } else {
25903 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25904 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
25905 }
25906 if (SWIG_IsTmpObj(res3)) {
25907 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
25908 } else {
25909 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25910 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
25911 }
25912 if (SWIG_IsTmpObj(res4)) {
25913 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
25914 } else {
25915 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25916 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
25917 }
25918 if (SWIG_IsTmpObj(res5)) {
25919 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
25920 } else {
25921 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25922 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
25923 }
25924 if (SWIG_IsTmpObj(res6)) {
25925 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
25926 } else {
25927 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25928 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
25929 }
25930 if (SWIG_IsTmpObj(res7)) {
25931 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg7)));
25932 } else {
25933 int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
25934 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_double, new_flags));
25935 }
25936 return resultobj;
25937fail:
25938 return NULL;
25939}
25940
25941
5c8c7dd3 25942SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 25943 PyObject *resultobj = 0;
5c8c7dd3 25944 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
1bd55598
RD
25945 void *argp1 = 0 ;
25946 int res1 = 0 ;
5c8c7dd3 25947 PyObject *swig_obj[1] ;
1bd55598 25948
5c8c7dd3
RD
25949 if (!args) SWIG_fail;
25950 swig_obj[0] = args;
25951 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
1bd55598 25952 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
1bd55598 25954 }
5c8c7dd3 25955 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
1bd55598 25956 {
5c8c7dd3 25957 (arg1)->Invert();
1bd55598
RD
25958 if (PyErr_Occurred()) SWIG_fail;
25959 }
72ef6efb 25960 resultobj = SWIG_Py_Void();
1bd55598
RD
25961 return resultobj;
25962fail:
25963 return NULL;
25964}
25965
25966
5c8c7dd3 25967SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 25968 PyObject *resultobj = 0;
5c8c7dd3
RD
25969 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
25970 wxGraphicsMatrix *arg2 = 0 ;
25971 bool result;
70d7cb34
RD
25972 void *argp1 = 0 ;
25973 int res1 = 0 ;
5c8c7dd3
RD
25974 void *argp2 = 0 ;
25975 int res2 = 0 ;
25976 PyObject * obj0 = 0 ;
25977 PyObject * obj1 = 0 ;
25978 char * kwnames[] = {
25979 (char *) "self",(char *) "t", NULL
25980 };
70d7cb34 25981
5c8c7dd3
RD
25982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
25983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 25984 if (!SWIG_IsOK(res1)) {
5c8c7dd3 25985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
70d7cb34 25986 }
5c8c7dd3
RD
25987 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
25988 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
25989 if (!SWIG_IsOK(res2)) {
25990 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
25991 }
25992 if (!argp2) {
25993 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
70d7cb34 25994 }
5c8c7dd3 25995 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 25996 {
5c8c7dd3 25997 result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
25998 if (PyErr_Occurred()) SWIG_fail;
25999 }
5c8c7dd3
RD
26000 {
26001 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26002 }
70d7cb34
RD
26003 return resultobj;
26004fail:
26005 return NULL;
26006}
26007
26008
5c8c7dd3
RD
26009SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26010 PyObject *resultobj = 0;
26011 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26012 bool result;
26013 void *argp1 = 0 ;
26014 int res1 = 0 ;
26015 PyObject *swig_obj[1] ;
70d7cb34 26016
5c8c7dd3
RD
26017 if (!args) SWIG_fail;
26018 swig_obj[0] = args;
26019 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26020 if (!SWIG_IsOK(res1)) {
8f514ab4 26021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
70d7cb34 26022 }
5c8c7dd3
RD
26023 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26024 {
8f514ab4 26025 result = (bool)((wxGraphicsMatrix const *)arg1)->IsIdentity();
5c8c7dd3 26026 if (PyErr_Occurred()) SWIG_fail;
70d7cb34 26027 }
5c8c7dd3
RD
26028 {
26029 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26030 }
26031 return resultobj;
70d7cb34 26032fail:
70d7cb34
RD
26033 return NULL;
26034}
26035
26036
5c8c7dd3 26037SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 26038 PyObject *resultobj = 0;
5c8c7dd3 26039 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
72ef6efb
RD
26040 wxDouble arg2 ;
26041 wxDouble arg3 ;
1bd55598
RD
26042 void *argp1 = 0 ;
26043 int res1 = 0 ;
72ef6efb
RD
26044 double val2 ;
26045 int ecode2 = 0 ;
26046 double val3 ;
26047 int ecode3 = 0 ;
5c8c7dd3
RD
26048 PyObject * obj0 = 0 ;
26049 PyObject * obj1 = 0 ;
26050 PyObject * obj2 = 0 ;
26051 char * kwnames[] = {
26052 (char *) "self",(char *) "dx",(char *) "dy", NULL
26053 };
72ef6efb 26054
5c8c7dd3
RD
26055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
72ef6efb 26057 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
72ef6efb 26059 }
5c8c7dd3
RD
26060 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26061 ecode2 = SWIG_AsVal_double(obj1, &val2);
72ef6efb 26062 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26063 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
26064 }
26065 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 26066 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb 26067 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26068 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
26069 }
26070 arg3 = static_cast< wxDouble >(val3);
72ef6efb 26071 {
5c8c7dd3 26072 (arg1)->Translate(arg2,arg3);
72ef6efb
RD
26073 if (PyErr_Occurred()) SWIG_fail;
26074 }
26075 resultobj = SWIG_Py_Void();
26076 return resultobj;
26077fail:
26078 return NULL;
26079}
26080
26081
5c8c7dd3 26082SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26083 PyObject *resultobj = 0;
5c8c7dd3
RD
26084 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26085 wxDouble arg2 ;
26086 wxDouble arg3 ;
70d7cb34
RD
26087 void *argp1 = 0 ;
26088 int res1 = 0 ;
5c8c7dd3
RD
26089 double val2 ;
26090 int ecode2 = 0 ;
26091 double val3 ;
26092 int ecode3 = 0 ;
26093 PyObject * obj0 = 0 ;
26094 PyObject * obj1 = 0 ;
26095 PyObject * obj2 = 0 ;
26096 char * kwnames[] = {
26097 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
26098 };
70d7cb34 26099
5c8c7dd3
RD
26100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 26102 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 26104 }
5c8c7dd3
RD
26105 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26106 ecode2 = SWIG_AsVal_double(obj1, &val2);
26107 if (!SWIG_IsOK(ecode2)) {
26108 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
26109 }
26110 arg2 = static_cast< wxDouble >(val2);
26111 ecode3 = SWIG_AsVal_double(obj2, &val3);
26112 if (!SWIG_IsOK(ecode3)) {
26113 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
26114 }
26115 arg3 = static_cast< wxDouble >(val3);
70d7cb34 26116 {
5c8c7dd3 26117 (arg1)->Scale(arg2,arg3);
70d7cb34
RD
26118 if (PyErr_Occurred()) SWIG_fail;
26119 }
26120 resultobj = SWIG_Py_Void();
26121 return resultobj;
26122fail:
26123 return NULL;
26124}
26125
26126
5c8c7dd3 26127SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26128 PyObject *resultobj = 0;
5c8c7dd3
RD
26129 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26130 wxDouble arg2 ;
70d7cb34
RD
26131 void *argp1 = 0 ;
26132 int res1 = 0 ;
5c8c7dd3
RD
26133 double val2 ;
26134 int ecode2 = 0 ;
70d7cb34
RD
26135 PyObject * obj0 = 0 ;
26136 PyObject * obj1 = 0 ;
26137 char * kwnames[] = {
5c8c7dd3 26138 (char *) "self",(char *) "angle", NULL
70d7cb34
RD
26139 };
26140
5c8c7dd3
RD
26141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
26142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
70d7cb34 26143 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
70d7cb34 26145 }
5c8c7dd3
RD
26146 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26147 ecode2 = SWIG_AsVal_double(obj1, &val2);
26148 if (!SWIG_IsOK(ecode2)) {
26149 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
26150 }
26151 arg2 = static_cast< wxDouble >(val2);
70d7cb34 26152 {
5c8c7dd3 26153 (arg1)->Rotate(arg2);
70d7cb34
RD
26154 if (PyErr_Occurred()) SWIG_fail;
26155 }
26156 resultobj = SWIG_Py_Void();
26157 return resultobj;
26158fail:
26159 return NULL;
26160}
26161
26162
5c8c7dd3 26163SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 26164 PyObject *resultobj = 0;
5c8c7dd3
RD
26165 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26166 wxDouble *arg2 = (wxDouble *) 0 ;
26167 wxDouble *arg3 = (wxDouble *) 0 ;
72ef6efb
RD
26168 void *argp1 = 0 ;
26169 int res1 = 0 ;
5c8c7dd3
RD
26170 wxDouble temp2 ;
26171 int res2 = 0 ;
26172 wxDouble temp3 ;
26173 int res3 = 0 ;
26174 PyObject * obj0 = 0 ;
26175 PyObject * obj1 = 0 ;
26176 PyObject * obj2 = 0 ;
26177 char * kwnames[] = {
26178 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26179 };
72ef6efb 26180
5c8c7dd3
RD
26181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
72ef6efb 26183 if (!SWIG_IsOK(res1)) {
8f514ab4 26184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
72ef6efb 26185 }
5c8c7dd3
RD
26186 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26187 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26188 double val;
26189 int ecode = SWIG_AsVal_double(obj1, &val);
26190 if (!SWIG_IsOK(ecode)) {
26191 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26192 }
26193 temp2 = static_cast< wxDouble >(val);
26194 arg2 = &temp2;
26195 res2 = SWIG_AddTmpMask(ecode);
26196 }
26197 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26198 double val;
26199 int ecode = SWIG_AsVal_double(obj2, &val);
26200 if (!SWIG_IsOK(ecode)) {
26201 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26202 }
26203 temp3 = static_cast< wxDouble >(val);
26204 arg3 = &temp3;
26205 res3 = SWIG_AddTmpMask(ecode);
26206 }
26207 {
8f514ab4 26208 ((wxGraphicsMatrix const *)arg1)->TransformPoint(arg2,arg3);
72ef6efb
RD
26209 if (PyErr_Occurred()) SWIG_fail;
26210 }
26211 resultobj = SWIG_Py_Void();
5c8c7dd3
RD
26212 if (SWIG_IsTmpObj(res2)) {
26213 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26214 } else {
26215 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26216 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26217 }
26218 if (SWIG_IsTmpObj(res3)) {
26219 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26220 } else {
26221 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26222 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26223 }
72ef6efb
RD
26224 return resultobj;
26225fail:
26226 return NULL;
26227}
26228
26229
5c8c7dd3
RD
26230SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26231 PyObject *resultobj = 0;
26232 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26233 wxDouble *arg2 = (wxDouble *) 0 ;
26234 wxDouble *arg3 = (wxDouble *) 0 ;
26235 void *argp1 = 0 ;
26236 int res1 = 0 ;
26237 wxDouble temp2 ;
26238 int res2 = 0 ;
26239 wxDouble temp3 ;
26240 int res3 = 0 ;
26241 PyObject * obj0 = 0 ;
26242 PyObject * obj1 = 0 ;
26243 PyObject * obj2 = 0 ;
26244 char * kwnames[] = {
26245 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26246 };
26247
26248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26250 if (!SWIG_IsOK(res1)) {
8f514ab4 26251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
5c8c7dd3
RD
26252 }
26253 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26254 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26255 double val;
26256 int ecode = SWIG_AsVal_double(obj1, &val);
26257 if (!SWIG_IsOK(ecode)) {
26258 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'");
26259 }
26260 temp2 = static_cast< wxDouble >(val);
26261 arg2 = &temp2;
26262 res2 = SWIG_AddTmpMask(ecode);
26263 }
26264 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26265 double val;
26266 int ecode = SWIG_AsVal_double(obj2, &val);
26267 if (!SWIG_IsOK(ecode)) {
26268 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'");
26269 }
26270 temp3 = static_cast< wxDouble >(val);
26271 arg3 = &temp3;
26272 res3 = SWIG_AddTmpMask(ecode);
26273 }
26274 {
8f514ab4 26275 ((wxGraphicsMatrix const *)arg1)->TransformDistance(arg2,arg3);
5c8c7dd3
RD
26276 if (PyErr_Occurred()) SWIG_fail;
26277 }
26278 resultobj = SWIG_Py_Void();
26279 if (SWIG_IsTmpObj(res2)) {
26280 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26281 } else {
26282 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26283 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26284 }
26285 if (SWIG_IsTmpObj(res3)) {
26286 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26287 } else {
26288 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26289 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26290 }
26291 return resultobj;
26292fail:
26293 return NULL;
26294}
26295
26296
26297SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26298 PyObject *resultobj = 0;
26299 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26300 void *result = 0 ;
26301 void *argp1 = 0 ;
26302 int res1 = 0 ;
26303 PyObject *swig_obj[1] ;
26304
26305 if (!args) SWIG_fail;
26306 swig_obj[0] = args;
26307 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26308 if (!SWIG_IsOK(res1)) {
26309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26310 }
26311 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26312 {
26313 result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix();
26314 if (PyErr_Occurred()) SWIG_fail;
26315 }
26316 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
26317 return resultobj;
26318fail:
26319 return NULL;
26320}
26321
26322
26323SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26324 PyObject *obj;
26325 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26326 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj));
26327 return SWIG_Py_Void();
26328}
26329
8f514ab4
RD
26330SWIGINTERN PyObject *GraphicsMatrix_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26331 return SWIG_Python_InitShadowInstance(args);
26332}
26333
26334SWIGINTERN PyObject *_wrap_new_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26335 PyObject *resultobj = 0;
26336 wxGraphicsPath *result = 0 ;
26337
26338 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPath",0,0,0)) SWIG_fail;
26339 {
26340 if (!wxPyCheckForApp()) SWIG_fail;
26341 PyThreadState* __tstate = wxPyBeginAllowThreads();
26342 result = (wxGraphicsPath *)new wxGraphicsPath();
26343 wxPyEndAllowThreads(__tstate);
26344 if (PyErr_Occurred()) SWIG_fail;
26345 }
26346 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_NEW | 0 );
26347 return resultobj;
26348fail:
26349 return NULL;
26350}
26351
26352
5c8c7dd3 26353SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
26354 PyObject *resultobj = 0;
26355 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
72ef6efb
RD
26356 void *argp1 = 0 ;
26357 int res1 = 0 ;
26358 PyObject *swig_obj[1] ;
26359
26360 if (!args) SWIG_fail;
26361 swig_obj[0] = args;
5c8c7dd3 26362 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
72ef6efb 26363 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
72ef6efb
RD
26365 }
26366 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26367 {
5c8c7dd3
RD
26368 delete arg1;
26369
72ef6efb
RD
26370 if (PyErr_Occurred()) SWIG_fail;
26371 }
5c8c7dd3 26372 resultobj = SWIG_Py_Void();
70d7cb34
RD
26373 return resultobj;
26374fail:
26375 return NULL;
26376}
26377
26378
5c8c7dd3 26379SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26380 PyObject *resultobj = 0;
26381 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26382 wxDouble arg2 ;
26383 wxDouble arg3 ;
70d7cb34
RD
26384 void *argp1 = 0 ;
26385 int res1 = 0 ;
26386 double val2 ;
26387 int ecode2 = 0 ;
26388 double val3 ;
26389 int ecode3 = 0 ;
70d7cb34 26390
5c8c7dd3 26391 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
70d7cb34
RD
26392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26393 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26395 }
26396 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26397 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26398 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26399 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26400 }
26401 arg2 = static_cast< wxDouble >(val2);
26402 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26403 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26404 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26405 }
26406 arg3 = static_cast< wxDouble >(val3);
70d7cb34 26407 {
5c8c7dd3 26408 (arg1)->MoveToPoint(arg2,arg3);
70d7cb34
RD
26409 if (PyErr_Occurred()) SWIG_fail;
26410 }
26411 resultobj = SWIG_Py_Void();
26412 return resultobj;
26413fail:
26414 return NULL;
26415}
26416
26417
5c8c7dd3 26418SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26419 PyObject *resultobj = 0;
26420 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26421 wxPoint2D *arg2 = 0 ;
70d7cb34
RD
26422 void *argp1 = 0 ;
26423 int res1 = 0 ;
26424 wxPoint2D temp2 ;
70d7cb34 26425
5c8c7dd3 26426 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
70d7cb34
RD
26427 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26428 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26430 }
26431 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26432 {
26433 arg2 = &temp2;
26434 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26435 }
70d7cb34 26436 {
5c8c7dd3 26437 (arg1)->MoveToPoint((wxPoint2D const &)*arg2);
70d7cb34
RD
26438 if (PyErr_Occurred()) SWIG_fail;
26439 }
26440 resultobj = SWIG_Py_Void();
26441 return resultobj;
26442fail:
26443 return NULL;
26444}
26445
26446
5c8c7dd3 26447SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) {
70d7cb34 26448 int argc;
5c8c7dd3 26449 PyObject *argv[4];
70d7cb34 26450
5c8c7dd3 26451 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail;
70d7cb34 26452 --argc;
5c8c7dd3
RD
26453 if (argc == 2) {
26454 return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv);
70d7cb34 26455 }
5c8c7dd3
RD
26456 if (argc == 3) {
26457 return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv);
70d7cb34
RD
26458 }
26459
26460fail:
5c8c7dd3 26461 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'");
70d7cb34
RD
26462 return NULL;
26463}
26464
26465
5c8c7dd3 26466SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26467 PyObject *resultobj = 0;
26468 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26469 wxDouble arg2 ;
26470 wxDouble arg3 ;
70d7cb34
RD
26471 void *argp1 = 0 ;
26472 int res1 = 0 ;
26473 double val2 ;
26474 int ecode2 = 0 ;
26475 double val3 ;
26476 int ecode3 = 0 ;
70d7cb34 26477
5c8c7dd3
RD
26478 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
26479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26480 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26482 }
26483 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 26484 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
70d7cb34 26485 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26486 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26487 }
26488 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 26489 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
70d7cb34 26490 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26491 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26492 }
26493 arg3 = static_cast< wxDouble >(val3);
70d7cb34 26494 {
5c8c7dd3 26495 (arg1)->AddLineToPoint(arg2,arg3);
70d7cb34
RD
26496 if (PyErr_Occurred()) SWIG_fail;
26497 }
26498 resultobj = SWIG_Py_Void();
26499 return resultobj;
26500fail:
26501 return NULL;
26502}
26503
26504
5c8c7dd3 26505SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26506 PyObject *resultobj = 0;
26507 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 26508 wxPoint2D *arg2 = 0 ;
70d7cb34
RD
26509 void *argp1 = 0 ;
26510 int res1 = 0 ;
5c8c7dd3 26511 wxPoint2D temp2 ;
70d7cb34 26512
5c8c7dd3
RD
26513 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
26514 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26515 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26517 }
26518 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26519 {
5c8c7dd3
RD
26520 arg2 = &temp2;
26521 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
26522 }
26523 {
26524 (arg1)->AddLineToPoint((wxPoint2D const &)*arg2);
70d7cb34
RD
26525 if (PyErr_Occurred()) SWIG_fail;
26526 }
26527 resultobj = SWIG_Py_Void();
26528 return resultobj;
26529fail:
26530 return NULL;
26531}
26532
26533
5c8c7dd3
RD
26534SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) {
26535 int argc;
26536 PyObject *argv[4];
70d7cb34 26537
5c8c7dd3
RD
26538 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail;
26539 --argc;
26540 if (argc == 2) {
26541 return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv);
70d7cb34 26542 }
5c8c7dd3
RD
26543 if (argc == 3) {
26544 return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv);
70d7cb34 26545 }
5c8c7dd3 26546
70d7cb34 26547fail:
5c8c7dd3 26548 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'");
70d7cb34
RD
26549 return NULL;
26550}
26551
26552
5c8c7dd3 26553SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26554 PyObject *resultobj = 0;
26555 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26556 wxDouble arg2 ;
26557 wxDouble arg3 ;
26558 wxDouble arg4 ;
26559 wxDouble arg5 ;
26560 wxDouble arg6 ;
5c8c7dd3 26561 wxDouble arg7 ;
70d7cb34
RD
26562 void *argp1 = 0 ;
26563 int res1 = 0 ;
26564 double val2 ;
26565 int ecode2 = 0 ;
26566 double val3 ;
26567 int ecode3 = 0 ;
26568 double val4 ;
26569 int ecode4 = 0 ;
26570 double val5 ;
26571 int ecode5 = 0 ;
26572 double val6 ;
26573 int ecode6 = 0 ;
5c8c7dd3
RD
26574 double val7 ;
26575 int ecode7 = 0 ;
70d7cb34 26576
5c8c7dd3
RD
26577 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
26578 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26579 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26581 }
26582 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 26583 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
70d7cb34 26584 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26585 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26586 }
26587 arg2 = static_cast< wxDouble >(val2);
5c8c7dd3 26588 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
70d7cb34 26589 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26590 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26591 }
26592 arg3 = static_cast< wxDouble >(val3);
5c8c7dd3 26593 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
70d7cb34 26594 if (!SWIG_IsOK(ecode4)) {
5c8c7dd3 26595 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
70d7cb34
RD
26596 }
26597 arg4 = static_cast< wxDouble >(val4);
5c8c7dd3 26598 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
70d7cb34 26599 if (!SWIG_IsOK(ecode5)) {
5c8c7dd3 26600 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
70d7cb34
RD
26601 }
26602 arg5 = static_cast< wxDouble >(val5);
5c8c7dd3 26603 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
70d7cb34 26604 if (!SWIG_IsOK(ecode6)) {
5c8c7dd3 26605 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
70d7cb34
RD
26606 }
26607 arg6 = static_cast< wxDouble >(val6);
5c8c7dd3
RD
26608 ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
26609 if (!SWIG_IsOK(ecode7)) {
26610 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
26611 }
26612 arg7 = static_cast< wxDouble >(val7);
70d7cb34 26613 {
5c8c7dd3 26614 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
26615 if (PyErr_Occurred()) SWIG_fail;
26616 }
26617 resultobj = SWIG_Py_Void();
26618 return resultobj;
26619fail:
26620 return NULL;
26621}
26622
26623
5c8c7dd3 26624SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26625 PyObject *resultobj = 0;
26626 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3
RD
26627 wxPoint2D *arg2 = 0 ;
26628 wxPoint2D *arg3 = 0 ;
26629 wxPoint2D *arg4 = 0 ;
70d7cb34
RD
26630 void *argp1 = 0 ;
26631 int res1 = 0 ;
5c8c7dd3
RD
26632 wxPoint2D temp2 ;
26633 wxPoint2D temp3 ;
26634 wxPoint2D temp4 ;
70d7cb34 26635
5c8c7dd3
RD
26636 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
26637 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26638 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26640 }
26641 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26642 {
5c8c7dd3
RD
26643 arg2 = &temp2;
26644 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
70d7cb34 26645 }
5c8c7dd3
RD
26646 {
26647 arg3 = &temp3;
26648 if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail;
70d7cb34 26649 }
70d7cb34 26650 {
5c8c7dd3
RD
26651 arg4 = &temp4;
26652 if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail;
26653 }
26654 {
26655 (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4);
70d7cb34
RD
26656 if (PyErr_Occurred()) SWIG_fail;
26657 }
26658 resultobj = SWIG_Py_Void();
26659 return resultobj;
26660fail:
26661 return NULL;
26662}
26663
26664
5c8c7dd3
RD
26665SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) {
26666 int argc;
26667 PyObject *argv[8];
70d7cb34 26668
5c8c7dd3
RD
26669 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail;
26670 --argc;
26671 if (argc == 4) {
26672 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv);
70d7cb34 26673 }
5c8c7dd3
RD
26674 if (argc == 7) {
26675 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv);
70d7cb34 26676 }
5c8c7dd3 26677
70d7cb34 26678fail:
5c8c7dd3 26679 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'");
70d7cb34
RD
26680 return NULL;
26681}
26682
26683
5c8c7dd3 26684SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34
RD
26685 PyObject *resultobj = 0;
26686 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 26687 wxGraphicsPath *arg2 = 0 ;
70d7cb34
RD
26688 void *argp1 = 0 ;
26689 int res1 = 0 ;
5c8c7dd3
RD
26690 void *argp2 = 0 ;
26691 int res2 = 0 ;
70d7cb34
RD
26692 PyObject * obj0 = 0 ;
26693 PyObject * obj1 = 0 ;
26694 char * kwnames[] = {
5c8c7dd3 26695 (char *) "self",(char *) "path", NULL
70d7cb34
RD
26696 };
26697
5c8c7dd3 26698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail;
70d7cb34
RD
26699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26700 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26702 }
26703 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
5c8c7dd3 26704 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
70d7cb34 26705 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
26706 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
26707 }
26708 if (!argp2) {
26709 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
70d7cb34 26710 }
5c8c7dd3 26711 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
70d7cb34 26712 {
5c8c7dd3 26713 (arg1)->AddPath((wxGraphicsPath const &)*arg2);
70d7cb34
RD
26714 if (PyErr_Occurred()) SWIG_fail;
26715 }
26716 resultobj = SWIG_Py_Void();
26717 return resultobj;
26718fail:
26719 return NULL;
26720}
26721
26722
5c8c7dd3 26723SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
26724 PyObject *resultobj = 0;
26725 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
70d7cb34
RD
26726 void *argp1 = 0 ;
26727 int res1 = 0 ;
5c8c7dd3 26728 PyObject *swig_obj[1] ;
70d7cb34 26729
5c8c7dd3
RD
26730 if (!args) SWIG_fail;
26731 swig_obj[0] = args;
26732 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26733 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26735 }
26736 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26737 {
5c8c7dd3 26738 (arg1)->CloseSubpath();
70d7cb34
RD
26739 if (PyErr_Occurred()) SWIG_fail;
26740 }
26741 resultobj = SWIG_Py_Void();
26742 return resultobj;
26743fail:
26744 return NULL;
26745}
26746
26747
5c8c7dd3 26748SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
26749 PyObject *resultobj = 0;
26750 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3 26751 wxPoint2D result;
70d7cb34
RD
26752 void *argp1 = 0 ;
26753 int res1 = 0 ;
26754 PyObject *swig_obj[1] ;
26755
26756 if (!args) SWIG_fail;
26757 swig_obj[0] = args;
26758 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26759 if (!SWIG_IsOK(res1)) {
8f514ab4 26760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34
RD
26761 }
26762 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26763 {
8f514ab4 26764 result = ((wxGraphicsPath const *)arg1)->GetCurrentPoint();
70d7cb34
RD
26765 if (PyErr_Occurred()) SWIG_fail;
26766 }
5c8c7dd3 26767 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
26768 return resultobj;
26769fail:
26770 return NULL;
26771}
26772
26773
5c8c7dd3 26774SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26775 PyObject *resultobj = 0;
26776 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26777 wxDouble arg2 ;
26778 wxDouble arg3 ;
5c8c7dd3
RD
26779 wxDouble arg4 ;
26780 wxDouble arg5 ;
26781 wxDouble arg6 ;
89d1e2ee 26782 bool arg7 = (bool) true ;
70d7cb34
RD
26783 void *argp1 = 0 ;
26784 int res1 = 0 ;
26785 double val2 ;
26786 int ecode2 = 0 ;
26787 double val3 ;
26788 int ecode3 = 0 ;
5c8c7dd3 26789 double val4 ;
70d7cb34 26790 int ecode4 = 0 ;
5c8c7dd3
RD
26791 double val5 ;
26792 int ecode5 = 0 ;
26793 double val6 ;
26794 int ecode6 = 0 ;
26795 bool val7 ;
26796 int ecode7 = 0 ;
70d7cb34 26797
89d1e2ee 26798 if ((nobjs < 6) || (nobjs > 7)) SWIG_fail;
70d7cb34
RD
26799 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26800 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26802 }
26803 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26804 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26805 if (!SWIG_IsOK(ecode2)) {
5c8c7dd3 26806 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
70d7cb34
RD
26807 }
26808 arg2 = static_cast< wxDouble >(val2);
26809 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26810 if (!SWIG_IsOK(ecode3)) {
5c8c7dd3 26811 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
70d7cb34
RD
26812 }
26813 arg3 = static_cast< wxDouble >(val3);
5c8c7dd3
RD
26814 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26815 if (!SWIG_IsOK(ecode4)) {
26816 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
26817 }
26818 arg4 = static_cast< wxDouble >(val4);
26819 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26820 if (!SWIG_IsOK(ecode5)) {
26821 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
26822 }
26823 arg5 = static_cast< wxDouble >(val5);
26824 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
26825 if (!SWIG_IsOK(ecode6)) {
26826 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
26827 }
26828 arg6 = static_cast< wxDouble >(val6);
89d1e2ee
RD
26829 if (swig_obj[6]) {
26830 ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7);
26831 if (!SWIG_IsOK(ecode7)) {
26832 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
26833 }
26834 arg7 = static_cast< bool >(val7);
26835 }
70d7cb34 26836 {
5c8c7dd3 26837 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
70d7cb34
RD
26838 if (PyErr_Occurred()) SWIG_fail;
26839 }
5c8c7dd3 26840 resultobj = SWIG_Py_Void();
70d7cb34
RD
26841 return resultobj;
26842fail:
26843 return NULL;
26844}
26845
26846
5c8c7dd3 26847SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34
RD
26848 PyObject *resultobj = 0;
26849 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
5c8c7dd3
RD
26850 wxPoint2D *arg2 = 0 ;
26851 wxDouble arg3 ;
26852 wxDouble arg4 ;
26853 wxDouble arg5 ;
89d1e2ee 26854 bool arg6 = (bool) true ;
70d7cb34
RD
26855 void *argp1 = 0 ;
26856 int res1 = 0 ;
5c8c7dd3
RD
26857 wxPoint2D temp2 ;
26858 double val3 ;
70d7cb34 26859 int ecode3 = 0 ;
5c8c7dd3
RD
26860 double val4 ;
26861 int ecode4 = 0 ;
26862 double val5 ;
26863 int ecode5 = 0 ;
26864 bool val6 ;
26865 int ecode6 = 0 ;
70d7cb34 26866
89d1e2ee 26867 if ((nobjs < 5) || (nobjs > 6)) SWIG_fail;
70d7cb34
RD
26868 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26869 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34
RD
26871 }
26872 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 26873 {
5c8c7dd3
RD
26874 arg2 = &temp2;
26875 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
70d7cb34 26876 }
5c8c7dd3
RD
26877 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26878 if (!SWIG_IsOK(ecode3)) {
26879 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
26880 }
26881 arg3 = static_cast< wxDouble >(val3);
26882 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
26883 if (!SWIG_IsOK(ecode4)) {
26884 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
26885 }
26886 arg4 = static_cast< wxDouble >(val4);
26887 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
26888 if (!SWIG_IsOK(ecode5)) {
26889 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
26890 }
26891 arg5 = static_cast< wxDouble >(val5);
89d1e2ee
RD
26892 if (swig_obj[5]) {
26893 ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6);
26894 if (!SWIG_IsOK(ecode6)) {
26895 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'");
26896 }
26897 arg6 = static_cast< bool >(val6);
26898 }
70d7cb34 26899 {
5c8c7dd3
RD
26900 (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6);
26901 if (PyErr_Occurred()) SWIG_fail;
70d7cb34 26902 }
5c8c7dd3 26903 resultobj = SWIG_Py_Void();
70d7cb34
RD
26904 return resultobj;
26905fail:
26906 return NULL;
26907}
26908
26909
5c8c7dd3 26910SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) {
70d7cb34 26911 int argc;
5c8c7dd3 26912 PyObject *argv[8];
70d7cb34 26913
5c8c7dd3 26914 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail;
70d7cb34 26915 --argc;
89d1e2ee
RD
26916 if ((argc >= 5) && (argc <= 6)) {
26917 int _v = 0;
26918 {
26919 {
26920 _v = wxPySimple_typecheck(argv[1], wxT("wxPoint2D"), 2);
26921 }
26922 }
26923 if (!_v) goto check_1;
26924 if (argc > 5) {
26925 {
26926 {
26927 int res = SWIG_AsVal_bool(argv[5], NULL);
26928 _v = SWIG_CheckState(res);
26929 }
26930 }
26931 if (!_v) goto check_1;
26932 }
5c8c7dd3 26933 return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv);
70d7cb34 26934 }
89d1e2ee
RD
26935check_1:
26936
26937 if ((argc >= 6) && (argc <= 7)) {
5c8c7dd3 26938 return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv);
70d7cb34
RD
26939 }
26940
26941fail:
5c8c7dd3 26942 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'");
70d7cb34
RD
26943 return NULL;
26944}
26945
26946
5c8c7dd3 26947SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 26948 PyObject *resultobj = 0;
5c8c7dd3
RD
26949 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26950 wxDouble arg2 ;
26951 wxDouble arg3 ;
26952 wxDouble arg4 ;
26953 wxDouble arg5 ;
70d7cb34
RD
26954 void *argp1 = 0 ;
26955 int res1 = 0 ;
5c8c7dd3
RD
26956 double val2 ;
26957 int ecode2 = 0 ;
26958 double val3 ;
26959 int ecode3 = 0 ;
26960 double val4 ;
26961 int ecode4 = 0 ;
26962 double val5 ;
26963 int ecode5 = 0 ;
26964 PyObject * obj0 = 0 ;
26965 PyObject * obj1 = 0 ;
26966 PyObject * obj2 = 0 ;
26967 PyObject * obj3 = 0 ;
26968 PyObject * obj4 = 0 ;
26969 char * kwnames[] = {
26970 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
26971 };
70d7cb34 26972
5c8c7dd3
RD
26973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 26975 if (!SWIG_IsOK(res1)) {
5c8c7dd3 26976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 26977 }
5c8c7dd3
RD
26978 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26979 ecode2 = SWIG_AsVal_double(obj1, &val2);
26980 if (!SWIG_IsOK(ecode2)) {
26981 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26982 }
26983 arg2 = static_cast< wxDouble >(val2);
26984 ecode3 = SWIG_AsVal_double(obj2, &val3);
26985 if (!SWIG_IsOK(ecode3)) {
26986 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26987 }
26988 arg3 = static_cast< wxDouble >(val3);
26989 ecode4 = SWIG_AsVal_double(obj3, &val4);
26990 if (!SWIG_IsOK(ecode4)) {
26991 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
26992 }
26993 arg4 = static_cast< wxDouble >(val4);
26994 ecode5 = SWIG_AsVal_double(obj4, &val5);
26995 if (!SWIG_IsOK(ecode5)) {
26996 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
26997 }
26998 arg5 = static_cast< wxDouble >(val5);
70d7cb34 26999 {
5c8c7dd3 27000 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
70d7cb34
RD
27001 if (PyErr_Occurred()) SWIG_fail;
27002 }
27003 resultobj = SWIG_Py_Void();
27004 return resultobj;
27005fail:
27006 return NULL;
27007}
27008
27009
5c8c7dd3 27010SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27011 PyObject *resultobj = 0;
5c8c7dd3
RD
27012 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27013 wxDouble arg2 ;
27014 wxDouble arg3 ;
27015 wxDouble arg4 ;
27016 wxDouble arg5 ;
70d7cb34
RD
27017 void *argp1 = 0 ;
27018 int res1 = 0 ;
5c8c7dd3
RD
27019 double val2 ;
27020 int ecode2 = 0 ;
27021 double val3 ;
27022 int ecode3 = 0 ;
27023 double val4 ;
27024 int ecode4 = 0 ;
27025 double val5 ;
27026 int ecode5 = 0 ;
70d7cb34
RD
27027 PyObject * obj0 = 0 ;
27028 PyObject * obj1 = 0 ;
5c8c7dd3
RD
27029 PyObject * obj2 = 0 ;
27030 PyObject * obj3 = 0 ;
27031 PyObject * obj4 = 0 ;
70d7cb34 27032 char * kwnames[] = {
5c8c7dd3 27033 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
70d7cb34
RD
27034 };
27035
5c8c7dd3
RD
27036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27038 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27040 }
5c8c7dd3
RD
27041 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27042 ecode2 = SWIG_AsVal_double(obj1, &val2);
27043 if (!SWIG_IsOK(ecode2)) {
27044 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27045 }
27046 arg2 = static_cast< wxDouble >(val2);
27047 ecode3 = SWIG_AsVal_double(obj2, &val3);
27048 if (!SWIG_IsOK(ecode3)) {
27049 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27050 }
27051 arg3 = static_cast< wxDouble >(val3);
27052 ecode4 = SWIG_AsVal_double(obj3, &val4);
27053 if (!SWIG_IsOK(ecode4)) {
27054 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27055 }
27056 arg4 = static_cast< wxDouble >(val4);
27057 ecode5 = SWIG_AsVal_double(obj4, &val5);
27058 if (!SWIG_IsOK(ecode5)) {
27059 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27060 }
27061 arg5 = static_cast< wxDouble >(val5);
70d7cb34 27062 {
5c8c7dd3 27063 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
70d7cb34
RD
27064 if (PyErr_Occurred()) SWIG_fail;
27065 }
27066 resultobj = SWIG_Py_Void();
27067 return resultobj;
27068fail:
27069 return NULL;
27070}
27071
27072
5c8c7dd3 27073SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27074 PyObject *resultobj = 0;
5c8c7dd3
RD
27075 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27076 wxDouble arg2 ;
27077 wxDouble arg3 ;
27078 wxDouble arg4 ;
70d7cb34
RD
27079 void *argp1 = 0 ;
27080 int res1 = 0 ;
5c8c7dd3
RD
27081 double val2 ;
27082 int ecode2 = 0 ;
27083 double val3 ;
27084 int ecode3 = 0 ;
27085 double val4 ;
27086 int ecode4 = 0 ;
70d7cb34
RD
27087 PyObject * obj0 = 0 ;
27088 PyObject * obj1 = 0 ;
5c8c7dd3
RD
27089 PyObject * obj2 = 0 ;
27090 PyObject * obj3 = 0 ;
70d7cb34 27091 char * kwnames[] = {
5c8c7dd3 27092 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
70d7cb34
RD
27093 };
27094
5c8c7dd3
RD
27095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27097 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27099 }
5c8c7dd3
RD
27100 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27101 ecode2 = SWIG_AsVal_double(obj1, &val2);
27102 if (!SWIG_IsOK(ecode2)) {
27103 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
27104 }
27105 arg2 = static_cast< wxDouble >(val2);
27106 ecode3 = SWIG_AsVal_double(obj2, &val3);
27107 if (!SWIG_IsOK(ecode3)) {
27108 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
27109 }
27110 arg3 = static_cast< wxDouble >(val3);
27111 ecode4 = SWIG_AsVal_double(obj3, &val4);
27112 if (!SWIG_IsOK(ecode4)) {
27113 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
27114 }
27115 arg4 = static_cast< wxDouble >(val4);
70d7cb34 27116 {
5c8c7dd3 27117 (arg1)->AddCircle(arg2,arg3,arg4);
70d7cb34
RD
27118 if (PyErr_Occurred()) SWIG_fail;
27119 }
27120 resultobj = SWIG_Py_Void();
27121 return resultobj;
27122fail:
27123 return NULL;
27124}
27125
27126
5c8c7dd3 27127SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27128 PyObject *resultobj = 0;
5c8c7dd3
RD
27129 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27130 wxDouble arg2 ;
27131 wxDouble arg3 ;
27132 wxDouble arg4 ;
27133 wxDouble arg5 ;
27134 wxDouble arg6 ;
70d7cb34
RD
27135 void *argp1 = 0 ;
27136 int res1 = 0 ;
27137 double val2 ;
27138 int ecode2 = 0 ;
27139 double val3 ;
27140 int ecode3 = 0 ;
27141 double val4 ;
27142 int ecode4 = 0 ;
27143 double val5 ;
27144 int ecode5 = 0 ;
27145 double val6 ;
27146 int ecode6 = 0 ;
70d7cb34
RD
27147 PyObject * obj0 = 0 ;
27148 PyObject * obj1 = 0 ;
27149 PyObject * obj2 = 0 ;
27150 PyObject * obj3 = 0 ;
27151 PyObject * obj4 = 0 ;
27152 PyObject * obj5 = 0 ;
70d7cb34 27153 char * kwnames[] = {
5c8c7dd3 27154 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
70d7cb34
RD
27155 };
27156
5c8c7dd3
RD
27157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27159 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27161 }
5c8c7dd3
RD
27162 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27163 ecode2 = SWIG_AsVal_double(obj1, &val2);
27164 if (!SWIG_IsOK(ecode2)) {
27165 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
27166 }
27167 arg2 = static_cast< wxDouble >(val2);
27168 ecode3 = SWIG_AsVal_double(obj2, &val3);
27169 if (!SWIG_IsOK(ecode3)) {
27170 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
27171 }
27172 arg3 = static_cast< wxDouble >(val3);
27173 ecode4 = SWIG_AsVal_double(obj3, &val4);
27174 if (!SWIG_IsOK(ecode4)) {
27175 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
27176 }
27177 arg4 = static_cast< wxDouble >(val4);
27178 ecode5 = SWIG_AsVal_double(obj4, &val5);
27179 if (!SWIG_IsOK(ecode5)) {
27180 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
27181 }
27182 arg5 = static_cast< wxDouble >(val5);
27183 ecode6 = SWIG_AsVal_double(obj5, &val6);
27184 if (!SWIG_IsOK(ecode6)) {
27185 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
27186 }
27187 arg6 = static_cast< wxDouble >(val6);
70d7cb34 27188 {
5c8c7dd3 27189 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
70d7cb34
RD
27190 if (PyErr_Occurred()) SWIG_fail;
27191 }
27192 resultobj = SWIG_Py_Void();
27193 return resultobj;
27194fail:
27195 return NULL;
27196}
27197
27198
5c8c7dd3 27199SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27200 PyObject *resultobj = 0;
5c8c7dd3
RD
27201 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27202 wxDouble arg2 ;
27203 wxDouble arg3 ;
27204 wxDouble arg4 ;
27205 wxDouble arg5 ;
70d7cb34
RD
27206 void *argp1 = 0 ;
27207 int res1 = 0 ;
5c8c7dd3
RD
27208 double val2 ;
27209 int ecode2 = 0 ;
27210 double val3 ;
27211 int ecode3 = 0 ;
27212 double val4 ;
27213 int ecode4 = 0 ;
27214 double val5 ;
27215 int ecode5 = 0 ;
27216 PyObject * obj0 = 0 ;
27217 PyObject * obj1 = 0 ;
27218 PyObject * obj2 = 0 ;
27219 PyObject * obj3 = 0 ;
27220 PyObject * obj4 = 0 ;
27221 char * kwnames[] = {
27222 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27223 };
70d7cb34 27224
5c8c7dd3
RD
27225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27226 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27227 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27229 }
5c8c7dd3
RD
27230 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27231 ecode2 = SWIG_AsVal_double(obj1, &val2);
27232 if (!SWIG_IsOK(ecode2)) {
27233 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
27234 }
27235 arg2 = static_cast< wxDouble >(val2);
27236 ecode3 = SWIG_AsVal_double(obj2, &val3);
27237 if (!SWIG_IsOK(ecode3)) {
27238 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
27239 }
27240 arg3 = static_cast< wxDouble >(val3);
27241 ecode4 = SWIG_AsVal_double(obj3, &val4);
27242 if (!SWIG_IsOK(ecode4)) {
27243 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
27244 }
27245 arg4 = static_cast< wxDouble >(val4);
27246 ecode5 = SWIG_AsVal_double(obj4, &val5);
27247 if (!SWIG_IsOK(ecode5)) {
27248 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
27249 }
27250 arg5 = static_cast< wxDouble >(val5);
70d7cb34 27251 {
5c8c7dd3 27252 (arg1)->AddEllipse(arg2,arg3,arg4,arg5);
70d7cb34
RD
27253 if (PyErr_Occurred()) SWIG_fail;
27254 }
27255 resultobj = SWIG_Py_Void();
27256 return resultobj;
27257fail:
27258 return NULL;
27259}
27260
27261
5c8c7dd3 27262SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27263 PyObject *resultobj = 0;
5c8c7dd3
RD
27264 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27265 wxDouble arg2 ;
27266 wxDouble arg3 ;
27267 wxDouble arg4 ;
27268 wxDouble arg5 ;
27269 wxDouble arg6 ;
70d7cb34
RD
27270 void *argp1 = 0 ;
27271 int res1 = 0 ;
5c8c7dd3
RD
27272 double val2 ;
27273 int ecode2 = 0 ;
27274 double val3 ;
27275 int ecode3 = 0 ;
27276 double val4 ;
27277 int ecode4 = 0 ;
27278 double val5 ;
27279 int ecode5 = 0 ;
27280 double val6 ;
27281 int ecode6 = 0 ;
70d7cb34
RD
27282 PyObject * obj0 = 0 ;
27283 PyObject * obj1 = 0 ;
5c8c7dd3
RD
27284 PyObject * obj2 = 0 ;
27285 PyObject * obj3 = 0 ;
27286 PyObject * obj4 = 0 ;
27287 PyObject * obj5 = 0 ;
70d7cb34 27288 char * kwnames[] = {
5c8c7dd3 27289 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
70d7cb34
RD
27290 };
27291
5c8c7dd3
RD
27292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27294 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27296 }
5c8c7dd3
RD
27297 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27298 ecode2 = SWIG_AsVal_double(obj1, &val2);
27299 if (!SWIG_IsOK(ecode2)) {
27300 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27301 }
27302 arg2 = static_cast< wxDouble >(val2);
27303 ecode3 = SWIG_AsVal_double(obj2, &val3);
27304 if (!SWIG_IsOK(ecode3)) {
27305 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27306 }
27307 arg3 = static_cast< wxDouble >(val3);
27308 ecode4 = SWIG_AsVal_double(obj3, &val4);
27309 if (!SWIG_IsOK(ecode4)) {
27310 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27311 }
27312 arg4 = static_cast< wxDouble >(val4);
27313 ecode5 = SWIG_AsVal_double(obj4, &val5);
27314 if (!SWIG_IsOK(ecode5)) {
27315 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27316 }
27317 arg5 = static_cast< wxDouble >(val5);
27318 ecode6 = SWIG_AsVal_double(obj5, &val6);
27319 if (!SWIG_IsOK(ecode6)) {
27320 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
27321 }
27322 arg6 = static_cast< wxDouble >(val6);
70d7cb34 27323 {
5c8c7dd3 27324 (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
70d7cb34
RD
27325 if (PyErr_Occurred()) SWIG_fail;
27326 }
5c8c7dd3 27327 resultobj = SWIG_Py_Void();
70d7cb34
RD
27328 return resultobj;
27329fail:
27330 return NULL;
27331}
27332
27333
5c8c7dd3 27334SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34 27335 PyObject *resultobj = 0;
5c8c7dd3
RD
27336 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27337 void *result = 0 ;
70d7cb34
RD
27338 void *argp1 = 0 ;
27339 int res1 = 0 ;
27340 PyObject *swig_obj[1] ;
27341
27342 if (!args) SWIG_fail;
27343 swig_obj[0] = args;
5c8c7dd3 27344 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27345 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27347 }
5c8c7dd3 27348 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27349 {
5c8c7dd3 27350 result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath();
70d7cb34
RD
27351 if (PyErr_Occurred()) SWIG_fail;
27352 }
5c8c7dd3 27353 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
70d7cb34
RD
27354 return resultobj;
27355fail:
27356 return NULL;
27357}
27358
27359
5c8c7dd3 27360SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27361 PyObject *resultobj = 0;
5c8c7dd3
RD
27362 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27363 void *arg2 = (void *) 0 ;
70d7cb34
RD
27364 void *argp1 = 0 ;
27365 int res1 = 0 ;
5c8c7dd3 27366 int res2 ;
70d7cb34
RD
27367 PyObject * obj0 = 0 ;
27368 PyObject * obj1 = 0 ;
70d7cb34 27369 char * kwnames[] = {
5c8c7dd3 27370 (char *) "self",(char *) "p", NULL
70d7cb34
RD
27371 };
27372
5c8c7dd3
RD
27373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail;
27374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27375 if (!SWIG_IsOK(res1)) {
8f514ab4 27376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
5c8c7dd3
RD
27377 }
27378 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27379 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
27380 if (!SWIG_IsOK(res2)) {
27381 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'");
70d7cb34 27382 }
70d7cb34 27383 {
8f514ab4 27384 ((wxGraphicsPath const *)arg1)->UnGetNativePath(arg2);
70d7cb34
RD
27385 if (PyErr_Occurred()) SWIG_fail;
27386 }
27387 resultobj = SWIG_Py_Void();
27388 return resultobj;
27389fail:
27390 return NULL;
27391}
27392
27393
5c8c7dd3 27394SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
70d7cb34 27395 PyObject *resultobj = 0;
5c8c7dd3
RD
27396 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27397 wxGraphicsMatrix *arg2 = 0 ;
70d7cb34
RD
27398 void *argp1 = 0 ;
27399 int res1 = 0 ;
5c8c7dd3
RD
27400 void *argp2 = 0 ;
27401 int res2 = 0 ;
70d7cb34
RD
27402 PyObject * obj0 = 0 ;
27403 PyObject * obj1 = 0 ;
70d7cb34 27404 char * kwnames[] = {
5c8c7dd3 27405 (char *) "self",(char *) "matrix", NULL
70d7cb34
RD
27406 };
27407
5c8c7dd3
RD
27408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail;
27409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27410 if (!SWIG_IsOK(res1)) {
5c8c7dd3 27411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
70d7cb34 27412 }
5c8c7dd3
RD
27413 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27414 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
27415 if (!SWIG_IsOK(res2)) {
27416 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27417 }
27418 if (!argp2) {
27419 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
27420 }
27421 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
70d7cb34 27422 {
5c8c7dd3 27423 (arg1)->Transform((wxGraphicsMatrix const &)*arg2);
70d7cb34
RD
27424 if (PyErr_Occurred()) SWIG_fail;
27425 }
27426 resultobj = SWIG_Py_Void();
27427 return resultobj;
27428fail:
27429 return NULL;
27430}
27431
27432
5c8c7dd3 27433SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34 27434 PyObject *resultobj = 0;
5c8c7dd3 27435 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
4fe9ce47 27436 wxRect2D result;
70d7cb34
RD
27437 void *argp1 = 0 ;
27438 int res1 = 0 ;
5c8c7dd3 27439 PyObject *swig_obj[1] ;
70d7cb34 27440
5c8c7dd3
RD
27441 if (!args) SWIG_fail;
27442 swig_obj[0] = args;
27443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27444 if (!SWIG_IsOK(res1)) {
8f514ab4 27445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27446 }
5c8c7dd3 27447 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
70d7cb34 27448 {
8f514ab4 27449 result = ((wxGraphicsPath const *)arg1)->GetBox();
70d7cb34
RD
27450 if (PyErr_Occurred()) SWIG_fail;
27451 }
4fe9ce47 27452 resultobj = SWIG_NewPointerObj((new wxRect2D(static_cast< const wxRect2D& >(result))), SWIGTYPE_p_wxRect2D, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
27453 return resultobj;
27454fail:
27455 return NULL;
27456}
27457
27458
5c8c7dd3 27459SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34 27460 PyObject *resultobj = 0;
5c8c7dd3
RD
27461 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
27462 wxDouble arg2 ;
27463 wxDouble arg3 ;
8f514ab4 27464 int arg4 = (int) wxODDEVEN_RULE ;
5c8c7dd3 27465 bool result;
70d7cb34
RD
27466 void *argp1 = 0 ;
27467 int res1 = 0 ;
5c8c7dd3
RD
27468 double val2 ;
27469 int ecode2 = 0 ;
27470 double val3 ;
27471 int ecode3 = 0 ;
27472 int val4 ;
27473 int ecode4 = 0 ;
70d7cb34 27474
5c8c7dd3
RD
27475 if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
27476 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27477 if (!SWIG_IsOK(res1)) {
8f514ab4 27478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27479 }
5c8c7dd3
RD
27480 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
27481 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
27482 if (!SWIG_IsOK(ecode2)) {
27483 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'");
27484 }
27485 arg2 = static_cast< wxDouble >(val2);
27486 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
27487 if (!SWIG_IsOK(ecode3)) {
27488 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'");
27489 }
27490 arg3 = static_cast< wxDouble >(val3);
27491 if (swig_obj[3]) {
27492 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
27493 if (!SWIG_IsOK(ecode4)) {
27494 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'");
27495 }
27496 arg4 = static_cast< int >(val4);
70d7cb34
RD
27497 }
27498 {
8f514ab4 27499 result = (bool)((wxGraphicsPath const *)arg1)->Contains(arg2,arg3,arg4);
70d7cb34
RD
27500 if (PyErr_Occurred()) SWIG_fail;
27501 }
5c8c7dd3
RD
27502 {
27503 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
70d7cb34
RD
27504 }
27505 return resultobj;
27506fail:
27507 return NULL;
27508}
27509
27510
5c8c7dd3 27511SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
70d7cb34 27512 PyObject *resultobj = 0;
5c8c7dd3 27513 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
4fe9ce47 27514 wxPoint2D *arg2 = 0 ;
8f514ab4 27515 int arg3 = (int) wxODDEVEN_RULE ;
5c8c7dd3 27516 bool result;
70d7cb34
RD
27517 void *argp1 = 0 ;
27518 int res1 = 0 ;
4fe9ce47 27519 wxPoint2D temp2 ;
5c8c7dd3
RD
27520 int val3 ;
27521 int ecode3 = 0 ;
70d7cb34 27522
5c8c7dd3
RD
27523 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
27524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
70d7cb34 27525 if (!SWIG_IsOK(res1)) {
8f514ab4 27526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
70d7cb34 27527 }
5c8c7dd3 27528 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
4fe9ce47
RD
27529 {
27530 arg2 = &temp2;
27531 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
5c8c7dd3 27532 }
5c8c7dd3
RD
27533 if (swig_obj[2]) {
27534 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
27535 if (!SWIG_IsOK(ecode3)) {
27536 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'");
27537 }
27538 arg3 = static_cast< int >(val3);
70d7cb34
RD
27539 }
27540 {
4fe9ce47 27541 result = (bool)((wxGraphicsPath const *)arg1)->Contains((wxPoint2D const &)*arg2,arg3);
70d7cb34
RD
27542 if (PyErr_Occurred()) SWIG_fail;
27543 }
5c8c7dd3
RD
27544 {
27545 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
70d7cb34
RD
27546 }
27547 return resultobj;
27548fail:
27549 return NULL;
27550}
27551
27552
5c8c7dd3
RD
27553SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) {
27554 int argc;
27555 PyObject *argv[5];
70d7cb34 27556
5c8c7dd3
RD
27557 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail;
27558 --argc;
27559 if ((argc >= 2) && (argc <= 3)) {
27560 int _v = 0;
27561 {
4fe9ce47
RD
27562 {
27563 _v = wxPySimple_typecheck(argv[1], wxT("wxPoint2D"), 2);
27564 }
5c8c7dd3
RD
27565 }
27566 if (!_v) goto check_1;
27567 if (argc > 2) {
27568 {
27569 {
27570 int res = SWIG_AsVal_int(argv[2], NULL);
27571 _v = SWIG_CheckState(res);
27572 }
27573 }
27574 if (!_v) goto check_1;
27575 }
27576 return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv);
70d7cb34 27577 }
5c8c7dd3
RD
27578check_1:
27579
27580 if ((argc >= 3) && (argc <= 4)) {
27581 return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv);
70d7cb34 27582 }
5c8c7dd3 27583
70d7cb34 27584fail:
5c8c7dd3 27585 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'");
70d7cb34
RD
27586 return NULL;
27587}
27588
27589
5c8c7dd3 27590SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
70d7cb34
RD
27591 PyObject *obj;
27592 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5c8c7dd3 27593 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
70d7cb34
RD
27594 return SWIG_Py_Void();
27595}
27596
8f514ab4
RD
27597SWIGINTERN PyObject *GraphicsPath_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27598 return SWIG_Python_InitShadowInstance(args);
27599}
27600
5c8c7dd3
RD
27601SWIGINTERN int NullGraphicsPen_set(PyObject *) {
27602 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only.");
27603 return 1;
27604}
27605
27606
27607SWIGINTERN PyObject *NullGraphicsPen_get(void) {
27608 PyObject *pyobj = 0;
27609
27610 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 );
27611 return pyobj;
27612}
27613
27614
27615SWIGINTERN int NullGraphicsBrush_set(PyObject *) {
27616 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only.");
27617 return 1;
27618}
27619
27620
27621SWIGINTERN PyObject *NullGraphicsBrush_get(void) {
27622 PyObject *pyobj = 0;
27623
27624 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 );
27625 return pyobj;
27626}
27627
27628
27629SWIGINTERN int NullGraphicsFont_set(PyObject *) {
27630 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only.");
27631 return 1;
27632}
27633
27634
27635SWIGINTERN PyObject *NullGraphicsFont_get(void) {
27636 PyObject *pyobj = 0;
27637
27638 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 );
27639 return pyobj;
27640}
27641
27642
27643SWIGINTERN int NullGraphicsMatrix_set(PyObject *) {
27644 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsMatrix is read-only.");
27645 return 1;
27646}
27647
27648
27649SWIGINTERN PyObject *NullGraphicsMatrix_get(void) {
27650 PyObject *pyobj = 0;
27651
27652 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsMatrix), SWIGTYPE_p_wxGraphicsMatrix, 0 );
27653 return pyobj;
27654}
27655
27656
27657SWIGINTERN int NullGraphicsPath_set(PyObject *) {
27658 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPath is read-only.");
27659 return 1;
27660}
27661
27662
27663SWIGINTERN PyObject *NullGraphicsPath_get(void) {
27664 PyObject *pyobj = 0;
27665
27666 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPath), SWIGTYPE_p_wxGraphicsPath, 0 );
27667 return pyobj;
27668}
27669
27670
70d7cb34
RD
27671SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27672 PyObject *resultobj = 0;
27673 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27674 void *argp1 = 0 ;
27675 int res1 = 0 ;
27676 PyObject *swig_obj[1] ;
27677
27678 if (!args) SWIG_fail;
27679 swig_obj[0] = args;
27680 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
27681 if (!SWIG_IsOK(res1)) {
27682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27683 }
27684 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27685 {
27686 delete arg1;
27687
27688 if (PyErr_Occurred()) SWIG_fail;
27689 }
27690 resultobj = SWIG_Py_Void();
27691 return resultobj;
27692fail:
27693 return NULL;
27694}
27695
27696
27697SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27698 PyObject *resultobj = 0;
27699 wxWindowDC *arg1 = 0 ;
27700 wxGraphicsContext *result = 0 ;
27701 void *argp1 = 0 ;
27702 int res1 = 0 ;
27703
27704 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27705 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
27706 if (!SWIG_IsOK(res1)) {
27707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27708 }
27709 if (!argp1) {
27710 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27711 }
27712 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
27713 {
27714 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
27715 if (PyErr_Occurred()) SWIG_fail;
27716 }
27717 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27718 return resultobj;
27719fail:
27720 return NULL;
27721}
27722
27723
27724SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27725 PyObject *resultobj = 0;
27726 wxWindow *arg1 = (wxWindow *) 0 ;
27727 wxGraphicsContext *result = 0 ;
27728 void *argp1 = 0 ;
27729 int res1 = 0 ;
27730
27731 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27732 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
27733 if (!SWIG_IsOK(res1)) {
27734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
27735 }
27736 arg1 = reinterpret_cast< wxWindow * >(argp1);
27737 {
27738 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
27739 if (PyErr_Occurred()) SWIG_fail;
27740 }
27741 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27742 return resultobj;
27743fail:
27744 return NULL;
27745}
27746
27747
27748SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
27749 int argc;
27750 PyObject *argv[2];
27751
27752 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
27753 --argc;
27754 if (argc == 1) {
27755 int _v = 0;
27756 {
27757 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
27758 _v = SWIG_CheckState(res);
27759 }
27760 if (!_v) goto check_1;
27761 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
27762 }
27763check_1:
27764
27765 if (argc == 1) {
27766 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
27767 }
27768
27769fail:
27770 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
27771 return NULL;
27772}
27773
27774
f89238b9
RD
27775SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27776 PyObject *resultobj = 0;
27777 wxGraphicsContext *result = 0 ;
27778
27779 if (!SWIG_Python_UnpackTuple(args,"GraphicsContext_CreateMeasuringContext",0,0,0)) SWIG_fail;
27780 {
27781 result = (wxGraphicsContext *)wxGraphicsContext::Create();
27782 if (PyErr_Occurred()) SWIG_fail;
27783 }
27784 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27785 return resultobj;
27786fail:
27787 return NULL;
27788}
27789
27790
70d7cb34
RD
27791SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27792 PyObject *resultobj = 0;
27793 void *arg1 = (void *) 0 ;
27794 wxGraphicsContext *result = 0 ;
27795 int res1 ;
27796 PyObject * obj0 = 0 ;
27797 char * kwnames[] = {
27798 (char *) "context", NULL
27799 };
27800
27801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
27802 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
27803 if (!SWIG_IsOK(res1)) {
27804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
27805 }
27806 {
27807 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
27808 if (PyErr_Occurred()) SWIG_fail;
27809 }
27810 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27811 return resultobj;
27812fail:
27813 return NULL;
27814}
27815
27816
27817SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27818 PyObject *resultobj = 0;
27819 void *arg1 = (void *) 0 ;
27820 wxGraphicsContext *result = 0 ;
27821 int res1 ;
27822 PyObject * obj0 = 0 ;
27823 char * kwnames[] = {
27824 (char *) "window", NULL
27825 };
27826
27827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail;
27828 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
27829 if (!SWIG_IsOK(res1)) {
27830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'");
27831 }
27832 {
27833 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1);
27834 if (PyErr_Occurred()) SWIG_fail;
27835 }
27836 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27837 return resultobj;
27838fail:
27839 return NULL;
27840}
27841
27842
27843SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27844 PyObject *resultobj = 0;
27845 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 27846 wxGraphicsPath result;
70d7cb34
RD
27847 void *argp1 = 0 ;
27848 int res1 = 0 ;
27849 PyObject *swig_obj[1] ;
27850
27851 if (!args) SWIG_fail;
27852 swig_obj[0] = args;
27853 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27854 if (!SWIG_IsOK(res1)) {
27855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27856 }
27857 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27858 {
5c8c7dd3 27859 result = (arg1)->CreatePath();
70d7cb34
RD
27860 if (PyErr_Occurred()) SWIG_fail;
27861 }
5c8c7dd3 27862 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27863 return resultobj;
27864fail:
27865 return NULL;
27866}
27867
27868
70d7cb34 27869SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27870 PyObject *resultobj = 0;
70d7cb34
RD
27871 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27872 wxPen *arg2 = 0 ;
27873 wxGraphicsPen result;
72ef6efb
RD
27874 void *argp1 = 0 ;
27875 int res1 = 0 ;
70d7cb34
RD
27876 void *argp2 = 0 ;
27877 int res2 = 0 ;
72ef6efb
RD
27878 PyObject * obj0 = 0 ;
27879 PyObject * obj1 = 0 ;
72ef6efb 27880 char * kwnames[] = {
70d7cb34 27881 (char *) "self",(char *) "pen", NULL
72ef6efb
RD
27882 };
27883
70d7cb34
RD
27884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
27885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27886 if (!SWIG_IsOK(res1)) {
70d7cb34 27887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27888 }
70d7cb34
RD
27889 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27890 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
27891 if (!SWIG_IsOK(res2)) {
27892 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
27893 }
27894 if (!argp2) {
27895 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
27896 }
27897 arg2 = reinterpret_cast< wxPen * >(argp2);
72ef6efb 27898 {
70d7cb34 27899 result = (arg1)->CreatePen((wxPen const &)*arg2);
72ef6efb
RD
27900 if (PyErr_Occurred()) SWIG_fail;
27901 }
70d7cb34 27902 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27903 return resultobj;
27904fail:
27905 return NULL;
27906}
27907
27908
70d7cb34 27909SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27910 PyObject *resultobj = 0;
70d7cb34
RD
27911 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27912 wxBrush *arg2 = 0 ;
27913 wxGraphicsBrush result;
72ef6efb
RD
27914 void *argp1 = 0 ;
27915 int res1 = 0 ;
70d7cb34
RD
27916 void *argp2 = 0 ;
27917 int res2 = 0 ;
72ef6efb
RD
27918 PyObject * obj0 = 0 ;
27919 PyObject * obj1 = 0 ;
72ef6efb 27920 char * kwnames[] = {
70d7cb34 27921 (char *) "self",(char *) "brush", NULL
72ef6efb
RD
27922 };
27923
70d7cb34
RD
27924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
27925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27926 if (!SWIG_IsOK(res1)) {
70d7cb34 27927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27928 }
70d7cb34
RD
27929 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27930 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
27931 if (!SWIG_IsOK(res2)) {
27932 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27933 }
27934 if (!argp2) {
27935 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27936 }
27937 arg2 = reinterpret_cast< wxBrush * >(argp2);
72ef6efb 27938 {
70d7cb34 27939 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
72ef6efb
RD
27940 if (PyErr_Occurred()) SWIG_fail;
27941 }
70d7cb34 27942 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
27943 return resultobj;
27944fail:
27945 return NULL;
27946}
27947
27948
70d7cb34 27949SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 27950 PyObject *resultobj = 0;
70d7cb34 27951 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
72ef6efb
RD
27952 wxDouble arg2 ;
27953 wxDouble arg3 ;
27954 wxDouble arg4 ;
27955 wxDouble arg5 ;
70d7cb34
RD
27956 wxColour *arg6 = 0 ;
27957 wxColour *arg7 = 0 ;
27958 wxGraphicsBrush result;
72ef6efb
RD
27959 void *argp1 = 0 ;
27960 int res1 = 0 ;
27961 double val2 ;
27962 int ecode2 = 0 ;
27963 double val3 ;
27964 int ecode3 = 0 ;
27965 double val4 ;
27966 int ecode4 = 0 ;
27967 double val5 ;
27968 int ecode5 = 0 ;
70d7cb34
RD
27969 wxColour temp6 ;
27970 wxColour temp7 ;
72ef6efb
RD
27971 PyObject * obj0 = 0 ;
27972 PyObject * obj1 = 0 ;
27973 PyObject * obj2 = 0 ;
27974 PyObject * obj3 = 0 ;
27975 PyObject * obj4 = 0 ;
70d7cb34
RD
27976 PyObject * obj5 = 0 ;
27977 PyObject * obj6 = 0 ;
72ef6efb 27978 char * kwnames[] = {
70d7cb34 27979 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
72ef6efb
RD
27980 };
27981
70d7cb34
RD
27982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 27984 if (!SWIG_IsOK(res1)) {
70d7cb34 27985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 27986 }
70d7cb34 27987 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
72ef6efb
RD
27988 ecode2 = SWIG_AsVal_double(obj1, &val2);
27989 if (!SWIG_IsOK(ecode2)) {
70d7cb34 27990 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
27991 }
27992 arg2 = static_cast< wxDouble >(val2);
27993 ecode3 = SWIG_AsVal_double(obj2, &val3);
27994 if (!SWIG_IsOK(ecode3)) {
70d7cb34 27995 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
27996 }
27997 arg3 = static_cast< wxDouble >(val3);
27998 ecode4 = SWIG_AsVal_double(obj3, &val4);
27999 if (!SWIG_IsOK(ecode4)) {
70d7cb34 28000 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
28001 }
28002 arg4 = static_cast< wxDouble >(val4);
28003 ecode5 = SWIG_AsVal_double(obj4, &val5);
28004 if (!SWIG_IsOK(ecode5)) {
70d7cb34 28005 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
28006 }
28007 arg5 = static_cast< wxDouble >(val5);
28008 {
70d7cb34
RD
28009 arg6 = &temp6;
28010 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
72ef6efb 28011 }
70d7cb34
RD
28012 {
28013 arg7 = &temp7;
28014 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
72ef6efb 28015 }
72ef6efb 28016 {
70d7cb34 28017 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
28018 if (PyErr_Occurred()) SWIG_fail;
28019 }
70d7cb34 28020 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28021 return resultobj;
28022fail:
28023 return NULL;
28024}
28025
28026
70d7cb34 28027SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 28028 PyObject *resultobj = 0;
70d7cb34 28029 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
72ef6efb
RD
28030 wxDouble arg2 ;
28031 wxDouble arg3 ;
28032 wxDouble arg4 ;
28033 wxDouble arg5 ;
28034 wxDouble arg6 ;
70d7cb34
RD
28035 wxColour *arg7 = 0 ;
28036 wxColour *arg8 = 0 ;
28037 wxGraphicsBrush result;
72ef6efb
RD
28038 void *argp1 = 0 ;
28039 int res1 = 0 ;
28040 double val2 ;
28041 int ecode2 = 0 ;
28042 double val3 ;
28043 int ecode3 = 0 ;
28044 double val4 ;
28045 int ecode4 = 0 ;
28046 double val5 ;
28047 int ecode5 = 0 ;
28048 double val6 ;
28049 int ecode6 = 0 ;
70d7cb34
RD
28050 wxColour temp7 ;
28051 wxColour temp8 ;
72ef6efb
RD
28052 PyObject * obj0 = 0 ;
28053 PyObject * obj1 = 0 ;
28054 PyObject * obj2 = 0 ;
28055 PyObject * obj3 = 0 ;
28056 PyObject * obj4 = 0 ;
28057 PyObject * obj5 = 0 ;
70d7cb34
RD
28058 PyObject * obj6 = 0 ;
28059 PyObject * obj7 = 0 ;
72ef6efb 28060 char * kwnames[] = {
70d7cb34 28061 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
72ef6efb
RD
28062 };
28063
70d7cb34
RD
28064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28065 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28066 if (!SWIG_IsOK(res1)) {
70d7cb34 28067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb 28068 }
70d7cb34 28069 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
72ef6efb
RD
28070 ecode2 = SWIG_AsVal_double(obj1, &val2);
28071 if (!SWIG_IsOK(ecode2)) {
70d7cb34 28072 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
28073 }
28074 arg2 = static_cast< wxDouble >(val2);
28075 ecode3 = SWIG_AsVal_double(obj2, &val3);
28076 if (!SWIG_IsOK(ecode3)) {
70d7cb34 28077 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
28078 }
28079 arg3 = static_cast< wxDouble >(val3);
28080 ecode4 = SWIG_AsVal_double(obj3, &val4);
28081 if (!SWIG_IsOK(ecode4)) {
70d7cb34 28082 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
28083 }
28084 arg4 = static_cast< wxDouble >(val4);
28085 ecode5 = SWIG_AsVal_double(obj4, &val5);
28086 if (!SWIG_IsOK(ecode5)) {
70d7cb34 28087 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
28088 }
28089 arg5 = static_cast< wxDouble >(val5);
28090 ecode6 = SWIG_AsVal_double(obj5, &val6);
28091 if (!SWIG_IsOK(ecode6)) {
70d7cb34 28092 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
72ef6efb
RD
28093 }
28094 arg6 = static_cast< wxDouble >(val6);
28095 {
70d7cb34
RD
28096 arg7 = &temp7;
28097 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
28098 }
28099 {
28100 arg8 = &temp8;
28101 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
28102 }
28103 {
28104 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
28105 if (PyErr_Occurred()) SWIG_fail;
28106 }
70d7cb34 28107 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28108 return resultobj;
28109fail:
28110 return NULL;
28111}
28112
28113
70d7cb34 28114SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28115 PyObject *resultobj = 0;
28116 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34
RD
28117 wxFont *arg2 = 0 ;
28118 wxColour const &arg3_defvalue = *wxBLACK ;
28119 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
28120 wxGraphicsFont result;
72ef6efb
RD
28121 void *argp1 = 0 ;
28122 int res1 = 0 ;
70d7cb34
RD
28123 void *argp2 = 0 ;
28124 int res2 = 0 ;
28125 wxColour temp3 ;
28126 PyObject * obj0 = 0 ;
28127 PyObject * obj1 = 0 ;
28128 PyObject * obj2 = 0 ;
28129 char * kwnames[] = {
28130 (char *) "self",(char *) "font",(char *) "col", NULL
28131 };
72ef6efb 28132
70d7cb34
RD
28133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28135 if (!SWIG_IsOK(res1)) {
70d7cb34 28136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28137 }
28138 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
28139 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
28140 if (!SWIG_IsOK(res2)) {
28141 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
72ef6efb 28142 }
70d7cb34
RD
28143 if (!argp2) {
28144 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
72ef6efb 28145 }
70d7cb34
RD
28146 arg2 = reinterpret_cast< wxFont * >(argp2);
28147 if (obj2) {
28148 {
28149 arg3 = &temp3;
28150 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28151 }
72ef6efb 28152 }
72ef6efb 28153 {
70d7cb34 28154 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
72ef6efb
RD
28155 if (PyErr_Occurred()) SWIG_fail;
28156 }
70d7cb34 28157 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28158 return resultobj;
28159fail:
28160 return NULL;
28161}
28162
28163
70d7cb34 28164SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
0a27f394 28165 PyObject *resultobj = 0;
70d7cb34
RD
28166 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28167 wxDouble arg2 = (wxDouble) 1.0 ;
28168 wxDouble arg3 = (wxDouble) 0.0 ;
28169 wxDouble arg4 = (wxDouble) 0.0 ;
28170 wxDouble arg5 = (wxDouble) 1.0 ;
28171 wxDouble arg6 = (wxDouble) 0.0 ;
28172 wxDouble arg7 = (wxDouble) 0.0 ;
5c8c7dd3 28173 wxGraphicsMatrix result;
0a27f394
RD
28174 void *argp1 = 0 ;
28175 int res1 = 0 ;
70d7cb34
RD
28176 double val2 ;
28177 int ecode2 = 0 ;
28178 double val3 ;
28179 int ecode3 = 0 ;
28180 double val4 ;
28181 int ecode4 = 0 ;
28182 double val5 ;
28183 int ecode5 = 0 ;
28184 double val6 ;
28185 int ecode6 = 0 ;
28186 double val7 ;
28187 int ecode7 = 0 ;
28188 PyObject * obj0 = 0 ;
28189 PyObject * obj1 = 0 ;
28190 PyObject * obj2 = 0 ;
28191 PyObject * obj3 = 0 ;
28192 PyObject * obj4 = 0 ;
28193 PyObject * obj5 = 0 ;
28194 PyObject * obj6 = 0 ;
28195 char * kwnames[] = {
28196 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
28197 };
0a27f394 28198
70d7cb34
RD
28199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
0a27f394 28201 if (!SWIG_IsOK(res1)) {
70d7cb34 28202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
0a27f394 28203 }
70d7cb34
RD
28204 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28205 if (obj1) {
28206 ecode2 = SWIG_AsVal_double(obj1, &val2);
28207 if (!SWIG_IsOK(ecode2)) {
28208 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
28209 }
28210 arg2 = static_cast< wxDouble >(val2);
0a27f394 28211 }
70d7cb34
RD
28212 if (obj2) {
28213 ecode3 = SWIG_AsVal_double(obj2, &val3);
28214 if (!SWIG_IsOK(ecode3)) {
28215 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
28216 }
28217 arg3 = static_cast< wxDouble >(val3);
0a27f394 28218 }
70d7cb34
RD
28219 if (obj3) {
28220 ecode4 = SWIG_AsVal_double(obj3, &val4);
28221 if (!SWIG_IsOK(ecode4)) {
28222 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
28223 }
28224 arg4 = static_cast< wxDouble >(val4);
0a27f394 28225 }
70d7cb34
RD
28226 if (obj4) {
28227 ecode5 = SWIG_AsVal_double(obj4, &val5);
28228 if (!SWIG_IsOK(ecode5)) {
28229 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
28230 }
28231 arg5 = static_cast< wxDouble >(val5);
0a27f394 28232 }
70d7cb34
RD
28233 if (obj5) {
28234 ecode6 = SWIG_AsVal_double(obj5, &val6);
28235 if (!SWIG_IsOK(ecode6)) {
28236 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
28237 }
28238 arg6 = static_cast< wxDouble >(val6);
0a27f394 28239 }
70d7cb34
RD
28240 if (obj6) {
28241 ecode7 = SWIG_AsVal_double(obj6, &val7);
28242 if (!SWIG_IsOK(ecode7)) {
28243 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
28244 }
28245 arg7 = static_cast< wxDouble >(val7);
72ef6efb 28246 }
72ef6efb 28247 {
5c8c7dd3 28248 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
28249 if (PyErr_Occurred()) SWIG_fail;
28250 }
5c8c7dd3 28251 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
28252 return resultobj;
28253fail:
28254 return NULL;
28255}
28256
28257
28258SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28259 PyObject *resultobj = 0;
28260 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28261 void *argp1 = 0 ;
28262 int res1 = 0 ;
28263 PyObject *swig_obj[1] ;
28264
28265 if (!args) SWIG_fail;
28266 swig_obj[0] = args;
28267 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28268 if (!SWIG_IsOK(res1)) {
28269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28270 }
28271 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28272 {
72ef6efb 28273 (arg1)->PushState();
72ef6efb
RD
28274 if (PyErr_Occurred()) SWIG_fail;
28275 }
28276 resultobj = SWIG_Py_Void();
28277 return resultobj;
28278fail:
28279 return NULL;
28280}
28281
28282
28283SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28284 PyObject *resultobj = 0;
28285 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28286 void *argp1 = 0 ;
28287 int res1 = 0 ;
28288 PyObject *swig_obj[1] ;
28289
28290 if (!args) SWIG_fail;
28291 swig_obj[0] = args;
28292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28293 if (!SWIG_IsOK(res1)) {
28294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28295 }
28296 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28297 {
72ef6efb 28298 (arg1)->PopState();
72ef6efb
RD
28299 if (PyErr_Occurred()) SWIG_fail;
28300 }
28301 resultobj = SWIG_Py_Void();
28302 return resultobj;
28303fail:
28304 return NULL;
28305}
28306
28307
0a27f394 28308SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
28309 PyObject *resultobj = 0;
28310 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28311 wxRegion *arg2 = 0 ;
28312 void *argp1 = 0 ;
28313 int res1 = 0 ;
28314 void *argp2 = 0 ;
28315 int res2 = 0 ;
28316 PyObject * obj0 = 0 ;
28317 PyObject * obj1 = 0 ;
28318 char * kwnames[] = {
28319 (char *) "self",(char *) "region", NULL
28320 };
28321
0a27f394 28322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
28323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28324 if (!SWIG_IsOK(res1)) {
0a27f394 28325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28326 }
28327 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28328 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
28329 if (!SWIG_IsOK(res2)) {
0a27f394 28330 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
28331 }
28332 if (!argp2) {
0a27f394 28333 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
72ef6efb
RD
28334 }
28335 arg2 = reinterpret_cast< wxRegion * >(argp2);
28336 {
72ef6efb 28337 (arg1)->Clip((wxRegion const &)*arg2);
72ef6efb
RD
28338 if (PyErr_Occurred()) SWIG_fail;
28339 }
28340 resultobj = SWIG_Py_Void();
28341 return resultobj;
28342fail:
28343 return NULL;
28344}
28345
28346
0a27f394
RD
28347SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28348 PyObject *resultobj = 0;
28349 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28350 wxDouble arg2 ;
28351 wxDouble arg3 ;
28352 wxDouble arg4 ;
28353 wxDouble arg5 ;
28354 void *argp1 = 0 ;
28355 int res1 = 0 ;
28356 double val2 ;
28357 int ecode2 = 0 ;
28358 double val3 ;
28359 int ecode3 = 0 ;
28360 double val4 ;
28361 int ecode4 = 0 ;
28362 double val5 ;
28363 int ecode5 = 0 ;
28364 PyObject * obj0 = 0 ;
28365 PyObject * obj1 = 0 ;
28366 PyObject * obj2 = 0 ;
28367 PyObject * obj3 = 0 ;
28368 PyObject * obj4 = 0 ;
28369 char * kwnames[] = {
28370 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
28371 };
28372
28373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28375 if (!SWIG_IsOK(res1)) {
28376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28377 }
28378 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28379 ecode2 = SWIG_AsVal_double(obj1, &val2);
28380 if (!SWIG_IsOK(ecode2)) {
28381 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
28382 }
28383 arg2 = static_cast< wxDouble >(val2);
28384 ecode3 = SWIG_AsVal_double(obj2, &val3);
28385 if (!SWIG_IsOK(ecode3)) {
28386 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
28387 }
28388 arg3 = static_cast< wxDouble >(val3);
28389 ecode4 = SWIG_AsVal_double(obj3, &val4);
28390 if (!SWIG_IsOK(ecode4)) {
28391 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
28392 }
28393 arg4 = static_cast< wxDouble >(val4);
28394 ecode5 = SWIG_AsVal_double(obj4, &val5);
28395 if (!SWIG_IsOK(ecode5)) {
28396 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
28397 }
28398 arg5 = static_cast< wxDouble >(val5);
28399 {
28400 (arg1)->Clip(arg2,arg3,arg4,arg5);
28401 if (PyErr_Occurred()) SWIG_fail;
28402 }
28403 resultobj = SWIG_Py_Void();
28404 return resultobj;
28405fail:
28406 return NULL;
28407}
28408
28409
28410SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28411 PyObject *resultobj = 0;
28412 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28413 void *argp1 = 0 ;
28414 int res1 = 0 ;
28415 PyObject *swig_obj[1] ;
28416
28417 if (!args) SWIG_fail;
28418 swig_obj[0] = args;
28419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28420 if (!SWIG_IsOK(res1)) {
28421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28422 }
28423 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28424 {
28425 (arg1)->ResetClip();
28426 if (PyErr_Occurred()) SWIG_fail;
28427 }
28428 resultobj = SWIG_Py_Void();
28429 return resultobj;
28430fail:
28431 return NULL;
28432}
28433
28434
28435SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28436 PyObject *resultobj = 0;
28437 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28438 void *result = 0 ;
28439 void *argp1 = 0 ;
28440 int res1 = 0 ;
28441 PyObject *swig_obj[1] ;
28442
28443 if (!args) SWIG_fail;
28444 swig_obj[0] = args;
28445 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28446 if (!SWIG_IsOK(res1)) {
28447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28448 }
28449 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28450 {
28451 result = (void *)(arg1)->GetNativeContext();
28452 if (PyErr_Occurred()) SWIG_fail;
28453 }
28454 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
28455 return resultobj;
28456fail:
28457 return NULL;
28458}
28459
28460
c8aaaf9e
RD
28461SWIGINTERN PyObject *_wrap_GraphicsContext_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28462 PyObject *resultobj = 0;
28463 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28464 int result;
28465 void *argp1 = 0 ;
28466 int res1 = 0 ;
28467 PyObject *swig_obj[1] ;
28468
28469 if (!args) SWIG_fail;
28470 swig_obj[0] = args;
28471 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28472 if (!SWIG_IsOK(res1)) {
28473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetLogicalFunction" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
28474 }
28475 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28476 {
28477 result = (int)((wxGraphicsContext const *)arg1)->GetLogicalFunction();
28478 if (PyErr_Occurred()) SWIG_fail;
28479 }
28480 resultobj = SWIG_From_int(static_cast< int >(result));
28481 return resultobj;
28482fail:
28483 return NULL;
28484}
28485
28486
28487SWIGINTERN PyObject *_wrap_GraphicsContext_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28488 PyObject *resultobj = 0;
28489 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28490 int arg2 ;
28491 bool result;
28492 void *argp1 = 0 ;
28493 int res1 = 0 ;
28494 int val2 ;
28495 int ecode2 = 0 ;
28496 PyObject * obj0 = 0 ;
28497 PyObject * obj1 = 0 ;
28498 char * kwnames[] = {
28499 (char *) "self",(char *) "function", NULL
28500 };
28501
28502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
28503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28504 if (!SWIG_IsOK(res1)) {
28505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetLogicalFunction" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28506 }
28507 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28508 ecode2 = SWIG_AsVal_int(obj1, &val2);
28509 if (!SWIG_IsOK(ecode2)) {
28510 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
28511 }
28512 arg2 = static_cast< int >(val2);
28513 {
28514 result = (bool)(arg1)->SetLogicalFunction(arg2);
28515 if (PyErr_Occurred()) SWIG_fail;
28516 }
28517 {
28518 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28519 }
28520 return resultobj;
28521fail:
28522 return NULL;
28523}
28524
28525
72ef6efb
RD
28526SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28527 PyObject *resultobj = 0;
28528 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28529 wxDouble arg2 ;
28530 wxDouble arg3 ;
28531 void *argp1 = 0 ;
28532 int res1 = 0 ;
28533 double val2 ;
28534 int ecode2 = 0 ;
28535 double val3 ;
28536 int ecode3 = 0 ;
28537 PyObject * obj0 = 0 ;
28538 PyObject * obj1 = 0 ;
28539 PyObject * obj2 = 0 ;
28540 char * kwnames[] = {
28541 (char *) "self",(char *) "dx",(char *) "dy", NULL
28542 };
28543
28544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28546 if (!SWIG_IsOK(res1)) {
28547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28548 }
28549 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28550 ecode2 = SWIG_AsVal_double(obj1, &val2);
28551 if (!SWIG_IsOK(ecode2)) {
28552 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
28553 }
28554 arg2 = static_cast< wxDouble >(val2);
28555 ecode3 = SWIG_AsVal_double(obj2, &val3);
28556 if (!SWIG_IsOK(ecode3)) {
28557 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
28558 }
28559 arg3 = static_cast< wxDouble >(val3);
28560 {
72ef6efb 28561 (arg1)->Translate(arg2,arg3);
72ef6efb
RD
28562 if (PyErr_Occurred()) SWIG_fail;
28563 }
28564 resultobj = SWIG_Py_Void();
28565 return resultobj;
28566fail:
28567 return NULL;
28568}
28569
28570
28571SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28572 PyObject *resultobj = 0;
28573 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28574 wxDouble arg2 ;
28575 wxDouble arg3 ;
28576 void *argp1 = 0 ;
28577 int res1 = 0 ;
28578 double val2 ;
28579 int ecode2 = 0 ;
28580 double val3 ;
28581 int ecode3 = 0 ;
28582 PyObject * obj0 = 0 ;
28583 PyObject * obj1 = 0 ;
28584 PyObject * obj2 = 0 ;
28585 char * kwnames[] = {
28586 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
28587 };
28588
28589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28591 if (!SWIG_IsOK(res1)) {
28592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28593 }
28594 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28595 ecode2 = SWIG_AsVal_double(obj1, &val2);
28596 if (!SWIG_IsOK(ecode2)) {
28597 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
28598 }
28599 arg2 = static_cast< wxDouble >(val2);
28600 ecode3 = SWIG_AsVal_double(obj2, &val3);
28601 if (!SWIG_IsOK(ecode3)) {
28602 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
28603 }
28604 arg3 = static_cast< wxDouble >(val3);
28605 {
72ef6efb 28606 (arg1)->Scale(arg2,arg3);
72ef6efb
RD
28607 if (PyErr_Occurred()) SWIG_fail;
28608 }
28609 resultobj = SWIG_Py_Void();
28610 return resultobj;
28611fail:
28612 return NULL;
28613}
28614
28615
28616SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28617 PyObject *resultobj = 0;
28618 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28619 wxDouble arg2 ;
28620 void *argp1 = 0 ;
28621 int res1 = 0 ;
28622 double val2 ;
28623 int ecode2 = 0 ;
28624 PyObject * obj0 = 0 ;
28625 PyObject * obj1 = 0 ;
28626 char * kwnames[] = {
28627 (char *) "self",(char *) "angle", NULL
28628 };
28629
28630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
28631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28632 if (!SWIG_IsOK(res1)) {
28633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28634 }
28635 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28636 ecode2 = SWIG_AsVal_double(obj1, &val2);
28637 if (!SWIG_IsOK(ecode2)) {
28638 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
28639 }
28640 arg2 = static_cast< wxDouble >(val2);
28641 {
72ef6efb 28642 (arg1)->Rotate(arg2);
72ef6efb
RD
28643 if (PyErr_Occurred()) SWIG_fail;
28644 }
28645 resultobj = SWIG_Py_Void();
28646 return resultobj;
28647fail:
28648 return NULL;
28649}
28650
28651
5c8c7dd3
RD
28652SWIGINTERN PyObject *_wrap_GraphicsContext_ConcatTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28653 PyObject *resultobj = 0;
28654 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28655 wxGraphicsMatrix *arg2 = 0 ;
28656 void *argp1 = 0 ;
28657 int res1 = 0 ;
28658 void *argp2 = 0 ;
28659 int res2 = 0 ;
28660 PyObject * obj0 = 0 ;
28661 PyObject * obj1 = 0 ;
28662 char * kwnames[] = {
28663 (char *) "self",(char *) "matrix", NULL
28664 };
28665
28666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ConcatTransform",kwnames,&obj0,&obj1)) SWIG_fail;
28667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28668 if (!SWIG_IsOK(res1)) {
28669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28670 }
28671 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28672 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28673 if (!SWIG_IsOK(res2)) {
28674 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28675 }
28676 if (!argp2) {
28677 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28678 }
28679 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28680 {
28681 (arg1)->ConcatTransform((wxGraphicsMatrix const &)*arg2);
28682 if (PyErr_Occurred()) SWIG_fail;
28683 }
28684 resultobj = SWIG_Py_Void();
28685 return resultobj;
28686fail:
28687 return NULL;
28688}
28689
28690
28691SWIGINTERN PyObject *_wrap_GraphicsContext_SetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28692 PyObject *resultobj = 0;
28693 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28694 wxGraphicsMatrix *arg2 = 0 ;
28695 void *argp1 = 0 ;
28696 int res1 = 0 ;
28697 void *argp2 = 0 ;
28698 int res2 = 0 ;
28699 PyObject * obj0 = 0 ;
28700 PyObject * obj1 = 0 ;
28701 char * kwnames[] = {
28702 (char *) "self",(char *) "matrix", NULL
28703 };
28704
28705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTransform",kwnames,&obj0,&obj1)) SWIG_fail;
28706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28707 if (!SWIG_IsOK(res1)) {
28708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28709 }
28710 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28711 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0);
28712 if (!SWIG_IsOK(res2)) {
28713 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28714 }
28715 if (!argp2) {
28716 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'");
28717 }
28718 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
28719 {
28720 (arg1)->SetTransform((wxGraphicsMatrix const &)*arg2);
28721 if (PyErr_Occurred()) SWIG_fail;
28722 }
28723 resultobj = SWIG_Py_Void();
28724 return resultobj;
28725fail:
28726 return NULL;
28727}
28728
28729
28730SWIGINTERN PyObject *_wrap_GraphicsContext_GetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28731 PyObject *resultobj = 0;
28732 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28733 wxGraphicsMatrix result;
28734 void *argp1 = 0 ;
28735 int res1 = 0 ;
28736 PyObject *swig_obj[1] ;
28737
28738 if (!args) SWIG_fail;
28739 swig_obj[0] = args;
28740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28741 if (!SWIG_IsOK(res1)) {
28742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
28743 }
28744 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28745 {
28746 result = ((wxGraphicsContext const *)arg1)->GetTransform();
28747 if (PyErr_Occurred()) SWIG_fail;
28748 }
28749 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
28750 return resultobj;
28751fail:
28752 return NULL;
28753}
28754
28755
70d7cb34
RD
28756SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28757 PyObject *resultobj = 0;
28758 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28759 wxGraphicsPen *arg2 = 0 ;
28760 void *argp1 = 0 ;
28761 int res1 = 0 ;
28762 void *argp2 = 0 ;
28763 int res2 = 0 ;
28764
28765 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28766 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28767 if (!SWIG_IsOK(res1)) {
28768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28769 }
28770 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28771 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0);
28772 if (!SWIG_IsOK(res2)) {
28773 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
28774 }
28775 if (!argp2) {
28776 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
28777 }
28778 arg2 = reinterpret_cast< wxGraphicsPen * >(argp2);
28779 {
28780 (arg1)->SetPen((wxGraphicsPen const &)*arg2);
28781 if (PyErr_Occurred()) SWIG_fail;
28782 }
28783 resultobj = SWIG_Py_Void();
28784 return resultobj;
28785fail:
28786 return NULL;
28787}
28788
28789
28790SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28791 PyObject *resultobj = 0;
28792 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28793 wxPen *arg2 = 0 ;
28794 void *argp1 = 0 ;
28795 int res1 = 0 ;
28796 void *argp2 = 0 ;
28797 int res2 = 0 ;
72ef6efb 28798
70d7cb34
RD
28799 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28800 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28801 if (!SWIG_IsOK(res1)) {
28802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28803 }
28804 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 28805 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0);
72ef6efb
RD
28806 if (!SWIG_IsOK(res2)) {
28807 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28808 }
28809 if (!argp2) {
28810 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28811 }
28812 arg2 = reinterpret_cast< wxPen * >(argp2);
28813 {
72ef6efb 28814 (arg1)->SetPen((wxPen const &)*arg2);
72ef6efb
RD
28815 if (PyErr_Occurred()) SWIG_fail;
28816 }
28817 resultobj = SWIG_Py_Void();
28818 return resultobj;
28819fail:
28820 return NULL;
28821}
28822
28823
70d7cb34
RD
28824SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) {
28825 int argc;
28826 PyObject *argv[3];
28827
28828 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail;
28829 --argc;
28830 if (argc == 2) {
28831 int _v = 0;
28832 {
28833 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0);
28834 _v = SWIG_CheckState(res);
28835 }
28836 if (!_v) goto check_1;
28837 return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv);
28838 }
28839check_1:
28840
28841 if (argc == 2) {
28842 return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv);
28843 }
28844
28845fail:
28846 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'");
28847 return NULL;
28848}
28849
28850
28851SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28852 PyObject *resultobj = 0;
28853 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28854 wxGraphicsBrush *arg2 = 0 ;
28855 void *argp1 = 0 ;
28856 int res1 = 0 ;
28857 void *argp2 = 0 ;
28858 int res2 = 0 ;
28859
28860 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28861 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28862 if (!SWIG_IsOK(res1)) {
28863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28864 }
28865 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28866 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
28867 if (!SWIG_IsOK(res2)) {
28868 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
28869 }
28870 if (!argp2) {
28871 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
28872 }
28873 arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2);
28874 {
28875 (arg1)->SetBrush((wxGraphicsBrush const &)*arg2);
28876 if (PyErr_Occurred()) SWIG_fail;
28877 }
28878 resultobj = SWIG_Py_Void();
28879 return resultobj;
28880fail:
28881 return NULL;
28882}
28883
28884
28885SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28886 PyObject *resultobj = 0;
28887 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28888 wxBrush *arg2 = 0 ;
28889 void *argp1 = 0 ;
28890 int res1 = 0 ;
28891 void *argp2 = 0 ;
28892 int res2 = 0 ;
72ef6efb 28893
70d7cb34
RD
28894 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28895 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28896 if (!SWIG_IsOK(res1)) {
28897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28898 }
28899 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 28900 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
72ef6efb
RD
28901 if (!SWIG_IsOK(res2)) {
28902 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28903 }
28904 if (!argp2) {
28905 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28906 }
28907 arg2 = reinterpret_cast< wxBrush * >(argp2);
28908 {
72ef6efb 28909 (arg1)->SetBrush((wxBrush const &)*arg2);
72ef6efb
RD
28910 if (PyErr_Occurred()) SWIG_fail;
28911 }
28912 resultobj = SWIG_Py_Void();
28913 return resultobj;
28914fail:
28915 return NULL;
28916}
28917
28918
70d7cb34
RD
28919SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) {
28920 int argc;
28921 PyObject *argv[3];
72ef6efb 28922
70d7cb34
RD
28923 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail;
28924 --argc;
28925 if (argc == 2) {
28926 int _v = 0;
28927 {
28928 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0);
28929 _v = SWIG_CheckState(res);
28930 }
28931 if (!_v) goto check_1;
28932 return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv);
72ef6efb 28933 }
70d7cb34
RD
28934check_1:
28935
28936 if (argc == 2) {
28937 return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv);
72ef6efb 28938 }
70d7cb34 28939
72ef6efb 28940fail:
70d7cb34 28941 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'");
72ef6efb
RD
28942 return NULL;
28943}
28944
28945
70d7cb34 28946SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28947 PyObject *resultobj = 0;
28948 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34 28949 wxGraphicsFont *arg2 = 0 ;
72ef6efb
RD
28950 void *argp1 = 0 ;
28951 int res1 = 0 ;
70d7cb34
RD
28952 void *argp2 = 0 ;
28953 int res2 = 0 ;
72ef6efb 28954
70d7cb34
RD
28955 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28956 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 28957 if (!SWIG_IsOK(res1)) {
70d7cb34 28958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
28959 }
28960 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
28961 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0);
28962 if (!SWIG_IsOK(res2)) {
28963 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
72ef6efb 28964 }
70d7cb34
RD
28965 if (!argp2) {
28966 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
72ef6efb 28967 }
70d7cb34 28968 arg2 = reinterpret_cast< wxGraphicsFont * >(argp2);
72ef6efb 28969 {
70d7cb34 28970 (arg1)->SetFont((wxGraphicsFont const &)*arg2);
72ef6efb
RD
28971 if (PyErr_Occurred()) SWIG_fail;
28972 }
28973 resultobj = SWIG_Py_Void();
28974 return resultobj;
28975fail:
28976 return NULL;
28977}
28978
28979
70d7cb34 28980SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
28981 PyObject *resultobj = 0;
28982 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28983 wxFont *arg2 = 0 ;
70d7cb34
RD
28984 wxColour const &arg3_defvalue = *wxBLACK ;
28985 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
72ef6efb
RD
28986 void *argp1 = 0 ;
28987 int res1 = 0 ;
28988 void *argp2 = 0 ;
28989 int res2 = 0 ;
70d7cb34 28990 wxColour temp3 ;
72ef6efb 28991
70d7cb34
RD
28992 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
28993 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
28994 if (!SWIG_IsOK(res1)) {
28995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28996 }
28997 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34 28998 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0);
72ef6efb
RD
28999 if (!SWIG_IsOK(res2)) {
29000 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
29001 }
29002 if (!argp2) {
29003 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
29004 }
29005 arg2 = reinterpret_cast< wxFont * >(argp2);
70d7cb34
RD
29006 if (swig_obj[2]) {
29007 {
29008 arg3 = &temp3;
29009 if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail;
29010 }
29011 }
72ef6efb 29012 {
70d7cb34 29013 (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3);
72ef6efb
RD
29014 if (PyErr_Occurred()) SWIG_fail;
29015 }
29016 resultobj = SWIG_Py_Void();
29017 return resultobj;
29018fail:
29019 return NULL;
29020}
29021
29022
70d7cb34
RD
29023SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) {
29024 int argc;
29025 PyObject *argv[4];
72ef6efb 29026
70d7cb34
RD
29027 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail;
29028 --argc;
29029 if (argc == 2) {
29030 int _v = 0;
29031 {
29032 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0);
29033 _v = SWIG_CheckState(res);
29034 }
29035 if (!_v) goto check_1;
29036 return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv);
72ef6efb 29037 }
70d7cb34
RD
29038check_1:
29039
29040 if ((argc >= 2) && (argc <= 3)) {
29041 return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv);
72ef6efb 29042 }
70d7cb34 29043
72ef6efb 29044fail:
70d7cb34 29045 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'");
72ef6efb
RD
29046 return NULL;
29047}
29048
29049
29050SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29051 PyObject *resultobj = 0;
29052 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 29053 wxGraphicsPath *arg2 = 0 ;
72ef6efb
RD
29054 void *argp1 = 0 ;
29055 int res1 = 0 ;
29056 void *argp2 = 0 ;
29057 int res2 = 0 ;
29058 PyObject * obj0 = 0 ;
29059 PyObject * obj1 = 0 ;
29060 char * kwnames[] = {
29061 (char *) "self",(char *) "path", NULL
29062 };
29063
29064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
29065 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29066 if (!SWIG_IsOK(res1)) {
29067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29068 }
29069 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 29070 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 29071 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
29072 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29073 }
29074 if (!argp2) {
29075 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
29076 }
29077 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29078 {
5c8c7dd3 29079 (arg1)->StrokePath((wxGraphicsPath const &)*arg2);
72ef6efb
RD
29080 if (PyErr_Occurred()) SWIG_fail;
29081 }
29082 resultobj = SWIG_Py_Void();
29083 return resultobj;
29084fail:
29085 return NULL;
29086}
29087
29088
29089SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29090 PyObject *resultobj = 0;
29091 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 29092 wxGraphicsPath *arg2 = 0 ;
8f514ab4 29093 int arg3 = (int) wxODDEVEN_RULE ;
72ef6efb
RD
29094 void *argp1 = 0 ;
29095 int res1 = 0 ;
29096 void *argp2 = 0 ;
29097 int res2 = 0 ;
29098 int val3 ;
29099 int ecode3 = 0 ;
29100 PyObject * obj0 = 0 ;
29101 PyObject * obj1 = 0 ;
29102 PyObject * obj2 = 0 ;
29103 char * kwnames[] = {
29104 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
29105 };
29106
29107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29109 if (!SWIG_IsOK(res1)) {
29110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29111 }
29112 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 29113 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 29114 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
29115 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29116 }
29117 if (!argp2) {
29118 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
29119 }
29120 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29121 if (obj2) {
29122 ecode3 = SWIG_AsVal_int(obj2, &val3);
29123 if (!SWIG_IsOK(ecode3)) {
29124 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
29125 }
29126 arg3 = static_cast< int >(val3);
29127 }
29128 {
5c8c7dd3 29129 (arg1)->FillPath((wxGraphicsPath const &)*arg2,arg3);
72ef6efb
RD
29130 if (PyErr_Occurred()) SWIG_fail;
29131 }
29132 resultobj = SWIG_Py_Void();
29133 return resultobj;
29134fail:
29135 return NULL;
29136}
29137
29138
29139SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29140 PyObject *resultobj = 0;
29141 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
5c8c7dd3 29142 wxGraphicsPath *arg2 = 0 ;
8f514ab4 29143 int arg3 = (int) wxODDEVEN_RULE ;
72ef6efb
RD
29144 void *argp1 = 0 ;
29145 int res1 = 0 ;
29146 void *argp2 = 0 ;
29147 int res2 = 0 ;
29148 int val3 ;
29149 int ecode3 = 0 ;
29150 PyObject * obj0 = 0 ;
29151 PyObject * obj1 = 0 ;
29152 PyObject * obj2 = 0 ;
29153 char * kwnames[] = {
29154 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
29155 };
29156
29157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29159 if (!SWIG_IsOK(res1)) {
29160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29161 }
29162 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
5c8c7dd3 29163 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0);
72ef6efb 29164 if (!SWIG_IsOK(res2)) {
5c8c7dd3
RD
29165 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
29166 }
29167 if (!argp2) {
29168 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'");
72ef6efb
RD
29169 }
29170 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
29171 if (obj2) {
29172 ecode3 = SWIG_AsVal_int(obj2, &val3);
29173 if (!SWIG_IsOK(ecode3)) {
29174 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
29175 }
29176 arg3 = static_cast< int >(val3);
29177 }
29178 {
5c8c7dd3 29179 (arg1)->DrawPath((wxGraphicsPath const &)*arg2,arg3);
72ef6efb
RD
29180 if (PyErr_Occurred()) SWIG_fail;
29181 }
29182 resultobj = SWIG_Py_Void();
29183 return resultobj;
29184fail:
29185 return NULL;
29186}
29187
29188
b39fe951 29189SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29190 PyObject *resultobj = 0;
29191 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29192 wxString *arg2 = 0 ;
29193 wxDouble arg3 ;
29194 wxDouble arg4 ;
f89238b9
RD
29195 wxGraphicsBrush const &arg5_defvalue = wxNullGraphicsBrush ;
29196 wxGraphicsBrush *arg5 = (wxGraphicsBrush *) &arg5_defvalue ;
72ef6efb
RD
29197 void *argp1 = 0 ;
29198 int res1 = 0 ;
29199 bool temp2 = false ;
29200 double val3 ;
29201 int ecode3 = 0 ;
29202 double val4 ;
29203 int ecode4 = 0 ;
f89238b9
RD
29204 void *argp5 = 0 ;
29205 int res5 = 0 ;
b39fe951
RD
29206 PyObject * obj0 = 0 ;
29207 PyObject * obj1 = 0 ;
29208 PyObject * obj2 = 0 ;
29209 PyObject * obj3 = 0 ;
f89238b9 29210 PyObject * obj4 = 0 ;
b39fe951 29211 char * kwnames[] = {
f89238b9 29212 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "backgroundBrush", NULL
b39fe951 29213 };
72ef6efb 29214
f89238b9 29215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
b39fe951 29216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb
RD
29217 if (!SWIG_IsOK(res1)) {
29218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29219 }
29220 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29221 {
b39fe951 29222 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
29223 if (arg2 == NULL) SWIG_fail;
29224 temp2 = true;
29225 }
b39fe951 29226 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb
RD
29227 if (!SWIG_IsOK(ecode3)) {
29228 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
29229 }
29230 arg3 = static_cast< wxDouble >(val3);
b39fe951 29231 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb
RD
29232 if (!SWIG_IsOK(ecode4)) {
29233 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
29234 }
29235 arg4 = static_cast< wxDouble >(val4);
f89238b9
RD
29236 if (obj4) {
29237 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29238 if (!SWIG_IsOK(res5)) {
29239 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
29240 }
29241 if (!argp5) {
29242 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'");
29243 }
29244 arg5 = reinterpret_cast< wxGraphicsBrush * >(argp5);
29245 }
72ef6efb 29246 {
f89238b9 29247 wxGraphicsContext_DrawText(arg1,(wxString const &)*arg2,arg3,arg4,(wxGraphicsBrush const &)*arg5);
72ef6efb
RD
29248 if (PyErr_Occurred()) SWIG_fail;
29249 }
29250 resultobj = SWIG_Py_Void();
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
b39fe951 29265SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29266 PyObject *resultobj = 0;
29267 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29268 wxString *arg2 = 0 ;
29269 wxDouble arg3 ;
29270 wxDouble arg4 ;
29271 wxDouble arg5 ;
f89238b9
RD
29272 wxGraphicsBrush const &arg6_defvalue = wxNullGraphicsBrush ;
29273 wxGraphicsBrush *arg6 = (wxGraphicsBrush *) &arg6_defvalue ;
72ef6efb
RD
29274 void *argp1 = 0 ;
29275 int res1 = 0 ;
29276 bool temp2 = false ;
29277 double val3 ;
29278 int ecode3 = 0 ;
29279 double val4 ;
29280 int ecode4 = 0 ;
29281 double val5 ;
29282 int ecode5 = 0 ;
f89238b9
RD
29283 void *argp6 = 0 ;
29284 int res6 = 0 ;
b39fe951
RD
29285 PyObject * obj0 = 0 ;
29286 PyObject * obj1 = 0 ;
29287 PyObject * obj2 = 0 ;
29288 PyObject * obj3 = 0 ;
29289 PyObject * obj4 = 0 ;
f89238b9 29290 PyObject * obj5 = 0 ;
b39fe951 29291 char * kwnames[] = {
f89238b9 29292 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle",(char *) "backgroundBrush", NULL
b39fe951 29293 };
72ef6efb 29294
f89238b9 29295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
b39fe951 29296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 29297 if (!SWIG_IsOK(res1)) {
b39fe951 29298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29299 }
29300 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29301 {
b39fe951 29302 arg2 = wxString_in_helper(obj1);
72ef6efb
RD
29303 if (arg2 == NULL) SWIG_fail;
29304 temp2 = true;
29305 }
b39fe951 29306 ecode3 = SWIG_AsVal_double(obj2, &val3);
72ef6efb 29307 if (!SWIG_IsOK(ecode3)) {
b39fe951 29308 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
29309 }
29310 arg3 = static_cast< wxDouble >(val3);
b39fe951 29311 ecode4 = SWIG_AsVal_double(obj3, &val4);
72ef6efb 29312 if (!SWIG_IsOK(ecode4)) {
b39fe951 29313 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
29314 }
29315 arg4 = static_cast< wxDouble >(val4);
b39fe951 29316 ecode5 = SWIG_AsVal_double(obj4, &val5);
72ef6efb 29317 if (!SWIG_IsOK(ecode5)) {
b39fe951 29318 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
29319 }
29320 arg5 = static_cast< wxDouble >(val5);
f89238b9
RD
29321 if (obj5) {
29322 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
29323 if (!SWIG_IsOK(res6)) {
29324 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
29325 }
29326 if (!argp6) {
29327 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'");
29328 }
29329 arg6 = reinterpret_cast< wxGraphicsBrush * >(argp6);
29330 }
72ef6efb 29331 {
f89238b9 29332 wxGraphicsContext_DrawRotatedText(arg1,(wxString const &)*arg2,arg3,arg4,arg5,(wxGraphicsBrush const &)*arg6);
72ef6efb
RD
29333 if (PyErr_Occurred()) SWIG_fail;
29334 }
29335 resultobj = SWIG_Py_Void();
29336 {
29337 if (temp2)
29338 delete arg2;
29339 }
29340 return resultobj;
29341fail:
29342 {
29343 if (temp2)
29344 delete arg2;
29345 }
29346 return NULL;
29347}
29348
29349
be68621e 29350SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29351 PyObject *resultobj = 0;
29352 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29353 wxString *arg2 = 0 ;
29354 wxDouble *arg3 = (wxDouble *) 0 ;
29355 wxDouble *arg4 = (wxDouble *) 0 ;
29356 wxDouble *arg5 = (wxDouble *) 0 ;
29357 wxDouble *arg6 = (wxDouble *) 0 ;
29358 void *argp1 = 0 ;
29359 int res1 = 0 ;
29360 bool temp2 = false ;
29361 wxDouble temp3 ;
29362 int res3 = SWIG_TMPOBJ ;
29363 wxDouble temp4 ;
29364 int res4 = SWIG_TMPOBJ ;
29365 wxDouble temp5 ;
29366 int res5 = SWIG_TMPOBJ ;
29367 wxDouble temp6 ;
29368 int res6 = SWIG_TMPOBJ ;
29369 PyObject * obj0 = 0 ;
29370 PyObject * obj1 = 0 ;
29371 char * kwnames[] = {
29372 (char *) "self",(char *) "text", NULL
29373 };
29374
29375 arg3 = &temp3;
29376 arg4 = &temp4;
29377 arg5 = &temp5;
29378 arg6 = &temp6;
be68621e 29379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
29380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29381 if (!SWIG_IsOK(res1)) {
be68621e 29382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
72ef6efb
RD
29383 }
29384 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29385 {
29386 arg2 = wxString_in_helper(obj1);
29387 if (arg2 == NULL) SWIG_fail;
29388 temp2 = true;
29389 }
29390 {
72ef6efb 29391 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
29392 if (PyErr_Occurred()) SWIG_fail;
29393 }
29394 resultobj = SWIG_Py_Void();
29395 if (SWIG_IsTmpObj(res3)) {
29396 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
29397 } else {
29398 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29399 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
29400 }
29401 if (SWIG_IsTmpObj(res4)) {
29402 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
29403 } else {
29404 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29405 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
29406 }
29407 if (SWIG_IsTmpObj(res5)) {
29408 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
29409 } else {
29410 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29411 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
29412 }
29413 if (SWIG_IsTmpObj(res6)) {
29414 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
29415 } else {
29416 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
29417 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
29418 }
29419 {
29420 if (temp2)
29421 delete arg2;
29422 }
29423 return resultobj;
29424fail:
29425 {
29426 if (temp2)
29427 delete arg2;
29428 }
29429 return NULL;
29430}
29431
29432
be68621e
RD
29433SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29434 PyObject *resultobj = 0;
29435 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29436 wxString *arg2 = 0 ;
29437 PyObject *result = 0 ;
29438 void *argp1 = 0 ;
29439 int res1 = 0 ;
29440 bool temp2 = false ;
29441 PyObject * obj0 = 0 ;
29442 PyObject * obj1 = 0 ;
29443 char * kwnames[] = {
29444 (char *) "self",(char *) "text", NULL
29445 };
29446
29447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
29448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29449 if (!SWIG_IsOK(res1)) {
29450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29451 }
29452 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29453 {
29454 arg2 = wxString_in_helper(obj1);
29455 if (arg2 == NULL) SWIG_fail;
29456 temp2 = true;
29457 }
29458 {
29459 result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2);
29460 if (PyErr_Occurred()) SWIG_fail;
29461 }
29462 resultobj = result;
29463 {
29464 if (temp2)
29465 delete arg2;
29466 }
29467 return resultobj;
29468fail:
29469 {
29470 if (temp2)
29471 delete arg2;
29472 }
29473 return NULL;
29474}
29475
29476
72ef6efb
RD
29477SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29478 PyObject *resultobj = 0;
29479 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29480 wxString *arg2 = 0 ;
b39fe951 29481 wxArrayDouble result;
72ef6efb
RD
29482 void *argp1 = 0 ;
29483 int res1 = 0 ;
29484 bool temp2 = false ;
72ef6efb
RD
29485 PyObject * obj0 = 0 ;
29486 PyObject * obj1 = 0 ;
72ef6efb 29487 char * kwnames[] = {
b39fe951 29488 (char *) "self",(char *) "text", NULL
72ef6efb
RD
29489 };
29490
b39fe951 29491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
72ef6efb
RD
29492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29493 if (!SWIG_IsOK(res1)) {
b39fe951 29494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29495 }
29496 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29497 {
29498 arg2 = wxString_in_helper(obj1);
29499 if (arg2 == NULL) SWIG_fail;
29500 temp2 = true;
29501 }
72ef6efb 29502 {
b39fe951 29503 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
72ef6efb
RD
29504 if (PyErr_Occurred()) SWIG_fail;
29505 }
b39fe951
RD
29506 {
29507 resultobj = wxArrayDouble2PyList_helper(result);
29508 }
72ef6efb
RD
29509 {
29510 if (temp2)
29511 delete arg2;
29512 }
29513 return resultobj;
29514fail:
29515 {
29516 if (temp2)
29517 delete arg2;
29518 }
29519 return NULL;
29520}
29521
29522
29523SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29524 PyObject *resultobj = 0;
29525 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29526 wxBitmap *arg2 = 0 ;
29527 wxDouble arg3 ;
29528 wxDouble arg4 ;
29529 wxDouble arg5 ;
29530 wxDouble arg6 ;
29531 void *argp1 = 0 ;
29532 int res1 = 0 ;
29533 void *argp2 = 0 ;
29534 int res2 = 0 ;
29535 double val3 ;
29536 int ecode3 = 0 ;
29537 double val4 ;
29538 int ecode4 = 0 ;
29539 double val5 ;
29540 int ecode5 = 0 ;
29541 double val6 ;
29542 int ecode6 = 0 ;
29543 PyObject * obj0 = 0 ;
29544 PyObject * obj1 = 0 ;
29545 PyObject * obj2 = 0 ;
29546 PyObject * obj3 = 0 ;
29547 PyObject * obj4 = 0 ;
29548 PyObject * obj5 = 0 ;
29549 char * kwnames[] = {
29550 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29551 };
29552
29553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29555 if (!SWIG_IsOK(res1)) {
29556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29557 }
29558 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29559 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
29560 if (!SWIG_IsOK(res2)) {
29561 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29562 }
29563 if (!argp2) {
29564 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29565 }
29566 arg2 = reinterpret_cast< wxBitmap * >(argp2);
29567 ecode3 = SWIG_AsVal_double(obj2, &val3);
29568 if (!SWIG_IsOK(ecode3)) {
29569 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
29570 }
29571 arg3 = static_cast< wxDouble >(val3);
29572 ecode4 = SWIG_AsVal_double(obj3, &val4);
29573 if (!SWIG_IsOK(ecode4)) {
29574 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
29575 }
29576 arg4 = static_cast< wxDouble >(val4);
29577 ecode5 = SWIG_AsVal_double(obj4, &val5);
29578 if (!SWIG_IsOK(ecode5)) {
29579 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
29580 }
29581 arg5 = static_cast< wxDouble >(val5);
29582 ecode6 = SWIG_AsVal_double(obj5, &val6);
29583 if (!SWIG_IsOK(ecode6)) {
29584 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
29585 }
29586 arg6 = static_cast< wxDouble >(val6);
29587 {
72ef6efb 29588 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
29589 if (PyErr_Occurred()) SWIG_fail;
29590 }
29591 resultobj = SWIG_Py_Void();
29592 return resultobj;
29593fail:
29594 return NULL;
29595}
29596
29597
29598SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29599 PyObject *resultobj = 0;
29600 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29601 wxIcon *arg2 = 0 ;
29602 wxDouble arg3 ;
29603 wxDouble arg4 ;
29604 wxDouble arg5 ;
29605 wxDouble arg6 ;
29606 void *argp1 = 0 ;
29607 int res1 = 0 ;
29608 void *argp2 = 0 ;
29609 int res2 = 0 ;
29610 double val3 ;
29611 int ecode3 = 0 ;
29612 double val4 ;
29613 int ecode4 = 0 ;
29614 double val5 ;
29615 int ecode5 = 0 ;
70d7cb34
RD
29616 double val6 ;
29617 int ecode6 = 0 ;
29618 PyObject * obj0 = 0 ;
29619 PyObject * obj1 = 0 ;
29620 PyObject * obj2 = 0 ;
29621 PyObject * obj3 = 0 ;
29622 PyObject * obj4 = 0 ;
29623 PyObject * obj5 = 0 ;
29624 char * kwnames[] = {
29625 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29626 };
29627
29628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) 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_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29632 }
29633 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29634 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
29635 if (!SWIG_IsOK(res2)) {
29636 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29637 }
29638 if (!argp2) {
29639 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29640 }
29641 arg2 = reinterpret_cast< wxIcon * >(argp2);
29642 ecode3 = SWIG_AsVal_double(obj2, &val3);
29643 if (!SWIG_IsOK(ecode3)) {
29644 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
29645 }
29646 arg3 = static_cast< wxDouble >(val3);
29647 ecode4 = SWIG_AsVal_double(obj3, &val4);
29648 if (!SWIG_IsOK(ecode4)) {
29649 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
29650 }
29651 arg4 = static_cast< wxDouble >(val4);
29652 ecode5 = SWIG_AsVal_double(obj4, &val5);
29653 if (!SWIG_IsOK(ecode5)) {
29654 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
29655 }
29656 arg5 = static_cast< wxDouble >(val5);
29657 ecode6 = SWIG_AsVal_double(obj5, &val6);
29658 if (!SWIG_IsOK(ecode6)) {
29659 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
29660 }
29661 arg6 = static_cast< wxDouble >(val6);
29662 {
29663 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
29664 if (PyErr_Occurred()) SWIG_fail;
29665 }
29666 resultobj = SWIG_Py_Void();
29667 return resultobj;
29668fail:
29669 return NULL;
29670}
29671
29672
29673SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29674 PyObject *resultobj = 0;
29675 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29676 wxDouble arg2 ;
29677 wxDouble arg3 ;
29678 wxDouble arg4 ;
29679 wxDouble arg5 ;
29680 void *argp1 = 0 ;
29681 int res1 = 0 ;
29682 double val2 ;
29683 int ecode2 = 0 ;
29684 double val3 ;
29685 int ecode3 = 0 ;
29686 double val4 ;
29687 int ecode4 = 0 ;
29688 double val5 ;
29689 int ecode5 = 0 ;
29690 PyObject * obj0 = 0 ;
29691 PyObject * obj1 = 0 ;
29692 PyObject * obj2 = 0 ;
29693 PyObject * obj3 = 0 ;
29694 PyObject * obj4 = 0 ;
29695 char * kwnames[] = {
29696 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
29697 };
29698
29699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29701 if (!SWIG_IsOK(res1)) {
29702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29703 }
29704 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29705 ecode2 = SWIG_AsVal_double(obj1, &val2);
29706 if (!SWIG_IsOK(ecode2)) {
29707 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
29708 }
29709 arg2 = static_cast< wxDouble >(val2);
29710 ecode3 = SWIG_AsVal_double(obj2, &val3);
29711 if (!SWIG_IsOK(ecode3)) {
29712 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
29713 }
29714 arg3 = static_cast< wxDouble >(val3);
29715 ecode4 = SWIG_AsVal_double(obj3, &val4);
29716 if (!SWIG_IsOK(ecode4)) {
29717 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
29718 }
29719 arg4 = static_cast< wxDouble >(val4);
29720 ecode5 = SWIG_AsVal_double(obj4, &val5);
29721 if (!SWIG_IsOK(ecode5)) {
29722 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
29723 }
29724 arg5 = static_cast< wxDouble >(val5);
29725 {
29726 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
29727 if (PyErr_Occurred()) SWIG_fail;
29728 }
29729 resultobj = SWIG_Py_Void();
29730 return resultobj;
29731fail:
29732 return NULL;
29733}
29734
29735
29736SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29737 PyObject *resultobj = 0;
29738 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29739 size_t arg2 ;
29740 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
29741 void *argp1 = 0 ;
29742 int res1 = 0 ;
29743 PyObject * obj0 = 0 ;
29744 PyObject * obj1 = 0 ;
29745 char * kwnames[] = {
29746 (char *) "self",(char *) "points", NULL
29747 };
29748
29749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
29750 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29751 if (!SWIG_IsOK(res1)) {
29752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29753 }
29754 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29755 {
29756 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
29757 if (arg3 == NULL) SWIG_fail;
29758 }
29759 {
29760 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
29761 if (PyErr_Occurred()) SWIG_fail;
29762 }
29763 resultobj = SWIG_Py_Void();
29764 {
29765 if (arg3) delete [] arg3;
29766 }
29767 return resultobj;
29768fail:
29769 {
29770 if (arg3) delete [] arg3;
29771 }
29772 return NULL;
29773}
29774
29775
29776SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29777 PyObject *resultobj = 0;
29778 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29779 PyObject *arg2 = (PyObject *) 0 ;
29780 PyObject *arg3 = (PyObject *) 0 ;
29781 void *argp1 = 0 ;
29782 int res1 = 0 ;
29783 PyObject * obj0 = 0 ;
29784 PyObject * obj1 = 0 ;
29785 PyObject * obj2 = 0 ;
29786 char * kwnames[] = {
29787 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
29788 };
29789
29790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29792 if (!SWIG_IsOK(res1)) {
29793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29794 }
29795 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29796 arg2 = obj1;
29797 arg3 = obj2;
29798 {
29799 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
29800 if (PyErr_Occurred()) SWIG_fail;
29801 }
29802 resultobj = SWIG_Py_Void();
29803 return resultobj;
29804fail:
29805 return NULL;
29806}
29807
29808
29809SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29810 PyObject *resultobj = 0;
29811 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29812 size_t arg2 ;
29813 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
8f514ab4 29814 int arg4 = (int) wxODDEVEN_RULE ;
70d7cb34
RD
29815 void *argp1 = 0 ;
29816 int res1 = 0 ;
29817 int val4 ;
29818 int ecode4 = 0 ;
29819 PyObject * obj0 = 0 ;
29820 PyObject * obj1 = 0 ;
29821 PyObject * obj2 = 0 ;
29822 char * kwnames[] = {
29823 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
29824 };
29825
29826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29828 if (!SWIG_IsOK(res1)) {
29829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29830 }
29831 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29832 {
29833 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
29834 if (arg3 == NULL) SWIG_fail;
29835 }
29836 if (obj2) {
29837 ecode4 = SWIG_AsVal_int(obj2, &val4);
29838 if (!SWIG_IsOK(ecode4)) {
29839 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
29840 }
29841 arg4 = static_cast< int >(val4);
29842 }
29843 {
29844 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
29845 if (PyErr_Occurred()) SWIG_fail;
29846 }
29847 resultobj = SWIG_Py_Void();
29848 {
29849 if (arg3) delete [] arg3;
29850 }
29851 return resultobj;
29852fail:
29853 {
29854 if (arg3) delete [] arg3;
29855 }
29856 return NULL;
29857}
29858
29859
29860SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29861 PyObject *resultobj = 0;
29862 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29863 wxDouble arg2 ;
29864 wxDouble arg3 ;
29865 wxDouble arg4 ;
29866 wxDouble arg5 ;
29867 void *argp1 = 0 ;
29868 int res1 = 0 ;
29869 double val2 ;
29870 int ecode2 = 0 ;
29871 double val3 ;
29872 int ecode3 = 0 ;
29873 double val4 ;
29874 int ecode4 = 0 ;
29875 double val5 ;
29876 int ecode5 = 0 ;
29877 PyObject * obj0 = 0 ;
29878 PyObject * obj1 = 0 ;
29879 PyObject * obj2 = 0 ;
29880 PyObject * obj3 = 0 ;
29881 PyObject * obj4 = 0 ;
29882 char * kwnames[] = {
29883 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29884 };
29885
29886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29888 if (!SWIG_IsOK(res1)) {
29889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29890 }
29891 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29892 ecode2 = SWIG_AsVal_double(obj1, &val2);
29893 if (!SWIG_IsOK(ecode2)) {
29894 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
29895 }
29896 arg2 = static_cast< wxDouble >(val2);
29897 ecode3 = SWIG_AsVal_double(obj2, &val3);
29898 if (!SWIG_IsOK(ecode3)) {
29899 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
29900 }
29901 arg3 = static_cast< wxDouble >(val3);
29902 ecode4 = SWIG_AsVal_double(obj3, &val4);
29903 if (!SWIG_IsOK(ecode4)) {
29904 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
29905 }
29906 arg4 = static_cast< wxDouble >(val4);
29907 ecode5 = SWIG_AsVal_double(obj4, &val5);
29908 if (!SWIG_IsOK(ecode5)) {
29909 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
29910 }
29911 arg5 = static_cast< wxDouble >(val5);
29912 {
29913 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
29914 if (PyErr_Occurred()) SWIG_fail;
29915 }
29916 resultobj = SWIG_Py_Void();
29917 return resultobj;
29918fail:
29919 return NULL;
29920}
29921
29922
29923SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29924 PyObject *resultobj = 0;
29925 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29926 wxDouble arg2 ;
29927 wxDouble arg3 ;
29928 wxDouble arg4 ;
29929 wxDouble arg5 ;
29930 void *argp1 = 0 ;
29931 int res1 = 0 ;
29932 double val2 ;
29933 int ecode2 = 0 ;
29934 double val3 ;
29935 int ecode3 = 0 ;
29936 double val4 ;
29937 int ecode4 = 0 ;
29938 double val5 ;
29939 int ecode5 = 0 ;
72ef6efb
RD
29940 PyObject * obj0 = 0 ;
29941 PyObject * obj1 = 0 ;
29942 PyObject * obj2 = 0 ;
29943 PyObject * obj3 = 0 ;
29944 PyObject * obj4 = 0 ;
72ef6efb 29945 char * kwnames[] = {
70d7cb34 29946 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
72ef6efb
RD
29947 };
29948
70d7cb34 29949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
72ef6efb
RD
29950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29951 if (!SWIG_IsOK(res1)) {
70d7cb34 29952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
29953 }
29954 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
70d7cb34
RD
29955 ecode2 = SWIG_AsVal_double(obj1, &val2);
29956 if (!SWIG_IsOK(ecode2)) {
29957 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
29958 }
29959 arg2 = static_cast< wxDouble >(val2);
72ef6efb
RD
29960 ecode3 = SWIG_AsVal_double(obj2, &val3);
29961 if (!SWIG_IsOK(ecode3)) {
70d7cb34 29962 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
29963 }
29964 arg3 = static_cast< wxDouble >(val3);
29965 ecode4 = SWIG_AsVal_double(obj3, &val4);
29966 if (!SWIG_IsOK(ecode4)) {
70d7cb34 29967 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
29968 }
29969 arg4 = static_cast< wxDouble >(val4);
29970 ecode5 = SWIG_AsVal_double(obj4, &val5);
29971 if (!SWIG_IsOK(ecode5)) {
70d7cb34 29972 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
29973 }
29974 arg5 = static_cast< wxDouble >(val5);
72ef6efb 29975 {
70d7cb34 29976 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
72ef6efb
RD
29977 if (PyErr_Occurred()) SWIG_fail;
29978 }
29979 resultobj = SWIG_Py_Void();
29980 return resultobj;
29981fail:
29982 return NULL;
29983}
29984
29985
70d7cb34 29986SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb
RD
29987 PyObject *resultobj = 0;
29988 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29989 wxDouble arg2 ;
29990 wxDouble arg3 ;
29991 wxDouble arg4 ;
29992 wxDouble arg5 ;
70d7cb34 29993 wxDouble arg6 ;
72ef6efb
RD
29994 void *argp1 = 0 ;
29995 int res1 = 0 ;
29996 double val2 ;
29997 int ecode2 = 0 ;
29998 double val3 ;
29999 int ecode3 = 0 ;
30000 double val4 ;
30001 int ecode4 = 0 ;
30002 double val5 ;
30003 int ecode5 = 0 ;
70d7cb34
RD
30004 double val6 ;
30005 int ecode6 = 0 ;
72ef6efb
RD
30006 PyObject * obj0 = 0 ;
30007 PyObject * obj1 = 0 ;
30008 PyObject * obj2 = 0 ;
30009 PyObject * obj3 = 0 ;
30010 PyObject * obj4 = 0 ;
70d7cb34 30011 PyObject * obj5 = 0 ;
72ef6efb 30012 char * kwnames[] = {
70d7cb34 30013 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
72ef6efb
RD
30014 };
30015
70d7cb34 30016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
72ef6efb
RD
30017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30018 if (!SWIG_IsOK(res1)) {
70d7cb34 30019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
72ef6efb
RD
30020 }
30021 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
30022 ecode2 = SWIG_AsVal_double(obj1, &val2);
30023 if (!SWIG_IsOK(ecode2)) {
70d7cb34 30024 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
30025 }
30026 arg2 = static_cast< wxDouble >(val2);
30027 ecode3 = SWIG_AsVal_double(obj2, &val3);
30028 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30029 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30030 }
30031 arg3 = static_cast< wxDouble >(val3);
30032 ecode4 = SWIG_AsVal_double(obj3, &val4);
30033 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30034 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30035 }
30036 arg4 = static_cast< wxDouble >(val4);
30037 ecode5 = SWIG_AsVal_double(obj4, &val5);
30038 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30039 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30040 }
30041 arg5 = static_cast< wxDouble >(val5);
70d7cb34
RD
30042 ecode6 = SWIG_AsVal_double(obj5, &val6);
30043 if (!SWIG_IsOK(ecode6)) {
30044 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
30045 }
30046 arg6 = static_cast< wxDouble >(val6);
72ef6efb 30047 {
70d7cb34 30048 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
72ef6efb
RD
30049 if (PyErr_Occurred()) SWIG_fail;
30050 }
30051 resultobj = SWIG_Py_Void();
30052 return resultobj;
30053fail:
30054 return NULL;
30055}
30056
30057
70d7cb34 30058SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
30059 PyObject *resultobj = 0;
30060 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
70d7cb34 30061 bool result;
72ef6efb
RD
30062 void *argp1 = 0 ;
30063 int res1 = 0 ;
70d7cb34 30064 PyObject *swig_obj[1] ;
72ef6efb 30065
70d7cb34
RD
30066 if (!args) SWIG_fail;
30067 swig_obj[0] = args;
30068 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
72ef6efb 30069 if (!SWIG_IsOK(res1)) {
70d7cb34 30070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
72ef6efb
RD
30071 }
30072 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
b39fe951 30073 {
70d7cb34
RD
30074 result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset();
30075 if (PyErr_Occurred()) SWIG_fail;
72ef6efb 30076 }
72ef6efb 30077 {
70d7cb34
RD
30078 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30079 }
30080 return resultobj;
30081fail:
30082 return NULL;
30083}
30084
30085
30086SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30087 PyObject *obj;
30088 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30089 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
30090 return SWIG_Py_Void();
30091}
30092
30093SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30094 PyObject *resultobj = 0;
30095 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30096 void *argp1 = 0 ;
30097 int res1 = 0 ;
30098 PyObject *swig_obj[1] ;
30099
30100 if (!args) SWIG_fail;
30101 swig_obj[0] = args;
30102 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 );
30103 if (!SWIG_IsOK(res1)) {
30104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30105 }
30106 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30107 {
30108 delete arg1;
30109
72ef6efb
RD
30110 if (PyErr_Occurred()) SWIG_fail;
30111 }
30112 resultobj = SWIG_Py_Void();
70d7cb34
RD
30113 return resultobj;
30114fail:
30115 return NULL;
30116}
30117
30118
30119SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30120 PyObject *resultobj = 0;
30121 wxGraphicsRenderer *result = 0 ;
30122
30123 if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail;
b39fe951 30124 {
70d7cb34
RD
30125 result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer();
30126 if (PyErr_Occurred()) SWIG_fail;
30127 }
30128 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30129 return resultobj;
30130fail:
30131 return NULL;
30132}
30133
30134
30135SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30136 PyObject *resultobj = 0;
30137 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30138 wxWindowDC *arg2 = 0 ;
30139 wxGraphicsContext *result = 0 ;
30140 void *argp1 = 0 ;
30141 int res1 = 0 ;
30142 void *argp2 = 0 ;
30143 int res2 = 0 ;
30144
30145 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30147 if (!SWIG_IsOK(res1)) {
30148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30149 }
30150 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30151 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0);
30152 if (!SWIG_IsOK(res2)) {
30153 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
30154 }
30155 if (!argp2) {
30156 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
30157 }
30158 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30159 {
30160 result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2);
30161 if (PyErr_Occurred()) SWIG_fail;
b39fe951 30162 }
70d7cb34 30163 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30164 return resultobj;
30165fail:
70d7cb34
RD
30166 return NULL;
30167}
30168
30169
30170SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30171 PyObject *resultobj = 0;
30172 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30173 wxWindow *arg2 = (wxWindow *) 0 ;
30174 wxGraphicsContext *result = 0 ;
30175 void *argp1 = 0 ;
30176 int res1 = 0 ;
30177 void *argp2 = 0 ;
30178 int res2 = 0 ;
30179
30180 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30182 if (!SWIG_IsOK(res1)) {
30183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30184 }
30185 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30186 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30187 if (!SWIG_IsOK(res2)) {
30188 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'");
30189 }
30190 arg2 = reinterpret_cast< wxWindow * >(argp2);
b39fe951 30191 {
70d7cb34
RD
30192 result = (wxGraphicsContext *)(arg1)->CreateContext(arg2);
30193 if (PyErr_Occurred()) SWIG_fail;
b39fe951 30194 }
70d7cb34
RD
30195 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
30196 return resultobj;
30197fail:
72ef6efb
RD
30198 return NULL;
30199}
30200
30201
70d7cb34
RD
30202SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) {
30203 int argc;
30204 PyObject *argv[3];
30205
30206 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail;
30207 --argc;
30208 if (argc == 2) {
30209 int _v = 0;
30210 {
30211 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0);
30212 _v = SWIG_CheckState(res);
30213 }
30214 if (!_v) goto check_1;
30215 return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv);
30216 }
30217check_1:
30218
30219 if (argc == 2) {
30220 return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv);
30221 }
30222
30223fail:
30224 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'");
30225 return NULL;
30226}
30227
30228
f89238b9
RD
30229SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30230 PyObject *resultobj = 0;
30231 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30232 wxGraphicsContext *result = 0 ;
30233 void *argp1 = 0 ;
30234 int res1 = 0 ;
30235 PyObject *swig_obj[1] ;
30236
30237 if (!args) SWIG_fail;
30238 swig_obj[0] = args;
30239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30240 if (!SWIG_IsOK(res1)) {
30241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMeasuringContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30242 }
30243 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30244 {
30245 result = (wxGraphicsContext *)(arg1)->CreateMeasuringContext();
30246 if (PyErr_Occurred()) SWIG_fail;
30247 }
30248 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30249 return resultobj;
30250fail:
30251 return NULL;
30252}
30253
30254
70d7cb34 30255SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30256 PyObject *resultobj = 0;
70d7cb34
RD
30257 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30258 void *arg2 = (void *) 0 ;
30259 wxGraphicsContext *result = 0 ;
72ef6efb
RD
30260 void *argp1 = 0 ;
30261 int res1 = 0 ;
70d7cb34 30262 int res2 ;
b39fe951
RD
30263 PyObject * obj0 = 0 ;
30264 PyObject * obj1 = 0 ;
b39fe951 30265 char * kwnames[] = {
70d7cb34 30266 (char *) "self",(char *) "context", NULL
b39fe951 30267 };
72ef6efb 30268
70d7cb34
RD
30269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail;
30270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30271 if (!SWIG_IsOK(res1)) {
70d7cb34
RD
30272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30273 }
30274 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30275 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
30276 if (!SWIG_IsOK(res2)) {
30277 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'");
72ef6efb 30278 }
72ef6efb 30279 {
70d7cb34 30280 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2);
72ef6efb
RD
30281 if (PyErr_Occurred()) SWIG_fail;
30282 }
70d7cb34 30283 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30284 return resultobj;
30285fail:
30286 return NULL;
30287}
30288
30289
70d7cb34 30290SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30291 PyObject *resultobj = 0;
70d7cb34
RD
30292 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30293 void *arg2 = (void *) 0 ;
30294 wxGraphicsContext *result = 0 ;
72ef6efb
RD
30295 void *argp1 = 0 ;
30296 int res1 = 0 ;
70d7cb34 30297 int res2 ;
72ef6efb
RD
30298 PyObject * obj0 = 0 ;
30299 PyObject * obj1 = 0 ;
72ef6efb 30300 char * kwnames[] = {
70d7cb34 30301 (char *) "self",(char *) "window", NULL
72ef6efb
RD
30302 };
30303
70d7cb34
RD
30304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) SWIG_fail;
30305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30306 if (!SWIG_IsOK(res1)) {
70d7cb34 30307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 30308 }
70d7cb34
RD
30309 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30310 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
30311 if (!SWIG_IsOK(res2)) {
30312 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'");
72ef6efb
RD
30313 }
30314 {
70d7cb34 30315 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2);
72ef6efb
RD
30316 if (PyErr_Occurred()) SWIG_fail;
30317 }
70d7cb34 30318 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30319 return resultobj;
30320fail:
70d7cb34
RD
30321 return NULL;
30322}
30323
30324
30325SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30326 PyObject *resultobj = 0;
30327 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
5c8c7dd3 30328 wxGraphicsPath result;
70d7cb34
RD
30329 void *argp1 = 0 ;
30330 int res1 = 0 ;
30331 PyObject *swig_obj[1] ;
30332
30333 if (!args) SWIG_fail;
30334 swig_obj[0] = args;
30335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30336 if (!SWIG_IsOK(res1)) {
30337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30338 }
30339 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
b39fe951 30340 {
5c8c7dd3 30341 result = (arg1)->CreatePath();
70d7cb34 30342 if (PyErr_Occurred()) SWIG_fail;
b39fe951 30343 }
5c8c7dd3 30344 resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
70d7cb34
RD
30345 return resultobj;
30346fail:
72ef6efb
RD
30347 return NULL;
30348}
30349
30350
70d7cb34 30351SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30352 PyObject *resultobj = 0;
70d7cb34
RD
30353 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30354 wxDouble arg2 = (wxDouble) 1.0 ;
30355 wxDouble arg3 = (wxDouble) 0.0 ;
30356 wxDouble arg4 = (wxDouble) 0.0 ;
30357 wxDouble arg5 = (wxDouble) 1.0 ;
30358 wxDouble arg6 = (wxDouble) 0.0 ;
30359 wxDouble arg7 = (wxDouble) 0.0 ;
5c8c7dd3 30360 wxGraphicsMatrix result;
72ef6efb
RD
30361 void *argp1 = 0 ;
30362 int res1 = 0 ;
30363 double val2 ;
30364 int ecode2 = 0 ;
30365 double val3 ;
30366 int ecode3 = 0 ;
30367 double val4 ;
30368 int ecode4 = 0 ;
30369 double val5 ;
30370 int ecode5 = 0 ;
70d7cb34
RD
30371 double val6 ;
30372 int ecode6 = 0 ;
30373 double val7 ;
30374 int ecode7 = 0 ;
72ef6efb
RD
30375 PyObject * obj0 = 0 ;
30376 PyObject * obj1 = 0 ;
30377 PyObject * obj2 = 0 ;
30378 PyObject * obj3 = 0 ;
30379 PyObject * obj4 = 0 ;
70d7cb34
RD
30380 PyObject * obj5 = 0 ;
30381 PyObject * obj6 = 0 ;
72ef6efb 30382 char * kwnames[] = {
70d7cb34 30383 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
72ef6efb
RD
30384 };
30385
70d7cb34
RD
30386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30388 if (!SWIG_IsOK(res1)) {
70d7cb34
RD
30389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30390 }
30391 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30392 if (obj1) {
30393 ecode2 = SWIG_AsVal_double(obj1, &val2);
30394 if (!SWIG_IsOK(ecode2)) {
30395 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
30396 }
30397 arg2 = static_cast< wxDouble >(val2);
30398 }
30399 if (obj2) {
30400 ecode3 = SWIG_AsVal_double(obj2, &val3);
30401 if (!SWIG_IsOK(ecode3)) {
30402 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
30403 }
30404 arg3 = static_cast< wxDouble >(val3);
30405 }
30406 if (obj3) {
30407 ecode4 = SWIG_AsVal_double(obj3, &val4);
30408 if (!SWIG_IsOK(ecode4)) {
30409 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
30410 }
30411 arg4 = static_cast< wxDouble >(val4);
30412 }
30413 if (obj4) {
30414 ecode5 = SWIG_AsVal_double(obj4, &val5);
30415 if (!SWIG_IsOK(ecode5)) {
30416 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
30417 }
30418 arg5 = static_cast< wxDouble >(val5);
30419 }
30420 if (obj5) {
30421 ecode6 = SWIG_AsVal_double(obj5, &val6);
30422 if (!SWIG_IsOK(ecode6)) {
30423 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
30424 }
30425 arg6 = static_cast< wxDouble >(val6);
30426 }
30427 if (obj6) {
30428 ecode7 = SWIG_AsVal_double(obj6, &val7);
30429 if (!SWIG_IsOK(ecode7)) {
30430 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
30431 }
30432 arg7 = static_cast< wxDouble >(val7);
72ef6efb 30433 }
72ef6efb 30434 {
5c8c7dd3 30435 result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
72ef6efb
RD
30436 if (PyErr_Occurred()) SWIG_fail;
30437 }
5c8c7dd3 30438 resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30439 return resultobj;
30440fail:
30441 return NULL;
30442}
30443
30444
70d7cb34 30445SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30446 PyObject *resultobj = 0;
70d7cb34
RD
30447 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30448 wxPen *arg2 = 0 ;
30449 wxGraphicsPen result;
30450 void *argp1 = 0 ;
30451 int res1 = 0 ;
30452 void *argp2 = 0 ;
30453 int res2 = 0 ;
30454 PyObject * obj0 = 0 ;
30455 PyObject * obj1 = 0 ;
30456 char * kwnames[] = {
30457 (char *) "self",(char *) "pen", NULL
30458 };
30459
30460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
30461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30462 if (!SWIG_IsOK(res1)) {
30463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30464 }
30465 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30466 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
30467 if (!SWIG_IsOK(res2)) {
30468 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30469 }
30470 if (!argp2) {
30471 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
30472 }
30473 arg2 = reinterpret_cast< wxPen * >(argp2);
30474 {
30475 result = (arg1)->CreatePen((wxPen const &)*arg2);
30476 if (PyErr_Occurred()) SWIG_fail;
30477 }
30478 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
30479 return resultobj;
30480fail:
30481 return NULL;
30482}
30483
30484
30485SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30486 PyObject *resultobj = 0;
30487 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30488 wxBrush *arg2 = 0 ;
30489 wxGraphicsBrush result;
30490 void *argp1 = 0 ;
30491 int res1 = 0 ;
30492 void *argp2 = 0 ;
30493 int res2 = 0 ;
30494 PyObject * obj0 = 0 ;
30495 PyObject * obj1 = 0 ;
30496 char * kwnames[] = {
30497 (char *) "self",(char *) "brush", NULL
30498 };
30499
30500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
30501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30502 if (!SWIG_IsOK(res1)) {
30503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30504 }
30505 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30506 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
30507 if (!SWIG_IsOK(res2)) {
30508 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30509 }
30510 if (!argp2) {
30511 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30512 }
30513 arg2 = reinterpret_cast< wxBrush * >(argp2);
30514 {
30515 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
30516 if (PyErr_Occurred()) SWIG_fail;
30517 }
30518 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
30519 return resultobj;
30520fail:
30521 return NULL;
30522}
30523
30524
30525SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30526 PyObject *resultobj = 0;
30527 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
72ef6efb
RD
30528 wxDouble arg2 ;
30529 wxDouble arg3 ;
30530 wxDouble arg4 ;
30531 wxDouble arg5 ;
70d7cb34
RD
30532 wxColour *arg6 = 0 ;
30533 wxColour *arg7 = 0 ;
30534 wxGraphicsBrush result;
72ef6efb
RD
30535 void *argp1 = 0 ;
30536 int res1 = 0 ;
30537 double val2 ;
30538 int ecode2 = 0 ;
30539 double val3 ;
30540 int ecode3 = 0 ;
30541 double val4 ;
30542 int ecode4 = 0 ;
30543 double val5 ;
30544 int ecode5 = 0 ;
70d7cb34
RD
30545 wxColour temp6 ;
30546 wxColour temp7 ;
72ef6efb
RD
30547 PyObject * obj0 = 0 ;
30548 PyObject * obj1 = 0 ;
30549 PyObject * obj2 = 0 ;
30550 PyObject * obj3 = 0 ;
30551 PyObject * obj4 = 0 ;
70d7cb34
RD
30552 PyObject * obj5 = 0 ;
30553 PyObject * obj6 = 0 ;
72ef6efb 30554 char * kwnames[] = {
70d7cb34 30555 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
72ef6efb
RD
30556 };
30557
70d7cb34
RD
30558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30560 if (!SWIG_IsOK(res1)) {
70d7cb34 30561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 30562 }
70d7cb34 30563 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
72ef6efb
RD
30564 ecode2 = SWIG_AsVal_double(obj1, &val2);
30565 if (!SWIG_IsOK(ecode2)) {
70d7cb34 30566 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
30567 }
30568 arg2 = static_cast< wxDouble >(val2);
30569 ecode3 = SWIG_AsVal_double(obj2, &val3);
30570 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30571 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30572 }
30573 arg3 = static_cast< wxDouble >(val3);
30574 ecode4 = SWIG_AsVal_double(obj3, &val4);
30575 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30576 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30577 }
30578 arg4 = static_cast< wxDouble >(val4);
30579 ecode5 = SWIG_AsVal_double(obj4, &val5);
30580 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30581 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30582 }
30583 arg5 = static_cast< wxDouble >(val5);
30584 {
70d7cb34
RD
30585 arg6 = &temp6;
30586 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
30587 }
30588 {
30589 arg7 = &temp7;
30590 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30591 }
30592 {
30593 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
72ef6efb
RD
30594 if (PyErr_Occurred()) SWIG_fail;
30595 }
70d7cb34 30596 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30597 return resultobj;
30598fail:
30599 return NULL;
30600}
30601
30602
70d7cb34 30603SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
72ef6efb 30604 PyObject *resultobj = 0;
70d7cb34 30605 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
72ef6efb
RD
30606 wxDouble arg2 ;
30607 wxDouble arg3 ;
30608 wxDouble arg4 ;
30609 wxDouble arg5 ;
30610 wxDouble arg6 ;
70d7cb34
RD
30611 wxColour *arg7 = 0 ;
30612 wxColour *arg8 = 0 ;
30613 wxGraphicsBrush result;
72ef6efb
RD
30614 void *argp1 = 0 ;
30615 int res1 = 0 ;
30616 double val2 ;
30617 int ecode2 = 0 ;
30618 double val3 ;
30619 int ecode3 = 0 ;
30620 double val4 ;
30621 int ecode4 = 0 ;
30622 double val5 ;
30623 int ecode5 = 0 ;
30624 double val6 ;
30625 int ecode6 = 0 ;
70d7cb34
RD
30626 wxColour temp7 ;
30627 wxColour temp8 ;
72ef6efb
RD
30628 PyObject * obj0 = 0 ;
30629 PyObject * obj1 = 0 ;
30630 PyObject * obj2 = 0 ;
30631 PyObject * obj3 = 0 ;
30632 PyObject * obj4 = 0 ;
30633 PyObject * obj5 = 0 ;
70d7cb34
RD
30634 PyObject * obj6 = 0 ;
30635 PyObject * obj7 = 0 ;
72ef6efb 30636 char * kwnames[] = {
70d7cb34 30637 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
72ef6efb
RD
30638 };
30639
70d7cb34
RD
30640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
30641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
72ef6efb 30642 if (!SWIG_IsOK(res1)) {
70d7cb34 30643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
72ef6efb 30644 }
70d7cb34 30645 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
72ef6efb
RD
30646 ecode2 = SWIG_AsVal_double(obj1, &val2);
30647 if (!SWIG_IsOK(ecode2)) {
70d7cb34 30648 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
72ef6efb
RD
30649 }
30650 arg2 = static_cast< wxDouble >(val2);
30651 ecode3 = SWIG_AsVal_double(obj2, &val3);
30652 if (!SWIG_IsOK(ecode3)) {
70d7cb34 30653 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
72ef6efb
RD
30654 }
30655 arg3 = static_cast< wxDouble >(val3);
30656 ecode4 = SWIG_AsVal_double(obj3, &val4);
30657 if (!SWIG_IsOK(ecode4)) {
70d7cb34 30658 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
72ef6efb
RD
30659 }
30660 arg4 = static_cast< wxDouble >(val4);
30661 ecode5 = SWIG_AsVal_double(obj4, &val5);
30662 if (!SWIG_IsOK(ecode5)) {
70d7cb34 30663 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
72ef6efb
RD
30664 }
30665 arg5 = static_cast< wxDouble >(val5);
30666 ecode6 = SWIG_AsVal_double(obj5, &val6);
30667 if (!SWIG_IsOK(ecode6)) {
70d7cb34 30668 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
72ef6efb
RD
30669 }
30670 arg6 = static_cast< wxDouble >(val6);
30671 {
70d7cb34
RD
30672 arg7 = &temp7;
30673 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
30674 }
30675 {
30676 arg8 = &temp8;
30677 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
30678 }
30679 {
30680 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
72ef6efb
RD
30681 if (PyErr_Occurred()) SWIG_fail;
30682 }
70d7cb34 30683 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
72ef6efb
RD
30684 return resultobj;
30685fail:
30686 return NULL;
30687}
30688
30689
70d7cb34
RD
30690SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30691 PyObject *resultobj = 0;
30692 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
30693 wxFont *arg2 = 0 ;
30694 wxColour const &arg3_defvalue = *wxBLACK ;
30695 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
30696 wxGraphicsFont result;
30697 void *argp1 = 0 ;
30698 int res1 = 0 ;
30699 void *argp2 = 0 ;
30700 int res2 = 0 ;
30701 wxColour temp3 ;
30702 PyObject * obj0 = 0 ;
30703 PyObject * obj1 = 0 ;
30704 PyObject * obj2 = 0 ;
30705 char * kwnames[] = {
30706 (char *) "self",(char *) "font",(char *) "col", NULL
30707 };
30708
30709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
30711 if (!SWIG_IsOK(res1)) {
30712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
30713 }
30714 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
30715 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
30716 if (!SWIG_IsOK(res2)) {
30717 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30718 }
30719 if (!argp2) {
30720 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30721 }
30722 arg2 = reinterpret_cast< wxFont * >(argp2);
30723 if (obj2) {
30724 {
30725 arg3 = &temp3;
30726 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
30727 }
30728 }
30729 {
30730 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
30731 if (PyErr_Occurred()) SWIG_fail;
30732 }
30733 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
30734 return resultobj;
30735fail:
30736 return NULL;
30737}
30738
30739
30740SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
30741 PyObject *obj;
30742 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
70d7cb34 30743 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj));
72ef6efb
RD
30744 return SWIG_Py_Void();
30745}
30746
48a0c021 30747SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
72ef6efb
RD
30748 PyObject *resultobj = 0;
30749 wxWindowDC *arg1 = 0 ;
30750 wxGCDC *result = 0 ;
30751 void *argp1 = 0 ;
30752 int res1 = 0 ;
72ef6efb 30753
48a0c021
RD
30754 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
30755 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
72ef6efb
RD
30756 if (!SWIG_IsOK(res1)) {
30757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30758 }
30759 if (!argp1) {
30760 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
30761 }
30762 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
30763 {
30764 if (!wxPyCheckForApp()) SWIG_fail;
30765 PyThreadState* __tstate = wxPyBeginAllowThreads();
30766 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
30767 wxPyEndAllowThreads(__tstate);
30768 if (PyErr_Occurred()) SWIG_fail;
30769 }
30770 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
30771 return resultobj;
30772fail:
30773 return NULL;
30774}
30775
30776
48a0c021
RD
30777SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30778 PyObject *resultobj = 0;
30779 wxWindow *arg1 = (wxWindow *) 0 ;
30780 wxGCDC *result = 0 ;
30781 void *argp1 = 0 ;
30782 int res1 = 0 ;
30783
30784 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
30785 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
30786 if (!SWIG_IsOK(res1)) {
30787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindow *""'");
30788 }
30789 arg1 = reinterpret_cast< wxWindow * >(argp1);
30790 {
30791 if (!wxPyCheckForApp()) SWIG_fail;
30792 PyThreadState* __tstate = wxPyBeginAllowThreads();
30793 result = (wxGCDC *)new wxGCDC(arg1);
30794 wxPyEndAllowThreads(__tstate);
30795 if (PyErr_Occurred()) SWIG_fail;
30796 }
30797 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
30798 return resultobj;
30799fail:
30800 return NULL;
30801}
30802
30803
30804SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *self, PyObject *args) {
30805 int argc;
30806 PyObject *argv[2];
30807
30808 if (!(argc = SWIG_Python_UnpackTuple(args,"new_GCDC",0,1,argv))) SWIG_fail;
30809 --argc;
30810 if (argc == 1) {
30811 int _v = 0;
30812 {
30813 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
30814 _v = SWIG_CheckState(res);
30815 }
30816 if (!_v) goto check_1;
30817 return _wrap_new_GCDC__SWIG_0(self, argc, argv);
30818 }
30819check_1:
30820
30821 if (argc == 1) {
30822 return _wrap_new_GCDC__SWIG_1(self, argc, argv);
30823 }
30824
30825fail:
30826 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_GCDC'");
30827 return NULL;
30828}
30829
30830
72ef6efb
RD
30831SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30832 PyObject *resultobj = 0;
30833 wxGCDC *arg1 = (wxGCDC *) 0 ;
30834 void *argp1 = 0 ;
30835 int res1 = 0 ;
30836 PyObject *swig_obj[1] ;
30837
30838 if (!args) SWIG_fail;
30839 swig_obj[0] = args;
30840 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
30841 if (!SWIG_IsOK(res1)) {
30842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
30843 }
30844 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30845 {
72ef6efb
RD
30846 delete arg1;
30847
72ef6efb
RD
30848 if (PyErr_Occurred()) SWIG_fail;
30849 }
30850 resultobj = SWIG_Py_Void();
30851 return resultobj;
30852fail:
30853 return NULL;
30854}
30855
30856
0a27f394 30857SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
72ef6efb
RD
30858 PyObject *resultobj = 0;
30859 wxGCDC *arg1 = (wxGCDC *) 0 ;
30860 wxGraphicsContext *result = 0 ;
30861 void *argp1 = 0 ;
30862 int res1 = 0 ;
30863 PyObject *swig_obj[1] ;
30864
30865 if (!args) SWIG_fail;
30866 swig_obj[0] = args;
30867 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
30868 if (!SWIG_IsOK(res1)) {
0a27f394 30869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
72ef6efb
RD
30870 }
30871 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30872 {
0a27f394 30873 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
72ef6efb
RD
30874 if (PyErr_Occurred()) SWIG_fail;
30875 }
30876 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30877 return resultobj;
30878fail:
30879 return NULL;
30880}
30881
30882
0a27f394
RD
30883SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30884 PyObject *resultobj = 0;
30885 wxGCDC *arg1 = (wxGCDC *) 0 ;
30886 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
30887 void *argp1 = 0 ;
30888 int res1 = 0 ;
30889 void *argp2 = 0 ;
30890 int res2 = 0 ;
30891 PyObject * obj0 = 0 ;
30892 PyObject * obj1 = 0 ;
30893 char * kwnames[] = {
30894 (char *) "self",(char *) "ctx", NULL
30895 };
30896
30897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
30898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
30899 if (!SWIG_IsOK(res1)) {
30900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
30901 }
30902 arg1 = reinterpret_cast< wxGCDC * >(argp1);
30903 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
30904 if (!SWIG_IsOK(res2)) {
30905 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
30906 }
30907 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
30908 {
30909 (arg1)->SetGraphicsContext(arg2);
30910 if (PyErr_Occurred()) SWIG_fail;
30911 }
30912 resultobj = SWIG_Py_Void();
30913 return resultobj;
30914fail:
30915 return NULL;
30916}
30917
30918
72ef6efb
RD
30919SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30920 PyObject *obj;
30921 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30922 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
30923 return SWIG_Py_Void();
30924}
30925
30926SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30927 return SWIG_Python_InitShadowInstance(args);
30928}
30929
b39fe951
RD
30930SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30931 PyObject *resultobj = 0;
30932 wxOverlay *result = 0 ;
30933
30934 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
30935 {
30936 PyThreadState* __tstate = wxPyBeginAllowThreads();
30937 result = (wxOverlay *)new wxOverlay();
30938 wxPyEndAllowThreads(__tstate);
30939 if (PyErr_Occurred()) SWIG_fail;
30940 }
30941 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
30942 return resultobj;
30943fail:
30944 return NULL;
30945}
30946
30947
30948SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30949 PyObject *resultobj = 0;
30950 wxOverlay *arg1 = (wxOverlay *) 0 ;
30951 void *argp1 = 0 ;
30952 int res1 = 0 ;
30953 PyObject *swig_obj[1] ;
30954
30955 if (!args) SWIG_fail;
30956 swig_obj[0] = args;
30957 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
30958 if (!SWIG_IsOK(res1)) {
30959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
30960 }
30961 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30962 {
30963 PyThreadState* __tstate = wxPyBeginAllowThreads();
30964 delete arg1;
30965
30966 wxPyEndAllowThreads(__tstate);
30967 if (PyErr_Occurred()) SWIG_fail;
30968 }
30969 resultobj = SWIG_Py_Void();
30970 return resultobj;
30971fail:
30972 return NULL;
30973}
30974
30975
30976SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30977 PyObject *resultobj = 0;
30978 wxOverlay *arg1 = (wxOverlay *) 0 ;
30979 void *argp1 = 0 ;
30980 int res1 = 0 ;
30981 PyObject *swig_obj[1] ;
30982
30983 if (!args) SWIG_fail;
30984 swig_obj[0] = args;
30985 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
30986 if (!SWIG_IsOK(res1)) {
30987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
30988 }
30989 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30990 {
30991 PyThreadState* __tstate = wxPyBeginAllowThreads();
30992 (arg1)->Reset();
30993 wxPyEndAllowThreads(__tstate);
30994 if (PyErr_Occurred()) SWIG_fail;
30995 }
30996 resultobj = SWIG_Py_Void();
30997 return resultobj;
30998fail:
30999 return NULL;
31000}
31001
31002
31003SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31004 PyObject *obj;
31005 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31006 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
31007 return SWIG_Py_Void();
31008}
31009
31010SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31011 return SWIG_Python_InitShadowInstance(args);
31012}
31013
31014SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31015 PyObject *resultobj = 0;
31016 wxOverlay *arg1 = 0 ;
31017 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
31018 int arg3 ;
31019 int arg4 ;
31020 int arg5 ;
31021 int arg6 ;
31022 wxDCOverlay *result = 0 ;
31023 void *argp1 = 0 ;
31024 int res1 = 0 ;
31025 void *argp2 = 0 ;
31026 int res2 = 0 ;
31027 int val3 ;
31028 int ecode3 = 0 ;
31029 int val4 ;
31030 int ecode4 = 0 ;
31031 int val5 ;
31032 int ecode5 = 0 ;
31033 int val6 ;
31034 int ecode6 = 0 ;
31035
31036 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
31037 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
31038 if (!SWIG_IsOK(res1)) {
31039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31040 }
31041 if (!argp1) {
31042 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31043 }
31044 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31045 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
31046 if (!SWIG_IsOK(res2)) {
31047 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
31048 }
31049 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
31050 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
31051 if (!SWIG_IsOK(ecode3)) {
31052 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
31053 }
31054 arg3 = static_cast< int >(val3);
31055 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
31056 if (!SWIG_IsOK(ecode4)) {
31057 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
31058 }
31059 arg4 = static_cast< int >(val4);
31060 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
31061 if (!SWIG_IsOK(ecode5)) {
31062 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
31063 }
31064 arg5 = static_cast< int >(val5);
31065 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
31066 if (!SWIG_IsOK(ecode6)) {
31067 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
31068 }
31069 arg6 = static_cast< int >(val6);
31070 {
31071 PyThreadState* __tstate = wxPyBeginAllowThreads();
31072 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
31073 wxPyEndAllowThreads(__tstate);
31074 if (PyErr_Occurred()) SWIG_fail;
31075 }
31076 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
31077 return resultobj;
31078fail:
31079 return NULL;
31080}
31081
31082
31083SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
31084 PyObject *resultobj = 0;
31085 wxOverlay *arg1 = 0 ;
31086 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
31087 wxDCOverlay *result = 0 ;
31088 void *argp1 = 0 ;
31089 int res1 = 0 ;
31090 void *argp2 = 0 ;
31091 int res2 = 0 ;
31092
31093 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
31094 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
31095 if (!SWIG_IsOK(res1)) {
31096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31097 }
31098 if (!argp1) {
31099 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
31100 }
31101 arg1 = reinterpret_cast< wxOverlay * >(argp1);
31102 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
31103 if (!SWIG_IsOK(res2)) {
31104 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
31105 }
31106 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
31107 {
31108 PyThreadState* __tstate = wxPyBeginAllowThreads();
31109 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
31110 wxPyEndAllowThreads(__tstate);
31111 if (PyErr_Occurred()) SWIG_fail;
31112 }
31113 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
31114 return resultobj;
31115fail:
31116 return NULL;
31117}
31118
31119
31120SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
31121 int argc;
31122 PyObject *argv[7];
31123
31124 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
31125 --argc;
31126 if (argc == 2) {
31127 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
31128 }
31129 if (argc == 6) {
31130 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
31131 }
31132
31133fail:
31134 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
31135 return NULL;
31136}
31137
31138
31139SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31140 PyObject *resultobj = 0;
31141 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
31142 void *argp1 = 0 ;
31143 int res1 = 0 ;
31144 PyObject *swig_obj[1] ;
31145
31146 if (!args) SWIG_fail;
31147 swig_obj[0] = args;
31148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
31149 if (!SWIG_IsOK(res1)) {
31150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
31151 }
31152 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
31153 {
31154 PyThreadState* __tstate = wxPyBeginAllowThreads();
31155 delete arg1;
31156
31157 wxPyEndAllowThreads(__tstate);
31158 if (PyErr_Occurred()) SWIG_fail;
31159 }
31160 resultobj = SWIG_Py_Void();
31161 return resultobj;
31162fail:
31163 return NULL;
31164}
31165
31166
31167SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31168 PyObject *resultobj = 0;
31169 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
31170 void *argp1 = 0 ;
31171 int res1 = 0 ;
31172 PyObject *swig_obj[1] ;
31173
31174 if (!args) SWIG_fail;
31175 swig_obj[0] = args;
31176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
31177 if (!SWIG_IsOK(res1)) {
31178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
31179 }
31180 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
31181 {
31182 PyThreadState* __tstate = wxPyBeginAllowThreads();
31183 (arg1)->Clear();
31184 wxPyEndAllowThreads(__tstate);
31185 if (PyErr_Occurred()) SWIG_fail;
31186 }
31187 resultobj = SWIG_Py_Void();
31188 return resultobj;
31189fail:
31190 return NULL;
31191}
31192
31193
31194SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31195 PyObject *obj;
31196 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31197 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
31198 return SWIG_Py_Void();
31199}
31200
31201SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31202 return SWIG_Python_InitShadowInstance(args);
31203}
31204
72ef6efb
RD
31205SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31206 PyObject *resultobj = 0;
31207 int arg1 ;
31208 int arg2 ;
31209 int arg3 = (int) true ;
31210 int arg4 = (int) 1 ;
31211 wxImageList *result = 0 ;
31212 int val1 ;
31213 int ecode1 = 0 ;
31214 int val2 ;
31215 int ecode2 = 0 ;
31216 int val3 ;
31217 int ecode3 = 0 ;
31218 int val4 ;
31219 int ecode4 = 0 ;
31220 PyObject * obj0 = 0 ;
31221 PyObject * obj1 = 0 ;
31222 PyObject * obj2 = 0 ;
31223 PyObject * obj3 = 0 ;
31224 char * kwnames[] = {
31225 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
31226 };
31227
31228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31229 ecode1 = SWIG_AsVal_int(obj0, &val1);
31230 if (!SWIG_IsOK(ecode1)) {
31231 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
31232 }
31233 arg1 = static_cast< int >(val1);
31234 ecode2 = SWIG_AsVal_int(obj1, &val2);
31235 if (!SWIG_IsOK(ecode2)) {
31236 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
31237 }
31238 arg2 = static_cast< int >(val2);
31239 if (obj2) {
31240 ecode3 = SWIG_AsVal_int(obj2, &val3);
31241 if (!SWIG_IsOK(ecode3)) {
31242 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
31243 }
31244 arg3 = static_cast< int >(val3);
31245 }
31246 if (obj3) {
31247 ecode4 = SWIG_AsVal_int(obj3, &val4);
31248 if (!SWIG_IsOK(ecode4)) {
31249 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
31250 }
31251 arg4 = static_cast< int >(val4);
31252 }
31253 {
31254 if (!wxPyCheckForApp()) SWIG_fail;
31255 PyThreadState* __tstate = wxPyBeginAllowThreads();
31256 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
31257 wxPyEndAllowThreads(__tstate);
31258 if (PyErr_Occurred()) SWIG_fail;
31259 }
e02c0a13 31260 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
72ef6efb
RD
31261 return resultobj;
31262fail:
31263 return NULL;
31264}
31265
31266
31267SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31268 PyObject *resultobj = 0;
31269 wxImageList *arg1 = (wxImageList *) 0 ;
31270 void *argp1 = 0 ;
31271 int res1 = 0 ;
31272 PyObject *swig_obj[1] ;
31273
31274 if (!args) SWIG_fail;
31275 swig_obj[0] = args;
31276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
31277 if (!SWIG_IsOK(res1)) {
31278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
31279 }
31280 arg1 = reinterpret_cast< wxImageList * >(argp1);
31281 {
31282 PyThreadState* __tstate = wxPyBeginAllowThreads();
31283 delete arg1;
31284
31285 wxPyEndAllowThreads(__tstate);
31286 if (PyErr_Occurred()) SWIG_fail;
31287 }
31288 resultobj = SWIG_Py_Void();
31289 return resultobj;
31290fail:
31291 return NULL;
31292}
31293
31294
31295SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31296 PyObject *resultobj = 0;
31297 wxImageList *arg1 = (wxImageList *) 0 ;
31298 wxBitmap *arg2 = 0 ;
31299 wxBitmap const &arg3_defvalue = wxNullBitmap ;
31300 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
31301 int result;
31302 void *argp1 = 0 ;
31303 int res1 = 0 ;
31304 void *argp2 = 0 ;
31305 int res2 = 0 ;
31306 void *argp3 = 0 ;
31307 int res3 = 0 ;
31308 PyObject * obj0 = 0 ;
31309 PyObject * obj1 = 0 ;
31310 PyObject * obj2 = 0 ;
31311 char * kwnames[] = {
31312 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
31313 };
31314
31315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31317 if (!SWIG_IsOK(res1)) {
31318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
31319 }
31320 arg1 = reinterpret_cast< wxImageList * >(argp1);
31321 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31322 if (!SWIG_IsOK(res2)) {
31323 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31324 }
31325 if (!argp2) {
31326 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31327 }
31328 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31329 if (obj2) {
31330 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31331 if (!SWIG_IsOK(res3)) {
31332 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31333 }
31334 if (!argp3) {
31335 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31336 }
31337 arg3 = reinterpret_cast< wxBitmap * >(argp3);
31338 }
31339 {
31340 PyThreadState* __tstate = wxPyBeginAllowThreads();
31341 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
31342 wxPyEndAllowThreads(__tstate);
31343 if (PyErr_Occurred()) SWIG_fail;
31344 }
31345 resultobj = SWIG_From_int(static_cast< int >(result));
31346 return resultobj;
31347fail:
31348 return NULL;
31349}
31350
31351
31352SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31353 PyObject *resultobj = 0;
31354 wxImageList *arg1 = (wxImageList *) 0 ;
31355 wxBitmap *arg2 = 0 ;
31356 wxColour *arg3 = 0 ;
31357 int result;
31358 void *argp1 = 0 ;
31359 int res1 = 0 ;
31360 void *argp2 = 0 ;
31361 int res2 = 0 ;
31362 wxColour temp3 ;
31363 PyObject * obj0 = 0 ;
31364 PyObject * obj1 = 0 ;
31365 PyObject * obj2 = 0 ;
31366 char * kwnames[] = {
31367 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
31368 };
31369
31370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31372 if (!SWIG_IsOK(res1)) {
31373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
31374 }
31375 arg1 = reinterpret_cast< wxImageList * >(argp1);
31376 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
31377 if (!SWIG_IsOK(res2)) {
31378 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31379 }
31380 if (!argp2) {
31381 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
31382 }
31383 arg2 = reinterpret_cast< wxBitmap * >(argp2);
31384 {
31385 arg3 = &temp3;
31386 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31387 }
31388 {
31389 PyThreadState* __tstate = wxPyBeginAllowThreads();
31390 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
31391 wxPyEndAllowThreads(__tstate);
31392 if (PyErr_Occurred()) SWIG_fail;
31393 }
31394 resultobj = SWIG_From_int(static_cast< int >(result));
31395 return resultobj;
31396fail:
31397 return NULL;
31398}
31399
31400
31401SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31402 PyObject *resultobj = 0;
31403 wxImageList *arg1 = (wxImageList *) 0 ;
31404 wxIcon *arg2 = 0 ;
31405 int result;
31406 void *argp1 = 0 ;
31407 int res1 = 0 ;
31408 void *argp2 = 0 ;
31409 int res2 = 0 ;
31410 PyObject * obj0 = 0 ;
31411 PyObject * obj1 = 0 ;
31412 char * kwnames[] = {
31413 (char *) "self",(char *) "icon", NULL
31414 };
31415
31416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31418 if (!SWIG_IsOK(res1)) {
31419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
31420 }
1bd55598
RD
31421 arg1 = reinterpret_cast< wxImageList * >(argp1);
31422 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
31423 if (!SWIG_IsOK(res2)) {
31424 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31425 }
31426 if (!argp2) {
31427 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
31428 }
31429 arg2 = reinterpret_cast< wxIcon * >(argp2);
31430 {
31431 PyThreadState* __tstate = wxPyBeginAllowThreads();
31432 result = (int)(arg1)->Add((wxIcon const &)*arg2);
31433 wxPyEndAllowThreads(__tstate);
31434 if (PyErr_Occurred()) SWIG_fail;
31435 }
31436 resultobj = SWIG_From_int(static_cast< int >(result));
31437 return resultobj;
31438fail:
31439 return NULL;
31440}
31441
31442
31443SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31444 PyObject *resultobj = 0;
31445 wxImageList *arg1 = (wxImageList *) 0 ;
31446 int arg2 ;
31447 SwigValueWrapper<wxBitmap > result;
31448 void *argp1 = 0 ;
31449 int res1 = 0 ;
31450 int val2 ;
31451 int ecode2 = 0 ;
31452 PyObject * obj0 = 0 ;
31453 PyObject * obj1 = 0 ;
31454 char * kwnames[] = {
31455 (char *) "self",(char *) "index", NULL
31456 };
31457
31458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
31459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31460 if (!SWIG_IsOK(res1)) {
31461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
31462 }
31463 arg1 = reinterpret_cast< wxImageList * >(argp1);
31464 ecode2 = SWIG_AsVal_int(obj1, &val2);
31465 if (!SWIG_IsOK(ecode2)) {
31466 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
31467 }
31468 arg2 = static_cast< int >(val2);
31469 {
31470 PyThreadState* __tstate = wxPyBeginAllowThreads();
31471 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
31472 wxPyEndAllowThreads(__tstate);
31473 if (PyErr_Occurred()) SWIG_fail;
31474 }
31475 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
31476 return resultobj;
31477fail:
31478 return NULL;
31479}
31480
31481
31482SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31483 PyObject *resultobj = 0;
31484 wxImageList *arg1 = (wxImageList *) 0 ;
31485 int arg2 ;
31486 wxIcon result;
31487 void *argp1 = 0 ;
31488 int res1 = 0 ;
31489 int val2 ;
31490 int ecode2 = 0 ;
31491 PyObject * obj0 = 0 ;
31492 PyObject * obj1 = 0 ;
31493 char * kwnames[] = {
31494 (char *) "self",(char *) "index", NULL
31495 };
31496
31497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
31498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31499 if (!SWIG_IsOK(res1)) {
31500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
31501 }
31502 arg1 = reinterpret_cast< wxImageList * >(argp1);
31503 ecode2 = SWIG_AsVal_int(obj1, &val2);
31504 if (!SWIG_IsOK(ecode2)) {
31505 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
31506 }
31507 arg2 = static_cast< int >(val2);
31508 {
31509 PyThreadState* __tstate = wxPyBeginAllowThreads();
31510 result = ((wxImageList const *)arg1)->GetIcon(arg2);
31511 wxPyEndAllowThreads(__tstate);
31512 if (PyErr_Occurred()) SWIG_fail;
31513 }
31514 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
31515 return resultobj;
31516fail:
31517 return NULL;
31518}
31519
31520
31521SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31522 PyObject *resultobj = 0;
31523 wxImageList *arg1 = (wxImageList *) 0 ;
31524 int arg2 ;
31525 wxBitmap *arg3 = 0 ;
2131d850
RD
31526 wxBitmap const &arg4_defvalue = wxNullBitmap ;
31527 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
1bd55598
RD
31528 bool result;
31529 void *argp1 = 0 ;
31530 int res1 = 0 ;
31531 int val2 ;
31532 int ecode2 = 0 ;
31533 void *argp3 = 0 ;
31534 int res3 = 0 ;
2131d850
RD
31535 void *argp4 = 0 ;
31536 int res4 = 0 ;
1bd55598
RD
31537 PyObject * obj0 = 0 ;
31538 PyObject * obj1 = 0 ;
31539 PyObject * obj2 = 0 ;
2131d850 31540 PyObject * obj3 = 0 ;
1bd55598 31541 char * kwnames[] = {
2131d850 31542 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
1bd55598
RD
31543 };
31544
2131d850 31545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
31546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31547 if (!SWIG_IsOK(res1)) {
31548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
31549 }
31550 arg1 = reinterpret_cast< wxImageList * >(argp1);
31551 ecode2 = SWIG_AsVal_int(obj1, &val2);
31552 if (!SWIG_IsOK(ecode2)) {
31553 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
31554 }
31555 arg2 = static_cast< int >(val2);
31556 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
31557 if (!SWIG_IsOK(res3)) {
31558 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31559 }
31560 if (!argp3) {
31561 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
31562 }
31563 arg3 = reinterpret_cast< wxBitmap * >(argp3);
2131d850
RD
31564 if (obj3) {
31565 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
31566 if (!SWIG_IsOK(res4)) {
31567 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
31568 }
31569 if (!argp4) {
31570 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
31571 }
31572 arg4 = reinterpret_cast< wxBitmap * >(argp4);
31573 }
1bd55598
RD
31574 {
31575 PyThreadState* __tstate = wxPyBeginAllowThreads();
2131d850 31576 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
1bd55598
RD
31577 wxPyEndAllowThreads(__tstate);
31578 if (PyErr_Occurred()) SWIG_fail;
31579 }
31580 {
31581 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31582 }
31583 return resultobj;
31584fail:
31585 return NULL;
31586}
31587
31588
31589SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31590 PyObject *resultobj = 0;
31591 wxImageList *arg1 = (wxImageList *) 0 ;
31592 int arg2 ;
31593 wxDC *arg3 = 0 ;
31594 int arg4 ;
31595 int arg5 ;
31596 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
31597 bool arg7 = (bool) (bool)false ;
31598 bool result;
31599 void *argp1 = 0 ;
31600 int res1 = 0 ;
31601 int val2 ;
31602 int ecode2 = 0 ;
31603 void *argp3 = 0 ;
31604 int res3 = 0 ;
31605 int val4 ;
31606 int ecode4 = 0 ;
31607 int val5 ;
31608 int ecode5 = 0 ;
31609 int val6 ;
31610 int ecode6 = 0 ;
31611 bool val7 ;
31612 int ecode7 = 0 ;
31613 PyObject * obj0 = 0 ;
31614 PyObject * obj1 = 0 ;
31615 PyObject * obj2 = 0 ;
31616 PyObject * obj3 = 0 ;
31617 PyObject * obj4 = 0 ;
31618 PyObject * obj5 = 0 ;
31619 PyObject * obj6 = 0 ;
31620 char * kwnames[] = {
31621 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
31622 };
31623
31624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31626 if (!SWIG_IsOK(res1)) {
31627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
31628 }
31629 arg1 = reinterpret_cast< wxImageList * >(argp1);
31630 ecode2 = SWIG_AsVal_int(obj1, &val2);
31631 if (!SWIG_IsOK(ecode2)) {
31632 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
31633 }
31634 arg2 = static_cast< int >(val2);
31635 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31636 if (!SWIG_IsOK(res3)) {
31637 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31638 }
31639 if (!argp3) {
31640 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
31641 }
31642 arg3 = reinterpret_cast< wxDC * >(argp3);
31643 ecode4 = SWIG_AsVal_int(obj3, &val4);
31644 if (!SWIG_IsOK(ecode4)) {
31645 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
31646 }
31647 arg4 = static_cast< int >(val4);
31648 ecode5 = SWIG_AsVal_int(obj4, &val5);
31649 if (!SWIG_IsOK(ecode5)) {
31650 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
31651 }
31652 arg5 = static_cast< int >(val5);
31653 if (obj5) {
31654 ecode6 = SWIG_AsVal_int(obj5, &val6);
31655 if (!SWIG_IsOK(ecode6)) {
31656 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
31657 }
31658 arg6 = static_cast< int >(val6);
31659 }
31660 if (obj6) {
31661 ecode7 = SWIG_AsVal_bool(obj6, &val7);
31662 if (!SWIG_IsOK(ecode7)) {
31663 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
31664 }
31665 arg7 = static_cast< bool >(val7);
31666 }
31667 {
31668 PyThreadState* __tstate = wxPyBeginAllowThreads();
31669 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
31670 wxPyEndAllowThreads(__tstate);
31671 if (PyErr_Occurred()) SWIG_fail;
31672 }
31673 {
31674 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31675 }
31676 return resultobj;
31677fail:
31678 return NULL;
31679}
31680
31681
31682SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31683 PyObject *resultobj = 0;
31684 wxImageList *arg1 = (wxImageList *) 0 ;
31685 int result;
31686 void *argp1 = 0 ;
31687 int res1 = 0 ;
31688 PyObject *swig_obj[1] ;
31689
31690 if (!args) SWIG_fail;
31691 swig_obj[0] = args;
31692 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31693 if (!SWIG_IsOK(res1)) {
31694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
31695 }
31696 arg1 = reinterpret_cast< wxImageList * >(argp1);
31697 {
31698 PyThreadState* __tstate = wxPyBeginAllowThreads();
31699 result = (int)(arg1)->GetImageCount();
31700 wxPyEndAllowThreads(__tstate);
31701 if (PyErr_Occurred()) SWIG_fail;
31702 }
31703 resultobj = SWIG_From_int(static_cast< int >(result));
31704 return resultobj;
31705fail:
31706 return NULL;
31707}
31708
31709
31710SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31711 PyObject *resultobj = 0;
31712 wxImageList *arg1 = (wxImageList *) 0 ;
31713 int arg2 ;
31714 bool result;
31715 void *argp1 = 0 ;
31716 int res1 = 0 ;
31717 int val2 ;
31718 int ecode2 = 0 ;
31719 PyObject * obj0 = 0 ;
31720 PyObject * obj1 = 0 ;
31721 char * kwnames[] = {
31722 (char *) "self",(char *) "index", NULL
31723 };
31724
31725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
31726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31727 if (!SWIG_IsOK(res1)) {
31728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
31729 }
31730 arg1 = reinterpret_cast< wxImageList * >(argp1);
31731 ecode2 = SWIG_AsVal_int(obj1, &val2);
31732 if (!SWIG_IsOK(ecode2)) {
31733 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
31734 }
31735 arg2 = static_cast< int >(val2);
31736 {
31737 PyThreadState* __tstate = wxPyBeginAllowThreads();
31738 result = (bool)(arg1)->Remove(arg2);
31739 wxPyEndAllowThreads(__tstate);
31740 if (PyErr_Occurred()) SWIG_fail;
31741 }
31742 {
31743 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31744 }
31745 return resultobj;
31746fail:
31747 return NULL;
31748}
31749
31750
31751SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31752 PyObject *resultobj = 0;
31753 wxImageList *arg1 = (wxImageList *) 0 ;
31754 bool result;
31755 void *argp1 = 0 ;
31756 int res1 = 0 ;
31757 PyObject *swig_obj[1] ;
31758
31759 if (!args) SWIG_fail;
31760 swig_obj[0] = args;
31761 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31762 if (!SWIG_IsOK(res1)) {
31763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
31764 }
31765 arg1 = reinterpret_cast< wxImageList * >(argp1);
31766 {
31767 PyThreadState* __tstate = wxPyBeginAllowThreads();
31768 result = (bool)(arg1)->RemoveAll();
31769 wxPyEndAllowThreads(__tstate);
31770 if (PyErr_Occurred()) SWIG_fail;
31771 }
31772 {
31773 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31774 }
31775 return resultobj;
31776fail:
31777 return NULL;
31778}
31779
31780
31781SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31782 PyObject *resultobj = 0;
31783 wxImageList *arg1 = (wxImageList *) 0 ;
31784 int arg2 ;
31785 int *arg3 = 0 ;
31786 int *arg4 = 0 ;
31787 void *argp1 = 0 ;
31788 int res1 = 0 ;
31789 int val2 ;
31790 int ecode2 = 0 ;
31791 int temp3 ;
31792 int res3 = SWIG_TMPOBJ ;
31793 int temp4 ;
31794 int res4 = SWIG_TMPOBJ ;
31795 PyObject * obj0 = 0 ;
31796 PyObject * obj1 = 0 ;
31797 char * kwnames[] = {
31798 (char *) "self",(char *) "index", NULL
31799 };
31800
31801 arg3 = &temp3;
31802 arg4 = &temp4;
31803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
31804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
31805 if (!SWIG_IsOK(res1)) {
31806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
31807 }
31808 arg1 = reinterpret_cast< wxImageList * >(argp1);
31809 ecode2 = SWIG_AsVal_int(obj1, &val2);
31810 if (!SWIG_IsOK(ecode2)) {
31811 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
31812 }
31813 arg2 = static_cast< int >(val2);
31814 {
31815 PyThreadState* __tstate = wxPyBeginAllowThreads();
31816 (arg1)->GetSize(arg2,*arg3,*arg4);
31817 wxPyEndAllowThreads(__tstate);
31818 if (PyErr_Occurred()) SWIG_fail;
31819 }
31820 resultobj = SWIG_Py_Void();
31821 if (SWIG_IsTmpObj(res3)) {
31822 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31823 } else {
31824 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31825 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31826 }
31827 if (SWIG_IsTmpObj(res4)) {
31828 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
31829 } else {
31830 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31831 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
31832 }
31833 return resultobj;
31834fail:
31835 return NULL;
31836}
31837
31838
31839SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31840 PyObject *obj;
31841 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31842 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
31843 return SWIG_Py_Void();
31844}
31845
31846SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31847 return SWIG_Python_InitShadowInstance(args);
31848}
31849
da91cb0f
RD
31850SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31851 PyObject *resultobj = 0;
31852 wxStockGDI *result = 0 ;
1bd55598 31853
da91cb0f
RD
31854 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
31855 {
31856 PyThreadState* __tstate = wxPyBeginAllowThreads();
31857 result = (wxStockGDI *)new wxStockGDI();
31858 wxPyEndAllowThreads(__tstate);
31859 if (PyErr_Occurred()) SWIG_fail;
31860 }
31861 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
31862 return resultobj;
31863fail:
31864 return NULL;
1bd55598
RD
31865}
31866
31867
da91cb0f
RD
31868SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31869 PyObject *resultobj = 0;
31870 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
31871 void *argp1 = 0 ;
31872 int res1 = 0 ;
31873 PyObject *swig_obj[1] ;
1bd55598 31874
da91cb0f
RD
31875 if (!args) SWIG_fail;
31876 swig_obj[0] = args;
31877 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
31878 if (!SWIG_IsOK(res1)) {
31879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
31880 }
31881 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
31882 {
31883 PyThreadState* __tstate = wxPyBeginAllowThreads();
31884 delete arg1;
31885
31886 wxPyEndAllowThreads(__tstate);
31887 if (PyErr_Occurred()) SWIG_fail;
31888 }
31889 resultobj = SWIG_Py_Void();
31890 return resultobj;
31891fail:
31892 return NULL;
1bd55598
RD
31893}
31894
31895
da91cb0f
RD
31896SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31897 PyObject *resultobj = 0;
1bd55598 31898
da91cb0f
RD
31899 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
31900 {
31901 PyThreadState* __tstate = wxPyBeginAllowThreads();
31902 wxStockGDI::DeleteAll();
31903 wxPyEndAllowThreads(__tstate);
31904 if (PyErr_Occurred()) SWIG_fail;
31905 }
31906 resultobj = SWIG_Py_Void();
31907 return resultobj;
31908fail:
31909 return NULL;
1bd55598
RD
31910}
31911
31912
da91cb0f
RD
31913SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31914 PyObject *resultobj = 0;
31915 wxStockGDI *result = 0 ;
1bd55598 31916
da91cb0f
RD
31917 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
31918 {
31919 PyThreadState* __tstate = wxPyBeginAllowThreads();
31920 {
31921 wxStockGDI &_result_ref = wxStockGDI::instance();
31922 result = (wxStockGDI *) &_result_ref;
31923 }
31924 wxPyEndAllowThreads(__tstate);
31925 if (PyErr_Occurred()) SWIG_fail;
31926 }
31927 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
31928 return resultobj;
31929fail:
31930 return NULL;
1bd55598
RD
31931}
31932
31933
da91cb0f
RD
31934SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31935 PyObject *resultobj = 0;
31936 wxStockGDI::Item arg1 ;
31937 wxBrush *result = 0 ;
31938 int val1 ;
31939 int ecode1 = 0 ;
31940 PyObject * obj0 = 0 ;
31941 char * kwnames[] = {
31942 (char *) "item", NULL
31943 };
31944
31945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
31946 ecode1 = SWIG_AsVal_int(obj0, &val1);
31947 if (!SWIG_IsOK(ecode1)) {
31948 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31949 }
31950 arg1 = static_cast< wxStockGDI::Item >(val1);
31951 {
31952 PyThreadState* __tstate = wxPyBeginAllowThreads();
31953 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
31954 wxPyEndAllowThreads(__tstate);
31955 if (PyErr_Occurred()) SWIG_fail;
31956 }
31957 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
31958 return resultobj;
31959fail:
31960 return NULL;
1bd55598
RD
31961}
31962
31963
da91cb0f
RD
31964SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31965 PyObject *resultobj = 0;
31966 wxStockGDI::Item arg1 ;
31967 wxColour *result = 0 ;
31968 int val1 ;
31969 int ecode1 = 0 ;
31970 PyObject * obj0 = 0 ;
31971 char * kwnames[] = {
31972 (char *) "item", NULL
31973 };
1bd55598 31974
da91cb0f
RD
31975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
31976 ecode1 = SWIG_AsVal_int(obj0, &val1);
31977 if (!SWIG_IsOK(ecode1)) {
31978 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31979 }
31980 arg1 = static_cast< wxStockGDI::Item >(val1);
31981 {
31982 PyThreadState* __tstate = wxPyBeginAllowThreads();
31983 result = (wxColour *)wxStockGDI::GetColour(arg1);
31984 wxPyEndAllowThreads(__tstate);
31985 if (PyErr_Occurred()) SWIG_fail;
31986 }
31987 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
31988 return resultobj;
31989fail:
31990 return NULL;
1bd55598
RD
31991}
31992
31993
da91cb0f
RD
31994SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31995 PyObject *resultobj = 0;
31996 wxStockGDI::Item arg1 ;
31997 wxCursor *result = 0 ;
31998 int val1 ;
31999 int ecode1 = 0 ;
32000 PyObject * obj0 = 0 ;
32001 char * kwnames[] = {
32002 (char *) "item", NULL
32003 };
32004
32005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
32006 ecode1 = SWIG_AsVal_int(obj0, &val1);
32007 if (!SWIG_IsOK(ecode1)) {
32008 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32009 }
32010 arg1 = static_cast< wxStockGDI::Item >(val1);
32011 {
32012 PyThreadState* __tstate = wxPyBeginAllowThreads();
32013 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
32014 wxPyEndAllowThreads(__tstate);
32015 if (PyErr_Occurred()) SWIG_fail;
32016 }
32017 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
32018 return resultobj;
32019fail:
32020 return NULL;
1bd55598
RD
32021}
32022
32023
da91cb0f
RD
32024SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32025 PyObject *resultobj = 0;
32026 wxStockGDI::Item arg1 ;
32027 wxPen *result = 0 ;
32028 int val1 ;
32029 int ecode1 = 0 ;
32030 PyObject * obj0 = 0 ;
32031 char * kwnames[] = {
32032 (char *) "item", NULL
32033 };
32034
32035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
32036 ecode1 = SWIG_AsVal_int(obj0, &val1);
32037 if (!SWIG_IsOK(ecode1)) {
32038 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
32039 }
32040 arg1 = static_cast< wxStockGDI::Item >(val1);
32041 {
32042 PyThreadState* __tstate = wxPyBeginAllowThreads();
32043 result = (wxPen *)wxStockGDI::GetPen(arg1);
32044 wxPyEndAllowThreads(__tstate);
32045 if (PyErr_Occurred()) SWIG_fail;
32046 }
32047 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
32048 return resultobj;
32049fail:
32050 return NULL;
1bd55598
RD
32051}
32052
32053
da91cb0f
RD
32054SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32055 PyObject *resultobj = 0;
32056 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
32057 wxStockGDI::Item arg2 ;
32058 wxFont *result = 0 ;
32059 void *argp1 = 0 ;
32060 int res1 = 0 ;
32061 int val2 ;
32062 int ecode2 = 0 ;
32063 PyObject * obj0 = 0 ;
32064 PyObject * obj1 = 0 ;
32065 char * kwnames[] = {
32066 (char *) "self",(char *) "item", NULL
32067 };
1bd55598 32068
da91cb0f
RD
32069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
32070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
32071 if (!SWIG_IsOK(res1)) {
32072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
32073 }
32074 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
32075 ecode2 = SWIG_AsVal_int(obj1, &val2);
32076 if (!SWIG_IsOK(ecode2)) {
32077 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
32078 }
32079 arg2 = static_cast< wxStockGDI::Item >(val2);
32080 {
32081 PyThreadState* __tstate = wxPyBeginAllowThreads();
32082 result = (wxFont *)(arg1)->GetFont(arg2);
32083 wxPyEndAllowThreads(__tstate);
32084 if (PyErr_Occurred()) SWIG_fail;
32085 }
32086 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
32087 return resultobj;
32088fail:
32089 return NULL;
1bd55598
RD
32090}
32091
32092
da91cb0f
RD
32093SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32094 PyObject *obj;
32095 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32096 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
32097 return SWIG_Py_Void();
1bd55598
RD
32098}
32099
da91cb0f
RD
32100SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32101 return SWIG_Python_InitShadowInstance(args);
1bd55598
RD
32102}
32103
1bd55598
RD
32104SWIGINTERN int NullBitmap_set(PyObject *) {
32105 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
32106 return 1;
32107}
32108
32109
32110SWIGINTERN PyObject *NullBitmap_get(void) {
32111 PyObject *pyobj = 0;
32112
32113 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
32114 return pyobj;
32115}
32116
32117
32118SWIGINTERN int NullIcon_set(PyObject *) {
32119 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
32120 return 1;
32121}
32122
32123
32124SWIGINTERN PyObject *NullIcon_get(void) {
32125 PyObject *pyobj = 0;
32126
32127 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
32128 return pyobj;
32129}
32130
32131
32132SWIGINTERN int NullCursor_set(PyObject *) {
32133 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
32134 return 1;
32135}
32136
32137
32138SWIGINTERN PyObject *NullCursor_get(void) {
32139 PyObject *pyobj = 0;
32140
32141 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
32142 return pyobj;
32143}
32144
32145
32146SWIGINTERN int NullPen_set(PyObject *) {
32147 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
32148 return 1;
32149}
32150
32151
32152SWIGINTERN PyObject *NullPen_get(void) {
32153 PyObject *pyobj = 0;
32154
32155 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
32156 return pyobj;
32157}
32158
32159
32160SWIGINTERN int NullBrush_set(PyObject *) {
32161 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
32162 return 1;
32163}
32164
32165
32166SWIGINTERN PyObject *NullBrush_get(void) {
32167 PyObject *pyobj = 0;
32168
32169 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
32170 return pyobj;
32171}
32172
32173
32174SWIGINTERN int NullPalette_set(PyObject *) {
32175 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
32176 return 1;
32177}
32178
32179
32180SWIGINTERN PyObject *NullPalette_get(void) {
32181 PyObject *pyobj = 0;
32182
32183 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
32184 return pyobj;
32185}
32186
32187
32188SWIGINTERN int NullFont_set(PyObject *) {
32189 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
32190 return 1;
32191}
32192
32193
32194SWIGINTERN PyObject *NullFont_get(void) {
32195 PyObject *pyobj = 0;
32196
32197 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
32198 return pyobj;
32199}
32200
32201
32202SWIGINTERN int NullColour_set(PyObject *) {
32203 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
32204 return 1;
32205}
32206
32207
32208SWIGINTERN PyObject *NullColour_get(void) {
32209 PyObject *pyobj = 0;
32210
32211 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
32212 return pyobj;
32213}
32214
32215
da91cb0f 32216SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 32217 PyObject *resultobj = 0;
da91cb0f
RD
32218 wxGDIObjListBase *result = 0 ;
32219
32220 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
32221 {
32222 PyThreadState* __tstate = wxPyBeginAllowThreads();
32223 result = (wxGDIObjListBase *)new wxGDIObjListBase();
32224 wxPyEndAllowThreads(__tstate);
32225 if (PyErr_Occurred()) SWIG_fail;
32226 }
32227 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
32228 return resultobj;
32229fail:
32230 return NULL;
32231}
32232
32233
32234SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32235 PyObject *resultobj = 0;
32236 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
1bd55598
RD
32237 void *argp1 = 0 ;
32238 int res1 = 0 ;
da91cb0f 32239 PyObject *swig_obj[1] ;
1bd55598 32240
da91cb0f
RD
32241 if (!args) SWIG_fail;
32242 swig_obj[0] = args;
32243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
1bd55598 32244 if (!SWIG_IsOK(res1)) {
da91cb0f 32245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
1bd55598 32246 }
da91cb0f 32247 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
1bd55598
RD
32248 {
32249 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f
RD
32250 delete arg1;
32251
1bd55598
RD
32252 wxPyEndAllowThreads(__tstate);
32253 if (PyErr_Occurred()) SWIG_fail;
32254 }
32255 resultobj = SWIG_Py_Void();
32256 return resultobj;
32257fail:
32258 return NULL;
32259}
32260
32261
da91cb0f
RD
32262SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32263 PyObject *obj;
32264 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32265 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
32266 return SWIG_Py_Void();
32267}
32268
32269SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32270 return SWIG_Python_InitShadowInstance(args);
32271}
32272
1bd55598
RD
32273SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32274 PyObject *resultobj = 0;
32275 wxPenList *arg1 = (wxPenList *) 0 ;
32276 wxColour *arg2 = 0 ;
32277 int arg3 ;
32278 int arg4 ;
32279 wxPen *result = 0 ;
32280 void *argp1 = 0 ;
32281 int res1 = 0 ;
32282 wxColour temp2 ;
32283 int val3 ;
32284 int ecode3 = 0 ;
32285 int val4 ;
32286 int ecode4 = 0 ;
32287 PyObject * obj0 = 0 ;
32288 PyObject * obj1 = 0 ;
32289 PyObject * obj2 = 0 ;
32290 PyObject * obj3 = 0 ;
32291 char * kwnames[] = {
32292 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
32293 };
32294
32295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32297 if (!SWIG_IsOK(res1)) {
32298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
32299 }
32300 arg1 = reinterpret_cast< wxPenList * >(argp1);
32301 {
32302 arg2 = &temp2;
32303 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32304 }
32305 ecode3 = SWIG_AsVal_int(obj2, &val3);
32306 if (!SWIG_IsOK(ecode3)) {
32307 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
32308 }
32309 arg3 = static_cast< int >(val3);
32310 ecode4 = SWIG_AsVal_int(obj3, &val4);
32311 if (!SWIG_IsOK(ecode4)) {
32312 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
32313 }
32314 arg4 = static_cast< int >(val4);
32315 {
32316 PyThreadState* __tstate = wxPyBeginAllowThreads();
32317 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
32318 wxPyEndAllowThreads(__tstate);
32319 if (PyErr_Occurred()) SWIG_fail;
32320 }
32321 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
32322 return resultobj;
32323fail:
32324 return NULL;
32325}
32326
32327
da91cb0f 32328SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
32329 PyObject *resultobj = 0;
32330 wxPenList *arg1 = (wxPenList *) 0 ;
32331 wxPen *arg2 = (wxPen *) 0 ;
32332 void *argp1 = 0 ;
32333 int res1 = 0 ;
32334 void *argp2 = 0 ;
32335 int res2 = 0 ;
32336 PyObject * obj0 = 0 ;
32337 PyObject * obj1 = 0 ;
32338 char * kwnames[] = {
32339 (char *) "self",(char *) "pen", NULL
32340 };
32341
da91cb0f 32342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
1bd55598
RD
32343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
32344 if (!SWIG_IsOK(res1)) {
da91cb0f 32345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
1bd55598
RD
32346 }
32347 arg1 = reinterpret_cast< wxPenList * >(argp1);
32348 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
32349 if (!SWIG_IsOK(res2)) {
da91cb0f 32350 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
1bd55598
RD
32351 }
32352 arg2 = reinterpret_cast< wxPen * >(argp2);
32353 {
32354 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32355 (arg1)->AddPen(arg2);
1bd55598
RD
32356 wxPyEndAllowThreads(__tstate);
32357 if (PyErr_Occurred()) SWIG_fail;
32358 }
32359 resultobj = SWIG_Py_Void();
32360 return resultobj;
32361fail:
32362 return NULL;
32363}
32364
32365
da91cb0f 32366SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
32367 PyObject *resultobj = 0;
32368 wxPenList *arg1 = (wxPenList *) 0 ;
da91cb0f 32369 wxPen *arg2 = (wxPen *) 0 ;
1bd55598
RD
32370 void *argp1 = 0 ;
32371 int res1 = 0 ;
da91cb0f
RD
32372 void *argp2 = 0 ;
32373 int res2 = 0 ;
32374 PyObject * obj0 = 0 ;
32375 PyObject * obj1 = 0 ;
32376 char * kwnames[] = {
32377 (char *) "self",(char *) "pen", NULL
32378 };
1bd55598 32379
da91cb0f
RD
32380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
32381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
1bd55598 32382 if (!SWIG_IsOK(res1)) {
da91cb0f 32383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
1bd55598
RD
32384 }
32385 arg1 = reinterpret_cast< wxPenList * >(argp1);
da91cb0f
RD
32386 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
32387 if (!SWIG_IsOK(res2)) {
32388 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
32389 }
32390 arg2 = reinterpret_cast< wxPen * >(argp2);
1bd55598
RD
32391 {
32392 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32393 (arg1)->RemovePen(arg2);
1bd55598
RD
32394 wxPyEndAllowThreads(__tstate);
32395 if (PyErr_Occurred()) SWIG_fail;
32396 }
da91cb0f 32397 resultobj = SWIG_Py_Void();
1bd55598
RD
32398 return resultobj;
32399fail:
32400 return NULL;
32401}
32402
32403
32404SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32405 PyObject *obj;
32406 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32407 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
32408 return SWIG_Py_Void();
32409}
32410
da91cb0f
RD
32411SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32412 PyObject *resultobj = 0;
32413 wxBrushList *arg1 = (wxBrushList *) 0 ;
32414 wxColour *arg2 = 0 ;
32415 int arg3 = (int) wxSOLID ;
32416 wxBrush *result = 0 ;
32417 void *argp1 = 0 ;
32418 int res1 = 0 ;
32419 wxColour temp2 ;
32420 int val3 ;
32421 int ecode3 = 0 ;
32422 PyObject * obj0 = 0 ;
32423 PyObject * obj1 = 0 ;
32424 PyObject * obj2 = 0 ;
32425 char * kwnames[] = {
32426 (char *) "self",(char *) "colour",(char *) "style", NULL
32427 };
32428
32429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32431 if (!SWIG_IsOK(res1)) {
32432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32433 }
32434 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32435 {
32436 arg2 = &temp2;
32437 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32438 }
32439 if (obj2) {
32440 ecode3 = SWIG_AsVal_int(obj2, &val3);
32441 if (!SWIG_IsOK(ecode3)) {
32442 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
32443 }
32444 arg3 = static_cast< int >(val3);
32445 }
32446 {
32447 PyThreadState* __tstate = wxPyBeginAllowThreads();
32448 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
32449 wxPyEndAllowThreads(__tstate);
32450 if (PyErr_Occurred()) SWIG_fail;
32451 }
32452 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
32453 return resultobj;
32454fail:
32455 return NULL;
32456}
32457
32458
1bd55598
RD
32459SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32460 PyObject *resultobj = 0;
32461 wxBrushList *arg1 = (wxBrushList *) 0 ;
32462 wxBrush *arg2 = (wxBrush *) 0 ;
32463 void *argp1 = 0 ;
32464 int res1 = 0 ;
32465 void *argp2 = 0 ;
32466 int res2 = 0 ;
32467 PyObject * obj0 = 0 ;
32468 PyObject * obj1 = 0 ;
32469 char * kwnames[] = {
32470 (char *) "self",(char *) "brush", NULL
32471 };
32472
32473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
32474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32475 if (!SWIG_IsOK(res1)) {
32476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32477 }
32478 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32479 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
32480 if (!SWIG_IsOK(res2)) {
32481 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
32482 }
32483 arg2 = reinterpret_cast< wxBrush * >(argp2);
32484 {
32485 PyThreadState* __tstate = wxPyBeginAllowThreads();
32486 (arg1)->AddBrush(arg2);
32487 wxPyEndAllowThreads(__tstate);
32488 if (PyErr_Occurred()) SWIG_fail;
32489 }
32490 resultobj = SWIG_Py_Void();
32491 return resultobj;
32492fail:
32493 return NULL;
32494}
32495
32496
da91cb0f 32497SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598
RD
32498 PyObject *resultobj = 0;
32499 wxBrushList *arg1 = (wxBrushList *) 0 ;
da91cb0f 32500 wxBrush *arg2 = (wxBrush *) 0 ;
1bd55598
RD
32501 void *argp1 = 0 ;
32502 int res1 = 0 ;
da91cb0f
RD
32503 void *argp2 = 0 ;
32504 int res2 = 0 ;
32505 PyObject * obj0 = 0 ;
32506 PyObject * obj1 = 0 ;
32507 char * kwnames[] = {
32508 (char *) "self",(char *) "brush", NULL
32509 };
32510
32511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
32512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
32513 if (!SWIG_IsOK(res1)) {
32514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
32515 }
32516 arg1 = reinterpret_cast< wxBrushList * >(argp1);
32517 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
32518 if (!SWIG_IsOK(res2)) {
32519 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
32520 }
32521 arg2 = reinterpret_cast< wxBrush * >(argp2);
32522 {
32523 PyThreadState* __tstate = wxPyBeginAllowThreads();
32524 (arg1)->RemoveBrush(arg2);
32525 wxPyEndAllowThreads(__tstate);
32526 if (PyErr_Occurred()) SWIG_fail;
32527 }
32528 resultobj = SWIG_Py_Void();
32529 return resultobj;
32530fail:
32531 return NULL;
32532}
32533
32534
32535SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32536 PyObject *obj;
32537 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32538 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
32539 return SWIG_Py_Void();
32540}
32541
32542SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32543 PyObject *resultobj = 0;
32544 wxFontList *arg1 = (wxFontList *) 0 ;
32545 int arg2 ;
32546 int arg3 ;
32547 int arg4 ;
32548 int arg5 ;
32549 bool arg6 = (bool) false ;
32550 wxString const &arg7_defvalue = wxPyEmptyString ;
32551 wxString *arg7 = (wxString *) &arg7_defvalue ;
32552 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
32553 wxFont *result = 0 ;
32554 void *argp1 = 0 ;
32555 int res1 = 0 ;
32556 int val2 ;
32557 int ecode2 = 0 ;
1bd55598
RD
32558 int val3 ;
32559 int ecode3 = 0 ;
da91cb0f
RD
32560 int val4 ;
32561 int ecode4 = 0 ;
32562 int val5 ;
32563 int ecode5 = 0 ;
32564 bool val6 ;
32565 int ecode6 = 0 ;
32566 bool temp7 = false ;
32567 int val8 ;
32568 int ecode8 = 0 ;
1bd55598
RD
32569 PyObject * obj0 = 0 ;
32570 PyObject * obj1 = 0 ;
32571 PyObject * obj2 = 0 ;
da91cb0f
RD
32572 PyObject * obj3 = 0 ;
32573 PyObject * obj4 = 0 ;
32574 PyObject * obj5 = 0 ;
32575 PyObject * obj6 = 0 ;
32576 PyObject * obj7 = 0 ;
1bd55598 32577 char * kwnames[] = {
da91cb0f 32578 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
1bd55598
RD
32579 };
32580
da91cb0f
RD
32581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598 32583 if (!SWIG_IsOK(res1)) {
da91cb0f 32584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
1bd55598 32585 }
da91cb0f
RD
32586 arg1 = reinterpret_cast< wxFontList * >(argp1);
32587 ecode2 = SWIG_AsVal_int(obj1, &val2);
32588 if (!SWIG_IsOK(ecode2)) {
32589 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
32590 }
32591 arg2 = static_cast< int >(val2);
32592 ecode3 = SWIG_AsVal_int(obj2, &val3);
32593 if (!SWIG_IsOK(ecode3)) {
32594 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
32595 }
32596 arg3 = static_cast< int >(val3);
32597 ecode4 = SWIG_AsVal_int(obj3, &val4);
32598 if (!SWIG_IsOK(ecode4)) {
32599 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
32600 }
32601 arg4 = static_cast< int >(val4);
32602 ecode5 = SWIG_AsVal_int(obj4, &val5);
32603 if (!SWIG_IsOK(ecode5)) {
32604 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
32605 }
32606 arg5 = static_cast< int >(val5);
32607 if (obj5) {
32608 ecode6 = SWIG_AsVal_bool(obj5, &val6);
32609 if (!SWIG_IsOK(ecode6)) {
32610 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
32611 }
32612 arg6 = static_cast< bool >(val6);
1bd55598 32613 }
da91cb0f
RD
32614 if (obj6) {
32615 {
32616 arg7 = wxString_in_helper(obj6);
32617 if (arg7 == NULL) SWIG_fail;
32618 temp7 = true;
32619 }
32620 }
32621 if (obj7) {
32622 ecode8 = SWIG_AsVal_int(obj7, &val8);
32623 if (!SWIG_IsOK(ecode8)) {
32624 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
1bd55598 32625 }
da91cb0f 32626 arg8 = static_cast< wxFontEncoding >(val8);
1bd55598
RD
32627 }
32628 {
32629 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32630 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
1bd55598
RD
32631 wxPyEndAllowThreads(__tstate);
32632 if (PyErr_Occurred()) SWIG_fail;
32633 }
da91cb0f
RD
32634 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
32635 {
32636 if (temp7)
32637 delete arg7;
32638 }
1bd55598
RD
32639 return resultobj;
32640fail:
da91cb0f
RD
32641 {
32642 if (temp7)
32643 delete arg7;
32644 }
1bd55598
RD
32645 return NULL;
32646}
32647
32648
da91cb0f 32649SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 32650 PyObject *resultobj = 0;
da91cb0f
RD
32651 wxFontList *arg1 = (wxFontList *) 0 ;
32652 wxFont *arg2 = (wxFont *) 0 ;
1bd55598
RD
32653 void *argp1 = 0 ;
32654 int res1 = 0 ;
32655 void *argp2 = 0 ;
32656 int res2 = 0 ;
32657 PyObject * obj0 = 0 ;
32658 PyObject * obj1 = 0 ;
32659 char * kwnames[] = {
da91cb0f 32660 (char *) "self",(char *) "font", NULL
1bd55598
RD
32661 };
32662
da91cb0f
RD
32663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
32664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598 32665 if (!SWIG_IsOK(res1)) {
da91cb0f 32666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
1bd55598 32667 }
da91cb0f
RD
32668 arg1 = reinterpret_cast< wxFontList * >(argp1);
32669 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
1bd55598 32670 if (!SWIG_IsOK(res2)) {
da91cb0f 32671 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
1bd55598 32672 }
da91cb0f 32673 arg2 = reinterpret_cast< wxFont * >(argp2);
1bd55598
RD
32674 {
32675 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32676 (arg1)->AddFont(arg2);
1bd55598
RD
32677 wxPyEndAllowThreads(__tstate);
32678 if (PyErr_Occurred()) SWIG_fail;
32679 }
32680 resultobj = SWIG_Py_Void();
32681 return resultobj;
32682fail:
32683 return NULL;
32684}
32685
32686
da91cb0f 32687SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
1bd55598 32688 PyObject *resultobj = 0;
da91cb0f
RD
32689 wxFontList *arg1 = (wxFontList *) 0 ;
32690 wxFont *arg2 = (wxFont *) 0 ;
1bd55598
RD
32691 void *argp1 = 0 ;
32692 int res1 = 0 ;
da91cb0f
RD
32693 void *argp2 = 0 ;
32694 int res2 = 0 ;
32695 PyObject * obj0 = 0 ;
32696 PyObject * obj1 = 0 ;
32697 char * kwnames[] = {
32698 (char *) "self",(char *) "font", NULL
32699 };
1bd55598 32700
da91cb0f
RD
32701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
32702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598 32703 if (!SWIG_IsOK(res1)) {
da91cb0f 32704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
1bd55598 32705 }
da91cb0f
RD
32706 arg1 = reinterpret_cast< wxFontList * >(argp1);
32707 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
32708 if (!SWIG_IsOK(res2)) {
32709 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
32710 }
32711 arg2 = reinterpret_cast< wxFont * >(argp2);
1bd55598
RD
32712 {
32713 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32714 (arg1)->RemoveFont(arg2);
1bd55598
RD
32715 wxPyEndAllowThreads(__tstate);
32716 if (PyErr_Occurred()) SWIG_fail;
32717 }
da91cb0f 32718 resultobj = SWIG_Py_Void();
1bd55598
RD
32719 return resultobj;
32720fail:
32721 return NULL;
32722}
32723
32724
da91cb0f 32725SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598
RD
32726 PyObject *obj;
32727 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
da91cb0f 32728 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
1bd55598
RD
32729 return SWIG_Py_Void();
32730}
32731
32732SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32733 PyObject *resultobj = 0;
32734 wxColourDatabase *result = 0 ;
32735
32736 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
32737 {
32738 if (!wxPyCheckForApp()) SWIG_fail;
32739 PyThreadState* __tstate = wxPyBeginAllowThreads();
32740 result = (wxColourDatabase *)new wxColourDatabase();
32741 wxPyEndAllowThreads(__tstate);
32742 if (PyErr_Occurred()) SWIG_fail;
32743 }
32744 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
32745 return resultobj;
32746fail:
32747 return NULL;
32748}
32749
32750
32751SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32752 PyObject *resultobj = 0;
32753 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32754 void *argp1 = 0 ;
32755 int res1 = 0 ;
32756 PyObject *swig_obj[1] ;
32757
32758 if (!args) SWIG_fail;
32759 swig_obj[0] = args;
32760 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
32761 if (!SWIG_IsOK(res1)) {
32762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32763 }
32764 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32765 {
32766 PyThreadState* __tstate = wxPyBeginAllowThreads();
32767 delete arg1;
32768
32769 wxPyEndAllowThreads(__tstate);
32770 if (PyErr_Occurred()) SWIG_fail;
32771 }
32772 resultobj = SWIG_Py_Void();
32773 return resultobj;
32774fail:
32775 return NULL;
32776}
32777
32778
32779SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32780 PyObject *resultobj = 0;
32781 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32782 wxString *arg2 = 0 ;
32783 wxColour result;
32784 void *argp1 = 0 ;
32785 int res1 = 0 ;
32786 bool temp2 = false ;
32787 PyObject * obj0 = 0 ;
32788 PyObject * obj1 = 0 ;
32789 char * kwnames[] = {
32790 (char *) "self",(char *) "name", NULL
32791 };
32792
32793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
32794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32795 if (!SWIG_IsOK(res1)) {
32796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32797 }
32798 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32799 {
32800 arg2 = wxString_in_helper(obj1);
32801 if (arg2 == NULL) SWIG_fail;
32802 temp2 = true;
32803 }
32804 {
32805 PyThreadState* __tstate = wxPyBeginAllowThreads();
32806 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
32807 wxPyEndAllowThreads(__tstate);
32808 if (PyErr_Occurred()) SWIG_fail;
32809 }
32810 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32811 {
32812 if (temp2)
32813 delete arg2;
32814 }
32815 return resultobj;
32816fail:
32817 {
32818 if (temp2)
32819 delete arg2;
32820 }
32821 return NULL;
32822}
32823
32824
32825SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32826 PyObject *resultobj = 0;
32827 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32828 wxColour *arg2 = 0 ;
32829 wxString result;
32830 void *argp1 = 0 ;
32831 int res1 = 0 ;
32832 wxColour temp2 ;
32833 PyObject * obj0 = 0 ;
32834 PyObject * obj1 = 0 ;
32835 char * kwnames[] = {
32836 (char *) "self",(char *) "colour", NULL
32837 };
32838
32839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
32840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32841 if (!SWIG_IsOK(res1)) {
32842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
32843 }
32844 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32845 {
32846 arg2 = &temp2;
32847 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32848 }
32849 {
32850 PyThreadState* __tstate = wxPyBeginAllowThreads();
32851 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
32852 wxPyEndAllowThreads(__tstate);
32853 if (PyErr_Occurred()) SWIG_fail;
32854 }
32855 {
32856#if wxUSE_UNICODE
32857 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32858#else
32859 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32860#endif
32861 }
32862 return resultobj;
32863fail:
32864 return NULL;
32865}
32866
32867
32868SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32869 PyObject *resultobj = 0;
32870 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32871 wxString *arg2 = 0 ;
32872 wxColour *arg3 = 0 ;
32873 void *argp1 = 0 ;
32874 int res1 = 0 ;
32875 bool temp2 = false ;
32876 wxColour temp3 ;
32877 PyObject * obj0 = 0 ;
32878 PyObject * obj1 = 0 ;
32879 PyObject * obj2 = 0 ;
32880 char * kwnames[] = {
32881 (char *) "self",(char *) "name",(char *) "colour", NULL
32882 };
32883
32884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32886 if (!SWIG_IsOK(res1)) {
32887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32888 }
32889 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32890 {
32891 arg2 = wxString_in_helper(obj1);
32892 if (arg2 == NULL) SWIG_fail;
32893 temp2 = true;
32894 }
32895 {
32896 arg3 = &temp3;
32897 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32898 }
32899 {
32900 PyThreadState* __tstate = wxPyBeginAllowThreads();
32901 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
32902 wxPyEndAllowThreads(__tstate);
32903 if (PyErr_Occurred()) SWIG_fail;
32904 }
32905 resultobj = SWIG_Py_Void();
32906 {
32907 if (temp2)
32908 delete arg2;
32909 }
32910 return resultobj;
32911fail:
32912 {
32913 if (temp2)
32914 delete arg2;
32915 }
32916 return NULL;
32917}
32918
32919
32920SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32921 PyObject *resultobj = 0;
32922 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
32923 wxString *arg2 = 0 ;
32924 int arg3 ;
32925 int arg4 ;
32926 int arg5 ;
32927 void *argp1 = 0 ;
32928 int res1 = 0 ;
32929 bool temp2 = false ;
32930 int val3 ;
32931 int ecode3 = 0 ;
32932 int val4 ;
32933 int ecode4 = 0 ;
da91cb0f
RD
32934 int val5 ;
32935 int ecode5 = 0 ;
1bd55598
RD
32936 PyObject * obj0 = 0 ;
32937 PyObject * obj1 = 0 ;
32938 PyObject * obj2 = 0 ;
32939 PyObject * obj3 = 0 ;
32940 PyObject * obj4 = 0 ;
1bd55598 32941 char * kwnames[] = {
da91cb0f 32942 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
1bd55598
RD
32943 };
32944
da91cb0f
RD
32945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
1bd55598 32947 if (!SWIG_IsOK(res1)) {
da91cb0f
RD
32948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32949 }
32950 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32951 {
32952 arg2 = wxString_in_helper(obj1);
32953 if (arg2 == NULL) SWIG_fail;
32954 temp2 = true;
1bd55598 32955 }
1bd55598
RD
32956 ecode3 = SWIG_AsVal_int(obj2, &val3);
32957 if (!SWIG_IsOK(ecode3)) {
da91cb0f 32958 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
1bd55598
RD
32959 }
32960 arg3 = static_cast< int >(val3);
32961 ecode4 = SWIG_AsVal_int(obj3, &val4);
32962 if (!SWIG_IsOK(ecode4)) {
da91cb0f 32963 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
1bd55598
RD
32964 }
32965 arg4 = static_cast< int >(val4);
32966 ecode5 = SWIG_AsVal_int(obj4, &val5);
32967 if (!SWIG_IsOK(ecode5)) {
da91cb0f 32968 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
1bd55598
RD
32969 }
32970 arg5 = static_cast< int >(val5);
1bd55598
RD
32971 {
32972 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 32973 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
1bd55598
RD
32974 wxPyEndAllowThreads(__tstate);
32975 if (PyErr_Occurred()) SWIG_fail;
32976 }
da91cb0f 32977 resultobj = SWIG_Py_Void();
1bd55598 32978 {
da91cb0f
RD
32979 if (temp2)
32980 delete arg2;
1bd55598
RD
32981 }
32982 return resultobj;
32983fail:
32984 {
da91cb0f
RD
32985 if (temp2)
32986 delete arg2;
1bd55598
RD
32987 }
32988 return NULL;
32989}
32990
32991
da91cb0f
RD
32992SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32993 PyObject *obj;
32994 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32995 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
32996 return SWIG_Py_Void();
32997}
32998
32999SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33000 return SWIG_Python_InitShadowInstance(args);
33001}
33002
33003SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 33004 PyObject *resultobj = 0;
da91cb0f 33005 wxFontList *result = 0 ;
1bd55598 33006
da91cb0f 33007 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
1bd55598
RD
33008 {
33009 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 33010 result = (wxFontList *)_wxPyInitTheFontList();
1bd55598
RD
33011 wxPyEndAllowThreads(__tstate);
33012 if (PyErr_Occurred()) SWIG_fail;
33013 }
da91cb0f 33014 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
1bd55598
RD
33015 return resultobj;
33016fail:
33017 return NULL;
33018}
33019
33020
da91cb0f 33021SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
1bd55598 33022 PyObject *resultobj = 0;
da91cb0f 33023 wxPenList *result = 0 ;
1bd55598 33024
da91cb0f 33025 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
1bd55598
RD
33026 {
33027 PyThreadState* __tstate = wxPyBeginAllowThreads();
da91cb0f 33028 result = (wxPenList *)_wxPyInitThePenList();
1bd55598
RD
33029 wxPyEndAllowThreads(__tstate);
33030 if (PyErr_Occurred()) SWIG_fail;
33031 }
da91cb0f 33032 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
1bd55598
RD
33033 return resultobj;
33034fail:
33035 return NULL;
33036}
33037
33038
da91cb0f
RD
33039SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33040 PyObject *resultobj = 0;
33041 wxBrushList *result = 0 ;
1bd55598 33042
da91cb0f
RD
33043 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
33044 {
33045 PyThreadState* __tstate = wxPyBeginAllowThreads();
33046 result = (wxBrushList *)_wxPyInitTheBrushList();
33047 wxPyEndAllowThreads(__tstate);
33048 if (PyErr_Occurred()) SWIG_fail;
33049 }
33050 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
33051 return resultobj;
33052fail:
33053 return NULL;
1bd55598
RD
33054}
33055
33056
da91cb0f
RD
33057SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33058 PyObject *resultobj = 0;
33059 wxColourDatabase *result = 0 ;
1bd55598 33060
da91cb0f
RD
33061 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
33062 {
33063 PyThreadState* __tstate = wxPyBeginAllowThreads();
33064 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
33065 wxPyEndAllowThreads(__tstate);
33066 if (PyErr_Occurred()) SWIG_fail;
33067 }
33068 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
33069 return resultobj;
33070fail:
33071 return NULL;
1bd55598
RD
33072}
33073
33074
33075SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33076 PyObject *resultobj = 0;
33077 wxEffects *result = 0 ;
33078
33079 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
33080 {
33081 PyThreadState* __tstate = wxPyBeginAllowThreads();
33082 result = (wxEffects *)new wxEffects();
33083 wxPyEndAllowThreads(__tstate);
33084 if (PyErr_Occurred()) SWIG_fail;
33085 }
33086 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
33087 return resultobj;
33088fail:
33089 return NULL;
33090}
33091
33092
33093SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33094 PyObject *resultobj = 0;
33095 wxEffects *arg1 = (wxEffects *) 0 ;
33096 wxColour result;
33097 void *argp1 = 0 ;
33098 int res1 = 0 ;
33099 PyObject *swig_obj[1] ;
33100
33101 if (!args) SWIG_fail;
33102 swig_obj[0] = args;
33103 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33104 if (!SWIG_IsOK(res1)) {
33105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
33106 }
33107 arg1 = reinterpret_cast< wxEffects * >(argp1);
33108 {
33109 PyThreadState* __tstate = wxPyBeginAllowThreads();
33110 result = ((wxEffects const *)arg1)->GetHighlightColour();
33111 wxPyEndAllowThreads(__tstate);
33112 if (PyErr_Occurred()) SWIG_fail;
33113 }
33114 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33115 return resultobj;
33116fail:
33117 return NULL;
33118}
33119
33120
33121SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33122 PyObject *resultobj = 0;
33123 wxEffects *arg1 = (wxEffects *) 0 ;
33124 wxColour result;
33125 void *argp1 = 0 ;
33126 int res1 = 0 ;
33127 PyObject *swig_obj[1] ;
33128
33129 if (!args) SWIG_fail;
33130 swig_obj[0] = args;
33131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33132 if (!SWIG_IsOK(res1)) {
33133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33134 }
33135 arg1 = reinterpret_cast< wxEffects * >(argp1);
33136 {
33137 PyThreadState* __tstate = wxPyBeginAllowThreads();
33138 result = ((wxEffects const *)arg1)->GetLightShadow();
33139 wxPyEndAllowThreads(__tstate);
33140 if (PyErr_Occurred()) SWIG_fail;
33141 }
33142 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33143 return resultobj;
33144fail:
33145 return NULL;
33146}
33147
33148
33149SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33150 PyObject *resultobj = 0;
33151 wxEffects *arg1 = (wxEffects *) 0 ;
33152 wxColour result;
33153 void *argp1 = 0 ;
33154 int res1 = 0 ;
33155 PyObject *swig_obj[1] ;
33156
33157 if (!args) SWIG_fail;
33158 swig_obj[0] = args;
33159 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33160 if (!SWIG_IsOK(res1)) {
33161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
33162 }
33163 arg1 = reinterpret_cast< wxEffects * >(argp1);
33164 {
33165 PyThreadState* __tstate = wxPyBeginAllowThreads();
33166 result = ((wxEffects const *)arg1)->GetFaceColour();
33167 wxPyEndAllowThreads(__tstate);
33168 if (PyErr_Occurred()) SWIG_fail;
33169 }
33170 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33171 return resultobj;
33172fail:
33173 return NULL;
33174}
33175
33176
33177SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33178 PyObject *resultobj = 0;
33179 wxEffects *arg1 = (wxEffects *) 0 ;
33180 wxColour result;
33181 void *argp1 = 0 ;
33182 int res1 = 0 ;
33183 PyObject *swig_obj[1] ;
33184
33185 if (!args) SWIG_fail;
33186 swig_obj[0] = args;
33187 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33188 if (!SWIG_IsOK(res1)) {
33189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33190 }
33191 arg1 = reinterpret_cast< wxEffects * >(argp1);
33192 {
33193 PyThreadState* __tstate = wxPyBeginAllowThreads();
33194 result = ((wxEffects const *)arg1)->GetMediumShadow();
33195 wxPyEndAllowThreads(__tstate);
33196 if (PyErr_Occurred()) SWIG_fail;
33197 }
33198 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33199 return resultobj;
33200fail:
33201 return NULL;
33202}
33203
33204
33205SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33206 PyObject *resultobj = 0;
33207 wxEffects *arg1 = (wxEffects *) 0 ;
33208 wxColour result;
33209 void *argp1 = 0 ;
33210 int res1 = 0 ;
33211 PyObject *swig_obj[1] ;
33212
33213 if (!args) SWIG_fail;
33214 swig_obj[0] = args;
33215 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33216 if (!SWIG_IsOK(res1)) {
33217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
33218 }
33219 arg1 = reinterpret_cast< wxEffects * >(argp1);
33220 {
33221 PyThreadState* __tstate = wxPyBeginAllowThreads();
33222 result = ((wxEffects const *)arg1)->GetDarkShadow();
33223 wxPyEndAllowThreads(__tstate);
33224 if (PyErr_Occurred()) SWIG_fail;
33225 }
33226 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
33227 return resultobj;
33228fail:
33229 return NULL;
33230}
33231
33232
33233SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33234 PyObject *resultobj = 0;
33235 wxEffects *arg1 = (wxEffects *) 0 ;
33236 wxColour *arg2 = 0 ;
33237 void *argp1 = 0 ;
33238 int res1 = 0 ;
33239 wxColour temp2 ;
33240 PyObject * obj0 = 0 ;
33241 PyObject * obj1 = 0 ;
33242 char * kwnames[] = {
33243 (char *) "self",(char *) "c", NULL
33244 };
33245
33246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
33247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33248 if (!SWIG_IsOK(res1)) {
33249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
33250 }
33251 arg1 = reinterpret_cast< wxEffects * >(argp1);
33252 {
33253 arg2 = &temp2;
33254 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33255 }
33256 {
33257 PyThreadState* __tstate = wxPyBeginAllowThreads();
33258 (arg1)->SetHighlightColour((wxColour const &)*arg2);
33259 wxPyEndAllowThreads(__tstate);
33260 if (PyErr_Occurred()) SWIG_fail;
33261 }
33262 resultobj = SWIG_Py_Void();
33263 return resultobj;
33264fail:
33265 return NULL;
33266}
33267
33268
33269SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33270 PyObject *resultobj = 0;
33271 wxEffects *arg1 = (wxEffects *) 0 ;
33272 wxColour *arg2 = 0 ;
33273 void *argp1 = 0 ;
33274 int res1 = 0 ;
33275 wxColour temp2 ;
33276 PyObject * obj0 = 0 ;
33277 PyObject * obj1 = 0 ;
33278 char * kwnames[] = {
33279 (char *) "self",(char *) "c", NULL
33280 };
33281
33282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33284 if (!SWIG_IsOK(res1)) {
33285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33286 }
33287 arg1 = reinterpret_cast< wxEffects * >(argp1);
33288 {
33289 arg2 = &temp2;
33290 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33291 }
33292 {
33293 PyThreadState* __tstate = wxPyBeginAllowThreads();
33294 (arg1)->SetLightShadow((wxColour const &)*arg2);
33295 wxPyEndAllowThreads(__tstate);
33296 if (PyErr_Occurred()) SWIG_fail;
33297 }
33298 resultobj = SWIG_Py_Void();
33299 return resultobj;
33300fail:
33301 return NULL;
33302}
33303
33304
33305SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33306 PyObject *resultobj = 0;
33307 wxEffects *arg1 = (wxEffects *) 0 ;
33308 wxColour *arg2 = 0 ;
33309 void *argp1 = 0 ;
33310 int res1 = 0 ;
33311 wxColour temp2 ;
33312 PyObject * obj0 = 0 ;
33313 PyObject * obj1 = 0 ;
33314 char * kwnames[] = {
33315 (char *) "self",(char *) "c", NULL
33316 };
33317
33318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
33319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33320 if (!SWIG_IsOK(res1)) {
33321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
33322 }
33323 arg1 = reinterpret_cast< wxEffects * >(argp1);
33324 {
33325 arg2 = &temp2;
33326 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33327 }
33328 {
33329 PyThreadState* __tstate = wxPyBeginAllowThreads();
33330 (arg1)->SetFaceColour((wxColour const &)*arg2);
33331 wxPyEndAllowThreads(__tstate);
33332 if (PyErr_Occurred()) SWIG_fail;
33333 }
33334 resultobj = SWIG_Py_Void();
33335 return resultobj;
33336fail:
33337 return NULL;
33338}
33339
33340
33341SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33342 PyObject *resultobj = 0;
33343 wxEffects *arg1 = (wxEffects *) 0 ;
33344 wxColour *arg2 = 0 ;
33345 void *argp1 = 0 ;
33346 int res1 = 0 ;
33347 wxColour temp2 ;
33348 PyObject * obj0 = 0 ;
33349 PyObject * obj1 = 0 ;
33350 char * kwnames[] = {
33351 (char *) "self",(char *) "c", NULL
33352 };
33353
33354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33356 if (!SWIG_IsOK(res1)) {
33357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33358 }
33359 arg1 = reinterpret_cast< wxEffects * >(argp1);
33360 {
33361 arg2 = &temp2;
33362 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33363 }
33364 {
33365 PyThreadState* __tstate = wxPyBeginAllowThreads();
33366 (arg1)->SetMediumShadow((wxColour const &)*arg2);
33367 wxPyEndAllowThreads(__tstate);
33368 if (PyErr_Occurred()) SWIG_fail;
33369 }
33370 resultobj = SWIG_Py_Void();
33371 return resultobj;
33372fail:
33373 return NULL;
33374}
33375
33376
33377SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33378 PyObject *resultobj = 0;
33379 wxEffects *arg1 = (wxEffects *) 0 ;
33380 wxColour *arg2 = 0 ;
33381 void *argp1 = 0 ;
33382 int res1 = 0 ;
33383 wxColour temp2 ;
33384 PyObject * obj0 = 0 ;
33385 PyObject * obj1 = 0 ;
33386 char * kwnames[] = {
33387 (char *) "self",(char *) "c", NULL
33388 };
33389
33390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
33391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33392 if (!SWIG_IsOK(res1)) {
33393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
33394 }
33395 arg1 = reinterpret_cast< wxEffects * >(argp1);
33396 {
33397 arg2 = &temp2;
33398 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33399 }
33400 {
33401 PyThreadState* __tstate = wxPyBeginAllowThreads();
33402 (arg1)->SetDarkShadow((wxColour const &)*arg2);
33403 wxPyEndAllowThreads(__tstate);
33404 if (PyErr_Occurred()) SWIG_fail;
33405 }
33406 resultobj = SWIG_Py_Void();
33407 return resultobj;
33408fail:
33409 return NULL;
33410}
33411
33412
33413SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33414 PyObject *resultobj = 0;
33415 wxEffects *arg1 = (wxEffects *) 0 ;
33416 wxColour *arg2 = 0 ;
33417 wxColour *arg3 = 0 ;
33418 wxColour *arg4 = 0 ;
33419 wxColour *arg5 = 0 ;
33420 wxColour *arg6 = 0 ;
33421 void *argp1 = 0 ;
33422 int res1 = 0 ;
33423 wxColour temp2 ;
33424 wxColour temp3 ;
33425 wxColour temp4 ;
33426 wxColour temp5 ;
33427 wxColour temp6 ;
33428 PyObject * obj0 = 0 ;
33429 PyObject * obj1 = 0 ;
33430 PyObject * obj2 = 0 ;
33431 PyObject * obj3 = 0 ;
33432 PyObject * obj4 = 0 ;
33433 PyObject * obj5 = 0 ;
33434 char * kwnames[] = {
33435 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
33436 };
33437
33438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33440 if (!SWIG_IsOK(res1)) {
33441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
33442 }
33443 arg1 = reinterpret_cast< wxEffects * >(argp1);
33444 {
33445 arg2 = &temp2;
33446 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33447 }
33448 {
33449 arg3 = &temp3;
33450 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
33451 }
33452 {
33453 arg4 = &temp4;
33454 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
33455 }
33456 {
33457 arg5 = &temp5;
33458 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
33459 }
33460 {
33461 arg6 = &temp6;
33462 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
33463 }
33464 {
33465 PyThreadState* __tstate = wxPyBeginAllowThreads();
33466 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
33467 wxPyEndAllowThreads(__tstate);
33468 if (PyErr_Occurred()) SWIG_fail;
33469 }
33470 resultobj = SWIG_Py_Void();
33471 return resultobj;
33472fail:
33473 return NULL;
33474}
33475
33476
33477SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33478 PyObject *resultobj = 0;
33479 wxEffects *arg1 = (wxEffects *) 0 ;
33480 wxDC *arg2 = 0 ;
33481 wxRect *arg3 = 0 ;
33482 int arg4 = (int) 1 ;
33483 void *argp1 = 0 ;
33484 int res1 = 0 ;
33485 void *argp2 = 0 ;
33486 int res2 = 0 ;
33487 wxRect temp3 ;
33488 int val4 ;
33489 int ecode4 = 0 ;
33490 PyObject * obj0 = 0 ;
33491 PyObject * obj1 = 0 ;
33492 PyObject * obj2 = 0 ;
33493 PyObject * obj3 = 0 ;
33494 char * kwnames[] = {
33495 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
33496 };
33497
33498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33500 if (!SWIG_IsOK(res1)) {
33501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
33502 }
33503 arg1 = reinterpret_cast< wxEffects * >(argp1);
33504 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
33505 if (!SWIG_IsOK(res2)) {
33506 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33507 }
33508 if (!argp2) {
33509 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
33510 }
33511 arg2 = reinterpret_cast< wxDC * >(argp2);
33512 {
33513 arg3 = &temp3;
33514 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
33515 }
33516 if (obj3) {
33517 ecode4 = SWIG_AsVal_int(obj3, &val4);
33518 if (!SWIG_IsOK(ecode4)) {
33519 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
33520 }
33521 arg4 = static_cast< int >(val4);
33522 }
33523 {
33524 PyThreadState* __tstate = wxPyBeginAllowThreads();
33525 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
33526 wxPyEndAllowThreads(__tstate);
33527 if (PyErr_Occurred()) SWIG_fail;
33528 }
33529 resultobj = SWIG_Py_Void();
33530 return resultobj;
33531fail:
33532 return NULL;
33533}
33534
33535
33536SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33537 PyObject *resultobj = 0;
33538 wxEffects *arg1 = (wxEffects *) 0 ;
33539 wxRect *arg2 = 0 ;
33540 wxDC *arg3 = 0 ;
33541 wxBitmap *arg4 = 0 ;
33542 bool result;
33543 void *argp1 = 0 ;
33544 int res1 = 0 ;
33545 wxRect temp2 ;
33546 void *argp3 = 0 ;
33547 int res3 = 0 ;
33548 void *argp4 = 0 ;
33549 int res4 = 0 ;
33550 PyObject * obj0 = 0 ;
33551 PyObject * obj1 = 0 ;
33552 PyObject * obj2 = 0 ;
33553 PyObject * obj3 = 0 ;
33554 char * kwnames[] = {
33555 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
33556 };
33557
33558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
33560 if (!SWIG_IsOK(res1)) {
33561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
33562 }
33563 arg1 = reinterpret_cast< wxEffects * >(argp1);
33564 {
33565 arg2 = &temp2;
33566 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33567 }
33568 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
33569 if (!SWIG_IsOK(res3)) {
33570 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33571 }
33572 if (!argp3) {
33573 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
33574 }
33575 arg3 = reinterpret_cast< wxDC * >(argp3);
33576 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
33577 if (!SWIG_IsOK(res4)) {
33578 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33579 }
33580 if (!argp4) {
33581 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
33582 }
33583 arg4 = reinterpret_cast< wxBitmap * >(argp4);
33584 {
33585 PyThreadState* __tstate = wxPyBeginAllowThreads();
33586 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
33587 wxPyEndAllowThreads(__tstate);
33588 if (PyErr_Occurred()) SWIG_fail;
33589 }
33590 {
33591 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33592 }
33593 return resultobj;
33594fail:
33595 return NULL;
33596}
33597
33598
33599SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33600 PyObject *obj;
33601 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33602 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
33603 return SWIG_Py_Void();
33604}
33605
33606SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33607 return SWIG_Python_InitShadowInstance(args);
33608}
33609
33610SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33611 PyObject *resultobj = 0;
33612 int arg1 ;
33613 int arg2 ;
33614 bool arg3 ;
33615 wxSplitterRenderParams *result = 0 ;
33616 int val1 ;
33617 int ecode1 = 0 ;
33618 int val2 ;
33619 int ecode2 = 0 ;
33620 bool val3 ;
33621 int ecode3 = 0 ;
33622 PyObject * obj0 = 0 ;
33623 PyObject * obj1 = 0 ;
33624 PyObject * obj2 = 0 ;
33625 char * kwnames[] = {
33626 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
33627 };
33628
33629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33630 ecode1 = SWIG_AsVal_int(obj0, &val1);
33631 if (!SWIG_IsOK(ecode1)) {
33632 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
33633 }
33634 arg1 = static_cast< int >(val1);
33635 ecode2 = SWIG_AsVal_int(obj1, &val2);
33636 if (!SWIG_IsOK(ecode2)) {
33637 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
33638 }
33639 arg2 = static_cast< int >(val2);
33640 ecode3 = SWIG_AsVal_bool(obj2, &val3);
33641 if (!SWIG_IsOK(ecode3)) {
33642 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
33643 }
33644 arg3 = static_cast< bool >(val3);
33645 {
33646 PyThreadState* __tstate = wxPyBeginAllowThreads();
33647 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
33648 wxPyEndAllowThreads(__tstate);
33649 if (PyErr_Occurred()) SWIG_fail;
33650 }
33651 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
33652 return resultobj;
33653fail:
33654 return NULL;
33655}
33656
33657
33658SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33659 PyObject *resultobj = 0;
33660 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33661 void *argp1 = 0 ;
33662 int res1 = 0 ;
33663 PyObject *swig_obj[1] ;
33664
33665 if (!args) SWIG_fail;
33666 swig_obj[0] = args;
33667 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
33668 if (!SWIG_IsOK(res1)) {
33669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33670 }
33671 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33672 {
33673 PyThreadState* __tstate = wxPyBeginAllowThreads();
33674 delete arg1;
33675
33676 wxPyEndAllowThreads(__tstate);
33677 if (PyErr_Occurred()) SWIG_fail;
33678 }
33679 resultobj = SWIG_Py_Void();
33680 return resultobj;
33681fail:
33682 return NULL;
33683}
33684
33685
33686SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33687 PyObject *resultobj = 0;
33688 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33689 int result;
33690 void *argp1 = 0 ;
33691 int res1 = 0 ;
33692 PyObject *swig_obj[1] ;
33693
33694 if (!args) SWIG_fail;
33695 swig_obj[0] = args;
33696 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33697 if (!SWIG_IsOK(res1)) {
33698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33699 }
33700 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33701 result = (int)(int) ((arg1)->widthSash);
33702 resultobj = SWIG_From_int(static_cast< int >(result));
33703 return resultobj;
33704fail:
33705 return NULL;
33706}
33707
33708
33709SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33710 PyObject *resultobj = 0;
33711 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33712 int result;
33713 void *argp1 = 0 ;
33714 int res1 = 0 ;
33715 PyObject *swig_obj[1] ;
33716
33717 if (!args) SWIG_fail;
33718 swig_obj[0] = args;
33719 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33720 if (!SWIG_IsOK(res1)) {
33721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33722 }
33723 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33724 result = (int)(int) ((arg1)->border);
33725 resultobj = SWIG_From_int(static_cast< int >(result));
33726 return resultobj;
33727fail:
33728 return NULL;
33729}
33730
33731
33732SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33733 PyObject *resultobj = 0;
33734 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
33735 bool result;
33736 void *argp1 = 0 ;
33737 int res1 = 0 ;
33738 PyObject *swig_obj[1] ;
33739
33740 if (!args) SWIG_fail;
33741 swig_obj[0] = args;
33742 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
33743 if (!SWIG_IsOK(res1)) {
33744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
33745 }
33746 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
33747 result = (bool)(bool) ((arg1)->isHotSensitive);
33748 resultobj = SWIG_From_bool(static_cast< bool >(result));
33749 return resultobj;
33750fail:
33751 return NULL;
33752}
33753
33754
33755SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33756 PyObject *obj;
33757 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33758 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
33759 return SWIG_Py_Void();
33760}
33761
33762SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33763 return SWIG_Python_InitShadowInstance(args);
33764}
33765
33d6fd3b
RD
33766SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33767 PyObject *resultobj = 0;
33768 wxHeaderButtonParams *result = 0 ;
33769
33770 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
33771 {
33772 PyThreadState* __tstate = wxPyBeginAllowThreads();
33773 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
33774 wxPyEndAllowThreads(__tstate);
33775 if (PyErr_Occurred()) SWIG_fail;
33776 }
33777 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
33778 return resultobj;
33779fail:
33780 return NULL;
33781}
33782
33783
33784SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33785 PyObject *resultobj = 0;
33786 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33787 void *argp1 = 0 ;
33788 int res1 = 0 ;
33789 PyObject *swig_obj[1] ;
33790
33791 if (!args) SWIG_fail;
33792 swig_obj[0] = args;
33793 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
33794 if (!SWIG_IsOK(res1)) {
33795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33796 }
33797 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33798 {
33799 PyThreadState* __tstate = wxPyBeginAllowThreads();
33800 delete arg1;
33801
33802 wxPyEndAllowThreads(__tstate);
33803 if (PyErr_Occurred()) SWIG_fail;
33804 }
33805 resultobj = SWIG_Py_Void();
33806 return resultobj;
33807fail:
33808 return NULL;
33809}
33810
33811
33812SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33813 PyObject *resultobj = 0;
33814 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33815 wxColour *arg2 = (wxColour *) 0 ;
33816 void *argp1 = 0 ;
33817 int res1 = 0 ;
33818 wxColour temp2 ;
33819 PyObject *swig_obj[2] ;
33820
33821 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
33822 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33823 if (!SWIG_IsOK(res1)) {
33824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33825 }
33826 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33827 {
33828 arg2 = &temp2;
33829 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33830 }
33831 if (arg1) (arg1)->m_arrowColour = *arg2;
33832
33833 resultobj = SWIG_Py_Void();
33834 return resultobj;
33835fail:
33836 return NULL;
33837}
33838
33839
33840SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33841 PyObject *resultobj = 0;
33842 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33843 wxColour *result = 0 ;
33844 void *argp1 = 0 ;
33845 int res1 = 0 ;
33846 PyObject *swig_obj[1] ;
33847
33848 if (!args) SWIG_fail;
33849 swig_obj[0] = args;
33850 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33851 if (!SWIG_IsOK(res1)) {
33852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33853 }
33854 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33855 result = (wxColour *)& ((arg1)->m_arrowColour);
33856 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33857 return resultobj;
33858fail:
33859 return NULL;
33860}
33861
33862
33863SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33864 PyObject *resultobj = 0;
33865 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33866 wxColour *arg2 = (wxColour *) 0 ;
33867 void *argp1 = 0 ;
33868 int res1 = 0 ;
33869 wxColour temp2 ;
33870 PyObject *swig_obj[2] ;
33871
33872 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
33873 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33874 if (!SWIG_IsOK(res1)) {
33875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33876 }
33877 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33878 {
33879 arg2 = &temp2;
33880 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33881 }
33882 if (arg1) (arg1)->m_selectionColour = *arg2;
33883
33884 resultobj = SWIG_Py_Void();
33885 return resultobj;
33886fail:
33887 return NULL;
33888}
33889
33890
33891SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33892 PyObject *resultobj = 0;
33893 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33894 wxColour *result = 0 ;
33895 void *argp1 = 0 ;
33896 int res1 = 0 ;
33897 PyObject *swig_obj[1] ;
33898
33899 if (!args) SWIG_fail;
33900 swig_obj[0] = args;
33901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33902 if (!SWIG_IsOK(res1)) {
33903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33904 }
33905 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33906 result = (wxColour *)& ((arg1)->m_selectionColour);
33907 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33908 return resultobj;
33909fail:
33910 return NULL;
33911}
33912
33913
33914SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33915 PyObject *resultobj = 0;
33916 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33917 wxString *arg2 = (wxString *) 0 ;
33918 void *argp1 = 0 ;
33919 int res1 = 0 ;
33920 bool temp2 = false ;
33921 PyObject *swig_obj[2] ;
33922
33923 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
33924 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33925 if (!SWIG_IsOK(res1)) {
33926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33927 }
33928 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33929 {
33930 arg2 = wxString_in_helper(swig_obj[1]);
33931 if (arg2 == NULL) SWIG_fail;
33932 temp2 = true;
33933 }
33934 if (arg1) (arg1)->m_labelText = *arg2;
33935
33936 resultobj = SWIG_Py_Void();
33937 {
33938 if (temp2)
33939 delete arg2;
33940 }
33941 return resultobj;
33942fail:
33943 {
33944 if (temp2)
33945 delete arg2;
33946 }
33947 return NULL;
33948}
33949
33950
33951SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33952 PyObject *resultobj = 0;
33953 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33954 wxString *result = 0 ;
33955 void *argp1 = 0 ;
33956 int res1 = 0 ;
33957 PyObject *swig_obj[1] ;
33958
33959 if (!args) SWIG_fail;
33960 swig_obj[0] = args;
33961 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33962 if (!SWIG_IsOK(res1)) {
33963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33964 }
33965 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33966 result = (wxString *)& ((arg1)->m_labelText);
33967 {
33968#if wxUSE_UNICODE
33969 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33970#else
33971 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33972#endif
33973 }
33974 return resultobj;
33975fail:
33976 return NULL;
33977}
33978
33979
33980SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33981 PyObject *resultobj = 0;
33982 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33983 wxFont *arg2 = (wxFont *) 0 ;
33984 void *argp1 = 0 ;
33985 int res1 = 0 ;
33986 void *argp2 = 0 ;
33987 int res2 = 0 ;
33988 PyObject *swig_obj[2] ;
33989
33990 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
33991 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33992 if (!SWIG_IsOK(res1)) {
33993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33994 }
33995 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33996 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
33997 if (!SWIG_IsOK(res2)) {
33998 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
33999 }
34000 arg2 = reinterpret_cast< wxFont * >(argp2);
34001 if (arg1) (arg1)->m_labelFont = *arg2;
34002
34003 resultobj = SWIG_Py_Void();
34004 return resultobj;
34005fail:
34006 return NULL;
34007}
34008
34009
34010SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34011 PyObject *resultobj = 0;
34012 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34013 wxFont *result = 0 ;
34014 void *argp1 = 0 ;
34015 int res1 = 0 ;
34016 PyObject *swig_obj[1] ;
34017
34018 if (!args) SWIG_fail;
34019 swig_obj[0] = args;
34020 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34021 if (!SWIG_IsOK(res1)) {
34022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34023 }
34024 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34025 result = (wxFont *)& ((arg1)->m_labelFont);
34026 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
34027 return resultobj;
34028fail:
34029 return NULL;
34030}
34031
34032
34033SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34034 PyObject *resultobj = 0;
34035 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34036 wxColour *arg2 = (wxColour *) 0 ;
34037 void *argp1 = 0 ;
34038 int res1 = 0 ;
34039 wxColour temp2 ;
34040 PyObject *swig_obj[2] ;
34041
34042 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
34043 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34044 if (!SWIG_IsOK(res1)) {
34045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34046 }
34047 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34048 {
34049 arg2 = &temp2;
34050 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
34051 }
34052 if (arg1) (arg1)->m_labelColour = *arg2;
34053
34054 resultobj = SWIG_Py_Void();
34055 return resultobj;
34056fail:
34057 return NULL;
34058}
34059
34060
34061SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34062 PyObject *resultobj = 0;
34063 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34064 wxColour *result = 0 ;
34065 void *argp1 = 0 ;
34066 int res1 = 0 ;
34067 PyObject *swig_obj[1] ;
34068
34069 if (!args) SWIG_fail;
34070 swig_obj[0] = args;
34071 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34072 if (!SWIG_IsOK(res1)) {
34073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34074 }
34075 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34076 result = (wxColour *)& ((arg1)->m_labelColour);
34077 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
34078 return resultobj;
34079fail:
34080 return NULL;
34081}
34082
34083
34084SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34085 PyObject *resultobj = 0;
34086 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34087 wxBitmap *arg2 = (wxBitmap *) 0 ;
34088 void *argp1 = 0 ;
34089 int res1 = 0 ;
34090 void *argp2 = 0 ;
34091 int res2 = 0 ;
34092 PyObject *swig_obj[2] ;
34093
34094 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
34095 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34096 if (!SWIG_IsOK(res1)) {
34097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34098 }
34099 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34100 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
34101 if (!SWIG_IsOK(res2)) {
34102 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
34103 }
34104 arg2 = reinterpret_cast< wxBitmap * >(argp2);
34105 if (arg1) (arg1)->m_labelBitmap = *arg2;
34106
34107 resultobj = SWIG_Py_Void();
34108 return resultobj;
34109fail:
34110 return NULL;
34111}
34112
34113
34114SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34115 PyObject *resultobj = 0;
34116 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34117 wxBitmap *result = 0 ;
34118 void *argp1 = 0 ;
34119 int res1 = 0 ;
34120 PyObject *swig_obj[1] ;
34121
34122 if (!args) SWIG_fail;
34123 swig_obj[0] = args;
34124 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34125 if (!SWIG_IsOK(res1)) {
34126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34127 }
34128 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34129 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
34130 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
34131 return resultobj;
34132fail:
34133 return NULL;
34134}
34135
34136
34137SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34138 PyObject *resultobj = 0;
34139 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34140 int arg2 ;
34141 void *argp1 = 0 ;
34142 int res1 = 0 ;
34143 int val2 ;
34144 int ecode2 = 0 ;
34145 PyObject *swig_obj[2] ;
34146
34147 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
34148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34149 if (!SWIG_IsOK(res1)) {
34150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34151 }
34152 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34153 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
34154 if (!SWIG_IsOK(ecode2)) {
34155 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
34156 }
34157 arg2 = static_cast< int >(val2);
34158 if (arg1) (arg1)->m_labelAlignment = arg2;
34159
34160 resultobj = SWIG_Py_Void();
34161 return resultobj;
34162fail:
34163 return NULL;
34164}
34165
34166
34167SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34168 PyObject *resultobj = 0;
34169 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
34170 int result;
34171 void *argp1 = 0 ;
34172 int res1 = 0 ;
34173 PyObject *swig_obj[1] ;
34174
34175 if (!args) SWIG_fail;
34176 swig_obj[0] = args;
34177 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34178 if (!SWIG_IsOK(res1)) {
34179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
34180 }
34181 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
34182 result = (int) ((arg1)->m_labelAlignment);
34183 resultobj = SWIG_From_int(static_cast< int >(result));
34184 return resultobj;
34185fail:
34186 return NULL;
34187}
34188
34189
34190SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34191 PyObject *obj;
34192 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34193 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
34194 return SWIG_Py_Void();
34195}
34196
34197SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34198 return SWIG_Python_InitShadowInstance(args);
34199}
34200
1bd55598
RD
34201SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34202 PyObject *resultobj = 0;
34203 int arg1 ;
34204 int arg2 ;
34205 wxRendererVersion *result = 0 ;
34206 int val1 ;
34207 int ecode1 = 0 ;
34208 int val2 ;
34209 int ecode2 = 0 ;
34210 PyObject * obj0 = 0 ;
34211 PyObject * obj1 = 0 ;
34212 char * kwnames[] = {
34213 (char *) "version_",(char *) "age_", NULL
34214 };
34215
34216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
34217 ecode1 = SWIG_AsVal_int(obj0, &val1);
34218 if (!SWIG_IsOK(ecode1)) {
34219 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
34220 }
34221 arg1 = static_cast< int >(val1);
34222 ecode2 = SWIG_AsVal_int(obj1, &val2);
34223 if (!SWIG_IsOK(ecode2)) {
34224 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
34225 }
34226 arg2 = static_cast< int >(val2);
34227 {
34228 PyThreadState* __tstate = wxPyBeginAllowThreads();
34229 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
34230 wxPyEndAllowThreads(__tstate);
34231 if (PyErr_Occurred()) SWIG_fail;
34232 }
34233 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
34234 return resultobj;
34235fail:
34236 return NULL;
34237}
34238
34239
34240SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34241 PyObject *resultobj = 0;
34242 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34243 void *argp1 = 0 ;
34244 int res1 = 0 ;
34245 PyObject *swig_obj[1] ;
34246
34247 if (!args) SWIG_fail;
34248 swig_obj[0] = args;
34249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
34250 if (!SWIG_IsOK(res1)) {
34251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34252 }
34253 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34254 {
34255 PyThreadState* __tstate = wxPyBeginAllowThreads();
34256 delete arg1;
34257
34258 wxPyEndAllowThreads(__tstate);
34259 if (PyErr_Occurred()) SWIG_fail;
34260 }
34261 resultobj = SWIG_Py_Void();
34262 return resultobj;
34263fail:
34264 return NULL;
34265}
34266
34267
34268SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34269 PyObject *resultobj = 0;
34270 wxRendererVersion *arg1 = 0 ;
34271 bool result;
34272 void *argp1 = 0 ;
34273 int res1 = 0 ;
34274 PyObject * obj0 = 0 ;
34275 char * kwnames[] = {
34276 (char *) "ver", NULL
34277 };
34278
34279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
34280 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
34281 if (!SWIG_IsOK(res1)) {
34282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
34283 }
34284 if (!argp1) {
34285 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
34286 }
34287 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34288 {
34289 PyThreadState* __tstate = wxPyBeginAllowThreads();
34290 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
34291 wxPyEndAllowThreads(__tstate);
34292 if (PyErr_Occurred()) SWIG_fail;
34293 }
34294 {
34295 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34296 }
34297 return resultobj;
34298fail:
34299 return NULL;
34300}
34301
34302
34303SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34304 PyObject *resultobj = 0;
34305 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34306 int result;
34307 void *argp1 = 0 ;
34308 int res1 = 0 ;
34309 PyObject *swig_obj[1] ;
34310
34311 if (!args) SWIG_fail;
34312 swig_obj[0] = args;
34313 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
34314 if (!SWIG_IsOK(res1)) {
34315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34316 }
34317 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34318 result = (int)(int) ((arg1)->version);
34319 resultobj = SWIG_From_int(static_cast< int >(result));
34320 return resultobj;
34321fail:
34322 return NULL;
34323}
34324
34325
34326SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34327 PyObject *resultobj = 0;
34328 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
34329 int result;
34330 void *argp1 = 0 ;
34331 int res1 = 0 ;
34332 PyObject *swig_obj[1] ;
34333
34334 if (!args) SWIG_fail;
34335 swig_obj[0] = args;
34336 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
34337 if (!SWIG_IsOK(res1)) {
34338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
34339 }
34340 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
34341 result = (int)(int) ((arg1)->age);
34342 resultobj = SWIG_From_int(static_cast< int >(result));
34343 return resultobj;
34344fail:
34345 return NULL;
34346}
34347
34348
34349SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34350 PyObject *obj;
34351 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34352 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
34353 return SWIG_Py_Void();
34354}
34355
34356SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34357 return SWIG_Python_InitShadowInstance(args);
34358}
34359
34360SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34361 PyObject *resultobj = 0;
34362 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34363 wxWindow *arg2 = (wxWindow *) 0 ;
34364 wxDC *arg3 = 0 ;
34365 wxRect *arg4 = 0 ;
34366 int arg5 = (int) 0 ;
33d6fd3b
RD
34367 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34368 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
723282b6 34369 int result;
1bd55598
RD
34370 void *argp1 = 0 ;
34371 int res1 = 0 ;
34372 void *argp2 = 0 ;
34373 int res2 = 0 ;
34374 void *argp3 = 0 ;
34375 int res3 = 0 ;
34376 wxRect temp4 ;
34377 int val5 ;
34378 int ecode5 = 0 ;
33d6fd3b
RD
34379 int val6 ;
34380 int ecode6 = 0 ;
34381 void *argp7 = 0 ;
34382 int res7 = 0 ;
1bd55598
RD
34383 PyObject * obj0 = 0 ;
34384 PyObject * obj1 = 0 ;
34385 PyObject * obj2 = 0 ;
34386 PyObject * obj3 = 0 ;
34387 PyObject * obj4 = 0 ;
33d6fd3b
RD
34388 PyObject * obj5 = 0 ;
34389 PyObject * obj6 = 0 ;
1bd55598 34390 char * kwnames[] = {
33d6fd3b 34391 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
1bd55598
RD
34392 };
34393
33d6fd3b 34394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
1bd55598
RD
34395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34396 if (!SWIG_IsOK(res1)) {
34397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34398 }
34399 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34400 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34401 if (!SWIG_IsOK(res2)) {
34402 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34403 }
34404 arg2 = reinterpret_cast< wxWindow * >(argp2);
34405 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34406 if (!SWIG_IsOK(res3)) {
34407 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34408 }
34409 if (!argp3) {
34410 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
34411 }
34412 arg3 = reinterpret_cast< wxDC * >(argp3);
34413 {
34414 arg4 = &temp4;
34415 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34416 }
34417 if (obj4) {
34418 ecode5 = SWIG_AsVal_int(obj4, &val5);
34419 if (!SWIG_IsOK(ecode5)) {
34420 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
34421 }
34422 arg5 = static_cast< int >(val5);
34423 }
33d6fd3b
RD
34424 if (obj5) {
34425 ecode6 = SWIG_AsVal_int(obj5, &val6);
34426 if (!SWIG_IsOK(ecode6)) {
34427 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34428 }
34429 arg6 = static_cast< wxHeaderSortIconType >(val6);
34430 }
34431 if (obj6) {
34432 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34433 if (!SWIG_IsOK(res7)) {
34434 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34435 }
34436 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34437 }
34438 {
34439 PyThreadState* __tstate = wxPyBeginAllowThreads();
723282b6 34440 result = (int)(arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
33d6fd3b
RD
34441 wxPyEndAllowThreads(__tstate);
34442 if (PyErr_Occurred()) SWIG_fail;
34443 }
723282b6 34444 resultobj = SWIG_From_int(static_cast< int >(result));
33d6fd3b
RD
34445 return resultobj;
34446fail:
34447 return NULL;
34448}
34449
34450
34451SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34452 PyObject *resultobj = 0;
34453 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34454 wxWindow *arg2 = (wxWindow *) 0 ;
34455 wxDC *arg3 = 0 ;
34456 wxRect *arg4 = 0 ;
34457 int arg5 = (int) 0 ;
34458 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
34459 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
723282b6 34460 int result;
33d6fd3b
RD
34461 void *argp1 = 0 ;
34462 int res1 = 0 ;
34463 void *argp2 = 0 ;
34464 int res2 = 0 ;
34465 void *argp3 = 0 ;
34466 int res3 = 0 ;
34467 wxRect temp4 ;
34468 int val5 ;
34469 int ecode5 = 0 ;
34470 int val6 ;
34471 int ecode6 = 0 ;
34472 void *argp7 = 0 ;
34473 int res7 = 0 ;
34474 PyObject * obj0 = 0 ;
34475 PyObject * obj1 = 0 ;
34476 PyObject * obj2 = 0 ;
34477 PyObject * obj3 = 0 ;
34478 PyObject * obj4 = 0 ;
34479 PyObject * obj5 = 0 ;
34480 PyObject * obj6 = 0 ;
34481 char * kwnames[] = {
34482 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
34483 };
34484
34485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34487 if (!SWIG_IsOK(res1)) {
34488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34489 }
34490 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34491 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34492 if (!SWIG_IsOK(res2)) {
34493 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
34494 }
34495 arg2 = reinterpret_cast< wxWindow * >(argp2);
34496 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34497 if (!SWIG_IsOK(res3)) {
34498 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34499 }
34500 if (!argp3) {
34501 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
34502 }
34503 arg3 = reinterpret_cast< wxDC * >(argp3);
34504 {
34505 arg4 = &temp4;
34506 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34507 }
34508 if (obj4) {
34509 ecode5 = SWIG_AsVal_int(obj4, &val5);
34510 if (!SWIG_IsOK(ecode5)) {
34511 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
34512 }
34513 arg5 = static_cast< int >(val5);
34514 }
34515 if (obj5) {
34516 ecode6 = SWIG_AsVal_int(obj5, &val6);
34517 if (!SWIG_IsOK(ecode6)) {
34518 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
34519 }
34520 arg6 = static_cast< wxHeaderSortIconType >(val6);
34521 }
34522 if (obj6) {
34523 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
34524 if (!SWIG_IsOK(res7)) {
34525 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
34526 }
34527 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
34528 }
1bd55598
RD
34529 {
34530 PyThreadState* __tstate = wxPyBeginAllowThreads();
723282b6 34531 result = (int)(arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
1bd55598
RD
34532 wxPyEndAllowThreads(__tstate);
34533 if (PyErr_Occurred()) SWIG_fail;
34534 }
723282b6 34535 resultobj = SWIG_From_int(static_cast< int >(result));
1bd55598
RD
34536 return resultobj;
34537fail:
34538 return NULL;
34539}
34540
34541
33d6fd3b
RD
34542SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34543 PyObject *resultobj = 0;
34544 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34545 wxWindow *arg2 = (wxWindow *) 0 ;
34546 int result;
34547 void *argp1 = 0 ;
34548 int res1 = 0 ;
34549 void *argp2 = 0 ;
34550 int res2 = 0 ;
34551 PyObject * obj0 = 0 ;
34552 PyObject * obj1 = 0 ;
34553 char * kwnames[] = {
34554 (char *) "self",(char *) "win", NULL
34555 };
34556
34557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
34558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34559 if (!SWIG_IsOK(res1)) {
34560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34561 }
34562 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34563 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34564 if (!SWIG_IsOK(res2)) {
34565 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
34566 }
34567 arg2 = reinterpret_cast< wxWindow * >(argp2);
34568 {
34569 PyThreadState* __tstate = wxPyBeginAllowThreads();
34570 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
34571 wxPyEndAllowThreads(__tstate);
34572 if (PyErr_Occurred()) SWIG_fail;
34573 }
34574 resultobj = SWIG_From_int(static_cast< int >(result));
34575 return resultobj;
34576fail:
34577 return NULL;
34578}
34579
34580
1bd55598
RD
34581SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34582 PyObject *resultobj = 0;
34583 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34584 wxWindow *arg2 = (wxWindow *) 0 ;
34585 wxDC *arg3 = 0 ;
34586 wxRect *arg4 = 0 ;
34587 int arg5 = (int) 0 ;
34588 void *argp1 = 0 ;
34589 int res1 = 0 ;
34590 void *argp2 = 0 ;
34591 int res2 = 0 ;
34592 void *argp3 = 0 ;
34593 int res3 = 0 ;
34594 wxRect temp4 ;
34595 int val5 ;
34596 int ecode5 = 0 ;
34597 PyObject * obj0 = 0 ;
34598 PyObject * obj1 = 0 ;
34599 PyObject * obj2 = 0 ;
34600 PyObject * obj3 = 0 ;
34601 PyObject * obj4 = 0 ;
34602 char * kwnames[] = {
34603 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34604 };
34605
34606 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34607 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34608 if (!SWIG_IsOK(res1)) {
34609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34610 }
34611 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34612 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34613 if (!SWIG_IsOK(res2)) {
34614 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34615 }
34616 arg2 = reinterpret_cast< wxWindow * >(argp2);
34617 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34618 if (!SWIG_IsOK(res3)) {
34619 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34620 }
34621 if (!argp3) {
34622 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
34623 }
34624 arg3 = reinterpret_cast< wxDC * >(argp3);
34625 {
34626 arg4 = &temp4;
34627 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34628 }
34629 if (obj4) {
34630 ecode5 = SWIG_AsVal_int(obj4, &val5);
34631 if (!SWIG_IsOK(ecode5)) {
34632 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
34633 }
34634 arg5 = static_cast< int >(val5);
34635 }
34636 {
34637 PyThreadState* __tstate = wxPyBeginAllowThreads();
34638 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34639 wxPyEndAllowThreads(__tstate);
34640 if (PyErr_Occurred()) SWIG_fail;
34641 }
34642 resultobj = SWIG_Py_Void();
34643 return resultobj;
34644fail:
34645 return NULL;
34646}
34647
34648
34649SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34650 PyObject *resultobj = 0;
34651 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34652 wxWindow *arg2 = (wxWindow *) 0 ;
34653 wxDC *arg3 = 0 ;
34654 wxRect *arg4 = 0 ;
34655 int arg5 = (int) 0 ;
34656 void *argp1 = 0 ;
34657 int res1 = 0 ;
34658 void *argp2 = 0 ;
34659 int res2 = 0 ;
34660 void *argp3 = 0 ;
34661 int res3 = 0 ;
34662 wxRect temp4 ;
34663 int val5 ;
34664 int ecode5 = 0 ;
34665 PyObject * obj0 = 0 ;
34666 PyObject * obj1 = 0 ;
34667 PyObject * obj2 = 0 ;
34668 PyObject * obj3 = 0 ;
34669 PyObject * obj4 = 0 ;
34670 char * kwnames[] = {
34671 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34672 };
34673
34674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34676 if (!SWIG_IsOK(res1)) {
34677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34678 }
34679 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34680 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34681 if (!SWIG_IsOK(res2)) {
34682 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
34683 }
34684 arg2 = reinterpret_cast< wxWindow * >(argp2);
34685 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34686 if (!SWIG_IsOK(res3)) {
34687 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34688 }
34689 if (!argp3) {
34690 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
34691 }
34692 arg3 = reinterpret_cast< wxDC * >(argp3);
34693 {
34694 arg4 = &temp4;
34695 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34696 }
34697 if (obj4) {
34698 ecode5 = SWIG_AsVal_int(obj4, &val5);
34699 if (!SWIG_IsOK(ecode5)) {
34700 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
34701 }
34702 arg5 = static_cast< int >(val5);
34703 }
34704 {
34705 PyThreadState* __tstate = wxPyBeginAllowThreads();
34706 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
34707 wxPyEndAllowThreads(__tstate);
34708 if (PyErr_Occurred()) SWIG_fail;
34709 }
34710 resultobj = SWIG_Py_Void();
34711 return resultobj;
34712fail:
34713 return NULL;
34714}
34715
34716
34717SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34718 PyObject *resultobj = 0;
34719 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34720 wxWindow *arg2 = (wxWindow *) 0 ;
34721 wxDC *arg3 = 0 ;
34722 wxSize *arg4 = 0 ;
34723 int arg5 ;
34724 wxOrientation arg6 ;
34725 int arg7 = (int) 0 ;
34726 void *argp1 = 0 ;
34727 int res1 = 0 ;
34728 void *argp2 = 0 ;
34729 int res2 = 0 ;
34730 void *argp3 = 0 ;
34731 int res3 = 0 ;
34732 wxSize temp4 ;
34733 int val5 ;
34734 int ecode5 = 0 ;
34735 int val6 ;
34736 int ecode6 = 0 ;
34737 int val7 ;
34738 int ecode7 = 0 ;
34739 PyObject * obj0 = 0 ;
34740 PyObject * obj1 = 0 ;
34741 PyObject * obj2 = 0 ;
34742 PyObject * obj3 = 0 ;
34743 PyObject * obj4 = 0 ;
34744 PyObject * obj5 = 0 ;
34745 PyObject * obj6 = 0 ;
34746 char * kwnames[] = {
34747 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
34748 };
34749
34750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
34751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34752 if (!SWIG_IsOK(res1)) {
34753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34754 }
34755 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34756 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34757 if (!SWIG_IsOK(res2)) {
34758 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
34759 }
34760 arg2 = reinterpret_cast< wxWindow * >(argp2);
34761 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34762 if (!SWIG_IsOK(res3)) {
34763 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34764 }
34765 if (!argp3) {
34766 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
34767 }
34768 arg3 = reinterpret_cast< wxDC * >(argp3);
34769 {
34770 arg4 = &temp4;
34771 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
34772 }
34773 ecode5 = SWIG_AsVal_int(obj4, &val5);
34774 if (!SWIG_IsOK(ecode5)) {
34775 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
34776 }
34777 arg5 = static_cast< int >(val5);
34778 ecode6 = SWIG_AsVal_int(obj5, &val6);
34779 if (!SWIG_IsOK(ecode6)) {
34780 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
34781 }
34782 arg6 = static_cast< wxOrientation >(val6);
34783 if (obj6) {
34784 ecode7 = SWIG_AsVal_int(obj6, &val7);
34785 if (!SWIG_IsOK(ecode7)) {
34786 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
34787 }
34788 arg7 = static_cast< int >(val7);
34789 }
34790 {
34791 PyThreadState* __tstate = wxPyBeginAllowThreads();
34792 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
34793 wxPyEndAllowThreads(__tstate);
34794 if (PyErr_Occurred()) SWIG_fail;
34795 }
34796 resultobj = SWIG_Py_Void();
34797 return resultobj;
34798fail:
34799 return NULL;
34800}
34801
34802
34803SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34804 PyObject *resultobj = 0;
34805 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34806 wxWindow *arg2 = (wxWindow *) 0 ;
34807 wxDC *arg3 = 0 ;
34808 wxRect *arg4 = 0 ;
34809 int arg5 = (int) 0 ;
34810 void *argp1 = 0 ;
34811 int res1 = 0 ;
34812 void *argp2 = 0 ;
34813 int res2 = 0 ;
34814 void *argp3 = 0 ;
34815 int res3 = 0 ;
34816 wxRect temp4 ;
34817 int val5 ;
34818 int ecode5 = 0 ;
34819 PyObject * obj0 = 0 ;
34820 PyObject * obj1 = 0 ;
34821 PyObject * obj2 = 0 ;
34822 PyObject * obj3 = 0 ;
34823 PyObject * obj4 = 0 ;
34824 char * kwnames[] = {
34825 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34826 };
34827
34828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34830 if (!SWIG_IsOK(res1)) {
34831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34832 }
34833 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34834 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34835 if (!SWIG_IsOK(res2)) {
34836 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34837 }
34838 arg2 = reinterpret_cast< wxWindow * >(argp2);
34839 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34840 if (!SWIG_IsOK(res3)) {
34841 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34842 }
34843 if (!argp3) {
34844 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
34845 }
34846 arg3 = reinterpret_cast< wxDC * >(argp3);
34847 {
34848 arg4 = &temp4;
34849 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34850 }
34851 if (obj4) {
34852 ecode5 = SWIG_AsVal_int(obj4, &val5);
34853 if (!SWIG_IsOK(ecode5)) {
34854 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
34855 }
34856 arg5 = static_cast< int >(val5);
34857 }
34858 {
34859 PyThreadState* __tstate = wxPyBeginAllowThreads();
34860 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34861 wxPyEndAllowThreads(__tstate);
34862 if (PyErr_Occurred()) SWIG_fail;
34863 }
34864 resultobj = SWIG_Py_Void();
34865 return resultobj;
34866fail:
34867 return NULL;
34868}
34869
34870
34871SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34872 PyObject *resultobj = 0;
34873 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34874 wxWindow *arg2 = (wxWindow *) 0 ;
34875 wxDC *arg3 = 0 ;
34876 wxRect *arg4 = 0 ;
34877 int arg5 = (int) 0 ;
34878 void *argp1 = 0 ;
34879 int res1 = 0 ;
34880 void *argp2 = 0 ;
34881 int res2 = 0 ;
34882 void *argp3 = 0 ;
34883 int res3 = 0 ;
34884 wxRect temp4 ;
34885 int val5 ;
34886 int ecode5 = 0 ;
34887 PyObject * obj0 = 0 ;
34888 PyObject * obj1 = 0 ;
34889 PyObject * obj2 = 0 ;
34890 PyObject * obj3 = 0 ;
34891 PyObject * obj4 = 0 ;
34892 char * kwnames[] = {
34893 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34894 };
34895
34896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34898 if (!SWIG_IsOK(res1)) {
34899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34900 }
34901 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34902 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34903 if (!SWIG_IsOK(res2)) {
34904 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
34905 }
34906 arg2 = reinterpret_cast< wxWindow * >(argp2);
34907 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34908 if (!SWIG_IsOK(res3)) {
34909 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34910 }
34911 if (!argp3) {
34912 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
34913 }
34914 arg3 = reinterpret_cast< wxDC * >(argp3);
34915 {
34916 arg4 = &temp4;
34917 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34918 }
34919 if (obj4) {
34920 ecode5 = SWIG_AsVal_int(obj4, &val5);
34921 if (!SWIG_IsOK(ecode5)) {
34922 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
34923 }
34924 arg5 = static_cast< int >(val5);
34925 }
34926 {
34927 PyThreadState* __tstate = wxPyBeginAllowThreads();
34928 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
34929 wxPyEndAllowThreads(__tstate);
34930 if (PyErr_Occurred()) SWIG_fail;
34931 }
34932 resultobj = SWIG_Py_Void();
34933 return resultobj;
34934fail:
34935 return NULL;
34936}
34937
34938
2131d850 34939SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
da91cb0f
RD
34940 PyObject *resultobj = 0;
34941 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34942 wxWindow *arg2 = (wxWindow *) 0 ;
34943 wxDC *arg3 = 0 ;
34944 wxRect *arg4 = 0 ;
34945 int arg5 = (int) 0 ;
34946 void *argp1 = 0 ;
34947 int res1 = 0 ;
34948 void *argp2 = 0 ;
34949 int res2 = 0 ;
34950 void *argp3 = 0 ;
34951 int res3 = 0 ;
34952 wxRect temp4 ;
34953 int val5 ;
34954 int ecode5 = 0 ;
34955 PyObject * obj0 = 0 ;
34956 PyObject * obj1 = 0 ;
34957 PyObject * obj2 = 0 ;
34958 PyObject * obj3 = 0 ;
34959 PyObject * obj4 = 0 ;
34960 char * kwnames[] = {
34961 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34962 };
34963
2131d850 34964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
da91cb0f
RD
34965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34966 if (!SWIG_IsOK(res1)) {
2131d850 34967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
da91cb0f
RD
34968 }
34969 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34970 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34971 if (!SWIG_IsOK(res2)) {
2131d850 34972 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
da91cb0f
RD
34973 }
34974 arg2 = reinterpret_cast< wxWindow * >(argp2);
34975 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34976 if (!SWIG_IsOK(res3)) {
2131d850 34977 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
da91cb0f
RD
34978 }
34979 if (!argp3) {
2131d850 34980 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
da91cb0f
RD
34981 }
34982 arg3 = reinterpret_cast< wxDC * >(argp3);
34983 {
34984 arg4 = &temp4;
34985 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34986 }
34987 if (obj4) {
34988 ecode5 = SWIG_AsVal_int(obj4, &val5);
34989 if (!SWIG_IsOK(ecode5)) {
2131d850 34990 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
da91cb0f
RD
34991 }
34992 arg5 = static_cast< int >(val5);
34993 }
34994 {
34995 PyThreadState* __tstate = wxPyBeginAllowThreads();
2131d850
RD
34996 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
34997 wxPyEndAllowThreads(__tstate);
34998 if (PyErr_Occurred()) SWIG_fail;
34999 }
35000 resultobj = SWIG_Py_Void();
35001 return resultobj;
35002fail:
35003 return NULL;
35004}
35005
35006
35007SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35008 PyObject *resultobj = 0;
35009 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35010 wxWindow *arg2 = (wxWindow *) 0 ;
35011 wxDC *arg3 = 0 ;
35012 wxRect *arg4 = 0 ;
35013 int arg5 = (int) 0 ;
35014 void *argp1 = 0 ;
35015 int res1 = 0 ;
35016 void *argp2 = 0 ;
35017 int res2 = 0 ;
35018 void *argp3 = 0 ;
35019 int res3 = 0 ;
35020 wxRect temp4 ;
35021 int val5 ;
35022 int ecode5 = 0 ;
35023 PyObject * obj0 = 0 ;
35024 PyObject * obj1 = 0 ;
35025 PyObject * obj2 = 0 ;
35026 PyObject * obj3 = 0 ;
35027 PyObject * obj4 = 0 ;
35028 char * kwnames[] = {
35029 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35030 };
35031
35032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35034 if (!SWIG_IsOK(res1)) {
35035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35036 }
35037 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35038 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35039 if (!SWIG_IsOK(res2)) {
35040 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
35041 }
35042 arg2 = reinterpret_cast< wxWindow * >(argp2);
35043 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35044 if (!SWIG_IsOK(res3)) {
35045 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
35046 }
35047 if (!argp3) {
35048 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
35049 }
35050 arg3 = reinterpret_cast< wxDC * >(argp3);
35051 {
35052 arg4 = &temp4;
35053 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35054 }
35055 if (obj4) {
35056 ecode5 = SWIG_AsVal_int(obj4, &val5);
35057 if (!SWIG_IsOK(ecode5)) {
35058 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
35059 }
35060 arg5 = static_cast< int >(val5);
35061 }
35062 {
35063 PyThreadState* __tstate = wxPyBeginAllowThreads();
35064 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
35065 wxPyEndAllowThreads(__tstate);
35066 if (PyErr_Occurred()) SWIG_fail;
35067 }
35068 resultobj = SWIG_Py_Void();
35069 return resultobj;
35070fail:
35071 return NULL;
35072}
35073
35074
35075SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35076 PyObject *resultobj = 0;
35077 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35078 wxWindow *arg2 = (wxWindow *) 0 ;
35079 wxDC *arg3 = 0 ;
35080 wxRect *arg4 = 0 ;
35081 int arg5 = (int) 0 ;
35082 void *argp1 = 0 ;
35083 int res1 = 0 ;
35084 void *argp2 = 0 ;
35085 int res2 = 0 ;
35086 void *argp3 = 0 ;
35087 int res3 = 0 ;
35088 wxRect temp4 ;
35089 int val5 ;
35090 int ecode5 = 0 ;
35091 PyObject * obj0 = 0 ;
35092 PyObject * obj1 = 0 ;
35093 PyObject * obj2 = 0 ;
35094 PyObject * obj3 = 0 ;
35095 PyObject * obj4 = 0 ;
35096 char * kwnames[] = {
35097 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
35098 };
35099
35100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35102 if (!SWIG_IsOK(res1)) {
35103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35104 }
35105 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35106 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35107 if (!SWIG_IsOK(res2)) {
35108 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
35109 }
35110 arg2 = reinterpret_cast< wxWindow * >(argp2);
35111 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
35112 if (!SWIG_IsOK(res3)) {
35113 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
35114 }
35115 if (!argp3) {
35116 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
35117 }
35118 arg3 = reinterpret_cast< wxDC * >(argp3);
35119 {
35120 arg4 = &temp4;
35121 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
35122 }
35123 if (obj4) {
35124 ecode5 = SWIG_AsVal_int(obj4, &val5);
35125 if (!SWIG_IsOK(ecode5)) {
35126 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
35127 }
35128 arg5 = static_cast< int >(val5);
35129 }
35130 {
35131 PyThreadState* __tstate = wxPyBeginAllowThreads();
35132 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
da91cb0f
RD
35133 wxPyEndAllowThreads(__tstate);
35134 if (PyErr_Occurred()) SWIG_fail;
35135 }
35136 resultobj = SWIG_Py_Void();
35137 return resultobj;
35138fail:
35139 return NULL;
35140}
35141
35142
1bd55598
RD
35143SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35144 PyObject *resultobj = 0;
35145 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35146 wxWindow *arg2 = (wxWindow *) 0 ;
35147 SwigValueWrapper<wxSplitterRenderParams > result;
35148 void *argp1 = 0 ;
35149 int res1 = 0 ;
35150 void *argp2 = 0 ;
35151 int res2 = 0 ;
35152 PyObject * obj0 = 0 ;
35153 PyObject * obj1 = 0 ;
35154 char * kwnames[] = {
35155 (char *) "self",(char *) "win", NULL
35156 };
35157
35158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
35159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35160 if (!SWIG_IsOK(res1)) {
35161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35162 }
35163 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35164 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
35165 if (!SWIG_IsOK(res2)) {
35166 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
35167 }
35168 arg2 = reinterpret_cast< wxWindow * >(argp2);
35169 {
35170 PyThreadState* __tstate = wxPyBeginAllowThreads();
35171 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
35172 wxPyEndAllowThreads(__tstate);
35173 if (PyErr_Occurred()) SWIG_fail;
35174 }
35175 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
35176 return resultobj;
35177fail:
35178 return NULL;
35179}
35180
35181
35182SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35183 PyObject *resultobj = 0;
35184 wxRendererNative *result = 0 ;
35185
35186 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
35187 {
704eda0c 35188 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 35189 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 35190 {
1bd55598
RD
35191 wxRendererNative &_result_ref = wxRendererNative::Get();
35192 result = (wxRendererNative *) &_result_ref;
36ed4f51 35193 }
1bd55598
RD
35194 wxPyEndAllowThreads(__tstate);
35195 if (PyErr_Occurred()) SWIG_fail;
35196 }
35197 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35198 return resultobj;
35199fail:
35200 return NULL;
35201}
35202
35203
35204SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35205 PyObject *resultobj = 0;
35206 wxRendererNative *result = 0 ;
35207
35208 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
35209 {
704eda0c 35210 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 35211 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 35212 {
1bd55598
RD
35213 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
35214 result = (wxRendererNative *) &_result_ref;
be9b1dca 35215 }
1bd55598
RD
35216 wxPyEndAllowThreads(__tstate);
35217 if (PyErr_Occurred()) SWIG_fail;
35218 }
35219 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35220 return resultobj;
35221fail:
35222 return NULL;
35223}
35224
35225
35226SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35227 PyObject *resultobj = 0;
35228 wxRendererNative *result = 0 ;
35229
35230 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
35231 {
704eda0c 35232 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598 35233 PyThreadState* __tstate = wxPyBeginAllowThreads();
be9b1dca 35234 {
1bd55598
RD
35235 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
35236 result = (wxRendererNative *) &_result_ref;
be9b1dca 35237 }
1bd55598
RD
35238 wxPyEndAllowThreads(__tstate);
35239 if (PyErr_Occurred()) SWIG_fail;
35240 }
35241 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35242 return resultobj;
35243fail:
35244 return NULL;
35245}
35246
35247
35248SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35249 PyObject *resultobj = 0;
35250 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35251 wxRendererNative *result = 0 ;
35252 void *argp1 = 0 ;
35253 int res1 = 0 ;
35254 PyObject * obj0 = 0 ;
35255 char * kwnames[] = {
35256 (char *) "renderer", NULL
35257 };
35258
35259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
35260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35261 if (!SWIG_IsOK(res1)) {
35262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
35263 }
35264 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35265 {
704eda0c 35266 if (!wxPyCheckForApp()) SWIG_fail;
1bd55598
RD
35267 PyThreadState* __tstate = wxPyBeginAllowThreads();
35268 result = (wxRendererNative *)wxRendererNative::Set(arg1);
35269 wxPyEndAllowThreads(__tstate);
35270 if (PyErr_Occurred()) SWIG_fail;
35271 }
35272 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
35273 return resultobj;
35274fail:
35275 return NULL;
35276}
35277
35278
35279SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35280 PyObject *resultobj = 0;
35281 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
35282 SwigValueWrapper<wxRendererVersion > result;
35283 void *argp1 = 0 ;
35284 int res1 = 0 ;
35285 PyObject *swig_obj[1] ;
35286
35287 if (!args) SWIG_fail;
35288 swig_obj[0] = args;
35289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
35290 if (!SWIG_IsOK(res1)) {
35291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
35292 }
35293 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
35294 {
35295 PyThreadState* __tstate = wxPyBeginAllowThreads();
35296 result = ((wxRendererNative const *)arg1)->GetVersion();
35297 wxPyEndAllowThreads(__tstate);
35298 if (PyErr_Occurred()) SWIG_fail;
35299 }
35300 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
35301 return resultobj;
35302fail:
35303 return NULL;
35304}
35305
35306
35307SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35308 PyObject *obj;
35309 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
35310 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
35311 return SWIG_Py_Void();
35312}
35313
27e45892
RD
35314SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35315 PyObject *resultobj = 0;
35316 wxPseudoDC *result = 0 ;
35317
35318 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
35319 {
35320 PyThreadState* __tstate = wxPyBeginAllowThreads();
35321 result = (wxPseudoDC *)new wxPseudoDC();
35322 wxPyEndAllowThreads(__tstate);
35323 if (PyErr_Occurred()) SWIG_fail;
35324 }
35325 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
35326 return resultobj;
35327fail:
35328 return NULL;
35329}
35330
35331
35332SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35333 PyObject *resultobj = 0;
35334 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35335 void *argp1 = 0 ;
35336 int res1 = 0 ;
35337 PyObject *swig_obj[1] ;
35338
35339 if (!args) SWIG_fail;
35340 swig_obj[0] = args;
35341 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35342 if (!SWIG_IsOK(res1)) {
35343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35344 }
35345 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35346 {
35347 PyThreadState* __tstate = wxPyBeginAllowThreads();
35348 (arg1)->BeginDrawing();
35349 wxPyEndAllowThreads(__tstate);
35350 if (PyErr_Occurred()) SWIG_fail;
35351 }
35352 resultobj = SWIG_Py_Void();
35353 return resultobj;
35354fail:
35355 return NULL;
35356}
35357
35358
35359SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35360 PyObject *resultobj = 0;
35361 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35362 void *argp1 = 0 ;
35363 int res1 = 0 ;
35364 PyObject *swig_obj[1] ;
35365
35366 if (!args) SWIG_fail;
35367 swig_obj[0] = args;
35368 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35369 if (!SWIG_IsOK(res1)) {
35370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35371 }
35372 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35373 {
35374 PyThreadState* __tstate = wxPyBeginAllowThreads();
35375 (arg1)->EndDrawing();
35376 wxPyEndAllowThreads(__tstate);
35377 if (PyErr_Occurred()) SWIG_fail;
35378 }
35379 resultobj = SWIG_Py_Void();
35380 return resultobj;
35381fail:
35382 return NULL;
35383}
35384
35385
35386SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35387 PyObject *resultobj = 0;
35388 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35389 void *argp1 = 0 ;
35390 int res1 = 0 ;
35391 PyObject *swig_obj[1] ;
35392
35393 if (!args) SWIG_fail;
35394 swig_obj[0] = args;
35395 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
35396 if (!SWIG_IsOK(res1)) {
35397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35398 }
35399 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35400 {
35401 PyThreadState* __tstate = wxPyBeginAllowThreads();
35402 delete arg1;
35403
35404 wxPyEndAllowThreads(__tstate);
35405 if (PyErr_Occurred()) SWIG_fail;
35406 }
35407 resultobj = SWIG_Py_Void();
35408 return resultobj;
35409fail:
35410 return NULL;
35411}
35412
35413
35414SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35415 PyObject *resultobj = 0;
35416 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35417 void *argp1 = 0 ;
35418 int res1 = 0 ;
35419 PyObject *swig_obj[1] ;
35420
35421 if (!args) SWIG_fail;
35422 swig_obj[0] = args;
35423 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35424 if (!SWIG_IsOK(res1)) {
35425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35426 }
35427 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35428 {
35429 PyThreadState* __tstate = wxPyBeginAllowThreads();
35430 (arg1)->RemoveAll();
35431 wxPyEndAllowThreads(__tstate);
35432 if (PyErr_Occurred()) SWIG_fail;
35433 }
35434 resultobj = SWIG_Py_Void();
35435 return resultobj;
35436fail:
35437 return NULL;
35438}
35439
35440
35441SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35442 PyObject *resultobj = 0;
35443 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35444 int result;
35445 void *argp1 = 0 ;
35446 int res1 = 0 ;
35447 PyObject *swig_obj[1] ;
35448
35449 if (!args) SWIG_fail;
35450 swig_obj[0] = args;
35451 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35452 if (!SWIG_IsOK(res1)) {
35453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35454 }
35455 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35456 {
35457 PyThreadState* __tstate = wxPyBeginAllowThreads();
35458 result = (int)(arg1)->GetLen();
35459 wxPyEndAllowThreads(__tstate);
35460 if (PyErr_Occurred()) SWIG_fail;
35461 }
35462 resultobj = SWIG_From_int(static_cast< int >(result));
35463 return resultobj;
35464fail:
35465 return NULL;
35466}
35467
35468
35469SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35470 PyObject *resultobj = 0;
35471 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35472 int arg2 ;
35473 void *argp1 = 0 ;
35474 int res1 = 0 ;
35475 int val2 ;
35476 int ecode2 = 0 ;
35477 PyObject * obj0 = 0 ;
35478 PyObject * obj1 = 0 ;
35479 char * kwnames[] = {
35480 (char *) "self",(char *) "id", NULL
35481 };
35482
35483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
35484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35485 if (!SWIG_IsOK(res1)) {
35486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35487 }
35488 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35489 ecode2 = SWIG_AsVal_int(obj1, &val2);
35490 if (!SWIG_IsOK(ecode2)) {
35491 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
35492 }
35493 arg2 = static_cast< int >(val2);
35494 {
35495 PyThreadState* __tstate = wxPyBeginAllowThreads();
35496 (arg1)->SetId(arg2);
35497 wxPyEndAllowThreads(__tstate);
35498 if (PyErr_Occurred()) SWIG_fail;
35499 }
35500 resultobj = SWIG_Py_Void();
35501 return resultobj;
35502fail:
35503 return NULL;
35504}
35505
35506
35507SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35508 PyObject *resultobj = 0;
35509 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35510 int arg2 ;
35511 void *argp1 = 0 ;
35512 int res1 = 0 ;
35513 int val2 ;
35514 int ecode2 = 0 ;
35515 PyObject * obj0 = 0 ;
35516 PyObject * obj1 = 0 ;
35517 char * kwnames[] = {
35518 (char *) "self",(char *) "id", NULL
35519 };
35520
35521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
35522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35523 if (!SWIG_IsOK(res1)) {
35524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35525 }
35526 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35527 ecode2 = SWIG_AsVal_int(obj1, &val2);
35528 if (!SWIG_IsOK(ecode2)) {
35529 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
35530 }
35531 arg2 = static_cast< int >(val2);
35532 {
35533 PyThreadState* __tstate = wxPyBeginAllowThreads();
35534 (arg1)->ClearId(arg2);
35535 wxPyEndAllowThreads(__tstate);
35536 if (PyErr_Occurred()) SWIG_fail;
35537 }
35538 resultobj = SWIG_Py_Void();
35539 return resultobj;
35540fail:
35541 return NULL;
35542}
35543
35544
35545SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35546 PyObject *resultobj = 0;
35547 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35548 int arg2 ;
35549 void *argp1 = 0 ;
35550 int res1 = 0 ;
35551 int val2 ;
35552 int ecode2 = 0 ;
35553 PyObject * obj0 = 0 ;
35554 PyObject * obj1 = 0 ;
35555 char * kwnames[] = {
35556 (char *) "self",(char *) "id", NULL
35557 };
35558
35559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
35560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35561 if (!SWIG_IsOK(res1)) {
35562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35563 }
35564 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35565 ecode2 = SWIG_AsVal_int(obj1, &val2);
35566 if (!SWIG_IsOK(ecode2)) {
35567 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
35568 }
35569 arg2 = static_cast< int >(val2);
35570 {
35571 PyThreadState* __tstate = wxPyBeginAllowThreads();
35572 (arg1)->RemoveId(arg2);
35573 wxPyEndAllowThreads(__tstate);
35574 if (PyErr_Occurred()) SWIG_fail;
35575 }
35576 resultobj = SWIG_Py_Void();
35577 return resultobj;
35578fail:
35579 return NULL;
35580}
35581
35582
35583SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35584 PyObject *resultobj = 0;
35585 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35586 int arg2 ;
35587 int arg3 ;
35588 int arg4 ;
35589 void *argp1 = 0 ;
35590 int res1 = 0 ;
35591 int val2 ;
35592 int ecode2 = 0 ;
35593 int val3 ;
35594 int ecode3 = 0 ;
35595 int val4 ;
35596 int ecode4 = 0 ;
35597 PyObject * obj0 = 0 ;
35598 PyObject * obj1 = 0 ;
35599 PyObject * obj2 = 0 ;
35600 PyObject * obj3 = 0 ;
35601 char * kwnames[] = {
35602 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
35603 };
35604
35605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35607 if (!SWIG_IsOK(res1)) {
35608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35609 }
35610 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35611 ecode2 = SWIG_AsVal_int(obj1, &val2);
35612 if (!SWIG_IsOK(ecode2)) {
35613 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
35614 }
35615 arg2 = static_cast< int >(val2);
35616 ecode3 = SWIG_AsVal_int(obj2, &val3);
35617 if (!SWIG_IsOK(ecode3)) {
35618 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
35619 }
35620 arg3 = static_cast< int >(val3);
35621 ecode4 = SWIG_AsVal_int(obj3, &val4);
35622 if (!SWIG_IsOK(ecode4)) {
35623 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
35624 }
35625 arg4 = static_cast< int >(val4);
35626 {
35627 PyThreadState* __tstate = wxPyBeginAllowThreads();
35628 (arg1)->TranslateId(arg2,arg3,arg4);
35629 wxPyEndAllowThreads(__tstate);
35630 if (PyErr_Occurred()) SWIG_fail;
35631 }
35632 resultobj = SWIG_Py_Void();
35633 return resultobj;
35634fail:
35635 return NULL;
35636}
35637
35638
72ef6efb
RD
35639SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35640 PyObject *resultobj = 0;
35641 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35642 int arg2 ;
35643 bool arg3 = (bool) true ;
35644 void *argp1 = 0 ;
35645 int res1 = 0 ;
35646 int val2 ;
35647 int ecode2 = 0 ;
35648 bool val3 ;
35649 int ecode3 = 0 ;
35650 PyObject * obj0 = 0 ;
35651 PyObject * obj1 = 0 ;
35652 PyObject * obj2 = 0 ;
35653 char * kwnames[] = {
35654 (char *) "self",(char *) "id",(char *) "greyout", NULL
35655 };
35656
35657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35659 if (!SWIG_IsOK(res1)) {
35660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35661 }
35662 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35663 ecode2 = SWIG_AsVal_int(obj1, &val2);
35664 if (!SWIG_IsOK(ecode2)) {
35665 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35666 }
35667 arg2 = static_cast< int >(val2);
35668 if (obj2) {
35669 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35670 if (!SWIG_IsOK(ecode3)) {
35671 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
35672 }
35673 arg3 = static_cast< bool >(val3);
35674 }
35675 {
35676 PyThreadState* __tstate = wxPyBeginAllowThreads();
35677 (arg1)->SetIdGreyedOut(arg2,arg3);
35678 wxPyEndAllowThreads(__tstate);
35679 if (PyErr_Occurred()) SWIG_fail;
35680 }
35681 resultobj = SWIG_Py_Void();
35682 return resultobj;
35683fail:
35684 return NULL;
35685}
35686
35687
35688SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35689 PyObject *resultobj = 0;
35690 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35691 int arg2 ;
35692 bool result;
35693 void *argp1 = 0 ;
35694 int res1 = 0 ;
35695 int val2 ;
35696 int ecode2 = 0 ;
35697 PyObject * obj0 = 0 ;
35698 PyObject * obj1 = 0 ;
35699 char * kwnames[] = {
35700 (char *) "self",(char *) "id", NULL
35701 };
35702
35703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
35704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35705 if (!SWIG_IsOK(res1)) {
35706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35707 }
35708 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35709 ecode2 = SWIG_AsVal_int(obj1, &val2);
35710 if (!SWIG_IsOK(ecode2)) {
35711 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
35712 }
35713 arg2 = static_cast< int >(val2);
35714 {
35715 PyThreadState* __tstate = wxPyBeginAllowThreads();
35716 result = (bool)(arg1)->GetIdGreyedOut(arg2);
35717 wxPyEndAllowThreads(__tstate);
35718 if (PyErr_Occurred()) SWIG_fail;
35719 }
35720 {
35721 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35722 }
35723 return resultobj;
35724fail:
35725 return NULL;
35726}
35727
35728
35729SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35730 PyObject *resultobj = 0;
35731 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35732 int arg2 ;
35733 int arg3 ;
35734 int arg4 = (int) 1 ;
59ccbf7f
RD
35735 wxColour const &arg5_defvalue = *wxWHITE ;
35736 wxColour *arg5 = (wxColour *) &arg5_defvalue ;
72ef6efb
RD
35737 PyObject *result = 0 ;
35738 void *argp1 = 0 ;
35739 int res1 = 0 ;
35740 int val2 ;
35741 int ecode2 = 0 ;
35742 int val3 ;
35743 int ecode3 = 0 ;
35744 int val4 ;
35745 int ecode4 = 0 ;
59ccbf7f 35746 wxColour temp5 ;
72ef6efb
RD
35747 PyObject * obj0 = 0 ;
35748 PyObject * obj1 = 0 ;
35749 PyObject * obj2 = 0 ;
35750 PyObject * obj3 = 0 ;
35751 PyObject * obj4 = 0 ;
35752 char * kwnames[] = {
35753 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
35754 };
35755
35756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35758 if (!SWIG_IsOK(res1)) {
35759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35760 }
35761 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35762 ecode2 = SWIG_AsVal_int(obj1, &val2);
35763 if (!SWIG_IsOK(ecode2)) {
35764 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
35765 }
35766 arg2 = static_cast< int >(val2);
35767 ecode3 = SWIG_AsVal_int(obj2, &val3);
35768 if (!SWIG_IsOK(ecode3)) {
35769 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
35770 }
35771 arg3 = static_cast< int >(val3);
35772 if (obj3) {
35773 ecode4 = SWIG_AsVal_int(obj3, &val4);
35774 if (!SWIG_IsOK(ecode4)) {
35775 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
35776 }
35777 arg4 = static_cast< int >(val4);
35778 }
35779 if (obj4) {
59ccbf7f
RD
35780 {
35781 arg5 = &temp5;
35782 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
72ef6efb 35783 }
72ef6efb
RD
35784 }
35785 {
59ccbf7f 35786 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColour const &)*arg5);
72ef6efb
RD
35787 if (PyErr_Occurred()) SWIG_fail;
35788 }
35789 resultobj = result;
35790 return resultobj;
35791fail:
35792 return NULL;
35793}
35794
35795
35796SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35797 PyObject *resultobj = 0;
35798 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35799 int arg2 ;
35800 int arg3 ;
35801 PyObject *result = 0 ;
35802 void *argp1 = 0 ;
35803 int res1 = 0 ;
35804 int val2 ;
35805 int ecode2 = 0 ;
35806 int val3 ;
35807 int ecode3 = 0 ;
35808 PyObject * obj0 = 0 ;
35809 PyObject * obj1 = 0 ;
35810 PyObject * obj2 = 0 ;
35811 char * kwnames[] = {
35812 (char *) "self",(char *) "x",(char *) "y", NULL
35813 };
35814
35815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35817 if (!SWIG_IsOK(res1)) {
35818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35819 }
35820 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35821 ecode2 = SWIG_AsVal_int(obj1, &val2);
35822 if (!SWIG_IsOK(ecode2)) {
35823 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
35824 }
35825 arg2 = static_cast< int >(val2);
35826 ecode3 = SWIG_AsVal_int(obj2, &val3);
35827 if (!SWIG_IsOK(ecode3)) {
35828 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
35829 }
35830 arg3 = static_cast< int >(val3);
35831 {
35832 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
35833 if (PyErr_Occurred()) SWIG_fail;
35834 }
35835 resultobj = result;
35836 return resultobj;
35837fail:
35838 return NULL;
35839}
35840
35841
27e45892
RD
35842SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35843 PyObject *resultobj = 0;
35844 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35845 int arg2 ;
35846 wxDC *arg3 = (wxDC *) 0 ;
35847 void *argp1 = 0 ;
35848 int res1 = 0 ;
35849 int val2 ;
35850 int ecode2 = 0 ;
35851 void *argp3 = 0 ;
35852 int res3 = 0 ;
35853 PyObject * obj0 = 0 ;
35854 PyObject * obj1 = 0 ;
35855 PyObject * obj2 = 0 ;
35856 char * kwnames[] = {
35857 (char *) "self",(char *) "id",(char *) "dc", NULL
35858 };
35859
35860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) 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_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35864 }
35865 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35866 ecode2 = SWIG_AsVal_int(obj1, &val2);
35867 if (!SWIG_IsOK(ecode2)) {
35868 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
35869 }
35870 arg2 = static_cast< int >(val2);
35871 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
35872 if (!SWIG_IsOK(res3)) {
35873 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
35874 }
35875 arg3 = reinterpret_cast< wxDC * >(argp3);
35876 {
35877 PyThreadState* __tstate = wxPyBeginAllowThreads();
35878 (arg1)->DrawIdToDC(arg2,arg3);
35879 wxPyEndAllowThreads(__tstate);
35880 if (PyErr_Occurred()) SWIG_fail;
35881 }
35882 resultobj = SWIG_Py_Void();
35883 return resultobj;
35884fail:
35885 return NULL;
35886}
35887
35888
35889SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35890 PyObject *resultobj = 0;
35891 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35892 int arg2 ;
35893 wxRect *arg3 = 0 ;
35894 void *argp1 = 0 ;
35895 int res1 = 0 ;
35896 int val2 ;
35897 int ecode2 = 0 ;
35898 wxRect temp3 ;
35899 PyObject * obj0 = 0 ;
35900 PyObject * obj1 = 0 ;
35901 PyObject * obj2 = 0 ;
35902 char * kwnames[] = {
35903 (char *) "self",(char *) "id",(char *) "rect", NULL
35904 };
35905
35906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35908 if (!SWIG_IsOK(res1)) {
35909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35910 }
35911 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35912 ecode2 = SWIG_AsVal_int(obj1, &val2);
35913 if (!SWIG_IsOK(ecode2)) {
35914 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
35915 }
35916 arg2 = static_cast< int >(val2);
35917 {
35918 arg3 = &temp3;
35919 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
35920 }
35921 {
35922 PyThreadState* __tstate = wxPyBeginAllowThreads();
35923 (arg1)->SetIdBounds(arg2,*arg3);
35924 wxPyEndAllowThreads(__tstate);
35925 if (PyErr_Occurred()) SWIG_fail;
35926 }
35927 resultobj = SWIG_Py_Void();
35928 return resultobj;
35929fail:
35930 return NULL;
35931}
35932
35933
35934SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35935 PyObject *resultobj = 0;
35936 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35937 int arg2 ;
35938 wxRect result;
35939 void *argp1 = 0 ;
35940 int res1 = 0 ;
35941 int val2 ;
35942 int ecode2 = 0 ;
35943 PyObject * obj0 = 0 ;
35944 PyObject * obj1 = 0 ;
35945 char * kwnames[] = {
35946 (char *) "self",(char *) "id", NULL
35947 };
35948
35949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
35950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35951 if (!SWIG_IsOK(res1)) {
35952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35953 }
35954 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35955 ecode2 = SWIG_AsVal_int(obj1, &val2);
35956 if (!SWIG_IsOK(ecode2)) {
35957 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
35958 }
35959 arg2 = static_cast< int >(val2);
35960 {
35961 PyThreadState* __tstate = wxPyBeginAllowThreads();
35962 result = wxPseudoDC_GetIdBounds(arg1,arg2);
35963 wxPyEndAllowThreads(__tstate);
35964 if (PyErr_Occurred()) SWIG_fail;
35965 }
35966 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
35967 return resultobj;
35968fail:
35969 return NULL;
35970}
35971
35972
35973SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35974 PyObject *resultobj = 0;
35975 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35976 wxDC *arg2 = (wxDC *) 0 ;
35977 wxRect *arg3 = 0 ;
35978 void *argp1 = 0 ;
35979 int res1 = 0 ;
35980 void *argp2 = 0 ;
35981 int res2 = 0 ;
35982 wxRect temp3 ;
35983 PyObject * obj0 = 0 ;
35984 PyObject * obj1 = 0 ;
35985 PyObject * obj2 = 0 ;
35986 char * kwnames[] = {
35987 (char *) "self",(char *) "dc",(char *) "rect", NULL
35988 };
35989
35990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35992 if (!SWIG_IsOK(res1)) {
35993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35994 }
35995 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35996 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35997 if (!SWIG_IsOK(res2)) {
35998 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
35999 }
36000 arg2 = reinterpret_cast< wxDC * >(argp2);
36001 {
36002 arg3 = &temp3;
36003 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
36004 }
36005 {
36006 PyThreadState* __tstate = wxPyBeginAllowThreads();
36007 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
36008 wxPyEndAllowThreads(__tstate);
36009 if (PyErr_Occurred()) SWIG_fail;
36010 }
36011 resultobj = SWIG_Py_Void();
36012 return resultobj;
36013fail:
36014 return NULL;
36015}
36016
36017
36018SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36019 PyObject *resultobj = 0;
36020 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36021 wxDC *arg2 = (wxDC *) 0 ;
36022 wxRegion *arg3 = 0 ;
36023 void *argp1 = 0 ;
36024 int res1 = 0 ;
36025 void *argp2 = 0 ;
36026 int res2 = 0 ;
36027 void *argp3 = 0 ;
36028 int res3 = 0 ;
36029 PyObject * obj0 = 0 ;
36030 PyObject * obj1 = 0 ;
36031 PyObject * obj2 = 0 ;
36032 char * kwnames[] = {
36033 (char *) "self",(char *) "dc",(char *) "region", NULL
36034 };
36035
36036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36038 if (!SWIG_IsOK(res1)) {
36039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36040 }
36041 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36042 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36043 if (!SWIG_IsOK(res2)) {
36044 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
36045 }
36046 arg2 = reinterpret_cast< wxDC * >(argp2);
36047 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
36048 if (!SWIG_IsOK(res3)) {
36049 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
36050 }
36051 if (!argp3) {
36052 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
36053 }
36054 arg3 = reinterpret_cast< wxRegion * >(argp3);
36055 {
36056 PyThreadState* __tstate = wxPyBeginAllowThreads();
36057 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
36058 wxPyEndAllowThreads(__tstate);
36059 if (PyErr_Occurred()) SWIG_fail;
36060 }
36061 resultobj = SWIG_Py_Void();
36062 return resultobj;
36063fail:
36064 return NULL;
36065}
36066
36067
36068SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36069 PyObject *resultobj = 0;
36070 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36071 wxDC *arg2 = (wxDC *) 0 ;
36072 void *argp1 = 0 ;
36073 int res1 = 0 ;
36074 void *argp2 = 0 ;
36075 int res2 = 0 ;
36076 PyObject * obj0 = 0 ;
36077 PyObject * obj1 = 0 ;
36078 char * kwnames[] = {
36079 (char *) "self",(char *) "dc", NULL
36080 };
36081
36082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
36083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36084 if (!SWIG_IsOK(res1)) {
36085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36086 }
36087 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36088 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
36089 if (!SWIG_IsOK(res2)) {
36090 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
36091 }
36092 arg2 = reinterpret_cast< wxDC * >(argp2);
36093 {
36094 PyThreadState* __tstate = wxPyBeginAllowThreads();
36095 (arg1)->DrawToDC(arg2);
36096 wxPyEndAllowThreads(__tstate);
36097 if (PyErr_Occurred()) SWIG_fail;
36098 }
36099 resultobj = SWIG_Py_Void();
36100 return resultobj;
36101fail:
36102 return NULL;
36103}
36104
36105
36106SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36107 PyObject *resultobj = 0;
36108 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36109 int arg2 ;
36110 int arg3 ;
36111 wxColour *arg4 = 0 ;
36112 int arg5 = (int) wxFLOOD_SURFACE ;
36113 void *argp1 = 0 ;
36114 int res1 = 0 ;
36115 int val2 ;
36116 int ecode2 = 0 ;
36117 int val3 ;
36118 int ecode3 = 0 ;
36119 wxColour temp4 ;
36120 int val5 ;
36121 int ecode5 = 0 ;
36122 PyObject * obj0 = 0 ;
36123 PyObject * obj1 = 0 ;
36124 PyObject * obj2 = 0 ;
36125 PyObject * obj3 = 0 ;
36126 PyObject * obj4 = 0 ;
36127 char * kwnames[] = {
36128 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
36129 };
36130
36131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36133 if (!SWIG_IsOK(res1)) {
36134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36135 }
36136 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36137 ecode2 = SWIG_AsVal_int(obj1, &val2);
36138 if (!SWIG_IsOK(ecode2)) {
36139 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
36140 }
36141 arg2 = static_cast< int >(val2);
36142 ecode3 = SWIG_AsVal_int(obj2, &val3);
36143 if (!SWIG_IsOK(ecode3)) {
36144 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
36145 }
36146 arg3 = static_cast< int >(val3);
36147 {
36148 arg4 = &temp4;
36149 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
36150 }
36151 if (obj4) {
36152 ecode5 = SWIG_AsVal_int(obj4, &val5);
36153 if (!SWIG_IsOK(ecode5)) {
36154 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
36155 }
36156 arg5 = static_cast< int >(val5);
36157 }
36158 {
36159 PyThreadState* __tstate = wxPyBeginAllowThreads();
36160 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
36161 wxPyEndAllowThreads(__tstate);
36162 if (PyErr_Occurred()) SWIG_fail;
36163 }
36164 resultobj = SWIG_Py_Void();
36165 return resultobj;
36166fail:
36167 return NULL;
36168}
36169
36170
36171SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36172 PyObject *resultobj = 0;
36173 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36174 wxPoint *arg2 = 0 ;
36175 wxColour *arg3 = 0 ;
36176 int arg4 = (int) wxFLOOD_SURFACE ;
36177 void *argp1 = 0 ;
36178 int res1 = 0 ;
36179 wxPoint temp2 ;
36180 wxColour temp3 ;
36181 int val4 ;
36182 int ecode4 = 0 ;
36183 PyObject * obj0 = 0 ;
36184 PyObject * obj1 = 0 ;
36185 PyObject * obj2 = 0 ;
36186 PyObject * obj3 = 0 ;
36187 char * kwnames[] = {
36188 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
36189 };
36190
36191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36193 if (!SWIG_IsOK(res1)) {
36194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36195 }
36196 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36197 {
36198 arg2 = &temp2;
36199 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36200 }
36201 {
36202 arg3 = &temp3;
36203 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
36204 }
36205 if (obj3) {
36206 ecode4 = SWIG_AsVal_int(obj3, &val4);
36207 if (!SWIG_IsOK(ecode4)) {
36208 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
36209 }
36210 arg4 = static_cast< int >(val4);
36211 }
36212 {
36213 PyThreadState* __tstate = wxPyBeginAllowThreads();
36214 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
36215 wxPyEndAllowThreads(__tstate);
36216 if (PyErr_Occurred()) SWIG_fail;
36217 }
36218 resultobj = SWIG_Py_Void();
36219 return resultobj;
36220fail:
36221 return NULL;
36222}
36223
36224
36225SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36226 PyObject *resultobj = 0;
36227 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36228 int arg2 ;
36229 int arg3 ;
36230 int arg4 ;
36231 int arg5 ;
36232 void *argp1 = 0 ;
36233 int res1 = 0 ;
36234 int val2 ;
36235 int ecode2 = 0 ;
36236 int val3 ;
36237 int ecode3 = 0 ;
36238 int val4 ;
36239 int ecode4 = 0 ;
36240 int val5 ;
36241 int ecode5 = 0 ;
36242 PyObject * obj0 = 0 ;
36243 PyObject * obj1 = 0 ;
36244 PyObject * obj2 = 0 ;
36245 PyObject * obj3 = 0 ;
36246 PyObject * obj4 = 0 ;
36247 char * kwnames[] = {
36248 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
36249 };
36250
36251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36253 if (!SWIG_IsOK(res1)) {
36254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36255 }
36256 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36257 ecode2 = SWIG_AsVal_int(obj1, &val2);
36258 if (!SWIG_IsOK(ecode2)) {
36259 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
36260 }
36261 arg2 = static_cast< int >(val2);
36262 ecode3 = SWIG_AsVal_int(obj2, &val3);
36263 if (!SWIG_IsOK(ecode3)) {
36264 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
36265 }
36266 arg3 = static_cast< int >(val3);
36267 ecode4 = SWIG_AsVal_int(obj3, &val4);
36268 if (!SWIG_IsOK(ecode4)) {
36269 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
36270 }
36271 arg4 = static_cast< int >(val4);
36272 ecode5 = SWIG_AsVal_int(obj4, &val5);
36273 if (!SWIG_IsOK(ecode5)) {
36274 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
36275 }
36276 arg5 = static_cast< int >(val5);
36277 {
36278 PyThreadState* __tstate = wxPyBeginAllowThreads();
36279 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
36280 wxPyEndAllowThreads(__tstate);
36281 if (PyErr_Occurred()) SWIG_fail;
36282 }
36283 resultobj = SWIG_Py_Void();
36284 return resultobj;
36285fail:
36286 return NULL;
36287}
36288
36289
36290SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36291 PyObject *resultobj = 0;
36292 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36293 wxPoint *arg2 = 0 ;
36294 wxPoint *arg3 = 0 ;
36295 void *argp1 = 0 ;
36296 int res1 = 0 ;
36297 wxPoint temp2 ;
36298 wxPoint temp3 ;
36299 PyObject * obj0 = 0 ;
36300 PyObject * obj1 = 0 ;
36301 PyObject * obj2 = 0 ;
36302 char * kwnames[] = {
36303 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
36304 };
36305
36306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36308 if (!SWIG_IsOK(res1)) {
36309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36310 }
36311 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36312 {
36313 arg2 = &temp2;
36314 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36315 }
36316 {
36317 arg3 = &temp3;
36318 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36319 }
36320 {
36321 PyThreadState* __tstate = wxPyBeginAllowThreads();
36322 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
36323 wxPyEndAllowThreads(__tstate);
36324 if (PyErr_Occurred()) SWIG_fail;
36325 }
36326 resultobj = SWIG_Py_Void();
36327 return resultobj;
36328fail:
36329 return NULL;
36330}
36331
36332
36333SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36334 PyObject *resultobj = 0;
36335 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36336 int arg2 ;
36337 int arg3 ;
36338 void *argp1 = 0 ;
36339 int res1 = 0 ;
36340 int val2 ;
36341 int ecode2 = 0 ;
36342 int val3 ;
36343 int ecode3 = 0 ;
36344 PyObject * obj0 = 0 ;
36345 PyObject * obj1 = 0 ;
36346 PyObject * obj2 = 0 ;
36347 char * kwnames[] = {
36348 (char *) "self",(char *) "x",(char *) "y", NULL
36349 };
36350
36351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36353 if (!SWIG_IsOK(res1)) {
36354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36355 }
36356 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36357 ecode2 = SWIG_AsVal_int(obj1, &val2);
36358 if (!SWIG_IsOK(ecode2)) {
36359 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
36360 }
36361 arg2 = static_cast< int >(val2);
36362 ecode3 = SWIG_AsVal_int(obj2, &val3);
36363 if (!SWIG_IsOK(ecode3)) {
36364 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
36365 }
36366 arg3 = static_cast< int >(val3);
36367 {
36368 PyThreadState* __tstate = wxPyBeginAllowThreads();
36369 (arg1)->CrossHair(arg2,arg3);
36370 wxPyEndAllowThreads(__tstate);
36371 if (PyErr_Occurred()) SWIG_fail;
36372 }
36373 resultobj = SWIG_Py_Void();
36374 return resultobj;
36375fail:
36376 return NULL;
36377}
36378
36379
36380SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36381 PyObject *resultobj = 0;
36382 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36383 wxPoint *arg2 = 0 ;
36384 void *argp1 = 0 ;
36385 int res1 = 0 ;
36386 wxPoint temp2 ;
36387 PyObject * obj0 = 0 ;
36388 PyObject * obj1 = 0 ;
36389 char * kwnames[] = {
36390 (char *) "self",(char *) "pt", NULL
36391 };
36392
36393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36395 if (!SWIG_IsOK(res1)) {
36396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36397 }
36398 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36399 {
36400 arg2 = &temp2;
36401 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36402 }
36403 {
36404 PyThreadState* __tstate = wxPyBeginAllowThreads();
36405 (arg1)->CrossHair((wxPoint const &)*arg2);
36406 wxPyEndAllowThreads(__tstate);
36407 if (PyErr_Occurred()) SWIG_fail;
36408 }
36409 resultobj = SWIG_Py_Void();
36410 return resultobj;
36411fail:
36412 return NULL;
36413}
36414
36415
36416SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36417 PyObject *resultobj = 0;
36418 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36419 int arg2 ;
36420 int arg3 ;
36421 int arg4 ;
36422 int arg5 ;
36423 int arg6 ;
36424 int arg7 ;
36425 void *argp1 = 0 ;
36426 int res1 = 0 ;
36427 int val2 ;
36428 int ecode2 = 0 ;
36429 int val3 ;
36430 int ecode3 = 0 ;
36431 int val4 ;
36432 int ecode4 = 0 ;
36433 int val5 ;
36434 int ecode5 = 0 ;
36435 int val6 ;
36436 int ecode6 = 0 ;
36437 int val7 ;
36438 int ecode7 = 0 ;
36439 PyObject * obj0 = 0 ;
36440 PyObject * obj1 = 0 ;
36441 PyObject * obj2 = 0 ;
36442 PyObject * obj3 = 0 ;
36443 PyObject * obj4 = 0 ;
36444 PyObject * obj5 = 0 ;
36445 PyObject * obj6 = 0 ;
36446 char * kwnames[] = {
36447 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
36448 };
36449
36450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36452 if (!SWIG_IsOK(res1)) {
36453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36454 }
36455 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36456 ecode2 = SWIG_AsVal_int(obj1, &val2);
36457 if (!SWIG_IsOK(ecode2)) {
36458 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
36459 }
36460 arg2 = static_cast< int >(val2);
36461 ecode3 = SWIG_AsVal_int(obj2, &val3);
36462 if (!SWIG_IsOK(ecode3)) {
36463 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
36464 }
36465 arg3 = static_cast< int >(val3);
36466 ecode4 = SWIG_AsVal_int(obj3, &val4);
36467 if (!SWIG_IsOK(ecode4)) {
36468 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
36469 }
36470 arg4 = static_cast< int >(val4);
36471 ecode5 = SWIG_AsVal_int(obj4, &val5);
36472 if (!SWIG_IsOK(ecode5)) {
36473 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
36474 }
36475 arg5 = static_cast< int >(val5);
36476 ecode6 = SWIG_AsVal_int(obj5, &val6);
36477 if (!SWIG_IsOK(ecode6)) {
36478 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
36479 }
36480 arg6 = static_cast< int >(val6);
36481 ecode7 = SWIG_AsVal_int(obj6, &val7);
36482 if (!SWIG_IsOK(ecode7)) {
36483 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
36484 }
36485 arg7 = static_cast< int >(val7);
36486 {
36487 PyThreadState* __tstate = wxPyBeginAllowThreads();
36488 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
36489 wxPyEndAllowThreads(__tstate);
36490 if (PyErr_Occurred()) SWIG_fail;
36491 }
36492 resultobj = SWIG_Py_Void();
36493 return resultobj;
36494fail:
36495 return NULL;
36496}
36497
36498
36499SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36500 PyObject *resultobj = 0;
36501 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36502 wxPoint *arg2 = 0 ;
36503 wxPoint *arg3 = 0 ;
36504 wxPoint *arg4 = 0 ;
36505 void *argp1 = 0 ;
36506 int res1 = 0 ;
36507 wxPoint temp2 ;
36508 wxPoint temp3 ;
36509 wxPoint temp4 ;
36510 PyObject * obj0 = 0 ;
36511 PyObject * obj1 = 0 ;
36512 PyObject * obj2 = 0 ;
36513 PyObject * obj3 = 0 ;
36514 char * kwnames[] = {
36515 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
36516 };
36517
36518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36520 if (!SWIG_IsOK(res1)) {
36521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36522 }
36523 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36524 {
36525 arg2 = &temp2;
36526 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36527 }
36528 {
36529 arg3 = &temp3;
36530 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36531 }
36532 {
36533 arg4 = &temp4;
36534 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36535 }
36536 {
36537 PyThreadState* __tstate = wxPyBeginAllowThreads();
36538 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
36539 wxPyEndAllowThreads(__tstate);
36540 if (PyErr_Occurred()) SWIG_fail;
36541 }
36542 resultobj = SWIG_Py_Void();
36543 return resultobj;
36544fail:
36545 return NULL;
36546}
36547
36548
36549SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36550 PyObject *resultobj = 0;
36551 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36552 int arg2 ;
36553 int arg3 ;
36554 int arg4 ;
36555 int arg5 ;
36556 void *argp1 = 0 ;
36557 int res1 = 0 ;
36558 int val2 ;
36559 int ecode2 = 0 ;
36560 int val3 ;
36561 int ecode3 = 0 ;
36562 int val4 ;
36563 int ecode4 = 0 ;
36564 int val5 ;
36565 int ecode5 = 0 ;
36566 PyObject * obj0 = 0 ;
36567 PyObject * obj1 = 0 ;
36568 PyObject * obj2 = 0 ;
36569 PyObject * obj3 = 0 ;
36570 PyObject * obj4 = 0 ;
36571 char * kwnames[] = {
36572 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36573 };
36574
36575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36577 if (!SWIG_IsOK(res1)) {
36578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36579 }
36580 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36581 ecode2 = SWIG_AsVal_int(obj1, &val2);
36582 if (!SWIG_IsOK(ecode2)) {
36583 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
36584 }
36585 arg2 = static_cast< int >(val2);
36586 ecode3 = SWIG_AsVal_int(obj2, &val3);
36587 if (!SWIG_IsOK(ecode3)) {
36588 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
36589 }
36590 arg3 = static_cast< int >(val3);
36591 ecode4 = SWIG_AsVal_int(obj3, &val4);
36592 if (!SWIG_IsOK(ecode4)) {
36593 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
36594 }
36595 arg4 = static_cast< int >(val4);
36596 ecode5 = SWIG_AsVal_int(obj4, &val5);
36597 if (!SWIG_IsOK(ecode5)) {
36598 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
36599 }
36600 arg5 = static_cast< int >(val5);
36601 {
36602 PyThreadState* __tstate = wxPyBeginAllowThreads();
36603 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
36604 wxPyEndAllowThreads(__tstate);
36605 if (PyErr_Occurred()) SWIG_fail;
36606 }
36607 resultobj = SWIG_Py_Void();
36608 return resultobj;
36609fail:
36610 return NULL;
36611}
36612
36613
36614SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36615 PyObject *resultobj = 0;
36616 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36617 wxRect *arg2 = 0 ;
36618 void *argp1 = 0 ;
36619 int res1 = 0 ;
36620 wxRect temp2 ;
36621 PyObject * obj0 = 0 ;
36622 PyObject * obj1 = 0 ;
36623 char * kwnames[] = {
36624 (char *) "self",(char *) "rect", NULL
36625 };
36626
36627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
36628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36629 if (!SWIG_IsOK(res1)) {
36630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36631 }
36632 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36633 {
36634 arg2 = &temp2;
36635 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36636 }
36637 {
36638 PyThreadState* __tstate = wxPyBeginAllowThreads();
36639 (arg1)->DrawCheckMark((wxRect const &)*arg2);
36640 wxPyEndAllowThreads(__tstate);
36641 if (PyErr_Occurred()) SWIG_fail;
36642 }
36643 resultobj = SWIG_Py_Void();
36644 return resultobj;
36645fail:
36646 return NULL;
36647}
36648
36649
36650SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36651 PyObject *resultobj = 0;
36652 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36653 int arg2 ;
36654 int arg3 ;
36655 int arg4 ;
36656 int arg5 ;
36657 double arg6 ;
36658 double arg7 ;
36659 void *argp1 = 0 ;
36660 int res1 = 0 ;
36661 int val2 ;
36662 int ecode2 = 0 ;
36663 int val3 ;
36664 int ecode3 = 0 ;
36665 int val4 ;
36666 int ecode4 = 0 ;
36667 int val5 ;
36668 int ecode5 = 0 ;
36669 double val6 ;
36670 int ecode6 = 0 ;
36671 double val7 ;
36672 int ecode7 = 0 ;
36673 PyObject * obj0 = 0 ;
36674 PyObject * obj1 = 0 ;
36675 PyObject * obj2 = 0 ;
36676 PyObject * obj3 = 0 ;
36677 PyObject * obj4 = 0 ;
36678 PyObject * obj5 = 0 ;
36679 PyObject * obj6 = 0 ;
36680 char * kwnames[] = {
36681 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
36682 };
36683
36684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36686 if (!SWIG_IsOK(res1)) {
36687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36688 }
36689 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36690 ecode2 = SWIG_AsVal_int(obj1, &val2);
36691 if (!SWIG_IsOK(ecode2)) {
36692 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
36693 }
36694 arg2 = static_cast< int >(val2);
36695 ecode3 = SWIG_AsVal_int(obj2, &val3);
36696 if (!SWIG_IsOK(ecode3)) {
36697 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
36698 }
36699 arg3 = static_cast< int >(val3);
36700 ecode4 = SWIG_AsVal_int(obj3, &val4);
36701 if (!SWIG_IsOK(ecode4)) {
36702 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
36703 }
36704 arg4 = static_cast< int >(val4);
36705 ecode5 = SWIG_AsVal_int(obj4, &val5);
36706 if (!SWIG_IsOK(ecode5)) {
36707 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
36708 }
36709 arg5 = static_cast< int >(val5);
36710 ecode6 = SWIG_AsVal_double(obj5, &val6);
36711 if (!SWIG_IsOK(ecode6)) {
36712 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
36713 }
36714 arg6 = static_cast< double >(val6);
36715 ecode7 = SWIG_AsVal_double(obj6, &val7);
36716 if (!SWIG_IsOK(ecode7)) {
36717 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
36718 }
36719 arg7 = static_cast< double >(val7);
36720 {
36721 PyThreadState* __tstate = wxPyBeginAllowThreads();
36722 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
36723 wxPyEndAllowThreads(__tstate);
36724 if (PyErr_Occurred()) SWIG_fail;
36725 }
36726 resultobj = SWIG_Py_Void();
36727 return resultobj;
36728fail:
36729 return NULL;
36730}
36731
36732
36733SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36734 PyObject *resultobj = 0;
36735 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36736 wxPoint *arg2 = 0 ;
36737 wxSize *arg3 = 0 ;
36738 double arg4 ;
36739 double arg5 ;
36740 void *argp1 = 0 ;
36741 int res1 = 0 ;
36742 wxPoint temp2 ;
36743 wxSize temp3 ;
36744 double val4 ;
36745 int ecode4 = 0 ;
36746 double val5 ;
36747 int ecode5 = 0 ;
36748 PyObject * obj0 = 0 ;
36749 PyObject * obj1 = 0 ;
36750 PyObject * obj2 = 0 ;
36751 PyObject * obj3 = 0 ;
36752 PyObject * obj4 = 0 ;
36753 char * kwnames[] = {
36754 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
36755 };
36756
36757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36759 if (!SWIG_IsOK(res1)) {
36760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36761 }
36762 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36763 {
36764 arg2 = &temp2;
36765 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36766 }
36767 {
36768 arg3 = &temp3;
36769 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36770 }
36771 ecode4 = SWIG_AsVal_double(obj3, &val4);
36772 if (!SWIG_IsOK(ecode4)) {
36773 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
36774 }
36775 arg4 = static_cast< double >(val4);
36776 ecode5 = SWIG_AsVal_double(obj4, &val5);
36777 if (!SWIG_IsOK(ecode5)) {
36778 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
36779 }
36780 arg5 = static_cast< double >(val5);
36781 {
36782 PyThreadState* __tstate = wxPyBeginAllowThreads();
36783 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
36784 wxPyEndAllowThreads(__tstate);
36785 if (PyErr_Occurred()) SWIG_fail;
36786 }
36787 resultobj = SWIG_Py_Void();
36788 return resultobj;
36789fail:
36790 return NULL;
36791}
36792
36793
36794SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36795 PyObject *resultobj = 0;
36796 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36797 int arg2 ;
36798 int arg3 ;
36799 void *argp1 = 0 ;
36800 int res1 = 0 ;
36801 int val2 ;
36802 int ecode2 = 0 ;
36803 int val3 ;
36804 int ecode3 = 0 ;
36805 PyObject * obj0 = 0 ;
36806 PyObject * obj1 = 0 ;
36807 PyObject * obj2 = 0 ;
36808 char * kwnames[] = {
36809 (char *) "self",(char *) "x",(char *) "y", NULL
36810 };
36811
36812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36814 if (!SWIG_IsOK(res1)) {
36815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36816 }
36817 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36818 ecode2 = SWIG_AsVal_int(obj1, &val2);
36819 if (!SWIG_IsOK(ecode2)) {
36820 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
36821 }
36822 arg2 = static_cast< int >(val2);
36823 ecode3 = SWIG_AsVal_int(obj2, &val3);
36824 if (!SWIG_IsOK(ecode3)) {
36825 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
36826 }
36827 arg3 = static_cast< int >(val3);
36828 {
36829 PyThreadState* __tstate = wxPyBeginAllowThreads();
36830 (arg1)->DrawPoint(arg2,arg3);
36831 wxPyEndAllowThreads(__tstate);
36832 if (PyErr_Occurred()) SWIG_fail;
36833 }
36834 resultobj = SWIG_Py_Void();
36835 return resultobj;
36836fail:
36837 return NULL;
36838}
36839
36840
36841SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36842 PyObject *resultobj = 0;
36843 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36844 wxPoint *arg2 = 0 ;
36845 void *argp1 = 0 ;
36846 int res1 = 0 ;
36847 wxPoint temp2 ;
36848 PyObject * obj0 = 0 ;
36849 PyObject * obj1 = 0 ;
36850 char * kwnames[] = {
36851 (char *) "self",(char *) "pt", NULL
36852 };
36853
36854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
36855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36856 if (!SWIG_IsOK(res1)) {
36857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36858 }
36859 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36860 {
36861 arg2 = &temp2;
36862 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36863 }
36864 {
36865 PyThreadState* __tstate = wxPyBeginAllowThreads();
36866 (arg1)->DrawPoint((wxPoint const &)*arg2);
36867 wxPyEndAllowThreads(__tstate);
36868 if (PyErr_Occurred()) SWIG_fail;
36869 }
36870 resultobj = SWIG_Py_Void();
36871 return resultobj;
36872fail:
36873 return NULL;
36874}
36875
36876
36877SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36878 PyObject *resultobj = 0;
36879 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36880 int arg2 ;
36881 int arg3 ;
36882 int arg4 ;
36883 int arg5 ;
36884 void *argp1 = 0 ;
36885 int res1 = 0 ;
36886 int val2 ;
36887 int ecode2 = 0 ;
36888 int val3 ;
36889 int ecode3 = 0 ;
36890 int val4 ;
36891 int ecode4 = 0 ;
36892 int val5 ;
36893 int ecode5 = 0 ;
36894 PyObject * obj0 = 0 ;
36895 PyObject * obj1 = 0 ;
36896 PyObject * obj2 = 0 ;
36897 PyObject * obj3 = 0 ;
36898 PyObject * obj4 = 0 ;
36899 char * kwnames[] = {
36900 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36901 };
36902
36903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36905 if (!SWIG_IsOK(res1)) {
36906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36907 }
36908 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36909 ecode2 = SWIG_AsVal_int(obj1, &val2);
36910 if (!SWIG_IsOK(ecode2)) {
36911 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
36912 }
36913 arg2 = static_cast< int >(val2);
36914 ecode3 = SWIG_AsVal_int(obj2, &val3);
36915 if (!SWIG_IsOK(ecode3)) {
36916 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
36917 }
36918 arg3 = static_cast< int >(val3);
36919 ecode4 = SWIG_AsVal_int(obj3, &val4);
36920 if (!SWIG_IsOK(ecode4)) {
36921 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
36922 }
36923 arg4 = static_cast< int >(val4);
36924 ecode5 = SWIG_AsVal_int(obj4, &val5);
36925 if (!SWIG_IsOK(ecode5)) {
36926 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
36927 }
36928 arg5 = static_cast< int >(val5);
36929 {
36930 PyThreadState* __tstate = wxPyBeginAllowThreads();
36931 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
36932 wxPyEndAllowThreads(__tstate);
36933 if (PyErr_Occurred()) SWIG_fail;
36934 }
36935 resultobj = SWIG_Py_Void();
36936 return resultobj;
36937fail:
36938 return NULL;
36939}
36940
36941
36942SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36943 PyObject *resultobj = 0;
36944 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36945 wxRect *arg2 = 0 ;
36946 void *argp1 = 0 ;
36947 int res1 = 0 ;
36948 wxRect temp2 ;
36949 PyObject * obj0 = 0 ;
36950 PyObject * obj1 = 0 ;
36951 char * kwnames[] = {
36952 (char *) "self",(char *) "rect", NULL
36953 };
36954
36955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
36956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36957 if (!SWIG_IsOK(res1)) {
36958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36959 }
36960 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36961 {
36962 arg2 = &temp2;
36963 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36964 }
36965 {
36966 PyThreadState* __tstate = wxPyBeginAllowThreads();
36967 (arg1)->DrawRectangle((wxRect const &)*arg2);
36968 wxPyEndAllowThreads(__tstate);
36969 if (PyErr_Occurred()) SWIG_fail;
36970 }
36971 resultobj = SWIG_Py_Void();
36972 return resultobj;
36973fail:
36974 return NULL;
36975}
36976
36977
36978SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36979 PyObject *resultobj = 0;
36980 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36981 wxPoint *arg2 = 0 ;
36982 wxSize *arg3 = 0 ;
36983 void *argp1 = 0 ;
36984 int res1 = 0 ;
36985 wxPoint temp2 ;
36986 wxSize temp3 ;
36987 PyObject * obj0 = 0 ;
36988 PyObject * obj1 = 0 ;
36989 PyObject * obj2 = 0 ;
36990 char * kwnames[] = {
36991 (char *) "self",(char *) "pt",(char *) "sz", NULL
36992 };
36993
36994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36996 if (!SWIG_IsOK(res1)) {
36997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36998 }
36999 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37000 {
37001 arg2 = &temp2;
37002 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37003 }
37004 {
37005 arg3 = &temp3;
37006 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37007 }
37008 {
37009 PyThreadState* __tstate = wxPyBeginAllowThreads();
37010 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
37011 wxPyEndAllowThreads(__tstate);
37012 if (PyErr_Occurred()) SWIG_fail;
37013 }
37014 resultobj = SWIG_Py_Void();
37015 return resultobj;
37016fail:
37017 return NULL;
37018}
37019
37020
37021SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37022 PyObject *resultobj = 0;
37023 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37024 int arg2 ;
37025 int arg3 ;
37026 int arg4 ;
37027 int arg5 ;
37028 double arg6 ;
37029 void *argp1 = 0 ;
37030 int res1 = 0 ;
37031 int val2 ;
37032 int ecode2 = 0 ;
37033 int val3 ;
37034 int ecode3 = 0 ;
37035 int val4 ;
37036 int ecode4 = 0 ;
37037 int val5 ;
37038 int ecode5 = 0 ;
37039 double val6 ;
37040 int ecode6 = 0 ;
37041 PyObject * obj0 = 0 ;
37042 PyObject * obj1 = 0 ;
37043 PyObject * obj2 = 0 ;
37044 PyObject * obj3 = 0 ;
37045 PyObject * obj4 = 0 ;
37046 PyObject * obj5 = 0 ;
37047 char * kwnames[] = {
37048 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
37049 };
37050
37051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37053 if (!SWIG_IsOK(res1)) {
37054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37055 }
37056 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37057 ecode2 = SWIG_AsVal_int(obj1, &val2);
37058 if (!SWIG_IsOK(ecode2)) {
37059 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
37060 }
37061 arg2 = static_cast< int >(val2);
37062 ecode3 = SWIG_AsVal_int(obj2, &val3);
37063 if (!SWIG_IsOK(ecode3)) {
37064 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
37065 }
37066 arg3 = static_cast< int >(val3);
37067 ecode4 = SWIG_AsVal_int(obj3, &val4);
37068 if (!SWIG_IsOK(ecode4)) {
37069 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
37070 }
37071 arg4 = static_cast< int >(val4);
37072 ecode5 = SWIG_AsVal_int(obj4, &val5);
37073 if (!SWIG_IsOK(ecode5)) {
37074 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
37075 }
37076 arg5 = static_cast< int >(val5);
37077 ecode6 = SWIG_AsVal_double(obj5, &val6);
37078 if (!SWIG_IsOK(ecode6)) {
37079 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
37080 }
37081 arg6 = static_cast< double >(val6);
37082 {
37083 PyThreadState* __tstate = wxPyBeginAllowThreads();
37084 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
37085 wxPyEndAllowThreads(__tstate);
37086 if (PyErr_Occurred()) SWIG_fail;
37087 }
37088 resultobj = SWIG_Py_Void();
37089 return resultobj;
37090fail:
37091 return NULL;
37092}
37093
37094
37095SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37096 PyObject *resultobj = 0;
37097 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37098 wxRect *arg2 = 0 ;
37099 double arg3 ;
37100 void *argp1 = 0 ;
37101 int res1 = 0 ;
37102 wxRect temp2 ;
37103 double val3 ;
37104 int ecode3 = 0 ;
37105 PyObject * obj0 = 0 ;
37106 PyObject * obj1 = 0 ;
37107 PyObject * obj2 = 0 ;
37108 char * kwnames[] = {
37109 (char *) "self",(char *) "r",(char *) "radius", NULL
37110 };
37111
37112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37114 if (!SWIG_IsOK(res1)) {
37115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37116 }
37117 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37118 {
37119 arg2 = &temp2;
37120 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37121 }
37122 ecode3 = SWIG_AsVal_double(obj2, &val3);
37123 if (!SWIG_IsOK(ecode3)) {
37124 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
37125 }
37126 arg3 = static_cast< double >(val3);
37127 {
37128 PyThreadState* __tstate = wxPyBeginAllowThreads();
37129 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
37130 wxPyEndAllowThreads(__tstate);
37131 if (PyErr_Occurred()) SWIG_fail;
37132 }
37133 resultobj = SWIG_Py_Void();
37134 return resultobj;
37135fail:
37136 return NULL;
37137}
37138
37139
37140SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37141 PyObject *resultobj = 0;
37142 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37143 wxPoint *arg2 = 0 ;
37144 wxSize *arg3 = 0 ;
37145 double arg4 ;
37146 void *argp1 = 0 ;
37147 int res1 = 0 ;
37148 wxPoint temp2 ;
37149 wxSize temp3 ;
37150 double val4 ;
37151 int ecode4 = 0 ;
37152 PyObject * obj0 = 0 ;
37153 PyObject * obj1 = 0 ;
37154 PyObject * obj2 = 0 ;
37155 PyObject * obj3 = 0 ;
37156 char * kwnames[] = {
37157 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
37158 };
37159
37160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37162 if (!SWIG_IsOK(res1)) {
37163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37164 }
37165 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37166 {
37167 arg2 = &temp2;
37168 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37169 }
37170 {
37171 arg3 = &temp3;
37172 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37173 }
37174 ecode4 = SWIG_AsVal_double(obj3, &val4);
37175 if (!SWIG_IsOK(ecode4)) {
37176 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
37177 }
37178 arg4 = static_cast< double >(val4);
37179 {
37180 PyThreadState* __tstate = wxPyBeginAllowThreads();
37181 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
37182 wxPyEndAllowThreads(__tstate);
37183 if (PyErr_Occurred()) SWIG_fail;
37184 }
37185 resultobj = SWIG_Py_Void();
37186 return resultobj;
37187fail:
37188 return NULL;
37189}
37190
37191
37192SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37193 PyObject *resultobj = 0;
37194 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37195 int arg2 ;
37196 int arg3 ;
37197 int arg4 ;
37198 void *argp1 = 0 ;
37199 int res1 = 0 ;
37200 int val2 ;
37201 int ecode2 = 0 ;
37202 int val3 ;
37203 int ecode3 = 0 ;
37204 int val4 ;
37205 int ecode4 = 0 ;
37206 PyObject * obj0 = 0 ;
37207 PyObject * obj1 = 0 ;
37208 PyObject * obj2 = 0 ;
37209 PyObject * obj3 = 0 ;
37210 char * kwnames[] = {
37211 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
37212 };
37213
37214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37216 if (!SWIG_IsOK(res1)) {
37217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37218 }
37219 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37220 ecode2 = SWIG_AsVal_int(obj1, &val2);
37221 if (!SWIG_IsOK(ecode2)) {
37222 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
37223 }
37224 arg2 = static_cast< int >(val2);
37225 ecode3 = SWIG_AsVal_int(obj2, &val3);
37226 if (!SWIG_IsOK(ecode3)) {
37227 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
37228 }
37229 arg3 = static_cast< int >(val3);
37230 ecode4 = SWIG_AsVal_int(obj3, &val4);
37231 if (!SWIG_IsOK(ecode4)) {
37232 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
37233 }
37234 arg4 = static_cast< int >(val4);
37235 {
37236 PyThreadState* __tstate = wxPyBeginAllowThreads();
37237 (arg1)->DrawCircle(arg2,arg3,arg4);
37238 wxPyEndAllowThreads(__tstate);
37239 if (PyErr_Occurred()) SWIG_fail;
37240 }
37241 resultobj = SWIG_Py_Void();
37242 return resultobj;
37243fail:
37244 return NULL;
37245}
37246
37247
37248SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37249 PyObject *resultobj = 0;
37250 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37251 wxPoint *arg2 = 0 ;
37252 int arg3 ;
37253 void *argp1 = 0 ;
37254 int res1 = 0 ;
37255 wxPoint temp2 ;
37256 int val3 ;
37257 int ecode3 = 0 ;
37258 PyObject * obj0 = 0 ;
37259 PyObject * obj1 = 0 ;
37260 PyObject * obj2 = 0 ;
37261 char * kwnames[] = {
37262 (char *) "self",(char *) "pt",(char *) "radius", NULL
37263 };
37264
37265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37267 if (!SWIG_IsOK(res1)) {
37268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37269 }
37270 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37271 {
37272 arg2 = &temp2;
37273 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37274 }
37275 ecode3 = SWIG_AsVal_int(obj2, &val3);
37276 if (!SWIG_IsOK(ecode3)) {
37277 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
37278 }
37279 arg3 = static_cast< int >(val3);
37280 {
37281 PyThreadState* __tstate = wxPyBeginAllowThreads();
37282 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
37283 wxPyEndAllowThreads(__tstate);
37284 if (PyErr_Occurred()) SWIG_fail;
37285 }
37286 resultobj = SWIG_Py_Void();
37287 return resultobj;
37288fail:
37289 return NULL;
37290}
37291
37292
37293SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37294 PyObject *resultobj = 0;
37295 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37296 int arg2 ;
37297 int arg3 ;
37298 int arg4 ;
37299 int arg5 ;
37300 void *argp1 = 0 ;
37301 int res1 = 0 ;
37302 int val2 ;
37303 int ecode2 = 0 ;
37304 int val3 ;
37305 int ecode3 = 0 ;
37306 int val4 ;
37307 int ecode4 = 0 ;
37308 int val5 ;
37309 int ecode5 = 0 ;
37310 PyObject * obj0 = 0 ;
37311 PyObject * obj1 = 0 ;
37312 PyObject * obj2 = 0 ;
37313 PyObject * obj3 = 0 ;
37314 PyObject * obj4 = 0 ;
37315 char * kwnames[] = {
37316 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
37317 };
37318
37319 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37320 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37321 if (!SWIG_IsOK(res1)) {
37322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37323 }
37324 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37325 ecode2 = SWIG_AsVal_int(obj1, &val2);
37326 if (!SWIG_IsOK(ecode2)) {
37327 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
37328 }
37329 arg2 = static_cast< int >(val2);
37330 ecode3 = SWIG_AsVal_int(obj2, &val3);
37331 if (!SWIG_IsOK(ecode3)) {
37332 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
37333 }
37334 arg3 = static_cast< int >(val3);
37335 ecode4 = SWIG_AsVal_int(obj3, &val4);
37336 if (!SWIG_IsOK(ecode4)) {
37337 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
37338 }
37339 arg4 = static_cast< int >(val4);
37340 ecode5 = SWIG_AsVal_int(obj4, &val5);
37341 if (!SWIG_IsOK(ecode5)) {
37342 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
37343 }
37344 arg5 = static_cast< int >(val5);
37345 {
37346 PyThreadState* __tstate = wxPyBeginAllowThreads();
37347 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
37348 wxPyEndAllowThreads(__tstate);
37349 if (PyErr_Occurred()) SWIG_fail;
37350 }
37351 resultobj = SWIG_Py_Void();
37352 return resultobj;
37353fail:
37354 return NULL;
37355}
37356
37357
37358SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37359 PyObject *resultobj = 0;
37360 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37361 wxRect *arg2 = 0 ;
37362 void *argp1 = 0 ;
37363 int res1 = 0 ;
37364 wxRect temp2 ;
37365 PyObject * obj0 = 0 ;
37366 PyObject * obj1 = 0 ;
37367 char * kwnames[] = {
37368 (char *) "self",(char *) "rect", NULL
37369 };
37370
37371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
37372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37373 if (!SWIG_IsOK(res1)) {
37374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37375 }
37376 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37377 {
37378 arg2 = &temp2;
37379 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
37380 }
37381 {
37382 PyThreadState* __tstate = wxPyBeginAllowThreads();
37383 (arg1)->DrawEllipse((wxRect const &)*arg2);
37384 wxPyEndAllowThreads(__tstate);
37385 if (PyErr_Occurred()) SWIG_fail;
37386 }
37387 resultobj = SWIG_Py_Void();
37388 return resultobj;
37389fail:
37390 return NULL;
37391}
37392
37393
37394SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37395 PyObject *resultobj = 0;
37396 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37397 wxPoint *arg2 = 0 ;
37398 wxSize *arg3 = 0 ;
37399 void *argp1 = 0 ;
37400 int res1 = 0 ;
37401 wxPoint temp2 ;
37402 wxSize temp3 ;
37403 PyObject * obj0 = 0 ;
37404 PyObject * obj1 = 0 ;
37405 PyObject * obj2 = 0 ;
37406 char * kwnames[] = {
37407 (char *) "self",(char *) "pt",(char *) "sz", NULL
37408 };
37409
37410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37412 if (!SWIG_IsOK(res1)) {
37413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37414 }
37415 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37416 {
37417 arg2 = &temp2;
37418 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37419 }
37420 {
37421 arg3 = &temp3;
37422 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
37423 }
37424 {
37425 PyThreadState* __tstate = wxPyBeginAllowThreads();
37426 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
37427 wxPyEndAllowThreads(__tstate);
37428 if (PyErr_Occurred()) SWIG_fail;
37429 }
37430 resultobj = SWIG_Py_Void();
37431 return resultobj;
37432fail:
37433 return NULL;
37434}
37435
37436
37437SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37438 PyObject *resultobj = 0;
37439 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37440 wxIcon *arg2 = 0 ;
37441 int arg3 ;
37442 int arg4 ;
37443 void *argp1 = 0 ;
37444 int res1 = 0 ;
37445 void *argp2 = 0 ;
37446 int res2 = 0 ;
37447 int val3 ;
37448 int ecode3 = 0 ;
37449 int val4 ;
37450 int ecode4 = 0 ;
37451 PyObject * obj0 = 0 ;
37452 PyObject * obj1 = 0 ;
37453 PyObject * obj2 = 0 ;
37454 PyObject * obj3 = 0 ;
37455 char * kwnames[] = {
37456 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
37457 };
37458
37459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37461 if (!SWIG_IsOK(res1)) {
37462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37463 }
37464 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37465 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37466 if (!SWIG_IsOK(res2)) {
37467 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37468 }
37469 if (!argp2) {
37470 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
37471 }
37472 arg2 = reinterpret_cast< wxIcon * >(argp2);
37473 ecode3 = SWIG_AsVal_int(obj2, &val3);
37474 if (!SWIG_IsOK(ecode3)) {
37475 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
37476 }
37477 arg3 = static_cast< int >(val3);
37478 ecode4 = SWIG_AsVal_int(obj3, &val4);
37479 if (!SWIG_IsOK(ecode4)) {
37480 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
37481 }
37482 arg4 = static_cast< int >(val4);
37483 {
37484 PyThreadState* __tstate = wxPyBeginAllowThreads();
37485 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
37486 wxPyEndAllowThreads(__tstate);
37487 if (PyErr_Occurred()) SWIG_fail;
37488 }
37489 resultobj = SWIG_Py_Void();
37490 return resultobj;
37491fail:
37492 return NULL;
37493}
37494
37495
37496SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37497 PyObject *resultobj = 0;
37498 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37499 wxIcon *arg2 = 0 ;
37500 wxPoint *arg3 = 0 ;
37501 void *argp1 = 0 ;
37502 int res1 = 0 ;
37503 void *argp2 = 0 ;
37504 int res2 = 0 ;
37505 wxPoint temp3 ;
37506 PyObject * obj0 = 0 ;
37507 PyObject * obj1 = 0 ;
37508 PyObject * obj2 = 0 ;
37509 char * kwnames[] = {
37510 (char *) "self",(char *) "icon",(char *) "pt", NULL
37511 };
37512
37513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37515 if (!SWIG_IsOK(res1)) {
37516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37517 }
37518 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37519 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
37520 if (!SWIG_IsOK(res2)) {
37521 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37522 }
37523 if (!argp2) {
37524 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
37525 }
37526 arg2 = reinterpret_cast< wxIcon * >(argp2);
37527 {
37528 arg3 = &temp3;
37529 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37530 }
37531 {
37532 PyThreadState* __tstate = wxPyBeginAllowThreads();
37533 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
37534 wxPyEndAllowThreads(__tstate);
37535 if (PyErr_Occurred()) SWIG_fail;
37536 }
37537 resultobj = SWIG_Py_Void();
37538 return resultobj;
37539fail:
37540 return NULL;
37541}
37542
37543
37544SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37545 PyObject *resultobj = 0;
37546 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37547 wxBitmap *arg2 = 0 ;
37548 int arg3 ;
37549 int arg4 ;
37550 bool arg5 = (bool) false ;
37551 void *argp1 = 0 ;
37552 int res1 = 0 ;
37553 void *argp2 = 0 ;
37554 int res2 = 0 ;
37555 int val3 ;
37556 int ecode3 = 0 ;
37557 int val4 ;
37558 int ecode4 = 0 ;
37559 bool val5 ;
37560 int ecode5 = 0 ;
37561 PyObject * obj0 = 0 ;
37562 PyObject * obj1 = 0 ;
37563 PyObject * obj2 = 0 ;
37564 PyObject * obj3 = 0 ;
37565 PyObject * obj4 = 0 ;
37566 char * kwnames[] = {
37567 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
37568 };
37569
37570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37572 if (!SWIG_IsOK(res1)) {
37573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37574 }
37575 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37576 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37577 if (!SWIG_IsOK(res2)) {
37578 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37579 }
37580 if (!argp2) {
37581 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37582 }
37583 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37584 ecode3 = SWIG_AsVal_int(obj2, &val3);
37585 if (!SWIG_IsOK(ecode3)) {
37586 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
37587 }
37588 arg3 = static_cast< int >(val3);
37589 ecode4 = SWIG_AsVal_int(obj3, &val4);
37590 if (!SWIG_IsOK(ecode4)) {
37591 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
37592 }
37593 arg4 = static_cast< int >(val4);
37594 if (obj4) {
37595 ecode5 = SWIG_AsVal_bool(obj4, &val5);
37596 if (!SWIG_IsOK(ecode5)) {
37597 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
37598 }
37599 arg5 = static_cast< bool >(val5);
37600 }
37601 {
37602 PyThreadState* __tstate = wxPyBeginAllowThreads();
37603 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
37604 wxPyEndAllowThreads(__tstate);
37605 if (PyErr_Occurred()) SWIG_fail;
37606 }
37607 resultobj = SWIG_Py_Void();
37608 return resultobj;
37609fail:
37610 return NULL;
37611}
37612
37613
37614SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37615 PyObject *resultobj = 0;
37616 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37617 wxBitmap *arg2 = 0 ;
37618 wxPoint *arg3 = 0 ;
37619 bool arg4 = (bool) false ;
37620 void *argp1 = 0 ;
37621 int res1 = 0 ;
37622 void *argp2 = 0 ;
37623 int res2 = 0 ;
37624 wxPoint temp3 ;
37625 bool val4 ;
37626 int ecode4 = 0 ;
37627 PyObject * obj0 = 0 ;
37628 PyObject * obj1 = 0 ;
37629 PyObject * obj2 = 0 ;
37630 PyObject * obj3 = 0 ;
37631 char * kwnames[] = {
37632 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
37633 };
37634
37635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37637 if (!SWIG_IsOK(res1)) {
37638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37639 }
37640 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37641 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
37642 if (!SWIG_IsOK(res2)) {
37643 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37644 }
37645 if (!argp2) {
37646 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
37647 }
37648 arg2 = reinterpret_cast< wxBitmap * >(argp2);
37649 {
37650 arg3 = &temp3;
37651 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37652 }
37653 if (obj3) {
37654 ecode4 = SWIG_AsVal_bool(obj3, &val4);
37655 if (!SWIG_IsOK(ecode4)) {
37656 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
37657 }
37658 arg4 = static_cast< bool >(val4);
37659 }
37660 {
37661 PyThreadState* __tstate = wxPyBeginAllowThreads();
37662 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
37663 wxPyEndAllowThreads(__tstate);
37664 if (PyErr_Occurred()) SWIG_fail;
37665 }
37666 resultobj = SWIG_Py_Void();
37667 return resultobj;
37668fail:
37669 return NULL;
37670}
37671
37672
37673SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37674 PyObject *resultobj = 0;
37675 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37676 wxString *arg2 = 0 ;
37677 int arg3 ;
37678 int arg4 ;
37679 void *argp1 = 0 ;
37680 int res1 = 0 ;
37681 bool temp2 = false ;
37682 int val3 ;
37683 int ecode3 = 0 ;
37684 int val4 ;
37685 int ecode4 = 0 ;
37686 PyObject * obj0 = 0 ;
37687 PyObject * obj1 = 0 ;
37688 PyObject * obj2 = 0 ;
37689 PyObject * obj3 = 0 ;
37690 char * kwnames[] = {
37691 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
37692 };
37693
37694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37696 if (!SWIG_IsOK(res1)) {
37697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37698 }
37699 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37700 {
37701 arg2 = wxString_in_helper(obj1);
37702 if (arg2 == NULL) SWIG_fail;
37703 temp2 = true;
37704 }
37705 ecode3 = SWIG_AsVal_int(obj2, &val3);
37706 if (!SWIG_IsOK(ecode3)) {
37707 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
37708 }
37709 arg3 = static_cast< int >(val3);
37710 ecode4 = SWIG_AsVal_int(obj3, &val4);
37711 if (!SWIG_IsOK(ecode4)) {
37712 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
37713 }
37714 arg4 = static_cast< int >(val4);
37715 {
37716 PyThreadState* __tstate = wxPyBeginAllowThreads();
37717 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
37718 wxPyEndAllowThreads(__tstate);
37719 if (PyErr_Occurred()) SWIG_fail;
37720 }
37721 resultobj = SWIG_Py_Void();
37722 {
37723 if (temp2)
37724 delete arg2;
37725 }
37726 return resultobj;
37727fail:
37728 {
37729 if (temp2)
37730 delete arg2;
37731 }
37732 return NULL;
37733}
37734
37735
37736SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37737 PyObject *resultobj = 0;
37738 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37739 wxString *arg2 = 0 ;
37740 wxPoint *arg3 = 0 ;
37741 void *argp1 = 0 ;
37742 int res1 = 0 ;
37743 bool temp2 = false ;
37744 wxPoint temp3 ;
37745 PyObject * obj0 = 0 ;
37746 PyObject * obj1 = 0 ;
37747 PyObject * obj2 = 0 ;
37748 char * kwnames[] = {
37749 (char *) "self",(char *) "text",(char *) "pt", NULL
37750 };
37751
37752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37754 if (!SWIG_IsOK(res1)) {
37755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37756 }
37757 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37758 {
37759 arg2 = wxString_in_helper(obj1);
37760 if (arg2 == NULL) SWIG_fail;
37761 temp2 = true;
37762 }
37763 {
37764 arg3 = &temp3;
37765 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37766 }
37767 {
37768 PyThreadState* __tstate = wxPyBeginAllowThreads();
37769 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
37770 wxPyEndAllowThreads(__tstate);
37771 if (PyErr_Occurred()) SWIG_fail;
37772 }
37773 resultobj = SWIG_Py_Void();
37774 {
37775 if (temp2)
37776 delete arg2;
37777 }
37778 return resultobj;
37779fail:
37780 {
37781 if (temp2)
37782 delete arg2;
37783 }
37784 return NULL;
37785}
37786
37787
37788SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37789 PyObject *resultobj = 0;
37790 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37791 wxString *arg2 = 0 ;
37792 int arg3 ;
37793 int arg4 ;
37794 double arg5 ;
37795 void *argp1 = 0 ;
37796 int res1 = 0 ;
37797 bool temp2 = false ;
37798 int val3 ;
37799 int ecode3 = 0 ;
37800 int val4 ;
37801 int ecode4 = 0 ;
37802 double val5 ;
37803 int ecode5 = 0 ;
37804 PyObject * obj0 = 0 ;
37805 PyObject * obj1 = 0 ;
37806 PyObject * obj2 = 0 ;
37807 PyObject * obj3 = 0 ;
37808 PyObject * obj4 = 0 ;
37809 char * kwnames[] = {
37810 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
37811 };
37812
37813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37815 if (!SWIG_IsOK(res1)) {
37816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37817 }
37818 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37819 {
37820 arg2 = wxString_in_helper(obj1);
37821 if (arg2 == NULL) SWIG_fail;
37822 temp2 = true;
37823 }
37824 ecode3 = SWIG_AsVal_int(obj2, &val3);
37825 if (!SWIG_IsOK(ecode3)) {
37826 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
37827 }
37828 arg3 = static_cast< int >(val3);
37829 ecode4 = SWIG_AsVal_int(obj3, &val4);
37830 if (!SWIG_IsOK(ecode4)) {
37831 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
37832 }
37833 arg4 = static_cast< int >(val4);
37834 ecode5 = SWIG_AsVal_double(obj4, &val5);
37835 if (!SWIG_IsOK(ecode5)) {
37836 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
37837 }
37838 arg5 = static_cast< double >(val5);
37839 {
37840 PyThreadState* __tstate = wxPyBeginAllowThreads();
37841 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
37842 wxPyEndAllowThreads(__tstate);
37843 if (PyErr_Occurred()) SWIG_fail;
37844 }
37845 resultobj = SWIG_Py_Void();
37846 {
37847 if (temp2)
37848 delete arg2;
37849 }
37850 return resultobj;
37851fail:
37852 {
37853 if (temp2)
37854 delete arg2;
37855 }
37856 return NULL;
37857}
37858
37859
37860SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37861 PyObject *resultobj = 0;
37862 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37863 wxString *arg2 = 0 ;
37864 wxPoint *arg3 = 0 ;
37865 double arg4 ;
37866 void *argp1 = 0 ;
37867 int res1 = 0 ;
37868 bool temp2 = false ;
37869 wxPoint temp3 ;
37870 double val4 ;
37871 int ecode4 = 0 ;
37872 PyObject * obj0 = 0 ;
37873 PyObject * obj1 = 0 ;
37874 PyObject * obj2 = 0 ;
37875 PyObject * obj3 = 0 ;
37876 char * kwnames[] = {
37877 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
37878 };
37879
37880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37882 if (!SWIG_IsOK(res1)) {
37883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37884 }
37885 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37886 {
37887 arg2 = wxString_in_helper(obj1);
37888 if (arg2 == NULL) SWIG_fail;
37889 temp2 = true;
37890 }
37891 {
37892 arg3 = &temp3;
37893 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37894 }
37895 ecode4 = SWIG_AsVal_double(obj3, &val4);
37896 if (!SWIG_IsOK(ecode4)) {
37897 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
37898 }
37899 arg4 = static_cast< double >(val4);
37900 {
37901 PyThreadState* __tstate = wxPyBeginAllowThreads();
37902 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
37903 wxPyEndAllowThreads(__tstate);
37904 if (PyErr_Occurred()) SWIG_fail;
37905 }
37906 resultobj = SWIG_Py_Void();
37907 {
37908 if (temp2)
37909 delete arg2;
37910 }
37911 return resultobj;
37912fail:
37913 {
37914 if (temp2)
37915 delete arg2;
37916 }
37917 return NULL;
37918}
37919
37920
37921SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37922 PyObject *resultobj = 0;
37923 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37924 int arg2 ;
37925 wxPoint *arg3 = (wxPoint *) 0 ;
37926 int arg4 = (int) 0 ;
37927 int arg5 = (int) 0 ;
37928 void *argp1 = 0 ;
37929 int res1 = 0 ;
37930 int val4 ;
37931 int ecode4 = 0 ;
37932 int val5 ;
37933 int ecode5 = 0 ;
37934 PyObject * obj0 = 0 ;
37935 PyObject * obj1 = 0 ;
37936 PyObject * obj2 = 0 ;
37937 PyObject * obj3 = 0 ;
37938 char * kwnames[] = {
37939 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
37940 };
37941
37942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37944 if (!SWIG_IsOK(res1)) {
37945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37946 }
37947 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37948 {
37949 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37950 if (arg3 == NULL) SWIG_fail;
37951 }
37952 if (obj2) {
37953 ecode4 = SWIG_AsVal_int(obj2, &val4);
37954 if (!SWIG_IsOK(ecode4)) {
37955 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
37956 }
37957 arg4 = static_cast< int >(val4);
37958 }
37959 if (obj3) {
37960 ecode5 = SWIG_AsVal_int(obj3, &val5);
37961 if (!SWIG_IsOK(ecode5)) {
37962 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
37963 }
37964 arg5 = static_cast< int >(val5);
37965 }
37966 {
37967 PyThreadState* __tstate = wxPyBeginAllowThreads();
37968 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
37969 wxPyEndAllowThreads(__tstate);
37970 if (PyErr_Occurred()) SWIG_fail;
37971 }
37972 resultobj = SWIG_Py_Void();
37973 {
37974 if (arg3) delete [] arg3;
37975 }
37976 return resultobj;
37977fail:
37978 {
37979 if (arg3) delete [] arg3;
37980 }
37981 return NULL;
37982}
37983
37984
37985SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37986 PyObject *resultobj = 0;
37987 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37988 int arg2 ;
37989 wxPoint *arg3 = (wxPoint *) 0 ;
37990 int arg4 = (int) 0 ;
37991 int arg5 = (int) 0 ;
37992 int arg6 = (int) wxODDEVEN_RULE ;
37993 void *argp1 = 0 ;
37994 int res1 = 0 ;
37995 int val4 ;
37996 int ecode4 = 0 ;
37997 int val5 ;
37998 int ecode5 = 0 ;
37999 int val6 ;
38000 int ecode6 = 0 ;
38001 PyObject * obj0 = 0 ;
38002 PyObject * obj1 = 0 ;
38003 PyObject * obj2 = 0 ;
38004 PyObject * obj3 = 0 ;
38005 PyObject * obj4 = 0 ;
38006 char * kwnames[] = {
38007 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
38008 };
38009
38010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38012 if (!SWIG_IsOK(res1)) {
38013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38014 }
38015 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38016 {
38017 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38018 if (arg3 == NULL) SWIG_fail;
38019 }
38020 if (obj2) {
38021 ecode4 = SWIG_AsVal_int(obj2, &val4);
38022 if (!SWIG_IsOK(ecode4)) {
38023 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
38024 }
38025 arg4 = static_cast< int >(val4);
38026 }
38027 if (obj3) {
38028 ecode5 = SWIG_AsVal_int(obj3, &val5);
38029 if (!SWIG_IsOK(ecode5)) {
38030 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
38031 }
38032 arg5 = static_cast< int >(val5);
38033 }
38034 if (obj4) {
38035 ecode6 = SWIG_AsVal_int(obj4, &val6);
38036 if (!SWIG_IsOK(ecode6)) {
38037 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
38038 }
38039 arg6 = static_cast< int >(val6);
38040 }
38041 {
38042 PyThreadState* __tstate = wxPyBeginAllowThreads();
38043 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
38044 wxPyEndAllowThreads(__tstate);
38045 if (PyErr_Occurred()) SWIG_fail;
38046 }
38047 resultobj = SWIG_Py_Void();
38048 {
38049 if (arg3) delete [] arg3;
38050 }
38051 return resultobj;
38052fail:
38053 {
38054 if (arg3) delete [] arg3;
38055 }
38056 return NULL;
38057}
38058
38059
38060SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38061 PyObject *resultobj = 0;
38062 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38063 wxString *arg2 = 0 ;
38064 wxRect *arg3 = 0 ;
38065 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
38066 int arg5 = (int) -1 ;
38067 void *argp1 = 0 ;
38068 int res1 = 0 ;
38069 bool temp2 = false ;
38070 wxRect temp3 ;
38071 int val4 ;
38072 int ecode4 = 0 ;
38073 int val5 ;
38074 int ecode5 = 0 ;
38075 PyObject * obj0 = 0 ;
38076 PyObject * obj1 = 0 ;
38077 PyObject * obj2 = 0 ;
38078 PyObject * obj3 = 0 ;
38079 PyObject * obj4 = 0 ;
38080 char * kwnames[] = {
38081 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
38082 };
38083
38084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38086 if (!SWIG_IsOK(res1)) {
38087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38088 }
38089 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38090 {
38091 arg2 = wxString_in_helper(obj1);
38092 if (arg2 == NULL) SWIG_fail;
38093 temp2 = true;
38094 }
38095 {
38096 arg3 = &temp3;
38097 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
38098 }
38099 if (obj3) {
38100 ecode4 = SWIG_AsVal_int(obj3, &val4);
38101 if (!SWIG_IsOK(ecode4)) {
38102 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
38103 }
38104 arg4 = static_cast< int >(val4);
38105 }
38106 if (obj4) {
38107 ecode5 = SWIG_AsVal_int(obj4, &val5);
38108 if (!SWIG_IsOK(ecode5)) {
38109 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
38110 }
38111 arg5 = static_cast< int >(val5);
38112 }
38113 {
38114 PyThreadState* __tstate = wxPyBeginAllowThreads();
38115 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
38116 wxPyEndAllowThreads(__tstate);
38117 if (PyErr_Occurred()) SWIG_fail;
38118 }
38119 resultobj = SWIG_Py_Void();
38120 {
38121 if (temp2)
38122 delete arg2;
38123 }
38124 return resultobj;
38125fail:
38126 {
38127 if (temp2)
38128 delete arg2;
38129 }
38130 return NULL;
38131}
38132
38133
38134SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38135 PyObject *resultobj = 0;
38136 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38137 wxString *arg2 = 0 ;
38138 wxBitmap *arg3 = 0 ;
38139 wxRect *arg4 = 0 ;
38140 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
38141 int arg6 = (int) -1 ;
38142 void *argp1 = 0 ;
38143 int res1 = 0 ;
38144 bool temp2 = false ;
38145 void *argp3 = 0 ;
38146 int res3 = 0 ;
38147 wxRect temp4 ;
38148 int val5 ;
38149 int ecode5 = 0 ;
38150 int val6 ;
38151 int ecode6 = 0 ;
38152 PyObject * obj0 = 0 ;
38153 PyObject * obj1 = 0 ;
38154 PyObject * obj2 = 0 ;
38155 PyObject * obj3 = 0 ;
38156 PyObject * obj4 = 0 ;
38157 PyObject * obj5 = 0 ;
38158 char * kwnames[] = {
38159 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
38160 };
38161
38162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38164 if (!SWIG_IsOK(res1)) {
38165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38166 }
38167 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38168 {
38169 arg2 = wxString_in_helper(obj1);
38170 if (arg2 == NULL) SWIG_fail;
38171 temp2 = true;
38172 }
38173 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
38174 if (!SWIG_IsOK(res3)) {
38175 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
38176 }
38177 if (!argp3) {
38178 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
38179 }
38180 arg3 = reinterpret_cast< wxBitmap * >(argp3);
38181 {
38182 arg4 = &temp4;
38183 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
38184 }
38185 if (obj4) {
38186 ecode5 = SWIG_AsVal_int(obj4, &val5);
38187 if (!SWIG_IsOK(ecode5)) {
38188 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
38189 }
38190 arg5 = static_cast< int >(val5);
38191 }
38192 if (obj5) {
38193 ecode6 = SWIG_AsVal_int(obj5, &val6);
38194 if (!SWIG_IsOK(ecode6)) {
38195 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
38196 }
38197 arg6 = static_cast< int >(val6);
38198 }
38199 {
38200 PyThreadState* __tstate = wxPyBeginAllowThreads();
38201 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
38202 wxPyEndAllowThreads(__tstate);
38203 if (PyErr_Occurred()) SWIG_fail;
38204 }
38205 resultobj = SWIG_Py_Void();
38206 {
38207 if (temp2)
38208 delete arg2;
38209 }
38210 return resultobj;
38211fail:
38212 {
38213 if (temp2)
38214 delete arg2;
38215 }
38216 return NULL;
38217}
38218
38219
38220SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38221 PyObject *resultobj = 0;
38222 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38223 int arg2 ;
38224 wxPoint *arg3 = (wxPoint *) 0 ;
38225 void *argp1 = 0 ;
38226 int res1 = 0 ;
38227 PyObject * obj0 = 0 ;
38228 PyObject * obj1 = 0 ;
38229 char * kwnames[] = {
38230 (char *) "self",(char *) "points", NULL
38231 };
38232
38233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
38234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38235 if (!SWIG_IsOK(res1)) {
38236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38237 }
38238 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38239 {
38240 arg3 = wxPoint_LIST_helper(obj1, &arg2);
38241 if (arg3 == NULL) SWIG_fail;
38242 }
38243 {
38244 PyThreadState* __tstate = wxPyBeginAllowThreads();
38245 (arg1)->DrawSpline(arg2,arg3);
38246 wxPyEndAllowThreads(__tstate);
38247 if (PyErr_Occurred()) SWIG_fail;
38248 }
38249 resultobj = SWIG_Py_Void();
38250 {
38251 if (arg3) delete [] arg3;
38252 }
38253 return resultobj;
38254fail:
38255 {
38256 if (arg3) delete [] arg3;
38257 }
38258 return NULL;
38259}
38260
38261
38262SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38263 PyObject *resultobj = 0;
38264 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38265 void *argp1 = 0 ;
38266 int res1 = 0 ;
38267 PyObject *swig_obj[1] ;
38268
38269 if (!args) SWIG_fail;
38270 swig_obj[0] = args;
38271 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38272 if (!SWIG_IsOK(res1)) {
38273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38274 }
38275 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38276 {
38277 PyThreadState* __tstate = wxPyBeginAllowThreads();
38278 (arg1)->Clear();
38279 wxPyEndAllowThreads(__tstate);
38280 if (PyErr_Occurred()) SWIG_fail;
38281 }
38282 resultobj = SWIG_Py_Void();
38283 return resultobj;
38284fail:
38285 return NULL;
38286}
38287
38288
38289SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38290 PyObject *resultobj = 0;
38291 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38292 wxFont *arg2 = 0 ;
38293 void *argp1 = 0 ;
38294 int res1 = 0 ;
38295 void *argp2 = 0 ;
38296 int res2 = 0 ;
38297 PyObject * obj0 = 0 ;
38298 PyObject * obj1 = 0 ;
38299 char * kwnames[] = {
38300 (char *) "self",(char *) "font", NULL
38301 };
38302
38303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
38304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38305 if (!SWIG_IsOK(res1)) {
38306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38307 }
38308 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38309 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
38310 if (!SWIG_IsOK(res2)) {
38311 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38312 }
38313 if (!argp2) {
38314 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
38315 }
38316 arg2 = reinterpret_cast< wxFont * >(argp2);
38317 {
38318 PyThreadState* __tstate = wxPyBeginAllowThreads();
38319 (arg1)->SetFont((wxFont const &)*arg2);
38320 wxPyEndAllowThreads(__tstate);
38321 if (PyErr_Occurred()) SWIG_fail;
38322 }
38323 resultobj = SWIG_Py_Void();
38324 return resultobj;
38325fail:
38326 return NULL;
38327}
38328
38329
38330SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38331 PyObject *resultobj = 0;
38332 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38333 wxPen *arg2 = 0 ;
38334 void *argp1 = 0 ;
38335 int res1 = 0 ;
38336 void *argp2 = 0 ;
38337 int res2 = 0 ;
38338 PyObject * obj0 = 0 ;
38339 PyObject * obj1 = 0 ;
38340 char * kwnames[] = {
38341 (char *) "self",(char *) "pen", NULL
38342 };
38343
38344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
38345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38346 if (!SWIG_IsOK(res1)) {
38347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38348 }
38349 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38350 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
38351 if (!SWIG_IsOK(res2)) {
38352 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
38353 }
38354 if (!argp2) {
38355 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
38356 }
38357 arg2 = reinterpret_cast< wxPen * >(argp2);
38358 {
38359 PyThreadState* __tstate = wxPyBeginAllowThreads();
38360 (arg1)->SetPen((wxPen const &)*arg2);
38361 wxPyEndAllowThreads(__tstate);
38362 if (PyErr_Occurred()) SWIG_fail;
38363 }
38364 resultobj = SWIG_Py_Void();
38365 return resultobj;
38366fail:
38367 return NULL;
38368}
38369
38370
38371SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38372 PyObject *resultobj = 0;
38373 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38374 wxBrush *arg2 = 0 ;
38375 void *argp1 = 0 ;
38376 int res1 = 0 ;
38377 void *argp2 = 0 ;
38378 int res2 = 0 ;
38379 PyObject * obj0 = 0 ;
38380 PyObject * obj1 = 0 ;
38381 char * kwnames[] = {
38382 (char *) "self",(char *) "brush", NULL
38383 };
38384
38385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
38386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38387 if (!SWIG_IsOK(res1)) {
38388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38389 }
38390 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38391 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38392 if (!SWIG_IsOK(res2)) {
38393 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38394 }
38395 if (!argp2) {
38396 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
38397 }
38398 arg2 = reinterpret_cast< wxBrush * >(argp2);
38399 {
38400 PyThreadState* __tstate = wxPyBeginAllowThreads();
38401 (arg1)->SetBrush((wxBrush const &)*arg2);
38402 wxPyEndAllowThreads(__tstate);
38403 if (PyErr_Occurred()) SWIG_fail;
38404 }
38405 resultobj = SWIG_Py_Void();
38406 return resultobj;
38407fail:
38408 return NULL;
38409}
38410
38411
38412SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38413 PyObject *resultobj = 0;
38414 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38415 wxBrush *arg2 = 0 ;
38416 void *argp1 = 0 ;
38417 int res1 = 0 ;
38418 void *argp2 = 0 ;
38419 int res2 = 0 ;
38420 PyObject * obj0 = 0 ;
38421 PyObject * obj1 = 0 ;
38422 char * kwnames[] = {
38423 (char *) "self",(char *) "brush", NULL
38424 };
38425
38426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38428 if (!SWIG_IsOK(res1)) {
38429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38430 }
38431 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38432 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
38433 if (!SWIG_IsOK(res2)) {
38434 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38435 }
38436 if (!argp2) {
38437 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
38438 }
38439 arg2 = reinterpret_cast< wxBrush * >(argp2);
38440 {
38441 PyThreadState* __tstate = wxPyBeginAllowThreads();
38442 (arg1)->SetBackground((wxBrush const &)*arg2);
38443 wxPyEndAllowThreads(__tstate);
38444 if (PyErr_Occurred()) SWIG_fail;
38445 }
38446 resultobj = SWIG_Py_Void();
38447 return resultobj;
38448fail:
38449 return NULL;
38450}
38451
38452
38453SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38454 PyObject *resultobj = 0;
38455 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38456 int arg2 ;
38457 void *argp1 = 0 ;
38458 int res1 = 0 ;
38459 int val2 ;
38460 int ecode2 = 0 ;
38461 PyObject * obj0 = 0 ;
38462 PyObject * obj1 = 0 ;
38463 char * kwnames[] = {
38464 (char *) "self",(char *) "mode", NULL
38465 };
38466
38467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
38468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38469 if (!SWIG_IsOK(res1)) {
38470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38471 }
38472 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38473 ecode2 = SWIG_AsVal_int(obj1, &val2);
38474 if (!SWIG_IsOK(ecode2)) {
38475 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
38476 }
38477 arg2 = static_cast< int >(val2);
38478 {
38479 PyThreadState* __tstate = wxPyBeginAllowThreads();
38480 (arg1)->SetBackgroundMode(arg2);
38481 wxPyEndAllowThreads(__tstate);
38482 if (PyErr_Occurred()) SWIG_fail;
38483 }
38484 resultobj = SWIG_Py_Void();
38485 return resultobj;
38486fail:
38487 return NULL;
38488}
38489
38490
38491SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38492 PyObject *resultobj = 0;
38493 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38494 wxPalette *arg2 = 0 ;
38495 void *argp1 = 0 ;
38496 int res1 = 0 ;
38497 void *argp2 = 0 ;
38498 int res2 = 0 ;
38499 PyObject * obj0 = 0 ;
38500 PyObject * obj1 = 0 ;
38501 char * kwnames[] = {
38502 (char *) "self",(char *) "palette", NULL
38503 };
38504
38505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
38506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38507 if (!SWIG_IsOK(res1)) {
38508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38509 }
38510 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38511 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
38512 if (!SWIG_IsOK(res2)) {
38513 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38514 }
38515 if (!argp2) {
38516 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
38517 }
38518 arg2 = reinterpret_cast< wxPalette * >(argp2);
38519 {
38520 PyThreadState* __tstate = wxPyBeginAllowThreads();
38521 (arg1)->SetPalette((wxPalette const &)*arg2);
38522 wxPyEndAllowThreads(__tstate);
38523 if (PyErr_Occurred()) SWIG_fail;
38524 }
38525 resultobj = SWIG_Py_Void();
38526 return resultobj;
38527fail:
38528 return NULL;
38529}
38530
38531
38532SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38533 PyObject *resultobj = 0;
38534 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38535 wxColour *arg2 = 0 ;
38536 void *argp1 = 0 ;
38537 int res1 = 0 ;
38538 wxColour temp2 ;
38539 PyObject * obj0 = 0 ;
38540 PyObject * obj1 = 0 ;
38541 char * kwnames[] = {
38542 (char *) "self",(char *) "colour", NULL
38543 };
38544
38545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
38546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38547 if (!SWIG_IsOK(res1)) {
38548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38549 }
38550 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38551 {
38552 arg2 = &temp2;
38553 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38554 }
38555 {
38556 PyThreadState* __tstate = wxPyBeginAllowThreads();
38557 (arg1)->SetTextForeground((wxColour const &)*arg2);
38558 wxPyEndAllowThreads(__tstate);
38559 if (PyErr_Occurred()) SWIG_fail;
38560 }
38561 resultobj = SWIG_Py_Void();
38562 return resultobj;
38563fail:
38564 return NULL;
38565}
38566
38567
38568SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38569 PyObject *resultobj = 0;
38570 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38571 wxColour *arg2 = 0 ;
38572 void *argp1 = 0 ;
38573 int res1 = 0 ;
38574 wxColour temp2 ;
38575 PyObject * obj0 = 0 ;
38576 PyObject * obj1 = 0 ;
38577 char * kwnames[] = {
38578 (char *) "self",(char *) "colour", NULL
38579 };
38580
38581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38583 if (!SWIG_IsOK(res1)) {
38584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38585 }
38586 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38587 {
38588 arg2 = &temp2;
38589 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
38590 }
38591 {
38592 PyThreadState* __tstate = wxPyBeginAllowThreads();
38593 (arg1)->SetTextBackground((wxColour const &)*arg2);
38594 wxPyEndAllowThreads(__tstate);
38595 if (PyErr_Occurred()) SWIG_fail;
38596 }
38597 resultobj = SWIG_Py_Void();
38598 return resultobj;
38599fail:
38600 return NULL;
38601}
38602
38603
38604SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38605 PyObject *resultobj = 0;
38606 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
38607 int arg2 ;
38608 void *argp1 = 0 ;
38609 int res1 = 0 ;
38610 int val2 ;
38611 int ecode2 = 0 ;
38612 PyObject * obj0 = 0 ;
38613 PyObject * obj1 = 0 ;
38614 char * kwnames[] = {
38615 (char *) "self",(char *) "function", NULL
38616 };
38617
38618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
38619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
38620 if (!SWIG_IsOK(res1)) {
38621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
38622 }
38623 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
38624 ecode2 = SWIG_AsVal_int(obj1, &val2);
38625 if (!SWIG_IsOK(ecode2)) {
38626 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
38627 }
38628 arg2 = static_cast< int >(val2);
38629 {
38630 PyThreadState* __tstate = wxPyBeginAllowThreads();
38631 (arg1)->SetLogicalFunction(arg2);
38632 wxPyEndAllowThreads(__tstate);
38633 if (PyErr_Occurred()) SWIG_fail;
38634 }
38635 resultobj = SWIG_Py_Void();
38636 return resultobj;
38637fail:
38638 return NULL;
38639}
38640
38641
38642SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38643 PyObject *obj;
38644 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38645 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
38646 return SWIG_Py_Void();
38647}
38648
38649SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38650 return SWIG_Python_InitShadowInstance(args);
38651}
38652
38653static PyMethodDef SwigMethods[] = {
38654 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
38655 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
38656 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
38657 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
38658 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
38659 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
38660 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
38661 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38662 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
38663 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
38664 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
38665 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
fc46b7f3 38666 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
b39fe951 38667 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
27e45892
RD
38668 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38669 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38670 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38671 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
38672 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
38673 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38674 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
fc46b7f3 38675 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38676 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
38677 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
38678 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
38679 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
38680 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
38681 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
38682 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
38683 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
b39fe951 38684 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
27e45892
RD
38685 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
38686 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
38687 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
38688 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
38689 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
38690 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
38691 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
38692 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
38693 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
b39fe951 38694 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
27e45892
RD
38695 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
38696 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38697 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
38698 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38699 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38700 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38701 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
38702 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
38703 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38704 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38705 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
38706 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
38707 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
38708 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38709 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
38710 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38711 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38712 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
38713 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
38714 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
38715 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
38716 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
b39fe951 38717 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
27e45892
RD
38718 { (char *)"Brush_MacGetTheme", (PyCFunction)_wrap_Brush_MacGetTheme, METH_O, NULL},
38719 { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS, NULL},
38720 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
38721 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
38722 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38723 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
38724 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38725 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38726 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
38727 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
38728 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38729 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
27e45892
RD
38730 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
38731 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
38732 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
38733 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
38734 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
38735 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
38736 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
38737 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
38738 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38739 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
38740 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
38741 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
38742 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38743 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38744 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38745 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38746 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
8f514ab4
RD
38747 { (char *)"Bitmap_CopyFromBuffer", (PyCFunction) _wrap_Bitmap_CopyFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38748 { (char *)"Bitmap_CopyFromBufferRGBA", (PyCFunction) _wrap_Bitmap_CopyFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38749 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38750 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38751 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
38752 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
38753 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
38754 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
38755 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
38756 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
38757 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
38758 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
38759 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
38760 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
38761 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
38762 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
38763 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
38764 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
38765 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
38766 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
38767 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
38768 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
38769 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
38770 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
38771 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38772 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
38773 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
38774 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38775 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38776 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38777 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38778 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38779 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
38780 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
38781 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
38782 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
38783 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
38784 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
38785 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
38786 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
38787 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
38788 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
38789 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
38790 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
38791 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
38792 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
38793 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
38794 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38795 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
38796 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
38797 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
38798 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38799 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
38800 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
38801 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
27e45892
RD
38802 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
38803 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
38804 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
38805 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
38806 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
38807 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
38808 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
38809 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38810 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38811 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38812 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
27e45892
RD
38813 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
38814 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
38815 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
38816 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
38817 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38818 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
38819 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38820 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
38821 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
38822 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
38823 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
38824 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
38825 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
38826 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
38827 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
38828 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
38829 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
38830 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
38831 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
38832 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38833 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38834 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
38835 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38836 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
38837 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38838 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
38839 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
38840 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
38841 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
38842 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
38843 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38844 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
27e45892
RD
38845 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
38846 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
38847 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
38848 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38849 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38850 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
38851 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
38852 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
38853 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
38854 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
38855 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38856 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
38857 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
38858 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
38859 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
38860 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
38861 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38862 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
f5263701 38863 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
38864 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
38865 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
38866 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38867 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
38868 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
38869 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38870 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
38871 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
38872 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38873 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
38874 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38875 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
38876 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
38877 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
38878 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
38879 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
38880 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
38881 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
38882 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
38883 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
38884 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
38885 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
38886 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
38887 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
38888 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
38889 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
38890 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
38891 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
38892 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
38893 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
38894 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
38895 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
38896 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
38897 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
38898 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
38899 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
38900 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
38901 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
38902 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
38903 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
38904 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38905 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38906 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38907 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38908 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38909 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38910 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38911 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38912 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
38913 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
38914 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
38915 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
38916 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
38917 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
38918 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
38919 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
38920 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
38921 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
38922 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
38923 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
38924 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
38925 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
38926 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
38927 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
38928 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38929 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38930 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
38931 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
38932 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
38933 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38934 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38935 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
38936 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38937 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
38938 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
38939 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38940 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
38941 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
38942 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38943 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
38944 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
38945 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
38946 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
38947 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
38948 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
38949 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
38950 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38951 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
38952 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
38953 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38954 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 38955 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
27e45892 38956 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38957 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38958 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
38959 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
38960 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
38961 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
38962 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
38963 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
38964 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
38965 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
38966 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
38967 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
38968 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
38969 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
38970 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
38971 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38972 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38973 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38974 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38975 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38976 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38977 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38978 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38979 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38980 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
38981 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
38982 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
38983 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
38984 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
38985 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
38986 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
38987 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
38988 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38989 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
38990 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
38991 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
38992 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
38993 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38994 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
38995 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
38996 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
38997 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
38998 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
38999 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
39000 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
39001 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
39002 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
39003 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
39004 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
39005 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
39006 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
39007 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
39008 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
39009 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
39010 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
39011 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
39012 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
39013 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
39014 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
39015 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
39016 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
39017 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
39018 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
39019 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
39020 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
39021 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b 39022 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
39023 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
39024 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39025 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
39026 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39027 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
39028 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
39029 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
39030 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
39031 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
fc46b7f3
RD
39032 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
39033 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
39034 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
39035 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
39036 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
39037 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
39038 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
1bd55598
RD
39039 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
39040 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
39041 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
39042 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
39043 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
39044 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
39045 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
39046 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
39047 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
39048 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
39049 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
39050 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
39051 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
39052 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39053 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
39054 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
39055 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
39056 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39057 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
39058 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39059 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
39060 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39061 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
39062 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39063 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
39064 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
39065 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
39066 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39067 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39068 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39069 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39070 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39071 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39072 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39073 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39074 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39075 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39076 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39077 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39078 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
39079 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39080 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39081 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39082 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39083 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39084 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39085 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39086 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39087 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39088 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
39089 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
8f514ab4 39090 { (char *)"DC_GetAsBitmap", (PyCFunction) _wrap_DC_GetAsBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
39091 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39092 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39093 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
39094 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
39095 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39096 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
39097 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39098 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39099 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
39100 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
39101 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
39102 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
39103 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
39104 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
39105 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39106 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39107 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39108 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39109 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
39110 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39111 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
39112 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
39113 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
39114 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
39115 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
39116 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39117 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39118 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39119 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
39120 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
39121 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
39122 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
39123 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
39124 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
39125 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
39126 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
39127 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
39128 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
39129 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
39130 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
39131 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
39132 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
39133 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
39134 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
39135 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
b39fe951 39136 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
1bd55598
RD
39137 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
39138 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
39139 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
39140 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
39141 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
39142 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
39143 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
39144 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
39145 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39146 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
39147 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
39148 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
39149 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
39150 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
39151 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
39152 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
39153 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
39154 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
39155 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39156 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
39157 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
39158 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
39159 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39160 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
39161 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
39162 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39163 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
39164 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
39165 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39166 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
39167 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
39168 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
39169 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
39170 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
39171 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
b39fe951
RD
39172 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
39173 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
39174 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
39175 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
39176 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
39177 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
39178 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
39179 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
39180 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
70d7cb34
RD
39181 { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39182 { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL},
39183 { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL},
39184 { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL},
39185 { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39186 { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL},
39187 { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL},
39188 { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL},
39189 { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL},
39190 { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL},
39191 { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL},
39192 { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL},
39193 { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL},
39194 { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL},
39195 { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL},
39196 { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL},
1bd55598
RD
39197 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
39198 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
39199 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
39200 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
39201 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
39202 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
72ef6efb
RD
39203 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
39204 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
39205 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
1bd55598
RD
39206 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
39207 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
39208 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
39209 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39210 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
39211 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
26c4d26f
RD
39212 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
39213 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
39214 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
39215 { (char *)"MemoryDC_SelectObjectAsSource", (PyCFunction) _wrap_MemoryDC_SelectObjectAsSource, METH_VARARGS | METH_KEYWORDS, NULL},
39216 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
39217 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
24f6c4e8
RD
39218 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
39219 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
39220 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
b6df5cf9
RD
39221 { (char *)"BufferedDC_SetStyle", (PyCFunction) _wrap_BufferedDC_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
39222 { (char *)"BufferedDC_GetStyle", (PyCFunction)_wrap_BufferedDC_GetStyle, METH_O, NULL},
24f6c4e8
RD
39223 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
39224 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
39225 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39226 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
39227 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
39228 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
39229 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
39230 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
8e99bda9 39231 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
39232 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
39233 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
39234 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
39235 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
39236 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
39237 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
39238 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
39239 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
39240 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
39241 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
39242 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
39243 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
b39fe951 39244 { (char *)"MetaFile_IsOk", (PyCFunction)_wrap_MetaFile_IsOk, METH_O, NULL},
1bd55598
RD
39245 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
39246 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
39247 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
39248 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
39249 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
39250 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
39251 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
39252 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
39253 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
39254 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
39255 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
39256 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
39257 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
70d7cb34
RD
39258 { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL},
39259 { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL},
39260 { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL},
39261 { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL},
39262 { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL},
39263 { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL},
39264 { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL},
39265 { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL},
39266 { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL},
39267 { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL},
39268 { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL},
39269 { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL},
39270 { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL},
39271 { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL},
39272 { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL},
39273 { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL},
39274 { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL},
39275 { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL},
8f514ab4 39276 { (char *)"new_GraphicsMatrix", (PyCFunction)_wrap_new_GraphicsMatrix, METH_NOARGS, NULL},
5c8c7dd3
RD
39277 { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL},
39278 { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL},
5c8c7dd3 39279 { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL},
248802d0 39280 { (char *)"GraphicsMatrix_Get", (PyCFunction)_wrap_GraphicsMatrix_Get, METH_O, NULL},
5c8c7dd3
RD
39281 { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL},
39282 { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
39283 { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL},
39284 { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
39285 { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
39286 { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
39287 { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39288 { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL},
39289 { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL},
39290 { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL},
8f514ab4
RD
39291 { (char *)"GraphicsMatrix_swiginit", GraphicsMatrix_swiginit, METH_VARARGS, NULL},
39292 { (char *)"new_GraphicsPath", (PyCFunction)_wrap_new_GraphicsPath, METH_NOARGS, NULL},
72ef6efb 39293 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
70d7cb34
RD
39294 { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL},
39295 { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL},
39296 { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL},
39297 { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39298 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
39299 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
70d7cb34 39300 { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL},
72ef6efb
RD
39301 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39302 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39303 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39304 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34
RD
39305 { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39306 { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39307 { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL},
39308 { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL},
39309 { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL},
39310 { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL},
39311 { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL},
72ef6efb 39312 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
8f514ab4 39313 { (char *)"GraphicsPath_swiginit", GraphicsPath_swiginit, METH_VARARGS, NULL},
72ef6efb 39314 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
0a27f394 39315 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
f89238b9 39316 { (char *)"GraphicsContext_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsContext_CreateMeasuringContext, METH_NOARGS, NULL},
0a27f394 39317 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34 39318 { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb 39319 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
70d7cb34
RD
39320 { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39321 { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39322 { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39323 { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39324 { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39325 { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39326 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
39327 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
0a27f394 39328 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb 39329 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
0a27f394
RD
39330 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
39331 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
c8aaaf9e
RD
39332 { (char *)"GraphicsContext_GetLogicalFunction", (PyCFunction)_wrap_GraphicsContext_GetLogicalFunction, METH_O, NULL},
39333 { (char *)"GraphicsContext_SetLogicalFunction", (PyCFunction) _wrap_GraphicsContext_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39334 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
39335 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
39336 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
5c8c7dd3
RD
39337 { (char *)"GraphicsContext_ConcatTransform", (PyCFunction) _wrap_GraphicsContext_ConcatTransform, METH_VARARGS | METH_KEYWORDS, NULL},
39338 { (char *)"GraphicsContext_SetTransform", (PyCFunction) _wrap_GraphicsContext_SetTransform, METH_VARARGS | METH_KEYWORDS, NULL},
39339 { (char *)"GraphicsContext_GetTransform", (PyCFunction)_wrap_GraphicsContext_GetTransform, METH_O, NULL},
70d7cb34
RD
39340 { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL},
39341 { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL},
39342 { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL},
72ef6efb
RD
39343 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
39344 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
39345 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951
RD
39346 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39347 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
be68621e 39348 { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39349 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
39350 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
39351 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39352 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39353 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 39354 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
f8eb59b9 39355 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39356 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39357 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39358 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39359 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
70d7cb34 39360 { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL},
72ef6efb 39361 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
70d7cb34
RD
39362 { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL},
39363 { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL},
39364 { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL},
f89238b9 39365 { (char *)"GraphicsRenderer_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsRenderer_CreateMeasuringContext, METH_O, NULL},
70d7cb34
RD
39366 { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL},
39367 { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
39368 { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL},
39369 { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
39370 { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
39371 { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39372 { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39373 { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39374 { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39375 { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL},
48a0c021 39376 { (char *)"new_GCDC", _wrap_new_GCDC, METH_VARARGS, NULL},
72ef6efb 39377 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
0a27f394
RD
39378 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
39379 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39380 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
39381 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
b39fe951
RD
39382 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
39383 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
39384 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
39385 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
39386 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
39387 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
39388 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
39389 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
39390 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
39391 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
1bd55598
RD
39392 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
39393 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
39394 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
39395 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
39396 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39397 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39398 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39399 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
39400 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
39401 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
39402 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
39403 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
39404 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
39405 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
39406 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
da91cb0f
RD
39407 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
39408 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
39409 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
39410 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
39411 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39412 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
39413 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
39414 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39415 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39416 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
39417 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
39418 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
39419 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
39420 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
39421 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
1bd55598 39422 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
da91cb0f 39423 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 39424 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 39425 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
1bd55598 39426 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
da91cb0f 39427 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 39428 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 39429 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
da91cb0f
RD
39430 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
39431 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
39432 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
39433 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
1bd55598
RD
39434 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
39435 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
39436 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
39437 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
39438 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
39439 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
39440 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
39441 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
da91cb0f
RD
39442 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
39443 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
39444 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
39445 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
1bd55598
RD
39446 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
39447 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
39448 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
39449 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
39450 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
39451 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
39452 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
39453 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39454 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
39455 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39456 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
39457 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39458 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
39459 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39460 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
39461 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
39462 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
39463 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
39464 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
39465 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
39466 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
39467 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
39468 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
33d6fd3b
RD
39469 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
39470 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
39471 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
39472 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
39473 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
39474 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
39475 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
39476 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
39477 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
39478 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
39479 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
39480 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
39481 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
39482 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
39483 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
39484 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
39485 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
39486 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
1bd55598
RD
39487 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
39488 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
39489 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
39490 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
39491 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
39492 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
39493 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
39494 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
33d6fd3b
RD
39495 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
39496 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
39497 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
39498 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
39499 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
39500 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
39501 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
2131d850
RD
39502 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
39503 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
39504 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
39505 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
39506 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
39507 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
39508 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
39509 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
39510 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
39511 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
27e45892
RD
39512 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
39513 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
39514 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
39515 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
39516 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
39517 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
39518 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
39519 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
39520 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
39521 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
72ef6efb
RD
39522 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39523 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
39524 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
39525 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
27e45892
RD
39526 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39527 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39528 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
39529 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
39530 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
39531 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
39532 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
39533 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39534 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
39535 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39536 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
39537 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39538 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
39539 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39540 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
39541 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
39542 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
39543 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39544 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39545 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39546 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39547 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39548 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39549 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
39550 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
39551 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39552 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
39553 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
39554 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
39555 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
39556 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
39557 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
39558 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39559 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
39560 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39561 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
39562 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39563 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
39564 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
39565 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
39566 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
39567 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39568 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
39569 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
39570 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
39571 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
39572 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
39573 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
39574 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39575 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
39576 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
39577 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
39578 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
39579 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
39580 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
39581 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
1bd55598
RD
39582 { NULL, NULL, 0, NULL }
39583};
39584
39585
39586/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
39587
72ef6efb
RD
39588static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
39589 return (void *)((wxClientDC *) ((wxPaintDC *) x));
39590}
8e99bda9
RD
39591static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
39592 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
39593}
39594static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
39595 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
39596}
26c4d26f
RD
39597static void *_p_wxBufferedDCTo_p_wxWindowDC(void *x) {
39598 return (void *)((wxWindowDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
39599}
39600static void *_p_wxMemoryDCTo_p_wxWindowDC(void *x) {
39601 return (void *)((wxWindowDC *) ((wxMemoryDC *) x));
39602}
72ef6efb
RD
39603static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
39604 return (void *)((wxWindowDC *) ((wxClientDC *) x));
39605}
39606static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
39607 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
39608}
26c4d26f
RD
39609static void *_p_wxBufferedPaintDCTo_p_wxWindowDC(void *x) {
39610 return (void *)((wxWindowDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
39611}
fc46b7f3
RD
39612static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
39613 return (void *)((wxLocale *) ((wxPyLocale *) x));
39614}
70d7cb34
RD
39615static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) {
39616 return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x));
39617}
39618static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) {
39619 return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x));
39620}
39621static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) {
39622 return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x));
39623}
39624static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) {
39625 return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x));
39626}
39627static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) {
39628 return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x));
39629}
39630static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) {
39631 return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x));
39632}
1bd55598
RD
39633static void *_p_wxIconTo_p_wxGDIObject(void *x) {
39634 return (void *)((wxGDIObject *) ((wxIcon *) x));
39635}
39636static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
39637 return (void *)((wxGDIObject *) ((wxPalette *) x));
39638}
39639static void *_p_wxPenTo_p_wxGDIObject(void *x) {
39640 return (void *)((wxGDIObject *) ((wxPen *) x));
39641}
39642static void *_p_wxFontTo_p_wxGDIObject(void *x) {
39643 return (void *)((wxGDIObject *) ((wxFont *) x));
39644}
39645static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
39646 return (void *)((wxGDIObject *) ((wxCursor *) x));
39647}
39648static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
39649 return (void *)((wxGDIObject *) ((wxBitmap *) x));
39650}
39651static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
39652 return (void *)((wxGDIObject *) ((wxRegion *) x));
39653}
39654static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
39655 return (void *)((wxGDIObject *) ((wxBrush *) x));
39656}
72ef6efb
RD
39657static void *_p_wxGCDCTo_p_wxDC(void *x) {
39658 return (void *)((wxDC *) ((wxGCDC *) x));
39659}
1bd55598
RD
39660static void *_p_wxScreenDCTo_p_wxDC(void *x) {
39661 return (void *)((wxDC *) ((wxScreenDC *) x));
39662}
24f6c4e8 39663static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
26c4d26f 39664 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
24f6c4e8 39665}
1bd55598
RD
39666static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
39667 return (void *)((wxDC *) ((wxMirrorDC *) x));
39668}
1bd55598
RD
39669static void *_p_wxWindowDCTo_p_wxDC(void *x) {
39670 return (void *)((wxDC *) ((wxWindowDC *) x));
39671}
26c4d26f
RD
39672static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
39673 return (void *)((wxDC *) (wxWindowDC *) ((wxMemoryDC *) x));
39674}
1bd55598
RD
39675static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
39676 return (void *)((wxDC *) ((wxMetaFileDC *) x));
39677}
1bd55598 39678static void *_p_wxClientDCTo_p_wxDC(void *x) {
72ef6efb 39679 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
1bd55598
RD
39680}
39681static void *_p_wxPaintDCTo_p_wxDC(void *x) {
72ef6efb 39682 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
1bd55598 39683}
24f6c4e8 39684static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
26c4d26f 39685 return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
24f6c4e8
RD
39686}
39687static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
39688 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
39689}
1bd55598
RD
39690static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
39691 return (void *)((wxDC *) ((wxPostScriptDC *) x));
39692}
39693static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
39694 return (void *)((wxDC *) ((wxPrinterDC *) x));
39695}
da91cb0f
RD
39696static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
39697 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
39698}
39699static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
39700 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
39701}
39702static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
39703 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
39704}
1bd55598
RD
39705static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
39706 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
39707}
39708static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
39709 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
39710}
39711static void *_p_wxPenTo_p_wxObject(void *x) {
39712 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
39713}
39714static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
39715 return (void *)((wxObject *) ((wxRegionIterator *) x));
39716}
1bd55598
RD
39717static void *_p_wxSizerItemTo_p_wxObject(void *x) {
39718 return (void *)((wxObject *) ((wxSizerItem *) x));
39719}
34e0a3bb
RD
39720static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
39721 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
39722}
1bd55598
RD
39723static void *_p_wxScrollEventTo_p_wxObject(void *x) {
39724 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
39725}
39726static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
39727 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
39728}
39729static void *_p_wxIconTo_p_wxObject(void *x) {
39730 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
39731}
39732static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
39733 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
39734}
39735static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
39736 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
39737}
39738static void *_p_wxSizerTo_p_wxObject(void *x) {
39739 return (void *)((wxObject *) ((wxSizer *) x));
39740}
39741static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
39742 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
39743}
39744static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
39745 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
39746}
1bd55598
RD
39747static void *_p_wxEventTo_p_wxObject(void *x) {
39748 return (void *)((wxObject *) ((wxEvent *) x));
39749}
39750static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
39751 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
39752}
39753static void *_p_wxGridSizerTo_p_wxObject(void *x) {
39754 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
39755}
39756static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
39757 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
39758}
27e45892
RD
39759static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
39760 return (void *)((wxObject *) ((wxPseudoDC *) x));
39761}
2131d850
RD
39762static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
39763 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
39764}
1bd55598
RD
39765static void *_p_wxPaintEventTo_p_wxObject(void *x) {
39766 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
39767}
39768static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
39769 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
39770}
39771static void *_p_wxDCTo_p_wxObject(void *x) {
39772 return (void *)((wxObject *) ((wxDC *) x));
39773}
39774static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
39775 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
39776}
39777static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
39778 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
39779}
39780static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
39781 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
39782}
39783static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
39784 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
39785}
39786static void *_p_wxControlTo_p_wxObject(void *x) {
39787 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
39788}
70d7cb34
RD
39789static void *_p_wxGraphicsPenTo_p_wxObject(void *x) {
39790 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x));
39791}
1bd55598
RD
39792static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
39793 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
39794}
39795static void *_p_wxClientDCTo_p_wxObject(void *x) {
72ef6efb 39796 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
1bd55598
RD
39797}
39798static void *_p_wxFSFileTo_p_wxObject(void *x) {
39799 return (void *)((wxObject *) ((wxFSFile *) x));
39800}
39801static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
26c4d26f 39802 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxMemoryDC *) x));
1bd55598
RD
39803}
39804static void *_p_wxRegionTo_p_wxObject(void *x) {
39805 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
39806}
39807static void *_p_wxPySizerTo_p_wxObject(void *x) {
39808 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
39809}
39810static void *_p_wxWindowDCTo_p_wxObject(void *x) {
39811 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
39812}
39813static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
39814 return (void *)((wxObject *) ((wxGDIObject *) x));
39815}
70d7cb34
RD
39816static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) {
39817 return (void *)((wxObject *) ((wxGraphicsObject *) x));
39818}
39819static void *_p_wxGraphicsPathTo_p_wxObject(void *x) {
39820 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x));
39821}
1bd55598
RD
39822static void *_p_wxEffectsTo_p_wxObject(void *x) {
39823 return (void *)((wxObject *) ((wxEffects *) x));
39824}
39825static void *_p_wxPyEventTo_p_wxObject(void *x) {
39826 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
39827}
39828static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
39829 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
39830}
39831static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
39832 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
39833}
70d7cb34
RD
39834static void *_p_wxGraphicsContextTo_p_wxObject(void *x) {
39835 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x));
39836}
1bd55598
RD
39837static void *_p_wxShowEventTo_p_wxObject(void *x) {
39838 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
39839}
39840static void *_p_wxMenuItemTo_p_wxObject(void *x) {
39841 return (void *)((wxObject *) ((wxMenuItem *) x));
39842}
39843static void *_p_wxDateEventTo_p_wxObject(void *x) {
39844 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
39845}
39846static void *_p_wxIdleEventTo_p_wxObject(void *x) {
39847 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
39848}
39849static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
39850 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
39851}
39852static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
39853 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
39854}
39855static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
39856 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
39857}
39858static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
39859 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
39860}
39861static void *_p_wxSizeEventTo_p_wxObject(void *x) {
39862 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
39863}
39864static void *_p_wxMoveEventTo_p_wxObject(void *x) {
39865 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
39866}
39867static void *_p_wxActivateEventTo_p_wxObject(void *x) {
39868 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
39869}
39870static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
39871 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
39872}
39873static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
39874 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
39875}
39876static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
39877 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
39878}
39879static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
39880 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
39881}
39882static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
39883 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
39884}
39885static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
39886 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
39887}
39888static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
39889 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
39890}
39891static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
39892 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
39893}
39894static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
39895 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
39896}
39897static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
39898 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
39899}
39900static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
39901 return (void *)((wxObject *) ((wxImageHandler *) x));
39902}
39903static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
39904 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
39905}
39906static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
39907 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
39908}
580080c5
RD
39909static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
39910 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
39911}
1bd55598
RD
39912static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
39913 return (void *)((wxObject *) ((wxEvtHandler *) x));
39914}
34e0a3bb
RD
39915static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
39916 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
39917}
24f6c4e8
RD
39918static void *_p_wxPaintDCTo_p_wxObject(void *x) {
39919 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
39920}
1bd55598 39921static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
26c4d26f 39922 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
1bd55598 39923}
24f6c4e8
RD
39924static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
39925 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
1bd55598
RD
39926}
39927static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
39928 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
39929}
39930static void *_p_wxScreenDCTo_p_wxObject(void *x) {
39931 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
39932}
1bd55598
RD
39933static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
39934 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
39935}
580080c5
RD
39936static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
39937 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
39938}
1bd55598
RD
39939static void *_p_wxImageTo_p_wxObject(void *x) {
39940 return (void *)((wxObject *) ((wxImage *) x));
39941}
39942static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
39943 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
39944}
70d7cb34
RD
39945static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) {
39946 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x));
39947}
39948static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) {
39949 return (void *)((wxObject *) ((wxGraphicsRenderer *) x));
39950}
1bd55598
RD
39951static void *_p_wxPaletteTo_p_wxObject(void *x) {
39952 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
39953}
39954static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
26c4d26f 39955 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
1bd55598
RD
39956}
39957static void *_p_wxImageListTo_p_wxObject(void *x) {
39958 return (void *)((wxObject *) ((wxImageList *) x));
39959}
72ef6efb
RD
39960static void *_p_wxGCDCTo_p_wxObject(void *x) {
39961 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
39962}
1bd55598
RD
39963static void *_p_wxCursorTo_p_wxObject(void *x) {
39964 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
39965}
39966static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
39967 return (void *)((wxObject *) ((wxEncodingConverter *) x));
39968}
39969static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
39970 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
39971}
70d7cb34
RD
39972static void *_p_wxGraphicsFontTo_p_wxObject(void *x) {
39973 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x));
39974}
1bd55598
RD
39975static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
39976 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
39977}
39978static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
39979 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
39980}
39981static void *_p_wxKeyEventTo_p_wxObject(void *x) {
39982 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
39983}
39984static void *_p_wxWindowTo_p_wxObject(void *x) {
39985 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
39986}
39987static void *_p_wxMenuTo_p_wxObject(void *x) {
39988 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
39989}
39990static void *_p_wxMenuBarTo_p_wxObject(void *x) {
39991 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
39992}
39993static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
39994 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
39995}
1bd55598
RD
39996static void *_p_wxFileSystemTo_p_wxObject(void *x) {
39997 return (void *)((wxObject *) ((wxFileSystem *) x));
39998}
39999static void *_p_wxBitmapTo_p_wxObject(void *x) {
40000 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
40001}
40002static void *_p_wxMaskTo_p_wxObject(void *x) {
40003 return (void *)((wxObject *) ((wxMask *) x));
40004}
70d7cb34
RD
40005static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) {
40006 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x));
40007}
1bd55598
RD
40008static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
40009 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
40010}
40011static void *_p_wxMenuEventTo_p_wxObject(void *x) {
40012 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
40013}
40014static void *_p_wxPyAppTo_p_wxObject(void *x) {
40015 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
40016}
40017static void *_p_wxCloseEventTo_p_wxObject(void *x) {
40018 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
40019}
40020static void *_p_wxMouseEventTo_p_wxObject(void *x) {
40021 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
40022}
40023static void *_p_wxEraseEventTo_p_wxObject(void *x) {
40024 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
40025}
40026static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
40027 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
40028}
40029static void *_p_wxCommandEventTo_p_wxObject(void *x) {
40030 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
40031}
40032static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
40033 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
40034}
40035static void *_p_wxFocusEventTo_p_wxObject(void *x) {
40036 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
40037}
40038static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
40039 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
40040}
40041static void *_p_wxFontTo_p_wxObject(void *x) {
40042 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
40043}
40044static void *_p_wxBrushTo_p_wxObject(void *x) {
40045 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
40046}
40047static void *_p_wxMetaFileTo_p_wxObject(void *x) {
40048 return (void *)((wxObject *) ((wxMetaFile *) x));
40049}
40050static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
40051 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
40052}
40053static void *_p_wxColourTo_p_wxObject(void *x) {
40054 return (void *)((wxObject *) ((wxColour *) x));
40055}
1bd55598
RD
40056static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
40057 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
40058}
40059static void *_p_wxValidatorTo_p_wxObject(void *x) {
40060 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
40061}
40062static void *_p_wxControlTo_p_wxWindow(void *x) {
40063 return (void *)((wxWindow *) ((wxControl *) x));
40064}
40065static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
40066 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
40067}
40068static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
40069 return (void *)((wxWindow *) ((wxMenuBar *) x));
40070}
fc46b7f3
RD
40071static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
40072 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
40073}
40074static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
40075 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
40076}
40077static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
1bd55598 40078static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
72ef6efb 40079static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
1bd55598
RD
40080static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
40081static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
40082static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
40083static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
40084static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
0a27f394 40085static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
fc46b7f3
RD
40086static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
40087static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
24f6c4e8 40088static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
1bd55598
RD
40089static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
40090static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
40091static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
40092static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
40093static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
fc46b7f3 40094static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
1bd55598
RD
40095static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
40096static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
40097static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
40098static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
40099static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
70d7cb34
RD
40100static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0};
40101static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0};
b39fe951 40102static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
70d7cb34
RD
40103static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0};
40104static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0};
1bd55598
RD
40105static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
40106static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
40107static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
40108static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
40109static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
40110static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
40111static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
72ef6efb 40112static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
da91cb0f 40113static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
1bd55598 40114static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
70d7cb34 40115static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0};
72ef6efb 40116static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
70d7cb34
RD
40117static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0};
40118static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0};
40119static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0};
72ef6efb 40120static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
70d7cb34
RD
40121static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0};
40122static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0};
33d6fd3b 40123static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
1bd55598
RD
40124static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
40125static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
40126static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
40127static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
40128static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
40129static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
40130static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
40131static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
40132static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
40133static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
40134static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
40135static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
40136static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
40137static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
fc46b7f3
RD
40138static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
40139static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
1bd55598
RD
40140static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
40141static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
1bd55598 40142static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
34e0a3bb 40143static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
1bd55598
RD
40144static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
40145static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
40146static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
40147static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
40148static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
40149static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
40150static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
40151static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
40152static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
40153static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
40154static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
40155static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
2131d850 40156static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
1bd55598
RD
40157static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
40158static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
40159static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
40160static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
40161static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
40162static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
40163static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
40164static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
40165static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
40166static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
40167static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
40168static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
40169static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
40170static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
40171static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
40172static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
40173static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
40174static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
40175static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
40176static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
40177static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
40178static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
40179static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
1bd55598 40180static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
580080c5 40181static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
70d7cb34
RD
40182static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
40183static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
40184static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
40185static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
40186static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
40187static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
24f6c4e8 40188static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
72ef6efb 40189static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
27e45892 40190static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
2131d850 40191static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
1bd55598
RD
40192static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
40193static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
40194static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
34e0a3bb 40195static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
1bd55598 40196static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
580080c5 40197static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
1bd55598
RD
40198static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
40199static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
40200static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
40201static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
40202static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
40203static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
40204static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
40205static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
40206static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
40207static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
40208static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
40209static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
40210static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
40211static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
40212static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
40213static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
40214static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
40215static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
40216static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
40217static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
b39fe951 40218static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
1bd55598
RD
40219static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
40220static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
40221static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
40222static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
40223static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
fc46b7f3 40224static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
1bd55598 40225static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
72ef6efb 40226static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
1bd55598
RD
40227static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
40228static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
40229static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
27e45892 40230static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
1bd55598 40231static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
fc46b7f3 40232static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
1bd55598 40233static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
4fe9ce47 40234static swig_type_info _swigt__p_wxRect2D = {"_p_wxRect2D", "wxRect2D *", 0, 0, (void*)0, 0};
1bd55598
RD
40235static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
40236static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
40237static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
40238static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
40239static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
40240static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
40241static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
da91cb0f 40242static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
1bd55598
RD
40243static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
40244static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
40245static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
40246
40247static swig_type_info *swig_type_initial[] = {
fc46b7f3 40248 &_swigt__p_buffer,
1bd55598
RD
40249 &_swigt__p_char,
40250 &_swigt__p_double,
40251 &_swigt__p_form_ops_t,
40252 &_swigt__p_int,
40253 &_swigt__p_unsigned_char,
40254 &_swigt__p_unsigned_int,
40255 &_swigt__p_unsigned_long,
0a27f394 40256 &_swigt__p_void,
1bd55598
RD
40257 &_swigt__p_wxANIHandler,
40258 &_swigt__p_wxAcceleratorTable,
40259 &_swigt__p_wxActivateEvent,
fc46b7f3
RD
40260 &_swigt__p_wxAlphaPixelData,
40261 &_swigt__p_wxAlphaPixelData_Accessor,
24f6c4e8 40262 &_swigt__p_wxAutoBufferedPaintDC,
1bd55598
RD
40263 &_swigt__p_wxBMPHandler,
40264 &_swigt__p_wxBitmap,
40265 &_swigt__p_wxBoxSizer,
40266 &_swigt__p_wxBrush,
40267 &_swigt__p_wxBrushList,
40268 &_swigt__p_wxBufferedDC,
40269 &_swigt__p_wxBufferedPaintDC,
40270 &_swigt__p_wxCURHandler,
fc46b7f3 40271 &_swigt__p_wxChar,
1bd55598
RD
40272 &_swigt__p_wxChildFocusEvent,
40273 &_swigt__p_wxClientDC,
2131d850 40274 &_swigt__p_wxClipboardTextEvent,
1bd55598
RD
40275 &_swigt__p_wxCloseEvent,
40276 &_swigt__p_wxColour,
40277 &_swigt__p_wxColourDatabase,
40278 &_swigt__p_wxCommandEvent,
40279 &_swigt__p_wxContextMenuEvent,
40280 &_swigt__p_wxControl,
40281 &_swigt__p_wxControlWithItems,
40282 &_swigt__p_wxCursor,
40283 &_swigt__p_wxDC,
70d7cb34
RD
40284 &_swigt__p_wxDCBrushChanger,
40285 &_swigt__p_wxDCClipper,
b39fe951 40286 &_swigt__p_wxDCOverlay,
70d7cb34
RD
40287 &_swigt__p_wxDCPenChanger,
40288 &_swigt__p_wxDCTextColourChanger,
1bd55598
RD
40289 &_swigt__p_wxDash,
40290 &_swigt__p_wxDateEvent,
40291 &_swigt__p_wxDisplayChangedEvent,
40292 &_swigt__p_wxDropFilesEvent,
40293 &_swigt__p_wxDuplexMode,
40294 &_swigt__p_wxEffects,
40295 &_swigt__p_wxEncodingConverter,
40296 &_swigt__p_wxEraseEvent,
40297 &_swigt__p_wxEvent,
40298 &_swigt__p_wxEvtHandler,
40299 &_swigt__p_wxFSFile,
40300 &_swigt__p_wxFileSystem,
40301 &_swigt__p_wxFlexGridSizer,
40302 &_swigt__p_wxFocusEvent,
40303 &_swigt__p_wxFont,
40304 &_swigt__p_wxFontList,
40305 &_swigt__p_wxFontMapper,
40306 &_swigt__p_wxGBSizerItem,
72ef6efb 40307 &_swigt__p_wxGCDC,
da91cb0f 40308 &_swigt__p_wxGDIObjListBase,
1bd55598
RD
40309 &_swigt__p_wxGDIObject,
40310 &_swigt__p_wxGIFHandler,
70d7cb34 40311 &_swigt__p_wxGraphicsBrush,
72ef6efb 40312 &_swigt__p_wxGraphicsContext,
70d7cb34
RD
40313 &_swigt__p_wxGraphicsFont,
40314 &_swigt__p_wxGraphicsMatrix,
40315 &_swigt__p_wxGraphicsObject,
72ef6efb 40316 &_swigt__p_wxGraphicsPath,
70d7cb34
RD
40317 &_swigt__p_wxGraphicsPen,
40318 &_swigt__p_wxGraphicsRenderer,
1bd55598
RD
40319 &_swigt__p_wxGridBagSizer,
40320 &_swigt__p_wxGridSizer,
33d6fd3b 40321 &_swigt__p_wxHeaderButtonParams,
1bd55598
RD
40322 &_swigt__p_wxICOHandler,
40323 &_swigt__p_wxIcon,
40324 &_swigt__p_wxIconBundle,
40325 &_swigt__p_wxIconLocation,
40326 &_swigt__p_wxIconizeEvent,
40327 &_swigt__p_wxIdleEvent,
40328 &_swigt__p_wxImage,
40329 &_swigt__p_wxImageHandler,
40330 &_swigt__p_wxImageList,
40331 &_swigt__p_wxIndividualLayoutConstraint,
40332 &_swigt__p_wxInitDialogEvent,
40333 &_swigt__p_wxJPEGHandler,
40334 &_swigt__p_wxKeyEvent,
40335 &_swigt__p_wxLanguageInfo,
40336 &_swigt__p_wxLayoutConstraints,
40337 &_swigt__p_wxLocale,
40338 &_swigt__p_wxMask,
40339 &_swigt__p_wxMaximizeEvent,
40340 &_swigt__p_wxMemoryDC,
40341 &_swigt__p_wxMenu,
40342 &_swigt__p_wxMenuBar,
40343 &_swigt__p_wxMenuEvent,
40344 &_swigt__p_wxMenuItem,
40345 &_swigt__p_wxMetaFile,
40346 &_swigt__p_wxMetaFileDC,
40347 &_swigt__p_wxMirrorDC,
40348 &_swigt__p_wxMouseCaptureChangedEvent,
34e0a3bb 40349 &_swigt__p_wxMouseCaptureLostEvent,
1bd55598
RD
40350 &_swigt__p_wxMouseEvent,
40351 &_swigt__p_wxMoveEvent,
40352 &_swigt__p_wxNativeEncodingInfo,
40353 &_swigt__p_wxNativeFontInfo,
fc46b7f3
RD
40354 &_swigt__p_wxNativePixelData,
40355 &_swigt__p_wxNativePixelData_Accessor,
1bd55598
RD
40356 &_swigt__p_wxNavigationKeyEvent,
40357 &_swigt__p_wxNcPaintEvent,
40358 &_swigt__p_wxNotifyEvent,
40359 &_swigt__p_wxObject,
b39fe951 40360 &_swigt__p_wxOverlay,
1bd55598
RD
40361 &_swigt__p_wxPCXHandler,
40362 &_swigt__p_wxPNGHandler,
40363 &_swigt__p_wxPNMHandler,
40364 &_swigt__p_wxPaintDC,
40365 &_swigt__p_wxPaintEvent,
40366 &_swigt__p_wxPalette,
40367 &_swigt__p_wxPaletteChangedEvent,
40368 &_swigt__p_wxPaperSize,
40369 &_swigt__p_wxPen,
40370 &_swigt__p_wxPenList,
fc46b7f3 40371 &_swigt__p_wxPixelDataBase,
1bd55598 40372 &_swigt__p_wxPoint,
72ef6efb 40373 &_swigt__p_wxPoint2D,
1bd55598
RD
40374 &_swigt__p_wxPostScriptDC,
40375 &_swigt__p_wxPrintData,
40376 &_swigt__p_wxPrinterDC,
27e45892 40377 &_swigt__p_wxPseudoDC,
1bd55598
RD
40378 &_swigt__p_wxPyApp,
40379 &_swigt__p_wxPyCommandEvent,
40380 &_swigt__p_wxPyEvent,
40381 &_swigt__p_wxPyFontEnumerator,
40382 &_swigt__p_wxPyImageHandler,
fc46b7f3 40383 &_swigt__p_wxPyLocale,
1bd55598
RD
40384 &_swigt__p_wxPySizer,
40385 &_swigt__p_wxPyValidator,
40386 &_swigt__p_wxQueryNewPaletteEvent,
40387 &_swigt__p_wxRect,
4fe9ce47 40388 &_swigt__p_wxRect2D,
1bd55598
RD
40389 &_swigt__p_wxRegion,
40390 &_swigt__p_wxRegionIterator,
40391 &_swigt__p_wxRendererNative,
40392 &_swigt__p_wxRendererVersion,
40393 &_swigt__p_wxScreenDC,
40394 &_swigt__p_wxScrollEvent,
40395 &_swigt__p_wxScrollWinEvent,
40396 &_swigt__p_wxSetCursorEvent,
40397 &_swigt__p_wxShowEvent,
40398 &_swigt__p_wxSize,
40399 &_swigt__p_wxSizeEvent,
40400 &_swigt__p_wxSizer,
40401 &_swigt__p_wxSizerItem,
40402 &_swigt__p_wxSplitterRenderParams,
40403 &_swigt__p_wxStaticBoxSizer,
40404 &_swigt__p_wxStdDialogButtonSizer,
da91cb0f 40405 &_swigt__p_wxStockGDI,
1bd55598
RD
40406 &_swigt__p_wxString,
40407 &_swigt__p_wxSysColourChangedEvent,
580080c5 40408 &_swigt__p_wxTGAHandler,
1bd55598
RD
40409 &_swigt__p_wxTIFFHandler,
40410 &_swigt__p_wxUpdateUIEvent,
40411 &_swigt__p_wxValidator,
40412 &_swigt__p_wxWindow,
40413 &_swigt__p_wxWindowCreateEvent,
40414 &_swigt__p_wxWindowDC,
40415 &_swigt__p_wxWindowDestroyEvent,
40416 &_swigt__p_wxXPMHandler,
40417};
40418
fc46b7f3 40419static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40420static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
40421static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
40422static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
40423static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
40424static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
40425static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
40426static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
0a27f394 40427static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
40428static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
40429static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40430static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40431static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
40432static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
40433static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
40434static 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}};
40435static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40436static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40437static 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}};
1bd55598
RD
40438static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
40439static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
40440static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40441static 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
40442static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}};
40443static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}};
b39fe951 40444static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40445static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}};
40446static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40447static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
40448static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
40449static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
40450static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
40451static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
40452static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
40453static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40454static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
da91cb0f 40455static 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 40456static 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 40457static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40458static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40459static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}};
40460static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}};
40461static 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 40462static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40463static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}};
40464static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}};
33d6fd3b 40465static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40466static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
40467static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
40468static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
40469static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
40470static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
40471static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40472static 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 40473static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
8e99bda9 40474static 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
40475static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
40476static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
40477static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
40478static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
40479static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3
RD
40480static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
40481static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40482static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40483static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 40484static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40485static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
40486static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
40487static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40488static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
40489static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
40490static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
40491static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
40492static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
40493static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
40494static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40495static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
40496static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 40497static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40498static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40499static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
40500static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40501static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40502static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40503static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
40504static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
40505static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
40506static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
40507static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
40508static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
40509static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
40510static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
40511static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
40512static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
40513static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
40514static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
40515static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
40516static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40517static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40518static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
40519static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
40520static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40521static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
580080c5 40522static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
70d7cb34
RD
40523static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
40524static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
40525static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40526static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
40527static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
40528static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
24f6c4e8 40529static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40530static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
27e45892 40531static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 40532static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40533static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
40534static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
40535static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 40536static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40537static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
580080c5 40538static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40539static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
40540static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
40541static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40542static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
40543static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
40544static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
40545static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40546static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
40547static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
40548static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
40549static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
40550static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
40551static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40552static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
40553static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
40554static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40555static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
40556static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
40557static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
40558static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
580080c5 40559static 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 40560static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40561static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
40562static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
40563static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
40564static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
40565static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40566static 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 40567static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
72ef6efb 40568static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40569static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
40570static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
40571static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
27e45892 40572static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40573static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
fc46b7f3 40574static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 40575static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
4fe9ce47 40576static swig_cast_info _swigc__p_wxRect2D[] = { {&_swigt__p_wxRect2D, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40577static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
40578static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
40579static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
40580static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
40581static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
40582static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
40583static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
da91cb0f 40584static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
40585static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
40586static 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 40587static 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
40588
40589static swig_cast_info *swig_cast_initial[] = {
fc46b7f3 40590 _swigc__p_buffer,
1bd55598
RD
40591 _swigc__p_char,
40592 _swigc__p_double,
40593 _swigc__p_form_ops_t,
40594 _swigc__p_int,
40595 _swigc__p_unsigned_char,
40596 _swigc__p_unsigned_int,
40597 _swigc__p_unsigned_long,
0a27f394 40598 _swigc__p_void,
1bd55598
RD
40599 _swigc__p_wxANIHandler,
40600 _swigc__p_wxAcceleratorTable,
40601 _swigc__p_wxActivateEvent,
fc46b7f3
RD
40602 _swigc__p_wxAlphaPixelData,
40603 _swigc__p_wxAlphaPixelData_Accessor,
24f6c4e8 40604 _swigc__p_wxAutoBufferedPaintDC,
1bd55598
RD
40605 _swigc__p_wxBMPHandler,
40606 _swigc__p_wxBitmap,
40607 _swigc__p_wxBoxSizer,
40608 _swigc__p_wxBrush,
40609 _swigc__p_wxBrushList,
40610 _swigc__p_wxBufferedDC,
40611 _swigc__p_wxBufferedPaintDC,
40612 _swigc__p_wxCURHandler,
fc46b7f3 40613 _swigc__p_wxChar,
1bd55598
RD
40614 _swigc__p_wxChildFocusEvent,
40615 _swigc__p_wxClientDC,
2131d850 40616 _swigc__p_wxClipboardTextEvent,
1bd55598
RD
40617 _swigc__p_wxCloseEvent,
40618 _swigc__p_wxColour,
40619 _swigc__p_wxColourDatabase,
40620 _swigc__p_wxCommandEvent,
40621 _swigc__p_wxContextMenuEvent,
40622 _swigc__p_wxControl,
40623 _swigc__p_wxControlWithItems,
40624 _swigc__p_wxCursor,
40625 _swigc__p_wxDC,
70d7cb34
RD
40626 _swigc__p_wxDCBrushChanger,
40627 _swigc__p_wxDCClipper,
b39fe951 40628 _swigc__p_wxDCOverlay,
70d7cb34
RD
40629 _swigc__p_wxDCPenChanger,
40630 _swigc__p_wxDCTextColourChanger,
1bd55598
RD
40631 _swigc__p_wxDash,
40632 _swigc__p_wxDateEvent,
40633 _swigc__p_wxDisplayChangedEvent,
40634 _swigc__p_wxDropFilesEvent,
40635 _swigc__p_wxDuplexMode,
40636 _swigc__p_wxEffects,
40637 _swigc__p_wxEncodingConverter,
40638 _swigc__p_wxEraseEvent,
40639 _swigc__p_wxEvent,
40640 _swigc__p_wxEvtHandler,
40641 _swigc__p_wxFSFile,
40642 _swigc__p_wxFileSystem,
40643 _swigc__p_wxFlexGridSizer,
40644 _swigc__p_wxFocusEvent,
40645 _swigc__p_wxFont,
40646 _swigc__p_wxFontList,
40647 _swigc__p_wxFontMapper,
40648 _swigc__p_wxGBSizerItem,
72ef6efb 40649 _swigc__p_wxGCDC,
da91cb0f 40650 _swigc__p_wxGDIObjListBase,
1bd55598
RD
40651 _swigc__p_wxGDIObject,
40652 _swigc__p_wxGIFHandler,
70d7cb34 40653 _swigc__p_wxGraphicsBrush,
72ef6efb 40654 _swigc__p_wxGraphicsContext,
70d7cb34
RD
40655 _swigc__p_wxGraphicsFont,
40656 _swigc__p_wxGraphicsMatrix,
40657 _swigc__p_wxGraphicsObject,
72ef6efb 40658 _swigc__p_wxGraphicsPath,
70d7cb34
RD
40659 _swigc__p_wxGraphicsPen,
40660 _swigc__p_wxGraphicsRenderer,
1bd55598
RD
40661 _swigc__p_wxGridBagSizer,
40662 _swigc__p_wxGridSizer,
33d6fd3b 40663 _swigc__p_wxHeaderButtonParams,
1bd55598
RD
40664 _swigc__p_wxICOHandler,
40665 _swigc__p_wxIcon,
40666 _swigc__p_wxIconBundle,
40667 _swigc__p_wxIconLocation,
40668 _swigc__p_wxIconizeEvent,
40669 _swigc__p_wxIdleEvent,
40670 _swigc__p_wxImage,
40671 _swigc__p_wxImageHandler,
40672 _swigc__p_wxImageList,
40673 _swigc__p_wxIndividualLayoutConstraint,
40674 _swigc__p_wxInitDialogEvent,
40675 _swigc__p_wxJPEGHandler,
40676 _swigc__p_wxKeyEvent,
40677 _swigc__p_wxLanguageInfo,
40678 _swigc__p_wxLayoutConstraints,
40679 _swigc__p_wxLocale,
40680 _swigc__p_wxMask,
40681 _swigc__p_wxMaximizeEvent,
40682 _swigc__p_wxMemoryDC,
40683 _swigc__p_wxMenu,
40684 _swigc__p_wxMenuBar,
40685 _swigc__p_wxMenuEvent,
40686 _swigc__p_wxMenuItem,
40687 _swigc__p_wxMetaFile,
40688 _swigc__p_wxMetaFileDC,
40689 _swigc__p_wxMirrorDC,
40690 _swigc__p_wxMouseCaptureChangedEvent,
34e0a3bb 40691 _swigc__p_wxMouseCaptureLostEvent,
1bd55598
RD
40692 _swigc__p_wxMouseEvent,
40693 _swigc__p_wxMoveEvent,
40694 _swigc__p_wxNativeEncodingInfo,
40695 _swigc__p_wxNativeFontInfo,
fc46b7f3
RD
40696 _swigc__p_wxNativePixelData,
40697 _swigc__p_wxNativePixelData_Accessor,
1bd55598
RD
40698 _swigc__p_wxNavigationKeyEvent,
40699 _swigc__p_wxNcPaintEvent,
40700 _swigc__p_wxNotifyEvent,
40701 _swigc__p_wxObject,
b39fe951 40702 _swigc__p_wxOverlay,
1bd55598
RD
40703 _swigc__p_wxPCXHandler,
40704 _swigc__p_wxPNGHandler,
40705 _swigc__p_wxPNMHandler,
40706 _swigc__p_wxPaintDC,
40707 _swigc__p_wxPaintEvent,
40708 _swigc__p_wxPalette,
40709 _swigc__p_wxPaletteChangedEvent,
40710 _swigc__p_wxPaperSize,
40711 _swigc__p_wxPen,
40712 _swigc__p_wxPenList,
fc46b7f3 40713 _swigc__p_wxPixelDataBase,
1bd55598 40714 _swigc__p_wxPoint,
72ef6efb 40715 _swigc__p_wxPoint2D,
1bd55598
RD
40716 _swigc__p_wxPostScriptDC,
40717 _swigc__p_wxPrintData,
40718 _swigc__p_wxPrinterDC,
27e45892 40719 _swigc__p_wxPseudoDC,
1bd55598
RD
40720 _swigc__p_wxPyApp,
40721 _swigc__p_wxPyCommandEvent,
40722 _swigc__p_wxPyEvent,
40723 _swigc__p_wxPyFontEnumerator,
40724 _swigc__p_wxPyImageHandler,
fc46b7f3 40725 _swigc__p_wxPyLocale,
1bd55598
RD
40726 _swigc__p_wxPySizer,
40727 _swigc__p_wxPyValidator,
40728 _swigc__p_wxQueryNewPaletteEvent,
40729 _swigc__p_wxRect,
4fe9ce47 40730 _swigc__p_wxRect2D,
1bd55598
RD
40731 _swigc__p_wxRegion,
40732 _swigc__p_wxRegionIterator,
40733 _swigc__p_wxRendererNative,
40734 _swigc__p_wxRendererVersion,
40735 _swigc__p_wxScreenDC,
40736 _swigc__p_wxScrollEvent,
40737 _swigc__p_wxScrollWinEvent,
40738 _swigc__p_wxSetCursorEvent,
40739 _swigc__p_wxShowEvent,
40740 _swigc__p_wxSize,
40741 _swigc__p_wxSizeEvent,
40742 _swigc__p_wxSizer,
40743 _swigc__p_wxSizerItem,
40744 _swigc__p_wxSplitterRenderParams,
40745 _swigc__p_wxStaticBoxSizer,
40746 _swigc__p_wxStdDialogButtonSizer,
da91cb0f 40747 _swigc__p_wxStockGDI,
1bd55598
RD
40748 _swigc__p_wxString,
40749 _swigc__p_wxSysColourChangedEvent,
580080c5 40750 _swigc__p_wxTGAHandler,
1bd55598
RD
40751 _swigc__p_wxTIFFHandler,
40752 _swigc__p_wxUpdateUIEvent,
40753 _swigc__p_wxValidator,
40754 _swigc__p_wxWindow,
40755 _swigc__p_wxWindowCreateEvent,
40756 _swigc__p_wxWindowDC,
40757 _swigc__p_wxWindowDestroyEvent,
40758 _swigc__p_wxXPMHandler,
40759};
40760
40761
40762/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
40763
40764static swig_const_info swig_const_table[] = {
40765{0, 0, 0, 0.0, 0, 0}};
40766
40767#ifdef __cplusplus
40768}
40769#endif
40770/* -----------------------------------------------------------------------------
40771 * Type initialization:
40772 * This problem is tough by the requirement that no dynamic
40773 * memory is used. Also, since swig_type_info structures store pointers to
40774 * swig_cast_info structures and swig_cast_info structures store pointers back
40775 * to swig_type_info structures, we need some lookup code at initialization.
40776 * The idea is that swig generates all the structures that are needed.
40777 * The runtime then collects these partially filled structures.
40778 * The SWIG_InitializeModule function takes these initial arrays out of
40779 * swig_module, and does all the lookup, filling in the swig_module.types
40780 * array with the correct data and linking the correct swig_cast_info
40781 * structures together.
40782 *
40783 * The generated swig_type_info structures are assigned staticly to an initial
40784 * array. We just loop though that array, and handle each type individually.
40785 * First we lookup if this type has been already loaded, and if so, use the
40786 * loaded structure instead of the generated one. Then we have to fill in the
40787 * cast linked list. The cast data is initially stored in something like a
40788 * two-dimensional array. Each row corresponds to a type (there are the same
40789 * number of rows as there are in the swig_type_initial array). Each entry in
40790 * a column is one of the swig_cast_info structures for that type.
40791 * The cast_initial array is actually an array of arrays, because each row has
40792 * a variable number of columns. So to actually build the cast linked list,
40793 * we find the array of casts associated with the type, and loop through it
40794 * adding the casts to the list. The one last trick we need to do is making
40795 * sure the type pointer in the swig_cast_info struct is correct.
40796 *
40797 * First off, we lookup the cast->type name to see if it is already loaded.
40798 * There are three cases to handle:
40799 * 1) If the cast->type has already been loaded AND the type we are adding
40800 * casting info to has not been loaded (it is in this module), THEN we
40801 * replace the cast->type pointer with the type pointer that has already
40802 * been loaded.
40803 * 2) If BOTH types (the one we are adding casting info to, and the
40804 * cast->type) are loaded, THEN the cast info has already been loaded by
40805 * the previous module so we just ignore it.
40806 * 3) Finally, if cast->type has not already been loaded, then we add that
40807 * swig_cast_info to the linked list (because the cast->type) pointer will
40808 * be correct.
40809 * ----------------------------------------------------------------------------- */
40810
40811#ifdef __cplusplus
40812extern "C" {
40813#if 0
40814} /* c-mode */
40815#endif
40816#endif
40817
40818#if 0
40819#define SWIGRUNTIME_DEBUG
40820#endif
40821
40822SWIGRUNTIME void
40823SWIG_InitializeModule(void *clientdata) {
40824 size_t i;
40825 swig_module_info *module_head;
40826 static int init_run = 0;
40827
40828 clientdata = clientdata;
40829
40830 if (init_run) return;
40831 init_run = 1;
40832
40833 /* Initialize the swig_module */
40834 swig_module.type_initial = swig_type_initial;
40835 swig_module.cast_initial = swig_cast_initial;
40836
40837 /* Try and load any already created modules */
40838 module_head = SWIG_GetModule(clientdata);
40839 if (module_head) {
40840 swig_module.next = module_head->next;
40841 module_head->next = &swig_module;
40842 } else {
40843 /* This is the first module loaded */
40844 swig_module.next = &swig_module;
40845 SWIG_SetModule(clientdata, &swig_module);
40846 }
40847
40848 /* Now work on filling in swig_module.types */
40849#ifdef SWIGRUNTIME_DEBUG
40850 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
40851#endif
40852 for (i = 0; i < swig_module.size; ++i) {
40853 swig_type_info *type = 0;
40854 swig_type_info *ret;
40855 swig_cast_info *cast;
40856
40857#ifdef SWIGRUNTIME_DEBUG
40858 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40859#endif
40860
40861 /* if there is another module already loaded */
40862 if (swig_module.next != &swig_module) {
40863 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
be9b1dca 40864 }
1bd55598
RD
40865 if (type) {
40866 /* Overwrite clientdata field */
40867#ifdef SWIGRUNTIME_DEBUG
40868 printf("SWIG_InitializeModule: found type %s\n", type->name);
40869#endif
40870 if (swig_module.type_initial[i]->clientdata) {
40871 type->clientdata = swig_module.type_initial[i]->clientdata;
40872#ifdef SWIGRUNTIME_DEBUG
40873 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
40874#endif
40875 }
40876 } else {
40877 type = swig_module.type_initial[i];
be9b1dca 40878 }
1bd55598
RD
40879
40880 /* Insert casting types */
40881 cast = swig_module.cast_initial[i];
40882 while (cast->type) {
40883 /* Don't need to add information already in the list */
40884 ret = 0;
40885#ifdef SWIGRUNTIME_DEBUG
40886 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
40887#endif
40888 if (swig_module.next != &swig_module) {
40889 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
40890#ifdef SWIGRUNTIME_DEBUG
40891 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
40892#endif
40893 }
40894 if (ret) {
40895 if (type == swig_module.type_initial[i]) {
40896#ifdef SWIGRUNTIME_DEBUG
40897 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
40898#endif
40899 cast->type = ret;
40900 ret = 0;
40901 } else {
40902 /* Check for casting already in the list */
40903 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
40904#ifdef SWIGRUNTIME_DEBUG
40905 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
40906#endif
40907 if (!ocast) ret = 0;
40908 }
40909 }
40910
40911 if (!ret) {
40912#ifdef SWIGRUNTIME_DEBUG
40913 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
40914#endif
40915 if (type->cast) {
40916 type->cast->prev = cast;
40917 cast->next = type->cast;
40918 }
40919 type->cast = cast;
40920 }
40921 cast++;
be9b1dca 40922 }
1bd55598
RD
40923 /* Set entry in modules->types array equal to the type */
40924 swig_module.types[i] = type;
40925 }
40926 swig_module.types[i] = 0;
40927
40928#ifdef SWIGRUNTIME_DEBUG
40929 printf("**** SWIG_InitializeModule: Cast List ******\n");
40930 for (i = 0; i < swig_module.size; ++i) {
40931 int j = 0;
40932 swig_cast_info *cast = swig_module.cast_initial[i];
40933 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
40934 while (cast->type) {
40935 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
40936 cast++;
40937 ++j;
40938 }
40939 printf("---- Total casts: %d\n",j);
40940 }
40941 printf("**** SWIG_InitializeModule: Cast List ******\n");
40942#endif
40943}
40944
40945/* This function will propagate the clientdata field of type to
40946* any new swig_type_info structures that have been added into the list
40947* of equivalent types. It is like calling
40948* SWIG_TypeClientData(type, clientdata) a second time.
40949*/
40950SWIGRUNTIME void
40951SWIG_PropagateClientData(void) {
40952 size_t i;
40953 swig_cast_info *equiv;
40954 static int init_run = 0;
40955
40956 if (init_run) return;
40957 init_run = 1;
40958
40959 for (i = 0; i < swig_module.size; i++) {
40960 if (swig_module.types[i]->clientdata) {
40961 equiv = swig_module.types[i]->cast;
40962 while (equiv) {
40963 if (!equiv->converter) {
40964 if (equiv->type && !equiv->type->clientdata)
40965 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
40966 }
40967 equiv = equiv->next;
40968 }
be9b1dca 40969 }
1bd55598
RD
40970 }
40971}
40972
40973#ifdef __cplusplus
40974#if 0
40975{
40976 /* c-mode */
40977#endif
40978}
40979#endif
40980
40981
40982
40983#ifdef __cplusplus
40984extern "C" {
40985#endif
40986
40987 /* Python-specific SWIG API */
40988#define SWIG_newvarlink() SWIG_Python_newvarlink()
40989#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
40990#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
40991
40992 /* -----------------------------------------------------------------------------
40993 * global variable support code.
40994 * ----------------------------------------------------------------------------- */
40995
40996 typedef struct swig_globalvar {
40997 char *name; /* Name of global variable */
40998 PyObject *(*get_attr)(void); /* Return the current value */
40999 int (*set_attr)(PyObject *); /* Set the value */
41000 struct swig_globalvar *next;
41001 } swig_globalvar;
41002
41003 typedef struct swig_varlinkobject {
41004 PyObject_HEAD
41005 swig_globalvar *vars;
41006 } swig_varlinkobject;
41007
41008 SWIGINTERN PyObject *
41009 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
41010 return PyString_FromString("<Swig global variables>");
41011 }
41012
41013 SWIGINTERN PyObject *
41014 swig_varlink_str(swig_varlinkobject *v) {
41015 PyObject *str = PyString_FromString("(");
41016 swig_globalvar *var;
41017 for (var = v->vars; var; var=var->next) {
41018 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
41019 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
41020 }
41021 PyString_ConcatAndDel(&str,PyString_FromString(")"));
41022 return str;
41023 }
41024
41025 SWIGINTERN int
41026 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
41027 PyObject *str = swig_varlink_str(v);
41028 fprintf(fp,"Swig global variables ");
41029 fprintf(fp,"%s\n", PyString_AsString(str));
41030 Py_DECREF(str);
41031 return 0;
41032 }
41033
41034 SWIGINTERN void
41035 swig_varlink_dealloc(swig_varlinkobject *v) {
41036 swig_globalvar *var = v->vars;
41037 while (var) {
41038 swig_globalvar *n = var->next;
41039 free(var->name);
41040 free(var);
41041 var = n;
be9b1dca 41042 }
1bd55598
RD
41043 }
41044
41045 SWIGINTERN PyObject *
41046 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
41047 PyObject *res = NULL;
41048 swig_globalvar *var = v->vars;
41049 while (var) {
41050 if (strcmp(var->name,n) == 0) {
41051 res = (*var->get_attr)();
41052 break;
41053 }
41054 var = var->next;
be9b1dca 41055 }
1bd55598
RD
41056 if (res == NULL && !PyErr_Occurred()) {
41057 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 41058 }
1bd55598
RD
41059 return res;
41060 }
41061
41062 SWIGINTERN int
41063 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
41064 int res = 1;
41065 swig_globalvar *var = v->vars;
41066 while (var) {
41067 if (strcmp(var->name,n) == 0) {
41068 res = (*var->set_attr)(p);
41069 break;
41070 }
41071 var = var->next;
be9b1dca 41072 }
1bd55598
RD
41073 if (res == 1 && !PyErr_Occurred()) {
41074 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
be9b1dca 41075 }
1bd55598
RD
41076 return res;
41077 }
41078
41079 SWIGINTERN PyTypeObject*
41080 swig_varlink_type(void) {
41081 static char varlink__doc__[] = "Swig var link object";
41082 static PyTypeObject varlink_type;
41083 static int type_init = 0;
41084 if (!type_init) {
41085 const PyTypeObject tmp
41086 = {
41087 PyObject_HEAD_INIT(NULL)
41088 0, /* Number of items in variable part (ob_size) */
41089 (char *)"swigvarlink", /* Type name (tp_name) */
41090 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
41091 0, /* Itemsize (tp_itemsize) */
41092 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
41093 (printfunc) swig_varlink_print, /* Print (tp_print) */
41094 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
41095 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
41096 0, /* tp_compare */
41097 (reprfunc) swig_varlink_repr, /* tp_repr */
41098 0, /* tp_as_number */
41099 0, /* tp_as_sequence */
41100 0, /* tp_as_mapping */
41101 0, /* tp_hash */
41102 0, /* tp_call */
41103 (reprfunc)swig_varlink_str, /* tp_str */
41104 0, /* tp_getattro */
41105 0, /* tp_setattro */
41106 0, /* tp_as_buffer */
41107 0, /* tp_flags */
41108 varlink__doc__, /* tp_doc */
41109 0, /* tp_traverse */
41110 0, /* tp_clear */
41111 0, /* tp_richcompare */
41112 0, /* tp_weaklistoffset */
41113#if PY_VERSION_HEX >= 0x02020000
41114 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
41115#endif
41116#if PY_VERSION_HEX >= 0x02030000
41117 0, /* tp_del */
41118#endif
41119#ifdef COUNT_ALLOCS
41120 0,0,0,0 /* tp_alloc -> tp_next */
41121#endif
41122 };
41123 varlink_type = tmp;
41124 varlink_type.ob_type = &PyType_Type;
41125 type_init = 1;
be9b1dca 41126 }
1bd55598
RD
41127 return &varlink_type;
41128 }
41129
41130 /* Create a variable linking object for use later */
41131 SWIGINTERN PyObject *
41132 SWIG_Python_newvarlink(void) {
41133 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
41134 if (result) {
41135 result->vars = 0;
41136 }
41137 return ((PyObject*) result);
41138 }
41139
41140 SWIGINTERN void
41141 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
41142 swig_varlinkobject *v = (swig_varlinkobject *) p;
41143 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
41144 if (gv) {
41145 size_t size = strlen(name)+1;
41146 gv->name = (char *)malloc(size);
41147 if (gv->name) {
41148 strncpy(gv->name,name,size);
41149 gv->get_attr = get_attr;
41150 gv->set_attr = set_attr;
41151 gv->next = v->vars;
41152 }
be9b1dca 41153 }
1bd55598
RD
41154 v->vars = gv;
41155 }
41156
41157 SWIGINTERN PyObject *
41158 SWIG_globals() {
41159 static PyObject *_SWIG_globals = 0;
41160 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
41161 return _SWIG_globals;
41162 }
41163
41164 /* -----------------------------------------------------------------------------
41165 * constants/methods manipulation
41166 * ----------------------------------------------------------------------------- */
41167
41168 /* Install Constants */
41169 SWIGINTERN void
41170 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
41171 PyObject *obj = 0;
41172 size_t i;
41173 for (i = 0; constants[i].type; ++i) {
41174 switch(constants[i].type) {
41175 case SWIG_PY_POINTER:
41176 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
41177 break;
41178 case SWIG_PY_BINARY:
41179 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
41180 break;
41181 default:
41182 obj = 0;
41183 break;
41184 }
41185 if (obj) {
41186 PyDict_SetItemString(d, constants[i].name, obj);
41187 Py_DECREF(obj);
41188 }
be9b1dca 41189 }
1bd55598
RD
41190 }
41191
41192 /* -----------------------------------------------------------------------------*/
41193 /* Fix SwigMethods to carry the callback ptrs when needed */
41194 /* -----------------------------------------------------------------------------*/
41195
41196 SWIGINTERN void
41197 SWIG_Python_FixMethods(PyMethodDef *methods,
41198 swig_const_info *const_table,
41199 swig_type_info **types,
41200 swig_type_info **types_initial) {
41201 size_t i;
41202 for (i = 0; methods[i].ml_name; ++i) {
3d6c9062 41203 const char *c = methods[i].ml_doc;
1bd55598
RD
41204 if (c && (c = strstr(c, "swig_ptr: "))) {
41205 int j;
41206 swig_const_info *ci = 0;
3d6c9062 41207 const char *name = c + 10;
1bd55598
RD
41208 for (j = 0; const_table[j].type; ++j) {
41209 if (strncmp(const_table[j].name, name,
41210 strlen(const_table[j].name)) == 0) {
41211 ci = &(const_table[j]);
41212 break;
41213 }
41214 }
41215 if (ci) {
41216 size_t shift = (ci->ptype) - types;
41217 swig_type_info *ty = types_initial[shift];
41218 size_t ldoc = (c - methods[i].ml_doc);
41219 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
41220 char *ndoc = (char*)malloc(ldoc + lptr + 10);
41221 if (ndoc) {
41222 char *buff = ndoc;
41223 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
41224 if (ptr) {
41225 strncpy(buff, methods[i].ml_doc, ldoc);
41226 buff += ldoc;
41227 strncpy(buff, "swig_ptr: ", 10);
41228 buff += 10;
41229 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
41230 methods[i].ml_doc = ndoc;
41231 }
41232 }
41233 }
41234 }
be9b1dca 41235 }
1bd55598
RD
41236 }
41237
41238#ifdef __cplusplus
41239}
41240#endif
41241
41242/* -----------------------------------------------------------------------------*
41243 * Partial Init method
41244 * -----------------------------------------------------------------------------*/
41245
41246#ifdef __cplusplus
41247extern "C"
41248#endif
41249SWIGEXPORT void SWIG_init(void) {
41250 PyObject *m, *d;
41251
41252 /* Fix SwigMethods to carry the callback ptrs when needed */
41253 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
41254
41255 m = Py_InitModule((char *) SWIG_name, SwigMethods);
41256 d = PyModule_GetDict(m);
41257
41258 SWIG_InitializeModule(0);
41259 SWIG_InstallConstants(d,swig_const_table);
41260
41261
2131d850
RD
41262 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
41263 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
41264 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
fc46b7f3
RD
41265 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
41266 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
1bd55598
RD
41267 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
41268 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
41269 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
41270 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
41271 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
41272 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
41273 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
41274 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
41275 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
41276 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
41277 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
41278 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
41279 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
41280 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
41281 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
41282 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
41283 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
41284 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
41285 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
41286 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
41287 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
41288 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
41289 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
41290 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
41291 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
41292 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
41293 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
41294 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
41295 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
41296 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
41297 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
41298 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
41299 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
41300 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
41301 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
41302 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
41303 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
41304 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
41305 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
41306 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
41307 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
41308 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
41309 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
41310 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
41311 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
41312 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
41313 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
41314 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
41315 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
41316 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
41317 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
41318 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
41319 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
41320 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
41321 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
41322 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
41323 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
41324 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
41325 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
41326 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
41327 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
41328 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
41329 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
41330 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
41331 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
41332 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
41333 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
41334 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
41335 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
41336 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
41337 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
41338 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
41339 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
41340 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
41341 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
41342 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
41343 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
41344 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
41345 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
41346 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
41347 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
41348 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
41349 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
41350 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
41351 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
41352 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
41353 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
41354 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
41355 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
41356 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
41357 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
41358 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
41359 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
41360 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
41361 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
41362 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
41363 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
41364 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
41365 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
41366 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
41367 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
41368 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
41369 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
41370 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
41371 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
41372 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
41373 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
41374 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
41375 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
41376 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
41377 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
41378 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
41379 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
41380 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
41381 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
41382 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
41383 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
41384 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
41385 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
41386 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
41387 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
41388 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
41389 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
41390 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
41391 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
41392 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
41393 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
41394
41395 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
41396
41397 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
41398 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
41399 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
41400 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
41401 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
41402 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
41403 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
41404 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
41405 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
41406 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
41407 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
41408 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
41409 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
41410 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
41411 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
41412 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
41413 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
41414 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
41415 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
41416 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
41417 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
41418 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
41419 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
41420 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
41421 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
41422 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
41423 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
41424 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
41425 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
41426 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
41427 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
41428 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
41429 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
41430 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
41431 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
41432 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
41433 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
41434 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
41435 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
41436 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
41437 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
41438 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
41439 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
41440 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
41441 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
41442 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
41443 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
41444 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
41445 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
41446 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
41447 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
41448 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
41449 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
41450 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
41451 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
41452 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
41453 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
41454 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
41455 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
41456 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
41457 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
41458 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
41459 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
41460 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
41461 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
41462 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
41463 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
41464 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
41465 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
41466 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
41467 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
41468 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
41469 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
41470 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
41471 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
41472 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
41473 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
41474 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
41475 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
41476 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
41477 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
41478 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
41479 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
41480 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
41481 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
41482 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
41483 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
41484 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
41485 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
41486 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
41487 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
41488 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
41489 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
41490 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
41491 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
41492 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
41493 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
41494 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
41495 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
41496 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
41497 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
41498 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
41499 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
41500 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
41501 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
41502 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
41503 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
41504 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
41505 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
41506 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
41507 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
41508 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
41509 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
41510 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
41511 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
41512 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
41513 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
41514 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
41515 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
41516 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
41517 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
41518 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
41519 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
41520 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
41521 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
41522 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
41523 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
41524 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
41525 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
41526 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
41527 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
41528 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
41529 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
41530 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
41531 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
41532 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
41533 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
41534 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
41535 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
41536 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
41537 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
41538 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
41539 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
41540 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
41541 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
41542 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
41543 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
41544 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
41545 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
41546 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
41547 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
41548 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
41549 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
41550 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
41551 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
41552 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
41553 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
41554 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
41555 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
41556 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
41557 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
41558 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
41559 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
41560 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
41561 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
41562 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
41563 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
41564 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
41565 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
41566 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
41567 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
41568 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
41569 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
41570 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
41571 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
41572 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
41573 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
41574 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
41575 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
41576 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
41577 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
41578 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
41579 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
41580 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
41581 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
41582 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
41583 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
41584 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
41585 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
41586 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
41587 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
41588 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
41589 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
41590 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
41591 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
41592 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
41593 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
41594 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
41595 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
41596 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
41597 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
41598 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
41599 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
41600 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
41601 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
41602 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
41603 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
41604 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
41605 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
41606 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
41607 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
41608 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
41609 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
41610 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
41611 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
41612 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
41613 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
41614 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
41615 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
41616 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
41617 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
41618 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
41619 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
41620 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
41621 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
41622 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
41623 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
41624 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
41625 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
41626 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
41627 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
41628 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
41629 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
41630 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
41631 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
41632 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
41633 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
41634 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
41635 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
41636 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
41637 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
41638 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
41639 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
41640 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
41641 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
41642 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
41643 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
41644 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
70d7cb34
RD
41645 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
41646 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set);
41647 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set);
41648 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set);
5c8c7dd3
RD
41649 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsMatrix",NullGraphicsMatrix_get, NullGraphicsMatrix_set);
41650 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPath",NullGraphicsPath_get, NullGraphicsPath_set);
1bd55598
RD
41651 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
41652 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
41653 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
41654 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
41655 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
41656 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
41657 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
da91cb0f
RD
41658 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
41659 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
41660 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
41661 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
41662 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
41663 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
41664 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
41665 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
41666 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
41667 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
41668 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
41669 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
41670 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
41671 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
41672 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
41673 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
41674 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
41675 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
41676 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
41677 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
41678 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
41679 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
41680 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
41681 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
41682 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
41683 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
41684 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
41685 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
41686 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
41687 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
41688 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
41689 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
41690 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
41691 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
41692 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
1bd55598
RD
41693 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
41694 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
41695 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
41696 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
41697 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
41698 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
41699 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
41700 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
1bd55598
RD
41701 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
41702 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
41703 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
79df624a 41704 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
1bd55598
RD
41705 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
41706 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
41707 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
79df624a 41708 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
1bd55598
RD
41709 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
41710 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
41711 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
41712 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
41713 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
41714 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
41715 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
33d6fd3b
RD
41716 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
41717 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
41718 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
1bd55598
RD
41719 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
41720 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
41721
41722 // Work around a chicken/egg problem in drawlist.cpp
41723 wxPyDrawList_SetAPIPtr();
41724
d55e5bfc
RD
41725}
41726